Commit 6945e821 authored by renjintao's avatar renjintao

暂停记录temp

parent 1fa21e74
...@@ -31,7 +31,11 @@ export default { ...@@ -31,7 +31,11 @@ export default {
}, },
getentryproductcode(params){//更加工单id获取产品号 getentryproductcode(params){//更加工单id获取产品号
return Api.get(`${PlanUrl}/orderexecutequalityrecord/getentryproductcode`, params); return Api.get(`${PlanUrl}/orderexecutequalityrecord/getentryproductcode`, params);
} },
pauseCauseGetpaged(params){//获取工单暂停记录
return Api.get(`${PlanUrl}/orderexecutepausecause/getpaged`, params);
},
// getplantdepartments(params) {// 组织为”车间“的部门 // getplantdepartments(params) {// 组织为”车间“的部门
// return Api.get(`${systemUrl}/department/getplantdepartments`, params); // return Api.get(`${systemUrl}/department/getplantdepartments`, params);
// }, // },
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<Record :eid="recordId" /> <Record :eid="recordId" />
</Modal> </Modal>
<Modal v-model="SpeedModal" title="工单信息" fullscreen footer-hide class="recordM"> <Modal v-model="SpeedModal" title="工单信息" fullscreen footer-hide class="recordM">
<Speed :result="result" :load="loading" :executeId="dispatchExecuteId" :orderId="orderId" :detailId="detailId"/> <Speed :result="result" :load="loading" :executeId="dispatchExecuteId" :orderId="orderId" />
</Modal> </Modal>
</div> </div>
</template> </template>
...@@ -362,7 +362,7 @@ export default { ...@@ -362,7 +362,7 @@ export default {
render: (h, params) => { render: (h, params) => {
return h("div", { class: "action" }, [ return h("div", { class: "action" }, [
h( h(
params.row.status == 5 ? "Button" : "", //订单状态暂停,启动 params.row.status == 5&&params.row.upSplitId==0 ? "Button" : "", //订单状态暂停,启动
{ {
props: { props: {
type: "error", type: "error",
...@@ -385,7 +385,7 @@ export default { ...@@ -385,7 +385,7 @@ export default {
"" ""
), ),
h( h(
params.row.status == 6 ? "Button" : "", //订单状态执行中,暂停 params.row.status == 6&&params.row.upSplitId==0 ? "Button" : "", //订单状态执行中,暂停
{ {
props: { props: {
type: "success", type: "success",
......
...@@ -5,7 +5,13 @@ ...@@ -5,7 +5,13 @@
<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>
<TabPane label="工单暂停记录" name="name2"> <TabPane label="工单暂停记录" name="name2">
<DataGrid :columns="columnsProcess" ref="gridProcess" :tool="false" :height="tdHeight"></DataGrid> <DataGrid
:columns="columnsProcess"
ref="gridProcess"
:data="list"
:tool="false"
:height="tdHeight"
></DataGrid>
</TabPane> </TabPane>
</Tabs> </Tabs>
<Modal v-model="detailModal" title="详情" width="800"> <Modal v-model="detailModal" title="详情" width="800">
...@@ -122,67 +128,53 @@ export default { ...@@ -122,67 +128,53 @@ export default {
], ],
columnsProcess: [ columnsProcess: [
{ {
key: "productName", key: "dispatch_id",
title: "工序Id", title: "工序Id",
align: "left", align: "left",
width: 90 width: 90
}, },
{ {
key: "productName", key: "dispatch_id",
title: "工序号", title: "工序号",
align: "left", align: "left",
width: 90 width: 90
}, },
{ {
key: "productName", key: "dispatch_id",
title: "工序名称", title: "工序名称",
align: "left", align: "left",
width: 350, width: 350
}, },
{ {
key: "remark", key: "desc",
title: "暂停原因", title: "暂停原因",
align: "left" align: "left"
}, },
{ {
key: "productName", key: "creatorUserId",
title: "暂停人", title: "暂停人",
align: "left", align: "left",
high: true, high: true,
width: 180 width: 180,
type: "user"
}, },
{ {
key: "productName", key: "creationTime",
title: "暂停时间", title: "暂停时间",
align: "left", align: "left",
width: 180 width: 180
},
{
key: "productName",
title: "恢复人",
align: "left",
width: 180
},
{
key: "productName",
title: "恢复时间",
align: "left",
width: 180
},
{
key: "productName",
title: "相关人",
align: "left",
width: "180"
} }
] ],
list: []
}; };
}, },
props: { props: {
eid: Number eid: Number
}, },
mounted() { mounted() {
this.$refs.grid.reload(this.easySearch);
this.loadList()
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
...@@ -198,6 +190,29 @@ export default { ...@@ -198,6 +190,29 @@ export default {
await store.dispatch("loadDictionary"); // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
methods: { methods: {
// tabClick(tabIndex) {
// if (tabIndex == 2) {
// this.loadList();
// } else {
// this.$refs.grid.reload(this.easySearch);
// }
// },
loadList() {
let params = {
FilterText: "dispatch_id=104"
};
Api.pauseCauseGetpaged(params)
.then(res => {
if (res.success) {
this.list = res.result.items;
} else {
this.$Message.error("获取数据失败");
}
})
.catch(err => {
this.$Message.error("连接失败");
});
},
search() { search() {
this.$refs.grid.reload(this.easySearch); this.$refs.grid.reload(this.easySearch);
}, },
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<DataGrid :columns="columns" :data="result" border :tool="false" :height="820" :page="false"></DataGrid> <DataGrid :columns="columns" :data="result" border :tool="false" :height="820" :page="false"></DataGrid>
</div> </div>
<Modal v-model="workOrderPauseModal" title="工单暂停原因" width="800" footer-hide class="suspend"> <Modal v-model="workOrderPauseModal" title="工单暂停原因" width="800" footer-hide class="suspend">
<EntryPause @on-close="cancel" @on-ok="pauseOk" ref="addBug" :info="info" /> <EntryPause @on-ok="pauseOk" ref="addBug" :info="info" />
</Modal> </Modal>
<Modal v-model="modalSplit" title="订单分卡" width="650" footer-hide> <Modal v-model="modalSplit" title="订单分卡" width="650" footer-hide>
<div slot="close"> <div slot="close">
......
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