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) => {})
+ },
},
};