You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

144 lines
3.7 KiB

<template>
<div>
<xy-dialog ref="dialog" :width="40" :is-show.sync="isShow" :type="'form'" :title="type=='show'?'预约查看':'预约审核'"
:form="form">
<template v-slot:name>
<div class="xy-table-item" style="padding:0">
<div class="xy-table-item-label" style="font-weight: bold;width:0;padding:0;display:none">
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>
</div>
<div class="xy-table-item-content" style="flex-grow:1;text-align:center">
<div class="bookInfo">
<div>
<span>预约日期</span>
<span>2024-6-3</span>
</div>
<div>
<span>时间段</span>
<span>14:00-15:00</span>
</div>
<div>
<span>预约事项</span>
<span>游泳练习</span>
</div>
<div>
<span>预约场地</span>
<span>游泳馆</span>
</div>
<div>
<span>车牌</span>
<span></span>
</div>
<div>
<span>同行人数</span>
<span>2</span>
</div>
<div>
<span>状态</span>
<span>待审核</span>
</div>
</div>
<div v-if="type=='check'">
<lx-header icon="" text="审核意见" style="margin-bottom: 10px; border: 0px;text-align: left;">
</lx-header>
<div>
<el-input type="textarea" row="3"></el-input>
</div>
<div style="margin-top:15px">
<el-button type="primary" style='margin:15px;' @click="isShow=false"></el-button>
<el-button type="primary" style='margin:15px;' @click="isShow=false"></el-button>
<el-button type="primary" plain style='margin:15px;' @click="isShow=false"></el-button>
</div>
</div>
</div>
</div>
</template>
<template v-slot:footerContent>
<el-button v-if="type=='show'" type="primary" plain @click="isShow=false"></el-button>
<div v-else></div>
</template>
</xy-dialog>
</div>
</template>
<script>
export default {
components: {
},
data() {
return {
isShow: false,
type: 'show',
id: '',
form: {
name: '',
},
}
},
created() {},
methods: {
submit() {
save({
table_name: 'new_plans',
...this.form
}).then(res => {
Message({
type: 'success',
message: '核对成功'
})
this.isShow = false
this.$emit('refresh')
})
},
getDetail() {
show({
id: this.id,
table_name: 'new_plans',
}).then(res => {
})
}
},
watch: {
isShow(newVal) {
if (newVal) {
if (this.type === 'editor') {
// this.getDetail()
}
} else {
this.id = ''
this.$refs['dialog'].reset()
}
},
}
}
</script>
<style scoped lang="scss">
::v-deep .name {
flex-basis: 100%;
}
.bookInfo{
&>div{
span{
display: inline-block;
}
span:first-child{
width:20%;
text-align: right;
}
span:last-child{
width:80%;
text-align: left;
}
}
}
</style>