fix:日志新增输入物料表单,选择批次后,根据已选批次物料获取相应的工艺步骤
This commit is contained in:
parent
19f8accc8c
commit
685985561b
|
|
@ -337,11 +337,13 @@ export default {
|
|||
this.cellsList = data.count_json_from;
|
||||
}
|
||||
},
|
||||
getRoute() {
|
||||
getRoute(material) {
|
||||
let that = this;
|
||||
that.$API.mtm.route.list
|
||||
.req({ process: that.process, page: 0, routepack__state: 30 })
|
||||
.then((res) => {
|
||||
let obj = { process:that.process,page: 0, routepack__state: 30};
|
||||
if(material){
|
||||
obj.material_in__in = material;
|
||||
}
|
||||
that.$API.mtm.route.list.req(obj).then((res) => {
|
||||
that.routeOptions = res;
|
||||
if(res.length==1){
|
||||
that.form.route = res[0].id;
|
||||
|
|
@ -418,6 +420,7 @@ export default {
|
|||
},
|
||||
materialBatchChange(){
|
||||
let that = this;
|
||||
that.getRoute(that.selectObj.material);
|
||||
that.form.batch = that.selectObj.batch;
|
||||
that.form.count_use = that.selectObj.count_cando;
|
||||
that.batch_count = that.selectObj.count;
|
||||
|
|
|
|||
Loading…
Reference in New Issue