Commit 9a63c3ad authored by 仇晓婷's avatar 仇晓婷

工艺设置

parent 160e7667
...@@ -490,7 +490,6 @@ export default { ...@@ -490,7 +490,6 @@ export default {
organizType: 0, organizType: 0,
organizName: "" organizName: ""
}, },
newColumn: [], newColumn: [],
value: "", value: "",
column: [], column: [],
......
...@@ -8,9 +8,10 @@ export default { ...@@ -8,9 +8,10 @@ export default {
paged1(params) { paged1(params) {
return Api.post(`${technologyUrl}routingheader/paged`, params); return Api.post(`${technologyUrl}routingheader/paged`, params);
}, },
// get(params) {
// return Api.get(`${technologyUrl}routingheader/get`, params); routingset(params) {
// }, return Api.post(`${technologyUrl}orderrouting/routingset`, params);
},
// create(params) { // create(params) {
// return Api.post(`${technologyUrl}routingheader/create`, params); // return Api.post(`${technologyUrl}routingheader/create`, params);
// }, // },
......
...@@ -17,16 +17,11 @@ ...@@ -17,16 +17,11 @@
<departmentSelect v-model="easySearch.productingpreparationpeople.value" :type="3"></departmentSelect> <departmentSelect v-model="easySearch.productingpreparationpeople.value" :type="3"></departmentSelect>
</FormItem> </FormItem>
<FormItem prop="keys"> <FormItem prop="keys">
<Input placeholder="请输入订单编号/产品名称" v-model="easySearch.keys.value" clearable/> <Input placeholder="请输入订单编号/产品名称" v-model="easySearch.keys.value" clearable />
</FormItem> </FormItem>
<FormItem> <FormItem>
<Button type="primary" @click="search">查询</Button> <Button type="primary" @click="search">查询</Button>
</FormItem> </FormItem>
<!-- <FormItem>
<Button @click="search2" type="text">
<Icon type="md-search" />高级
</Button>
</FormItem>-->
</Form> </Form>
</template> </template>
<template slot="searchForm"> <template slot="searchForm">
...@@ -43,7 +38,7 @@ ...@@ -43,7 +38,7 @@
fullscreen fullscreen
:mask-closable="false" :mask-closable="false"
> >
<component :is="detail" :eid="curId" @on-close="cancel" @on-ok="ok" /> <component :is="detail" :eid="child" @on-close="cancel" @on-ok="ok" />
</Modal> </Modal>
</div> </div>
</template> </template>
...@@ -60,9 +55,13 @@ export default { ...@@ -60,9 +55,13 @@ export default {
return { return {
action: Api.index, action: Api.index,
showMenu: true, showMenu: true,
showMenu: true,
title: "", title: "",
curId: 0, child: {
curId: 0,
productingPreparationPeople: 0,
orderIds: 0,
},
detail: null, detail: null,
modal: false, modal: false,
...@@ -74,7 +73,8 @@ export default { ...@@ -74,7 +73,8 @@ export default {
// { type: "selection", width: 70, align: "center" }, // { type: "selection", width: 70, align: "center" },
{ {
title: "序号", title: "序号",
type: "index", key: "id",
// type: "index",
width: 80, width: 80,
align: "center", align: "center",
}, },
...@@ -102,40 +102,38 @@ export default { ...@@ -102,40 +102,38 @@ export default {
title: "工艺规程", title: "工艺规程",
key: "mainRoutingStatus", key: "mainRoutingStatus",
render: (h, params) => { render: (h, params) => {
return h( return h("a", [
"div", h("state", {
[ props: {
h("state", { code: "process.RoutingStatus",
props: { type: "text",
code: "process.RoutingStatus", value: params.row.mainRoutingStatus,
type: "text", },
value: nativeOn: {
params.row.mainRoutingStatus != 4 click: () => {
? params.row.mainRoutingStatus this.record(params.row);
: "",
}, },
}), },
h( }),
"a", // h(
{ // "a",
on: { // {
click: () => { // on: {
this.record(params.row); // click: () => {
}, // this.record(params.row);
}, // },
}, // },
params.row.mainRoutingStatus == 4 ? "未设置" : "" // },
), // params.row.mainRoutingStatus == 4 ? "未设置" : ""
], // ),
{} ]);
);
}, },
}, },
{ // {
title: "料单", // title: "料单",
key: "materialbillStatus", // key: "materialbillStatus",
code: "process.RoutingStatus", // code: "process.RoutingStatus",
}, // },
], ],
}; };
}, },
...@@ -144,10 +142,18 @@ export default { ...@@ -144,10 +142,18 @@ export default {
}, },
methods: { methods: {
record(row) { record(row) {
this.curId = 0; if (row.mainRoutingStatus == -1) {
this.title = "设置"; //未设置
this.detail = () => import("./set"); this.child.curId = row.productId;
this.modal = true; this.child.productingPreparationPeople =
row.productingPreparationPeople;
this.child.orderIds = row.id;
this.title = "设置";
this.detail = () => import("./set");
this.modal = true;
} else if (row.mainRoutingStatus == 1) {
//受控中,查看
}
}, },
onHide() { onHide() {
this.showMenu = false; this.showMenu = false;
...@@ -168,10 +174,10 @@ export default { ...@@ -168,10 +174,10 @@ export default {
ok() { ok() {
this.$refs.grid.load(); this.$refs.grid.load();
this.modal = false; this.modal = false;
this.curId = 0; this.child.curId = 0;
}, },
cancel() { cancel() {
this.curId = 0; this.child.curId = 0;
this.modal = false; this.modal = false;
}, },
}, },
......
This diff is collapsed.
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