Commit ae855c32 authored by ww-xxy's avatar ww-xxy

修改预约报表

parent 41324165
...@@ -144,6 +144,13 @@ let statusItem = { ...@@ -144,6 +144,13 @@ let statusItem = {
2: "超时未取号", 2: "超时未取号",
3: "预约取消", 3: "预约取消",
}; };
const style = {
0: "排队中",
1: "办理中",
2: "办理中",
3: "办理中",
4: "办理完成",
}
export default { export default {
name: "PortalAdminVueMakeRecordReport", name: "PortalAdminVueMakeRecordReport",
data() { data() {
...@@ -231,6 +238,7 @@ export default { ...@@ -231,6 +238,7 @@ export default {
filterVal, filterVal,
tableHeaders, tableHeaders,
statusItem, statusItem,
style,
btnLoading: false, btnLoading: false,
searchForm: { searchForm: {
status: "", status: "",
...@@ -268,10 +276,11 @@ export default { ...@@ -268,10 +276,11 @@ export default {
this.getOrderList(); this.getOrderList();
} }
this.tableSourceData = data.map((v) => { this.tableSourceData = data.map((v) => {
delete v.people.id; v.people && delete v.people.id;
return { ...v, ...v.people }; return { ...v, ...v.people };
}); });
this.total = total; this.total = total;
return this.tableSourceData; return this.tableSourceData;
} }
}, },
...@@ -339,7 +348,7 @@ export default { ...@@ -339,7 +348,7 @@ export default {
for (let item of data) { for (let item of data) {
Object.keys(this.statusItem).forEach((key) => { Object.keys(this.statusItem).forEach((key) => {
if (item.status == key) { if (item.status == key) {
item.status = this.statusItem[key]; item.status = item.status==1?this.style[item.style]:this.statusItem[key];
} }
}); });
} }
...@@ -351,7 +360,7 @@ export default { ...@@ -351,7 +360,7 @@ export default {
for (let item of data) { for (let item of data) {
Object.keys(this.statusItem).forEach((key) => { Object.keys(this.statusItem).forEach((key) => {
if (item.status == key) { if (item.status == key) {
item.status = this.statusItem[key]; item.status = item.status==1?this.style[item.style]:this.statusItem[key];
} }
}); });
} }
......
...@@ -48,8 +48,8 @@ ...@@ -48,8 +48,8 @@
<!-- <p v-for="item of 3">事项1:生育证津贴办理</p> --> <!-- <p v-for="item of 3">事项1:生育证津贴办理</p> -->
</div> </div>
<div class="right_"> <div class="right_">
<span class="status1" v-if="orderInfo.status != 1">未签到</span> <span class="status2" v-if="orderInfo.status == 1">{{style[orderInfo.style]}}</span>
<span class="status2" v-else>排队中</span> <span class="status1" v-else>{{statusItem[orderInfo.status]}}</span>
</div> </div>
</div> </div>
<div class="box2"> <div class="box2">
...@@ -130,12 +130,20 @@ let statusItem = { ...@@ -130,12 +130,20 @@ let statusItem = {
2: "超时未取号", 2: "超时未取号",
3: "预约取消", 3: "预约取消",
}; };
const style = {
0: "排队中",
1: "办理中",
2: "办理中",
3: "办理中",
4: "办理完成",
}
export default { export default {
name: "PortalAdminVueRecordReportdetails", name: "PortalAdminVueRecordReportdetails",
data() { data() {
return { return {
orderStatus, orderStatus,
statusItem, statusItem,
style,
orderInfo: {}, // 预约信息 orderInfo: {}, // 预约信息
}; };
}, },
......
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