66b52cf9 by 杨炀

add: 36版本

省级-个人会员-月结缴费
1.缴费凭证查看
2.撤回
3.按钮名称修改
4.中跆协已下发的才可见
5.缴费凭证两个状态【未确认】【已上传】,默认是--
1 parent 46924c0c
......@@ -1180,6 +1180,11 @@ export function mentDocList(data) {
params: data
})
}
export function wdBack(yjIds) {
return request({
url: `/person/paymentDocYj/wd/${yjIds}`
})
}
// 个人会员月结缴费单
export function downJiaoYJFei(arr) {
return request({
......
......@@ -7,6 +7,7 @@
<text v-if="item.settleFlag == 0" class="text-warning">已结算</text>
<text v-if="item.settleFlag == 1 && item.payFlag == 0" class="text-success">已上传</text>
<text v-if="item.settleFlag == 1 && item.payFlag == 1" class="text-danger">未上传</text>
<text v-if="item.settleFlag == 1 && item.payFlag == 2" class="text-primary">未确认</text>
</view>
<view class="date" @click="goDetail(item)">
<uni-icons type="calendar-filled" size="16" color="#AD181F"></uni-icons>
......@@ -18,9 +19,10 @@
<view class="flexbox" style="margin-bottom: 20rpx;" @click="goDetail(item)">
<view>
缴费凭证
<view>
<view @click.stop="viewSettleFile(item)">
<text v-if="item.payFlag == 0" class="text-success">已上传</text>
<text v-else class="text-danger">未上传</text>
<text v-if="item.payFlag == 1">--</text>
<text v-if="item.payFlag == 2" class="text-danger">未确认</text>
</view>
</view>
<view>
......@@ -41,9 +43,10 @@
</view>
<view class="func">
<button
@click="handleUpdate(item)" v-if="item.settleFlag != 0">确认并上传
@click="handleUpdate(item)" class="miniBtn" v-if="item.settleFlag != 0">确认并上传
</button>
<button @click="handleDownload(item)" >下载缴费通知单</button>
<button @click="handleDownload(item)" class="miniBtn">下载缴费通知单</button>
<button class="miniBtn" v-if="!(item.settleFlag==0||item.payFlag==0||item.payFlag==2)" @click="handleBack(item)">撤回</button>
</view>
</view>
</view>
......@@ -111,7 +114,7 @@ function init() {
}
function getList() {
api.mentDocList().then(res => {
api.mentDocList({sendFlag:1}).then(res => {
list.value = res.rows
})
}
......@@ -235,6 +238,61 @@ function circulation(id) {
}
});
}
function handleBack(row){
uni.showModal({
title: '提示',
content: `确定撤回${row.yjName}吗`,
success: function(res) {
if (res.confirm) {
uni.showLoading({
icon: 'none',
title: '请求中'
})
api.wdBack(row.yjId).then(res => {
uni.hideLoading()
uni.showToast({
title: '操作成功'
})
getList()
})
}
}
})
}
function viewSettleFile(item){
if(item.payEvidence){
let file = JSON.parse(item.payEvidence)
console.log(file)
showImg(file[0].url)
}
}
function showImg(n) {
var str = ''
if(n.indexOf('http')==-1){
str = config.baseUrl_api + n
} else {
str = n
}
if (n.indexOf('png') > -1 || n.indexOf('jpg') > -1 || n.indexOf(
'jpeg') > -1) {
uni.previewImage({
urls: [str],
success: function(res) {
console.log('success', res)
},
fail: function(res) {
console.log('fail', res)
},
complete: function(res) {
console.log('complete', res)
}
})
} else {
goWebView(str)
}
}
</script>
<style scoped lang="scss">
......@@ -249,4 +307,5 @@ function circulation(id) {
margin: 50rpx 0 30rpx;
}
}
.func button.miniBtn{font-size: 28rpx;padding: 0 20rpx;}
</style>
\ No newline at end of file
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!