diff --git a/api/user.js b/api/user.js index cebf088..b9e0dd3 100644 --- a/api/user.js +++ b/api/user.js @@ -1737,6 +1737,18 @@ export function pgetContractList(data) { }); } +/** + * 获取商城 + * @param {Object} data + */ +export function pgetgetMaterialName(data) { + return request({ + url: `logpm-warehouse/api/WarehouseTask/getMaterialName`, + method: "get", + data + }); +} + /** * 合同盘点页面初始化 * @param {Object} data diff --git a/pagesHome/pages/loadingRetention/loadingRetention.vue b/pagesHome/pages/loadingRetention/loadingRetention.vue index 11c51a3..9a0ae91 100644 --- a/pagesHome/pages/loadingRetention/loadingRetention.vue +++ b/pagesHome/pages/loadingRetention/loadingRetention.vue @@ -73,15 +73,14 @@ - 订单自编号{{item.orderCode}} + 订单自编号{{item.orderCode}} 预约单号{{item.reservationCode}} - + @@ -105,15 +104,14 @@ - 订单自编号{{item.orderCode}} + 订单自编号{{item.orderCode}} 预约单号{{item.reservationCode}} - + @@ -134,16 +132,14 @@ - 托盘码{{item[0].trayCode}} + 托盘码{{item[0].trayCode}} 托盘名称{{item[0].trayName?item[0].trayName:'暂无名称'}} - 托盘数量{{item.length}} + 托盘数量{{item.length}} @@ -362,7 +358,7 @@ // } }) - + }) } else { // 托盘接口 @@ -389,8 +385,8 @@ item.warehosueId = res.data.data.warehosueId; item.warehosueName = res.data.data.warehosueName; }) - - + + // 托盘分组 const groupedData = res.data.data.goodsList.reduce((acc, obj) => { const key = obj.trayCode; @@ -400,9 +396,9 @@ acc[key].push(obj); return acc; }, {}); - + DataList3.value.unshift(...Object.values(groupedData)) - + console.log(DataList3.value, '处理好的托盘'); } }) @@ -414,10 +410,15 @@ const tpArray = DataList3.value.reduce((acc, array) => acc.concat(array), []); // 合并托盘数组 const mergedArray = [...DataList1.value, ...DataList2.value, ...tpArray]; console.log(mergedArray, '提交处理好的数据'); + let loadingId = uni.getStorageSync('checkvehicle').id // StatusUpdate为真说明没有数据走新增接口===否则走更新接口 if (StatusUpdate.value) { $_saveRetentionList({ deliveryId: details.items.id, + trainNumber: details.items.trainNumber, + loadingId: loadingId, + assembleCarPersonId: details.items.driverId,// 司机ID + assembleCarPersonName: details.items.driverName,//司机名称 warehouseRetentionScanDTOS: mergedArray }).then(res => { console.log(res, '保存成功之后的返回值'); @@ -442,7 +443,7 @@ console.log(DataList3.value, '移除之后的参数'); }; // 移除按钮 - function RemoveData(val, indexs,index) { + function RemoveData(val, indexs, index) { // if (OrType.value == 1) { // removeItem(DataList1.value, indexs) // } diff --git a/pagesTask/pages/checkTaskList/checkTaskList.vue b/pagesTask/pages/checkTaskList/checkTaskList.vue index 9c81cde..70eb07a 100644 --- a/pagesTask/pages/checkTaskList/checkTaskList.vue +++ b/pagesTask/pages/checkTaskList/checkTaskList.vue @@ -70,7 +70,7 @@ - 搜索 + 搜索 @@ -155,7 +155,8 @@ getWarehouseTrayList, getWarehouseTaskAllocationDetailByStrip, postqueryContractList, - pgetContractList + pgetContractList, + getWarehouseTaskgetTaskConInfo } from '@/api/user.js'; import utils from '@/utils/utils.js'; import useSystemSettingsStore from '@/store/useSystemSettingsStore'; @@ -392,16 +393,27 @@ // 库位盘点 if (details.pageType === 2) { - getWarehouseTaskAllocationDetailByStrip({ + getWarehouseTaskAllocationList({ questId: details.id, allocationId: details.scancode, questNum: details.questNum }).then(res => { - console.log(res); - if (res.code != 403) { - console.log('跳转') + const { code, data } = res + console.log('res :>> ', res); + if (code === 200 && data) { + const info = { + allocationId: data[0].allocationId, + questId: details.id, + positionCode: data[0].positionCode, + type: data[0].goodsType, + marketName: details.marketName, + questNum: details.questNum, + pageType: details.pageType, + title: details.title + } + console.log('info :>> ', info); uni.navigateTo({ - url: `/pagesTask/pages/storageLocationCheckDetails/storageLocationCheckDetails?allocationId=${details.scancode}&questId=${details.id}&marketName=${JSON.stringify(details.marketName)}&questNum=${details.questNum}` + url: `/pagesTask/pages/dynamicCheckDetails/dynamicCheckDetails?info=${JSON.stringify(info)}` }) } }) @@ -409,8 +421,8 @@ } if (details.pageType == 3) { - postqueryContractList({ - taskId: details.id, + pgetContractList({ + questId: details.id, goodsType: selectedValue.value.value, warehouseId: details.warehouseId, type: '1', @@ -419,9 +431,23 @@ }).then(res => { console.log(res, 'res==='); utils.ttsspke(res.audio) - if (res.code != 3001) { - details.renderList = res.data + if (res.code !== 200) return + details.renderList = res.data.records + const data = res.data.records + const info = { + orderCode: data[0].orderCode, + questId: details.id, + orderId: data[0].orderId, + type: data[0].goodsType, + marketName: details.marketName, + questNum: details.questNum, + pageType: details.pageType, + title: details.title } + console.log('info :>> ', info); + uni.navigateTo({ + url: `/pagesTask/pages/dynamicCheckDetails/dynamicCheckDetails?info=${JSON.stringify(info)}` + }) }) return } diff --git a/pagesTask/pages/dynamicCheckDetails/dynamicCheckDetails.vue b/pagesTask/pages/dynamicCheckDetails/dynamicCheckDetails.vue index 9c27152..c268ce2 100644 --- a/pagesTask/pages/dynamicCheckDetails/dynamicCheckDetails.vue +++ b/pagesTask/pages/dynamicCheckDetails/dynamicCheckDetails.vue @@ -61,13 +61,13 @@