tianxinyu пре 7 месеци
родитељ
комит
c3b05d6af4
1 измењених фајлова са 8 додато и 4 уклоњено
  1. 8 4
      src/views/component/sop/xueQingXueShiYan.vue

+ 8 - 4
src/views/component/sop/xueQingXueShiYan.vue

@@ -96,7 +96,7 @@
                 </el-table-column>
                 <el-table-column label="比对结果判断" prop="biDuiJieGuoPanDua">
                     <template slot-scope="{row}">
-                        <template v-if="!readonly">
+                        <template v-if="!readonly && isEdit">
                             <el-radio v-model="row.biDuiJieGuoPanDua" label="通过">通过</el-radio>
                             <el-radio v-model="row.biDuiJieGuoPanDua" label="不通过">不通过</el-radio>
                         </template>
@@ -136,12 +136,13 @@ export default {
         return {
             tableData: [],
             multipleSelection: [],
-            isRead: false
+            isRead: false,
+            isEdit: true
         }
     },
     computed: {
         shiFouGuoShen () {
-            return this.formData.shiFouGuoShen === '已编制'
+            return this.formData.shiFouGuoShen === '已编制' || this.formData.shiFouGuoShen === '已比对'
         },
         passRate () {
             if (this.tableData.length === 0) return '0'
@@ -153,8 +154,11 @@ export default {
         'formData.smjzhjxqxsyrybdxqb': {
             handler (val) {
                 if (val && val.length) {
-                    // console.log(this.formData)
                     this.tableData = val
+
+                    if (this.params?.nodeId === 'Activity_0zep3tf' && this.formData.faQiRen && this.isEdit) {
+                        this.isEdit = false
+                    }
                 } else {
                     if (this.tableData.length !== 0) {
                         this.tableData = []