|
@ -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'); |
|
|