qukaidi před 4 roky
rodič
revize
dc47a3f00b
1 změnil soubory, kde provedl 23 přidání a 2 odebrání
  1. 23 2
      src/views/fleet/sendcar/AddOrUpdate.vue

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

@@ -581,11 +581,25 @@
                 </el-table-column>
                 <el-table-column label="车号" align="center" prop="carregNo">
                   <template slot-scope="scope">
-                    <el-input
+                    <!-- <el-input
                       v-model="scope.row.carregNo"
                       placeholder="车号"
                       :disabled="scope.row.billStatus == 6"
-                    />
+                    /> -->
+                    <el-select
+                      v-model="scope.row.carregNo"
+                      placeholder="车号"
+                      :disabled="scope.row.billStatus == 6"
+                      :clearable="true"
+                      filterable
+                    >
+                      <el-option
+                        v-for="(dict, index) in carManages"
+                        :key="index"
+                        :label="dict.carNum"
+                        :value="dict.carNum"
+                      />
+                    </el-select>
                   </template>
                 </el-table-column>
                 <el-table-column
@@ -1185,6 +1199,8 @@ import {
   changeFtmsorderbillscars,
   addFtmsorderbillscars,
 } from "@/api/fleet/ftmsorderbillscars";
+
+import { listFtmsorderbills } from "@/api/fleet/carManage";
 import { listGoods } from "@/api/basicdata/goods";
 import { listCorps } from "@/api/basicdata/corps";
 import { listFees } from "@/api/basicdata/fees";
@@ -1302,6 +1318,7 @@ export default {
       goodsOptions: [],
       fWbuOptions: [],
       ffeeunitidList: [],
+      carManages: [],
     };
   },
   created() {
@@ -1336,6 +1353,10 @@ export default {
     listFees().then((response) => {
       this.fWbuOptions = response.rows;
     });
+    listFtmsorderbills().then((response) => {
+      this.carManages = response.rows;
+      console.log(this.carManages);
+    });
     this.userType = Cookies.get("userType");
     this.username = Cookies.get("userName");
   },