Browse Source

收款关闭 仅绑定一个站点 增加提示

pull/62/head
rainbro 6 days ago
parent
commit
11a442aea7
  1. 30
      src/views/agent/payList.vue

30
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: {
@ -553,6 +567,14 @@ export default {
})
},
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,
@ -564,6 +586,8 @@ export default {
this.$nextTick(() => {
if (response.status) {
this.$Message.success(response.info);
this.closePayTipDialogVisible = false;
this.getPayList()
} else {
this.$Message.error(response.info);
}
@ -571,6 +595,9 @@ export default {
}).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