Merge branch 'master' of https://code.itechtop.cn/yangyang/ztx_wx_gzt
Showing
7 changed files
with
163 additions
and
130 deletions
| ... | @@ -937,6 +937,7 @@ export function auditJi(data) { | ... | @@ -937,6 +937,7 @@ export function auditJi(data) { |
| 937 | params: data | 937 | params: data |
| 938 | }) | 938 | }) |
| 939 | } | 939 | } |
| 940 | |||
| 940 | export function auditDuanExam(data) { | 941 | export function auditDuanExam(data) { |
| 941 | // 基础 URL | 942 | // 基础 URL |
| 942 | let url = `/exam/info/auditDuanExam/${data.ids}?flag=${data.flag}&ids=${data.ids}`; | 943 | let url = `/exam/info/auditDuanExam/${data.ids}?flag=${data.flag}&ids=${data.ids}`; |
| ... | @@ -952,6 +953,7 @@ export function auditDuanExam(data) { | ... | @@ -952,6 +953,7 @@ export function auditDuanExam(data) { |
| 952 | params: data | 953 | params: data |
| 953 | }) | 954 | }) |
| 954 | } | 955 | } |
| 956 | |||
| 955 | export function auditDuanScore(data) { | 957 | export function auditDuanScore(data) { |
| 956 | // 基础 URL | 958 | // 基础 URL |
| 957 | let url = `/exam/info/auditDuanScore/${data.ids}?flag=${data.flag}&ids=${data.ids}`; | 959 | let url = `/exam/info/auditDuanScore/${data.ids}?flag=${data.flag}&ids=${data.ids}`; |
| ... | @@ -1367,6 +1369,13 @@ export function changeLevelAudit(data) { | ... | @@ -1367,6 +1369,13 @@ export function changeLevelAudit(data) { |
| 1367 | }) | 1369 | }) |
| 1368 | } | 1370 | } |
| 1369 | 1371 | ||
| 1372 | export function changeLevelShenAudit(data) { | ||
| 1373 | return request({ | ||
| 1374 | url: `/person/levelModRange/shenAudit/${data.ids}?flag=${data.flag}&reason=${data.reason}`, | ||
| 1375 | method: 'post' | ||
| 1376 | }) | ||
| 1377 | } | ||
| 1378 | |||
| 1370 | export function changeLevelWithDraw(data) { | 1379 | export function changeLevelWithDraw(data) { |
| 1371 | return request({ | 1380 | return request({ |
| 1372 | url: `/person/levelModRange/withDraw/${data}`, | 1381 | url: `/person/levelModRange/withDraw/${data}`, | ... | ... |
| 1 | // dev | 1 | // dev |
| 2 | const baseUrl_api = 'http://192.168.1.137:8787' | 2 | // const baseUrl_api = 'http://192.168.1.137:8787' |
| 3 | // const baseUrl_api = 'http://tk001.wxjylt.com/stage-api' | 3 | const baseUrl_api = 'http://tk001.wxjylt.com/stage-api' |
| 4 | const loginImage_api = 'http://tk001.wxjylt.com/stage-api' | 4 | const loginImage_api = 'http://tk001.wxjylt.com/stage-api' |
| 5 | const payUrl = 'https://wxpay.cmbc.com.cn/mobilePlatform/appserver/lcbpPay.do' | 5 | const payUrl = 'https://wxpay.cmbc.com.cn/mobilePlatform/appserver/lcbpPay.do' |
| 6 | 6 | ... | ... |
| ... | @@ -94,11 +94,11 @@ onLoad((option) => { | ... | @@ -94,11 +94,11 @@ onLoad((option) => { |
| 94 | }) | 94 | }) |
| 95 | } | 95 | } |
| 96 | }) | 96 | }) |
| 97 | |||
| 97 | onShow(() => { | 98 | onShow(() => { |
| 98 | if (app.globalData.isLogin) { | 99 | if (app.globalData.isLogin) { |
| 99 | init() | 100 | init() |
| 100 | } else { | 101 | } else { |
| 101 | |||
| 102 | app.firstLoadCallback = () => { | 102 | app.firstLoadCallback = () => { |
| 103 | init() | 103 | init() |
| 104 | }; | 104 | }; | ... | ... |
| ... | @@ -58,6 +58,10 @@ | ... | @@ -58,6 +58,10 @@ |
| 58 | <image :src="config.baseUrl_api+'/fs/static/icon/3.png'"/> | 58 | <image :src="config.baseUrl_api+'/fs/static/icon/3.png'"/> |
| 59 | 级位考试申请 | 59 | 级位考试申请 |
| 60 | </view> | 60 | </view> |
| 61 | <view @click="goPath('/personalVip/changeLevel')"> | ||
| 62 | <image :src="config.baseUrl_api+'/fs/static/icon/26.png'"/> | ||
| 63 | 级位变更 | ||
| 64 | </view> | ||
| 61 | </view> | 65 | </view> |
| 62 | <view v-if="userType=='3'" class="girdBox"> | 66 | <view v-if="userType=='3'" class="girdBox"> |
| 63 | <view @click="goPath('/group/apply/applyList')"> | 67 | <view @click="goPath('/group/apply/applyList')"> |
| ... | @@ -133,10 +137,16 @@ | ... | @@ -133,10 +137,16 @@ |
| 133 | <!-- <view @click="goPath('/pages/exam/payment?type=1')"> | 137 | <!-- <view @click="goPath('/pages/exam/payment?type=1')"> |
| 134 | <image :src="config.baseUrl_api+'/fs/static/icon/10.png'" />考试缴费单 | 138 | <image :src="config.baseUrl_api+'/fs/static/icon/10.png'" />考试缴费单 |
| 135 | </view> --> | 139 | </view> --> |
| 136 | <view @click="goPath('/personalVip/changeLevel')"> | 140 | <!-- <view @click="goPath('/personalVip/changeLevel')">--> |
| 141 | <!-- <image :src="config.baseUrl_api+'/fs/static/icon/26.png'"/>--> | ||
| 142 | <!-- 级位变更--> | ||
| 143 | <!-- </view>--> | ||
| 144 | |||
| 145 | <view @click="goPath('/personalVip/changeLevelAudit')"> | ||
| 137 | <image :src="config.baseUrl_api+'/fs/static/icon/26.png'"/> | 146 | <image :src="config.baseUrl_api+'/fs/static/icon/26.png'"/> |
| 138 | 级位变更 | 147 | 变更审核 |
| 139 | </view> | 148 | </view> |
| 149 | |||
| 140 | <view @click="goPath('/level/auditRecord2')"> | 150 | <view @click="goPath('/level/auditRecord2')"> |
| 141 | <image :src="config.baseUrl_api+'/fs/static/icon/17.png'"/> | 151 | <image :src="config.baseUrl_api+'/fs/static/icon/17.png'"/> |
| 142 | 审核记录 | 152 | 审核记录 | ... | ... |
| ... | @@ -22,7 +22,7 @@ | ... | @@ -22,7 +22,7 @@ |
| 22 | <!-- <image v-if="item.payTime" :src="config.baseUrl_api + '/fs/static/calendar@2x.png'" mode="widthFix" --> | 22 | <!-- <image v-if="item.payTime" :src="config.baseUrl_api + '/fs/static/calendar@2x.png'" mode="widthFix" --> |
| 23 | <!-- style="width:30rpx;height:30rpx;"/> --> | 23 | <!-- style="width:30rpx;height:30rpx;"/> --> |
| 24 | <!-- <text v-if="item.payTime" class="date-text">{{ item.payTime }}</text> --> | 24 | <!-- <text v-if="item.payTime" class="date-text">{{ item.payTime }}</text> --> |
| 25 | <text class="value text-primary" >{{ item.wfCode || '——' }}</text> | 25 | <text class="value text-primary">{{ item.wfCode || '——' }}</text> |
| 26 | </view> | 26 | </view> |
| 27 | <view | 27 | <view |
| 28 | :class="{ | 28 | :class="{ |
| ... | @@ -124,7 +124,7 @@ | ... | @@ -124,7 +124,7 @@ |
| 124 | <script setup> | 124 | <script setup> |
| 125 | import {ref, reactive, onMounted, computed} from 'vue'; | 125 | import {ref, reactive, onMounted, computed} from 'vue'; |
| 126 | import {onReachBottom} from '@dcloudio/uni-app' | 126 | import {onReachBottom} from '@dcloudio/uni-app' |
| 127 | import {useUserStore} from "../store/modules/user"; | 127 | import {useUserStore} from "@/store/modules/user"; |
| 128 | import * as api from '@/common/api.js' | 128 | import * as api from '@/common/api.js' |
| 129 | import config from '@/config.js' | 129 | import config from '@/config.js' |
| 130 | 130 | ||
| ... | @@ -242,7 +242,7 @@ const confirmDel = async () => { | ... | @@ -242,7 +242,7 @@ const confirmDel = async () => { |
| 242 | uni.showToast({title: '删除成功', icon: 'success'}); | 242 | uni.showToast({title: '删除成功', icon: 'success'}); |
| 243 | pageNum.value = 1; | 243 | pageNum.value = 1; |
| 244 | list.value = []; | 244 | list.value = []; |
| 245 | initData(); | 245 | await initData(); |
| 246 | closeDelPopup(); | 246 | closeDelPopup(); |
| 247 | } catch (e) { | 247 | } catch (e) { |
| 248 | uni.showToast({title: '删除失败', icon: 'error'}); | 248 | uni.showToast({title: '删除失败', icon: 'error'}); |
| ... | @@ -288,7 +288,7 @@ const confirmCancel = async () => { | ... | @@ -288,7 +288,7 @@ const confirmCancel = async () => { |
| 288 | uni.showToast({title: '取消成功', icon: 'success'}); | 288 | uni.showToast({title: '取消成功', icon: 'success'}); |
| 289 | pageNum.value = 1; | 289 | pageNum.value = 1; |
| 290 | list.value = []; | 290 | list.value = []; |
| 291 | initData(); | 291 | await initData(); |
| 292 | closeCancelPopup(); | 292 | closeCancelPopup(); |
| 293 | } catch (e) { | 293 | } catch (e) { |
| 294 | uni.showToast({title: '取消失败', icon: 'error'}); | 294 | uni.showToast({title: '取消失败', icon: 'error'}); | ... | ... |
| ... | @@ -15,7 +15,7 @@ | ... | @@ -15,7 +15,7 @@ |
| 15 | <view class="info-card"> | 15 | <view class="info-card"> |
| 16 | <view class="info-item"> | 16 | <view class="info-item"> |
| 17 | <text class="label">交易流水号</text> | 17 | <text class="label">交易流水号</text> |
| 18 | <text class="value">{{ orderInfo.tradeNo||'--' }}</text> | 18 | <text class="value">{{ orderInfo.tradeNo || '--' }}</text> |
| 19 | </view> | 19 | </view> |
| 20 | <view class="info-item"> | 20 | <view class="info-item"> |
| 21 | <text class="label">商户名称</text> | 21 | <text class="label">商户名称</text> |
| ... | @@ -35,29 +35,30 @@ | ... | @@ -35,29 +35,30 @@ |
| 35 | </template> | 35 | </template> |
| 36 | 36 | ||
| 37 | <script setup> | 37 | <script setup> |
| 38 | import { | 38 | import { |
| 39 | ref | 39 | ref |
| 40 | } from 'vue' | 40 | } from 'vue' |
| 41 | import { | 41 | import { |
| 42 | onLoad | 42 | onLoad |
| 43 | } from '@dcloudio/uni-app' | 43 | } from '@dcloudio/uni-app' |
| 44 | import to from 'await-to-js' | 44 | import to from 'await-to-js' |
| 45 | import * as api from '@/common/api.js' | 45 | import * as api from '@/common/api.js' |
| 46 | 46 | ||
| 47 | const orderInfo = ref({ | 47 | const orderInfo = ref({ |
| 48 | id: '', | 48 | id: '', |
| 49 | tradeNo: '', | 49 | tradeNo: '', |
| 50 | merchantName: '中国跆拳道协会', | 50 | merchantName: '中国跆拳道协会', |
| 51 | price: '' | 51 | price: '' |
| 52 | }) | 52 | }) |
| 53 | 53 | ||
| 54 | const goBack = () => { | 54 | const goBack = () => { |
| 55 | uni.reLaunch({ | 55 | uni.redirectTo({ |
| 56 | url: '/login/login' | 56 | // url: '/login/login' |
| 57 | url: '/personal/order' | ||
| 57 | }) | 58 | }) |
| 58 | } | 59 | } |
| 59 | 60 | ||
| 60 | onLoad(async (option) => { | 61 | onLoad(async (option) => { |
| 61 | if (option.orderId) { | 62 | if (option.orderId) { |
| 62 | const [err, res] = await to(api.getOrderInfo(option.orderId)) | 63 | const [err, res] = await to(api.getOrderInfo(option.orderId)) |
| 63 | if (!err && res.data) { | 64 | if (!err && res.data) { |
| ... | @@ -66,12 +67,12 @@ | ... | @@ -66,12 +67,12 @@ |
| 66 | orderInfo.value.id = option.orderId | 67 | orderInfo.value.id = option.orderId |
| 67 | } | 68 | } |
| 68 | } | 69 | } |
| 69 | }) | 70 | }) |
| 70 | </script> | 71 | </script> |
| 71 | 72 | ||
| 72 | <style scoped> | 73 | <style scoped> |
| 73 | /* 全局容器 */ | 74 | /* 全局容器 */ |
| 74 | .success-container { | 75 | .success-container { |
| 75 | display: flex; | 76 | display: flex; |
| 76 | flex-direction: column; | 77 | flex-direction: column; |
| 77 | align-items: center; | 78 | align-items: center; |
| ... | @@ -79,16 +80,16 @@ | ... | @@ -79,16 +80,16 @@ |
| 79 | min-height: 100vh; | 80 | min-height: 100vh; |
| 80 | background-color: #f8f9fa; | 81 | background-color: #f8f9fa; |
| 81 | box-sizing: border-box; | 82 | box-sizing: border-box; |
| 82 | } | 83 | } |
| 83 | 84 | ||
| 84 | /* 成功图标容器 */ | 85 | /* 成功图标容器 */ |
| 85 | .success-icon { | 86 | .success-icon { |
| 86 | margin-bottom: 40rpx; | 87 | margin-bottom: 40rpx; |
| 87 | animation: fadeIn 0.6s ease-out; | 88 | animation: fadeIn 0.6s ease-out; |
| 88 | } | 89 | } |
| 89 | 90 | ||
| 90 | /* 渐变圆形背景 */ | 91 | /* 渐变圆形背景 */ |
| 91 | .icon-circle { | 92 | .icon-circle { |
| 92 | width: 180rpx; | 93 | width: 180rpx; |
| 93 | height: 180rpx; | 94 | height: 180rpx; |
| 94 | border-radius: 50%; | 95 | border-radius: 50%; |
| ... | @@ -100,34 +101,34 @@ | ... | @@ -100,34 +101,34 @@ |
| 100 | box-shadow: 0 8rpx 30rpx rgba(6, 193, 174, 0.3); | 101 | box-shadow: 0 8rpx 30rpx rgba(6, 193, 174, 0.3); |
| 101 | /* 轻微上浮动效 */ | 102 | /* 轻微上浮动效 */ |
| 102 | animation: scaleIn 0.8s ease-out; | 103 | animation: scaleIn 0.8s ease-out; |
| 103 | } | 104 | } |
| 104 | 105 | ||
| 105 | /* 对勾图标 */ | 106 | /* 对勾图标 */ |
| 106 | .check-icon { | 107 | .check-icon { |
| 107 | font-size: 90rpx; | 108 | font-size: 90rpx; |
| 108 | color: #ffffff; | 109 | color: #ffffff; |
| 109 | font-weight: bold; | 110 | font-weight: bold; |
| 110 | } | 111 | } |
| 111 | 112 | ||
| 112 | /* 支付成功标题 */ | 113 | /* 支付成功标题 */ |
| 113 | .success-title { | 114 | .success-title { |
| 114 | font-size: 48rpx; | 115 | font-size: 48rpx; |
| 115 | font-weight: 700; | 116 | font-weight: 700; |
| 116 | color: #333333; | 117 | color: #333333; |
| 117 | margin-bottom: 12rpx; | 118 | margin-bottom: 12rpx; |
| 118 | animation: slideUp 0.6s ease-out; | 119 | animation: slideUp 0.6s ease-out; |
| 119 | } | 120 | } |
| 120 | 121 | ||
| 121 | /* 副标题 */ | 122 | /* 副标题 */ |
| 122 | .success-subtitle { | 123 | .success-subtitle { |
| 123 | font-size: 28rpx; | 124 | font-size: 28rpx; |
| 124 | color: #666666; | 125 | color: #666666; |
| 125 | margin-bottom: 60rpx; | 126 | margin-bottom: 60rpx; |
| 126 | animation: slideUp 0.8s ease-out; | 127 | animation: slideUp 0.8s ease-out; |
| 127 | } | 128 | } |
| 128 | 129 | ||
| 129 | /* 订单信息卡片 */ | 130 | /* 订单信息卡片 */ |
| 130 | .info-card { | 131 | .info-card { |
| 131 | width: 100%; | 132 | width: 100%; |
| 132 | background: #ffffff; | 133 | background: #ffffff; |
| 133 | border-radius: 20rpx; | 134 | border-radius: 20rpx; |
| ... | @@ -135,55 +136,55 @@ | ... | @@ -135,55 +136,55 @@ |
| 135 | box-shadow: 0 6rpx 20rpx rgba(0, 0, 0, 0.05); | 136 | box-shadow: 0 6rpx 20rpx rgba(0, 0, 0, 0.05); |
| 136 | margin-bottom: 80rpx; | 137 | margin-bottom: 80rpx; |
| 137 | animation: fadeIn 1s ease-out; | 138 | animation: fadeIn 1s ease-out; |
| 138 | } | 139 | } |
| 139 | 140 | ||
| 140 | /* 单个信息项 */ | 141 | /* 单个信息项 */ |
| 141 | .info-item { | 142 | .info-item { |
| 142 | display: flex; | 143 | display: flex; |
| 143 | justify-content: space-between; | 144 | justify-content: space-between; |
| 144 | align-items: center; | 145 | align-items: center; |
| 145 | padding: 24rpx 0; | 146 | padding: 24rpx 0; |
| 146 | border-bottom: 1rpx solid #f5f5f5; | 147 | border-bottom: 1rpx solid #f5f5f5; |
| 147 | } | 148 | } |
| 148 | 149 | ||
| 149 | /* 最后一项去掉下划线 */ | 150 | /* 最后一项去掉下划线 */ |
| 150 | .info-item:last-child { | 151 | .info-item:last-child { |
| 151 | border-bottom: none; | 152 | border-bottom: none; |
| 152 | } | 153 | } |
| 153 | 154 | ||
| 154 | /* 标签样式 */ | 155 | /* 标签样式 */ |
| 155 | .label { | 156 | .label { |
| 156 | font-size: 32rpx; | 157 | font-size: 32rpx; |
| 157 | color: #666666; | 158 | color: #666666; |
| 158 | white-space: nowrap; | 159 | white-space: nowrap; |
| 159 | margin-right: 20rpx; | 160 | margin-right: 20rpx; |
| 160 | flex-shrink: 0; | 161 | flex-shrink: 0; |
| 161 | } | 162 | } |
| 162 | 163 | ||
| 163 | /* 值样式 */ | 164 | /* 值样式 */ |
| 164 | .value { | 165 | .value { |
| 165 | font-size: 32rpx; | 166 | font-size: 32rpx; |
| 166 | color: #333333; | 167 | color: #333333; |
| 167 | text-align: right; | 168 | text-align: right; |
| 168 | word-break: break-all; | 169 | word-break: break-all; |
| 169 | word-wrap: break-word; | 170 | word-wrap: break-word; |
| 170 | } | 171 | } |
| 171 | 172 | ||
| 172 | /* 金额特殊样式 */ | 173 | /* 金额特殊样式 */ |
| 173 | .amount { | 174 | .amount { |
| 174 | color: #cd1e27; | 175 | color: #cd1e27; |
| 175 | font-weight: 600; | 176 | font-weight: 600; |
| 176 | } | 177 | } |
| 177 | 178 | ||
| 178 | /* 确定按钮区域 */ | 179 | /* 确定按钮区域 */ |
| 179 | .confirm-btn-area { | 180 | .confirm-btn-area { |
| 180 | width: 100%; | 181 | width: 100%; |
| 181 | padding: 0 20rpx; | 182 | padding: 0 20rpx; |
| 182 | box-sizing: border-box; | 183 | box-sizing: border-box; |
| 183 | } | 184 | } |
| 184 | 185 | ||
| 185 | /* 确定按钮(渐变+动效) */ | 186 | /* 确定按钮(渐变+动效) */ |
| 186 | .confirm-btn { | 187 | .confirm-btn { |
| 187 | width: 100%; | 188 | width: 100%; |
| 188 | height: 90rpx; | 189 | height: 90rpx; |
| 189 | line-height: 90rpx; | 190 | line-height: 90rpx; |
| ... | @@ -198,20 +199,20 @@ | ... | @@ -198,20 +199,20 @@ |
| 198 | /* 禁止默认样式 */ | 199 | /* 禁止默认样式 */ |
| 199 | position: relative; | 200 | position: relative; |
| 200 | overflow: hidden; | 201 | overflow: hidden; |
| 201 | } | 202 | } |
| 202 | 203 | ||
| 203 | /* 按钮点击反馈 */ | 204 | /* 按钮点击反馈 */ |
| 204 | .confirm-btn::after { | 205 | .confirm-btn::after { |
| 205 | border: none; | 206 | border: none; |
| 206 | } | 207 | } |
| 207 | 208 | ||
| 208 | .confirm-btn:active { | 209 | .confirm-btn:active { |
| 209 | transform: scale(0.98); | 210 | transform: scale(0.98); |
| 210 | box-shadow: 0 4rpx 10rpx rgba(6, 193, 174, 0.2); | 211 | box-shadow: 0 4rpx 10rpx rgba(6, 193, 174, 0.2); |
| 211 | } | 212 | } |
| 212 | 213 | ||
| 213 | /* 动画定义 */ | 214 | /* 动画定义 */ |
| 214 | @keyframes fadeIn { | 215 | @keyframes fadeIn { |
| 215 | 0% { | 216 | 0% { |
| 216 | opacity: 0; | 217 | opacity: 0; |
| 217 | } | 218 | } |
| ... | @@ -219,9 +220,9 @@ | ... | @@ -219,9 +220,9 @@ |
| 219 | 100% { | 220 | 100% { |
| 220 | opacity: 1; | 221 | opacity: 1; |
| 221 | } | 222 | } |
| 222 | } | 223 | } |
| 223 | 224 | ||
| 224 | @keyframes scaleIn { | 225 | @keyframes scaleIn { |
| 225 | 0% { | 226 | 0% { |
| 226 | transform: scale(0); | 227 | transform: scale(0); |
| 227 | } | 228 | } |
| ... | @@ -233,9 +234,9 @@ | ... | @@ -233,9 +234,9 @@ |
| 233 | 100% { | 234 | 100% { |
| 234 | transform: scale(1); | 235 | transform: scale(1); |
| 235 | } | 236 | } |
| 236 | } | 237 | } |
| 237 | 238 | ||
| 238 | @keyframes slideUp { | 239 | @keyframes slideUp { |
| 239 | 0% { | 240 | 0% { |
| 240 | opacity: 0; | 241 | opacity: 0; |
| 241 | transform: translateY(30rpx); | 242 | transform: translateY(30rpx); |
| ... | @@ -245,5 +246,5 @@ | ... | @@ -245,5 +246,5 @@ |
| 245 | opacity: 1; | 246 | opacity: 1; |
| 246 | transform: translateY(0); | 247 | transform: translateY(0); |
| 247 | } | 248 | } |
| 248 | } | 249 | } |
| 249 | </style> | 250 | </style> | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <view> | 2 | <view> |
| 3 | <view class="searchbar"> | 3 | <view class="searchbar"> |
| 4 | <uni-easyinput placeholderStyle="font-size:30rpx" :input-border="false" prefixIcon="search" | 4 | <uni-easyinput v-model="queryParams.code" :input-border="false" placeholder="搜索变更单号" |
| 5 | v-model="queryParams.code" placeholder="搜索变更单号" @blur="getList" @clear="getList"> | 5 | placeholderStyle="font-size:30rpx" prefixIcon="search" @blur="getList" @clear="getList"> |
| 6 | </uni-easyinput> | 6 | </uni-easyinput> |
| 7 | </view> | 7 | </view> |
| 8 | <view class="vipData"> | 8 | <view class="vipData"> |
| 9 | <view>级位变更人数合计: <text>{{statistical.personCount}}</text>人</view> | 9 | <view>级位变更人数合计: |
| 10 | <text>{{ statistical.personCount }}</text> | ||
| 11 | 人 | ||
| 12 | </view> | ||
| 10 | </view> | 13 | </view> |
| 11 | <view class="appList"> | 14 | <view class="appList"> |
| 12 | <view class="appItem" v-for="(item,index) in list" :key="index"> | 15 | <view v-for="(item,index) in list" :key="index" class="appItem"> |
| 13 | <view class="status" @click="goDetail(item)"> | 16 | <view class="status" @click="goDetail(item)"> |
| 14 | <view> | 17 | <view> |
| 15 | <text v-if="item.status == 0" class="text-warning">待提交</text> | 18 | <text v-if="userType==1?item.status == 1:item.shenAuditStatus==0" class="text-primary">审核中</text> |
| 16 | <text v-if="item.status == 1" class="text-primary">审核中</text> | 19 | <text v-if="userType==1?item.status == 2:item.shenAuditStatus==1" class="text-success">审核通过</text> |
| 17 | <text v-if="item.status == 2" class="text-success">审核通过</text> | 20 | <text v-if="userType==1?item.status == 3:item.shenAuditStatus==2" class="text-danger">审核拒绝</text> |
| 18 | <text v-if="item.status == 3" class="text-danger">审核拒绝</text> | 21 | <text v-if="userType==1?item.status == 4:item.shenAuditStatus==3" class="text-warning">已撤回</text> |
| 19 | <text v-if="item.status == 4" class="text-warning">已撤回</text> | ||
| 20 | </view> | 22 | </view> |
| 21 | </view> | 23 | </view> |
| 22 | 24 | ||
| 23 | <view class="name mt0" @click="goDetail(item)"> | 25 | <view class="name mt0" @click="goDetail(item)"> |
| 24 | <text class="text-primary">{{item.code}}</text>-{{item.shenMemName}} | 26 | <text class="text-primary">{{ item.code }}</text> |
| 27 | -{{ item.shenMemName }} | ||
| 25 | </view> | 28 | </view> |
| 26 | <view class="flexbox" @click="goDetail(item)"> | 29 | <view class="flexbox" @click="goDetail(item)"> |
| 27 | <view> | 30 | <view> |
| 28 | 变更人数 | 31 | 变更人数 |
| 29 | <view> | 32 | <view> |
| 30 | <text class="text-danger">{{item.count}}人</text> | 33 | <text class="text-danger">{{ item.count }}人</text> |
| 31 | </view> | 34 | </view> |
| 32 | </view> | 35 | </view> |
| 33 | <view class="w50"> | 36 | <view class="w50"> |
| 34 | 提交时间 | 37 | 提交时间 |
| 35 | <view>{{item.commitTime||'--'}}</view> | 38 | <view>{{ item.commitTime || '--' }}</view> |
| 36 | </view> | 39 | </view> |
| 37 | </view> | 40 | </view> |
| 38 | <view class="func" v-if="item.status==1"> | 41 | <view v-if="userType==1?item.status == 1:item.shenAuditStatus==0 " class="func"> |
| 39 | <button @click="audit(item.id,'0')">拒绝</button> | 42 | <button @click="audit(item.id,'0')">拒绝</button> |
| 40 | <button @click="audit(item.id,'1')">同意</button> | 43 | <button @click="audit(item.id,'1')">同意</button> |
| 41 | </view> | 44 | </view> |
| 42 | <view class="func" v-if="item.status==2"> | 45 | <!-- <view v-if="item.status==2" class="func">--> |
| 43 | <button @click="handleDelete(item)">撤回</button> | 46 | <!-- <button @click="handleDelete(item)">撤回</button>--> |
| 44 | </view> | 47 | <!-- </view>--> |
| 45 | </view> | 48 | </view> |
| 46 | </view> | 49 | </view> |
| 47 | <view class="nodata" v-if="list.length==0"> | 50 | <view v-if="list.length==0" class="nodata"> |
| 48 | <image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image> | 51 | <image :src="config.baseUrl_api + '/fs/static/nodata.png'" mode="aspectFit"></image> |
| 49 | <text>暂无数据</text> | 52 | <text>暂无数据</text> |
| 50 | </view> | 53 | </view> |
| 51 | </view> | 54 | </view> |
| 52 | </template> | 55 | </template> |
| 53 | 56 | ||
| 54 | <script setup> | 57 | <script setup> |
| 55 | import * as api from '@/common/api.js' | 58 | import * as api from '@/common/api.js' |
| 56 | import config from '@/config.js' | 59 | import config from '@/config.js' |
| 57 | import { | 60 | import { |
| 58 | ref | 61 | ref |
| 59 | } from 'vue' | 62 | } from 'vue' |
| 60 | import { | 63 | import { |
| 61 | onLoad, | 64 | onLoad, |
| 62 | onShow | 65 | onShow |
| 63 | } from '@dcloudio/uni-app' | 66 | } from '@dcloudio/uni-app' |
| 64 | const app = getApp(); | 67 | import {changeLevelShenAudit} from "@/common/api.js"; |
| 65 | const queryParams = ref({ | 68 | |
| 69 | const app = getApp(); | ||
| 70 | const queryParams = ref({ | ||
| 66 | code: '', | 71 | code: '', |
| 67 | ztxList: 0 | 72 | // shenAuditStatus: 0 |
| 68 | }) | 73 | }) |
| 69 | const list = ref([]) | 74 | const list = ref([]) |
| 70 | const statistical = ref({ | 75 | const statistical = ref({ |
| 71 | personCount: 0 | 76 | personCount: 0 |
| 72 | }) | 77 | }) |
| 73 | const total = ref(0) | 78 | const total = ref(0) |
| 74 | onShow(() => { | 79 | const userType = ref(2) |
| 80 | |||
| 81 | onShow(() => { | ||
| 82 | userType.value = app.globalData.userType | ||
| 83 | |||
| 75 | getList() | 84 | getList() |
| 76 | }) | 85 | }) |
| 77 | 86 | ||
| 78 | function getList() { | 87 | function getList() { |
| 79 | uni.showLoading({ | 88 | uni.showLoading({ |
| 80 | title: '加载中' | 89 | title: '加载中' |
| 81 | }) | 90 | }) |
| ... | @@ -88,20 +97,20 @@ | ... | @@ -88,20 +97,20 @@ |
| 88 | total.value = res.total | 97 | total.value = res.total |
| 89 | uni.hideLoading() | 98 | uni.hideLoading() |
| 90 | }) | 99 | }) |
| 91 | } | 100 | } |
| 92 | 101 | ||
| 93 | function goDetail(item) { | 102 | function goDetail(item) { |
| 94 | let path = `/personalVip/changeLevelDetail?rangeId=${item.id}` | 103 | let path = `/personalVip/changeLevelDetail?rangeId=${item.id}` |
| 95 | uni.navigateTo({ | 104 | uni.navigateTo({ |
| 96 | url: path | 105 | url: path |
| 97 | }); | 106 | }); |
| 98 | } | 107 | } |
| 99 | 108 | ||
| 100 | function handleDelete(row) { | 109 | function handleDelete(row) { |
| 101 | uni.showModal({ | 110 | uni.showModal({ |
| 102 | title: '提示', | 111 | title: '提示', |
| 103 | content: `确定撤回吗`, | 112 | content: `确定撤回吗`, |
| 104 | success: function(res) { | 113 | success: function (res) { |
| 105 | if (res.confirm) { | 114 | if (res.confirm) { |
| 106 | api.changeLevelWithDraw([row.id]).then(Response => { | 115 | api.changeLevelWithDraw([row.id]).then(Response => { |
| 107 | uni.showToast({ | 116 | uni.showToast({ |
| ... | @@ -113,16 +122,16 @@ | ... | @@ -113,16 +122,16 @@ |
| 113 | } | 122 | } |
| 114 | } | 123 | } |
| 115 | }) | 124 | }) |
| 116 | } | 125 | } |
| 117 | 126 | ||
| 118 | function audit(id, flag) { | 127 | function audit(id, flag) { |
| 119 | if (flag == 0) { | 128 | if (flag == 0) { |
| 120 | // 拒绝 | 129 | // 拒绝 |
| 121 | // 弹出框填写理由 | 130 | // 弹出框填写理由 |
| 122 | uni.showModal({ | 131 | uni.showModal({ |
| 123 | title: '请输入拒绝理由', | 132 | title: '请输入拒绝理由', |
| 124 | editable: true, | 133 | editable: true, |
| 125 | success: function(res) { | 134 | success: function (res) { |
| 126 | if (res.confirm) { | 135 | if (res.confirm) { |
| 127 | if (!res.content) { | 136 | if (!res.content) { |
| 128 | uni.showToast({ | 137 | uni.showToast({ |
| ... | @@ -140,17 +149,17 @@ | ... | @@ -140,17 +149,17 @@ |
| 140 | uni.showModal({ | 149 | uni.showModal({ |
| 141 | title: '提示', | 150 | title: '提示', |
| 142 | content: `确定审批通过吗`, | 151 | content: `确定审批通过吗`, |
| 143 | success: function(res) { | 152 | success: function (res) { |
| 144 | if (res.confirm) { | 153 | if (res.confirm) { |
| 145 | doApproval(id, flag) | 154 | doApproval(id, flag) |
| 146 | } | 155 | } |
| 147 | } | 156 | } |
| 148 | }) | 157 | }) |
| 149 | } | 158 | } |
| 150 | } | 159 | } |
| 151 | 160 | ||
| 152 | function doApproval(id, flag, reason) { | 161 | async function doApproval(id, flag, reason) { |
| 153 | var obj = { | 162 | let obj = { |
| 154 | flag: flag, | 163 | flag: flag, |
| 155 | reason: reason || '', | 164 | reason: reason || '', |
| 156 | ids: [id] | 165 | ids: [id] |
| ... | @@ -159,19 +168,23 @@ | ... | @@ -159,19 +168,23 @@ |
| 159 | uni.showLoading({ | 168 | uni.showLoading({ |
| 160 | title: '加载中' | 169 | title: '加载中' |
| 161 | }) | 170 | }) |
| 162 | api.changeLevelAudit(obj).then((res) => { | 171 | if (userType.value == 1) { |
| 172 | await api.changeLevelAudit(obj) | ||
| 173 | } else { | ||
| 174 | await api.changeLevelShenAudit(obj) | ||
| 175 | } | ||
| 163 | uni.hideLoading() | 176 | uni.hideLoading() |
| 164 | uni.showToast({ | 177 | uni.showToast({ |
| 165 | title: '操作成功', | 178 | title: '操作成功', |
| 166 | icon: 'none' | 179 | icon: 'none' |
| 167 | }) | 180 | }) |
| 168 | getList() | 181 | getList() |
| 169 | }) | 182 | |
| 170 | } | 183 | } |
| 171 | </script> | 184 | </script> |
| 172 | 185 | ||
| 173 | <style lang='scss' scoped> | 186 | <style lang='scss' scoped> |
| 174 | .searchbar { | 187 | .searchbar { |
| 175 | display: flex; | 188 | display: flex; |
| 176 | align-items: center; | 189 | align-items: center; |
| 177 | padding: 25rpx; | 190 | padding: 25rpx; |
| ... | @@ -194,5 +207,5 @@ | ... | @@ -194,5 +207,5 @@ |
| 194 | font-size: 30rpx; | 207 | font-size: 30rpx; |
| 195 | padding: 10rpx 20rpx; | 208 | padding: 10rpx 20rpx; |
| 196 | } | 209 | } |
| 197 | } | 210 | } |
| 198 | </style> | 211 | </style> | ... | ... |
-
Please register or sign in to post a comment