|
|
|
|
@ -56,7 +56,7 @@
|
|
|
|
|
}, {
|
|
|
|
|
name: '已完成',
|
|
|
|
|
idx: "2"
|
|
|
|
|
},{
|
|
|
|
|
}, {
|
|
|
|
|
name: '已过期',
|
|
|
|
|
idx: "3"
|
|
|
|
|
}],
|
|
|
|
|
@ -117,10 +117,25 @@
|
|
|
|
|
status: this.list[this.current].idx
|
|
|
|
|
},
|
|
|
|
|
utilSuccess: function(res) {
|
|
|
|
|
var list= [];
|
|
|
|
|
for (var mod of res) {
|
|
|
|
|
mod.status_name = that.statusArr[mod.status];
|
|
|
|
|
if (mod.visit_order) {
|
|
|
|
|
|
|
|
|
|
mod.time = mod.visit_order.date + " " + mod.visit_order.time;
|
|
|
|
|
} else {
|
|
|
|
|
if (mod.activity_order) {
|
|
|
|
|
mod.time = that.$moment(mod.activity_order.activity.start_time).format(
|
|
|
|
|
"YYYY-MM-DD HH:mm")+"~"+that.$moment(mod.activity_order.activity.end_time).format(
|
|
|
|
|
"HH:mm");
|
|
|
|
|
//mod.time = mod.activity_order.date + " " + mod.activity_order.time;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
list.push(mod);
|
|
|
|
|
}
|
|
|
|
|
that.listOrder = res;
|
|
|
|
|
that.listOrder = list;
|
|
|
|
|
this.isloading = false;
|
|
|
|
|
},
|
|
|
|
|
utilFail: function(res) {
|
|
|
|
|
|