|
|
@@ -712,10 +712,10 @@ export function useOrder(tableRef: Ref) {
|
|
|
}
|
|
|
|
|
|
async function handleRepairPayScore() {
|
|
|
- const repairForm = reactive({ orderId: "", outOrderNo: "" });
|
|
|
+ const repairForm = reactive({ orderId: "", outOrderNo: "", showAdvanced: false });
|
|
|
|
|
|
addDialog({
|
|
|
- title: "修复支付分扣费",
|
|
|
+ title: "支付分补扣",
|
|
|
width: "460px",
|
|
|
draggable: true,
|
|
|
closeOnClickModal: false,
|
|
|
@@ -727,15 +727,18 @@ export function useOrder(tableRef: Ref) {
|
|
|
</div>
|
|
|
<ElInput v-model={repairForm.orderId} placeholder="如 202607081727441260270668" />
|
|
|
</div>
|
|
|
- <div>
|
|
|
- <div style="margin-bottom: 4px; font-size: 13px; color: var(--el-text-color-regular);">
|
|
|
- outOrderNo(选填)
|
|
|
- </div>
|
|
|
- <ElInput v-model={repairForm.outOrderNo} placeholder="如 PS1782351340B150534,本地丢失时从微信商户后台获取" />
|
|
|
- <div style="margin-top: 4px; font-size: 12px; color: #909399;">
|
|
|
- 仅在本地 payScoreOrderId 丢失时填写,从微信商户后台「支付分订单」中查找
|
|
|
- </div>
|
|
|
+ <div style="margin-bottom: 8px; font-size: 12px; color: #67c23a;">
|
|
|
+ 商户单号(PS开头)系统会自动查找,一般无需手动填写
|
|
|
</div>
|
|
|
+ <div style="cursor: pointer; font-size: 13px; color: var(--el-color-primary); user-select: none;"
|
|
|
+ onClick={() => { repairForm.showAdvanced = !repairForm.showAdvanced; }}>
|
|
|
+ {repairForm.showAdvanced ? '▾ 收起' : '▸ 高级:手动指定商户单号'}
|
|
|
+ </div>
|
|
|
+ {repairForm.showAdvanced && (
|
|
|
+ <div style="margin-top: 8px;">
|
|
|
+ <ElInput v-model={repairForm.outOrderNo} placeholder="如 PS1782351340B150534,从微信商户后台查找" />
|
|
|
+ </div>
|
|
|
+ )}
|
|
|
</div>
|
|
|
),
|
|
|
beforeSure: async (done) => {
|
|
|
@@ -748,14 +751,14 @@ export function useOrder(tableRef: Ref) {
|
|
|
try {
|
|
|
const res = await repairPayScorePayment(orderId, outOrderNo);
|
|
|
if (res.code === 200) {
|
|
|
- message(res.message || "修复完成", { type: "success" });
|
|
|
+ message(res.message || "补扣成功", { type: "success" });
|
|
|
onSearch();
|
|
|
} else {
|
|
|
- message(res.message || "修复失败", { type: "error" });
|
|
|
+ message(res.message || "补扣失败", { type: "error" });
|
|
|
}
|
|
|
done();
|
|
|
} catch {
|
|
|
- message("修复请求失败", { type: "error" });
|
|
|
+ message("补扣请求失败", { type: "error" });
|
|
|
}
|
|
|
}
|
|
|
});
|