|
|
|
|
@ -36,10 +36,13 @@
|
|
|
|
|
<div>
|
|
|
|
|
<span>同行人:</span>
|
|
|
|
|
|
|
|
|
|
<span v-if="submitObj.appointment_accompany&&submitObj.appointment_accompany.length>0">
|
|
|
|
|
<template v-for="item in submitObj.appointment_accompany">
|
|
|
|
|
{{item.name}},
|
|
|
|
|
<span>
|
|
|
|
|
<template v-if="submitObj.appointment_accompany&&submitObj.appointment_accompany.length>0">
|
|
|
|
|
<template v-for="item in submitObj.appointment_accompany">
|
|
|
|
|
{{item.name}},
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
@ -50,17 +53,55 @@
|
|
|
|
|
<span>状态:</span>
|
|
|
|
|
<span>
|
|
|
|
|
<template v-for="item in book_status">
|
|
|
|
|
<el-tag style="width:auto" :type="item.type" v-if="submitObj.status===item.id">{{item.value}}</el-tag>
|
|
|
|
|
<el-tag style="width:auto" :type="item.type"
|
|
|
|
|
v-if="submitObj.status===item.id">{{item.value}}</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="type==='show'">
|
|
|
|
|
<span>审核意见:</span>
|
|
|
|
|
<span>
|
|
|
|
|
{{submitObj.reason}}
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="type==='show'">
|
|
|
|
|
<span>审核意见:</span>
|
|
|
|
|
<span>
|
|
|
|
|
{{submitObj.reason}}
|
|
|
|
|
</span>
|
|
|
|
|
<div style="text-align: left;width:800px;margin: 0 auto;">第三方记录</div>
|
|
|
|
|
<div style="width:100%">
|
|
|
|
|
<xy-table :list="thirdArr" style="width:800px;margin: 0 auto;" :isPage="false" :height="300" :table-item="table_item">
|
|
|
|
|
<template v-slot:finally>
|
|
|
|
|
<el-table-column align='center' label="预约结果" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.finally===1">
|
|
|
|
|
成功
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else>
|
|
|
|
|
失败
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:response_data>
|
|
|
|
|
<el-table-column align='center' label="第三方返回数据" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.response_data">
|
|
|
|
|
<!-- {{JSON.parse(scope.row.response_data).resMsg}} -->
|
|
|
|
|
{{JSON.parse(scope.row.response_data)}}
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
<el-table-column align='center' label="操作" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="primary" size="small" v-if="scope.row.finally!=1"
|
|
|
|
|
@click="sendBook(scope.row.appointment_id)">重新预约</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div v-if="type=='check'">
|
|
|
|
|
<lx-header icon="" text="审核意见" style="margin-bottom: 10px; border: 0px;text-align: left;">
|
|
|
|
|
</lx-header>
|
|
|
|
|
@ -72,35 +113,9 @@
|
|
|
|
|
<el-button type="primary" style='margin:15px;' @click="submit(2)">审核不通过</el-button>
|
|
|
|
|
<el-button type="primary" plain style='margin:15px;' @click="submit(3)">取消预约</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="text-align: left;">第三方记录</div>
|
|
|
|
|
<div>
|
|
|
|
|
<xy-table :list="thirdArr" :isPage="false" :height="300"
|
|
|
|
|
:table-item="table_item">
|
|
|
|
|
<template v-slot:finally>
|
|
|
|
|
<el-table-column align='center' label="预约结果" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.finally===1">
|
|
|
|
|
成功
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else>
|
|
|
|
|
失败
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
<el-table-column align='center' label="操作" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="primary" size="small" v-if="scope.row.finally!=1"
|
|
|
|
|
@click="sendBook(scope.row.appointment_id)">重新预约</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -118,7 +133,7 @@
|
|
|
|
|
import myMixins from "@/mixin/selectMixin.js";
|
|
|
|
|
import {
|
|
|
|
|
show,
|
|
|
|
|
save,
|
|
|
|
|
save,
|
|
|
|
|
retry
|
|
|
|
|
} from "@/api/book/index.js"
|
|
|
|
|
export default {
|
|
|
|
|
@ -131,20 +146,27 @@
|
|
|
|
|
isShow: false,
|
|
|
|
|
type: 'show',
|
|
|
|
|
id: '',
|
|
|
|
|
submitObj: {},
|
|
|
|
|
thirdArr:[],
|
|
|
|
|
submitObj: {},
|
|
|
|
|
thirdArr: [],
|
|
|
|
|
form: {
|
|
|
|
|
name: '',
|
|
|
|
|
},
|
|
|
|
|
table_item:[{
|
|
|
|
|
prop:'remark',
|
|
|
|
|
label:'预约内容'
|
|
|
|
|
},{
|
|
|
|
|
prop:'finally',
|
|
|
|
|
label:'预约结果'
|
|
|
|
|
},{
|
|
|
|
|
prop:'created_at',
|
|
|
|
|
label:'发送时间'
|
|
|
|
|
},
|
|
|
|
|
table_item: [{
|
|
|
|
|
prop: 'remark',
|
|
|
|
|
label: '预约内容',
|
|
|
|
|
width: 200
|
|
|
|
|
}, {
|
|
|
|
|
prop: 'finally',
|
|
|
|
|
label: '预约结果',
|
|
|
|
|
width: 200
|
|
|
|
|
}, {
|
|
|
|
|
prop: 'response_data',
|
|
|
|
|
label: '第三方返回数据',
|
|
|
|
|
width: 200
|
|
|
|
|
},{
|
|
|
|
|
prop: 'created_at',
|
|
|
|
|
label: '发送时间',
|
|
|
|
|
width: 200
|
|
|
|
|
}]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
@ -160,32 +182,32 @@
|
|
|
|
|
this.isShow = false
|
|
|
|
|
this.$emit('refresh')
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
sendBook(id){
|
|
|
|
|
retry({
|
|
|
|
|
id:id
|
|
|
|
|
}).then(res=>{
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'success',
|
|
|
|
|
message: '重新发送预约成功'
|
|
|
|
|
})
|
|
|
|
|
this.getDetail()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
formatHH(val){
|
|
|
|
|
if(val){
|
|
|
|
|
return this.$moment(val).format("HH:mm:ss")
|
|
|
|
|
}else{
|
|
|
|
|
return ''
|
|
|
|
|
}
|
|
|
|
|
sendBook(id) {
|
|
|
|
|
retry({
|
|
|
|
|
id: id
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'success',
|
|
|
|
|
message: '重新发送预约成功'
|
|
|
|
|
})
|
|
|
|
|
this.getDetail()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
formatHH(val) {
|
|
|
|
|
if (val) {
|
|
|
|
|
return this.$moment(val).format("HH:mm:ss")
|
|
|
|
|
} else {
|
|
|
|
|
return ''
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async getDetail() {
|
|
|
|
|
await show({
|
|
|
|
|
id: this.id,
|
|
|
|
|
show_relation: ['user', 'appointmentAccompany', 'appointmentConfig','third_appointment_logs']
|
|
|
|
|
show_relation: ['user', 'appointmentAccompany', 'appointmentConfig', 'third_appointment_logs']
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.submitObj = this.base.deepCopy(res, this.submitObj)
|
|
|
|
|
this.thirdArr = res.third_appointment_logs?res.third_appointment_logs:[]
|
|
|
|
|
this.submitObj = this.base.deepCopy(res, this.submitObj)
|
|
|
|
|
this.thirdArr = res.third_appointment_logs ? res.third_appointment_logs : []
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|