From 825343562e7fa6fc0d4a59e7d8f8d75784865ea8 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 13 Jun 2024 16:30:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/request2.js | 11 + src/hybrid/html/pointPutawayJob.html | 112 ++++++ src/pages.json | 6 + src/pages/pointPutawayJob/index.vue | 319 ++++++++++++++++++ .../purchaseReceipt/job/receiptDetail.vue | 54 ++- 5 files changed, 496 insertions(+), 6 deletions(-) create mode 100644 src/hybrid/html/pointPutawayJob.html create mode 100644 src/pages/pointPutawayJob/index.vue diff --git a/src/api/request2.js b/src/api/request2.js index 8d95d217..9cecc192 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -4149,3 +4149,14 @@ export function isCheckMesCode(code) { data: {}, }); } + +/** + * 获取上架任务打印明细 + * @param {*} + */ +export function getJimuPutawayJobDetail(ids) { + return request({ + url: baseApi + "/wms/jimu-report/getPutawayJobDetailForPDA?masterIds="+ids, + method: "get", + }); +} diff --git a/src/hybrid/html/pointPutawayJob.html b/src/hybrid/html/pointPutawayJob.html new file mode 100644 index 00000000..4b675aeb --- /dev/null +++ b/src/hybrid/html/pointPutawayJob.html @@ -0,0 +1,112 @@ + + + + + + + + + + + + mainBody + + + \ No newline at end of file diff --git a/src/pages.json b/src/pages.json index 4915d014..ec171383 100644 --- a/src/pages.json +++ b/src/pages.json @@ -2059,6 +2059,12 @@ "navigationBarTitleText": "打印", "enablePullDownRefresh": false } + },{ + "path": "pages/pointPutawayJob/index", + "style": { + "navigationBarTitleText": "打印", + "enablePullDownRefresh": false + } }, { "path": "pages/print/index", diff --git a/src/pages/pointPutawayJob/index.vue b/src/pages/pointPutawayJob/index.vue new file mode 100644 index 00000000..7147a978 --- /dev/null +++ b/src/pages/pointPutawayJob/index.vue @@ -0,0 +1,319 @@ + + + + + \ No newline at end of file diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue index 536141d0..0ee548a5 100644 --- a/src/pages/purchaseReceipt/job/receiptDetail.vue +++ b/src/pages/purchaseReceipt/job/receiptDetail.vue @@ -64,7 +64,8 @@ purchaseReceiptJobSubmit, getPurchaseReceiptJobDetail, takePurchaseReceiptJob, - cancleTakePurchaseReceiptJob + cancleTakePurchaseReceiptJob, + getPutawayJobList } from '@/api/request2.js'; import { @@ -451,12 +452,53 @@ if (res.success) { this.managementList = res.list; var params = this.setParams() - console.log("提交参数", JSON.stringify(params)); - purchaseReceiptJobSubmit(params).then(res => { - uni.hideLoading() if (res.data) { - this.showCommitSuccessMessage("提交成功
生成采购收货记录
" + res.data) + // this.showCommitSuccessMessage("提交成功
生成采购收货记录

将跳转到打印页面
" + res.data) + uni.showLoading({ + title: "提交成功,将跳转到打印页面", + mask: true + }); + // 获取上架任务 + let timerCount = 0 + const timer1 = setInterval(async ()=>{ + if(timerCount == 10){ + clearInterval(timer1) + uni.showLoading({ + title: "跳转打印页面失败", + mask: true + }); + return; + } + await getPutawayJobList({ + filters: [{ + column: "purchaseReceiptRecordNumber", + action: "in", + value: res.data + }], + pageNo: 1, + pageSize: 1000, + }).then(res=>{ + timerCount = timerCount + 1 + console.log(11111) + if(res.data && res.data.list&&res.data.list.length){ + uni.hideLoading() + clearInterval(timer1) + const dataParams = { + toLocationCode: res.data.list[0].toLocationCode, + number: res.data.list[0].number, + creator: res.data.list[0].creator, + createTime: res.data.list[0].createTime, + ids : res.data.list.map(item=>item.masterId).join(',') + } + console.log(dataParams) + uni.navigateTo({ + url:'/pages/pointPutawayJob/index?data='+encodeURIComponent(JSON.stringify(dataParams)) + }) + } + }) + },1000) + } else { this.showErrorMessage("提交失败[" + res.msg + "]") } @@ -611,7 +653,7 @@ showCommitSuccessMessage(hint) { this.$refs.comMessage.showSuccessMessage(hint, res => { - navigateBack(1) + // navigateBack(1) }) }, } From 556dbfbbe61eacd7f832845dfe4e263ae9ef8e19 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Thu, 13 Jun 2024 18:40:55 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=A1=A5=E6=96=99=E8=AF=A6=E6=83=85--?= =?UTF-8?q?=E7=BC=96=E8=BE=91--=E8=AE=A1=E7=AE=97=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/repleinsh/coms/comScanReplishPack.vue | 2 +- src/pages/repleinsh/job/repleinshDetail.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/repleinsh/coms/comScanReplishPack.vue b/src/pages/repleinsh/coms/comScanReplishPack.vue index 43ca82bc..5e8eda57 100644 --- a/src/pages/repleinsh/coms/comScanReplishPack.vue +++ b/src/pages/repleinsh/coms/comScanReplishPack.vue @@ -185,7 +185,7 @@ import { getDirectoryItemArray } from '../../../common/directory.js'; let that = this; that.fromLocationList = []; if (that.dataContent != null) { - that.fromInventoryStatuses = getDirectoryItemArray(this.jobContent.outInventoryStatuses) + that.fromInventoryStatuses = this.jobContent.outInventoryStatuses that.toLocation = that.dataContent[0]; that.toLocationCode = that.dataContent[0].toLocationCode; that.fromLocationList = that.getFromLocationList(); diff --git a/src/pages/repleinsh/job/repleinshDetail.vue b/src/pages/repleinsh/job/repleinshDetail.vue index f51b51c2..53ec9d9d 100644 --- a/src/pages/repleinsh/job/repleinshDetail.vue +++ b/src/pages/repleinsh/job/repleinshDetail.vue @@ -413,6 +413,7 @@ }) batch.handleQty = handleQty; itemHandleQty = calc.add(itemHandleQty, handleQty) + this.$refs.comScanIssuePack.calcBatchHandleQty(batch) } }) }