|
|
|
|
@ -739,9 +739,14 @@
|
|
|
|
|
_that.util.toast("导入失败,原因‘" + err.errmsg + "’请查看批量导入说明");
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
var jsonlist = JSON.parse(res.data);
|
|
|
|
|
_that.form.total=jsonlist.length;
|
|
|
|
|
|
|
|
|
|
console.log(res.data);
|
|
|
|
|
var jsonlist = JSON.parse(res.data);
|
|
|
|
|
|
|
|
|
|
console.log(jsonlist);
|
|
|
|
|
_that.form.total = jsonlist.length||6;
|
|
|
|
|
for (var m of jsonlist) {
|
|
|
|
|
console.log("m",m);
|
|
|
|
|
_that.form.details_list.push({
|
|
|
|
|
name: m.name,
|
|
|
|
|
idcard: m.idcard,
|
|
|
|
|
@ -1013,15 +1018,15 @@
|
|
|
|
|
mod.checked = true;
|
|
|
|
|
that.currentTime = that.bcurrentTime;
|
|
|
|
|
}
|
|
|
|
|
} 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;
|
|
|
|
|
that.currentTime = mod;
|
|
|
|
|
} 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;
|
|
|
|
|
that.currentTime = mod;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|