diff --git a/src/main/resources/views/mobile/memberCost/summary.html b/src/main/resources/views/mobile/memberCost/summary.html index 80bd932..d080ad5 100644 --- a/src/main/resources/views/mobile/memberCost/summary.html +++ b/src/main/resources/views/mobile/memberCost/summary.html @@ -22,17 +22,31 @@ layout("/mobile/platform.html"){ finished-text="没有更多了" @load="pageData" > - - + + + + + + + @@ -42,6 +56,29 @@ layout("/mobile/platform.html"){ image="https://img01.yzcdn.cn/vant/custom-empty-image.png" v-if="tableData&&tableData.length===0" > + + +
+ + + +
+ 提交 +
+
+
+
@@ -66,7 +103,9 @@ layout("/mobile/platform.html"){ option1: [ { text: '姓名', value: 'u.username' }, { text: '工号', value: 'u.loginname' }, - ] + ], + show:false, + formData: {} } }, methods: { @@ -75,7 +114,6 @@ layout("/mobile/platform.html"){ if (resp.code === 0) { this.tableData = this.tableData.concat(resp.data.list) this.pageForm.totalCount = resp.data.totalCount - console.log(this.tableData.length >= this.pageForm.totalCount) if (this.tableData.length >= this.pageForm.totalCount) { this.finished = true } else { @@ -86,10 +124,44 @@ layout("/mobile/platform.html"){ }, doSearch(){ this.pageForm.pageNumber = 1 + if(this.tableData.length==this.pageForm.totalCount){ + this.finished = true + }else{ + this.finished = false + } this.tableData = [] - this.finished = false this.pageData() - } + }, + async doDelete(id) { + const loading = this.$toast.loading({ + message: "加载中...", + forbidClick: true, + overlay: true, + duration: 0 + }) + const resp = await $.get("/platform/member/payment/summary/doRemoveById", { id: id }) + if (resp.code === 0) { + this.$toast.success(resp.msg) + await this.doSearch() + loading.close() + } else { + this.$toast.fail(resp.msg) + } + }, + async sendPaymentMsg(row) { + this.$dialog.confirm({ + title: '提示', + message: "您确定对【" + row.username + "】会员进行催缴吗?", + }).then(async () => { + const resp = await $.get("/platform/member/payment/summary/sendPaymentMsg", { id: row.id }) + if (resp.code === 0) { + this.$toast.success(resp.msg) + await this.doSearch() + } else { + this.$toast.fail(resp.msg) + } + }) + }, }, async created() { await this.pageData()