diff --git a/src/option/distribution/addVehicleStowage.js b/src/option/distribution/addVehicleStowage.js index d784664f..e6a0f35b 100644 --- a/src/option/distribution/addVehicleStowage.js +++ b/src/option/distribution/addVehicleStowage.js @@ -597,7 +597,7 @@ export const detailsColumnList = [ { prop: 'waybillNo', label: '运单号', - type: 2, + type: 13, values: '', width: '130', checkarr: [], diff --git a/src/views/basicdata/ConfigureBillingAndWarehousing/list.vue b/src/views/basicdata/ConfigureBillingAndWarehousing/list.vue index fd27b961..67f60e8d 100644 --- a/src/views/basicdata/ConfigureBillingAndWarehousing/list.vue +++ b/src/views/basicdata/ConfigureBillingAndWarehousing/list.vue @@ -149,16 +149,16 @@ - - - +
@@ -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)" > +
@@ -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 = () => { diff --git a/src/views/distribution/inventory/distrilbutionBillLadingList.vue b/src/views/distribution/inventory/distrilbutionBillLadingList.vue index dc30550d..a86c87ac 100644 --- a/src/views/distribution/inventory/distrilbutionBillLadingList.vue +++ b/src/views/distribution/inventory/distrilbutionBillLadingList.vue @@ -1,5 +1,5 @@