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

修改预约报表

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