zhongtianhaoyuan 3 年之前
父節點
當前提交
85e29dfdc9
共有 2 個文件被更改,包括 13 次插入13 次删除
  1. 0 2
      src/views/houseSelfCollect/weightCheck.vue
  2. 13 11
      src/views/outboundManagement/weighingManagementNew.vue

+ 0 - 2
src/views/houseSelfCollect/weightCheck.vue

@@ -459,7 +459,6 @@
             if (response.compName == '黑龙江秋收有限公司') {
               this.inspect.compName = '黑龙江中天昊元贸易有限公司'
             }
-            debugger
             var dialogData = response
 
             if (this.checked) {
@@ -1161,7 +1160,6 @@
               tare(this.weighingList)
                 .toPromise()
                 .then((response) => {
-                  debugger
                   this.idprint = response
                   if (this.reader) {
                     this.reader.cancel()

+ 13 - 11
src/views/outboundManagement/weighingManagementNew.vue

@@ -460,7 +460,6 @@
         })
       },
       closePrint() {
-        debugger
         this.isShowPrint = false
       },
       printSmall() {
@@ -936,10 +935,11 @@
               this.weighingList.baseId = this.warehouseId
               this.weighingList.skinInspector =
                 localStorage.getItem('ws-pf_staffName')
-              if (this.weighingList.id) {
-                this.weighingList.id = this.weighingList.warehouseInOutId
-                  this.weighingList.warehouseInOutDetail.id = this.weighingList.warehouseInOutId 
-                addstorageputList(this.weighingList)
+              if (this.weighingList.id) { 
+                var weighingList1 =  JSON.parse(JSON.stringify(this.weighingList))
+                weighingList1.id = this.weighingList.warehouseInOutId
+                weighingList1.warehouseInOutDetail.id = this.weighingList.inOutDetailId 
+                addstorageputList(weighingList1)
                   .toPromise()
                   .then((response) => {
                     this.weighingList.tare = this.weighingList.tare * 1000
@@ -1001,9 +1001,10 @@
                 this.weighingList.relationId = this.relationId
                 this.weighingList.warehouseId = this.warehouseId
                 this.weighingList.baseId = this.warehouseId
-                  this.weighingList.id = this.weighingList.warehouseInOutId
-                  this.weighingList.warehouseInOutDetail.id = this.weighingList.warehouseInOutId 
-                addstorageputList(this.weighingList)
+                var weighingList1 =  JSON.parse(JSON.stringify(this.weighingList))
+                weighingList1.id = this.weighingList.warehouseInOutId
+                 weighingList1.warehouseInOutDetail.id = this.weighingList.inOutDetailId 
+                addstorageputList(weighingList1)
                   .toPromise()
                   .then((response) => {
                     this.weighingList.tare = this.weighingList.tare * 1000
@@ -1104,9 +1105,10 @@
                 localStorage.getItem('ws-pf_staffName')
               this.weighingList.warehouseId = this.warehouseId
               this.weighingList.baseId = this.warehouseId
-                this.weighingList.id = this.weighingList.warehouseInOutId
-                  this.weighingList.warehouseInOutDetail.id = this.weighingList.warehouseInOutId 
-              addstorageputList(this.weighingList)
+              var weighingList1 =  JSON.parse(JSON.stringify(this.weighingList))
+              weighingList1.id = this.weighingList.warehouseInOutId
+              weighingList1.warehouseInOutDetail.id = this.weighingList.inOutDetailId 
+              addstorageputList(weighingList1)
                 .toPromise()
                 .then((response) => {
                   this.weighingList.grossWeight =