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 {