123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430 |
- <template>
- <div class="resourceReview">
- <ul class="detailUl">
- <li class="topBox">
- <div class="topTitle">会议室详情</div>
- </li>
- <li class="detailLi">
- <span class="liName">当前企业</span>
- <span class="liInfo">{{ appointForm.unit }}</span>
- </li>
- <li class="detailLi">
- <span class="liName">位置</span>
- <span class="liInfo">{{ meetingRoomForm.position }}</span>
- </li>
- <li class="detailLi">
- <span class="liName">容纳人数</span>
- <span class="liInfo">{{ meetingRoomForm.seatNumber }}</span>
- </li>
- <li class="detailLi">
- <span class="liName">配套</span>
- <span class="liInfo">{{ meetingRoomForm.matchGoods }}</span>
- </li>
- <li class="detailLi">
- <span class="liName">说明</span>
- <span class="liInfo">{{ meetingRoomForm.remark }}</span>
- </li>
- </ul>
- <div class="resourceAddDetail">
- <ul class="predetermineUl">
- <li class="topBox">
- <div class="topTitle" style="padding: 48rpx 0 24rpx 0">预约详情</div>
- <div class="choosTimeBox">
- <span class="msg">使用时间</span>
- <!-- <input placeholder="请选择日期" class="choosIpt" disabled>-->
- <!-- <input placeholder="请选择时间段" class="choosIpt" disabled>-->
- <span class="choosIpt" >{{ startTime }} </span>
- <span class="choosIpt" >{{ timeListStr }} </span>
- </div>
- </li>
- <li class="detailLi">
- <span class="liName">主题</span>
- <span>
- <input class="liInfo" placeholder="请填写" v-model="appointForm.subject">
- </span>
- </li>
- <li class="detailLi">
- <span class="liName">容纳人数</span>
- <span>
- <input class="liInfo" placeholder="请填写整数" v-model="appointForm.peopleNumber">
- </span>
- </li>
- <li class="detailLi">
- <span class="liName">联系人</span>
- <span>
- <input class="liInfo" placeholder="请填写" v-model="appointForm.contacts">
- </span>
- </li>
- <li class="detailLi">
- <span class="liName">联系电话</span>
- <span>
- <input class="liInfo" placeholder="请填写" v-model="appointForm.phone">
- </span>
- </li>
- <li class="detailLi2" style="border-bottom: none">
- <div class="titleBox">
- <span class="liName">备注</span>
- </div>
- <van-field
- :value="appointForm.remarks"
- autosize
- type="textarea"
- placeholder="请输入"
- class="myField"
- maxlength="2000"
- show-word-limit
- @change="changeMsg"
- />
- </li>
- </ul>
- <ul class="predetermineUl">
- <li class="detailLi">
- <span class="liName">预约单位</span>
- <span>
- <input class="liInfo" placeholder="" v-model="appointForm.unit">
- </span>
- </li>
- <li class="detailLi">
- <span class="liName">容纳人数</span>
- <span >
- <input class="liInfo" placeholder="请填写整数" v-model="appointForm.peopleNumber">
- </span>
- </li>
- <li class="detailLi">
- <span class="liName">预约人</span>
- <span >
- <input class="liInfo" placeholder="请填写" v-model="appointForm.appointUserName">
- </span>
- </li>
- <li class="detailLi" style="border-bottom: none">
- <span class="liName">预约时间</span>
- <span>
- <input class="liInfo" placeholder="请填写" v-model="appointForm.appointTime" disabled>
- </span>
- </li>
- </ul>
- <ul class="detailUl">
- <li class="topBox">
- <div class="topTitle">审核信息</div>
- </li>
- <li class="detailLi2">
- <van-radio-group :value="radio" @change="onChange">
- <van-radio name="1">通过</van-radio>
- <van-radio name="2" style="margin-left: 48rpx">取消</van-radio>
- </van-radio-group>
- <van-field
- v-if="reasonFlag"
- :value="cancelReason"
- autosize
- type="textarea"
- placeholder="请输入取消原因(必填)"
- class="myField"
- maxlength="200"
- show-word-limit
- @change="changeMsg"
- />
- </li>
- <li class="detailLi">
- <span class="liName">办理人</span>
- <span class="liInfo">{{ examineName }}</span>
- </li>
- <li class="detailLi" style="border-bottom: none">
- <span class="liName">办理时间</span>
- <span class="liInfo">{{ examineTime }}</span>
- </li>
- </ul>
- <div class="buttonBox" >
- <button class="btn zcBtn" @click="cancel">关闭</button>
- <button class="btn tjBtn" @click="submit">提交</button>
- </div>
- </div>
- </div>
- </template>
- <script>
- import {getByCodes, meetingRoomDetail, meetingAppointDetail, getUserLocalStorageInfo, meetingAppointConfirmAudit} from "@/js_sdk/http";
- import dayjs from "dayjs";
- export default {
- name: "resoureceReview",
- created(){
- this.getByCodes()
- },
- onLoad(options){
- this.appointId = options.appointId
- this.getAppointDetail()
- },
- data() {
- return{
- dc_key: ['timeSlot'],
- theme:'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
- unit:'XXXXXXXXXXXXXX',
- postData: {},
- radio: '1',
- companyName: '',
- appointId: '',
- roomId: '',
- meetingRoomForm:{
- },
- appointForm: {
- },
- dic_SelectList: [],
- timeList: [], // 时间段列表
- startTime: '',
- timeListStr: '',
- cancelReason: '',
- confirmType: '',
- reasonFlag: false,
- examineName: getUserLocalStorageInfo().username,
- examineTime: dayjs().format('YYYY-MM-DD HH:mm:ss'),
- }
- },
- methods:{
- async getByCodes() {
- let data = await getByCodes(JSON.stringify(this.dc_key));
- this.dic_SelectList = this.$common.handleDicList(data);
- this.timeList = this.dic_SelectList.timeSlot
- },
- // 会议室详情
- getMeetingRoomDetail(){
- const data = {
- id: this.roomId
- }
- meetingRoomDetail(data).then(res => {
- if (res.code === 200) {
- this.meetingRoomForm = res.data
- }
- })
- },
- // 预约详情
- getAppointDetail(){
- const data = {
- id: this.appointId
- }
- meetingAppointDetail(data).then(res => {
- if (res.code === 200) {
- this.appointForm = res.data.oderDetial
- this.meetingRoomForm = res.data.roomDetial
- this.startTime = this.appointForm.useTime
- let index = this.timeList.findIndex((e) => e.value == this.appointForm.timeSlot)
- this.timeListStr = this.timeList[index].label
- // this.roomId = res.data.roomIds
- // this.getMeetingRoomDetail()
- }
- })
- },
- changeMsg(e){
- this.cancelReason = e.detail
- },
- onChange(e){
- this.confirmType = e.detail
- if(this.confirmType == '1'){
- this.reasonFlag = false
- }else {
- this.reasonFlag = true
- }
- },
- cancel(){
- uni.navigateBack({})
- },
- submit(){
- const data = {
- id: this.appointId,
- userId: getUserLocalStorageInfo().userId,
- useType: getUserLocalStorageInfo().userType,
- confirmType: this.confirmType,
- reason: this.cancelReason
- }
- meetingAppointConfirmAudit(data).then(res=>{
- if(res.code == '200'){
- this.$showToast("审核成功");
- this.cancel()
- }else {
- this.$showToast(res.msg);
- }
- })
- }
- }
- }
- </script>
- <style lang="scss">
- .resourceReview{
- .detailUl{
- margin-top: 20rpx;
- background: white;
- padding: 24rpx 32rpx;
- .detailLi{
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 32rpx 0;
- border-bottom: 2rpx solid #E6E6E6;
- .liInfo{
- display: inline-block;
- text-align: right;
- max-width: 428rpx;
- color: rgba(102, 102, 102, 1);
- font-size: 32rpx;
- line-height: 38rpx;
- overflow: hidden;
- word-wrap: break-word;
- }
- .liName{
- font-size: 32rpx;
- color: rgba(51, 51, 51, 1);
- white-space: nowrap;
- .callNumber{
- color: rgba(24, 23, 42, 1);
- font-size: 36rpx;
- font-weight: 600;
- }
- .callName{
- color: rgba(102, 102, 102, 1);
- font-size: 28rpx;
- }
- }
- }
- }
- .topBox{
- background: white;
- margin: 24rpx 0;
- .topTitle{
- color: rgba(34, 34, 34, 1);
- font-size: 36rpx;
- font-weight: 600;
- }
- .choosTimeBox{
- display: flex;
- justify-content: space-between;
- align-items: center;
- .msg{
- color: rgba(51, 51, 51, 1);
- font-size: 32rpx;
- white-space: nowrap;
- }
- .choosIpt {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 260rpx;
- height: 96rpx;
- font-size: 32rpx;
- background: rgba(245, 247, 250, 1);
- box-sizing: border-box;
- }
- }
- }
- .resourceAddDetail{
- .predetermineUl{
- margin: 24rpx 0;
- background: white;
- box-sizing: border-box;
- padding: 0 32rpx;
- .predetermineLi{
- padding: 32rpx 0;
- border-bottom: 1px solid rgba(230, 230, 230, 1);
- display: flex;
- justify-content: space-between;
- }
- .predetermineLi2{
- padding: 32rpx 0;
- border-bottom: 1px solid rgba(230, 230, 230, 1);
- display: flex;
- flex-direction: column;
- }
- .liName{
- color: rgba(51, 51, 51, 1);
- font-size: 32rpx;
- }
- .liIpt{
- color: rgba(102, 102, 102, 1);
- font-size: 32rpx;
- text-align: right;
- }
- .detailLi{
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 32rpx 0;
- border-bottom: 2rpx solid #E6E6E6;
- .liInfo{
- display: inline-block;
- text-align: right;
- max-width: 488rpx;
- width: 488rpx;
- color: rgba(102, 102, 102, 1);
- font-size: 32rpx;
- line-height: 38rpx;
- .radio{
- margin-left: 64rpx;
- }
- }
- }
- }
- .detailLi2{
- display: flex;
- flex-direction: column;
- padding: 32rpx 0;
- border-bottom: 2rpx solid #E6E6E6;
- .detailLi2BoxTop{
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- margin: 12rpx 0;
- .checkItem{
- width: 128rpx;
- height: 64rpx;
- font-size: 28rpx;
- color: #666666;
- display: flex;
- align-items: center;
- justify-content: center;
- background: #F5F7FA;
- border-radius: 8rpx;
- margin: 12rpx 0;
- }
- .checked{
- background: #0365F9;
- color: white;
- }
- }
- .van-radio-group{
- display: flex;
- }
- }
- .van-cell {
- background: #F5F7FA !important;
- border-radius: 8rpx;
- font-size: 28rpx;
- margin-top: 16rpx;
- }
- .buttonBox{
- display: flex;
- justify-content: center;
- .btn{
- width: 240rpx;
- height: 80rpx;
- display: flex;
- border-radius: 8rpx;
- align-items: center;
- justify-content: center;
- margin: 48rpx 16rpx 150rpx 16rpx;
- color: white;
- letter-spacing: 2rpx;
- text-indent: 2rpx;
- }
- .zcBtn{
- background: #FE8643;
- }
- .tjBtn{
- background: #0365F9;
- }
- }
- }
- }
- </style>
|