Commit 57e5f673 authored by 仇晓婷's avatar 仇晓婷

工艺设置

parent 6fa01eab
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
}, },
{ {
title: "料单", title: "料单",
key: "materialbillStatus", //0生成料单,1查看 key: "materialBillSetStatus", //0生成料单,1查看
render: (h, params) => { render: (h, params) => {
return h("a", [ return h("a", [
h("state", { h("state", {
...@@ -136,10 +136,10 @@ export default { ...@@ -136,10 +136,10 @@ export default {
type: "text", type: "text",
value: value:
params.row.mainRoutingStatus == 1 && params.row.mainRoutingStatus == 1 &&
params.row.materialbillStatus == 0 params.row.materialBillSetStatus == 0
? "生成料单" ? "生成料单"
: params.row.mainRoutingStatus == 1 && : params.row.mainRoutingStatus == 1 &&
params.row.materialbillStatus == 1 params.row.materialBillSetStatus == 1
? "查看" ? "查看"
: "", : "",
}, },
...@@ -160,15 +160,14 @@ export default { ...@@ -160,15 +160,14 @@ export default {
}, },
methods: { methods: {
material(row) { material(row) {
if (row.materialbillStatus == 0) { if (row.materialBillSetStatus == 0) {
this.saveBill(row.id, row.quantity); this.saveBill(row.id, row.quantity);
} else if (row.materialbillStatus == 1) { } else if (row.materialBillSetStatus == 1) {
this.title = "查看料单"; this.title = "查看料单";
this.detail = () => import("./materialDetails"); this.detail = () => import("./materialDetails");
this.modal = true; this.modal = true;
this.child.orderIds = row.id; this.child.orderIds = row.id;
this.child.mesCode = row.mesCode; this.child.mesCode = row.mesCode;
alert(row.mesCode)
} }
}, },
saveBill(orderId, orderCount) { saveBill(orderId, orderCount) {
......
...@@ -275,11 +275,12 @@ export default { ...@@ -275,11 +275,12 @@ export default {
orderIds: this.eid.orderIds, orderIds: this.eid.orderIds,
routingList: this.routingList, routingList: this.routingList,
}; };
Api.routingset(data).then((r) => { Api.routingset(data).then((r) => {
if (r.success) { if (r.success) {
//this.$Message.success("工艺设置成功"); this.$Message.success("工艺设置成功");
// this.saveBill(); this.footerBar = false;
this.handleSelectAll(false);
this.$emit("on-ok");
} else { } else {
this.$Message.error("工艺设置失败"); this.$Message.error("工艺设置失败");
} }
......
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