Commit 18bbcc0a authored by renjintao's avatar renjintao

暂停记录

parent cd8c728c
<template> <template>
<div class="record"> <div class="record">
<Tabs value="name1"> <Tabs value="name1" @on-click="tabSwitch">
<TabPane label="订单暂停记录" name="name1"> <TabPane label="订单暂停记录" name="name1">
<DataGrid :columns="columns" ref="grid" :action="action" :tool="false" :height="tdHeight"></DataGrid> <DataGrid :columns="columns" ref="grid" :action="action" :tool="false" :height="tdHeight"></DataGrid>
</TabPane> </TabPane>
...@@ -127,18 +127,18 @@ export default { ...@@ -127,18 +127,18 @@ export default {
} }
], ],
columnsProcess: [ columnsProcess: [
{ {
key: "processcode", key: "processcode",
title: "工艺文件编号", title: "工艺文件编号",
align: "left", align: "left",
width: 200, width: 200,
tooltip:true, tooltip: true
}, },
{ {
key: "processname", key: "processname",
title: "工艺名称", title: "工艺名称",
align: "left", align: "left",
tooltip:true, tooltip: true
}, },
{ {
key: "taskSeq", key: "taskSeq",
...@@ -151,14 +151,14 @@ export default { ...@@ -151,14 +151,14 @@ export default {
title: "工序名称", title: "工序名称",
align: "left", align: "left",
width: 350, width: 350,
tooltip:true, tooltip: true
}, },
{ {
key: "desc", key: "desc",
title: "暂停原因", title: "暂停原因",
align: "left", align: "left",
tooltip:true, tooltip: true
}, },
{ {
key: "creatorUserId", key: "creatorUserId",
...@@ -183,7 +183,7 @@ export default { ...@@ -183,7 +183,7 @@ export default {
}, },
mounted() { mounted() {
this.$refs.grid.reload(this.easySearch); this.$refs.grid.reload(this.easySearch);
this.loadList() this.loadList();
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
...@@ -201,7 +201,7 @@ export default { ...@@ -201,7 +201,7 @@ export default {
methods: { methods: {
loadList() { loadList() {
let params = { let params = {
FilterText: 'order_id="'+this.eid+'"' FilterText: 'order_id="' + this.eid + '"'
}; };
Api.pauseCauseGetpaged(params) Api.pauseCauseGetpaged(params)
.then(res => { .then(res => {
...@@ -215,6 +215,12 @@ export default { ...@@ -215,6 +215,12 @@ export default {
this.$Message.error("连接失败"); this.$Message.error("连接失败");
}); });
}, },
tabSwitch(val) {
//tab切换
if (val == "name2") {
this.loadList();
}
},
search() { search() {
this.$refs.grid.reload(this.easySearch); this.$refs.grid.reload(this.easySearch);
}, },
...@@ -231,7 +237,7 @@ export default { ...@@ -231,7 +237,7 @@ export default {
eid(v) { eid(v) {
this.condition.orderId.value = v; this.condition.orderId.value = v;
this.$refs.grid.reload(this.condition); this.$refs.grid.reload(this.condition);
this.loadList() this.loadList();
} }
} }
}; };
......
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