qukaidi 4 yıl önce
ebeveyn
işleme
6eb389cdd4
1 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  1. 7 0
      src/views/fleet/sendcar/AddOrUpdate.vue

+ 7 - 0
src/views/fleet/sendcar/AddOrUpdate.vue

@@ -1587,6 +1587,13 @@ export default {
           this.vehicleList.map((e) => {
             return (e.carcorPid = this.schedulingList[0].carcorPid);
           });
+          let num=0
+          this.vehicleList.map(e=>{
+            num+=parseInt(e.cntrQty)
+          })
+          if(num>this.schedulingList[0].cntrQty){
+            return this.msgSuccess("车辆安排货量已超过计划货量");
+          }
           let arr2 = [];
           let arr = this.vehicleList.filter((e) => e.billStatus == 6);
           arr.map((a) => {