diff --git a/src/common/basic.js b/src/common/basic.js index fc2935cf..213ca785 100644 --- a/src/common/basic.js +++ b/src/common/basic.js @@ -726,23 +726,22 @@ export function getPackingNumberAndBatch(managementList, itemCode, packingNumber return itemInfo; } -// //提示是否消息 -// export function showConfirmMsg(content, callback) { -// uni.showModal({ -// title: '提示', -// cancelText: '否', -// confirmText: '是', -// content: content, -// success: function(res) { -// if (res.confirm) { -// callback(true); -// } else { -// callback(false); -// } -// }, -// }) -// scanErrorAudio(); -// } +// 提示是否消息 +export function showConfirmMsg(content, callback) { + uni.showModal({ + title: '提示', + cancelText: '否', + confirmText: '是', + content: content, + success: function(res) { + if (res.confirm) { + callback(true); + } else { + callback(false); + } + }, + }) +} export function compare(key) { return function(a, b) { var val1 = a[key]; diff --git a/src/mycomponents/scan/winComScanBalance.vue b/src/mycomponents/scan/winComScanBalance.vue index 6e379343..efc26619 100644 --- a/src/mycomponents/scan/winComScanBalance.vue +++ b/src/mycomponents/scan/winComScanBalance.vue @@ -124,6 +124,9 @@ export default { this.showErrorMessage(hint) } else if (res.data.length == 1) { result.balance = res.data[0] + if (result.label.packingNumber != result.balance.packingNumber) { + result.balance.lableQty = result.label.qty + } this.$emit('getBalance', result) // this.closeScanPopup() } else { diff --git a/src/pages/container/record/containerBindRecord.vue b/src/pages/container/record/containerBindRecord.vue index cafff521..6b46b8be 100644 --- a/src/pages/container/record/containerBindRecord.vue +++ b/src/pages/container/record/containerBindRecord.vue @@ -79,6 +79,11 @@ const scanLocationPopup = ref() const scanContainer = ref() const scanPopup = ref() const comMessageRef = ref() +onLoad((option) => { + uni.setNavigationBarTitle({ + title: option.title + }) +}) onNavigationBarButtonTap((e) => { if (e.index === 0) { goHome() diff --git a/src/pages/container/record/containerUnBindRecord.vue b/src/pages/container/record/containerUnBindRecord.vue index af7d0981..a82edea5 100644 --- a/src/pages/container/record/containerUnBindRecord.vue +++ b/src/pages/container/record/containerUnBindRecord.vue @@ -1,383 +1,355 @@ - + diff --git a/src/pages/fg/receiptByPlan.vue b/src/pages/fg/receiptByPlan.vue index 1a5498cf..dd0a098b 100644 --- a/src/pages/fg/receiptByPlan.vue +++ b/src/pages/fg/receiptByPlan.vue @@ -1,5 +1,14 @@ - + - + diff --git a/src/pages/package/record/mergePackageRecord.vue b/src/pages/package/record/mergePackageRecord.vue index 8115c0d1..79a8cde6 100644 --- a/src/pages/package/record/mergePackageRecord.vue +++ b/src/pages/package/record/mergePackageRecord.vue @@ -1,390 +1,361 @@ diff --git a/src/pages/package/record/overPackageRecord.vue b/src/pages/package/record/overPackageRecord.vue index 1caf5bbd..6064a0b4 100644 --- a/src/pages/package/record/overPackageRecord.vue +++ b/src/pages/package/record/overPackageRecord.vue @@ -107,7 +107,7 @@ const scanPopup = ref() const scanLocationCode = ref() const toPackUnit = ref() const comMessageRef = ref() -onShow(() => { +onLoad(() => { getBusinessType() }) onLoad((option) => { @@ -205,6 +205,9 @@ const setData = (result) => { } const itemp = createItemInfo(balance, pack) const newDetail = createDetailInfo(balance, pack) // + if (balance.lableQty) { + newDetail.handleQty = balance.lableQty + } itemp.subList.push(newDetail) detailSource.value.push(itemp) itemCode.value = balance.itemCode @@ -219,6 +222,9 @@ const setData = (result) => { console.log(detail) if (detail == undefined) { const newDetail = createDetailInfo(balance, pack) + if (balance.lableQty) { + newDetail.handleQty = balance.lableQty + } item.subList.push(newDetail) scanPopupGetFocus() } else if (detail.scaned == true) { @@ -261,18 +267,6 @@ const openScanPopup = () => { } } -const showFromLocationPopup = () => { - nextTick(() => { - const overPackageRecord = uni.getStorageSync('overPackageRecord') - - if (overPackageRecord) { - scanLocationCode.value.openScanPopupSimulate(overPackageRecord) - } else { - scanLocationCode.value.openScanPopup() - } - }) -} - const closeScanPopup = () => { if (scanPopup.value) { scanPopup.value.closeScanPopup() @@ -404,22 +398,14 @@ const afterCloseMessage = () => { const closeScanMessage = () => { scanPopupGetFocus() } -const getLocation = (location, code) => { - if (code) { - uni.setStorageSync('overPackageRecord', code) - } - getFromLocationCode(location, code) -} -const getFromLocationCode = (location, code) => { - fromLocationCode.value = code - openScanPopup() -} + const showCommitSuccessMessage = (hint, pointData) => { comMessageRef.value.showSuccessMessage(hint, (res) => { if (res) { detailSource.value = [] fromLocationCode.value = '' dataContent.value = {} + itemCode.value = '' if (pointData.length > 0) { uni.navigateTo({ url: `/pages/point/index?points=${JSON.stringify(pointData)}` diff --git a/src/pages/package/record/splitPackageRecord.vue b/src/pages/package/record/splitPackageRecord.vue index e0bbcad4..3ff4110c 100644 --- a/src/pages/package/record/splitPackageRecord.vue +++ b/src/pages/package/record/splitPackageRecord.vue @@ -1,351 +1,418 @@ - + \ No newline at end of file diff --git a/src/pages/productPutaway/job/productPutawayDetail.vue b/src/pages/productPutaway/job/productPutawayDetail.vue index 1199afa2..4239f1d3 100644 --- a/src/pages/productPutaway/job/productPutawayDetail.vue +++ b/src/pages/productPutaway/job/productPutawayDetail.vue @@ -274,6 +274,7 @@ const getScanResult = (result) => { } else if (!itemDetail.cancleScanedHiht && itemDetail.scaned) { showErrorMessage(`箱码【${packingNumber}】,批次【${batch}】库位【${result.fromLocationCode}】已经扫描`) } else { + itemDetail.cancleScanedHiht = false addDetail(itemDetail, result) return } diff --git a/src/pages/repleinsh/record/directRepleinshRecord.vue b/src/pages/repleinsh/record/directRepleinshRecord.vue index e2fc4b77..9372c07e 100644 --- a/src/pages/repleinsh/record/directRepleinshRecord.vue +++ b/src/pages/repleinsh/record/directRepleinshRecord.vue @@ -197,6 +197,9 @@ const setData = (result) => { newDetail.packingNumber = pack.number newDetail.packUnit = pack.packUnit newDetail.packQty = pack.packQty + if (balance.lableQty) { + newDetail.handleQty = balance.lableQty + } itemp.subList.push(newDetail) detailSource.value.push(itemp) itemCode.value = balance.itemCode @@ -213,6 +216,9 @@ const setData = (result) => { newDetail.packingNumber = pack.number newDetail.packUnit = pack.packUnit newDetail.packQty = pack.packQty + if (balance.lableQty) { + newDetail.handleQty = balance.lableQty + } item.subList.push(newDetail) scanPopupGetFocus() } else if (detail.scaned == true) {