Przeglądaj źródła

添加质检校验

mxx 3 lat temu
rodzic
commit
5e7eef6010

Plik diff jest za duży
+ 388 - 332
src/views/houseSelfCollect/inspectInfo.vue


+ 4 - 4
src/views/houseSelfCollect/inspectionManagement.vue

@@ -190,7 +190,7 @@
 				for (let i = 0; i < this.warehouseList.length; i++) {
 					if (this.warehouseName == this.warehouseList[i].value) {
 						// console.log(this.warehouseList[i])
-						this.cangid = this.warehouseList[i].id
+						this.cangid = this.warehouseList[i].warehouseId
 					}
 				}
 				// console.log(this.cangid)
@@ -215,7 +215,7 @@
 						this.warehouseName = this.warehouseList[i].value
 						this.warehouseCount = this.warehouseList[i].count
 						this.warehouseNo = this.warehouseList[i].No
-						this.cangid = this.warehouseList[i].id
+						this.cangid = this.warehouseList[i].warehouseId
 						this.allowEdit = this.warehouseList[i].allowEdit
 						this.WAREHOUSE[1].payname = this.warehouseList[i].value
 						localStorage.setItem('houseSelfCollect_house1', JSON.stringify(this.warehouseList[i]))
@@ -284,7 +284,7 @@
 							}
 							this.warehouseList.push({
 								value: response[i].warehouseName,
-								id: response[i].id,
+								warehouseId: response[i].id,
 								count: response[i].count,
 								No: response[i].commonWarehouseNo,
 								allowEdit:response[i].allowEdit
@@ -300,7 +300,7 @@
 									this.warehouseName = this.warehouseList[0].value
 									this.warehouseCount = this.warehouseList[0].count
 									this.warehouseNo = this.warehouseList[0].No
-									this.cangid = this.warehouseList[0].id
+									this.cangid = this.warehouseList[0].warehouseId
 									this.allowEdit = this.warehouseList[0].allowEdit
 									this.WAREHOUSE[1].payname = this.warehouseList[0].value
 								}

+ 57 - 56
src/views/houseSelfCollect/weightCheck.vue

@@ -717,62 +717,63 @@
           .then(() => {
             if (this.tpyeNo == 1) {
               //毛检保存前进行校验
-              getamount({
-                  compId: localStorage.getItem('ws-pf_compId'),
-                  customerName: this.weighingList.customer,
-                  goodsName: this.weighingList.goodsName,
-                })
-                .toPromise()
-                .then((response) => {
-                  for (let i = 0; i < this.purchasePriceList.length; i++) {
-                    if (
-                      this.weighingList.goodsName == this.purchasePriceList[i].goodsName
-                    ) {
-                      //累计售粮超上限不能完成毛检保存
-                      let count = (this.purchasePriceList[i].saleLimit - response / 1000).toFixed(2)
-                      // console.log(this.weighingList.grossWeight / 1000, '毛重转吨')
-                      // this.weighingList.grossWeight/=1000
-                      if (count - this.weighingList.grossWeight / 1000 < 0) {
-                        this.$alert(
-                          '该客户累计销售' +
-                          this.weighingList.goodsName +
-                          (response / 1000).toFixed(2) +
-                          '吨,还可售粮' +
-                          count +
-                          '吨',
-                          '提示', {
-                            confirmButtonText: '确定',
-                            callback: (action) => {
-                              this.$message({
-                                type: 'info',
-                                message: `累计售粮已超出上限`,
-                              })
-                            },
-                          }
-                        )
-                      } else {
-                        //累计售粮没有超上限完成毛检保存
-                        // this.weighingList.relationId = this.relationId;
-                        this.weighingList.secretaryWeigher = localStorage.getItem('ws-pf_staffName'),
-                          grossWeight(this.weighingList)
-                          .toPromise()
-                          .then((response) => {
-                            if(this.reader){
-                              this.reader.cancel()
-                            }
-                            this.$notify.success({
-                              title: '成功',
-                              message: '保存成功',
-                            })
-                            // this.$router.go(-1)
-                          })
-                          .catch((response) => {
-                            // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
-                          })
-                      }
-                    }
-                  }
-                })
+              // getamount({
+              //     compId: localStorage.getItem('ws-pf_compId'),
+              //     customerNumberCard:"210881198710041111",
+              //     // customerNumberCard:this.weighingList.customerNumberCard,
+              //     goodsName: this.weighingList.goodsName,
+              //   })
+              //   .toPromise()
+              //   .then((response) => {
+              //     for (let i = 0; i < this.purchasePriceList.length; i++) {
+              //       if (
+              //         this.weighingList.goodsName == this.purchasePriceList[i].goodsName
+              //       ) {
+              //         //累计售粮超上限不能完成毛检保存
+              //         let count = (this.purchasePriceList[i].saleLimit - response / 1000).toFixed(2)
+              //         // console.log(this.weighingList.grossWeight / 1000, '毛重转吨')
+              //         // this.weighingList.grossWeight/=1000
+              //         if (count - this.weighingList.grossWeight / 1000 < 0) {
+              //           this.$alert(
+              //             '该客户累计销售' +
+              //             this.weighingList.goodsName +
+              //             (response / 1000).toFixed(2) +
+              //             '吨,还可售粮' +
+              //             count +
+              //             '吨',
+              //             '提示', {
+              //               confirmButtonText: '确定',
+              //               callback: (action) => {
+              //                 this.$message({
+              //                   type: 'info',
+              //                   message: `累计售粮已超出上限`,
+              //                 })
+              //               },
+              //             }
+              //           )
+              //         } else {
+              //           //累计售粮没有超上限完成毛检保存
+              //           // this.weighingList.relationId = this.relationId;
+              //           this.weighingList.secretaryWeigher = localStorage.getItem('ws-pf_staffName'),
+              //             grossWeight(this.weighingList)
+              //             .toPromise()
+              //             .then((response) => {
+              //               if(this.reader){
+              //                 this.reader.cancel()
+              //               }
+              //               this.$notify.success({
+              //                 title: '成功',
+              //                 message: '保存成功',
+              //               })
+              //               // this.$router.go(-1)
+              //             })
+              //             .catch((response) => {
+              //               // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+              //             })
+              //         }
+              //       }
+              //     }
+              //   })
             } else if (this.tpyeNo == 2) {
               // this.weighingList.grossWeight/=1000
               // this.weighingList.tare/=1000

+ 0 - 1
src/views/warehouse/warehouseManagementList.vue

@@ -466,7 +466,6 @@ export default {
         return
       }
       if(this.headerText == "导出记录"){
-        debugger
         if(this.parameter.radio == 3){
           const { 
            data 

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików