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

切换称毛重皮重出库报错

gjy пре 3 година
родитељ
комит
cf8f9b77ab
1 измењених фајлова са 34 додато и 4 уклоњено
  1. 34 4
      src/views/outboundManagement/weighingManagementNew.vue

+ 34 - 4
src/views/outboundManagement/weighingManagementNew.vue

@@ -864,7 +864,7 @@
                         })
                         toPromise().then((response) => {
                           if (this.reader) {
-                            this.reader.cancel()
+    	                   this.reader.cancel()
                           }
                           this.$notify({
                             title: '成功',
@@ -1029,6 +1029,17 @@
                   grossWeight(this.weighingList)
                     .toPromise()
                     .then((response) => {
+						 getweighing({
+                            id: response
+                          })
+                          .toPromise()
+                          .then((response) => {
+                            this.weighingList = response
+                            this.inspect = JSON.parse(
+                              JSON.stringify(this.weighingList)
+                            )
+                            this.isShowPrint = true
+                          })
                       if (this.reader) {
                         this.reader.cancel()
                       }
@@ -1043,9 +1054,7 @@
                       })
                       
                         // debugger
-                      this.inspect = JSON.parse(JSON.stringify(this.weighingList))
                       
-                      this.isShowPrint = true
                       this.weighingList = {
                         grossWeight: 0,
                         selfLoading: 0,
@@ -1092,7 +1101,28 @@
         }
       },
       tabClick(val) {
-        this.weighingList = []
+        this.weighingList = {
+            grossWeight: 0,
+            tare: 0,
+            tips: '',
+            buckleMiscellaneous: 0,
+            netWeight: 0,
+            receivableWeighingFee: '',
+            warehouseInOutDetail: {
+				grade: '',
+				imperfectGrain: '',
+				impurity: '',
+				jiaorenli: '',
+				bulkDensity: '',
+				mildewGrain: '',
+            },
+			qualityInspectionManagement: {
+                boxNo: '暂无',
+                boxNoOther: '暂无',
+                titleNo: '暂无',
+                titleNoOther: '暂无',
+			},
+        }
         this.index = val
         // this.disabled=true
         if (val == 0) {