|
@@ -40,6 +40,10 @@
|
|
<label>申请时间</label>
|
|
<label>申请时间</label>
|
|
<span v-text="detail.createTime"></span>
|
|
<span v-text="detail.createTime"></span>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div v-if="detail.endTime" class="mui-input-row">
|
|
|
|
+ <label>结束时间</label>
|
|
|
|
+ <span v-text="detail.endTime"></span>
|
|
|
|
+ </div>
|
|
</form>
|
|
</form>
|
|
<div class="vongi-slot">
|
|
<div class="vongi-slot">
|
|
<div v-for="(item,index) in detail.list" class="vongi-slot-block">
|
|
<div v-for="(item,index) in detail.list" class="vongi-slot-block">
|
|
@@ -51,8 +55,8 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="fyy-footer">
|
|
|
|
- <div class="bindfyy-btn"><button type="submit" class="mui-btn mui-btn-danger">结束出差</button></div>
|
|
|
|
|
|
+ <div v-if="wm && !detail.endTime" class="fyy-footer">
|
|
|
|
+ <div class="bindfyy-btn"><button type="button" @click="closeActoin" class="mui-btn mui-btn-danger">结束出差</button></div>
|
|
</div>
|
|
</div>
|
|
<loading :visible="isLoading"></loading>
|
|
<loading :visible="isLoading"></loading>
|
|
</div>
|
|
</div>
|
|
@@ -84,6 +88,9 @@
|
|
detail: {
|
|
detail: {
|
|
list: [],
|
|
list: [],
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ //微信模板消息过来的
|
|
|
|
+ wm: this.$route.query.wm,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {},
|
|
created() {},
|
|
@@ -112,6 +119,28 @@
|
|
}
|
|
}
|
|
return 'color:' + color + ';border-color:' + color + ';';
|
|
return 'color:' + color + ';border-color:' + color + ';';
|
|
},
|
|
},
|
|
|
|
+ //结束状态
|
|
|
|
+ closeActoin() {
|
|
|
|
+ var _this = this;
|
|
|
|
+ var btnArray = ['否', '是'];
|
|
|
|
+ mui.confirm('是否立即结束出差?', '确认', btnArray, function(e) {
|
|
|
|
+ if (e.index == 1) {
|
|
|
|
+ _this.outEnd();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //结束状态
|
|
|
|
+ outEnd() {
|
|
|
|
+ this.isLoading = true;
|
|
|
|
+ API_BusinessTravel.businessOutEnd(this.id).then(response => {
|
|
|
|
+ this.isLoading = false;
|
|
|
|
+
|
|
|
|
+ mui.toast('处理成功');
|
|
|
|
+ }).catch(error => {
|
|
|
|
+ this.isLoading = false;
|
|
|
|
+ mui.toast(error);
|
|
|
|
+ })
|
|
|
|
+ },
|
|
asynCallBack() {
|
|
asynCallBack() {
|
|
//获取详情
|
|
//获取详情
|
|
this.getInfo();
|
|
this.getInfo();
|