|
|
|
|
@ -594,7 +594,6 @@
|
|
|
|
|
m.checked = false
|
|
|
|
|
}
|
|
|
|
|
that.common_user = res;
|
|
|
|
|
console.log(that.common_user)
|
|
|
|
|
},
|
|
|
|
|
utilFail: function(res) {
|
|
|
|
|
|
|
|
|
|
@ -668,7 +667,6 @@
|
|
|
|
|
this.util.request({
|
|
|
|
|
api: '/api/mobile/visit/introduce',
|
|
|
|
|
utilSuccess: function(res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
that.info = res;
|
|
|
|
|
that.notice[0].content = (that.type == 'user' ? res.person_notice : res.team_notice)
|
|
|
|
|
that.notice[0].content = that.notice[0].content.replace(/\<p/gi, "<p class='richp'");
|
|
|
|
|
@ -687,9 +685,9 @@
|
|
|
|
|
this.notice[type].content = this.notice[type].content.replace("@host@", this.util.HOST);
|
|
|
|
|
this.currentNotice = this.notice[type];
|
|
|
|
|
},
|
|
|
|
|
submitOrder() {
|
|
|
|
|
console.log(this.form);
|
|
|
|
|
// return
|
|
|
|
|
submitOrder() {
|
|
|
|
|
console.log(this.form)
|
|
|
|
|
return
|
|
|
|
|
this.form.date = this.currentDate.date;
|
|
|
|
|
this.form.rule_id = this.currentTime.id;
|
|
|
|
|
// if(this.specialid){
|
|
|
|
|
@ -1013,7 +1011,10 @@
|
|
|
|
|
this.$forceUpdate();
|
|
|
|
|
},
|
|
|
|
|
handleSelectTime(index) {
|
|
|
|
|
var mod = this.currentDate.rules[index];
|
|
|
|
|
var mod = this.currentDate.rules[index];
|
|
|
|
|
if (!mod.isCanbook) {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
if (mod.remain_count == 0) {
|
|
|
|
|
this.util.toast("该时段已不可预约");
|
|
|
|
|
return false
|
|
|
|
|
@ -1104,8 +1105,10 @@
|
|
|
|
|
that.currentTime = {};
|
|
|
|
|
let isDefault = false;
|
|
|
|
|
for (var mod of rules) {
|
|
|
|
|
mod.checked = false;
|
|
|
|
|
|
|
|
|
|
mod.checked = false;
|
|
|
|
|
mod.endtime = that.currentDate.date + " " + mod.end_time;
|
|
|
|
|
var isCanbook = that.$moment(nt).isBefore(mod.endtime);
|
|
|
|
|
mod.isCanbook = isCanbook;
|
|
|
|
|
if (that.bcurrentTime) {
|
|
|
|
|
if (that.bcurrentTime.id == mod.id) {
|
|
|
|
|
mod.checked = true;
|
|
|
|
|
@ -1113,9 +1116,7 @@
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
mod.endtime = that.currentDate.date + " " + mod.end_time;
|
|
|
|
|
var isCanbook = that.$moment(nt).isBefore(mod.endtime);
|
|
|
|
|
mod.isCanbook = isCanbook;
|
|
|
|
|
|
|
|
|
|
if (!isDefault && mod.remain_count > 0 && isCanbook) {
|
|
|
|
|
isDefault = true;
|
|
|
|
|
mod.checked = true;
|
|
|
|
|
@ -1132,7 +1133,6 @@
|
|
|
|
|
openAdd(index) {
|
|
|
|
|
this.formUser = this.$options.data().formUser;
|
|
|
|
|
if (index || index == 0) {
|
|
|
|
|
console.log(index)
|
|
|
|
|
this.editIndex = index;
|
|
|
|
|
let r = Object.assign(this.formUser, this.form.details_list[index]);
|
|
|
|
|
} else
|
|
|
|
|
|