achao 3 년 전
부모
커밋
a9a4a6ed65
1개의 변경된 파일16개의 추가작업 그리고 4개의 파일을 삭제
  1. 16 4
      src/views/houseSelfCollect/newWeighingManagement.vue

+ 16 - 4
src/views/houseSelfCollect/newWeighingManagement.vue

@@ -1306,7 +1306,6 @@
 
       },
       print() {
-
         if (this.reader) {
           this.reader.cancel()
         }
@@ -1423,6 +1422,7 @@
               warehousing.baseId = this.cangid
               delete warehousing.qualityInspectionManagement
             }
+            // 毛重
             if (this.tpyeNo == 1) {
               // console.log(this.weighingList)
               if (this.weighingList.customerNumberCard) {
@@ -1477,7 +1477,6 @@
                                 title: '成功',
                                 message: '保存成功',
                               })
-                              this.getList()
                               //贸易入库需要再走入库接口
                               if (this.inWarehouseType == 1) {
                                 warehousing.grossWeight /= 1000
@@ -1495,6 +1494,8 @@
                                     this.getList()
                                   }
                                 })
+                              } else {
+                                this.getList()
                               }
                             })
                             .catch((response) => {
@@ -1515,7 +1516,6 @@
                       title: '成功',
                       message: '保存成功',
                     })
-                    this.getList()
                     //贸易入库需要再走入库接口
                     if (this.inWarehouseType == 1) {
                       warehousing.grossWeight /= 1000
@@ -1534,6 +1534,8 @@
                           this.getList()
                         }
                       })
+                    } else {
+                      this.getList()
                     }
                   })
                   .catch((response) => {
@@ -1541,6 +1543,14 @@
                   })
               }
             } else if (this.tpyeNo == 2) {
+              //皮重
+              // //皮重检斤保存
+              // let _url1 = process.env.VUE_APP_BASE_API + '/weighingManagement/api/editTare'
+              // //查看结算单
+              // let _url2 = process.env.VUE_APP_BASE_API + '/warehouseInOutInfo/getInfo'
+              // // 入库添加
+              // let _url3 = process.env.VUE_APP_BASE_API + '/warehouseInOutInfo/InOutWarehouse'
+
               console.log(this.inWarehouseType)
               this.weighingList.warehouseId = this.cangid;
               this.weighingList.skinInspector = localStorage.getItem('ws-pf_staffName')
@@ -1617,7 +1627,9 @@
                       // warehousing.id = warehousing.warehouseInOutId
                       // // delete that.inOutDate.status
                       // that.inOutDate = Object.assign(that.inOutDate, warehousing)
-                      addstorageputList(that.inOutDate).toPromise().then((response) => {})
+                      addstorageputList(that.inOutDate).toPromise().then((response) => {
+
+                      })
                       this.isShowPrintType = true
                       this.getList()
                     })