|
@@ -194,11 +194,12 @@ const Table = useTable({
|
|
|
{ prop: "outOrderNo", label: "商户订单号", showOverflowTooltip: true, width: 120 },
|
|
|
{ prop: "traceNo", label: "交易号", showOverflowTooltip: true, width: 120 },
|
|
|
{ prop: "remark", label: "备注", showOverflowTooltip: true, width: 120 },
|
|
|
+ { prop: "notifyUrl", label: "异步回调", showOverflowTooltip: true, width: 120 },
|
|
|
{
|
|
|
type: "op",
|
|
|
width: 120,
|
|
|
buttons({ scope }) {
|
|
|
- return [
|
|
|
+ const btns = [
|
|
|
{
|
|
|
label: "API查单",
|
|
|
type: "primary",
|
|
@@ -219,7 +220,27 @@ const Table = useTable({
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- ];
|
|
|
+ ]
|
|
|
+ if ((+scope.row.status === 1 || +scope.row.status === 2) && scope.row.notifyUrl) {
|
|
|
+ if (checkPerm(service.dj.order.permission.notify)) {
|
|
|
+ btns.push({
|
|
|
+ label: "补发通知",
|
|
|
+ type: "success",
|
|
|
+ async onClick({ scope }: any) {
|
|
|
+ const { status, msg = "" } = await service.dj.refund.notify({
|
|
|
+ id: scope.row.id
|
|
|
+ });
|
|
|
+ if (+status === 1) {
|
|
|
+ ElMessage.success("补发通知成功!");
|
|
|
+ Crud.value?.refresh();
|
|
|
+ } else {
|
|
|
+ ElMessage.error("通知失败,失败原因:" + JSON.stringify(msg));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return btns;
|
|
|
}
|
|
|
}
|
|
|
]
|