Browse Source

Merge pull request '收款关闭 仅绑定一个站点 增加提示' (#62) from 20250625_pay_bind_sites into master

Reviewed-on: #62
pull/64/head
liuyu 5 days ago
parent
commit
806c2193fa
  1. 68
      src/views/agent/payList.vue

68
src/views/agent/payList.vue

@ -388,6 +388,17 @@
</div>
</div>
</GuipDialog>
<GuipDialog :dialogVisible="closePayTipDialogVisible" title="禁用确认" :show-close-button="false"
:show-cancel-button="showCancelButton" @confirm="updatePayStatus(closePayTipPayInfo)" @cancel="handleCancel"
@close="handleClose" @dialogVisibleChange="dialogVisibleChange" :confirmText="addPayconfirmText">
<!-- 自定义内容 -->
<div>
<p>{{ closePayTipPayInfo.type_desc }} 账号{{ closePayTipPayInfo.account }}</p>
<p class="mt12">站点 {{ closePayTipPayInfo.close_pay_bind_site}} 仅绑定当前收款方式关闭会影响此站点的正常使用是否确认禁用</p>
</div>
</GuipDialog>
</div>
</template>
<script>
@ -470,6 +481,9 @@ export default {
jdAuthUrl: '',
payBindSites: [],
closePayTipDialogVisible: false,
closePayTipPayInfo: [],
}
},
computed: {
@ -552,25 +566,38 @@ export default {
console.error(error, 'error')
})
},
updatePayStatus(row) {
this.$http('POST', '/agentnew/ajax_update_pay_status', {
payid: row.payid,
status: row.status==1 ? 0 : 1,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
this.$Message.success(response.info);
} else {
this.$Message.error(response.info);
}
})
}).catch(error => {
console.error(error, 'error')
})
updatePayStatus(row) {
var payid = row.payid
if (!row.is_close_pay_tip && row.status==1 && this.payBindSites[payid] && this.payBindSites[payid].length > 0 && this.payBindSites[payid].length==1) {
this.closePayTipDialogVisible = true
row['is_close_pay_tip'] = true;
row['close_pay_bind_site'] = this.payBindSites[payid][0];
this.closePayTipPayInfo = row
} else {
this.$http('POST', '/agentnew/ajax_update_pay_status', {
payid: row.payid,
status: row.status==1 ? 0 : 1,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
this.$Message.success(response.info);
this.closePayTipDialogVisible = false;
this.getPayList()
} else {
this.$Message.error(response.info);
}
})
}).catch(error => {
console.error(error, 'error')
})
}
},
updateAutoRefund(row) {
this.$http('POST', '/agentnew/ajax_setting_auto_refund', {
@ -691,10 +718,13 @@ export default {
//
handleCancel() {
this.addPayDialogVisible = false;
this.closePayTipDialogVisible = false;
this.getPayList();
},
//
handleClose() {
this.addPayDialogVisible = false;
this.closePayTipDialogVisible = false;
},
dialogVisibleChange(data) {
console.log(data, 'data098908090');

Loading…
Cancel
Save