Commit 0f26b924 authored by 仇晓婷's avatar 仇晓婷

电子对账单数据对接

parent 914dfa78
<template> <template>
<div> <div class="order-bill">
<Row> <Row>
<Col span="4"> <Col span="4">
<Input <Input
v-model="keys" v-model="keys"
search search
placeholder="请输入订单编号" placeholder="请输入订单编号"
enter-button clearable
style="width:280px;margin:10px 5px;" style="width:280px;margin:10px 5px;"
/> />
</Col> </Col>
...@@ -14,81 +14,55 @@ ...@@ -14,81 +14,55 @@
<a @click="clickSeach">高级搜索</a> <a @click="clickSeach">高级搜索</a>
</Col> </Col>
</Row> </Row>
<div class="bill"> <div class="bill">
<div class="bill-l">
<h4 class="title1">订单信息</h4> <h4 class="title1">订单信息</h4>
<div class="body" v-for="(li,index) in listData" :key="index" @click="itemClick"> <h4 class="title2">订单信息</h4>
</div>
<div class="bill-conten">
<div class="bill-body" v-for="(li,index) in listData" :key="index" @click="itemClick">
<div class="body">
<div class="bill-l">
<div class="l-list"> <div class="l-list">
<Row class="title-i"> <Row class="title-i">
<Col :span="12">{{li.name}}</Col> <Col :span="12">{{li.mesCode}}</Col>
<Col :span="12">{{li.code}}</Col> <Col :span="12" style="text-align: right;padding-right:10px">{{li.productName}}</Col>
</Row> </Row>
<Row class="bady-c"> <Row class="bady-c">
<Col :span="12">订单状态:{{li.status}}</Col> <Col :span="8">订单状态:{{li.status}}</Col>
<Col :span="12">紧急程度:{{li.chengdu}}</Col> <Col :span="16">工艺规程:{{li.actualFinishDate}}</Col>
</Row> </Row>
<Row class="bady-c">
<Col :span="12">数量:{{li.cont}}</Col> <div class="bady-c">订单计划开始时间:{{li.demandStartDate}}</div>
<Col :span="12">任务类型:{{li.type}}</Col> <div class="bady-c">订单计划结束时间:{{li.demandFinishDate}}</div>
</Row>
<div class="bady-c">图号:{{li.tuhao}}</div> <div class="bady-c">实际开始时间:{{li.actualStartDate}}</div>
<div class="bady-c">批次号:{{li.picihao}}</div> <div class="bady-c">实际结束时间:{{li.actualFinishDate}}</div>
<div class="bady-c">项目号:{{li.xianmuhao}}</div>
</div>
</div> </div>
</div> </div>
<div class="bill-r"> <div class="bill-r">
<h4 class="title2">工单信息</h4>
<div class="r-list"> <div class="r-list">
<div v-for="(li,index) in WorkOrder1" :key="index"> <div v-for="(item,index) in li.dispatchList" :key="index">
<!-- status=0,已完成,1正在进行,3暂停 -->
<div <div
class="gong-dan" class="gong-dan"
:class="li.status==0?'gong-dan0':li.status==1?'gong-dan1':li.status==2?'gong-dan2':'gong-dan3'" :class="item.status==0?'gong-dan0':item.status==1?'gong-dan1':item.status==2?'gong-dan2':'gong-dan3'"
> >
<div>{{li.title}}</div> <div>{{item.taskSeq}} {{item.detailName}}</div>
<div>{{li.name}}</div> <div>人员:{{item.userNames}}</div>
<div>{{li.PaigaongTime}}</div> <div>{{li.demandStartDate}}</div>
<div>{{li.finshTime}}</div> <div>{{li.demandFinishDate}}</div>
<div>{{li.startTime}}</div> <div>{{li.actualStartDate}}</div>
<div>{{li.endTime}}</div> <div>{{li.actualFinishDate}}</div>
</div> </div>
</div> </div>
</div> </div>
<div class="r-list">
<div v-for="(li,index) in WorkOrder2" :key="index">
<div
class="gong-dan"
:class="li.status==0?'gong-dan0':li.status==1?'gong-dan1':li.status==2?'gong-dan2':'gong-dan3'"
>
<div>{{li.title}}</div>
<div>{{li.name}}</div>
<div>{{li.PaigaongTime}}</div>
<div>{{li.finshTime}}</div>
<div>{{li.startTime}}</div>
<div>{{li.endTime}}</div>
</div>
</div>
</div>
<div class="r-list">
<div v-for="(li,index) in WorkOrder3" :key="index">
<div
class="gong-dan"
:class="li.status==0?'gong-dan0':li.status==1?'gong-dan1':li.status==2?'gong-dan2':'gong-dan3'"
>
<div>{{li.title}}</div>
<div>{{li.name}}</div>
<div>{{li.PaigaongTime}}</div>
<div>{{li.finshTime}}</div>
<div>{{li.startTime}}</div>
<div>{{li.endTime}}</div>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<Modal v-model="modal" title="高级搜索" @on-ok="ok" @on-cancel="cancel"> <Modal v-model="modal" title="高级搜索" @on-ok="ok" @on-cancel="cancel">
<Form ref="form" :model="entity" :rules="rules" :label-width="90"> <Form ref="form" :model="entity" :label-width="90">
<Row> <Row>
<Col :span="12"> <Col :span="12">
<FormItem label="订单" prop="name"> <FormItem label="订单" prop="name">
...@@ -122,210 +96,40 @@ export default { ...@@ -122,210 +96,40 @@ export default {
keys: "", keys: "",
modal: false, modal: false,
entity: {}, entity: {},
listP: [ WorkOrder: [],
{
name: "DDBH_20200219", rules: []
code: "CR200J0001", };
status: "已派发",
chengdu: "一级",
cont: 100,
type: "正式计划",
tuhao: "CLX-2K-001",
picihao: "20200519-LXG-001",
xianmuhao: "XM-20200519-LXG"
},
{
name: "DDBH_20200220",
code: "CR200J0001",
status: "已派发",
chengdu: "一级",
cont: 100,
type: "正式计划",
tuhao: "CLX-2K-001",
picihao: "20200519-LXG-001",
xianmuhao: "XM-20200519-LXG"
}, },
{ computed: {
name: "DDBH_20200221", listData() {
code: "CR200J0001", return this.WorkOrder.filter(u => {
status: "已派发", return u.mesCode.indexOf(this.keys) > -1;
chengdu: "一级", });
cont: 100,
type: "正式计划",
tuhao: "CLX-2K-001",
picihao: "20200519-LXG-001",
xianmuhao: "XM-20200519-LXG"
} }
],
WorkOrder1: [
{
title: "10 作业准备",
name: "机加中心-操作工1",
PaigaongTime: "2020-03-12",
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 0 //已完成
},
{
title: "20 接触网断电",
name: "机加中心-操作工1",
PaigaongTime: "2020-03-12",
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 1 //正在进行
}, },
{ mounted() {
title: "30 有电作业", this.getMessage();
name: "机加中心-操作工1",
PaigaongTime: "2020-03-12",
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 2
},
{
title: "40 泄露试验",
name: "机加中心-操作工1",
PaigaongTime: "2020-03-12",
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 2
}, },
methods: {
getMessage() {
let conditions = [
{ {
title: "50 票据填写", conditionalType: "Equal",
name: "机加中心-操作工1", fieldName: "",
PaigaongTime: "2020-03-12", fieldValue: ""
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 2
} }
], ];
WorkOrder2: [ this.$api
{ .post(`${PlanUrl}/orderaudit/pagedaccountmesorders`, {
title: "10 车顶作业", conditions: conditions
name: "机加中心-操作工1", })
PaigaongTime: "2020-03-12", .then(res => {
finshTime: "2020-03-12", if (res.success) {
startTime: "2020-03-12", this.WorkOrder = res.result.items;
endTime: "2020-03-12",
status: 0 //已完成
},
{
title: "20 司机室作业",
name: "机加中心-操作工1",
PaigaongTime: "2020-03-12",
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 3
},
{
title: "30 机械间作业",
name: "机加中心-操作工1",
PaigaongTime: "2020-03-12",
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 2
},
{
title: "40 走行部作业",
name: "机加中心-操作工1",
PaigaongTime: "2020-03-12",
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 2
} }
],
WorkOrder3: [
{
title: "10 接车入库",
name: "机加中心-操作工1",
PaigaongTime: "2020-03-12",
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 0 //已完成
},
{
title: "20 接触网断电",
name: "机加中心-操作工1",
PaigaongTime: "2020-03-12",
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 1 //正在进行
},
{
title: "30 车顶检查",
name: "机加中心-操作工1",
PaigaongTime: "2020-03-12",
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 1
},
{
title: "40 电务检查",
name: "机加中心-操作工1",
PaigaongTime: "2020-03-12",
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 2
},
{
title: "50 供电",
name: "机加中心-操作工1",
PaigaongTime: "2020-03-12",
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 2
},
{
title: "50 供电",
name: "机加中心-操作工1",
PaigaongTime: "2020-03-12",
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 2
},
{
title: "50 供电",
name: "机加中心-操作工1",
PaigaongTime: "2020-03-12",
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 2
},
{
title: "50 供电",
name: "机加中心-操作工1",
PaigaongTime: "2020-03-12",
finshTime: "2020-03-12",
startTime: "2020-03-12",
endTime: "2020-03-12",
status: 2
}
]
};
},
computed: {
listData() {
return this.listP.filter(u => {
return u.name.indexOf(this.keys) > -1;
}); });
}
}, },
methods: {
clickSeach() { clickSeach() {
this.modal = true; this.modal = true;
}, },
...@@ -343,30 +147,36 @@ export default { ...@@ -343,30 +147,36 @@ export default {
}; };
</script> </script>
<style lang="less" > <style lang="less" >
.bill { .order-bill {
.bill {
display: flex; display: flex;
display: -webkit-flex; display: -webkit-flex;
height: 83vh; height: 49px;
overflow: hidden; line-height: 49px;
margin-left: 3px;
border: 1px solid #e4e6ed;
.bill-l {
width: 400px;
border: 1px solid #e4e6ed; border: 1px solid #e4e6ed;
height: 100%;
overflow: hidden;
.title1 { .title1 {
width: 400px;
background: rgba(81, 90, 110, 0.2); background: rgba(81, 90, 110, 0.2);
height: 49px;
line-height: 49px;
padding-left: 10px; padding-left: 10px;
} }
.body:hover { .title2 {
cursor: pointer; width: 1499px;
background: rgba(38, 128, 235, 0.2);
padding-left: 10px;
} }
}
.bill-conten {
height: 77vh;
overflow: auto;
border: 1px solid #e4e6ed;
.bill-body {
.body { .body {
display: flex;
display: -webkit-flex;
border-bottom: 1px solid #e4e6ed;
.bill-l {
width: 400px;
padding: 15px 0; padding: 15px 0;
border-bottom: 1px solid #cacbd0;
.l-list { .l-list {
width: 360px; width: 360px;
height: 200px; height: 200px;
...@@ -387,25 +197,17 @@ export default { ...@@ -387,25 +197,17 @@ export default {
padding-left: 10px; padding-left: 10px;
} }
} }
.l-list:hover {
cursor: pointer;
} }
} }
.bill-r { .bill-r {
width: 1495px; width: 1495px;
height: 100%; border-left: 1px solid #e4e6ed;
border: 1px solid #e4e6ed;
// overflow: hidden;
.title2 {
background: rgba(38, 128, 235, 0.2);
height: 49px;
line-height: 49px;
padding-left: 10px;
}
.r-list { .r-list {
width: 1495px;
display: -webkit-flex; display: -webkit-flex;
display: flex; display: flex;
padding: 15px 10px; padding: 15px 10px;
border-bottom: 1px solid #cacbd0;
flex-wrap: nowrap; flex-wrap: nowrap;
overflow-x: auto; overflow-x: auto;
.gong-dan { .gong-dan {
...@@ -477,5 +279,8 @@ export default { ...@@ -477,5 +279,8 @@ export default {
} }
} }
} }
}
}
}
} }
</style> </style>
\ No newline at end of file
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