From 5f0de76cb8f4852ee6f95954c0f4144ed8544c90 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Mon, 22 Jul 2024 15:24:24 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8C=89=E5=8C=85?= =?UTF-8?q?=E8=A3=85=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 From ad21ba9d38b278190204fc75861a8a98d293e246 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Mon, 22 Jul 2024 16:27:47 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=AE=8C=E5=B7=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/basic.js | 63 ++++++- src/pages/fg/coms/comReceiptPopup.vue | 235 +++++++++++++++++--------- src/pages/fg/receiptByPlan.vue | 42 +++-- 3 files changed, 243 insertions(+), 97 deletions(-) diff --git a/src/common/basic.js b/src/common/basic.js index 3a7f4b54..8d1fb95d 100644 --- a/src/common/basic.js +++ b/src/common/basic.js @@ -878,6 +878,67 @@ export function getBatch8() { return year + month + day; } +/** + * 获取前几天和后几天的日期 2024-07-07 + */ +export function lastThreeDays(grapDay) { + let dates = []; + for (let i = grapDay; i >= 0; i--) { + // 创建新的Date对象,并减去i天 + let date = new Date(); + date.setDate(date.getDate() - i); + // 将格式化的日期字符串添加到数组中 + dates.push(formatDate(date)); + } + + for (let i = 0; i self.indexOf(item) === index); + return arr.filter((item, index, self) => self.indexOf(item) === index); } \ No newline at end of file diff --git a/src/pages/fg/coms/comReceiptPopup.vue b/src/pages/fg/coms/comReceiptPopup.vue index f6ad6dfd..d741e041 100644 --- a/src/pages/fg/coms/comReceiptPopup.vue +++ b/src/pages/fg/coms/comReceiptPopup.vue @@ -29,7 +29,21 @@ - + + 计划日期: + + {{planDate}} + + + + + + + + + 物料代码: @@ -45,17 +59,7 @@ - - - - 批次: - - - - - - +