This commit is contained in:
=
2025-03-07 14:11:11 +08:00
parent 55e9010fb5
commit d5a8dd7534
2 changed files with 37 additions and 8 deletions
@@ -7,7 +7,7 @@ layout("/mobile/platform.html"){
</van-sticky>
<div>
<van-search v-model="pageForm.searchKeyword" placeholder="请输入搜索关键词" @search="doSearch">
<van-search v-model="pageForm.search" placeholder="请输入搜索关键词" @search="doSearch">
</van-search>
</div>
<div>
@@ -40,7 +40,7 @@ layout("/mobile/platform.html"){
<div class="custom-title">缴费金额:{{item.paymentMoney}}</div>
</template>
<template #right-icon>
<van-button @click="show=true" v-if="!item.isPayment" size="mini" plain type="info">设为已缴</van-button>
<van-button @click="openPay(item)" v-if="!item.isPayment" size="mini" plain type="info">设为已缴</van-button>
</template>
</van-cell>
<template #right>
@@ -64,6 +64,7 @@ layout("/mobile/platform.html"){
v-model="formData.paymentMoney"
name="缴费金额"
label="缴费金额"
type="digit"
placeholder="缴费金额"
:rules="[{ required: true, message: '请填写缴费金额' }]"
></van-field>
@@ -97,8 +98,7 @@ layout("/mobile/platform.html"){
totalCount: 0,
username: "",
isPay:false,
searchName:'u.username',
searchKeyword:''
search:''
},
option1: [
{ text: '姓名', value: 'u.username' },
@@ -162,6 +162,31 @@ layout("/mobile/platform.html"){
}
})
},
openPay(item){
this.show=true
this.formData=item
},
onSubmit(){
this.$dialog.confirm({
title: '提示',
message: "您确定要更改缴费信息吗?",
}).then(async () => {
const data={
ids:JSON.stringify([this.formData.id]),
paymentMoney:this.formData.paymentMoney,
remark:this.formData.remark,
isPay:this.formData.isPayment
}
const resp = await $.get("/platform/member/payment/summary/modify", data)
if (resp.code === 0) {
this.$toast.success(resp.msg)
await this.doSearch()
this.show=false
} else {
this.$toast.fail(resp.msg)
}
})
}
},
async created() {
await this.pageData()