From 9f70fda4bf5c5303c81fc16b4c58fe944dc98cc6 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 20 Dec 2023 19:57:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E9=80=80=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/request2.js | 4 +- common/label.js | 9 +- mycomponents/qty/recommendQtyEdit.vue | 13 +- mycomponents/scan/winComScan.vue | 1 + pages/issue/record/issueRecord.vue | 57 +-- pages/issue/request/issueRequestCreate.vue | 1 - pages/productionReturn/coms/comReturn.vue | 455 +++++++++--------- .../productionReturn/coms/comReturnRecord.vue | 171 +++++++ .../productionReturn/record/returnToHold.vue | 2 +- .../productionReturn/record/returnToStore.vue | 2 +- pages/transfer/coms/comTransferRecord.vue | 1 + 11 files changed, 441 insertions(+), 275 deletions(-) create mode 100644 pages/productionReturn/coms/comReturnRecord.vue diff --git a/api/request2.js b/api/request2.js index 40a8fa64..94572f52 100644 --- a/api/request2.js +++ b/api/request2.js @@ -2566,8 +2566,8 @@ export function productionReturnRequestCreate(params) { */ export function productionReturnRecordSubmit(params) { return request({ - url: baseApi + "/wms/purchasereturn-request-main/submit", - method: "put", + url: baseApi + "/wms/productionreturn-record-main/create", + method: "post", data: params, }); } diff --git a/common/label.js b/common/label.js index 34e763c6..ea7dea30 100644 --- a/common/label.js +++ b/common/label.js @@ -5,6 +5,12 @@ import { getPackageByNumber } from '@/api/request2.js'; +import { + checkDirectoryItemExist, + getDirectoryItemArray +} from '@/common/directory.js'; + + export function getLabelInfo(scanMsg,headerType, callBack) { console.log('扫描信息:', scanMsg); @@ -15,7 +21,8 @@ export function getLabelInfo(scanMsg,headerType, callBack) { let header = items[0]; let version = items[1]; if ((header != undefined) && (version!=undefined)) { - if(header!=headerType){ + var hearList =getDirectoryItemArray(headerType) + if(!checkDirectoryItemExist(hearList,header)){ let labelResult = { label: { labelType: "", diff --git a/mycomponents/qty/recommendQtyEdit.vue b/mycomponents/qty/recommendQtyEdit.vue index feadfc8a..6f021fd1 100644 --- a/mycomponents/qty/recommendQtyEdit.vue +++ b/mycomponents/qty/recommendQtyEdit.vue @@ -67,7 +67,7 @@ data() { return { allQty: 0, - stdCount: 1, + stdCount: 0, labelQty: 0, recommendQty: 0 } @@ -107,17 +107,18 @@ openEditPopup() { this.$refs.popup.open('bottom') }, - openTaskEditPopup(recommendQty, handleQty,labelQty) { + openTaskEditPopup(recommendQty, handleQty, labelQty) { this.recommendQty = Number(recommendQty); this.labelQty = Number(labelQty); this.allQty = Number(handleQty) - setTimeout(res=>{ + setTimeout(res => { this.$refs.popup.open('bottom') - },500) + }, 500) }, openRecordEditPopup(labelQty) { this.recommendQty = 0; this.labelQty = Number(labelQty); + this.allQty = Number(labelQty) this.$refs.popup.open('bottom') }, closeEditPopup() { @@ -130,7 +131,9 @@ this.closeEditPopup(); }, calcQty(val) { - this.allQty = val * this.dataContent.stdPackQty; + if (val > 0) { + this.allQty = val * this.dataContent.stdPackQty; + } }, setValue() { // var recommendQty = Number(this.dataContent.qty); diff --git a/mycomponents/scan/winComScan.vue b/mycomponents/scan/winComScan.vue index 21191a55..7d041725 100644 --- a/mycomponents/scan/winComScan.vue +++ b/mycomponents/scan/winComScan.vue @@ -154,6 +154,7 @@ if (that.isShowHistory) { that.scanList.unshift(content); } + getLabelInfo(content,this.headerType, callback => { let scanResult = callback; if (scanResult.success) { diff --git a/pages/issue/record/issueRecord.vue b/pages/issue/record/issueRecord.vue index bba7bd1b..9bccea91 100644 --- a/pages/issue/record/issueRecord.vue +++ b/pages/issue/record/issueRecord.vue @@ -37,7 +37,6 @@ + + diff --git a/pages/productionReturn/record/returnToHold.vue b/pages/productionReturn/record/returnToHold.vue index 361fc623..49c87836 100644 --- a/pages/productionReturn/record/returnToHold.vue +++ b/pages/productionReturn/record/returnToHold.vue @@ -1,6 +1,6 @@ diff --git a/pages/productionReturn/record/returnToStore.vue b/pages/productionReturn/record/returnToStore.vue index c26f09f7..d23b8d76 100644 --- a/pages/productionReturn/record/returnToStore.vue +++ b/pages/productionReturn/record/returnToStore.vue @@ -1,6 +1,6 @@ diff --git a/pages/transfer/coms/comTransferRecord.vue b/pages/transfer/coms/comTransferRecord.vue index b4179202..667b2558 100644 --- a/pages/transfer/coms/comTransferRecord.vue +++ b/pages/transfer/coms/comTransferRecord.vue @@ -155,6 +155,7 @@ if (item == undefined) { var itemp = createItemInfo(balance, pack); let newDetail = createDetailInfo(balance, pack); // + newDetail.inventoryStatus ="OK" itemp.subList.push(newDetail); this.detailSource.push(itemp) } else {