fix:禅道257
This commit is contained in:
parent
2dfd9efdae
commit
085cf44a66
|
|
@ -92,7 +92,7 @@
|
|||
clearable
|
||||
filterable
|
||||
remote = "true"
|
||||
style="width: 100%"
|
||||
:style="divStyle"
|
||||
:remote-method="inputChange"
|
||||
@change="selectBatchChange"
|
||||
@clear="selectBatchClear"
|
||||
|
|
@ -114,6 +114,7 @@
|
|||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<scScanner v-if="project_code=='gx'" @scanResult="codeTextChange"></scScanner>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :md="12" :sm="24">
|
||||
|
|
@ -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) => {})
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue