|
|
@ -105,8 +105,9 @@
|
|
|
|
<vxe-toolbar>
|
|
|
|
<vxe-toolbar>
|
|
|
|
<template #buttons>
|
|
|
|
<template #buttons>
|
|
|
|
<div class="nav-box">
|
|
|
|
<div class="nav-box">
|
|
|
|
<div class="nav" @click="TabsAdd"><i class="iconfont icon-jiahao2fill"></i>新增派车</div>
|
|
|
|
<!-- <div class="nav" @click="TabsAdd"><i class="iconfont icon-jiahao2fill"></i>新增派车</div> -->
|
|
|
|
<!-- <div class="nav" @click="TabsAdd"><i class="iconfont icon-jiahao2fill"></i>撤销派车</div> -->
|
|
|
|
<div class="nav" @click="FnSubmit"><i class="iconfont icon-jiahao2fill"></i>提交派车</div>
|
|
|
|
|
|
|
|
<div class="nav" @click="FnCancel"><i class="iconfont icon-jiahao2fill"></i>撤销派车</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template #tools>
|
|
|
|
<template #tools>
|
|
|
@ -121,6 +122,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-toolbar>
|
|
|
|
</vxe-toolbar>
|
|
|
|
<vxe-table
|
|
|
|
<vxe-table
|
|
|
|
|
|
|
|
ref="XTable"
|
|
|
|
:column-config="{ resizable: true }"
|
|
|
|
:column-config="{ resizable: true }"
|
|
|
|
@cell-dblclick="cellDBLClickEvent"
|
|
|
|
@cell-dblclick="cellDBLClickEvent"
|
|
|
|
:data="loadData"
|
|
|
|
:data="loadData"
|
|
|
@ -132,6 +134,7 @@
|
|
|
|
empty-text="没有更多数据了!"
|
|
|
|
empty-text="没有更多数据了!"
|
|
|
|
v-if="!TableType"
|
|
|
|
v-if="!TableType"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
<vxe-column type="checkbox" width="60"></vxe-column>
|
|
|
|
<vxe-column type="seq" width="40" fixed="left"></vxe-column>
|
|
|
|
<vxe-column type="seq" width="40" fixed="left"></vxe-column>
|
|
|
|
<vxe-column
|
|
|
|
<vxe-column
|
|
|
|
v-for="item in TableColumns"
|
|
|
|
v-for="item in TableColumns"
|
|
|
@ -198,7 +201,9 @@ import {
|
|
|
|
DjyCustomerGet,
|
|
|
|
DjyCustomerGet,
|
|
|
|
DjyUserConfigAdd,
|
|
|
|
DjyUserConfigAdd,
|
|
|
|
BookingTruckDelete,
|
|
|
|
BookingTruckDelete,
|
|
|
|
DjyCustomerQuerytDjyCustomerInfo
|
|
|
|
DjyCustomerQuerytDjyCustomerInfo,
|
|
|
|
|
|
|
|
BookingTruckSubmitBatch,
|
|
|
|
|
|
|
|
BookingTruckCancelBatch
|
|
|
|
} from '@/api/modular/main/SendCar'
|
|
|
|
} from '@/api/modular/main/SendCar'
|
|
|
|
import columnSetting from '@/components/tableColumnSetting'
|
|
|
|
import columnSetting from '@/components/tableColumnSetting'
|
|
|
|
const columns = [
|
|
|
|
const columns = [
|
|
|
@ -461,6 +466,34 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
FnCancel() {
|
|
|
|
|
|
|
|
let ApiArr = []
|
|
|
|
|
|
|
|
let select = this.$refs.XTable.getCheckboxRecords()
|
|
|
|
|
|
|
|
select.forEach(item => {
|
|
|
|
|
|
|
|
ApiArr.push(item.id)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
BookingTruckCancelBatch(ApiArr).then(res => {
|
|
|
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
|
|
|
this.$message.success('撤销成功')
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(`撤销失败,${res.data.msg}`)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
FnSubmit() {
|
|
|
|
|
|
|
|
let ApiArr = []
|
|
|
|
|
|
|
|
let select = this.$refs.XTable.getCheckboxRecords()
|
|
|
|
|
|
|
|
select.forEach(item => {
|
|
|
|
|
|
|
|
ApiArr.push(item.id)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
BookingTruckSubmitBatch(ApiArr).then(res => {
|
|
|
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
|
|
|
this.$message.success('提交成功')
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(`提交失败,${res.data.msg}`)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
TabsAdd() {
|
|
|
|
TabsAdd() {
|
|
|
|
this.$router.push({
|
|
|
|
this.$router.push({
|
|
|
|
name: 'SendCarAdd',
|
|
|
|
name: 'SendCarAdd',
|
|
|
|