Parcourir la source

未装车的收货反馈不校验

zhangyuewww il y a 3 ans
Parent
commit
a0cdda4dc4

+ 2 - 0
src/views/tranManagement/tranManagementFireReceivingFeedback.vue

@@ -638,6 +638,7 @@ export default {
     },
     submit() {
       for (var i = 0; i < this.freightspace.length; i++) {
+        if(this.freightspace[i].status== '已装车'){
           if (!this.freightspace[i].unloadNetWeight) {
             this.$message({
               message: '卸车净重不能为空!',
@@ -652,6 +653,7 @@ export default {
             })
             return
           }
+        }
       }
       this.$confirm(`提交成功后提醒司机及时签订运输合同,确定提交卸车信息?`, {
         confirmButtonText: '确定',

+ 1 - 1
src/views/tranManagement/tranManagementReceivingloading.vue

@@ -607,7 +607,7 @@ export default {
             })
             return
         }
-      }
+    }
       this.$confirm(
         `所有车辆完成卸车任务后,请及时修改任务状态,确定提交卸车信息?`,
         {

+ 1 - 1
src/views/tranManagement/tranManagementUnShippingFeedback.vue

@@ -701,7 +701,7 @@ export default {
     },
     submit() {
       for(let i = 0 ; i < this.freightspace.length ; i++){
-        if(this.freightspace[i].shipType == '集装箱'){
+        if(this.freightspace[i].status== '已装车'){
             if (!this.freightspace[i].unloadNetWeight) {
                 this.$message({
                   message: '卸船净重不能为空!',