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

Merge branch 'product' of http://git.mes123.com/zhouyx/mes-ui into product

parents 761d44f3 c40b2918
...@@ -82,7 +82,6 @@ export default { ...@@ -82,7 +82,6 @@ export default {
per: 0, per: 0,
vshowPro: false, vshowPro: false,
Photo: true, Photo: true,
showList: true,
isactive: 0 isactive: 0
}; };
}, },
...@@ -137,9 +136,7 @@ export default { ...@@ -137,9 +136,7 @@ export default {
this.per = 0; this.per = 0;
this.vshowPro = true; this.vshowPro = true;
}, },
// change(event) {
// this.$emit('on-change', event)
// },
//上传成功文件 //上传成功文件
uploadSuccess(response, file, fileList) { uploadSuccess(response, file, fileList) {
if (this.Photos) { if (this.Photos) {
......
...@@ -35,11 +35,11 @@ export default { ...@@ -35,11 +35,11 @@ export default {
}; };
}, },
created() { created() {
this.id = Number(this.$route.query.row.routingHeaderId); //工艺规程id this.id = Number(this.$route.query.headid); //工艺规程id
//this.uId = ""; //工艺规程文件id //this.uId = ""; //工艺规程文件id
ApiProcess.get({ id: this.id }).then(r => { ApiProcess.get({ id: this.id }).then(r => {
if (r.success && r.result) { if (r.success && r.result) {
if (r.result.fileId != "") { if (r.result.fileId&&r.result.fileId != "") {
this.uId = r.result.fileId; this.uId = r.result.fileId;
} else { } else {
this.uId = this.$u.guid(); this.uId = this.$u.guid();
...@@ -58,7 +58,8 @@ export default { ...@@ -58,7 +58,8 @@ export default {
openSaveTip(key) { openSaveTip(key) {
this.id = key; this.id = key;
if (this.id == "1") { if (this.id == "1") {
this.id = Number(this.$route.query.row.routingHeaderId); //工艺规程id this.id = Number(this.$route.query.headid); //工艺规程id
//this.uId = ""; //工艺规程文件id
this.detail = () => import("../../../technology/processview"); this.detail = () => import("../../../technology/processview");
} }
//if(this.id == "1"){ this.detail = () => import("./components/setupDetails");} //if(this.id == "1"){ this.detail = () => import("./components/setupDetails");}
...@@ -81,7 +82,6 @@ export default { ...@@ -81,7 +82,6 @@ export default {
background: white; background: white;
border: 1px solid #ccc; border: 1px solid #ccc;
border-top: 0; border-top: 0;
height: 100px;
overflow-y: auto; overflow-y: auto;
} }
</style> </style>
...@@ -480,7 +480,7 @@ ...@@ -480,7 +480,7 @@
} }
.tech_box{ .tech_box{
height: calc(100vh - 165px); height: calc(100vh - 110px);
.ivu-layout-header{ .ivu-layout-header{
height: 50px; height: 50px;
} }
......
<template> <template>
<div class="aps-r"> <div class="aps-r">
<!-- <Button @click="toExecute">工单执行</Button> -->
<DataGrid <DataGrid
:columns="columns" :columns="columns"
ref="grid" ref="grid"
...@@ -12,7 +11,6 @@ ...@@ -12,7 +11,6 @@
:lazy="true" :lazy="true"
:conditions="easySearch" :conditions="easySearch"
:action="action" :action="action"
:set="set"
:gutter="40" :gutter="40"
> >
<template slot="easySearch"> <template slot="easySearch">
...@@ -29,7 +27,7 @@ ...@@ -29,7 +27,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.executeId)"> <div class="body" @click="toExecute(row.id,row.orderId,row.executeId,row.routingHeaderId)">
<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>
...@@ -181,7 +179,8 @@ export default { ...@@ -181,7 +179,8 @@ export default {
this.toExecute( this.toExecute(
params.row.id, params.row.id,
params.row.orderId, params.row.orderId,
params.row.executeId params.row.executeId,
params.row.routingHeaderId
) )
} }
}, },
...@@ -191,7 +190,6 @@ export default { ...@@ -191,7 +190,6 @@ export default {
} }
} }
], ],
set: false,
typeInfo: "card", typeInfo: "card",
iconInfo: "md-apps", iconInfo: "md-apps",
titleInfo: "卡片模式", titleInfo: "卡片模式",
...@@ -201,10 +199,6 @@ export default { ...@@ -201,10 +199,6 @@ 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.warn(localStorage)
// console.warn("02",sessionStorage)
// console.log("user",oldStr)
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
...@@ -216,11 +210,11 @@ export default { ...@@ -216,11 +210,11 @@ export default {
search() { search() {
this.$refs.grid.reload(this.easySearch); this.$refs.grid.reload(this.easySearch);
}, },
toExecute(id, orderId, executeId) { toExecute(id, orderId, executeId,headid) {
//跳转到对应操作页面 获取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, executeId: executeId } query: { id: id, orderId: orderId, executeId: executeId,headid:headid }
}); });
}, },
tdStyle(val) { tdStyle(val) {
...@@ -239,12 +233,10 @@ export default { ...@@ -239,12 +233,10 @@ export default {
changeShwo() { changeShwo() {
//显示模式切换 //显示模式切换
if (this.typeInfo == "card") { if (this.typeInfo == "card") {
this.set = true;
this.typeInfo = "table"; this.typeInfo = "table";
this.iconInfo = "md-list"; this.iconInfo = "md-list";
this.titleInfo = "列表模式"; this.titleInfo = "列表模式";
} else { } else {
this.set = false;
this.typeInfo = "card"; this.typeInfo = "card";
this.iconInfo = "md-apps"; this.iconInfo = "md-apps";
this.titleInfo = "卡片模式"; this.titleInfo = "卡片模式";
......
...@@ -440,7 +440,7 @@ ...@@ -440,7 +440,7 @@
bottom: 1px; bottom: 1px;
} }
.tech_box { .tech_box {
height: calc(100vh - 165px); height: calc(100vh - 110px);
} }
.tech_box .ivu-layout-header { .tech_box .ivu-layout-header {
height: 50px; height: 50px;
......
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