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