123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699 |
- <template>
- <div class="detail">
- <div class="white-box top-box">当前企业:{{ bizInfo }}</div>
- <div class="white-box part-1">
- <div class="custom-item-tit">
- <div class="tit">场馆信息</div>
- </div>
- <div class="cell-item">
- <p class="label">场馆名称</p>
- <p class="tit">{{ roomDetial.roomName }}</p>
- </div>
- <div class="cell-item">
- <p class="label">场馆位置</p>
- <p class="tit">{{ roomDetial.position }}</p>
- </div>
- <div class="cell-item">
- <p class="label">座位数</p>
- <p class="tit">{{ roomDetial.seatNumber }}</p>
- </div>
- <div class="cell-item">
- <p class="label">配套</p>
- <p class="tit">{{ roomDetial.match }}</p>
- </div>
- <div class="cell-item">
- <p class="label">收费标准</p>
- <p class="tit">{{ roomDetial.charges }}</p>
- </div>
- <div class="cell-item flex-item">
- <p class="label">预约电话</p>
- <p class="tit tel-box">
- <span>{{ roomDetial.appointPhone }}</span>
- <TelNum :num="roomDetial.appointPhone" :showTel="false" />
- </p>
- </div>
- </div>
- <div class="white-box part-2">
- <div class="custom-item-tit">
- <div class="tit">场馆预约</div>
- </div>
- <div class="cell-item">
- <p class="label">使用时间</p>
- <p class="tit">
- {{ oderDetial.useTime }} 至
- {{ dic_SelectList.timeSlot[oderDetial.timeSlot - 1].label }}
- </p>
- </div>
- <div class="cell-item">
- <p class="label">场馆主题</p>
- <p class="tit">
- {{ oderDetial.subject ? oderDetial.subject : "暂无" }}
- </p>
- </div>
- <div class="cell-item">
- <p class="label">参会人数</p>
- <p class="tit">
- {{ oderDetial.peopleNumber ? oderDetial.peopleNumber : "暂无" }}
- </p>
- </div>
- <div class="cell-item">
- <p class="label">联系人</p>
- <p class="tit">
- {{ oderDetial.contacts ? oderDetial.contacts : "暂无" }}
- </p>
- </div>
- <div class="cell-item">
- <p class="label">联系电话</p>
- <p class="tit">{{ oderDetial.phone ? oderDetial.phone : "暂无" }}</p>
- </div>
- <div class="block-cell-item">
- <p class="label">备注</p>
- <div class="tit">
- <div class="textarea">
- {{ oderDetial.remarks ? oderDetial.remarks : "暂无" }}
- </div>
- </div>
- </div>
- </div>
- <div class="white-box part-3 form-part">
- <div class="custom-item-tit">
- <div class="tit">审核结果</div>
- </div>
- <div class="cell-item">
- <p class="label">审核结果</p>
- <p class="tit">
- {{ oderDetial.stateDesc == "已取消" ? "已取消" : "审核通过" }}
- </p>
- </div>
- <div class="block-cell-item">
- <p class="label">取消原因</p>
- <div class="tit">
- <div class="textarea">
- {{
- oderDetial.cancelReason || oderDetial.cancelReason == "请输入"
- ? oderDetial.cancelReason
- : "暂无"
- }}
- </div>
- </div>
- </div>
- <div class="cell-item">
- <p class="label">经办人</p>
- <p class="tit">{{ oderDetial.examineName }}</p>
- </div>
- <div class="cell-item">
- <p class="label">经办时间</p>
- <p class="tit">{{ oderDetial.examineTime }}</p>
- </div>
- </div>
- <div class="white-box part-4 form-part">
- <div class="custom-item-tit">
- <div class="tit">支付凭证</div>
- </div>
- <div class="cell-item">
- <p class="label">支付方式</p>
- <p class="tit">
- {{
- dic_SelectList.payType[oderDetial.payType - 1].label
- ? dic_SelectList.payType[oderDetial.payType - 1].label
- : "暂无"
- }}
- </p>
- </div>
- <div class="cell-item">
- <p class="label">支付人名称</p>
- <p class="tit">
- {{ oderDetial.payUserName ? oderDetial.payUserName : "暂无" }}
- </p>
- </div>
- <div class="block-cell-item">
- <p class="label">
- 处理后拍照<span class="tips" v-if="!readOnlyType"
- >(支持图片上传限20M内,最多1张)</span
- >
- </p>
- <div class="tit">
- <ul class="annex-list-box">
- <li
- class="annex-item"
- v-for="(item, index) in processedAnnexList"
- :key="index"
- >
- <img :src="item.url" alt="" v-if="item.isImage" />
- <video
- :src="item.url"
- v-if="!item.isImage"
- width="100%"
- height="100%"
- ></video>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <div class="white-box part-5 form-part">
- <div class="custom-item-tit">
- <div class="tit">预定确认</div>
- </div>
- <div class="cell-item">
- <p class="label">确认结果</p>
- <div class="tit">
- <van-radio-group v-model="radio" :disabled="!readOnlyType">
- <van-radio name="1" checked-color="#976CEB">预定成功</van-radio>
- <van-radio name="2" checked-color="#976CEB">取消</van-radio>
- </van-radio-group>
- </div>
- </div>
- <div class="custom-item-tit" v-if="oderDetial.stateDesc == '已取消'">
- <div class="tit">取消原因</div>
- </div>
- <uni-easyinput
- type="textarea"
- autoHeight
- v-if="oderDetial.stateDesc == '已取消'"
- :disabled="radio == '1' || !readOnlyType"
- v-model="reason"
- maxlength="800"
- class="textarea-item input-item-warp"
- placeholder="暂无"
- />
- <div class="cell-item">
- <p class="label">经办人</p>
- <p class="tit">
- {{
- oderDetial.handlerName == null || oderDetial.handlerName == ""
- ? currUser.truename
- : oderDetial.handlerName
- }}
- </p>
- </div>
- <div class="cell-item">
- <p class="label">经办时间</p>
- <p class="tit">{{ oderDetial.examineTime }}</p>
- </div>
- </div>
- <div class="repair-bottom bottom-button" v-if="readOnlyType">
- <button class="btn" @click="submitFrom">提交</button>
- </div>
- <!-- 开始时间 -->
- <van-popup v-model="showStartPicker" position="bottom">
- <van-datetime-picker
- v-model="startTime"
- type="date"
- title="选择开始时间"
- @confirm="startTimeConfirml"
- @cancel="startTimeCancel"
- />
- </van-popup>
- <!-- 明天预约时间 -->
- <van-popup v-model="showEndPicker" position="bottom">
- <van-datetime-picker
- v-model="endTime"
- type="date"
- title="选择结束时间"
- @confirm="endTimeConfirml"
- @cancel="endTimeCancel"
- />
- </van-popup>
- </div>
- </template>
- <script>
- import vanRadio from "../../../wxcomponents/weapp/dist/radio/index";
- import vanRadioGroup from "../../../wxcomponents/weapp/dist/radio-group/index";
- import TelNum from "../../subPackages/components/tel-number";
- import {
- getUserLocalStorageInfo,
- getAppUserMain,
- getDetial,
- confirmAudit,
- getByCodes,
- } from "@/js_sdk/venueRoom";
- // import { formatDate } from "@/plugins/dateFormat";
- export default {
- components: {
- TelNum,
- vanRadio,
- vanRadioGroup,
- },
- data() {
- return {
- active: "",
- dic_SelectList: {},
- dic_key: ["timeSlot", "payType"],
- currUser: {},
- bizInfo: "",
- roomDetial: {},
- oderDetial: {},
- appointId: "",
- readOnlyType: false,
- //停车场信息
- lotInfo: {},
- //车位列表
- seatList: [],
- //数量
- num: -1,
- radio: "1",
- reason: "",
- showStartPicker: false,
- showEndPicker: false,
- startTime: "",
- formatStartTime: "",
- endTime: "",
- formatEndTime: "",
- // 日期列表
- dateList: [
- {
- date: "8/1",
- typeList: ["1", "3", "4"],
- },
- {
- date: "8/2",
- typeList: ["1", "2", "4"],
- },
- {
- date: "8/3",
- typeList: ["4", "2", "1"],
- },
- ],
- // 时间段列表
- timeList: ["9:00-12:00", "13:00-18:00", "18:00-22:00"],
- processedAnnexList: [],
- };
- },
- onLoad(option) {
- this.currUser = getUserLocalStorageInfo().user;
- this.appointId = option.id;
- this.readOnlyType = option.readOnlyType == "1" ? true : false;
- this.getByCodes();
- },
- methods: {
- async getByCodes() {
- let data = await getByCodes(JSON.stringify(this.dic_key));
- this.dic_SelectList = this.$common.handleDicList(data);
- this.getOrderDetail();
- },
- //获取公司名称
- getBizMain() {
- let reqData = {
- id: this.oderDetial.createdId,
- };
- getAppUserMain(reqData).then((res) => {
- if (res.key == 200) {
- this.bizInfo = res.data.qymc;
- }
- });
- },
- //获取预约详情
- getOrderDetail() {
- let reqData = {
- id: this.appointId,
- };
- getDetial(reqData).then((res) => {
- if (res.key == 200) {
- let radio;
- console.log(res.data.oderDetial.state);
- if (
- res.data.oderDetial.state == 4 ||
- res.data.oderDetial.state == 3
- ) {
- radio = "1";
- } else if (res.data.oderDetial.state == 5) {
- radio = "2";
- } else {
- debugger;
- radio = null;
- }
- console.log("radioradioradioradioradio", radio);
- this.roomDetial = res.data.roomDetial;
- this.oderDetial = res.data.oderDetial;
- this.oderDetial.examineTime = this.$common.transDate(
- this.oderDetial.examineTime
- );
- this.oderDetial.useTime = this.$common.transDate(
- this.oderDetial.useTime
- );
- this.radio = radio;
- this.$forceUpdate();
- console.log(this.roomDetial);
- this.processedAnnexList = JSON.parse(res.data.oderDetial.payProof);
- this.getBizMain();
- }
- });
- },
- //提交
- submitFrom() {
- let reqData = {
- id: this.appointId,
- confirmType: this.radio,
- reason: this.reason,
- userId: this.currUser.id,
- };
- confirmAudit(reqData).then((res) => {
- console.log("获取提交详情_:", res);
- if (res.key == 200) {
- this.$showToast("确认成功!");
- uni.navigateBack({
- success() {
- beforePage.getAppointList("1,3");
- },
- });
- }
- });
- },
- formatTime(val) {
- console.log(val);
- return this.$common.formatDate(val, "day");
- },
- /**
- * 开始时间弹窗取消
- */
- startTimeCancel() {
- this.showStartPicker = false;
- },
- /**
- * 开始时间弹窗确认
- */
- startTimeConfirml(val) {
- this.formatStartTime = formatDate(val, "day");
- this.showStartPicker = false;
- },
- /**
- * 结束时间弹窗取消
- */
- endTimeCancel() {
- this.showEndPicker = false;
- },
- /**
- * 结束时间弹窗确认
- */
- endTimeConfirml(val) {
- this.formatEndTime = formatDate(val, "day");
- this.showEndPicker = false;
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .detail {
- padding: 0 0 180rpx;
- overflow: hidden;
- .bottom-button {
- position: fixed;
- bottom: 0;
- left: 0;
- height: 21.333vw;
- width: 92%;
- height: 125rpx;
- padding: 4.667vw 4vw;
- background-color: #fff;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-box-pack: center;
- -ms-flex-pack: center;
- justify-content: center;
- .btn {
- height: 100%;
- line-height: 125rpx;
- width: 100%;
- color: #fff;
- background-color: #60f;
- font-size: 4.533vw;
- border-radius: 1.333vw;
- }
- }
- .top-box {
- height: 100rpx;
- line-height: 100rpx;
- font-size: 30rpx;
- color: #333;
- }
- .part-1 {
- margin-bottom: 20rpx;
- .custom-item-tit {
- height: 13.333vw;
- font-size: 4.267vw;
- color: #333;
- padding: 2.667vw 0;
- position: relative;
- display: flex;
- -webkit-box-pack: justify;
- -ms-flex-pack: justify;
- justify-content: space-between;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- box-sizing: border-box;
- .tit {
- padding-left: 2.667vw;
- position: relative;
- font-size: 4.267vw;
- &::after {
- content: "";
- width: 0.8vw;
- height: 90%;
- background-color: #976dec;
- border-radius: 0.4vw;
- position: absolute;
- left: 0;
- top: 50%;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- }
- }
- }
- }
- .part-2 {
- margin-bottom: 20rpx;
- .custom-item-tit {
- height: 13.333vw;
- font-size: 4.267vw;
- color: #333;
- padding: 2.667vw 0;
- position: relative;
- display: flex;
- -webkit-box-pack: justify;
- -ms-flex-pack: justify;
- justify-content: space-between;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- box-sizing: border-box;
- .tit {
- padding-left: 2.667vw;
- position: relative;
- font-size: 4.267vw;
- &::after {
- content: "";
- width: 0.8vw;
- height: 90%;
- background-color: #976dec;
- border-radius: 0.4vw;
- position: absolute;
- left: 0;
- top: 50%;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- }
- }
- }
- }
- .filter-box {
- padding: 0 30rpx 30rpx;
- margin-bottom: 20rpx;
- .tit {
- font-size: 34rpx;
- padding-bottom: 30rpx;
- }
- }
- .filter-input-box {
- display: flex;
- align-items: center;
- justify-content: space-between;
- .custom-input-box {
- width: 250rpx;
- }
- .confirm-btn {
- width: 100rpx;
- height: 80rpx;
- border-radius: 10rpx;
- color: #fff;
- background-color: #6600ff;
- i {
- font-size: 35rpx;
- }
- }
- }
- .part-2 {
- padding: 30rpx;
- }
- .part-3 {
- .custom-item-tit {
- height: 13.333vw;
- font-size: 4.267vw;
- color: #333;
- padding: 2.667vw 0;
- position: relative;
- display: flex;
- -webkit-box-pack: justify;
- -ms-flex-pack: justify;
- justify-content: space-between;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- box-sizing: border-box;
- .tit {
- padding-left: 2.667vw;
- position: relative;
- font-size: 4.267vw;
- &::after {
- content: "";
- width: 0.8vw;
- height: 90%;
- background-color: #976dec;
- border-radius: 0.4vw;
- position: absolute;
- left: 0;
- top: 50%;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- }
- }
- }
- .input-item-warp {
- padding: 0 0 30rpx;
- }
- }
- .part-4 {
- .custom-item-tit {
- height: 13.333vw;
- font-size: 4.267vw;
- color: #333;
- padding: 2.667vw 0;
- position: relative;
- display: flex;
- -webkit-box-pack: justify;
- -ms-flex-pack: justify;
- justify-content: space-between;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- box-sizing: border-box;
- .tit {
- padding-left: 2.667vw;
- position: relative;
- font-size: 4.267vw;
- &::after {
- content: "";
- width: 0.8vw;
- height: 90%;
- background-color: #976dec;
- border-radius: 0.4vw;
- position: absolute;
- left: 0;
- top: 50%;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- }
- }
- }
- .input-item-warp {
- padding: 0 0 30rpx;
- }
- }
- .part-5 {
- .custom-item-tit {
- height: 13.333vw;
- font-size: 4.267vw;
- color: #333;
- padding: 2.667vw 0;
- position: relative;
- display: flex;
- -webkit-box-pack: justify;
- -ms-flex-pack: justify;
- justify-content: space-between;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- box-sizing: border-box;
- .tit {
- padding-left: 2.667vw;
- position: relative;
- font-size: 4.267vw;
- &::after {
- content: "";
- width: 0.8vw;
- height: 90%;
- background-color: #976dec;
- border-radius: 0.4vw;
- position: absolute;
- left: 0;
- top: 50%;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- }
- }
- }
- .input-item-warp {
- padding: 0 0 30rpx;
- }
- }
- }
- </style>
|