gjy 2 年之前
父节点
当前提交
3068ed5a12
共有 1 个文件被更改,包括 17 次插入16 次删除
  1. 17 16
      src/views/houseSelfCollect/inspectionManagementNew.vue

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

@@ -668,6 +668,7 @@ export default {
       searchType: 0,
       id: '',
       warehouseList: [],
+      shipInfoList:[],
       warehouseList1: [],
       serviceManagementType: 1,
       statusType: 1,
@@ -772,8 +773,8 @@ export default {
   methods: {
     shipInfoChange(e){
         for (let i = 0; i < this.shipInfoList.length; i++) {
-          if(this.shipInfoList[i].shipName==this.weighingList.shipName){
-            this.weighingList.shipNumber=this.shipInfoList[i].shipNo
+          if(this.shipInfoList[i].shipName==this.deptBudgetList.shipName){
+            this.deptBudgetList.shipNumber=this.shipInfoList[i].shipNo
           } 
         }
       },
@@ -1569,13 +1570,13 @@ export default {
       // }
       console.log(this.serviceManagementType)
       if (this.serviceManagementType == 1) {
-        if (!this.deptBudgetList.cost) {
-          this.$message({
-            message: '未获取到成本,请编辑后提交',
-            type: 'warning',
-          })
-          return
-        }
+        // if (!this.deptBudgetList.cost) {
+        //   this.$message({
+        //     message: '未获取到成本,请编辑后提交',
+        //     type: 'warning',
+        //   })
+        //   return
+        // }
         this.deptBudgetList.dryGrainPrice = parseFloat(this.deptBudgetList.cost / 1000).toFixed(3)
         if (
           this.deptBudgetList.cost < 0 ||
@@ -2116,13 +2117,13 @@ export default {
         }
         console.log(this.serviceManagementType)
         if (this.serviceManagementType == 1) {
-          if (!this.deptBudgetList.cost) {
-            this.$message({
-              message: '未获取到成本,请编辑后提交',
-              type: 'warning',
-            })
-            return
-          }
+          // if (!this.deptBudgetList.cost) {
+          //   this.$message({
+          //     message: '未获取到成本,请编辑后提交',
+          //     type: 'warning',
+          //   })
+          //   return
+          // }
           this.deptBudgetList.dryGrainPrice = parseFloat(this.deptBudgetList.cost / 1000).toFixed(3)
           if (
             this.deptBudgetList.cost < 0 ||