Commit 01fc380e authored by renjintao's avatar renjintao

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

parents 30a44fb7 69b80021
...@@ -2,7 +2,14 @@ ...@@ -2,7 +2,14 @@
<div class="record"> <div class="record">
<Tabs value="name1" @on-click="tabSwitch"> <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"
:conditions="easySearch"
:tool="false"
:height="tdHeight"
></DataGrid>
</TabPane> </TabPane>
<TabPane label="工单暂停记录" name="name2"> <TabPane label="工单暂停记录" name="name2">
<DataGrid <DataGrid
...@@ -25,16 +32,16 @@ import Detail from "./detail"; ...@@ -25,16 +32,16 @@ import Detail from "./detail";
export default { export default {
name: "record", name: "record",
components: { components: {
Detail Detail,
}, },
data() { data() {
return { return {
detailModal: false, detailModal: false,
action: Api.record, action: Api.record,
tdHeight: "", tdHeight: "",
condition: { easySearch: {
orderId: { op: "Equal", value: this.eid }, orderId: { op: "Equal", value: this.eid },
keys: { op: "pauseCause,", value: null } keys: { op: "pauseCause,", value: null },
}, },
data: [], data: [],
curId: 0, curId: 0,
...@@ -44,7 +51,7 @@ export default { ...@@ -44,7 +51,7 @@ export default {
title: "序号", title: "序号",
type: "index", type: "index",
width: 70, width: 70,
align: "center" align: "center",
}, },
{ {
key: "mesCode", key: "mesCode",
...@@ -56,17 +63,17 @@ export default { ...@@ -56,17 +63,17 @@ export default {
"a", "a",
{ {
attrs: { attrs: {
oprate: "detail" oprate: "detail",
}, },
on: { click: () => this.detail(params.row.id) } on: { click: () => this.detail(params.row.id) },
}, },
params.row.mesCode params.row.mesCode
) ),
}, },
{ {
key: "productName", key: "productName",
title: this.l("productName"), title: this.l("productName"),
align: "left" align: "left",
}, },
// { // {
// key: 'orderId', // key: 'orderId',
...@@ -78,14 +85,14 @@ export default { ...@@ -78,14 +85,14 @@ export default {
key: "pauseCause", key: "pauseCause",
title: this.l("pauseCause"), title: this.l("pauseCause"),
align: "left", align: "left",
code: "mes_xingchi_plan.order_material.pauseCause" code: "mes_xingchi_plan.order_material.pauseCause",
}, },
{ {
key: "creationTime", key: "creationTime",
title: this.l("creationTime"), title: this.l("creationTime"),
easy: true, easy: true,
high: true, high: true,
align: "left" align: "left",
}, },
{ {
...@@ -93,14 +100,14 @@ export default { ...@@ -93,14 +100,14 @@ export default {
title: this.l("creator"), title: this.l("creator"),
easy: true, easy: true,
high: true, high: true,
align: "left" align: "left",
}, },
{ {
key: "laster", key: "laster",
title: this.l("laster"), title: this.l("laster"),
easy: true, easy: true,
high: true, high: true,
align: "left" align: "left",
}, },
{ {
key: "lastModificationTime", key: "lastModificationTime",
...@@ -115,7 +122,7 @@ export default { ...@@ -115,7 +122,7 @@ export default {
? "" ? ""
: params.row.lastModificationTime : params.row.lastModificationTime
); );
} },
}, },
{ {
...@@ -123,8 +130,8 @@ export default { ...@@ -123,8 +130,8 @@ export default {
type: "user", type: "user",
title: this.l("relatedPerson"), title: this.l("relatedPerson"),
align: "left", align: "left",
high: true high: true,
} },
], ],
columnsProcess: [ columnsProcess: [
{ {
...@@ -132,33 +139,33 @@ export default { ...@@ -132,33 +139,33 @@ export default {
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",
title: "工序号", title: "工序号",
align: "left", align: "left",
width: 90 width: 90,
}, },
{ {
key: "detailName", key: "detailName",
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",
...@@ -166,24 +173,26 @@ export default { ...@@ -166,24 +173,26 @@ export default {
align: "left", align: "left",
high: true, high: true,
width: 180, width: 180,
type: "user" type: "user",
}, },
{ {
key: "creationTime", key: "creationTime",
title: "暂停时间", title: "暂停时间",
align: "center", align: "center",
width: 180 width: 180,
} },
], ],
list: [] list: [],
}; };
}, },
props: { props: {
eid: Number eid: Number,
}, },
mounted() { mounted() {
this.$refs.grid.reload(this.easySearch); this.$refs.grid.reload(this.easySearch);
this.loadList(); // if (this.eid) {
// this.loadList();
// }
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
...@@ -201,17 +210,17 @@ export default { ...@@ -201,17 +210,17 @@ 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) => {
if (res.success) { if (res.success) {
this.list = res.result.items; this.list = res.result.items;
} else { } else {
this.$Message.error("获取数据失败"); this.$Message.error("获取数据失败");
} }
}) })
.catch(err => { .catch((err) => {
this.$Message.error("连接失败"); this.$Message.error("连接失败");
}); });
}, },
...@@ -231,15 +240,17 @@ export default { ...@@ -231,15 +240,17 @@ export default {
detail(id) { detail(id) {
this.detailModal = true; this.detailModal = true;
this.curId = id; this.curId = id;
} },
}, },
watch: { watch: {
eid(v) { eid(v) {
this.condition.orderId.value = v; if (v) {
this.$refs.grid.reload(this.condition); this.easySearch.orderId.value = v;
this.loadList(); this.$refs.grid.reload(this.easySearch);
} // this.loadList();
} }
},
},
}; };
</script> </script>
<style lang='less'> <style lang='less'>
......
...@@ -135,11 +135,6 @@ export default { ...@@ -135,11 +135,6 @@ export default {
return this.$t(key); return this.$t(key);
}, },
}, },
watch: { watch: {},
"entity.relatedPerson"(v) {
alert(typeof v);
// this.entity = this.$u.clone(this.v)
},
},
}; };
</script> </script>
\ No newline at end of file
...@@ -78,9 +78,9 @@ ...@@ -78,9 +78,9 @@
</div> </div>
<div style="margin-top:20px;">本合格证无检验专用章无效 (版本:MB.FFGGHJKLL)</div> <div style="margin-top:20px;">本合格证无检验专用章无效 (版本:MB.FFGGHJKLL)</div>
<Row style="margin-top:5px;"> <Row style="margin-top:5px;">
<Col :span="8">地址:北京市海淀区知春路63号</Col> <Col :span="10">地址:</Col>
<Col :span="8" style="text-align:center;">电话:010-68378079</Col> <Col :span="8" >电话:</Col>
<Col :span="8" style="text-align:right;">邮编:100190</Col> <Col :span="6" >邮编:</Col>
</Row> </Row>
</div> </div>
</div> </div>
......
<template> <template>
<div class="pdf-detail"> <div class="pdf-detail">
<div class="cerioficate-pdf-detail"> <div class="cerioficate-pdf-detail">
<div class="bian-hao">产品合格证编号:{{results.serialNumber}}</div> <div class="bian-hao">产品合格证编号:{{ results.serialNumber }}</div>
<div class="body-d"> <div class="body-d">
<Row class="row-border right-border"> <Row class="row-border right-border">
<Col :span="4" class="col-border">用户单位</Col> <Col :span="4" class="col-border">用户单位</Col>
<Col :span="20" class="col-border">{{results.userUnit}}</Col> <Col :span="20" class="col-border">{{ results.userUnit }}</Col>
</Row> </Row>
<Row class="row-border right-border"> <Row class="row-border right-border">
<Col :span="4" class="col-border">任务依据</Col> <Col :span="4" class="col-border">任务依据</Col>
<Col :span="20" class="col-border">{{results.taskBased}}</Col> <Col :span="20" class="col-border">{{ results.taskBased }}</Col>
</Row> </Row>
<Row class="row-border right-border"> <Row class="row-border right-border">
<Col :span="4" class="col-border">产品名称</Col> <Col :span="4" class="col-border">产品名称</Col>
<Col :span="8" class="col-border">{{results.productName}}</Col> <Col :span="8" class="col-border">{{ results.productName }}</Col>
<Col :span="4" class="col-border">产品状态</Col> <Col :span="4" class="col-border">产品状态</Col>
<Col :span="8" class="col-border">{{results.productStatus}}</Col> <Col :span="8" class="col-border">{{ results.productStatus }}</Col>
</Row> </Row>
<Row class="row-border right-border"> <Row class="row-border right-border">
<Col :span="4" class="col-border">产品编号</Col> <Col :span="4" class="col-border">产品编号</Col>
<Col :span="8" class="col-border">{{results.productSerialNumber}}</Col> <Col :span="8" class="col-border">{{
results.productSerialNumber
}}</Col>
<Col :span="4" class="col-border">原材料批号</Col> <Col :span="4" class="col-border">原材料批号</Col>
<Col :span="8" class="col-border">{{results.materialSerialNumber}}</Col> <Col :span="8" class="col-border">{{
results.materialSerialNumber
}}</Col>
</Row> </Row>
<Row class="row-border right-border"> <Row class="row-border right-border">
<Col :span="4" class="col-border">原材料编号</Col> <Col :span="4" class="col-border">原材料编号</Col>
<Col :span="8" class="col-border">{{results.materialCode}}</Col> <Col :span="8" class="col-border">{{ results.materialCode }}</Col>
<Col :span="4" class="col-border">产品代号(图号)</Col> <Col :span="4" class="col-border">产品代号(图号)</Col>
<Col :span="8" class="col-border">{{results.productCode}}</Col> <Col :span="8" class="col-border">{{ results.productCode }}</Col>
</Row> </Row>
<Row class="row-border right-border"> <Row class="row-border right-border">
<Col :span="4" class="col-border">原材料合格证编号</Col> <Col :span="4" class="col-border">原材料合格证编号</Col>
<Col :span="8" class="col-border">{{results.materialCertificationNumber}}</Col> <Col :span="8" class="col-border">{{
results.materialCertificationNumber
}}</Col>
<Col :span="4" class="col-border">数量</Col> <Col :span="4" class="col-border">数量</Col>
<Col :span="8" class="col-border">{{results.productQuantity}}</Col> <Col :span="8" class="col-border">{{ results.productQuantity }}</Col>
</Row> </Row>
<!-- <Row class="row-border right-border"> <!-- <Row class="row-border right-border">
<Col :span="4" class="col-border">增材制造批次号</Col> <Col :span="4" class="col-border">增材制造批次号</Col>
...@@ -50,30 +56,40 @@ ...@@ -50,30 +56,40 @@
<Col :span="5" class="col-border">结论</Col> <Col :span="5" class="col-border">结论</Col>
<Col :span="5" class="col-border">备注</Col> <Col :span="5" class="col-border">备注</Col>
</Row> </Row>
<Row class="row-border right-border" v-for="(item,index) in results.items" :key="index"> <Row
<Col :span="1" class="col-border">{{index+1}}</Col> class="row-border right-border"
<Col :span="5" class="col-border">{{item.name}}</Col> v-for="(item, index) in results.items"
<Col :span="5" class="col-border">{{item.require}}</Col> :key="index"
<Col :span="3" class="col-border">{{item.result}}</Col> >
<Col :span="5" class="col-border">{{item.conclusion}}</Col> <Col :span="1" class="col-border">{{ index + 1 }}</Col>
<Col :span="5" class="col-border">{{item.remark}}</Col> <Col :span="5" class="col-border">{{ item.name }}</Col>
<Col :span="5" class="col-border">{{ item.require }}</Col>
<Col :span="3" class="col-border">{{ item.result }}</Col>
<Col :span="5" class="col-border">{{ item.conclusion }}</Col>
<Col :span="5" class="col-border">{{ item.remark }}</Col>
</Row> </Row>
<Row class="row-border right-border"> <Row class="row-border right-border">
<Col :span="4" class="col-border">结论</Col> <Col :span="4" class="col-border">结论</Col>
<Col :span="20" class="col-border">{{results.conclusion}}</Col> <Col :span="20" class="col-border">{{ results.conclusion }}</Col>
</Row> </Row>
<Row class="row-border right-border bottom-border"> <Row class="row-border right-border bottom-border">
<Col :span="4" class="col-border">检验员 / 时间</Col> <Col :span="4" class="col-border">检验员 / 时间</Col>
<Col :span="8" class="col-border">{{results.examUser}} {{results.examDate}}</Col> <Col :span="8" class="col-border"
>{{ results.examUser }} {{ results.examDate }}</Col
>
<Col :span="4" class="col-border">批准人 / 时间</Col> <Col :span="4" class="col-border">批准人 / 时间</Col>
<Col :span="8" class="col-border">{{results.approveUser}} {{results.approveDate}}</Col> <Col :span="8" class="col-border"
>{{ results.approveUser }} {{ results.approveDate }}</Col
>
</Row> </Row>
</div> </div>
<div style="margin-top:20px;">本合格证无检验专用章无效 (版本:MB.FFGGHJKLL)</div> <div style="margin-top: 20px">
<Row style="margin-top:5px;"> 本合格证无检验专用章无效 (版本:MB.FFGGHJKLL)
<Col :span="8">地址:北京市海淀区知春路63号</Col> </div>
<Col :span="8" style="text-align:center;">电话:010-68378079</Col> <Row style="margin-top: 5px">
<Col :span="8" style="text-align:right;">邮编:100190</Col> <Col :span="10">地址:</Col>
<Col :span="8">电话:</Col>
<Col :span="6">邮编:100190</Col>
</Row> </Row>
</div> </div>
</div> </div>
...@@ -81,21 +97,21 @@ ...@@ -81,21 +97,21 @@
<script> <script>
export default { export default {
name: '', name: "",
props: ['results'], props: ["results"],
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
data() { data() {
return {} return {};
}, },
methods: { methods: {
l(key) { l(key) {
key = 'waitOpened' + '.' + key key = "waitOpened" + "." + key;
return this.$t(key) return this.$t(key);
} },
} },
} };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.pdf-detail { .pdf-detail {
......
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