瀏覽代碼

完善车队配载功能

阿伏兔 4 年之前
父節點
當前提交
02cd365ed7
共有 2 個文件被更改,包括 9 次插入9 次删除
  1. 2 2
      src/views/fleet/sendcar/AddOrUpdate.vue
  2. 7 7
      src/views/track/cabinet/AddOrUpdate.vue

+ 2 - 2
src/views/fleet/sendcar/AddOrUpdate.vue

@@ -1811,8 +1811,8 @@ export default {
           });
           for (let li in this.vehicleList) {
             if (
-              this.vehicleList[li].billStatus < 6 &&
-              this.vehicleList[li].billStatus != 3
+              this.vehicleList[li].billStatus != 3 &&
+              this.vehicleList[li].billStatus < 6
             ) {
               return this.$message.error("车辆安排存在未提交的数据");
             }

+ 7 - 7
src/views/track/cabinet/AddOrUpdate.vue

@@ -470,7 +470,7 @@
 
         <el-row>
           <el-col :span="6">
-            <el-form-item label="油气费" prop="oilAmt">
+            <el-form-item label="油气费" prop="oilAmt" v-if="form.billKind !== 'MH'">
               <el-input
                 v-model="form.oilAmt"
                 placeholder="请输入油气费"
@@ -482,7 +482,7 @@
             </el-form-item>
           </el-col>
           <el-col :span="6">
-            <el-form-item label="单趟提成" prop="driverbonus">
+            <el-form-item label="单趟提成" prop="driverbonus" v-if="form.billKind !== 'MH'">
               <el-input
                 v-model="form.driverbonus"
                 placeholder="请输入单趟提成"
@@ -494,7 +494,7 @@
             </el-form-item>
           </el-col>
           <el-col :span="6">
-            <el-form-item label="其他费用" prop="costOth">
+            <el-form-item label="其他费用" prop="costOth" v-if="form.billKind !== 'MH'">
               <el-input
                 v-model="form.costOth"
                 placeholder="请输入其他费用"
@@ -506,7 +506,7 @@
             </el-form-item>
           </el-col>
           <el-col :span="6">
-            <el-form-item label="花销备注" prop="costRemarks">
+            <el-form-item label="花销备注" prop="costRemarks" v-if="form.billKind !== 'MH'">
               <el-input
                 v-model="form.costRemarks"
                 placeholder="请输入备注"
@@ -1384,7 +1384,7 @@ export default {
       }
     },
     addRelevt3() {
-      if (this.form.oilAmt > 0) {
+      if (this.form.oilAmt > 0 && this.form.billKind !== 'MH') {
         this.fFeeid52 = true;
         this.chiFeesList.map((e) => {
           if (e.fFeeid == 52 && e.actId == 1080) {
@@ -1408,7 +1408,7 @@ export default {
           });
         }
       }
-      if (this.form.driverbonus > 0) {
+      if (this.form.driverbonus > 0 && this.form.billKind !== 'MH') {
         this.fFeeid53 = true;
         this.chiFeesList.map((e) => {
           if (e.fFeeid == 53 && e.actId == 1080) {
@@ -1432,7 +1432,7 @@ export default {
           });
         }
       }
-      if (this.form.costOth > 0) {
+      if (this.form.costOth > 0 && this.form.billKind !== 'MH') {
         this.fFeeid54 = true;
         this.chiFeesList.map((e) => {
           if (e.fFeeid == 54 && e.actId == 1080) {