Преглед изворни кода

质检计划 质检工单禅道bug 2572 1664 修复

jingshuyong пре 9 месеци
родитељ
комит
6234174a7a

+ 19 - 28
src/views/inspectionPlan/components/new-baseInfo.vue

@@ -509,21 +509,8 @@
     watch: {
       'form.type': {
         handler(newVal, old) {
+          this.clearData();
           if (!newVal) {
-            this.form.planSource = '';
-            this.form.planSourceCode = '';
-            this.form.productName = '';
-            this.form.productCode = '';
-            this.form.batchNo = '';
-            this.form.specification = '';
-            this.form.modelType = '';
-            this.form.brandNo = '';
-            this.form.productNumber = '';
-            this.form.qualifiedNumber = '';
-            this.form.unqualifiedNumber = '';
-            this.form.qualificationRate = '';
-            this.form.totalWeight = '';
-            this.form.sampleNumber = '';
             this.sourceList = [];
             this.$emit('resetTable');
             return;
@@ -535,20 +522,7 @@
       'form.planSource': {
         handler(newVal) {
           if (!newVal) {
-            this.form.planSource = '';
-            this.form.planSourceCode = '';
-            this.form.productName = '';
-            this.form.productCode = '';
-            this.form.batchNo = '';
-            this.form.specification = '';
-            this.form.modelType = '';
-            this.form.brandNo = '';
-            this.form.productNumber = '';
-            this.form.qualifiedNumber = '';
-            this.form.unqualifiedNumber = '';
-            this.form.qualificationRate = '';
-            this.form.totalWeight = '';
-            this.form.sampleNumber = '';
+            this.clearData();
             this.$emit('resetTable');
           }
         },
@@ -595,6 +569,23 @@
       this.getDictListIqoCode('measurement_type');
     },
     methods: {
+      clearData() {
+        this.form.planSource = '';
+        this.form.planSourceCode = '';
+        this.form.productName = '';
+        this.form.productCode = '';
+        this.form.batchNo = '';
+        this.form.specification = '';
+        this.form.modelType = '';
+        this.form.brandNo = '';
+        this.form.productNumber = '';
+        this.form.qualifiedNumber = '';
+        this.form.unqualifiedNumber = '';
+        this.form.qualificationRate = '';
+        this.form.totalWeight = '';
+        this.form.sampleNumber = '';
+      },
+
       // 打开工艺路线弹窗
       openVersion() {
         this.$refs.versionRefs.open();

+ 1 - 0
src/views/inspectionPlan/components/stokledger.vue

@@ -460,6 +460,7 @@ export default {
   overflow: auto;
 }
 
+
 /* 隐藏表头的全选复选框 */
 .hide-header-checkbox .el-checkbox {
   display: none !important;

+ 1 - 1
src/views/inspectionWork/details.vue

@@ -104,7 +104,7 @@
             <el-row>
               <el-col :span="6">
                 <el-form-item label="总数量">
-                  <el-input :value="form.sampleQuantity" disabled />
+                  <el-input :value="form.total" disabled />
                 </el-form-item>
               </el-col>
               <el-col :span="6">