From d02c8233047bee65c0b48108e806a08406d440c1 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 9 Sep 2024 17:22:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8C=89=E5=8C=85=E8=A3=85?= =?UTF-8?q?=E5=8F=B7=E6=9F=A5=E8=AF=A2=E5=BA=93=E5=AD=98=202024/7/22=2015:?= =?UTF-8?q?24:24?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/qty/countQtyEdit.vue | 8 +- src/mycomponents/scan/winScanItem.vue | 16 +- src/pages/count/job/fuzzyCountDetail.vue | 14 +- src/pages/count/job/fuzzyCountJob.vue | 50 +- src/pages/point/index.vue | 607 +++++++++++---------- src/pages/query/coms/comPackDetailCard.vue | 70 +++ src/pages/query/item.vue | 57 +- src/pages/query/pack.vue | 438 +++++++++++++++ 8 files changed, 894 insertions(+), 366 deletions(-) create mode 100644 src/pages/query/coms/comPackDetailCard.vue create mode 100644 src/pages/query/pack.vue diff --git a/src/mycomponents/qty/countQtyEdit.vue b/src/mycomponents/qty/countQtyEdit.vue index 46dd8f56..ff2f932d 100644 --- a/src/mycomponents/qty/countQtyEdit.vue +++ b/src/mycomponents/qty/countQtyEdit.vue @@ -60,9 +60,9 @@ - + - + 描述 : @@ -110,6 +110,10 @@ const props = defineProps({ allowEditStatus: { type: Boolean, default: false + }, + isShowDesc: { + type: Boolean, + default: false } }) const allQty = ref(0) diff --git a/src/mycomponents/scan/winScanItem.vue b/src/mycomponents/scan/winScanItem.vue index c6cd98a4..34ef16f8 100644 --- a/src/mycomponents/scan/winScanItem.vue +++ b/src/mycomponents/scan/winScanItem.vue @@ -59,11 +59,7 @@ const openScanPopup = () => { const closeScanPopup = () => { isShow.value = false } -const getfocus = () => { - if (isShow.value) { - scan.value.getfocus() - } -} + const scanClick = () => { scan.value.clickScanMsg() } @@ -131,8 +127,16 @@ const showErrorMessage = (message) => { getfocus() }) } + +const getfocus = () => { + if (scan.value) { + scan.value.getfocus() + } +} const losefocus = () => { - scan.value.losefocus() + if (scan.value) { + scan.value.losefocus() + } } // 传递给父类 const emit = defineEmits(['getScanResult']) diff --git a/src/pages/count/job/fuzzyCountDetail.vue b/src/pages/count/job/fuzzyCountDetail.vue index 3162d615..b93a61eb 100644 --- a/src/pages/count/job/fuzzyCountDetail.vue +++ b/src/pages/count/job/fuzzyCountDetail.vue @@ -56,7 +56,7 @@ - + @@ -291,17 +291,13 @@ export default { getScanResult(result) { const that = this const packInfo = result.package - const detail = this.createDetailInfo(packInfo) - this.detailSource.unshift(detail) - this.scanPopupGetFocus() - return if (this.itemRangeValue != '') { const index = this.itemRangeValue.indexOf(packInfo.itemCode) if (index < 0) { - this.afterScanLocation(`物料代码【${packInfo.itemCode}】,不在盘点范围【${this.itemRangeValue}】内`) - return + this.showErrorMessage(`物料代码【${packInfo.itemCode}】,不在盘点范围【${this.itemRangeValue}】内`) + } else { + this.onScan(packInfo) } - this.onScan(packInfo) } else { this.onScan(packInfo) } @@ -358,7 +354,7 @@ export default { createTime: new Date().getTime(), countTime: new Date().getTime(), countUser: this.$store.state.user.id, - countDescription: 'a', + countDescription: '', countQty: packInfo.qty } return detail diff --git a/src/pages/count/job/fuzzyCountJob.vue b/src/pages/count/job/fuzzyCountJob.vue index 18c96ac6..61704930 100644 --- a/src/pages/count/job/fuzzyCountJob.vue +++ b/src/pages/count/job/fuzzyCountJob.vue @@ -316,17 +316,21 @@ export default { action: '==', value: code }) - filters.push({ - column: 'countSplitType', - action: '==', - value: 'locationCode' - }) - filters.push({ - column: 'accept_user_id', + column: 'isOpenCount', action: '==', - value: this.$store.state.user.id + value: 'FALSE' }) + // filters.push({ + // column: "countSplitType", + // action: "==", + // value: "locationCode" + // }) + // filters.push({ + // column: "accept_user_id", + // action: "==", + // value: this.$store.state.user.id + // }) const params = { filters, @@ -371,22 +375,27 @@ export default { }) filters.push({ - column: 'countSplitType', + column: 'isOpenCount', action: '==', - value: 'locationCode' + value: 'FALSE' }) + // filters.push({ + // column: "countSplitType", + // action: "==", + // value: "locationCode" + // }) - filters.push({ - column: 'countSplitCode', - action: '==', - value: result.label.code - }) + // filters.push({ + // column: "countSplitCode", + // action: "==", + // value: result.label.code + // }) - filters.push({ - column: 'accept_user_id', - action: '==', - value: this.$store.state.user.id - }) + // filters.push({ + // column: "accept_user_id", + // action: "==", + // value: this.$store.state.user.id + // }) const params = { filters, @@ -428,3 +437,4 @@ export default { +s diff --git a/src/pages/point/index.vue b/src/pages/point/index.vue index 52905001..ca49a5c2 100644 --- a/src/pages/point/index.vue +++ b/src/pages/point/index.vue @@ -1,323 +1,324 @@ - \ No newline at end of file +.image img { + width: calc(100% - 4px); + height: calc(100% - 4px); + margin: 4rpx; +} + diff --git a/src/pages/query/coms/comPackDetailCard.vue b/src/pages/query/coms/comPackDetailCard.vue new file mode 100644 index 00000000..d7bdaf16 --- /dev/null +++ b/src/pages/query/coms/comPackDetailCard.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/src/pages/query/item.vue b/src/pages/query/item.vue index 73ea8f99..d379f384 100644 --- a/src/pages/query/item.vue +++ b/src/pages/query/item.vue @@ -64,11 +64,11 @@ filter.value.openFilter() } }) - onLoad((option)=>{ - uni.setNavigationBarTitle({ - title: option.title - }) - }) + onLoad((option) => { + uni.setNavigationBarTitle({ + title: option.title + }) + }) onMounted(() => { openScanPopup() }) @@ -387,7 +387,7 @@ }); } const afterCloseMessage = () => { - if (scanPopup.value != undefined) { + if (scanPopup.value) { scanPopup.value.getfocus(); } } @@ -397,31 +397,36 @@ } const confirm = (locationCodeParams, status) => { - locationCode.value = locationCodeParams; - if (status.length > 0) { - var arrayItems = status.join(',') - inventoryStatus.value = arrayItems + if (itemCode.value) { + locationCode.value = locationCodeParams; + if (status.length > 0) { + var arrayItems = status.join(',') + inventoryStatus.value = arrayItems + } else { + inventoryStatus.value = "" + } + tabChange(tabIndex.value) } else { - inventoryStatus.value = "" + showMessage("请先扫描物料") } - tabChange(tabIndex.value) } \ No newline at end of file diff --git a/src/pages/query/pack.vue b/src/pages/query/pack.vue new file mode 100644 index 00000000..819c8cc8 --- /dev/null +++ b/src/pages/query/pack.vue @@ -0,0 +1,438 @@ + + + + + +