From b0b69165855801a77ab63162b2da45a4ab8bf76a Mon Sep 17 00:00:00 2001
From: caill <815519168@qq.com>
Date: Mon, 13 May 2024 16:41:17 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E5=BA=93=E6=9C=A8=E7=AE=B1=E6=89=AB?=
=?UTF-8?q?=E7=A0=81=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/SearchBox.vue | 15 ++-
components/SearchBox1.vue | 110 -------------------
components/SearchBoxMx.vue | 103 ++++++++---------
pages/WarehouseManage/InStoreConfirm.vue | 46 ++------
pages/WarehouseManage/InStoreSplit.vue | 46 ++------
pages/WarehouseManage/ReturngoodsInStore.vue | 47 ++------
pages/WarehouseManage/ScrapInStore.vue | 46 ++------
7 files changed, 83 insertions(+), 330 deletions(-)
delete mode 100644 components/SearchBox1.vue
diff --git a/components/SearchBox.vue b/components/SearchBox.vue
index 772a35f..57b421b 100644
--- a/components/SearchBox.vue
+++ b/components/SearchBox.vue
@@ -19,7 +19,6 @@
export default {
data() {
return {
- cur: '',
focusState: false
};
},
@@ -29,10 +28,6 @@
},
props: {
value: String,
- seaShow: {
- type: Boolean,
- default: false
- },
focused: {
type: Boolean,
default: false
@@ -54,15 +49,19 @@
},
handleBlur (e) {
this.$emit('input', e.target.value)
- this.$emit('handleChange', e.target.value)
- this.focusState = false
+ if (e.target.value.length) {
+ this.$emit('handleChange', e.target.value)
+ }
+ this.focusState = false
},
toDel () {
this.$emit('input', '')
},
handleSend (e) {
this.$emit('input', e.target.value)
- this.$emit('handleChange', e.target.value)
+ if (e.target.value.length) {
+ this.$emit('handleChange', e.target.value)
+ }
}
}
}
diff --git a/components/SearchBox1.vue b/components/SearchBox1.vue
deleted file mode 100644
index a18cb1c..0000000
--- a/components/SearchBox1.vue
+++ /dev/null
@@ -1,110 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/components/SearchBoxMx.vue b/components/SearchBoxMx.vue
index c9698af..2f132e4 100644
--- a/components/SearchBoxMx.vue
+++ b/components/SearchBoxMx.vue
@@ -1,68 +1,58 @@
-
-
-
+
+
+
@@ -77,13 +67,8 @@
border-radius: 10rpx;
padding: 0 10rpx
.search_input
- padding-right: 160rpx;
-.buttons_wraper
- position absolute
- top 0
- right 10rpx
- _wh(auto, 80rpx)
- _fj(flex-end)
-.icon_scan_active
- color $red
+ height 80rpx;
+ _font(28rpx, 80rpx, #606266,,)
+ border: 0;
+ background-color: transparent;
diff --git a/pages/WarehouseManage/InStoreConfirm.vue b/pages/WarehouseManage/InStoreConfirm.vue
index a334530..7bf349f 100644
--- a/pages/WarehouseManage/InStoreConfirm.vue
+++ b/pages/WarehouseManage/InStoreConfirm.vue
@@ -8,9 +8,11 @@
木箱
-
-
-
+
@@ -93,14 +95,14 @@
index1: '',
dataList: [],
disabled: false,
- disabled1: false,
- focused: true
+ disabled1: false
};
},
created () {
this._getStorSect()
},
mounted () {
+ this.$refs.scanChild.handleFocus()
setTimeout(() => {
uni.hideKeyboard()
}, 500)
@@ -167,39 +169,7 @@
this.disabled1 = false
}
},
- onKeyInput (event) {
- var value = event.detail.value
- value=value.replace(/[^\w\.\/]/ig,'')
- if (value.length !== 14) {
- this.$nextTick(() => {
- this.val1 = ''
- })
- uni.hideKeyboard()
- return
- }
- uni.hideKeyboard()
- this._boxQuery(this.val1)
- },
- onFocus () {
- this.focused = true
- setTimeout(() => {
- uni.hideKeyboard()
- }, 300)
- },
- onBlur () {
- this.focused = false
- },
- inputDel () {
- this.val1 = ''
- },
- inputScan () {
- this.focused = true
- setTimeout(() => {
- uni.hideKeyboard()
- }, 300)
- },
- toPhone (e) {
- this.val1 = e
+ handleChange (e) {
this._boxQuery(this.val1)
}
}
diff --git a/pages/WarehouseManage/InStoreSplit.vue b/pages/WarehouseManage/InStoreSplit.vue
index d2e7505..e48c8d9 100644
--- a/pages/WarehouseManage/InStoreSplit.vue
+++ b/pages/WarehouseManage/InStoreSplit.vue
@@ -8,9 +8,11 @@
木箱
-
-
-
+
@@ -92,14 +94,14 @@
index1: '',
dataList: [],
disabled: false,
- disabled1: false,
- focused: true
+ disabled1: false
};
},
created () {
this._getStorSect()
},
mounted () {
+ this.$refs.scanChild.handleFocus()
setTimeout(() => {
uni.hideKeyboard()
}, 500)
@@ -165,39 +167,7 @@
this.disabled1 = false
}
},
- onKeyInput (event) {
- var value = event.detail.value
- value=value.replace(/[^\w\.\/]/ig,'')
- if (value.length !== 14) {
- this.$nextTick(() => {
- this.val1 = ''
- })
- uni.hideKeyboard()
- return
- }
- uni.hideKeyboard()
- this._boxQuery(this.val1)
- },
- onFocus () {
- this.focused = true
- setTimeout(() => {
- uni.hideKeyboard()
- }, 300)
- },
- onBlur () {
- this.focused = false
- },
- inputDel () {
- this.val1 = ''
- },
- inputScan () {
- this.focused = true
- setTimeout(() => {
- uni.hideKeyboard()
- }, 300)
- },
- toPhone (e) {
- this.val1 = e
+ handleChange (e) {
this._boxQuery(this.val1)
}
}
diff --git a/pages/WarehouseManage/ReturngoodsInStore.vue b/pages/WarehouseManage/ReturngoodsInStore.vue
index c9f4b5c..3e73b4f 100644
--- a/pages/WarehouseManage/ReturngoodsInStore.vue
+++ b/pages/WarehouseManage/ReturngoodsInStore.vue
@@ -8,9 +8,11 @@
木箱
-
-
-
+
@@ -97,14 +99,14 @@
options1: [],
index1: '',
dataList: [],
- disabled: false,
- focused: true
+ disabled: false
};
},
created () {
this._getStorSect()
},
mounted () {
+ this.$refs.scanChild.handleFocus()
setTimeout(() => {
uni.hideKeyboard()
}, 500)
@@ -125,7 +127,6 @@
},
/** 初始化查询 */
async _boxQuery (e) {
- console.log(11)
let res = await boxQuery(e, '3')
this.dataList = [...res.data]
},
@@ -152,39 +153,7 @@
this.disabled = false
}
},
- onKeyInput (event) {
- var value = event.detail.value
- value=value.replace(/[^\w\.\/]/ig,'')
- if (value.length !== 14) {
- this.$nextTick(() => {
- this.val1 = ''
- })
- uni.hideKeyboard()
- return
- }
- uni.hideKeyboard()
- this._boxQuery(this.val1)
- },
- onFocus () {
- this.focused = true
- setTimeout(() => {
- uni.hideKeyboard()
- }, 300)
- },
- onBlur () {
- this.focused = false
- },
- inputDel () {
- this.val1 = ''
- },
- inputScan () {
- this.focused = true
- setTimeout(() => {
- uni.hideKeyboard()
- }, 300)
- },
- toPhone (e) {
- this.val1 = e
+ handleChange (e) {
this._boxQuery(this.val1)
}
}
diff --git a/pages/WarehouseManage/ScrapInStore.vue b/pages/WarehouseManage/ScrapInStore.vue
index 4acd763..c433f1a 100644
--- a/pages/WarehouseManage/ScrapInStore.vue
+++ b/pages/WarehouseManage/ScrapInStore.vue
@@ -8,9 +8,11 @@
木箱
-
-
-
+
@@ -90,14 +92,14 @@
options1: [],
index1: '',
dataList: [],
- disabled: false,
- focused: true
+ disabled: false
};
},
created () {
this._getStorSect()
},
mounted () {
+ this.$refs.scanChild.handleFocus()
setTimeout(() => {
uni.hideKeyboard()
}, 500)
@@ -144,39 +146,7 @@
this.disabled = false
}
},
- onKeyInput (event) {
- var value = event.detail.value
- value=value.replace(/[^\w\.\/]/ig,'')
- if (value.length !== 14) {
- this.$nextTick(() => {
- this.val1 = ''
- })
- uni.hideKeyboard()
- return
- }
- uni.hideKeyboard()
- this._boxQuery(this.val1)
- },
- onFocus () {
- this.focused = true
- setTimeout(() => {
- uni.hideKeyboard()
- }, 300)
- },
- onBlur () {
- this.focused = false
- },
- inputDel () {
- this.val1 = ''
- },
- inputScan () {
- this.focused = true
- setTimeout(() => {
- uni.hideKeyboard()
- }, 300)
- },
- toPhone (e) {
- this.val1 = e
+ handleChange (e) {
this._boxQuery(this.val1)
}
}