慰问、会员入会接入待办
This commit is contained in:
@@ -26,7 +26,7 @@ layout("/mobile/platform.html"){
|
||||
|
||||
<van-field v-model="formData.auditTime" label="审核时间" readonly></van-field>
|
||||
|
||||
<van-field required
|
||||
<van-field
|
||||
v-model="formData.auditOpinion"
|
||||
rows="1"
|
||||
autosize
|
||||
@@ -45,12 +45,12 @@ layout("/mobile/platform.html"){
|
||||
|
||||
<van-row gutter="20" style="margin-top: 30px;padding: 0 25px">
|
||||
<van-col span="12">
|
||||
<van-button :color="themeColor" plain block @click="doAudit(false)">拒 绝
|
||||
<van-button :color="themeColor" plain block :loading="formLoading" :disabled="formLoading" @click="doAudit(false)">拒 绝
|
||||
</van-button>
|
||||
</van-col>
|
||||
|
||||
<van-col span="12">
|
||||
<van-button :color="themeColor" block @click="doAudit(true)">通 过
|
||||
<van-button :color="themeColor" block :loading="formLoading" :disabled="formLoading" @click="doAudit(true)">通 过
|
||||
</van-button>
|
||||
</van-col>
|
||||
</van-row>
|
||||
@@ -70,6 +70,7 @@ layout("/mobile/platform.html"){
|
||||
data() {
|
||||
return {
|
||||
handle: true,
|
||||
formLoading: false,
|
||||
id: "",
|
||||
formData: {},
|
||||
}
|
||||
@@ -80,25 +81,27 @@ layout("/mobile/platform.html"){
|
||||
},
|
||||
methods: {
|
||||
|
||||
async doAudit(pass) {
|
||||
if (!this.formData.auditOpinion) {
|
||||
this.$toast.fail('请填写审核意见');
|
||||
return
|
||||
}
|
||||
this.formData.auditPass = pass
|
||||
const resp = await $.post("/platform/member/apply/audit/doAudit", this.formData)
|
||||
requestLaterFun(resp, (data) => {
|
||||
this.$toast.success('审核成功');
|
||||
setTimeout(() => {
|
||||
location.href = '/mobile/member/audit'
|
||||
}, 1000)
|
||||
}, () => {
|
||||
this.$toast.fail('审核失败');
|
||||
}, () => {
|
||||
doAudit(pass) {
|
||||
if (this.formLoading) return
|
||||
// 与 PC 共用审核参数;提交前读取手写签名,避免仅提交历史签名。
|
||||
this.$refs.signature.submitSign()
|
||||
this.$set(this.formData, 'auditPass', pass)
|
||||
this.formLoading = true
|
||||
$.post('/platform/member/apply/audit/doAudit', this.formData).then(resp => {
|
||||
requestLaterFun(resp, () => {
|
||||
this.$toast.success('审核成功')
|
||||
location.replace('/mobile/member/audit')
|
||||
}, () => {
|
||||
this.$toast.fail('审核失败')
|
||||
}, () => {})
|
||||
}).fail(() => {
|
||||
this.$toast.fail('审核失败,请稍后重试')
|
||||
}).always(() => {
|
||||
this.formLoading = false
|
||||
})
|
||||
},
|
||||
},
|
||||
async created() {
|
||||
created() {
|
||||
const record_id = GetQueryString("record_id")
|
||||
const user_id = GetQueryString("user_id")
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user