Commit 54659720 authored by 仇晓婷's avatar 仇晓婷

工单执行,传参到填报

parent b21c5f25
...@@ -110,8 +110,11 @@ export default { ...@@ -110,8 +110,11 @@ export default {
}, },
created() { created() {
// this.orderId = this.$route.query.orderId; // this.orderId = this.$route.query.orderId;
this.row = this.$route.query.row; let row={}
row.id = this.$route.query.id;
row.orderId = this.$route.query.orderId;
row.executeId = this.$route.query.executeId;
this.row=row
this.detail = () => import("./starOrder/index"); this.detail = () => import("./starOrder/index");
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<Button :icon="iconInfo" shape="circle" :title="titleInfo" @click="changeShwo"></Button> <Button :icon="iconInfo" shape="circle" :title="titleInfo" @click="changeShwo"></Button>
</template> </template>
<template slot="card" slot-scope="{row}"> <template slot="card" slot-scope="{row}">
<div class="body" @click="toExecute(row.id,row.orderId,row)"> <div class="body" @click="toExecute(row.id,row.orderId,row.executeId)">
<Row class="title-i"> <Row class="title-i">
<Col :span="10" class="order-code">{{row.productName}}</Col> <Col :span="10" class="order-code">{{row.productName}}</Col>
<Col :span="10" class="order-code">{{row.mesCode}}</Col> <Col :span="10" class="order-code">{{row.mesCode}}</Col>
...@@ -176,7 +176,14 @@ export default { ...@@ -176,7 +176,14 @@ export default {
"op", "op",
{ {
attrs: { oprate: "edit" }, attrs: { oprate: "edit" },
on: { click: () => this.toExecute(params.row.id,params.row.orderId,params.row) } on: {
click: () =>
this.toExecute(
params.row.id,
params.row.orderId,
params.row.executeId
)
}
}, },
"查看" "查看"
) )
...@@ -192,7 +199,7 @@ export default { ...@@ -192,7 +199,7 @@ export default {
}; };
}, },
created() { created() {
let oldStr=localStorage.getItem('admin'); let oldStr = localStorage.getItem("admin");
let userlist = this.$store.getters.getUser(2); let userlist = this.$store.getters.getUser(2);
// console.info(userlist) // console.info(userlist)
// console.warn(localStorage) // console.warn(localStorage)
...@@ -209,11 +216,11 @@ export default { ...@@ -209,11 +216,11 @@ export default {
search() { search() {
this.$refs.grid.reload(this.easySearch); this.$refs.grid.reload(this.easySearch);
}, },
toExecute(id, orderId,row) { toExecute(id, orderId, executeId) {
//跳转到对应操作页面 获取id:this.$route.query.id //跳转到对应操作页面 获取id:this.$route.query.id
this.$router.push({ this.$router.push({
path: "/produce/execute", path: "/produce/execute",
query: { id: id, orderId: orderId,row } query: { id: id, orderId: orderId, executeId: executeId }
}); });
}, },
tdStyle(val) { tdStyle(val) {
......
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