修改截止时间

master
lion 3 years ago
parent e53b438ec0
commit 150e892ac7

@ -540,11 +540,26 @@
}
this.dialogFormVisible = true;
},
compareDate (d1, d2) {
  let reg = new RegExp('-', 'g')
  return ((new Date(d1.replace(reg, '/'))) > (new Date(d2.replace(reg, '/'))))
},
submitForm(formName) {
var that = this;
that.form.start_time = this.dateRange[0]
that.form.end_time = this.dateRange[1]
that.form.start_time = this.dateRange[0];
that.form.end_time = this.dateRange[1];
//
let checktime = that.compareDate(that.form.start_time,that.form.end_plan);
if(!checktime){
that.$message.error('截止时间不能晚于开始时间');
return false;
}
// console.log(a)
// that.form.end_time = that.form.start_time.substring(0, 10) + " " + that.form.end_time;
let listUrl = [];
for (var m of that.bannersList) {

@ -218,6 +218,18 @@
title: "类型",
type: "type",
align: "center"
},
{
field: "total",
title: "人数",
type: "string",
align:"center"
},
{
field: "created_at",
title: "下单时间",
type: "string",
align:"center"
},
{
field: "status",

@ -26,6 +26,12 @@
<div v-else-if="column.type=='date'">
{{scope.row['date']+" "+scope.row['time']}}
</div>
<div v-else-if="column.type=='is_disability'">
<div v-if="scope.row[column.field]==0">
</div>
<el-tag v-if="scope.row[column.field]==1" type="success"></el-tag>
</div>
<div v-else-if="column.type=='type'" v-for="item in parameters.visitType">
<div v-if="item.id==scope.row[column.field]">
{{item.value}}
@ -211,7 +217,8 @@
columns: [{
field: "date",
title: "预约日期",
type: "date",
type: "date",
width:180
},
{
field: "leader",
@ -231,6 +238,24 @@
type: "type",
align:"center"
},
{
field: "total",
title: "人数",
type: "string",
align:"center"
},
{
field: "is_disability",
title: "是否有行动不便者",
type: "is_disability",
align:"center"
},
{
field: "created_at",
title: "下单时间",
type: "string",
align:"center"
},
{
field: "status",
title: "订单状态",

Loading…
Cancel
Save