Commit 496e40a9 authored by 仇晓婷's avatar 仇晓婷

订单暂停jil

parent bcd8558b
......@@ -2,7 +2,14 @@
<div class="record">
<Tabs value="name1" @on-click="tabSwitch">
<TabPane label="订单暂停记录" name="name1">
<DataGrid :columns="columns" ref="grid" :action="action" :tool="false" :height="tdHeight"></DataGrid>
<DataGrid
:columns="columns"
ref="grid"
:action="action"
:conditions="easySearch"
:tool="false"
:height="tdHeight"
></DataGrid>
</TabPane>
<TabPane label="工单暂停记录" name="name2">
<DataGrid
......@@ -25,16 +32,16 @@ import Detail from "./detail";
export default {
name: "record",
components: {
Detail
Detail,
},
data() {
return {
detailModal: false,
action: Api.record,
tdHeight: "",
condition: {
easySearch: {
orderId: { op: "Equal", value: this.eid },
keys: { op: "pauseCause,", value: null }
keys: { op: "pauseCause,", value: null },
},
data: [],
curId: 0,
......@@ -44,7 +51,7 @@ export default {
title: "序号",
type: "index",
width: 70,
align: "center"
align: "center",
},
{
key: "mesCode",
......@@ -56,17 +63,17 @@ export default {
"a",
{
attrs: {
oprate: "detail"
oprate: "detail",
},
on: { click: () => this.detail(params.row.id) }
on: { click: () => this.detail(params.row.id) },
},
params.row.mesCode
)
),
},
{
key: "productName",
title: this.l("productName"),
align: "left"
align: "left",
},
// {
// key: 'orderId',
......@@ -78,14 +85,14 @@ export default {
key: "pauseCause",
title: this.l("pauseCause"),
align: "left",
code: "mes_xingchi_plan.order_material.pauseCause"
code: "mes_xingchi_plan.order_material.pauseCause",
},
{
key: "creationTime",
title: this.l("creationTime"),
easy: true,
high: true,
align: "left"
align: "left",
},
{
......@@ -93,14 +100,14 @@ export default {
title: this.l("creator"),
easy: true,
high: true,
align: "left"
align: "left",
},
{
key: "laster",
title: this.l("laster"),
easy: true,
high: true,
align: "left"
align: "left",
},
{
key: "lastModificationTime",
......@@ -115,7 +122,7 @@ export default {
? ""
: params.row.lastModificationTime
);
}
},
},
{
......@@ -123,8 +130,8 @@ export default {
type: "user",
title: this.l("relatedPerson"),
align: "left",
high: true
}
high: true,
},
],
columnsProcess: [
{
......@@ -132,33 +139,33 @@ export default {
title: "工艺文件编号",
align: "left",
width: 200,
tooltip: true
tooltip: true,
},
{
key: "processname",
title: "工艺名称",
align: "left",
tooltip: true
tooltip: true,
},
{
key: "taskSeq",
title: "工序号",
align: "left",
width: 90
width: 90,
},
{
key: "detailName",
title: "工序名称",
align: "left",
width: 350,
tooltip: true
tooltip: true,
},
{
key: "desc",
title: "暂停原因",
align: "left",
tooltip: true
tooltip: true,
},
{
key: "creatorUserId",
......@@ -166,24 +173,26 @@ export default {
align: "left",
high: true,
width: 180,
type: "user"
type: "user",
},
{
key: "creationTime",
title: "暂停时间",
align: "center",
width: 180
}
width: 180,
},
],
list: []
list: [],
};
},
props: {
eid: Number
eid: Number,
},
mounted() {
this.$refs.grid.reload(this.easySearch);
this.loadList();
// if (this.eid) {
// this.loadList();
// }
window.onresize = () => {
///浏览器窗口大小变化
return (() => {
......@@ -201,17 +210,17 @@ export default {
methods: {
loadList() {
let params = {
FilterText: 'order_id="' + this.eid + '"'
FilterText: 'order_id="' + this.eid + '"',
};
Api.pauseCauseGetpaged(params)
.then(res => {
.then((res) => {
if (res.success) {
this.list = res.result.items;
} else {
this.$Message.error("获取数据失败");
}
})
.catch(err => {
.catch((err) => {
this.$Message.error("连接失败");
});
},
......@@ -231,15 +240,17 @@ export default {
detail(id) {
this.detailModal = true;
this.curId = id;
}
},
},
watch: {
eid(v) {
this.condition.orderId.value = v;
this.$refs.grid.reload(this.condition);
this.loadList();
}
}
if (v) {
this.easySearch.orderId.value = v;
this.$refs.grid.reload(this.easySearch);
// this.loadList();
}
},
},
};
</script>
<style lang='less'>
......
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