From 1dc505dc31537f7906ed0f4274ffdd5737fe2999 Mon Sep 17 00:00:00 2001 From: "juncheng.li" Date: Thu, 13 Apr 2023 10:22:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PDA/api/index.js | 17 +++-- fe/PDA/pages/inventory/scrap.vue | 1 + fe/PDA/pages/note.js | 4 +- fe/PDA/pages/putaway/rapReceipt.vue | 2 - fe/PDA/pages/putaway/semiPutaway.vue | 30 ++++++++- .../pages/return/productionReturn_detail.vue | 12 ++-- fe/PDA/pages/return/returnToWarehouse.vue | 32 ++++++---- fe/PDA/pages/store/deliverRaw.vue | 2 + fe/PDA/pages/store/issueDirect.vue | 64 +++++++++---------- fe/PDA/pages/task/deliver_detail.vue | 15 +++-- fe/PDA/pages/task/issue_detail.vue | 22 ++++--- fe/PDA/pages/task/receipt_detail.vue | 3 - 12 files changed, 126 insertions(+), 78 deletions(-) diff --git a/fe/PDA/api/index.js b/fe/PDA/api/index.js index 7f41f8a1e..781a78663 100644 --- a/fe/PDA/api/index.js +++ b/fe/PDA/api/index.js @@ -253,9 +253,9 @@ export const getReceiptJobByNumber = (params) => request( //根据Asn Number 获取收货任务列表 export const getReceiptJobByAsnNumber = (params) => request( - devUrl + "/api/pda/job/purchase-receipt/list/by-asn/asnNumber=" + params.number + "&isToday=" + params - .isToday, { - data: {}, + devUrl + "/api/pda/job/purchase-receipt/list/by-asn" + , { + data: params, method: "get" }); @@ -664,7 +664,7 @@ export const finshIssueJob = (id, params) => request( }) //发货任务列表 export const getDeliverList = (params) => request( - 'devUrl' + "/api/pda/job/deliver/list", { + devUrl + "/api/pda/job/deliver/list", { method: 'get', data: params }); @@ -1199,11 +1199,20 @@ export const semiPutaway = (params) => request( // export const getPurchaseDetailAsync = (itemCode, packingCode) => promise( + devUrl + "/api/pda/store/purchase-receipt-request/detail-by-item-and-packing?itemCode=" + itemCode + '&packingCode=' + + packingCode, { // + data: {}, + method: "get" + }); + +export const getPurchaseDetailAsync_old = (itemCode, packingCode) => promise( devUrl + "/api/pda/store/purchase-receipt/detail-by-item-and-packing?itemCode=" + itemCode + '&packingCode=' + packingCode, { // data: {}, method: "get" }); + + export const getFileByCode = (fileCode) => request( devUrl + "/api/pda/file/filestore/by-code/" + fileCode, { // diff --git a/fe/PDA/pages/inventory/scrap.vue b/fe/PDA/pages/inventory/scrap.vue index 18c4faef9..a69202bde 100644 --- a/fe/PDA/pages/inventory/scrap.vue +++ b/fe/PDA/pages/inventory/scrap.vue @@ -197,6 +197,7 @@ selectedBalanceItem(balanceItem) { let item = this.createItem(balanceItem); this.itemList.unshift(item) + this.getLocationInfo(); }, createItem(item) { diff --git a/fe/PDA/pages/note.js b/fe/PDA/pages/note.js index 0ad89d6f1..f945b8238 100644 --- a/fe/PDA/pages/note.js +++ b/fe/PDA/pages/note.js @@ -20,5 +20,5 @@ Mes缴库: Mes缴库, 从线边到成品库或者半成品库 采购收货 待检 = 1, - 合格 = 2, - 不合格 = 3 +合格 = 2, +不合格 = 3 diff --git a/fe/PDA/pages/putaway/rapReceipt.vue b/fe/PDA/pages/putaway/rapReceipt.vue index 7197dce06..27137e512 100644 --- a/fe/PDA/pages/putaway/rapReceipt.vue +++ b/fe/PDA/pages/putaway/rapReceipt.vue @@ -275,8 +275,6 @@ }) let item = { worker: localStorage.userName, - company: localStorage.company, - warehouseCode: localStorage.warehouseCode, // details: that.itemList }; that.itemList.forEach(r => { diff --git a/fe/PDA/pages/putaway/semiPutaway.vue b/fe/PDA/pages/putaway/semiPutaway.vue index ee00dce2c..2b5671df5 100644 --- a/fe/PDA/pages/putaway/semiPutaway.vue +++ b/fe/PDA/pages/putaway/semiPutaway.vue @@ -420,7 +420,35 @@ r.toLocationGroup = this.toLocation.locationGroupCode, r.toStatus = i.status, r.toWarehouseCode = i.balanceItem.warehouseCode, - r.worker = localStorage.userName, + // ======================================== + + // r.recommendContainerCode = "", + // r.recommendPackingCode = r.packingCode, + // r.recommendSupplierBatch = "", + // r.recommendArriveDate = r.arriveDate, + // r.recommendProduceDate = "", + // r.recommendExpireDate = "", + // r.recommendLot = "", + // r.recommendToLocationCode = "", + // r.recommendToLocationArea = "", + // r.recommendToLocationGroup = "", + // r.recommendToLocationErpCode = "", + // r.recommendToWarehouseCode = "", + // r.recommendQty ": 0, + // r.handledContainerCode = "", + // r.handledPackingCode = r.packingCode, + // r.handledSupplierBatch = "", + // r.handledArriveDate = r.arriveDate, + // r.handledProduceDate = "", + // r.handledExpireDate = "", + // r.handledLot = r.lot, + // r.handledToLocationCode = this.toLocation.code, + // r.handledToLocationArea = this.toLocation.areaCode, + // r.handledToLocationGroup = this.toLocation.locationGroupCode, + // r.handledToLocationErpCode = this.toLocation.erpLocationCode, + // r.handledToWarehouseCode = i.balanceItem.warehouseCode, + // r.handledQty = 0, + item.details.push(r); }) }) diff --git a/fe/PDA/pages/return/productionReturn_detail.vue b/fe/PDA/pages/return/productionReturn_detail.vue index d8779c543..67ec79805 100644 --- a/fe/PDA/pages/return/productionReturn_detail.vue +++ b/fe/PDA/pages/return/productionReturn_detail.vue @@ -23,7 +23,7 @@ {{item.recommendQty}} - {{item.recommendUom}} + {{item.uom}} @@ -258,13 +258,13 @@ data.handledPackingCode = result.data.packingCode; data.handledLot = result.data.lot; data.handledQty = result.data.qty; - data.handledUom = result.data.uom ? '无' : result.data.uom; + data.uom = result.data.uom ? '无' : result.data.uom; data.handledBatch = data.recommendBatch; - data.handledLocationCode = data.recommendLocationCode; - data.handledLocationArea = data.recommendLocationArea - data.handledLocationGroup = data.recommendLocationGroup - data.handledLocationErpCode = data.recommendLocationErpCode + data.handledToLocationCode = data.recommendLocationCode; + data.handledToLocationArea = data.recommendLocationArea + data.handledToLocationGroup = data.recommendLocationGroup + data.handledToLocationErpCode = data.recommendLocationErpCode this.scanPopupGetFocus(); }, diff --git a/fe/PDA/pages/return/returnToWarehouse.vue b/fe/PDA/pages/return/returnToWarehouse.vue index 56c0d3b98..30e79eb18 100644 --- a/fe/PDA/pages/return/returnToWarehouse.vue +++ b/fe/PDA/pages/return/returnToWarehouse.vue @@ -537,29 +537,33 @@ //=========================================== detail.recommendContainerCode = balanceItem.containerCode; detail.recommendPackingCode = l.packingCode; - detail.recommendSupplierBatch = balanceItem.supplierBatch;; + detail.recommendSupplierBatch = balanceItem.supplierBatch; detail.recommendArriveDate = balanceItem.arriveDate; detail.recommendProduceDate = balanceItem.produceDate; detail.recommendExpireDate = balanceItem.expireDate; detail.recommendLot = l.lot; - detail.recommendToLocationCode = ""; - detail.recommendToLocationArea = ""; - detail.recommendToLocationGroup = ""; - detail.recommendToLocationErpCode = ""; + detail.recommendToLocationCode = l.toLocationCode ?? that.defaultToLocation.code; + detail.recommendToLocationArea = l.toLocationArea ?? that.defaultToLocation.areaCode; + detail.recommendToLocationGroup = l.toLocationGroup ?? that.defaultToLocation + .locationGroupCode; + detail.recommendToLocationErpCode = l.toLocationErpCode ?? that.defaultToLocation + .erpLocationCode; detail.recommendToWarehouseCode = balanceItem.warehouseCode; detail.recommendQty = l.qty; - detail.handledContainerCode = ""; - detail.handledPackingCode = ""; - detail.handledSupplierBatch = ""; + detail.handledContainerCode = balanceItem.containerCode; + detail.handledPackingCode = l.packingCode; + detail.handledSupplierBatch = balanceItem.supplierBatch; detail.handledArriveDate = balanceItem.arriveDate; detail.handledProduceDate = balanceItem.produceDate; detail.handledExpireDate = balanceItem.expireDate; - detail.handledLot = ""; - detail.handledToLocationCode = ""; - detail.handledToLocationArea = ""; - detail.handledToLocationGroup = ""; - detail.handledToLocationErpCode = ""; - detail.handledToWarehouseCode = ""; + detail.handledLot = l.lot; + detail.handledToLocationCode = l.toLocationCode ?? that.defaultToLocation.code; + detail.handledToLocationArea = l.toLocationArea ?? that.defaultToLocation.areaCode; + detail.handledToLocationGroup = l.toLocationGroup ?? that.defaultToLocation + .locationGroupCode; + detail.handledToLocationErpCode = l.toLocationErpCode ?? that.defaultToLocation + .erpLocationCode; + detail.handledToWarehouseCode = balanceItem.warehouseCode; detail.handledQty = l.qty; item.details.push(detail); }); diff --git a/fe/PDA/pages/store/deliverRaw.vue b/fe/PDA/pages/store/deliverRaw.vue index 2db5de61a..b0319c1ef 100644 --- a/fe/PDA/pages/store/deliverRaw.vue +++ b/fe/PDA/pages/store/deliverRaw.vue @@ -162,6 +162,7 @@ let itemInfo = that.itemList.find(r => { return r.itemCode == result.data.itemCode }) + if (itemInfo == undefined) { that.getBalance(result); } else { @@ -281,6 +282,7 @@ // item.produceDate = balanceItem.produceDate; // item.expireDate = balanceItem.expireDate; //================================================ + label.status = balanceItem.status; label.stdPackQty = balanceItem.stdPackQty; label.fromPackingCode = balanceItem.packingCode; label.toPackingCode = this.currentLabel.packingCode; diff --git a/fe/PDA/pages/store/issueDirect.vue b/fe/PDA/pages/store/issueDirect.vue index 13725ecdf..8593c0bdc 100644 --- a/fe/PDA/pages/store/issueDirect.vue +++ b/fe/PDA/pages/store/issueDirect.vue @@ -310,39 +310,39 @@ // item.arriveDate = balanceItem.arriveDate; // item.produceDate = balanceItem.produceDate; // item.expireDate = balanceItem.expireDate; - + // ==================================== - - - label.recommendContainerCode=balanceItem.containerCode; - label.recommendPackingCode=balanceItem.packingCode; - label.recommendSupplierBatch=balanceItem.supplierBatch;; - label.recommendArriveDate=balanceItem.arriveDate; - label.recommendProduceDate=balanceItem.produceDate; - label.recommendExpireDate= balanceItem.expireDate; - - label.recommendLot= balanceItem.lot;; - label.recommendFromLocationCode=balanceItem.locationCode; - label.recommendFromLocationArea=balanceItem.locationArea; - label.recommendFromLocationGroup=balanceItem.locationGroup; - label.recommendFromLocationErpCode=balanceItem.locationErpCode; - label.recommendFromWarehouseCode=localStorage.warehouseCode;; - label.recommendQty= balanceItem.qty; - label.handledContainerCode=balanceItem.containerCode; - label.handledPackingCode=balanceItem.packingCode;; - label.handledSupplierBatch= balanceItem.supplierBatch; - label.handledArriveDate=balanceItem.arriveDate; - label.handledProduceDate=balanceItem.produceDate; - label.handledExpireDate=balanceItem.expireDate; - - label.handledLot = balanceItem.lot; - label.handledToLocationCode = balanceItem.locationCode; - label.handledToLocationArea = balanceItem.locationArea; - label.handledToLocationGroup = balanceItem.locationGroup; - label.handledToLocationErpCode = balanceItem.locationErpCode; - label.handledToWarehouseCode = balanceItem.warehouseCode; - label.handledQty = balanceItem.qty; - item.labelList.unshift(label) + + + label.recommendContainerCode = balanceItem.containerCode; + label.recommendPackingCode = balanceItem.packingCode; + label.recommendSupplierBatch = balanceItem.supplierBatch;; + label.recommendArriveDate = balanceItem.arriveDate; + label.recommendProduceDate = balanceItem.produceDate; + label.recommendExpireDate = balanceItem.expireDate; + + label.recommendLot = balanceItem.lot;; + label.recommendFromLocationCode = balanceItem.locationCode; + label.recommendFromLocationArea = balanceItem.locationArea; + label.recommendFromLocationGroup = balanceItem.locationGroup; + label.recommendFromLocationErpCode = balanceItem.locationErpCode; + label.recommendFromWarehouseCode = localStorage.warehouseCode;; + label.recommendQty = balanceItem.qty; + label.handledContainerCode = balanceItem.containerCode; + label.handledPackingCode = balanceItem.packingCode;; + label.handledSupplierBatch = balanceItem.supplierBatch; + label.handledArriveDate = balanceItem.arriveDate; + label.handledProduceDate = balanceItem.produceDate; + label.handledExpireDate = balanceItem.expireDate; + + label.handledLot = balanceItem.lot; + label.handledToLocationCode = balanceItem.locationCode; + label.handledToLocationArea = balanceItem.locationArea; + label.handledToLocationGroup = balanceItem.locationGroup; + label.handledToLocationErpCode = balanceItem.locationErpCode; + label.handledToWarehouseCode = balanceItem.warehouseCode; + label.handledQty = balanceItem.qty; + item.labelList.unshift(label) }, calcScanCount(item) { diff --git a/fe/PDA/pages/task/deliver_detail.vue b/fe/PDA/pages/task/deliver_detail.vue index 5d5859933..7e6c7a830 100644 --- a/fe/PDA/pages/task/deliver_detail.vue +++ b/fe/PDA/pages/task/deliver_detail.vue @@ -33,13 +33,13 @@ 数量 - {{item.recommendQty}}({{item.recommendUom}}) + {{item.recommendQty}}({{item.uom}}) - {{item.handledQty}}({{item.recommendUom}}) + {{item.handledQty}}({{item.uom}}) @@ -72,7 +72,7 @@ {{ item.recommendLocationCode }} - {{ item.handledLocationCode }} + {{ item.handledFromLocationCode }} @@ -272,8 +272,15 @@ item.handledPackingCode = that.balancesItem.packingCode; item.handledBatch = that.balancesItem.batch; item.handledLot = that.balancesItem.lot; - item.handledLocationCode = that.balancesItem.locationCode; + item.handledFromLocationArea = that.balancesItem.locationCode; item.handledQty = that.balancesItem.qty; + + // "toLocationCode": "string", + // "toLocationArea": "string", + // "toLocationGroup": "string", + // "toLocationErpCode": "string", + // "toWarehouseCode": "string", + // "onTheWayLocationCode": "string" this.getScanCount(); this.closeScanPopup(); that.$forceUpdate(); diff --git a/fe/PDA/pages/task/issue_detail.vue b/fe/PDA/pages/task/issue_detail.vue index 5e91d8b7b..eb5c3b503 100644 --- a/fe/PDA/pages/task/issue_detail.vue +++ b/fe/PDA/pages/task/issue_detail.vue @@ -32,12 +32,12 @@ 数量 - {{item.recommendQty}}({{item.recommendUom}}) + {{item.recommendQty}}({{item.uom}}) {{item.handledQty}}({{item.recommendUom}}) + class="text_black">{{item.handledQty}}({{item.uom}}) @@ -66,10 +66,10 @@ 库位 - {{ item.recommendLocationCode }} + {{ item.recommendFromLocationCode }} - {{ item.handledLocationCode }} + {{ item.handledFromLocationCode }} @@ -415,12 +415,15 @@ item.handledLot = balanceItem.lot; item.handledQty = balanceItem.qty; - item.handledUom = balanceItem.uom; - item.handledLocationCode = balanceItem.locationCode; - item.handledLocationArea = balanceItem.locationArea; - item.handledLocationErpCode = balanceItem.locationErpCode; - item.handledLocationGroup = balanceItem.locationGroup; + item.handledFromLocationCode = balanceItem.locationCode; + item.handledFromLocationArea = balanceItem.locationArea; + item.handledFromLocationGroup = balanceItem.locationErpCode; + item.handledFromLocationErpCode = balanceItem.locationGroup; + + item.toLocationArea =balanceItem.locationArea; + item.toLocationGroup= balanceItem.locationGroup; + item.toLocationErpCode= balanceItem.locationErpCode; //当前扫描标签的信息 item.scanItemCode = this.currentScanLebel.data.itemCode; @@ -523,7 +526,6 @@ title: "提交中...", mask: true }); - that.datacontent.company = localStorage.company; that.datacontent.worker = localStorage.userName; that.datacontent.details = that.details; let params = JSON.stringify(that.datacontent); diff --git a/fe/PDA/pages/task/receipt_detail.vue b/fe/PDA/pages/task/receipt_detail.vue index f83de2535..47dfc70eb 100644 --- a/fe/PDA/pages/task/receipt_detail.vue +++ b/fe/PDA/pages/task/receipt_detail.vue @@ -233,9 +233,6 @@ 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);