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

工艺设置

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