diff --git a/pages/WarehouseManage/InStoreConfirm.vue b/pages/WarehouseManage/InStoreConfirm.vue
index e9d4e91..c5f284d 100644
--- a/pages/WarehouseManage/InStoreConfirm.vue
+++ b/pages/WarehouseManage/InStoreConfirm.vue
@@ -9,7 +9,7 @@
-
+
@@ -147,7 +147,7 @@
}
},
onKeyInput ($event) {
- if ($event.target.value.length < 5) {
+ if ($event.target.value.length !== 14) {
this.$nextTick(function(){
this.val1 = ''
uni.hideKeyboard()
@@ -156,6 +156,12 @@
}
this._boxQuery(this.val1)
},
+ onFocus () {
+ this.focused = true
+ setTimeout(() => {
+ uni.hideKeyboard()
+ }, 300)
+ },
onBlur () {
this.focused = false
},
diff --git a/pages/WarehouseManage/InStoreSplit.vue b/pages/WarehouseManage/InStoreSplit.vue
index dc61730..575f12f 100644
--- a/pages/WarehouseManage/InStoreSplit.vue
+++ b/pages/WarehouseManage/InStoreSplit.vue
@@ -9,7 +9,7 @@
-
+
@@ -146,7 +146,7 @@
}
},
onKeyInput ($event) {
- if ($event.target.value.length < 5) {
+ if ($event.target.value.length !== 14) {
this.$nextTick(function(){
this.val1 = ''
uni.hideKeyboard()
@@ -155,6 +155,12 @@
}
this._boxQuery(this.val1)
},
+ onFocus () {
+ this.focused = true
+ setTimeout(() => {
+ uni.hideKeyboard()
+ }, 300)
+ },
onBlur () {
this.focused = false
},
diff --git a/pages/WarehouseManage/ReturngoodsInStore.vue b/pages/WarehouseManage/ReturngoodsInStore.vue
index ab5cfb6..fec722d 100644
--- a/pages/WarehouseManage/ReturngoodsInStore.vue
+++ b/pages/WarehouseManage/ReturngoodsInStore.vue
@@ -9,7 +9,7 @@
-
+
@@ -133,7 +133,7 @@
}
},
onKeyInput ($event) {
- if ($event.target.value.length < 5) {
+ if ($event.target.value.length !== 14) {
this.$nextTick(function(){
this.val1 = ''
uni.hideKeyboard()
@@ -142,6 +142,12 @@
}
this._boxQuery(this.val1)
},
+ onFocus () {
+ this.focused = true
+ setTimeout(() => {
+ uni.hideKeyboard()
+ }, 300)
+ },
onBlur () {
this.focused = false
},
diff --git a/pages/WarehouseManage/ScrapInStore.vue b/pages/WarehouseManage/ScrapInStore.vue
index fe214ff..99bdaf8 100644
--- a/pages/WarehouseManage/ScrapInStore.vue
+++ b/pages/WarehouseManage/ScrapInStore.vue
@@ -9,7 +9,7 @@
-
+
@@ -125,7 +125,7 @@
}
},
onKeyInput ($event) {
- if ($event.target.value.length < 5) {
+ if ($event.target.value.length !== 14) {
this.$nextTick(function(){
this.val1 = ''
uni.hideKeyboard()
@@ -134,6 +134,12 @@
}
this._boxQuery(this.val1)
},
+ onFocus () {
+ this.focused = true
+ setTimeout(() => {
+ uni.hideKeyboard()
+ }, 300)
+ },
onBlur () {
this.focused = false
},
diff --git a/utils/request.js b/utils/request.js
index c5b01e0..fa0020a 100644
--- a/utils/request.js
+++ b/utils/request.js
@@ -44,7 +44,10 @@ const request = (params) => {
method: method,
header: Object.assign({}, defaultOpot, header),
data: data,
- dataType: 'json',
+ dataType: 'json'
+ // networkTimeout: {
+ // 'request': 5000
+ // }
})
.then(res => { // 成功
if (res.length === 1) {