Explorar el Código

室内质控月分析总结报告查阅的时候子表按钮会显示bug修复(川北)

shenqilong hace 8 meses
padre
commit
2f070d0726
Se han modificado 1 ficheros con 4 adiciones y 10 borrados
  1. 4 10
      src/views/component/qualityControl/indexChuanBei.vue

+ 4 - 10
src/views/component/qualityControl/indexChuanBei.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="qualityControl">
-    <div v-if="(!readonly && shiFouGuoShen) || daiBianZhi" class="btn">
+    <div v-if="!readonly && shiFouGuoShen" class="btn">
       <el-button type="primary" icon="ibps-icon-plus" @click="onAddClick"
         >添加</el-button
       >
@@ -60,7 +60,7 @@
         </el-table-column>
         <el-table-column label="是否合格" prop="shiFouHeGe" />
         <el-table-column
-          v-if="(!readonly && shiFouGuoShen) || daiBianZhi"
+          v-if="!readonly && shiFouGuoShen"
           label="操作栏位"
           fixed="right"
         >
@@ -145,18 +145,12 @@ export default {
       if (
         !this.formData.shiFouGuoShen ||
         this.formData.shiFouGuoShen === '已退回' ||
-        this.formData.shiFouGuoShen === '已暂存'
+        this.formData.shiFouGuoShen === '已暂存' ||
+        this.formData.shiFouGuoShen === '待编制'
       ) {
         return true
       }
       return false
-    },
-    daiBianZhi() {
-      if (this.formData.shiFouGuoShen == '待编制') {
-        return true
-      } else {
-        return false
-      }
     }
   },
   watch: {