From 7f18c724dfbe2fa117cf3ce9dbaf31d1fb52db83 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Thu, 30 Nov 2023 11:16:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=9D=9E=E6=8B=85=E4=BF=9D?= =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E7=BB=B4=E6=8A=A4--=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=87=8D=E6=8E=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unsecuredbusiness/unsecuredbusiness.js | 7 ++++ .../unsecuredbusiness/unsecuredbusiness.vue | 33 +++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/anrui-riskcenter-ui/src/api/unsecuredbusiness/unsecuredbusiness.js b/anrui-riskcenter-ui/src/api/unsecuredbusiness/unsecuredbusiness.js index 608bb70fb6..f10183ce7a 100644 --- a/anrui-riskcenter-ui/src/api/unsecuredbusiness/unsecuredbusiness.js +++ b/anrui-riskcenter-ui/src/api/unsecuredbusiness/unsecuredbusiness.js @@ -10,6 +10,13 @@ export default { headers: { 'Content-Type': 'application/json' } }) }, + rePush: function(data) { + return request({ + url: '/riskcenter/v1/noguaranteereview/rePush', + method: 'post', + params: data + }) + }, saveOrUpdate: function(data) { return request({ url: '/riskcenter/v1/noguaranteereview/saveReviewInfo', diff --git a/anrui-riskcenter-ui/src/views/unsecuredbusiness/unsecuredbusiness.vue b/anrui-riskcenter-ui/src/views/unsecuredbusiness/unsecuredbusiness.vue index ecd0973d29..2976c77d13 100644 --- a/anrui-riskcenter-ui/src/views/unsecuredbusiness/unsecuredbusiness.vue +++ b/anrui-riskcenter-ui/src/views/unsecuredbusiness/unsecuredbusiness.vue @@ -128,6 +128,13 @@ export default { btnKey: 'toEdit', btnLabel: '办理' }, + { + type: 'primary', + size: 'small', + icon: '', + btnKey: 'toPush', + btnLabel: '重推' + }, { type: 'info', size: 'small', @@ -192,6 +199,9 @@ export default { case 'toEdit': this.toEdit() break + case 'toPush': + this.toPush() + break case 'doClose': this.doClose() break @@ -261,6 +271,29 @@ export default { } this.getList() }, + toPush() { + if (this.sids.length === 1) { + const loading = this.$loading({ + lock: true, + text: '数据推送中', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }) + req.rePush({ salesOrderSid: this.sids[0] }).then((resp) => { + if (resp.success) { + loading.close() + this.$message({ showClose: true, type: 'success', message: '重推成功' }) + this.getList() + } else { + loading.close() + } + }).catch(() => { + loading.close() + }) + } else { + this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行重推操作' }) + } + }, toEdit(row) { if (this.sids.length === 1) { this.viewState = 2