From 5f0de76cb8f4852ee6f95954c0f4144ed8544c90 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Mon, 22 Jul 2024 15:24:24 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/scan/winScanItem.vue | 13 +- src/pages.json | 30 ++ src/pages/query/coms/comPackDetailCard.vue | 101 +++++ src/pages/query/item.vue | 18 +- src/pages/query/pack.vue | 456 +++++++++++++++++++++ 5 files changed, 604 insertions(+), 14 deletions(-) create mode 100644 src/pages/query/coms/comPackDetailCard.vue create mode 100644 src/pages/query/pack.vue diff --git a/src/mycomponents/scan/winScanItem.vue b/src/mycomponents/scan/winScanItem.vue index d0e7aae3..39dd7d31 100644 --- a/src/mycomponents/scan/winScanItem.vue +++ b/src/mycomponents/scan/winScanItem.vue @@ -83,11 +83,6 @@ closeScanPopup() { this.$refs.popup.close() }, - getfocus() { - if (this.isShow) { - this.$refs.scan.getfocus() - } - }, scanClick() { this.$refs.scan.clickScanMsg(); }, @@ -159,10 +154,14 @@ }) }, getfocus() { - this.$refs.scan.getfocus(); + if(this.$refs.scan){ + this.$refs.scan.getfocus(); + } }, losefocus() { - this.$refs.scan.losefocus(); + if(this.$refs.scan){ + this.$refs.scan.losefocus(); + } }, } diff --git a/src/pages.json b/src/pages.json index 3f08e9c1..4f875fc9 100644 --- a/src/pages.json +++ b/src/pages.json @@ -82,6 +82,36 @@ } } }, + + { + "path": "pages/query/pack", + "style": { + "enablePullDownRefresh": true, // 是否配置下拉刷新的功能 + "navigationBarTitleText": "按包装号查询库存", + "titleNView": { + // "autoBackButton": "true", + "buttons": [ + // 右边按钮 + { + + "float": "right", + "fontSize": "58rpx", //按钮上文字的大小 + "text": "\ue696", + "fontSrc": "/static/ali_icon/iconfont.ttf" + + }, + { + + "float": "right", + "fontSize": "52rpx", //按钮上文字的大小 + "text": "\ue6e2", + "fontSrc": "/static/ali_icon/iconfont.ttf" + } + ] + } + } + }, + { "path": "pages/query/location", "style": { diff --git a/src/pages/query/coms/comPackDetailCard.vue b/src/pages/query/coms/comPackDetailCard.vue new file mode 100644 index 00000000..02826bee --- /dev/null +++ b/src/pages/query/coms/comPackDetailCard.vue @@ -0,0 +1,101 @@ + + + + + \ No newline at end of file diff --git a/src/pages/query/item.vue b/src/pages/query/item.vue index 37858057..544a179a 100644 --- a/src/pages/query/item.vue +++ b/src/pages/query/item.vue @@ -415,7 +415,7 @@ }); }, afterCloseMessage() { - if (this.$refs.scanPopup != undefined) { + if (this.$refs.scanPopup) { this.$refs.scanPopup.getfocus(); } }, @@ -425,14 +425,18 @@ }, confirm(locationCode, status) { - this.locationCode = locationCode; - if(status.length>0){ - var arrayItems = status.join(',') - this.inventoryStatus = arrayItems + if(this.itemCode){ + this.locationCode = locationCode; + if(status.length>0){ + var arrayItems = status.join(',') + this.inventoryStatus = arrayItems + }else { + this.inventoryStatus="" + } + this.tabChange(this.tabIndex) }else { - this.inventoryStatus="" + this.showMessage("请先扫描物料") } - this.tabChange(this.tabIndex) } } } diff --git a/src/pages/query/pack.vue b/src/pages/query/pack.vue new file mode 100644 index 00000000..a1e20917 --- /dev/null +++ b/src/pages/query/pack.vue @@ -0,0 +1,456 @@ + + + + + + \ No newline at end of file