zxz 1 년 전
부모
커밋
39a249b0ee
1개의 변경된 파일17개의 추가작업 그리고 1개의 파일을 삭제
  1. 17 1
      src/views/houseSelfCollect/inspectionManagementNew.vue

+ 17 - 1
src/views/houseSelfCollect/inspectionManagementNew.vue

@@ -1640,7 +1640,23 @@ export default {
               this.options2 = []
             }
             this.fleetNameList = this.outContractNo.tranCarInfoList1
-
+            if (this.serviceManagementType == 3) {
+              if (this.deptBudgetList.goodsName && this.deptBudgetList.customerName) {
+                getquality({ goodsName: this.deptBudgetList.goodsName, compId: localStorage.getItem('ws-pf_compId'), warehouseName: this.warehouseName, customerNumberCard: this.deptBudgetList.customerNumberCard })
+                  .toPromise().then((response) => {
+                    if (response.A + response.B + response.C * 50 > response.D - 50) {
+                      this.redstatus = true
+                    } else {
+                      this.redstatus = false
+                    }
+                    var a = response.A > 0 ? '已完成' + Number(response.A).toFixed(2) + '吨,' : ''
+                    var b = response.B > 0 ? '进行中' + Number(response.B).toFixed(2) + '吨,' : ''
+                    var c = response.C > 0 ? '未称重' + Number(response.C) + '车' : ''
+                    this.deptBudgetList.volumeofbusiness = a + b + c
+                    this.$forceUpdate()
+                  })
+              }
+            }
           })
           this.$forceUpdate()
         })