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()
         })