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>
</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: {
@ -552,25 +566,38 @@ export default {
console.error(error, 'error') console.error(error, 'error')
}) })
}, },
updatePayStatus(row) { updatePayStatus(row) {
this.$http('POST', '/agentnew/ajax_update_pay_status', { var payid = row.payid
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) {
status: row.status==1 ? 0 : 1, this.closePayTipDialogVisible = true
}, {
headers: { row['is_close_pay_tip'] = true;
'Auth': this.token row['close_pay_bind_site'] = this.payBindSites[payid][0];
} this.closePayTipPayInfo = row
}).then(response => { } else {
this.$nextTick(() => { this.$http('POST', '/agentnew/ajax_update_pay_status', {
if (response.status) { payid: row.payid,
this.$Message.success(response.info); status: row.status==1 ? 0 : 1,
} else { }, {
this.$Message.error(response.info); headers: {
} 'Auth': this.token
}) }
}).catch(error => { }).then(response => {
console.error(error, 'error') 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) { 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