-
-
-
-
-
-
-
-
-
+ range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间">
-
+
@@ -41,7 +31,7 @@
-
+
@@ -144,12 +134,9 @@
keyword: "",
start_date: "",
end_date: "",
- order_start_date: "",
- order_end_date: "",
is_export: 0,
type: "",
- unit: "",
- time: "",
+ activity_name: "",
status: ""
},
tableData: [],
@@ -160,28 +147,37 @@
},
columns: [{
field: "date",
- title: "预约日期",
- type: "date",
- width: 180,
+ title: "活动时间",
+ type: "format",
+ width: 260,
+ align: "center",
fixed: "left"
},
{
- field: "person",
- title: "预约人",
+ field: "activity_name",
+ title: "活动名称",
type: "string",
- align: "center",
- width: 120
+ align: "left",
+ width: 220,
+ fixed: "left"
},
{
field: "name",
- title: "游客",
+ title: "参与人",
type: "string",
align: "center",
width: 120
},
{
- field: "personmobile",
- title: "游客电话",
+ field: "mobile",
+ title: "联系电话",
+ type: "string",
+ align: "center",
+ width: 180,
+ },
+ {
+ field: "idcard",
+ title: "证件号",
type: "string",
align: "center",
width: 180,
@@ -200,13 +196,6 @@
align: "center",
width: 120
},
- {
- field: "mobile",
- title: "联系电话",
- type: "string",
- align: "center",
- width: 180,
- },
{
field: "unit",
title: "单位",
@@ -276,10 +265,13 @@
let _data = [];
// let result = Object.assign(_data, res.data);
for (var m of res.data) {
- var mod = {};
-
- mod.status = m.status
- _data.push(m)
+ m.date = m.activity_order.activity.start_time + "至" + this.$moment(m.activity_order.activity
+ .end_time).format("HH:mm:ss");
+ m.activity_name = m.activity_order.activity.name;
+ m.typeName = m.activity_order.type == 1 ? "团体" : "个人"
+ m.unit = m.activity_order.type == 1 ? m.activity_order.unit : "无"
+ m.leader = m.activity_order.type == 1 ? m.activity_order.leader : "无"
+ _data.push(m);
}
that.tableData = _data;
that.paginations.total = res.total
@@ -295,13 +287,6 @@
this.searchFields.start_date = ""
this.searchFields.end_date = ""
}
- if (this.orderRange) {
- this.searchFields.order_start_date = this.orderRange[0]
- this.searchFields.order_end_date = this.orderRange[1]
- } else {
- this.searchFields.order_start_date = ""
- this.searchFields.order_end_date = ""
- }
this.load()
},
resetload() {
diff --git a/src/views/order/parkorder.vue b/src/views/order/parkorder.vue
index f2c1830..bf4f3a3 100644
--- a/src/views/order/parkorder.vue
+++ b/src/views/order/parkorder.vue
@@ -34,7 +34,7 @@
-
+
@@ -191,7 +191,8 @@
columns: [{
field: "time",
title: "预约时间",
- type: "string",
+ type: "string",
+
},
{
field: "plate",
diff --git a/src/views/order/visitor.vue b/src/views/order/visitor.vue
index 814c623..e202277 100644
--- a/src/views/order/visitor.vue
+++ b/src/views/order/visitor.vue
@@ -41,7 +41,7 @@
-
+
@@ -162,7 +162,7 @@
field: "date",
title: "预约日期",
type: "date",
- width: 180,
+ width: 220,
fixed: "left"
},
{
diff --git a/src/views/order/visitorder.vue b/src/views/order/visitorder.vue
index 21ccee6..8c59759 100644
--- a/src/views/order/visitorder.vue
+++ b/src/views/order/visitorder.vue
@@ -31,13 +31,14 @@
-
+
+