Commit 589d5870 authored by 仇晓婷's avatar 仇晓婷

流水排产bug

parent ac1f610f
...@@ -214,6 +214,7 @@ export default { ...@@ -214,6 +214,7 @@ export default {
}, },
changeMode(a) { changeMode(a) {
this.mode = a; this.mode = a;
this.tagTata(this.orderId);
}, },
//工序列表 //工序列表
tagTata(id) { tagTata(id) {
...@@ -223,6 +224,7 @@ export default { ...@@ -223,6 +224,7 @@ export default {
u.seq = u.task_seq; u.seq = u.task_seq;
u.chaiCount = 0; u.chaiCount = 0;
u.chai = false; u.chai = false;
u.aps = 0;
}); });
this.result = r.result; this.result = r.result;
} }
...@@ -277,7 +279,6 @@ export default { ...@@ -277,7 +279,6 @@ export default {
//拆分工序 //拆分工序
split(item, i) { split(item, i) {
this.chaiModal = true; this.chaiModal = true;
this.curIndex = i; this.curIndex = i;
this.maxnum = this.result[i].quantity - 1; this.maxnum = this.result[i].quantity - 1;
}, },
...@@ -285,6 +286,9 @@ export default { ...@@ -285,6 +286,9 @@ export default {
okChai() { okChai() {
let items = this.$u.clone(this.result); let items = this.$u.clone(this.result);
let curItem = items[this.curIndex]; let curItem = items[this.curIndex];
curItem.aps = this.mode;
console.log(curItem.aps);
let addItem = this.$u.clone(curItem); let addItem = this.$u.clone(curItem);
curItem.quantity -= this.chaiNum; curItem.quantity -= this.chaiNum;
curItem.chaiCount += 1; curItem.chaiCount += 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment