|
@@ -1,42 +1,44 @@
|
|
|
-<!-- 订单类型orderType:1;2体育馆课程进入 -->
|
|
|
|
|
|
|
+<!-- 订单类型orderType:0-学校 1-包场 2-无固定场 3-个人赛 4-团队赛 5-课程 -->
|
|
|
<template>
|
|
<template>
|
|
|
- <view class="content">
|
|
|
|
|
|
|
+ <view class="content" v-if="!loading">
|
|
|
<view class="t-header">
|
|
<view class="t-header">
|
|
|
- <view class="title">{{ orderDetailInfo.orderStatus }}</view>
|
|
|
|
|
- <view class="time" v-for="item in orderDetailInfo.proInfoList" :key="item.id"><text>{{ item.ticketNo
|
|
|
|
|
- }}</text>{{ orderDetailInfo.orderStatus }}<text
|
|
|
|
|
- v-if="orderDetailInfo.orderStatus == '待使用'">,请按课表到上课地点按时上课。</text></view>
|
|
|
|
|
|
|
+ <view class="title">{{ orderDetailInfo?.orderStatus }}</view>
|
|
|
|
|
+ <view class="time" v-for="item in orderDetailInfo?.proInfoList" :key="item.id">
|
|
|
|
|
+ <text>{{ item.ticketNo }}</text>
|
|
|
|
|
+ <text v-if="orderDetailInfo?.orderStatus">{{ orderDetailInfo?.orderStatus }}</text>
|
|
|
|
|
+ <text v-if="orderDetailInfo?.orderStatus == '待使用'">,请按课表到上课地点按时上课。</text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="t-booking-card" v-if="orderPageInfo.orderType != 2">
|
|
|
|
|
|
|
+ <view class="t-booking-card" v-if="orderPageInfo?.orderType == 3">
|
|
|
<view class="booking-text">
|
|
<view class="booking-text">
|
|
|
<view class="b-title">请您提前联系场馆进行预约</view>
|
|
<view class="b-title">请您提前联系场馆进行预约</view>
|
|
|
<view class="b-text">请提前一天预约>场馆确认>到馆消费</view>
|
|
<view class="b-text">请提前一天预约>场馆确认>到馆消费</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="booking-btn">立即预约</view>
|
|
<view class="booking-btn">立即预约</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- 包场 -->
|
|
|
|
|
- <view class="c-scheduled-card" v-if="orderPageInfo.orderType == 0">
|
|
|
|
|
|
|
+ <!-- 场地 -->
|
|
|
|
|
+ <view class="c-scheduled-card" v-if="orderPageInfo?.orderType == 0||orderPageInfo?.orderType==1">
|
|
|
<view class="title">预定信息</view>
|
|
<view class="title">预定信息</view>
|
|
|
<view class="schedule-address">
|
|
<view class="schedule-address">
|
|
|
<view class="text">场馆</view>
|
|
<view class="text">场馆</view>
|
|
|
- <view class="name">体育馆综合训练馆(观山湖店)</view>
|
|
|
|
|
|
|
+ <view class="name">{{ orderDetailInfo?.siteName }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="schedule-address">
|
|
<view class="schedule-address">
|
|
|
<view class="text">场次</view>
|
|
<view class="text">场次</view>
|
|
|
<view class="">
|
|
<view class="">
|
|
|
- <view class="time-box" v-for="item in 3">
|
|
|
|
|
- <view class="time">06-11(周三)11:00-12:00|羽毛球1</view>
|
|
|
|
|
- <view class="status">已退款</view>
|
|
|
|
|
|
|
+ <view class="time-box" v-for="item in orderDetailInfo?.proInfoList" :key="item.id">
|
|
|
|
|
+ <view class="time">{{item.useDateStr}} {{ item.frameTimeStr }} {{ item.productName }}</view>
|
|
|
|
|
+ <view class="status" v-if="orderPageInfo?.orderType == 1">已退款</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="t-shoping-card">
|
|
|
|
|
- <view class="venue-address" v-if="orderPageInfo.orderType != 2">
|
|
|
|
|
|
|
+ <view class="t-shoping-card" v-if="orderPageInfo?.orderType == 2 || orderPageInfo?.orderType == 5">
|
|
|
|
|
+ <view class="venue-address" v-if="orderPageInfo?.orderType == 2">
|
|
|
<view class="address">
|
|
<view class="address">
|
|
|
<zzx-icon name="venue-icon4" size="14"></zzx-icon>
|
|
<zzx-icon name="venue-icon4" size="14"></zzx-icon>
|
|
|
- <view class="name">{{ orderDetailInfo.siteName }}</view>
|
|
|
|
|
- <view class="venue-tags">{{ orderDetailInfo.runStatus == 0 ? '营业中' : '休息中' }}</view>
|
|
|
|
|
|
|
+ <view class="name">{{ orderDetailInfo?.siteName }}</view>
|
|
|
|
|
+ <view class="venue-tags">{{ orderDetailInfo?.runStatus == 0 ? '营业中' : '休息中' }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="check-all">
|
|
<view class="check-all">
|
|
|
<text>查看所有可用场馆</text>
|
|
<text>查看所有可用场馆</text>
|
|
@@ -44,28 +46,28 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="t-shoping-info">
|
|
<view class="t-shoping-info">
|
|
|
- <image class="shoping-img" :src="orderDetailInfo.appCourses.cover" mode="">
|
|
|
|
|
|
|
+ <image class="shoping-img" :src="orderDetailInfo?.appCourses?.cover" mode="">
|
|
|
</image>
|
|
</image>
|
|
|
<view class="shoping-info">
|
|
<view class="shoping-info">
|
|
|
- <view class="name">{{ orderDetailInfo.appCourses.name }}</view>
|
|
|
|
|
|
|
+ <view class="name">{{ orderDetailInfo?.appCourses?.name }}</view>
|
|
|
<view class="shoping-price" @click="pricePopup.open()">
|
|
<view class="shoping-price" @click="pricePopup.open()">
|
|
|
- <view class="price">¥{{ orderDetailInfo.totalPrice }}</view>
|
|
|
|
|
|
|
+ <view class="price">¥{{ orderDetailInfo?.totalPrice }}</view>
|
|
|
<view class="text">
|
|
<view class="text">
|
|
|
<text>实付</text>
|
|
<text>实付</text>
|
|
|
<text class="mini-text">¥</text>
|
|
<text class="mini-text">¥</text>
|
|
|
- <text class="price-big">{{ orderDetailInfo.price }}</text>
|
|
|
|
|
|
|
+ <text class="price-big">{{ orderDetailInfo?.price }}</text>
|
|
|
<zzx-icon name="ashRight" size="10"></zzx-icon>
|
|
<zzx-icon name="ashRight" size="10"></zzx-icon>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="t-shoping-address"
|
|
<view class="t-shoping-address"
|
|
|
- @click="RouterUtils.to_page(`/pages/index/verificationRecord/index?orderId=${orderDetailInfo.id}&ticketNo=${orderDetailInfo.proInfoList[0].ticketNo}`)">
|
|
|
|
|
- <view class="address">上课地点:{{ orderDetailInfo.courseSiteAddress }}</view>
|
|
|
|
|
|
|
+ @click="RouterUtils.to_page(`/pages/index/verificationRecord/index?orderId=${orderDetailInfo?.id}&proInfoList=${JSON.stringify(orderDetailInfo?.proInfoList)}`)">
|
|
|
|
|
+ <view class="address">上课地点:{{ orderDetailInfo?.courseSiteAddress }}</view>
|
|
|
<view class="course-time">
|
|
<view class="course-time">
|
|
|
- <text>{{ orderDetailInfo.appCourses.classNum }}课时
|
|
|
|
|
- {{ DateUtils.formatDateToMMDD(orderDetailInfo.appCourses.startTime) + '-' +
|
|
|
|
|
- DateUtils.formatDateToMMDD(orderDetailInfo.appCourses.endTime) }}</text>
|
|
|
|
|
|
|
+ <text>{{ orderDetailInfo?.appCourses?.classNum }}课时
|
|
|
|
|
+ {{ DateUtils.formatDateToMMDD(orderDetailInfo?.appCourses?.startTime) + '-' +
|
|
|
|
|
+ DateUtils.formatDateToMMDD(orderDetailInfo?.appCourses?.endTime) }}</text>
|
|
|
<zzx-icon name="ashRight" size="10"></zzx-icon>
|
|
<zzx-icon name="ashRight" size="10"></zzx-icon>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -74,24 +76,29 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 待使用展示 -->
|
|
<!-- 待使用展示 -->
|
|
|
- <view class="t-qrcode-card" v-if="orderPageInfo.orderType == 2||orderPageInfo.orderType == 0">
|
|
|
|
|
- <view class="qrcode-box">
|
|
|
|
|
- <view class="item-qrcode">
|
|
|
|
|
- <uv-qrcode ref="qrcode" size="100px" :value="orderDetailInfo.id"></uv-qrcode>
|
|
|
|
|
|
|
+ <view class="t-qrcode-card" v-if="orderPageInfo?.orderType == 2 || orderPageInfo?.orderType == 0|| orderPageInfo?.orderType == 5|| orderPageInfo?.orderType == 1">
|
|
|
|
|
+ <block v-if="orderDetailInfo?.orSchoolCourse!=1">
|
|
|
|
|
+ <view class="qrcode-box">
|
|
|
|
|
+ <view class="item-qrcode">
|
|
|
|
|
+ <uv-qrcode ref="qrcode" size="100px" :value="orderDetailInfo?.id"></uv-qrcode>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
- <view class="download-qrcode" @click="download_qrcode">下载到手机</view>
|
|
|
|
|
|
|
+ <view class="download-qrcode" @click="download_qrcode">下载到手机</view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <view v-else style="color: #222;font-size: 26rpx;">通过学校门口闸机时,通过人脸自动核验</view>
|
|
|
<view class="t-todeused">
|
|
<view class="t-todeused">
|
|
|
<view class="todeused">
|
|
<view class="todeused">
|
|
|
<view class="text">待使用</view>
|
|
<view class="text">待使用</view>
|
|
|
- <view class="time">{{ orderDetailInfo.appCourses.endTime }} 到期</view>
|
|
|
|
|
|
|
+ <view class="time" v-if="orderDetailInfo?.appCourses?.endTime||orderDetailInfo?.endTime">{{ orderDetailInfo?.appCourses?.endTime||orderDetailInfo?.endTime }} 到期</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="order-num" v-for="item in orderDetailInfo.proInfoList" :key="item.id">{{ item.ticketNo }}
|
|
|
|
|
|
|
+ <view class="order-num" v-for="item in orderDetailInfo?.proInfoList" :key="item.id">
|
|
|
|
|
+ <text>{{ item.ticketNo }} {{ item.userName }}</text>
|
|
|
|
|
+ <zzx-icon name="ashRight" size="12"></zzx-icon>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 已使用已过期展示 -->
|
|
<!-- 已使用已过期展示 -->
|
|
|
- <view class="t-qrcode-card" v-if="orderPageInfo.orderType == 0">
|
|
|
|
|
|
|
+ <view class="t-qrcode-card" v-if="orderPageInfo?.orderType == 1">
|
|
|
<view class="t-todeused" v-for="item in 2" style="border-bottom: 1rpx solid #F0F0F0;">
|
|
<view class="t-todeused" v-for="item in 2" style="border-bottom: 1rpx solid #F0F0F0;">
|
|
|
<view class="todeused">
|
|
<view class="todeused">
|
|
|
<view class="item-todeused">
|
|
<view class="item-todeused">
|
|
@@ -107,7 +114,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 学校场地预定订单详情展示 -->
|
|
<!-- 学校场地预定订单详情展示 -->
|
|
|
- <view class="t-scheduled-card" v-if="orderPageInfo.orderType != 2">
|
|
|
|
|
|
|
+ <view class="t-scheduled-card" v-if="orderPageInfo?.orderType == 2">
|
|
|
<view class="s-title">预定信息</view>
|
|
<view class="s-title">预定信息</view>
|
|
|
<view class="t-scheduled-list">
|
|
<view class="t-scheduled-list">
|
|
|
<view class="item-list">
|
|
<view class="item-list">
|
|
@@ -131,7 +138,7 @@
|
|
|
<view class="t-address-card">
|
|
<view class="t-address-card">
|
|
|
<view class="address">
|
|
<view class="address">
|
|
|
<zzx-icon name="location"></zzx-icon>
|
|
<zzx-icon name="location"></zzx-icon>
|
|
|
- <view class="">{{ orderDetailInfo.courseSiteAddress }}</view>
|
|
|
|
|
|
|
+ <view class="">{{ orderDetailInfo?.courseSiteAddress||orderDetailInfo?.schoolAddress }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="nav-info">
|
|
<view class="nav-info">
|
|
|
<view class="nav" @click="open_map">
|
|
<view class="nav" @click="open_map">
|
|
@@ -147,14 +154,14 @@
|
|
|
<view class="t-use-card">
|
|
<view class="t-use-card">
|
|
|
<view class="use-tips">
|
|
<view class="use-tips">
|
|
|
<view class="title">使用须知</view>
|
|
<view class="title">使用须知</view>
|
|
|
- <view class="text">{{ orderDetailInfo.reminder }}</view>
|
|
|
|
|
|
|
+ <view class="text">{{ orderDetailInfo?.reminder }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- <view class="check-all">
|
|
<!-- <view class="check-all">
|
|
|
<text>查看全部</text>
|
|
<text>查看全部</text>
|
|
|
<zzx-icon name="ashRight" size="12"></zzx-icon>
|
|
<zzx-icon name="ashRight" size="12"></zzx-icon>
|
|
|
</view> -->
|
|
</view> -->
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="t-use-card" v-if="orderPageInfo.orderType != 2">
|
|
|
|
|
|
|
+ <view class="t-use-card" v-if="orderPageInfo?.orderType == 0">
|
|
|
<view class="use-tips">
|
|
<view class="use-tips">
|
|
|
<view class="title">参赛意外险</view>
|
|
<view class="title">参赛意外险</view>
|
|
|
<view class="text">实际付款:6元(3元/份×2)</view>
|
|
<view class="text">实际付款:6元(3元/份×2)</view>
|
|
@@ -164,13 +171,14 @@
|
|
|
<zzx-icon name="ashRight" size="12"></zzx-icon>
|
|
<zzx-icon name="ashRight" size="12"></zzx-icon>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="t-use-card" v-if="orderPageInfo.orderType == 2">
|
|
|
|
|
|
|
+ <view class="t-use-card" v-if="orderPageInfo?.orderType == 2">
|
|
|
<view class="use-tips t-contract-list">
|
|
<view class="use-tips t-contract-list">
|
|
|
<view class="title">电子合同</view>
|
|
<view class="title">电子合同</view>
|
|
|
<view class="text contract-list">
|
|
<view class="text contract-list">
|
|
|
<view class="item-no-sign">
|
|
<view class="item-no-sign">
|
|
|
<view class="sign-title">未签署:</view>
|
|
<view class="sign-title">未签署:</view>
|
|
|
- <view class="sign-name" v-for="item in notSignList" :key="item.id" @click="checkSign(item)">{{ item.fullName }}</view>
|
|
|
|
|
|
|
+ <view class="sign-name" v-for="item in notSignList" :key="item.id" @click="checkSign(item)">{{
|
|
|
|
|
+ item.fullName }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="item-sign">
|
|
<view class="item-sign">
|
|
|
<view class="sign-title">已签署:</view>
|
|
<view class="sign-title">已签署:</view>
|
|
@@ -187,46 +195,48 @@
|
|
|
<view class="title">订单信息</view>
|
|
<view class="title">订单信息</view>
|
|
|
<view class="info-list">
|
|
<view class="info-list">
|
|
|
<view class="item-left">实际付款</view>
|
|
<view class="item-left">实际付款</view>
|
|
|
- <view class="item-right">¥{{ orderDetailInfo.price }}</view>
|
|
|
|
|
|
|
+ <view class="item-right">¥{{ orderDetailInfo?.price }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="info-list">
|
|
<view class="info-list">
|
|
|
<view class="item-left">手机号码</view>
|
|
<view class="item-left">手机号码</view>
|
|
|
- <view class="item-right">{{ orderDetailInfo.phoneNumber }}</view>
|
|
|
|
|
|
|
+ <view class="item-right">{{ orderDetailInfo?.phoneNumber||orderDetailInfo?.phone }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="info-list">
|
|
<view class="info-list">
|
|
|
<view class="item-left">订单编号</view>
|
|
<view class="item-left">订单编号</view>
|
|
|
- <view class="item-right">{{ orderDetailInfo.orderCode }}</view>
|
|
|
|
|
|
|
+ <view class="item-right">{{ orderDetailInfo?.orderCode }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="info-list">
|
|
<view class="info-list">
|
|
|
<view class="item-left">下单时间</view>
|
|
<view class="item-left">下单时间</view>
|
|
|
- <view class="item-right">{{ orderDetailInfo.createTime }}</view>
|
|
|
|
|
|
|
+ <view class="item-right">{{ orderDetailInfo?.createTime }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="info-list">
|
|
<view class="info-list">
|
|
|
<view class="item-left">付款时间</view>
|
|
<view class="item-left">付款时间</view>
|
|
|
- <view class="item-right">{{ orderDetailInfo.payTime || '--' }}</view>
|
|
|
|
|
|
|
+ <view class="item-right">{{ orderDetailInfo?.payTime || '--' }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 已使用展示 -->
|
|
<!-- 已使用展示 -->
|
|
|
- <view class="appraise-btn" @click="RouterUtils.to_page(`/pages/index/writeComments/index?siteId=${orderDetailInfo.addressSiteId}&orderId=${orderDetailInfo.id}`)">
|
|
|
|
|
|
|
+ <view class="appraise-btn"
|
|
|
|
|
+ @click="RouterUtils.to_page(`/pages/index/writeComments/index?siteId=${orderDetailInfo?.addressSiteId}&orderId=${orderDetailInfo?.id}`)">
|
|
|
写评价
|
|
写评价
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <zs-loading v-else></zs-loading>
|
|
|
<!-- 价格详情弹窗 -->
|
|
<!-- 价格详情弹窗 -->
|
|
|
<uni-popup ref="pricePopup" :safe-area="false" type="bottom">
|
|
<uni-popup ref="pricePopup" :safe-area="false" type="bottom">
|
|
|
- <view class="price-detail">
|
|
|
|
|
|
|
+ <view class="price-detail" v-if="orderDetailInfo">
|
|
|
<view class="price-title">价格明细</view>
|
|
<view class="price-title">价格明细</view>
|
|
|
<view class="price-list">
|
|
<view class="price-list">
|
|
|
<view class="price-total">
|
|
<view class="price-total">
|
|
|
<view class="text">商品总价(共2件)</view>
|
|
<view class="text">商品总价(共2件)</view>
|
|
|
- <view class="price">¥{{ orderDetailInfo.totalPrice }}</view>
|
|
|
|
|
|
|
+ <view class="price">¥{{ orderDetailInfo?.totalPrice }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="price-total">
|
|
<view class="price-total">
|
|
|
<view class="text">团购优惠</view>
|
|
<view class="text">团购优惠</view>
|
|
|
- <view class="price">-¥{{ orderDetailInfo.tdiscounts || '0' }}</view>
|
|
|
|
|
|
|
+ <view class="price">-¥{{ orderDetailInfo?.tdiscounts || '0' }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="price-total">
|
|
<view class="price-total">
|
|
|
<view class="text">实付金额</view>
|
|
<view class="text">实付金额</view>
|
|
|
- <view class="price">¥{{ orderDetailInfo.price }}</view>
|
|
|
|
|
|
|
+ <view class="price">¥{{ orderDetailInfo?.price }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -300,6 +310,8 @@ import { ref, onMounted } from 'vue';
|
|
|
import { TipsUtils, RouterUtils, DateUtils } from '@/utils/util'
|
|
import { TipsUtils, RouterUtils, DateUtils } from '@/utils/util'
|
|
|
import { onLoad } from '@dcloudio/uni-app';
|
|
import { onLoad } from '@dcloudio/uni-app';
|
|
|
import { http } from '@/utils/http'
|
|
import { http } from '@/utils/http'
|
|
|
|
|
+import zsLoading from '@/components/zzx-loading/zzx-loading.vue'
|
|
|
|
|
+
|
|
|
const qrcode = ref();
|
|
const qrcode = ref();
|
|
|
const pricePopup = ref() //价格
|
|
const pricePopup = ref() //价格
|
|
|
const refundPopup = ref() //退款
|
|
const refundPopup = ref() //退款
|
|
@@ -307,7 +319,7 @@ const selected = ref(false)
|
|
|
const orderPageInfo = ref()
|
|
const orderPageInfo = ref()
|
|
|
onLoad((option) => {
|
|
onLoad((option) => {
|
|
|
orderPageInfo.value = option
|
|
orderPageInfo.value = option
|
|
|
- console.log(orderPageInfo.value);
|
|
|
|
|
|
|
+ console.log(option, '路由参数');
|
|
|
})
|
|
})
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
getOrderDetailInfo()
|
|
getOrderDetailInfo()
|
|
@@ -321,7 +333,7 @@ const download_qrcode = () => {//下载二维码
|
|
|
},
|
|
},
|
|
|
fail: (err) => {
|
|
fail: (err) => {
|
|
|
console.log(err);
|
|
console.log(err);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -351,6 +363,7 @@ const open_phone = () => {
|
|
|
|
|
|
|
|
// 订单状态 0-待付款 1-待使用 2-已使用 3-已到期 4-已取消 5-退款中 6已退款
|
|
// 订单状态 0-待付款 1-待使用 2-已使用 3-已到期 4-已取消 5-退款中 6已退款
|
|
|
const orderDetailInfo = ref()
|
|
const orderDetailInfo = ref()
|
|
|
|
|
+const loading = ref(true)
|
|
|
const getOrderDetailInfo = (() => {
|
|
const getOrderDetailInfo = (() => {
|
|
|
http.get('/order/queryOrderInfo', { data: { orderId: orderPageInfo.value.orderId }, loading: true }).then((res) => {
|
|
http.get('/order/queryOrderInfo', { data: { orderId: orderPageInfo.value.orderId }, loading: true }).then((res) => {
|
|
|
switch (res.result.orderStatus) {
|
|
switch (res.result.orderStatus) {
|
|
@@ -378,6 +391,8 @@ const getOrderDetailInfo = (() => {
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
orderDetailInfo.value = res.result
|
|
orderDetailInfo.value = res.result
|
|
|
|
|
+ loading.value = false
|
|
|
|
|
+ console.log(loading.value, '---加载');
|
|
|
getQueryWaitSignList(res.result.id)
|
|
getQueryWaitSignList(res.result.id)
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
@@ -387,8 +402,8 @@ const notSignList = ref([]) // 未签署
|
|
|
const signList = ref([]) // 已签署
|
|
const signList = ref([]) // 已签署
|
|
|
const getQueryWaitSignList = (orderId: string) => {
|
|
const getQueryWaitSignList = (orderId: string) => {
|
|
|
http.get('/esign/queryWaitSignList', { data: { orderId: orderId }, loading: true }).then((res) => {
|
|
http.get('/esign/queryWaitSignList', { data: { orderId: orderId }, loading: true }).then((res) => {
|
|
|
- notSignList.value = res.result.filter((item:any) => item.isSign == 0)
|
|
|
|
|
- signList.value = res.result.filter((item:any) => item.isSign == 1)
|
|
|
|
|
|
|
+ notSignList.value = res.result.filter((item: any) => item.isSign == 0)
|
|
|
|
|
+ signList.value = res.result.filter((item: any) => item.isSign == 1)
|
|
|
queryWaitSignList.value = res.result
|
|
queryWaitSignList.value = res.result
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -399,7 +414,7 @@ const checkSign = (e) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 查询授权
|
|
// 查询授权
|
|
|
-const get_UserIdentityInfo = (familyId:string) => {
|
|
|
|
|
|
|
+const get_UserIdentityInfo = (familyId: string) => {
|
|
|
http.get('/esign/getUserIdentityInfo', { data: { familyId: familyId }, loading: true }).then((res) => {
|
|
http.get('/esign/getUserIdentityInfo', { data: { familyId: familyId }, loading: true }).then((res) => {
|
|
|
if (res.result) {
|
|
if (res.result) {
|
|
|
get_createSign(familyId)
|
|
get_createSign(familyId)
|
|
@@ -410,23 +425,23 @@ const get_UserIdentityInfo = (familyId:string) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 发起签署
|
|
// 发起签署
|
|
|
-const get_createSign = (familyId:string) => {
|
|
|
|
|
- http.get('/esign/createSign', { data: { orderCode: orderDetailInfo.value.orderCode,familyId:familyId }, loading: true }).then((res) => {
|
|
|
|
|
- getSignUrl()
|
|
|
|
|
|
|
+const get_createSign = (familyId: string) => {
|
|
|
|
|
+ http.get('/esign/createSign', { data: { orderCode: orderDetailInfo.value.orderCode, familyId: familyId }, loading: true }).then((res) => {
|
|
|
|
|
+ getSignUrl(res.result)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 未授权跳转链接
|
|
// 未授权跳转链接
|
|
|
-const getAuthUrl = (familyId:string) => {
|
|
|
|
|
- http.get('/esign/getAuthUrl', {data:{familyId: familyId}, loading: true }).then((res) => {
|
|
|
|
|
- RouterUtils.to_page(`/pages/index/signWebview/index?url=${encodeURIComponent(res.result)}`)
|
|
|
|
|
|
|
+const getAuthUrl = (familyId: string) => {
|
|
|
|
|
+ http.get('/esign/getAuthUrl', { data: { familyId: familyId }, loading: true }).then((res) => {
|
|
|
|
|
+ RouterUtils.to_page(`/pages/index/signWebview/index?url=${res.result}`)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 获取签署链接
|
|
// 获取签署链接
|
|
|
-const getSignUrl = () => {
|
|
|
|
|
- http.get('/esign/getSignUrl', { data: { signFlowId: '8d143f604578435db064c04ddaa1fc48' }, loading: true }).then((res) => {
|
|
|
|
|
- RouterUtils.to_page(`/pages/index/signWebview/index?url=${encodeURIComponent(res.result)}`)
|
|
|
|
|
|
|
+const getSignUrl = (signFlowId: string) => {
|
|
|
|
|
+ http.get('/esign/getSignUrl', { data: { signFlowId: signFlowId }, loading: true }).then((res) => {
|
|
|
|
|
+ RouterUtils.to_page(`/pages/index/signWebview/index?url=${res.result}`)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|