From 085cf44a66a54935af97eb2679ab57b8f305ab6a Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 15 Jan 2026 13:53:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=A6=85=E9=81=93257?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/mioitem_form.vue | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/src/views/inm/mioitem_form.vue b/src/views/inm/mioitem_form.vue index c1d9e593..15b424c8 100644 --- a/src/views/inm/mioitem_form.vue +++ b/src/views/inm/mioitem_form.vue @@ -92,7 +92,7 @@ clearable filterable remote = "true" - style="width: 100%" + :style="divStyle" :remote-method="inputChange" @change="selectBatchChange" @clear="selectBatchClear" @@ -114,6 +114,7 @@ > + @@ -353,6 +354,13 @@ export default { that.getCkUserList();//废品库接收人 }); } + }, + computed: { + divStyle() { + return { + width: this.project_code=='gx' ? '80%' : '100%' + }; + }, }, methods: { init() { @@ -893,6 +901,27 @@ export default { this.selectionFilters = filters; this.setFiltersVisible = true; }, + codeTextChange(codeText){ + let that = this; + that.wprList = []; + let id = codeText.split('#')[1]; + that.$API.cm.labelmat.item.req(id).then((res) => { + that.batchOptions.forEach(item=>{ + if(item.batch==res.batch&&item.state==res.state){ + that.selectBatch = item.batch; + that.$API.wpm.wpr.list.req({ page: 0, mb: item.id }).then((res) => { + that.wprList = res; + }) + that.form.batch = item.batch; + that.form.mb = item.id; + that.batchcount = Number(item.count_canmio); + that.form.count = Number(item.count_canmio); + that.form.warehouse = item.warehouse; + that.inputBatchDisable = true; + } + }) + }).catch((err) => {}) + }, }, };