diff --git a/components/SearchBox.vue b/components/SearchBox.vue index 6f54767..2bf4a8e 100644 --- a/components/SearchBox.vue +++ b/components/SearchBox.vue @@ -34,7 +34,8 @@ methods: { handleChange ($event) { this.cur = $event.target.value - this.$emit('input', this.cur) + this.$emit('input', this.cur) + this.$emit('handleChange', this.cur) }, toSearch () { this.$emit('toSearch', this.cur) diff --git a/pages/WarehouseManage/InStoreConfirm.vue b/pages/WarehouseManage/InStoreConfirm.vue index d4de9d5..cfaaddd 100644 --- a/pages/WarehouseManage/InStoreConfirm.vue +++ b/pages/WarehouseManage/InStoreConfirm.vue @@ -10,6 +10,7 @@ @@ -61,7 +62,6 @@ - @@ -87,17 +87,17 @@ disabled1: false }; }, - created () { - this._boxQuery() - }, methods: { /** 虚拟库 */ isVirtual () { this.isV = this.isV === '0' ? '1' : '0' }, + handleChange (e) { + this._boxQuery(e) + }, /** 初始化查询 */ async _boxQuery () { - let res = await boxQuery(this.val1, this.val2, '2') + let res = await boxQuery(e, '2') this.dataList = [...res.data] }, /** 确认 */ @@ -116,7 +116,7 @@ this.pkId = '' this.pkObj = {} this.disabled = false - this._boxQuery() + this._boxQuery(this.val1) } catch (e) { this.disabled = false diff --git a/pages/WarehouseManage/ReturngoodsInStore.vue b/pages/WarehouseManage/ReturngoodsInStore.vue index b1b10ae..8bae475 100644 --- a/pages/WarehouseManage/ReturngoodsInStore.vue +++ b/pages/WarehouseManage/ReturngoodsInStore.vue @@ -10,6 +10,7 @@ @@ -66,7 +67,6 @@ - @@ -92,17 +92,17 @@ disabled: false }; }, - created () { - this._boxQuery() - }, methods: { /** 虚拟库 */ isVirtual () { this.isV = this.isV === '0' ? '1' : '0' }, + handleChange (e) { + this._boxQuery(e) + }, /** 初始化查询 */ - async _boxQuery () { - let res = await boxQuery(this.val1, this.val2, '3') + async _boxQuery (e) { + let res = await boxQuery(e, '3') this.dataList = [...res.data] }, /** 确认 */ @@ -121,7 +121,7 @@ this.pkId = '' this.pkObj = {} this.disabled = false - this._boxQuery() + this._boxQuery(this.val1) } catch (e) { this.disabled = false diff --git a/pages/WarehouseManage/ScrapInStore.vue b/pages/WarehouseManage/ScrapInStore.vue index f211fc1..2ead091 100644 --- a/pages/WarehouseManage/ScrapInStore.vue +++ b/pages/WarehouseManage/ScrapInStore.vue @@ -10,6 +10,7 @@ @@ -60,7 +61,6 @@ - @@ -85,17 +85,17 @@ disabled: false }; }, - created () { - this._boxQuery() - }, methods: { /** 虚拟库 */ isVirtual () { this.isV = this.isV === '0' ? '1' : '0' }, + handleChange (e) { + this._boxQuery(e) + }, /** 初始化查询 */ - async _boxQuery () { - let res = await boxQuery(this.val1, this.val2, '1') + async _boxQuery (e) { + let res = await boxQuery(e, '1') this.dataList = [...res.data] }, /** 确认 */ @@ -114,7 +114,7 @@ this.pkId = '' this.pkObj = {} this.disabled = false - this._boxQuery() + this._boxQuery(this.val1) } catch (e) { this.disabled = false diff --git a/utils/getData2.js b/utils/getData2.js index 7d1e5f3..eec2eaf 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -142,8 +142,7 @@ export const boxQuery = (no, option, code) => request({ url:'api/pda/st/boxQuery', data: { box_no: no, - option: option, - point_code: code + option: option } }) // 1.2确认入库