diff --git a/jeepay-ui-manager/src/api/manage.js b/jeepay-ui-manager/src/api/manage.js index 6530b13dc749f352139f6596a50c8b9c81fc704a..f0bf7bebef268a5a6eeeb67e5a8bcffd93007e01 100644 --- a/jeepay-ui-manager/src/api/manage.js +++ b/jeepay-ui-manager/src/api/manage.js @@ -284,3 +284,10 @@ export function getEntBySysType (entId, sysType) { params: { entId: entId, sysType: sysType } }) } + +export function mchNotifyResend (notifyId) { + return request.request({ + url: '/api/mchNotify/resend/' + notifyId, + method: 'POST' + }) +} diff --git a/jeepay-ui-manager/src/views/order/notify/MchNotifyList.vue b/jeepay-ui-manager/src/views/order/notify/MchNotifyList.vue index c734eee1e5cc9591ad7cfc9d23f7880c1c07d3b0..4ea0455112ef615363bf8be51dc90d467c554534 100644 --- a/jeepay-ui-manager/src/views/order/notify/MchNotifyList.vue +++ b/jeepay-ui-manager/src/views/order/notify/MchNotifyList.vue @@ -75,6 +75,7 @@ @@ -202,7 +203,7 @@ import JeepayTable from '@/components/JeepayTable/JeepayTable' import JeepayTextUp from '@/components/JeepayTextUp/JeepayTextUp' // 文字上移组件 import JeepayTableColumns from '@/components/JeepayTable/JeepayTableColumns' - import { API_URL_MCH_NOTIFY_LIST, req } from '@/api/manage' + import { API_URL_MCH_NOTIFY_LIST, req, mchNotifyResend } from '@/api/manage' import moment from 'moment' // eslint-disable-next-line no-unused-vars @@ -212,7 +213,7 @@ { key: 'state', title: '通知状态', width: '130px', scopedSlots: { customRender: 'stateSlot' } }, { key: 'orderType', title: '订单类型', width: '130px', scopedSlots: { customRender: 'orderTypeSlot' } }, { key: 'createdAt', dataIndex: 'createdAt', title: '创建日期' }, - { key: 'op', title: '操作', width: '100px', fixed: 'right', align: 'center', scopedSlots: { customRender: 'opSlot' } } + { key: 'op', title: '操作', fixed: 'right', align: 'center', scopedSlots: { customRender: 'opSlot' } } ] export default { @@ -274,6 +275,16 @@ }, onClose () { this.visible = false + }, + resendFunc (notifyId) { // 重发通知 + const that = this + + this.$infoBox.confirmPrimary('确认重发通知?', '', () => { + mchNotifyResend(notifyId).then(res => { + that.$message.success('任务更新成功,请稍后查看最新状态!') + that.searchFunc() + }) + }) } } }