zxz 1 year ago
parent
commit
39a249b0ee
1 changed files with 17 additions and 1 deletions
  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()
         })