feat: 车间领料库存必传id

This commit is contained in:
caoqianming 2025-03-21 17:44:04 +08:00
parent ba3400a014
commit 24d1e78a00
1 changed files with 6 additions and 7 deletions

View File

@ -44,12 +44,14 @@
<el-select
v-model="form.batch"
filterable
value-key="id"
@change="selectwmChange"
>
<el-option
v-for="item in wbatchOptions"
:key="item.id"
:value="item.batch"
:label="item.batch"
:value="item"
>
<span style="display:inline-block;float: left;">{{item.material_.name}}|{{ item.batch }}</span>
<span
@ -242,15 +244,12 @@ export default {
selectBatchChange(item) {
this.form.batch = item.batch;
this.form.warehouse = item.warehouse;
this.form.mb = item.id;
},
//
selectwmChange(val){
selectwmChange(item){
let that = this;
that.wbatchOptions.forEach((item) => {
if (item.batch == val) {
that.form.material = item.material;
}
})
that.form.wm = item.id;
},
selectBatchClear() {
this.form.batch = "";