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 @@
+
+
+
+
+
+
+ 物料
+
+
+
+
+
+
+
+
+ 任务号
+ {{dataContent.jobNumber}}
+
+
+ 业务类型
+ {{businessTypeDesc(dataContent.businessType)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ 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 @@
+
+
+
+
+
+
+
+
+
+
+
+ 总数 : {{totalCount}}
+
+
+
+
+ ({{index+1}})
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file