|
|
|
|
@ -8,24 +8,14 @@
|
|
|
|
|
<slot>
|
|
|
|
|
<div>
|
|
|
|
|
<el-date-picker class="vm10" v-model="visitRange" value-format="yyyy-MM-dd" type="daterange"
|
|
|
|
|
range-separator="至" start-placeholder="参观开始时间" end-placeholder="参观结束时间">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
<el-select style="margin-left: 10px;margin-right: 10px;" v-model="searchFields.time" placeholder="预约时段">
|
|
|
|
|
<el-option value="">
|
|
|
|
|
</el-option>
|
|
|
|
|
<el-option v-for="item in parameters.visittime" :key="item.id" :label="item.value" :value="item.value">
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-date-picker class="vm10" v-model="orderRange" value-format="yyyy-MM-dd" type="daterange"
|
|
|
|
|
range-separator="至" start-placeholder="订单开始时间" end-placeholder="订单结束时间">
|
|
|
|
|
range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
<el-select class="vm10 vm15" v-model="searchFields.type" placeholder="请选择类型">
|
|
|
|
|
<el-option v-for="item in parameters.type_list" :key="item.id" :label="item.value" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<Input class="inputwrap" v-model="searchFields.keyword" placeholder="请输入关键词" />
|
|
|
|
|
<Input class="inputwrap" v-model="searchFields.unit" placeholder="请输入单位" />
|
|
|
|
|
<Input class="inputwrap" v-model="searchFields.activity_name" placeholder="请输入活动名称" />
|
|
|
|
|
<el-select style="margin-right: 10px;width: 120px;" v-model="searchFields.status" placeholder="请选择状态">
|
|
|
|
|
<el-option value="">
|
|
|
|
|
</el-option>
|
|
|
|
|
@ -41,7 +31,7 @@
|
|
|
|
|
</LxHeader>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="table-tree">
|
|
|
|
|
<el-table :data="tableData" :height="tableHeight" style="width: 100%">
|
|
|
|
|
<el-table :data="tableData" class="v-table" :height="tableHeight" style="width: 100%">
|
|
|
|
|
<el-table-column type="index" width="50" align="center" label="序号" fixed="left"> </el-table-column>
|
|
|
|
|
<el-table-column :prop="column.field" :align="column.align" v-for="(column,index) in columns"
|
|
|
|
|
:label="column.title" :width="column.width" :fixed="column.fixed">
|
|
|
|
|
@ -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() {
|
|
|
|
|
|