quwangxin пре 2 година
родитељ
комит
807e1eb6fd

+ 4 - 1
src/views/produceOrder/components/report/Common.vue

@@ -90,7 +90,10 @@
                 (categoryMsg.totalWeight =
                   categoryMsg.number === ''
                     ? ''
-                    : categoryMsg.number * (infoData.productUnitWeight || 1))
+                    : multiply(
+                        categoryMsg.number,
+                        infoData.productUnitWeight || 1
+                      ))
               "
               clearable
             ></el-input>

+ 6 - 3
src/views/produceOrder/components/report/Drying.vue

@@ -91,7 +91,10 @@
                 (categoryMsg.totalWeight =
                   categoryMsg.number === ''
                     ? ''
-                    : categoryMsg.number * (infoData.productUnitWeight || 1))
+                    : multiply(
+                        categoryMsg.number,
+                        infoData.productUnitWeight || 1
+                      ))
               "
               clearable
             ></el-input>
@@ -110,7 +113,7 @@
         <el-descriptions-item label="舟皿数量" :span="3"
           ><el-input
             placeholder="请输入"
-            v-model="boatMsg.extraField.boatMsg"
+            v-model="boatMsg.extraField.boatNum"
           ></el-input
         ></el-descriptions-item>
         <el-descriptions-item label="质检项" :span="2">
@@ -329,7 +332,7 @@
           rootCategoryLevelId: '',
           specification: '',
           extraField: {
-            boatMsg: ''
+            boatNum: ''
           }
         }
       };

+ 9 - 2
src/views/produceOrder/components/report/HalfAdded.vue

@@ -90,7 +90,10 @@
                 (categoryMsg.totalWeight =
                   categoryMsg.number === ''
                     ? ''
-                    : categoryMsg.number * (infoData.productUnitWeight || 1))
+                    : multiply(
+                        categoryMsg.number,
+                        infoData.productUnitWeight || 1
+                      ))
               "
               clearable
             ></el-input>
@@ -427,11 +430,15 @@
                 name: this.infoData.productName,
                 code: this.infoData.productCode
               });
+              const workReportCategoryList = [this.categoryMsg];
+              if (this.boatMsg.code) {
+                workReportCategoryList.push(this.boatMsg);
+              }
               fun({
                 checkState: 1,
                 workReport: this.workReport,
                 workReportDeviceList: [this.workReportDeviceList],
-                workReportCategoryList: [this.categoryMsg]
+                workReportCategoryList
               }).then((res) => {
                 // this.$message.success('报工成功!');
                 // this.getReportCount();

+ 12 - 4
src/views/produceOrder/components/report/Heating.vue

@@ -90,7 +90,10 @@
                 (categoryMsg.totalWeight =
                   categoryMsg.number === ''
                     ? ''
-                    : categoryMsg.number * (infoData.productUnitWeight || 1))
+                    : multiply(
+                        categoryMsg.number,
+                        infoData.productUnitWeight || 1
+                      ))
               "
               clearable
             ></el-input>
@@ -105,7 +108,7 @@
         <el-descriptions-item label="舟皿数量" :span="3"
           ><el-input
             placeholder="请输入"
-            v-model="boatMsg.extraField.num"
+            v-model="boatMsg.extraField.boatNum"
           ></el-input
         ></el-descriptions-item>
         <el-descriptions-item label="质检项" :span="2">
@@ -326,7 +329,7 @@
           rootCategoryLevelId: '',
           specification: '',
           extraField: {
-            num: ''
+            boatNum: ''
           }
         }
       };
@@ -436,11 +439,16 @@
                 name: this.infoData.productName,
                 code: this.infoData.productCode
               });
+
+              const workReportCategoryList = [this.categoryMsg];
+              if (this.boatMsg.code) {
+                workReportCategoryList.push(this.boatMsg);
+              }
               fun({
                 checkState: 1,
                 workReport: this.workReport,
                 workReportDeviceList: [this.workReportDeviceList],
-                workReportCategoryList: [this.categoryMsg]
+                workReportCategoryList
               }).then((res) => {
                 // this.$message.success('报工成功!');
                 // this.getReportCount();