add: 36版本
省级-个人会员-月结缴费 1.缴费凭证查看 2.撤回 3.按钮名称修改 4.中跆协已下发的才可见 5.缴费凭证两个状态【未确认】【已上传】,默认是--
Showing
2 changed files
with
69 additions
and
5 deletions
| ... | @@ -1180,6 +1180,11 @@ export function mentDocList(data) { | ... | @@ -1180,6 +1180,11 @@ export function mentDocList(data) { |
| 1180 | params: data | 1180 | params: data |
| 1181 | }) | 1181 | }) |
| 1182 | } | 1182 | } |
| 1183 | export function wdBack(yjIds) { | ||
| 1184 | return request({ | ||
| 1185 | url: `/person/paymentDocYj/wd/${yjIds}` | ||
| 1186 | }) | ||
| 1187 | } | ||
| 1183 | // 个人会员月结缴费单 | 1188 | // 个人会员月结缴费单 |
| 1184 | export function downJiaoYJFei(arr) { | 1189 | export function downJiaoYJFei(arr) { |
| 1185 | return request({ | 1190 | return request({ | ... | ... |
| ... | @@ -7,6 +7,7 @@ | ... | @@ -7,6 +7,7 @@ |
| 7 | <text v-if="item.settleFlag == 0" class="text-warning">已结算</text> | 7 | <text v-if="item.settleFlag == 0" class="text-warning">已结算</text> |
| 8 | <text v-if="item.settleFlag == 1 && item.payFlag == 0" class="text-success">已上传</text> | 8 | <text v-if="item.settleFlag == 1 && item.payFlag == 0" class="text-success">已上传</text> |
| 9 | <text v-if="item.settleFlag == 1 && item.payFlag == 1" class="text-danger">未上传</text> | 9 | <text v-if="item.settleFlag == 1 && item.payFlag == 1" class="text-danger">未上传</text> |
| 10 | <text v-if="item.settleFlag == 1 && item.payFlag == 2" class="text-primary">未确认</text> | ||
| 10 | </view> | 11 | </view> |
| 11 | <view class="date" @click="goDetail(item)"> | 12 | <view class="date" @click="goDetail(item)"> |
| 12 | <uni-icons type="calendar-filled" size="16" color="#AD181F"></uni-icons> | 13 | <uni-icons type="calendar-filled" size="16" color="#AD181F"></uni-icons> |
| ... | @@ -18,9 +19,10 @@ | ... | @@ -18,9 +19,10 @@ |
| 18 | <view class="flexbox" style="margin-bottom: 20rpx;" @click="goDetail(item)"> | 19 | <view class="flexbox" style="margin-bottom: 20rpx;" @click="goDetail(item)"> |
| 19 | <view> | 20 | <view> |
| 20 | 缴费凭证 | 21 | 缴费凭证 |
| 21 | <view> | 22 | <view @click.stop="viewSettleFile(item)"> |
| 22 | <text v-if="item.payFlag == 0" class="text-success">已上传</text> | 23 | <text v-if="item.payFlag == 0" class="text-success">已上传</text> |
| 23 | <text v-else class="text-danger">未上传</text> | 24 | <text v-if="item.payFlag == 1">--</text> |
| 25 | <text v-if="item.payFlag == 2" class="text-danger">未确认</text> | ||
| 24 | </view> | 26 | </view> |
| 25 | </view> | 27 | </view> |
| 26 | <view> | 28 | <view> |
| ... | @@ -41,9 +43,10 @@ | ... | @@ -41,9 +43,10 @@ |
| 41 | </view> | 43 | </view> |
| 42 | <view class="func"> | 44 | <view class="func"> |
| 43 | <button | 45 | <button |
| 44 | @click="handleUpdate(item)" v-if="item.settleFlag != 0">确认并上传 | 46 | @click="handleUpdate(item)" class="miniBtn" v-if="item.settleFlag != 0">确认并上传 |
| 45 | </button> | 47 | </button> |
| 46 | <button @click="handleDownload(item)" >下载缴费通知单</button> | 48 | <button @click="handleDownload(item)" class="miniBtn">下载缴费通知单</button> |
| 49 | <button class="miniBtn" v-if="!(item.settleFlag==0||item.payFlag==0||item.payFlag==2)" @click="handleBack(item)">撤回</button> | ||
| 47 | </view> | 50 | </view> |
| 48 | </view> | 51 | </view> |
| 49 | </view> | 52 | </view> |
| ... | @@ -111,7 +114,7 @@ function init() { | ... | @@ -111,7 +114,7 @@ function init() { |
| 111 | } | 114 | } |
| 112 | 115 | ||
| 113 | function getList() { | 116 | function getList() { |
| 114 | api.mentDocList().then(res => { | 117 | api.mentDocList({sendFlag:1}).then(res => { |
| 115 | list.value = res.rows | 118 | list.value = res.rows |
| 116 | }) | 119 | }) |
| 117 | } | 120 | } |
| ... | @@ -235,6 +238,61 @@ function circulation(id) { | ... | @@ -235,6 +238,61 @@ function circulation(id) { |
| 235 | } | 238 | } |
| 236 | }); | 239 | }); |
| 237 | } | 240 | } |
| 241 | |||
| 242 | function handleBack(row){ | ||
| 243 | uni.showModal({ | ||
| 244 | title: '提示', | ||
| 245 | content: `确定撤回${row.yjName}吗`, | ||
| 246 | success: function(res) { | ||
| 247 | if (res.confirm) { | ||
| 248 | uni.showLoading({ | ||
| 249 | icon: 'none', | ||
| 250 | title: '请求中' | ||
| 251 | }) | ||
| 252 | api.wdBack(row.yjId).then(res => { | ||
| 253 | uni.hideLoading() | ||
| 254 | uni.showToast({ | ||
| 255 | title: '操作成功' | ||
| 256 | }) | ||
| 257 | getList() | ||
| 258 | }) | ||
| 259 | } | ||
| 260 | } | ||
| 261 | }) | ||
| 262 | } | ||
| 263 | function viewSettleFile(item){ | ||
| 264 | if(item.payEvidence){ | ||
| 265 | let file = JSON.parse(item.payEvidence) | ||
| 266 | console.log(file) | ||
| 267 | showImg(file[0].url) | ||
| 268 | } | ||
| 269 | } | ||
| 270 | function showImg(n) { | ||
| 271 | var str = '' | ||
| 272 | if(n.indexOf('http')==-1){ | ||
| 273 | str = config.baseUrl_api + n | ||
| 274 | } else { | ||
| 275 | str = n | ||
| 276 | } | ||
| 277 | |||
| 278 | if (n.indexOf('png') > -1 || n.indexOf('jpg') > -1 || n.indexOf( | ||
| 279 | 'jpeg') > -1) { | ||
| 280 | uni.previewImage({ | ||
| 281 | urls: [str], | ||
| 282 | success: function(res) { | ||
| 283 | console.log('success', res) | ||
| 284 | }, | ||
| 285 | fail: function(res) { | ||
| 286 | console.log('fail', res) | ||
| 287 | }, | ||
| 288 | complete: function(res) { | ||
| 289 | console.log('complete', res) | ||
| 290 | } | ||
| 291 | }) | ||
| 292 | } else { | ||
| 293 | goWebView(str) | ||
| 294 | } | ||
| 295 | } | ||
| 238 | </script> | 296 | </script> |
| 239 | 297 | ||
| 240 | <style scoped lang="scss"> | 298 | <style scoped lang="scss"> |
| ... | @@ -249,4 +307,5 @@ function circulation(id) { | ... | @@ -249,4 +307,5 @@ function circulation(id) { |
| 249 | margin: 50rpx 0 30rpx; | 307 | margin: 50rpx 0 30rpx; |
| 250 | } | 308 | } |
| 251 | } | 309 | } |
| 310 | .func button.miniBtn{font-size: 28rpx;padding: 0 20rpx;} | ||
| 252 | </style> | 311 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment