From af7db6a417729be99dc51021de2c5018c57ac2d3 Mon Sep 17 00:00:00 2001 From: "juncheng.li" Date: Wed, 12 Apr 2023 16:53:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PDA/mycomponents/coms/task/comReceipt.vue | 2 +- fe/PDA/pages/task/receipt.vue | 2 +- fe/PDA/pages/task/receipt_check.vue | 6 ++++-- fe/PDA/pages/task/receipt_detail.vue | 12 ++++++++---- fe/PDA/pages/task/receipt_result.vue | 15 +++++++-------- 5 files changed, 21 insertions(+), 16 deletions(-) diff --git a/fe/PDA/mycomponents/coms/task/comReceipt.vue b/fe/PDA/mycomponents/coms/task/comReceipt.vue index d2fef243b..683645db0 100644 --- a/fe/PDA/mycomponents/coms/task/comReceipt.vue +++ b/fe/PDA/mycomponents/coms/task/comReceipt.vue @@ -12,7 +12,7 @@ - {{receiptItem.arriveNoticeNumber}} + {{receiptItem.purchaseReceiptRequestNumber}} diff --git a/fe/PDA/pages/task/receipt.vue b/fe/PDA/pages/task/receipt.vue index 02272146a..7bfaebe94 100644 --- a/fe/PDA/pages/task/receipt.vue +++ b/fe/PDA/pages/task/receipt.vue @@ -226,7 +226,7 @@ mask: true }); let params = { - number: code, + asnNumber: code, isToday: that.isToday } getReceiptJobByAsnNumber(params).then(res => { diff --git a/fe/PDA/pages/task/receipt_check.vue b/fe/PDA/pages/task/receipt_check.vue index 4a8b8b322..f4223e695 100644 --- a/fe/PDA/pages/task/receipt_check.vue +++ b/fe/PDA/pages/task/receipt_check.vue @@ -134,6 +134,7 @@ let fileKey = file.FileKey; let fileName = file.FileName; getFileByCode(fileKey).then(res => { + let result = res; var byteString = atob(res.bytes) var arrayBuffer = new ArrayBuffer(byteString.length) // 创建缓冲数组 @@ -232,11 +233,12 @@ filesList: imgFiles }; let param = JSON.stringify(item); - console.log('param', param); + // console.log('param', param); //保存目检 saveReceiptResult(this.dataContent.masterID, param).then(res => { + console.log("保存",res) if (res != null) { - console.log('param', param); + // console.log('param', param); this.afterSave(); } uni.hideLoading(); diff --git a/fe/PDA/pages/task/receipt_detail.vue b/fe/PDA/pages/task/receipt_detail.vue index 215b29dab..f83de2535 100644 --- a/fe/PDA/pages/task/receipt_detail.vue +++ b/fe/PDA/pages/task/receipt_detail.vue @@ -33,7 +33,7 @@ 实际 - 数量({{item.recommendUom}}) + 数量({{item.uom}}) {{item.recommendQty}} @@ -233,6 +233,9 @@ res.details.sort(compareDesc('purchaseReceiptInspectStatus')); //按扫描信息排序 that.receiptJob = res; callBack(); + let params = JSON.stringify(that.receiptJob.details); + console.log("测试",params) + }) .catch(err => { this.showMessage(err.message); @@ -242,9 +245,9 @@ afterPurchase() { let that = this; //查询任务明细 - that.getJoDetail(() => { - this.calcScanCount(); - }) + that.getJoDetail(() => { + this.calcScanCount(); + }) }, //处理扫描解析的返回值 @@ -403,6 +406,7 @@ details.push(r.id); }) let param = JSON.stringify(details); + resetReceiptResult(that.id, param).then(res => { if (res != null) { that.getJoDetail(() => { diff --git a/fe/PDA/pages/task/receipt_result.vue b/fe/PDA/pages/task/receipt_result.vue index 1fa633bfc..244fb88eb 100644 --- a/fe/PDA/pages/task/receipt_result.vue +++ b/fe/PDA/pages/task/receipt_result.vue @@ -43,7 +43,7 @@ - 不合格数量:{{ item.recommendQty}}({{ item.recommendUom}}) + 不合格数量:{{ item.recommendQty}}({{ item.uom}})