feat(cost-center): 同步工单补同步待完善价格,跳过改过用户付款金额的工单
This commit is contained in:
@@ -412,10 +412,13 @@ export function ProductCatalogPanel() {
|
||||
: isAff
|
||||
? '历史自动发货成本快照与销售事实'
|
||||
: '下游关联业务'
|
||||
const pendingDesc = isTpl ? ',以及 2026-11-01 之后创建的待完善工单' : ''
|
||||
const skipHint = isTpl ? '改过用户付款金额的待完善工单会跳过;' : ''
|
||||
|
||||
modal.confirm({
|
||||
title: '同步标准价格',
|
||||
content: `确认将「${item.canonicalName}」的 ${currentPriceText} 同步至${targetDesc}?同步后将以新价格进行履约与结算。`,
|
||||
width: 560,
|
||||
content: `确认将「${item.canonicalName}」的 ${currentPriceText} 同步至${targetDesc}${pendingDesc}?${skipHint}同步后将以新价格进行履约与结算。`,
|
||||
okText: '确认同步',
|
||||
cancelText: '取消',
|
||||
onOk: async () => {
|
||||
@@ -683,7 +686,7 @@ export function ProductCatalogPanel() {
|
||||
size="small"
|
||||
icon={<SyncOutlined spin={syncingProductId === row.id} />}
|
||||
style={{ paddingInline: 4, color: '#1677ff' }}
|
||||
title="同步此模板在接单大厅的待抢单工单价格"
|
||||
title="同步此模板的待抢单工单,以及 2026-11-01 后创建且未改过用户付款金额的待完善工单价格"
|
||||
loading={syncingProductId === row.id}
|
||||
onClick={() => handleSyncProductPrice(row)}
|
||||
>
|
||||
|
||||
@@ -525,6 +525,12 @@ export function syncAdminProductPrice(productId: number) {
|
||||
updatedCount: number
|
||||
updatedNormalCount: number
|
||||
updatedPartialSharingCount: number
|
||||
pendingMaterialCandidateCount?: number
|
||||
pendingMaterialPaymentAmountAdjustedCount?: number
|
||||
pendingMaterialUpdatedCount?: number
|
||||
pendingMaterialUnchangedCount?: number
|
||||
pendingMaterialSkippedCount?: number
|
||||
pendingMaterialCreatedAfter?: string
|
||||
}
|
||||
message: string
|
||||
}>(`/api/v1/admin/cost-center/products/${productId}/sync-price`, {})
|
||||
|
||||
Reference in New Issue
Block a user