From 4fa0cbae96cde47e4878e16c87da294903a457ae Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期一, 11 九月 2023 17:41:21 +0800 Subject: [PATCH] 同步素材库商品 --- minipro_standard/components/SelectMultipleMaterial.vue | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/minipro_standard/components/SelectMultipleMaterial.vue b/minipro_standard/components/SelectMultipleMaterial.vue index b081ce0..884cd0b 100644 --- a/minipro_standard/components/SelectMultipleMaterial.vue +++ b/minipro_standard/components/SelectMultipleMaterial.vue @@ -1,8 +1,8 @@ <template> <u-popup :show="show" :round="10" closeable @close="show=false"> <view class="material-content bbox p30 rp"> - <view class="tc b f24 c2 mb20">閫夋嫨鐗╂枡</view> - <v-Search ref="V" @searchInput="searchInput" @submit="submit" :isShow="false" placeholder="鎼滅储鐗╂枡鍚嶇О/缂栫爜"> + <view class="tc b f30 c2 mb20">閫夋嫨鐗╂枡a1</view> + <v-Search ref="V" @searchInput="searchInput" @submit="search" :isShow="false" placeholder="鎼滅储鐗╂枡鍚嶇О/缂栫爜"> </v-Search> <div class="content_total">鍏眥{pages.total}}鏉℃暟鎹�</div> <view class="scroll-content"> @@ -86,7 +86,8 @@ show: false, splite: ' | ', isAll: false, - refreshing: false, + refreshing: false, + mixName: '', pages: { capacity: 10, page: 1, @@ -100,7 +101,7 @@ open(target) { this.show = true this.refreshing = false - this.workorderId = target.workorderId + this.warehouseId = target.warehouseId this.deviceId = target.deviceId this.list = [] this.selectIndex = [] @@ -112,13 +113,22 @@ total: 0 } this.loadData() + }, + // 鎼滅储妗� + searchInput(data) { + this.form.page = 0 + this.finished = false + this.list = [] + this.mixName = data + this.loadData() }, loadData() { choiceStockPageForStandard({ ...this.pages, model: { workorderId: this.workorderId, - deviceId: this.deviceId + deviceId: this.deviceId, + materialName: this.mixName } }).then(res => { let {data} = res @@ -144,6 +154,10 @@ this.refreshing = true; this.pages.page = 1 this.loadData() + }, + search() { + this.pages.page = 1 + this.loadData() }, selectMaterialAction(index) { let i = this.selectIndex.findIndex(item => item==index) -- Gitblit v1.9.3