优化操作区域-2

This commit is contained in:
yml2213
2026-07-23 11:52:00 +08:00
parent 66ef033b47
commit 06decc51ff
2 changed files with 23 additions and 6 deletions
@@ -693,16 +693,20 @@ export default function AdminKuaishouIndustryPage() {
}
function buildVoucherToolPayload(): AdminKuaishouIndustryVoucherToolPayload {
const voucherCode = String(selectedVoucher?.voucherCode || toolForm.voucherCode || '').trim()
const oid = String(selectedVoucher?.oid || toolForm.oid || toolForm.orderId || '').trim()
const voucherCode = String(
selectedVoucher ? selectedVoucher.voucherCode : toolForm.voucherCode || '',
).trim()
const oid = String(
selectedVoucher ? selectedVoucher.oid : toolForm.oid || toolForm.orderId || '',
).trim()
return {
...toolForm,
sellerId: selectedVoucher?.sellerId || toolForm.sellerId,
sellerId: selectedVoucher ? selectedVoucher.sellerId : toolForm.sellerId,
oid,
orderId: oid,
taskId: selectedVoucher?.taskId || toolForm.taskId,
taskId: selectedVoucher ? selectedVoucher.taskId || '' : toolForm.taskId,
voucherCode,
eticketType: selectedVoucher?.eticketType || toolForm.eticketType,
eticketType: selectedVoucher ? selectedVoucher.eticketType || '' : toolForm.eticketType,
serialNum: toolForm.serialNum || selectedVoucher?.consumeSerialNum,
etickets: voucherCode ? [{ id: voucherCode, code: voucherCode, num: 1 }] : undefined,
}
@@ -1146,7 +1150,7 @@ export default function AdminKuaishouIndustryPage() {
</Button>
<Popconfirm
title="确认销毁该券码?"
description="将向快手发起销毁回调,并关闭关联任务。已销毁券会重试回调。"
description="将先检查快手卡券状态,仅 frozen 状态会发起销毁并关闭关联任务。"
okText="销毁"
cancelText="取消"
disabled={!canManageRefund || !hasVoucherTarget}
+13
View File
@@ -1580,6 +1580,19 @@ select {
}
}
@media (max-width: 520px) {
.kuaishou-industry-selected-meta,
.kuaishou-industry-tool-grid,
.kuaishou-industry-actions {
grid-template-columns: 1fr;
}
.kuaishou-industry-tool-field-wide,
.kuaishou-industry-actions > :last-child {
grid-column: auto;
}
}
@media (max-width: 420px) {
.claim-header-copy {
padding-right: 124px;