Browse Source

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

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

30
src/views/agent/payList.vue

@ -388,6 +388,17 @@
</div> </div>
</div> </div>
</GuipDialog> </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> </div>
</template> </template>
<script> <script>
@ -470,6 +481,9 @@ export default {
jdAuthUrl: '', jdAuthUrl: '',
payBindSites: [], payBindSites: [],
closePayTipDialogVisible: false,
closePayTipPayInfo: [],
} }
}, },
computed: { computed: {
@ -553,6 +567,14 @@ export default {
}) })
}, },
updatePayStatus(row) { 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', { this.$http('POST', '/agentnew/ajax_update_pay_status', {
payid: row.payid, payid: row.payid,
status: row.status==1 ? 0 : 1, status: row.status==1 ? 0 : 1,
@ -564,6 +586,8 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
if (response.status) { if (response.status) {
this.$Message.success(response.info); this.$Message.success(response.info);
this.closePayTipDialogVisible = false;
this.getPayList()
} else { } else {
this.$Message.error(response.info); this.$Message.error(response.info);
} }
@ -571,6 +595,9 @@ export default {
}).catch(error => { }).catch(error => {
console.error(error, 'error') console.error(error, 'error')
}) })
}
}, },
updateAutoRefund(row) { updateAutoRefund(row) {
this.$http('POST', '/agentnew/ajax_setting_auto_refund', { this.$http('POST', '/agentnew/ajax_setting_auto_refund', {
@ -691,10 +718,13 @@ export default {
// //
handleCancel() { handleCancel() {
this.addPayDialogVisible = false; this.addPayDialogVisible = false;
this.closePayTipDialogVisible = false;
this.getPayList();
}, },
// //
handleClose() { handleClose() {
this.addPayDialogVisible = false; this.addPayDialogVisible = false;
this.closePayTipDialogVisible = false;
}, },
dialogVisibleChange(data) { dialogVisibleChange(data) {
console.log(data, 'data098908090'); console.log(data, 'data098908090');

Loading…
Cancel
Save