From 80be506abf8a16ab62e4fe455a8cfee047986101 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Wed, 18 Sep 2024 17:47:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/warehouse/warehouseRetentionRecord.js | 17 +- src/option/basicdata/BackStockTask.js | 207 ++++++++ src/option/finance/WaybillAudit.js | 63 ++- .../deliverylist/distributionDeliveryList.vue | 54 +-- .../distributionDeliveryListdis.vue | 30 +- .../distributionDeliveryListedt.vue | 191 +++----- .../distributionDeliveryListmar.vue | 3 +- .../distribution/inventory/BackStockTask.vue | 445 ++++++++++++++++++ .../warehouseRetentionRecord.vue | 9 +- src/views/waybill/TemporaryStorageList.vue | 12 +- 10 files changed, 819 insertions(+), 212 deletions(-) create mode 100644 src/option/basicdata/BackStockTask.js create mode 100644 src/views/distribution/inventory/BackStockTask.vue diff --git a/src/api/warehouse/warehouseRetentionRecord.js b/src/api/warehouse/warehouseRetentionRecord.js index 8576ffa9..aa7bad40 100644 --- a/src/api/warehouse/warehouseRetentionRecord.js +++ b/src/api/warehouse/warehouseRetentionRecord.js @@ -38,13 +38,13 @@ export const getDetail = id => { * @param id * @returns {*} */ -export const getRetentionPackageByType = (retentionId,type) => { +export const getRetentionPackageByType = (retentionId, type) => { return request({ url: '/api/logpm-warehouse/warehouseRetentionRecord/getRetentionPackageByType', method: 'get', params: { retentionId, - type + type, }, }); }; @@ -94,7 +94,7 @@ export const $_RetentionWarehouseRetentionRecord = params => { responseType: 'blob', }); }; - + export const $_warehouseRetentionRecordPage = params => { return request({ url: '/api/logpm-warehouse/warehouseRetentionScan/page', @@ -111,4 +111,13 @@ export const $_warehouseRetentionScan = params => { params, responseType: 'blob', }); -}; \ No newline at end of file +}; + +/** 回库任务列表 */ +export const getNewPage = params => { + return request({ + url: '/api/logpm-warehouse/warehouseRetentionScan/newPage', + method: 'get', + params, + }); +}; diff --git a/src/option/basicdata/BackStockTask.js b/src/option/basicdata/BackStockTask.js new file mode 100644 index 00000000..edbbc12f --- /dev/null +++ b/src/option/basicdata/BackStockTask.js @@ -0,0 +1,207 @@ +export default [ + { + prop: '', + label: '复选框', + type: 0, + width: 55, + fixed: true, + }, + { + prop: '', + label: '序号', + type: 12, + values: '', + width: 55, + fixed: true, + }, + { + label: '配送回库任务编号', + prop: 'taskCode', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '回库任务类型', + prop: 'retentionTypeName', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '包条码', + prop: 'orderPackageCode', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '订单编号', + prop: 'orderCode', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '运单编号', + prop: 'waybillNumber', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '配送类型', + prop: 'deliveryTypeName', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '货物类型', + prop: 'conditionsName', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '预约编号', + prop: 'reservationCode', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '配送车次', + prop: 'trainNumber', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '装车车牌', + prop: 'vehicleNumber', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '件数', + prop: 'retentionQuantity', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '物料编码', + prop: 'materialNumber', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '物料名称', + prop: 'materialName', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '创建时间', + prop: 'createTime', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '仓库名称', + prop: 'warehouseName', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '任务状态', + prop: 'confirmStatusName', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '回库操作人员', + prop: 'retentionScanUsername', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '回库时间', + prop: 'retentionScanTime', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '操作', + prop: '', + type: 6, + values: '', + width: '200', + checkarr: [], + fixed: 'right', + sortable: true, + }, +]; diff --git a/src/option/finance/WaybillAudit.js b/src/option/finance/WaybillAudit.js index 59df455c..b32f8408 100644 --- a/src/option/finance/WaybillAudit.js +++ b/src/option/finance/WaybillAudit.js @@ -37,7 +37,7 @@ export const columnList = [ head: false, }, { - prop: 'orderCode', + prop: 'orderNo', label: '订单编号', type: 1, values: '', @@ -48,7 +48,7 @@ export const columnList = [ head: false, }, { - prop: 'createTime', + prop: 'shipper', label: '发货单位', type: 1, values: '', @@ -59,7 +59,7 @@ export const columnList = [ head: false, }, { - prop: 'userName', + prop: 'consignee', label: '收货单位', type: 1, values: '', @@ -70,7 +70,7 @@ export const columnList = [ head: false, }, { - prop: 'templateType', + prop: 'waybillType', label: '运单类型', type: 1, values: '', @@ -81,7 +81,7 @@ export const columnList = [ head: false, }, { - prop: 'templateType', + prop: 'serviceType', label: '服务类型', type: 1, values: '', @@ -92,7 +92,7 @@ export const columnList = [ head: false, }, { - prop: 'templateType', + prop: 'waybillStatus', label: '运单状态', type: 1, values: '', @@ -104,7 +104,7 @@ export const columnList = [ }, { prop: 'templateType', - label: '运单标识', + label: '是否改单', type: 1, values: '', width: '150', @@ -114,7 +114,7 @@ export const columnList = [ head: false, }, { - prop: 'templateType', + prop: 'createTime', label: '开单时间', type: 1, values: '', @@ -125,7 +125,7 @@ export const columnList = [ head: false, }, { - prop: 'templateType', + prop: 'goodsName', label: '货物品类', type: 1, values: '', @@ -158,7 +158,7 @@ export const columnList = [ head: false, }, { - prop: 'templateType', + prop: 'totalCount', label: '总件数', type: 1, values: '', @@ -169,7 +169,7 @@ export const columnList = [ head: false, }, { - prop: 'templateType', + prop: 'totalWeight', label: '总重量', type: 1, values: '', @@ -180,7 +180,7 @@ export const columnList = [ head: false, }, { - prop: 'templateType', + prop: 'totalVolume', label: '总体积', type: 1, values: '', @@ -191,7 +191,7 @@ export const columnList = [ head: false, }, { - prop: 'templateType', + prop: 'totalFreight', label: '总费用', type: 1, values: '', @@ -201,6 +201,17 @@ export const columnList = [ sortable: true, head: false, }, + { + prop: 'templateType', + label: '开单价', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, { prop: 'templateType', label: '预估总费用', @@ -246,7 +257,7 @@ export const columnList = [ head: false, }, { - prop: 'templateType', + prop: 'pickupFee', label: '提货费', type: 1, values: '', @@ -421,6 +432,28 @@ export const columnList = [ sortable: true, head: false, }, + { + prop: 'templateType', + label: '超区公里数', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'templateType', + label: '超区公里费', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, { prop: 'templateType', label: '安装费', @@ -500,7 +533,7 @@ export const columnList = [ }, { prop: 'templateType', - label: '发货手机号', + label: '发货人手机号', type: 1, values: '', width: '150', diff --git a/src/views/distribution/deliverylist/distributionDeliveryList.vue b/src/views/distribution/deliverylist/distributionDeliveryList.vue index c69773dc..a0728b02 100644 --- a/src/views/distribution/deliverylist/distributionDeliveryList.vue +++ b/src/views/distribution/deliverylist/distributionDeliveryList.vue @@ -334,7 +334,7 @@ import dayjs from 'dayjs'; export default { data() { return { - currentdate:true, + currentdate: true, height: 0, // 弹框标题 title: '', @@ -734,18 +734,17 @@ export default { getDriverList(1, 10, '').then(res => { const data = res.data.data; let po = []; - if(data.records?.length){ + if (data.records?.length) { data.records.forEach(item => { - let a = { - dictKey: item.id, - dictValue: item.name, - }; - po.push(a); - }); - this.driverData = po; - rv(res.data.data.records); + let a = { + dictKey: item.id, + dictValue: item.name, + }; + po.push(a); + }); + this.driverData = po; + rv(res.data.data.records); } - }); }); }, @@ -861,7 +860,8 @@ export default { this.$router.push({ path: '/distribution/deliverylist/distributionDeliveryListedt', query: { - data: encodeURIComponent(JSON.stringify(row)), + // data: encodeURIComponent(JSON.stringify(row)), + id: row.id, name: row.trainNumber + '-查看配送', }, }); @@ -1022,6 +1022,7 @@ export default { path: '/distribution/deliverylist/distributionDeliveryListedt', query: { data: encodeURIComponent(JSON.stringify(row)), + id: row.id, name: row.trainNumber + '-查看配送', }, }); @@ -1085,21 +1086,21 @@ export default { this.page.pageSize = pageSize; this.onLoad(this.page); }, - Getcurrentdate(){ -// 获取当前日期 -const currentDate = dayjs(); -// 计算一个月前的日期 -const startDate = currentDate.subtract(1, 'month'); -// 格式化日期为 'YYYY-MM-DD' -const formatDate = (date) => date.format('YYYY-MM-DD'); -this.query.taskTimeArr = [] -this.query.taskTimeArr[0] = formatDate(startDate), // 一个月前的日期 -this.query.taskTimeArr[1] = formatDate(currentDate) // 当前日期 + Getcurrentdate() { + // 获取当前日期 + const currentDate = dayjs(); + // 计算一个月前的日期 + const startDate = currentDate.subtract(1, 'month'); + // 格式化日期为 'YYYY-MM-DD' + const formatDate = date => date.format('YYYY-MM-DD'); + this.query.taskTimeArr = []; + (this.query.taskTimeArr[0] = formatDate(startDate)), // 一个月前的日期 + (this.query.taskTimeArr[1] = formatDate(currentDate)); // 当前日期 }, - async onLoad(page, params = {}) { + async onLoad(page, params = {}) { this.loading = true; - if(this.currentdate){ - await this.Getcurrentdate() + if (this.currentdate) { + await this.Getcurrentdate(); } if (getObjType(this.query.taskTimeArr) === 'array') { params.taskTimeStart = this.query.taskTimeArr[0]; @@ -1107,7 +1108,6 @@ this.query.taskTimeArr[1] = formatDate(currentDate) // 当前日期 } getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { - const data = res.data.data; // eslint-disable-next-line no-empty for (let i = 0; i < data.records.length; i++) { @@ -1134,7 +1134,7 @@ this.query.taskTimeArr[1] = formatDate(currentDate) // 当前日期 this.page.total = data.total; this.data = data.records; this.loading = false; - this.currentdate=false + this.currentdate = false; this.selectionClear(); }); getstatistics(page.currentPage, page.pageSize, Object.assign(params, this.query)).then( diff --git a/src/views/distribution/deliverylist/distributionDeliveryListdis.vue b/src/views/distribution/deliverylist/distributionDeliveryListdis.vue index 10d78949..319f8f8b 100644 --- a/src/views/distribution/deliverylist/distributionDeliveryListdis.vue +++ b/src/views/distribution/deliverylist/distributionDeliveryListdis.vue @@ -92,7 +92,7 @@ -
+
@@ -152,13 +152,9 @@ >