diff --git a/src/views/exemption/components/checkDialog.vue b/src/views/exemption/components/checkDialog.vue index 21bfce6..3eeca47 100644 --- a/src/views/exemption/components/checkDialog.vue +++ b/src/views/exemption/components/checkDialog.vue @@ -39,8 +39,8 @@ export default { span: 24, type: 'radio', dicData: [ - { label: '审批通过', value: 0 }, - { label: '审批不通过', value: 1 }, + { label: '审批通过', value: 1 }, + { label: '审批不通过', value: 0 }, ], rules: [{ required: true, message: '请输入姓名', trigger: 'blur' }], }, diff --git a/src/views/productionTesting/productionQuality.vue b/src/views/productionTesting/productionQuality.vue index e09132e..2b2fad1 100644 --- a/src/views/productionTesting/productionQuality.vue +++ b/src/views/productionTesting/productionQuality.vue @@ -250,7 +250,7 @@ @click="addSpecimen()" /> --> - + @@ -969,10 +969,16 @@ export default { }, methods: { - addSpecimen(){ + addSpecimen(row){ + if(row.checkUserRealName != null && row.checkUserRealName != ''){ + return + } this.thicknessData.push({}) }, removeSpecimen(index,row){ + if(row.checkUserRealName != null && row.checkUserRealName != ''){ + return + } this.thicknessData.splice(index,1) let arr = this.getDChyData.filter(item => JSON.stringify(item) === JSON.stringify(row)) console.log('arr=============',arr) @@ -980,11 +986,17 @@ export default { }, addRules(data,row){ console.log('row=============',row) + if(row.checkUserRealName != null && row.checkUserRealName != ''){ + return + } data.push({ isDel:2 }) }, removeRules(data,index,row){ + if(row.checkUserRealName != null && row.checkUserRealName != ''){ + return + } if(row.isDel != 1){ data.splice(index,1) }else{