Browse Source

完善非担保进度维护--增加重推

master
yunuo970428 1 year ago
parent
commit
7f18c724df
  1. 7
      anrui-riskcenter-ui/src/api/unsecuredbusiness/unsecuredbusiness.js
  2. 33
      anrui-riskcenter-ui/src/views/unsecuredbusiness/unsecuredbusiness.vue

7
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',

33
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

Loading…
Cancel
Save