|
|
@@ -123,10 +123,19 @@
|
|
|
prop="Jfrecord"
|
|
|
:show-overflow-tooltip="true">
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="准入范围不良行为"
|
|
|
+ <!--<el-table-column label="准入范围不良行为"-->
|
|
|
+ <!--align="center"-->
|
|
|
+ <!--prop="Certrecord"-->
|
|
|
+ <!--:show-overflow-tooltip="true">-->
|
|
|
+ <!--</el-table-column>-->
|
|
|
+ <el-table-column label="准入范围不良状态"
|
|
|
align="center"
|
|
|
- prop="Certrecord"
|
|
|
+ prop="Bak1"
|
|
|
:show-overflow-tooltip="true">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span style="color: #F56C6C" v-if="scope.row.Bak1 != '0'">暂停{{scope.row.Bak1}}条</span>
|
|
|
+ <span v-else></span>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<!-- <el-table-column label="类别名称" prop="Categoryname" align="center" width="100px"></el-table-column> -->
|
|
|
|
|
|
@@ -432,16 +441,16 @@
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="准入范围">
|
|
|
- <el-form label-width="80px"
|
|
|
- label-position="top"
|
|
|
- class="certForm">
|
|
|
- <el-form-item label="请先填写,不良记录原因">
|
|
|
- <el-input type="textarea" :rows="4"
|
|
|
- v-model="entityForm.CertRecord"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
+ <!--<el-form label-width="80px"-->
|
|
|
+ <!--label-position="top"-->
|
|
|
+ <!--class="certForm">-->
|
|
|
+ <!--<el-form-item label="请先填写,不良记录原因">-->
|
|
|
+ <!--<el-input type="textarea" :rows="4"-->
|
|
|
+ <!--v-model="entityForm.CertRecord"></el-input>-->
|
|
|
+ <!--</el-form-item>-->
|
|
|
+ <!--</el-form>-->
|
|
|
|
|
|
- <el-divider></el-divider>
|
|
|
+ <!--<el-divider></el-divider>-->
|
|
|
|
|
|
<div style="width:100%;height:50px;margin-top:-15px">
|
|
|
<el-button type="plain"
|
|
|
@@ -630,6 +639,23 @@
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
+ <el-dialog
|
|
|
+ width="30%"
|
|
|
+ :visible.sync="innerVisible"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ append-to-body>
|
|
|
+ <el-form ref="entityFormCert" :model="entityForm" label-position="top">
|
|
|
+ <el-form-item label="请填写变更原因" prop="CertRecord"
|
|
|
+ :rules="[{ required: true, message: '请输入变更原因', trigger: 'blur' }]">
|
|
|
+ <el-input type="textarea" :rows="4"
|
|
|
+ v-model="entityForm.CertRecord"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="innerVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="confirmCertSubStatus()">确定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</el-dialog>
|
|
|
|
|
|
<el-dialog title="准入变化历史"
|
|
|
@@ -729,6 +755,7 @@ export default {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
+ innerVisible: false,
|
|
|
showBackReason: false,
|
|
|
backReasonList: [],
|
|
|
isChooseDisable: false,
|
|
|
@@ -846,6 +873,12 @@ export default {
|
|
|
// trigger: 'change'
|
|
|
// }
|
|
|
// ]
|
|
|
+ },
|
|
|
+ CertSub: {
|
|
|
+ Id: '',
|
|
|
+ SupplierCertId: '',
|
|
|
+ SupplierId: '',
|
|
|
+ CertSubStatus: ''
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -887,38 +920,43 @@ export default {
|
|
|
|
|
|
return temp
|
|
|
},
|
|
|
- changeCertSubStatus (row) {
|
|
|
- this.$confirm('确定更改此准入范围状态吗?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then((res) => {
|
|
|
- let certSubStatus = row.CertSubStatus
|
|
|
- if (!row.CertSubStatus) {
|
|
|
- certSubStatus = 0
|
|
|
- }
|
|
|
- let params = {
|
|
|
- Id: 0,
|
|
|
- SupplierId: parseInt(row.SupplierId),
|
|
|
- SupplierCertId: parseInt(row.SupplierCertId),
|
|
|
- certSubId: parseInt(row.Id),
|
|
|
- certSubStatus: certSubStatus,
|
|
|
- backReason: this.entityForm.CertRecord
|
|
|
- }
|
|
|
- this.$axios.post('/suppliercertsub/updatestatuswithlog/' + row.Id, params).then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: '更改成功'
|
|
|
- })
|
|
|
- this.initCert()
|
|
|
+ confirmCertSubStatus () {
|
|
|
+ this.$refs['entityFormCert'].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ let certSubStatus = this.CertSub.CertSubStatus
|
|
|
+ if (!this.CertSub.CertSubStatus) {
|
|
|
+ certSubStatus = 0
|
|
|
}
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- }).catch(() => {
|
|
|
+ let params = {
|
|
|
+ Id: 0,
|
|
|
+ SupplierId: parseInt(this.CertSub.SupplierId),
|
|
|
+ SupplierCertId: parseInt(this.CertSub.SupplierCertId),
|
|
|
+ certSubId: parseInt(this.CertSub.Id),
|
|
|
+ certSubStatus: certSubStatus,
|
|
|
+ backReason: this.entityForm.CertRecord
|
|
|
+ }
|
|
|
+ this.$axios.post('/suppliercertsub/updatestatuswithlog/' + this.CertSub.Id, params).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '更改成功'
|
|
|
+ })
|
|
|
+ this.innerVisible = false
|
|
|
+ this.initCert()
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
-
|
|
|
+ },
|
|
|
+ changeCertSubStatus (row) {
|
|
|
+ this.innerVisible = true
|
|
|
+ this.entityForm.CertRecord = ''
|
|
|
+ this.CertSub.CertSub = row.CertSub
|
|
|
+ this.CertSub.Id = row.Id
|
|
|
+ this.CertSub.SupplierId = row.SupplierId
|
|
|
+ this.CertSub.CertSubStatus = row.CertSubStatus
|
|
|
},
|
|
|
|
|
|
savedata () {
|