fix:生产入库添加wm
This commit is contained in:
parent
c99dfeb465
commit
6c10a0d5d6
|
@ -53,6 +53,8 @@
|
|||
clearable
|
||||
style="width: 100%"
|
||||
:disabled="inputBatchDisable"
|
||||
@clear="selectBatchClear"
|
||||
@change="selectChange"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in wbatchOptions"
|
||||
|
@ -410,6 +412,17 @@ export default {
|
|||
}
|
||||
});
|
||||
},
|
||||
selectChange(item){
|
||||
console.log(item)
|
||||
let that = this;
|
||||
that.wbatchOptions.forEach((item) => {
|
||||
if(that.form.batch == item.batch){
|
||||
that.form.count = item.count;
|
||||
that.form.wm = item.id;
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
selectMaterialChange(item) {
|
||||
var that = this;
|
||||
var type = this.form.type;
|
||||
|
@ -446,6 +459,7 @@ export default {
|
|||
},
|
||||
selectBatchClear() {
|
||||
this.form.mb = "";
|
||||
this.form.wm = "";
|
||||
this.form.batch = "";
|
||||
this.form.count = "";
|
||||
this.form.warehouse = "";
|
||||
|
|
Loading…
Reference in New Issue