|
@@ -786,6 +786,30 @@ export function useOrder(tableRef: Ref) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ async function quickRepairPayScore(row: OrderItem) {
|
|
|
|
|
+ const amount = row.paidAmount || row.totalAmount || 0;
|
|
|
|
|
+ try {
|
|
|
|
|
+ await ElMessageBox.confirm(
|
|
|
|
|
+ `确认对订单 ${row.orderNo} 发起支付分补扣?扣款金额: ¥${amount}`,
|
|
|
|
|
+ "支付分补扣",
|
|
|
|
|
+ { confirmButtonText: "确认", cancelButtonText: "取消", type: "warning" }
|
|
|
|
|
+ );
|
|
|
|
|
+ } catch {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ try {
|
|
|
|
|
+ const res = await repairPayScorePayment(String(row.id), undefined);
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
|
+ message(res.message || "补扣成功", { type: "success" });
|
|
|
|
|
+ onSearch();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ message(res.message || "补扣失败", { type: "error" });
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch {
|
|
|
|
|
+ message("补扣请求失败", { type: "error" });
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
onSearch();
|
|
onSearch();
|
|
|
});
|
|
});
|
|
@@ -801,6 +825,7 @@ export function useOrder(tableRef: Ref) {
|
|
|
handleDetail,
|
|
handleDetail,
|
|
|
handleRefund,
|
|
handleRefund,
|
|
|
handleRepairPayScore,
|
|
handleRepairPayScore,
|
|
|
|
|
+ quickRepairPayScore,
|
|
|
handlePayScoreCancel,
|
|
handlePayScoreCancel,
|
|
|
handleQueryFromHaha,
|
|
handleQueryFromHaha,
|
|
|
handleSizeChange,
|
|
handleSizeChange,
|