|
|
|
@ -131,9 +131,7 @@
|
|
|
|
|
</div> |
|
|
|
|
</el-divider> |
|
|
|
|
|
|
|
|
|
<!-- 运单池 && 调度池 --> |
|
|
|
|
<!-- 列表模块 --> |
|
|
|
|
|
|
|
|
|
<!-- 运单信息 --> |
|
|
|
|
<div v-h5uShow="!search"> |
|
|
|
|
<el-form |
|
|
|
|
:inline="true" |
|
|
|
@ -181,6 +179,7 @@
|
|
|
|
|
v-model="details.type" |
|
|
|
|
tab-position="left" |
|
|
|
|
style="height: 100%; width: fit-content; flex: none" |
|
|
|
|
@tab-click="() => inputsc('', { prop: 'aaa' })" |
|
|
|
|
class="demo-tabs" |
|
|
|
|
> |
|
|
|
|
<el-tab-pane label="实际数据" name="real"></el-tab-pane> |
|
|
|
@ -193,7 +192,7 @@
|
|
|
|
|
class="w100" |
|
|
|
|
ref="oldColumnListNode" |
|
|
|
|
:columnList="details.detailsColumnList" |
|
|
|
|
:tableData="details.type === 'real' ? details.renderData : details.planData" |
|
|
|
|
:tableData="details.renderData" |
|
|
|
|
:loading="loadingObj.oldListLoading" |
|
|
|
|
@inputTxt="inputsc" |
|
|
|
|
@timeCheck="timesc" |
|
|
|
@ -201,6 +200,13 @@
|
|
|
|
|
@selection="selectionChange" |
|
|
|
|
:arraySpanMethod="row => arraySpanMethod(row)" |
|
|
|
|
> |
|
|
|
|
<template #default="slotProps"> |
|
|
|
|
<template v-if="slotProps.scope.column.label === '运单号'"> |
|
|
|
|
<el-text @click="() => handleGoWayBillDetail(slotProps.scope)">{{ |
|
|
|
|
slotProps.scope.row.waybillNo |
|
|
|
|
}}</el-text> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
</tablecmt> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -689,18 +695,12 @@ const initOriginWarehouseOrder = async (params = {}) => {
|
|
|
|
|
details.planData = []; |
|
|
|
|
|
|
|
|
|
data.carsLoadWaybillInfoList.forEach(val => { |
|
|
|
|
const _arr = []; |
|
|
|
|
|
|
|
|
|
details.oldData.push( |
|
|
|
|
...val.carsLoadOrderInfoList.map((item, index) => { |
|
|
|
|
item = { ...val, ...item }; |
|
|
|
|
const _planArr: any = { ...val, ...item }; |
|
|
|
|
delete item.carsLoadOrderInfoList; |
|
|
|
|
delete item.carsLoadOrderInfoListPlan; |
|
|
|
|
delete _planArr.carsLoadOrderInfoList; |
|
|
|
|
delete _planArr.carsLoadOrderInfoListPlan; |
|
|
|
|
|
|
|
|
|
_arr.push(_planArr); |
|
|
|
|
|
|
|
|
|
if (index === 0) item.mergeColumnIndex = val.carsLoadOrderInfoList.length; |
|
|
|
|
else { |
|
|
|
@ -713,7 +713,22 @@ const initOriginWarehouseOrder = async (params = {}) => {
|
|
|
|
|
}) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
details.planData.push(..._arr); |
|
|
|
|
details.planData.push( |
|
|
|
|
...val.carsLoadOrderInfoListPlan.map((item, index) => { |
|
|
|
|
item = { ...val, ...item }; |
|
|
|
|
delete item.carsLoadOrderInfoList; |
|
|
|
|
delete item.carsLoadOrderInfoListPlan; |
|
|
|
|
|
|
|
|
|
if (index === 0) item.mergeColumnIndex = val.carsLoadOrderInfoListPlan.length; |
|
|
|
|
else { |
|
|
|
|
item.mergeColumnIndex = 0; |
|
|
|
|
for (let value of mergeColumn) { |
|
|
|
|
item[value] = ''; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return item; |
|
|
|
|
}) |
|
|
|
|
); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
inputsc('', { prop: 'aaa' }); |
|
|
|
@ -846,11 +861,13 @@ const inputsc = (value, row) => {
|
|
|
|
|
|
|
|
|
|
details.query[row.prop] = reg; |
|
|
|
|
|
|
|
|
|
const nowData = details.type === 'real' ? details.oldData : details.planData; |
|
|
|
|
|
|
|
|
|
if (value === '') delete details.query[row.prop]; |
|
|
|
|
|
|
|
|
|
if (Object.keys(details.query).length === 0) return (details.renderData = details.oldData); |
|
|
|
|
if (Object.keys(details.query).length === 0) return (details.renderData = nowData); |
|
|
|
|
|
|
|
|
|
const _data = details.oldData.filter(value => { |
|
|
|
|
const _data = nowData.filter(value => { |
|
|
|
|
let _flag = true; |
|
|
|
|
for (let key in details.query) { |
|
|
|
|
if (!details.query[key].test(value[key])) _flag = false; |
|
|
|
@ -917,7 +934,7 @@ const setnewcolum = (newarr, headarr, type) => {
|
|
|
|
|
/** 合并行 */ |
|
|
|
|
const arraySpanMethod = (row: any) => { |
|
|
|
|
console.log('123 :>> ', 123); |
|
|
|
|
if (details.type === 'plan') return; |
|
|
|
|
// if (details.type === 'plan') return; |
|
|
|
|
|
|
|
|
|
const { column } = row; |
|
|
|
|
if (mergeColumn.indexOf(column.property) !== -1) { |
|
|
|
@ -975,6 +992,19 @@ const handleCheckTab = e => {
|
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
/** 跳转到运单详情 */ |
|
|
|
|
const handleGoWayBillDetail = ({ row }) => { |
|
|
|
|
if (row.waybillNo === '————') return ElMessage.warning('暂无运单号'); |
|
|
|
|
|
|
|
|
|
$router.push({ |
|
|
|
|
path: '/distribution/inventory/BookingNote', |
|
|
|
|
query: { |
|
|
|
|
name: `查看 -- 【${row.waybillNo}】`, |
|
|
|
|
waybillNo: row.waybillNo, |
|
|
|
|
id: row.waybillId, |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** 关闭页面 */ |
|
|
|
|
const back = () => { |
|
|
|
|