|
@@ -106,6 +106,17 @@
|
|
|
<span class="el-button--text" style="cursor: pointer"
|
|
|
@click="openTrack(row)">{{ row.plateNo }}</span>
|
|
|
</template>
|
|
|
+ <template slot-scope="{ row }" slot="driverId">
|
|
|
+ <el-select v-if="row.$cellEdit" v-model="row.driverId" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in driverIddata"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <span v-else>{{row.driverName}}</span>
|
|
|
+ </template>
|
|
|
<template slot-scope="{row,index}" slot="menu">
|
|
|
<el-button
|
|
|
type="text"
|
|
@@ -212,12 +223,12 @@
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
- sendACarCollection,
|
|
|
- sendACarDispatchCollection,
|
|
|
- driverQueryCollection,
|
|
|
- fleetList,
|
|
|
- motorcadeDriver,
|
|
|
- fleetDriverSave, telephone, getAttachment, saveAttached, recordingDetails, changeVehicle, fleetListTwo
|
|
|
+ sendACarCollection,
|
|
|
+ sendACarDispatchCollection,
|
|
|
+ driverQueryCollection,
|
|
|
+ fleetList,
|
|
|
+ motorcadeDriver,
|
|
|
+ fleetDriverSave, telephone, getAttachment, saveAttached, recordingDetails, changeVehicle, fleetListTwo, driversiji
|
|
|
} from "@/api/landTransportation";
|
|
|
import {location} from "@/api/gaude";
|
|
|
import {businessStatisticsFrequency} from "@/api/wel";
|
|
@@ -227,6 +238,7 @@ export default {
|
|
|
name: "index",
|
|
|
data() {
|
|
|
return {
|
|
|
+ driverIddata:[],
|
|
|
key: 0,
|
|
|
query:{},
|
|
|
screen:{},
|
|
@@ -507,18 +519,18 @@ export default {
|
|
|
width: 77,
|
|
|
search: true,
|
|
|
overHidden: true,
|
|
|
- cell: true,
|
|
|
+ // cell: true,
|
|
|
filterable: true,
|
|
|
index: 9,
|
|
|
prop: 'driverId',
|
|
|
- type: "select",
|
|
|
- // dicUrl: `/api/blade-client/land-driver/driver-list?plateNo={{key}}&fleetId=${ `{{fleetId}}` ? `{{fleetId}}` : '' }`,
|
|
|
- dicUrl: '/api/blade-client/land-driver/driver-list?plateNo={{key}}',
|
|
|
- props: {
|
|
|
- label: "name",
|
|
|
- value: "id",
|
|
|
- // res: "res.data"
|
|
|
- }
|
|
|
+ // type: "select",
|
|
|
+ // // dicUrl: `/api/blade-client/land-driver/driver-list?plateNo={{key}}&fleetId=${ `{{fleetId}}` ? `{{fleetId}}` : '' }`,
|
|
|
+ // dicUrl: '/api/blade-client/land-driver/driver-list?plateNo={{key}}&fleetId=',
|
|
|
+ // props: {
|
|
|
+ // label: "name",
|
|
|
+ // value: "id",
|
|
|
+ // // res: "res.data"
|
|
|
+ // }
|
|
|
}, {
|
|
|
label: '电话',
|
|
|
overHidden: true,
|
|
@@ -923,12 +935,21 @@ export default {
|
|
|
},
|
|
|
//箱信息保存
|
|
|
rowSaveT(row, index, done, loading) {
|
|
|
+ driversiji({
|
|
|
+ fleetId:row.fleetId
|
|
|
+ }).then(res=>{
|
|
|
+ console.log(res.data.data,944)
|
|
|
+ this.driverIddata = res.data.data
|
|
|
+ })
|
|
|
+
|
|
|
if (row.$cellEdit) {
|
|
|
fleetDriverSave(row).then(res => {
|
|
|
this.$message.success("保存成功");
|
|
|
})
|
|
|
}
|
|
|
this.$refs.crud.rowCell(row, index)
|
|
|
+
|
|
|
+ // this.driverIddata
|
|
|
},
|
|
|
//切换订单状态
|
|
|
handleClick(tab) {
|