فهرست منبع

修改调度车队车号查询错误问题

caojunjie 3 سال پیش
والد
کامیت
9c6d8cab49
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      src/views/landTransportation/dispatchingCars/detailPage.vue

+ 6 - 2
src/views/landTransportation/dispatchingCars/detailPage.vue

@@ -1395,7 +1395,6 @@ export default {
           prop: 'fleetId',
           type: "select",
           cascader: ['plateNo'],
-          dicUrl: "/api/blade-land/order-fee/fleet?orderId=" + this.id,
           props: {
             label: "fleetName",
             value: "fleetId"
@@ -1414,7 +1413,6 @@ export default {
             label: '车号',
             cell: true,
             prop: 'plateNo',
-            dicUrl: "api/blade-land/order-fee/plate-no?orderId=" + this.id + '&fleetId={{key}}',
             type: "select",
             props: {
               label: "label",
@@ -1483,6 +1481,8 @@ export default {
     this.entrustOptionTwoT = await this.getColumnData(this.getColumnName(86.1), this.entrustOptionTwoTBackup);
     this.collectionOption = await this.getColumnData(this.getColumnName(86.4), this.collectionOptionBackup);
     this.paymentOption = await this.getColumnData(this.getColumnName(86.5), this.paymentOptionBackup);
+    this.findObject(this.paymentOption.column, "fleetId").dicUrl = "/api/blade-land/order-fee/fleet?orderId=" + this.id
+    this.findObject(this.paymentOption.column, "plateNo").dicUrl = "api/blade-land/order-fee/plate-no?orderId=" + this.id + '&fleetId={{key}}'
     // price
     // quantity
     this.findObject(this.collectionOption.column, "price").change = (data) => {
@@ -1612,6 +1612,8 @@ export default {
        */
       const inSave = await this.saveColumnData(this.getColumnName(86.5), this.paymentOption);
       if (inSave) {
+        this.findObject(this.paymentOption.column, "fleetId").dicUrl = "/api/blade-land/order-fee/fleet?orderId=" + this.id
+        this.findObject(this.paymentOption.column, "plateNo").dicUrl = "api/blade-land/order-fee/plate-no?orderId=" + this.id + '&fleetId={{key}}'
         this.$message.success("保存成功");
         //关闭窗口
         this.$refs.payment.$refs.dialogColumn.columnBox = false;
@@ -1623,6 +1625,8 @@ export default {
       const inSave = await this.delColumnData(this.getColumnName(86.5), this.paymentOptionBackup);
       if (inSave) {
         this.$message.success("重置成功");
+        this.findObject(this.paymentOption.column, "fleetId").dicUrl = "/api/blade-land/order-fee/fleet?orderId=" + this.id
+        this.findObject(this.paymentOption.column, "plateNo").dicUrl = "api/blade-land/order-fee/plate-no?orderId=" + this.id + '&fleetId={{key}}'
         this.$refs.payment.$refs.dialogColumn.columnBox = false;
       }
     },