|
|
@ -5,32 +5,42 @@ |
|
|
|
<!-- 查询模块 --> |
|
|
|
<!-- 查询模块 --> |
|
|
|
<el-form class="header_search" :model="query"> |
|
|
|
<el-form class="header_search" :model="query"> |
|
|
|
<el-form-item label="配送车次:"> |
|
|
|
<el-form-item label="配送车次:"> |
|
|
|
<el-input v-model="query.trainNumber" placeholder="请输入配送车次"></el-input> |
|
|
|
<el-input |
|
|
|
|
|
|
|
v-model="query.trainNumbers" |
|
|
|
|
|
|
|
placeholder="请输入配送车次" |
|
|
|
|
|
|
|
clearable |
|
|
|
|
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="配送日期:" class="el-times"> |
|
|
|
<el-form-item label="配送日期:" class="el-times"> |
|
|
|
<el-date-picker |
|
|
|
<el-date-picker |
|
|
|
v-model="query.taskTime" |
|
|
|
class="w100" |
|
|
|
type="date" |
|
|
|
v-model="query.taskTimeArr" |
|
|
|
placeholder="选择日期" |
|
|
|
type="daterange" |
|
|
|
format="YYYY-MM-DD " |
|
|
|
unlink-panels |
|
|
|
|
|
|
|
range-separator="至" |
|
|
|
|
|
|
|
start-placeholder="开始时间" |
|
|
|
|
|
|
|
end-placeholder="结束时间" |
|
|
|
|
|
|
|
:shortcuts="shortcuts" |
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
|
|
|
clearable |
|
|
|
> |
|
|
|
> |
|
|
|
</el-date-picker> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="配送类型:"> |
|
|
|
<el-form-item label="配送类型:"> |
|
|
|
<el-select v-model="query.businessType" placeholder="请选择业务类型"> |
|
|
|
<el-select class="w100" v-model="query.businessType" placeholder="请选择业务类型"> |
|
|
|
<el-option :key="'1'" :value="'商配'">商配 </el-option> |
|
|
|
<el-option :key="'1'" :value="'商配'">商配 </el-option> |
|
|
|
<el-option :key="'2'" :value="'市配'">市配 </el-option> |
|
|
|
<el-option :key="'2'" :value="'市配'">市配 </el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="配送种类:"> |
|
|
|
<el-form-item label="配送种类:"> |
|
|
|
<el-select v-model="query.deliveryKind" placeholder="请选择业务类型"> |
|
|
|
<el-select class="w100" v-model="query.deliveryKind" placeholder="请选择业务类型"> |
|
|
|
<el-option :key="'1'" :value="'自主配送'">自主配送 </el-option> |
|
|
|
<el-option :key="'1'" :value="'自主配送'">自主配送 </el-option> |
|
|
|
<el-option :key="'2'" :value="'外协配送'">外协配送 </el-option> |
|
|
|
<el-option :key="'2'" :value="'外协配送'">外协配送 </el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="配送司机:"> |
|
|
|
<el-form-item label="配送司机:"> |
|
|
|
<el-select |
|
|
|
<el-select |
|
|
|
|
|
|
|
class="w100" |
|
|
|
v-model="query.driverName" |
|
|
|
v-model="query.driverName" |
|
|
|
filterable |
|
|
|
filterable |
|
|
|
placeholder="请输入司机名称" |
|
|
|
placeholder="请输入司机名称" |
|
|
@ -47,6 +57,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="配送车辆:"> |
|
|
|
<el-form-item label="配送车辆:"> |
|
|
|
<el-select |
|
|
|
<el-select |
|
|
|
|
|
|
|
class="w100" |
|
|
|
v-model="query.vehicleName" |
|
|
|
v-model="query.vehicleName" |
|
|
|
filterable |
|
|
|
filterable |
|
|
|
placeholder="请输入司机名称" |
|
|
|
placeholder="请输入司机名称" |
|
|
@ -318,7 +329,7 @@ import { getDriverList } from '@/api/basicdata/basicdataDriverArtery'; |
|
|
|
import { getVehicleList } from '@/api/basicdata/basicdataVehicle'; |
|
|
|
import { getVehicleList } from '@/api/basicdata/basicdataVehicle'; |
|
|
|
import print from '@/utils/print'; |
|
|
|
import print from '@/utils/print'; |
|
|
|
import { getBillLadingExport } from '@/api/distribution/distrilbutionBillLading'; |
|
|
|
import { getBillLadingExport } from '@/api/distribution/distrilbutionBillLading'; |
|
|
|
import { downloadXls, setNodeHeight } from '@/utils/util'; |
|
|
|
import { downloadXls, getObjType, setNodeHeight } from '@/utils/util'; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
@ -359,6 +370,36 @@ export default { |
|
|
|
form: {}, |
|
|
|
form: {}, |
|
|
|
// 选择行 |
|
|
|
// 选择行 |
|
|
|
selectionList: [], |
|
|
|
selectionList: [], |
|
|
|
|
|
|
|
/** 时间快捷选择设置 */ |
|
|
|
|
|
|
|
shortcuts: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
text: '最近一周', |
|
|
|
|
|
|
|
value: () => { |
|
|
|
|
|
|
|
const end = new Date(); |
|
|
|
|
|
|
|
const start = new Date(); |
|
|
|
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); |
|
|
|
|
|
|
|
return [start, end]; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
text: '最近一个月', |
|
|
|
|
|
|
|
value: () => { |
|
|
|
|
|
|
|
const end = new Date(); |
|
|
|
|
|
|
|
const start = new Date(); |
|
|
|
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); |
|
|
|
|
|
|
|
return [start, end]; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
text: '最近三个月', |
|
|
|
|
|
|
|
value: () => { |
|
|
|
|
|
|
|
const end = new Date(); |
|
|
|
|
|
|
|
const start = new Date(); |
|
|
|
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90); |
|
|
|
|
|
|
|
return [start, end]; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
columnList: [ |
|
|
|
columnList: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
prop: '', |
|
|
|
prop: '', |
|
|
@ -411,6 +452,16 @@ export default { |
|
|
|
fixed: false, |
|
|
|
fixed: false, |
|
|
|
sortable: true, |
|
|
|
sortable: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
prop: 'orderCode', |
|
|
|
|
|
|
|
label: '订单自编号', |
|
|
|
|
|
|
|
type: 3, |
|
|
|
|
|
|
|
values: '', |
|
|
|
|
|
|
|
width: '150', |
|
|
|
|
|
|
|
checkarr: [], |
|
|
|
|
|
|
|
fixed: false, |
|
|
|
|
|
|
|
sortable: true, |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
prop: 'typeName', |
|
|
|
prop: 'typeName', |
|
|
|
label: '配送类型', |
|
|
|
label: '配送类型', |
|
|
@ -471,6 +522,17 @@ export default { |
|
|
|
// fixed: false, |
|
|
|
// fixed: false, |
|
|
|
// sortable: true |
|
|
|
// sortable: true |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
|
|
|
|
// clineName |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
prop: 'clineName', |
|
|
|
|
|
|
|
label: '收货人', |
|
|
|
|
|
|
|
type: 1, |
|
|
|
|
|
|
|
values: '', |
|
|
|
|
|
|
|
width: '130', |
|
|
|
|
|
|
|
checkarr: [], |
|
|
|
|
|
|
|
fixed: false, |
|
|
|
|
|
|
|
sortable: true, |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
prop: 'customersNumber', |
|
|
|
prop: 'customersNumber', |
|
|
|
label: '配送客户数', |
|
|
|
label: '配送客户数', |
|
|
@ -1109,6 +1171,12 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(page, params = {}) { |
|
|
|
onLoad(page, params = {}) { |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (getObjType(this.query.taskTimeArr) === 'array') { |
|
|
|
|
|
|
|
params.taskTimeStart = this.query.taskTimeArr[0]; |
|
|
|
|
|
|
|
params.taskTimeEnd = this.query.taskTimeArr[1]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
|
|
|
getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
|
|
|
const data = res.data.data; |
|
|
|
const data = res.data.data; |
|
|
|
// eslint-disable-next-line no-empty |
|
|
|
// eslint-disable-next-line no-empty |
|
|
@ -1254,4 +1322,8 @@ export default { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
align-items: flex-end; |
|
|
|
align-items: flex-end; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.w100 { |
|
|
|
|
|
|
|
width: 100% !important; |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|