|
@@ -503,6 +503,17 @@
|
|
|
></crop-select>
|
|
|
<span v-else>{{ row.corpName }}</span>
|
|
|
</template>
|
|
|
+ <template slot-scope="{ row }" slot="fleetId">
|
|
|
+ <el-select v-if="row.$cellEdit" v-model="row.fleetId" size="small" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in fleetdata"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.cname"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <span v-else>{{row.fleetName}}</span>
|
|
|
+ </template>
|
|
|
<template slot="plateNoHeader" slot-scope="{column}">
|
|
|
{{ column.label }}<span style="color:#F56C6C">*</span>
|
|
|
</template>
|
|
@@ -664,7 +675,7 @@ import {
|
|
|
} from "@/api/landTransportation";
|
|
|
import website from "@/config/website";
|
|
|
import {getDeptTree} from "@/api/system/dept";
|
|
|
-import {customerList} from "@/api/basicData/basicFeesDesc";
|
|
|
+import {customerList, corpsdesclist} from "@/api/basicData/basicFeesDesc";
|
|
|
import {gaude, location} from "@/api/gaude";
|
|
|
import reportDialog from "@/components/report-dialog/main.vue";
|
|
|
|
|
@@ -680,6 +691,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ // 车队数据
|
|
|
+ fleetdata:[],
|
|
|
// 打印组件
|
|
|
switchDialog: false,
|
|
|
reportName: '',
|
|
@@ -1573,7 +1586,7 @@ export default {
|
|
|
}],
|
|
|
column: [{
|
|
|
label: '客户名称',
|
|
|
- cell: true,
|
|
|
+ // cell: true,
|
|
|
width: 300,
|
|
|
prop: 'fleetId',
|
|
|
type: "select",
|
|
@@ -2366,6 +2379,14 @@ export default {
|
|
|
$cellEdit: true
|
|
|
});
|
|
|
})
|
|
|
+ // 获取车队信息
|
|
|
+ corpsdesclist({
|
|
|
+ size:1000,
|
|
|
+ current:1,
|
|
|
+ corpType:'CD'
|
|
|
+ }).then(res=>{
|
|
|
+ this.fleetdata = res.data.data.records
|
|
|
+ })
|
|
|
} else if (this.selectionList.length == 0) {
|
|
|
this.$message.warning('请选择一条车辆信息')
|
|
|
} else if (this.selectionList.length > 0) {
|