卖价页展示驳回/撤回/执行失败徽章与操作入口,抽屉可重试业务执行。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
77642cdc94
commit
63d8d25f51
@ -216,12 +216,16 @@ export async function getSalesProductPublishSyncStatus(params: {
|
|||||||
onlineContentHash?: string | null
|
onlineContentHash?: string | null
|
||||||
approvalPending?: boolean
|
approvalPending?: boolean
|
||||||
ApprovalPending?: boolean
|
ApprovalPending?: boolean
|
||||||
|
approvalFailed?: boolean
|
||||||
|
ApprovalFailed?: boolean
|
||||||
approvalInstanceId?: number | null
|
approvalInstanceId?: number | null
|
||||||
ApprovalInstanceId?: number | null
|
ApprovalInstanceId?: number | null
|
||||||
approvalInstanceNo?: string | null
|
approvalInstanceNo?: string | null
|
||||||
ApprovalInstanceNo?: string | null
|
ApprovalInstanceNo?: string | null
|
||||||
approvalStatusName?: string | null
|
approvalStatusName?: string | null
|
||||||
ApprovalStatusName?: string | null
|
ApprovalStatusName?: string | null
|
||||||
|
approvalComment?: string | null
|
||||||
|
ApprovalComment?: string | null
|
||||||
}>(res.data)
|
}>(res.data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -290,6 +290,16 @@ export async function withdrawApproval(body: {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 终审后业务执行失败 / 历史空跑:重试 Handler(落发布、入账等) */
|
||||||
|
export async function retryApprovalExecute(id: number) {
|
||||||
|
try {
|
||||||
|
const res = await axiosInstance.post(omsUrl('/system/approval/engine/retry-execute'), { id })
|
||||||
|
assertBusinessOk(res.data)
|
||||||
|
} catch (e) {
|
||||||
|
throw new Error(extractOmsRequestError(e))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export async function simulateApprovalSubmit(body: {
|
export async function simulateApprovalSubmit(body: {
|
||||||
operationCode?: string
|
operationCode?: string
|
||||||
bizKey?: string
|
bizKey?: string
|
||||||
|
|||||||
@ -164,6 +164,15 @@
|
|||||||
<a-button v-if="detail?.canWithdraw" @click="doWithdraw">
|
<a-button v-if="detail?.canWithdraw" @click="doWithdraw">
|
||||||
{{ t('system.approval.inbox.withdraw') }}
|
{{ t('system.approval.inbox.withdraw') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
|
<a-button
|
||||||
|
v-if="canRetryExecute"
|
||||||
|
type="primary"
|
||||||
|
class="app-btn-primary-soft"
|
||||||
|
:loading="actionLoading"
|
||||||
|
@click="doRetryExecute"
|
||||||
|
>
|
||||||
|
{{ t('system.approval.inbox.retryExecute') }}
|
||||||
|
</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
v-if="detail?.canApprove && hasPermission('System.ApprovalTask.Approve')"
|
v-if="detail?.canApprove && hasPermission('System.ApprovalTask.Approve')"
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -215,6 +224,7 @@ import {
|
|||||||
approveApproval,
|
approveApproval,
|
||||||
getApprovalDetail,
|
getApprovalDetail,
|
||||||
rejectApproval,
|
rejectApproval,
|
||||||
|
retryApprovalExecute,
|
||||||
withdrawApproval,
|
withdrawApproval,
|
||||||
type ApprovalInstanceDto,
|
type ApprovalInstanceDto,
|
||||||
} from '@/api/system/approval'
|
} from '@/api/system/approval'
|
||||||
@ -242,6 +252,16 @@ const previewImageUrl = ref('')
|
|||||||
const PRICE_OP = 'Channel.SalesProduct.PublishPrice'
|
const PRICE_OP = 'Channel.SalesProduct.PublishPrice'
|
||||||
const RECHARGE_OP = 'Finance.Recharge.Credit'
|
const RECHARGE_OP = 'Finance.Recharge.Credit'
|
||||||
|
|
||||||
|
/** 6=Executed 7=ExecuteFailed:可重试 Handler 落业务 */
|
||||||
|
const canRetryExecute = computed(() => {
|
||||||
|
const status = detail.value?.status
|
||||||
|
if (status !== 6 && status !== 7) return false
|
||||||
|
return (
|
||||||
|
hasPermission('System.ApprovalTask.Approve') ||
|
||||||
|
hasPermission('System.ApprovalDefinition.Enable')
|
||||||
|
)
|
||||||
|
})
|
||||||
|
|
||||||
const showFooter = computed(
|
const showFooter = computed(
|
||||||
() =>
|
() =>
|
||||||
!!(
|
!!(
|
||||||
@ -249,7 +269,8 @@ const showFooter = computed(
|
|||||||
((detail.value.canApprove &&
|
((detail.value.canApprove &&
|
||||||
(hasPermission('System.ApprovalTask.Approve') ||
|
(hasPermission('System.ApprovalTask.Approve') ||
|
||||||
hasPermission('System.ApprovalTask.Reject'))) ||
|
hasPermission('System.ApprovalTask.Reject'))) ||
|
||||||
detail.value.canWithdraw)
|
detail.value.canWithdraw ||
|
||||||
|
canRetryExecute.value)
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -604,6 +625,29 @@ async function doApprove() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function doRetryExecute() {
|
||||||
|
const row = detail.value
|
||||||
|
if (!row?.id) return
|
||||||
|
Modal.warning({
|
||||||
|
title: t('system.approval.inbox.retryExecute'),
|
||||||
|
content: t('system.approval.inbox.retryExecuteConfirm', { no: row.instanceNo }),
|
||||||
|
hideCancel: false,
|
||||||
|
onOk: async () => {
|
||||||
|
actionLoading.value = true
|
||||||
|
try {
|
||||||
|
await retryApprovalExecute(row.id)
|
||||||
|
Message.success(t('common.success'))
|
||||||
|
emit('changed')
|
||||||
|
await loadDetail(row.id)
|
||||||
|
} catch (e: unknown) {
|
||||||
|
Message.error((e as Error)?.message || t('common.failed'))
|
||||||
|
} finally {
|
||||||
|
actionLoading.value = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
function openReject() {
|
function openReject() {
|
||||||
rejectComment.value = ''
|
rejectComment.value = ''
|
||||||
rejectVisible.value = true
|
rejectVisible.value = true
|
||||||
|
|||||||
@ -1501,6 +1501,9 @@ export default {
|
|||||||
'system.approval.inbox.approve': 'Approve',
|
'system.approval.inbox.approve': 'Approve',
|
||||||
'system.approval.inbox.reject': 'Reject',
|
'system.approval.inbox.reject': 'Reject',
|
||||||
'system.approval.inbox.withdraw': 'Withdraw',
|
'system.approval.inbox.withdraw': 'Withdraw',
|
||||||
|
'system.approval.inbox.retryExecute': 'Retry business execute',
|
||||||
|
'system.approval.inbox.retryExecuteConfirm':
|
||||||
|
'Retry execute for {no}? This re-runs the frozen payload (e.g. price publish).',
|
||||||
'system.approval.inbox.payload': 'Payload',
|
'system.approval.inbox.payload': 'Payload',
|
||||||
'system.approval.inbox.basicInfo': 'Basics',
|
'system.approval.inbox.basicInfo': 'Basics',
|
||||||
'system.approval.inbox.bizSummary': 'Business content',
|
'system.approval.inbox.bizSummary': 'Business content',
|
||||||
@ -5422,6 +5425,8 @@ export default {
|
|||||||
'channel.salesProducts.actions.publishRules': 'Publish rules',
|
'channel.salesProducts.actions.publishRules': 'Publish rules',
|
||||||
'channel.salesProducts.actions.publishPrice': 'Publish prices',
|
'channel.salesProducts.actions.publishPrice': 'Publish prices',
|
||||||
'channel.salesProducts.actions.viewPriceApproval': 'View approval',
|
'channel.salesProducts.actions.viewPriceApproval': 'View approval',
|
||||||
|
'channel.salesProducts.actions.resubmitPriceApproval': 'Resubmit approval',
|
||||||
|
'channel.salesProducts.actions.retryPriceApprovalExecute': 'Retry business execute',
|
||||||
'channel.salesProducts.actions.add': 'Add',
|
'channel.salesProducts.actions.add': 'Add',
|
||||||
'channel.salesProducts.actions.edit': 'Edit',
|
'channel.salesProducts.actions.edit': 'Edit',
|
||||||
'channel.salesProducts.actions.delete': 'Delete',
|
'channel.salesProducts.actions.delete': 'Delete',
|
||||||
@ -5516,6 +5521,7 @@ export default {
|
|||||||
'channel.salesProducts.publish.legend.same': 'Unchanged',
|
'channel.salesProducts.publish.legend.same': 'Unchanged',
|
||||||
'channel.salesProducts.publish.badge.pending': 'Pending publish',
|
'channel.salesProducts.publish.badge.pending': 'Pending publish',
|
||||||
'channel.salesProducts.publish.badge.pendingApproval': 'Pending approval',
|
'channel.salesProducts.publish.badge.pendingApproval': 'Pending approval',
|
||||||
|
'channel.salesProducts.publish.badge.failed': 'Approval failed',
|
||||||
'channel.salesProducts.publish.badge.synced': 'Published',
|
'channel.salesProducts.publish.badge.synced': 'Published',
|
||||||
'channel.salesProducts.publish.badge.checking': 'Checking…',
|
'channel.salesProducts.publish.badge.checking': 'Checking…',
|
||||||
'channel.salesProducts.publish.approvalNo': 'Approval No. {no}',
|
'channel.salesProducts.publish.approvalNo': 'Approval No. {no}',
|
||||||
|
|||||||
@ -1492,6 +1492,8 @@ export default {
|
|||||||
'system.approval.inbox.approve': '通过',
|
'system.approval.inbox.approve': '通过',
|
||||||
'system.approval.inbox.reject': '驳回',
|
'system.approval.inbox.reject': '驳回',
|
||||||
'system.approval.inbox.withdraw': '撤回',
|
'system.approval.inbox.withdraw': '撤回',
|
||||||
|
'system.approval.inbox.retryExecute': '重试业务执行',
|
||||||
|
'system.approval.inbox.retryExecuteConfirm': '确认重试执行审批单 {no}?将按冻结载荷重新落业务(如价格发布)。',
|
||||||
'system.approval.inbox.payload': '业务载荷',
|
'system.approval.inbox.payload': '业务载荷',
|
||||||
'system.approval.inbox.basicInfo': '基本信息',
|
'system.approval.inbox.basicInfo': '基本信息',
|
||||||
'system.approval.inbox.bizSummary': '业务内容',
|
'system.approval.inbox.bizSummary': '业务内容',
|
||||||
@ -5445,6 +5447,8 @@ export default {
|
|||||||
'channel.salesProducts.actions.publishRules': '发布规则',
|
'channel.salesProducts.actions.publishRules': '发布规则',
|
||||||
'channel.salesProducts.actions.publishPrice': '价格发布',
|
'channel.salesProducts.actions.publishPrice': '价格发布',
|
||||||
'channel.salesProducts.actions.viewPriceApproval': '查看审批',
|
'channel.salesProducts.actions.viewPriceApproval': '查看审批',
|
||||||
|
'channel.salesProducts.actions.resubmitPriceApproval': '重新提交审批',
|
||||||
|
'channel.salesProducts.actions.retryPriceApprovalExecute': '重试业务执行',
|
||||||
'channel.salesProducts.actions.add': '新增',
|
'channel.salesProducts.actions.add': '新增',
|
||||||
'channel.salesProducts.actions.edit': '编辑',
|
'channel.salesProducts.actions.edit': '编辑',
|
||||||
'channel.salesProducts.actions.delete': '删除',
|
'channel.salesProducts.actions.delete': '删除',
|
||||||
@ -5539,6 +5543,7 @@ export default {
|
|||||||
'channel.salesProducts.publish.legend.same': '不变',
|
'channel.salesProducts.publish.legend.same': '不变',
|
||||||
'channel.salesProducts.publish.badge.pending': '待发布',
|
'channel.salesProducts.publish.badge.pending': '待发布',
|
||||||
'channel.salesProducts.publish.badge.pendingApproval': '待审批',
|
'channel.salesProducts.publish.badge.pendingApproval': '待审批',
|
||||||
|
'channel.salesProducts.publish.badge.failed': '审批失败',
|
||||||
'channel.salesProducts.publish.badge.synced': '已发布',
|
'channel.salesProducts.publish.badge.synced': '已发布',
|
||||||
'channel.salesProducts.publish.badge.checking': '检测中…',
|
'channel.salesProducts.publish.badge.checking': '检测中…',
|
||||||
'channel.salesProducts.publish.approvalNo': '审批号 {no}',
|
'channel.salesProducts.publish.approvalNo': '审批号 {no}',
|
||||||
|
|||||||
@ -53,6 +53,7 @@
|
|||||||
import type { PricePublishAiAdoptPayload } from './components/PricePublishAiAssistDrawer.vue';
|
import type { PricePublishAiAdoptPayload } from './components/PricePublishAiAssistDrawer.vue';
|
||||||
import BillingSimulateDrawer from './components/BillingSimulateDrawer.vue';
|
import BillingSimulateDrawer from './components/BillingSimulateDrawer.vue';
|
||||||
import ApprovalDetailDrawer from '@/components/ApprovalDetailDrawer/index.vue';
|
import ApprovalDetailDrawer from '@/components/ApprovalDetailDrawer/index.vue';
|
||||||
|
import { retryApprovalExecute } from '@/api/system/approval';
|
||||||
import { buildPricePublishAiSkipReport, type PricePublishRiskLevel } from './pricePublishAiSkill';
|
import { buildPricePublishAiSkipReport, type PricePublishRiskLevel } from './pricePublishAiSkill';
|
||||||
import { pickResolvedAudit } from '@/utils/auditFields';
|
import { pickResolvedAudit } from '@/utils/auditFields';
|
||||||
import { useUserStore } from '@/store';
|
import { useUserStore } from '@/store';
|
||||||
@ -1453,15 +1454,23 @@
|
|||||||
return detail?.content ?? detail?.Content ?? null;
|
return detail?.content ?? detail?.Content ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 同步态:待发布 / 待审批(+审批号) / 已发布 */
|
/** 同步态:待发布 / 待审批 / 失败可重提 / 已发布 */
|
||||||
|
function clearPriceApprovalSyncState() {
|
||||||
|
priceApprovalPending.value = false;
|
||||||
|
priceApprovalFailed.value = false;
|
||||||
|
priceApprovalExecuteFailed.value = false;
|
||||||
|
priceApprovalInstanceId.value = null;
|
||||||
|
priceApprovalInstanceNo.value = '';
|
||||||
|
priceApprovalStatusName.value = '';
|
||||||
|
priceApprovalComment.value = '';
|
||||||
|
}
|
||||||
|
|
||||||
async function refreshPricePublishSyncStatus(productId?: number) {
|
async function refreshPricePublishSyncStatus(productId?: number) {
|
||||||
const pid = productId ?? selectedProduct.value;
|
const pid = productId ?? selectedProduct.value;
|
||||||
if (pid == null) {
|
if (pid == null) {
|
||||||
pricePublishChecking.value = false;
|
pricePublishChecking.value = false;
|
||||||
pricePublishPending.value = null;
|
pricePublishPending.value = null;
|
||||||
priceApprovalPending.value = false;
|
clearPriceApprovalSyncState();
|
||||||
priceApprovalInstanceId.value = null;
|
|
||||||
priceApprovalInstanceNo.value = '';
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const seq = priceTabLoadSeq;
|
const seq = priceTabLoadSeq;
|
||||||
@ -1477,7 +1486,17 @@
|
|||||||
const approvalPending = Boolean(
|
const approvalPending = Boolean(
|
||||||
status?.approvalPending ?? status?.ApprovalPending,
|
status?.approvalPending ?? status?.ApprovalPending,
|
||||||
);
|
);
|
||||||
|
const approvalFailed = Boolean(
|
||||||
|
status?.approvalFailed ?? status?.ApprovalFailed,
|
||||||
|
);
|
||||||
priceApprovalPending.value = approvalPending;
|
priceApprovalPending.value = approvalPending;
|
||||||
|
priceApprovalFailed.value = approvalFailed && !approvalPending;
|
||||||
|
const statusName = String(
|
||||||
|
status?.approvalStatusName ?? status?.ApprovalStatusName ?? '',
|
||||||
|
).trim();
|
||||||
|
priceApprovalStatusName.value = statusName;
|
||||||
|
priceApprovalExecuteFailed.value =
|
||||||
|
priceApprovalFailed.value && statusName === '执行失败';
|
||||||
const instanceId =
|
const instanceId =
|
||||||
status?.approvalInstanceId ?? status?.ApprovalInstanceId ?? null;
|
status?.approvalInstanceId ?? status?.ApprovalInstanceId ?? null;
|
||||||
priceApprovalInstanceId.value =
|
priceApprovalInstanceId.value =
|
||||||
@ -1485,12 +1504,13 @@
|
|||||||
priceApprovalInstanceNo.value = String(
|
priceApprovalInstanceNo.value = String(
|
||||||
status?.approvalInstanceNo ?? status?.ApprovalInstanceNo ?? '',
|
status?.approvalInstanceNo ?? status?.ApprovalInstanceNo ?? '',
|
||||||
).trim();
|
).trim();
|
||||||
|
priceApprovalComment.value = String(
|
||||||
|
status?.approvalComment ?? status?.ApprovalComment ?? '',
|
||||||
|
).trim();
|
||||||
} catch {
|
} catch {
|
||||||
if (seq === priceTabLoadSeq) {
|
if (seq === priceTabLoadSeq) {
|
||||||
pricePublishPending.value = null;
|
pricePublishPending.value = null;
|
||||||
priceApprovalPending.value = false;
|
clearPriceApprovalSyncState();
|
||||||
priceApprovalInstanceId.value = null;
|
|
||||||
priceApprovalInstanceNo.value = '';
|
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (seq === priceTabLoadSeq) pricePublishChecking.value = false;
|
if (seq === priceTabLoadSeq) pricePublishChecking.value = false;
|
||||||
@ -1498,6 +1518,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const priceApprovalDrawerVisible = ref(false);
|
const priceApprovalDrawerVisible = ref(false);
|
||||||
|
const priceApprovalRetryLoading = ref(false);
|
||||||
|
|
||||||
function openPriceApprovalDrawer() {
|
function openPriceApprovalDrawer() {
|
||||||
if (!priceApprovalInstanceId.value) {
|
if (!priceApprovalInstanceId.value) {
|
||||||
@ -1507,11 +1528,35 @@
|
|||||||
priceApprovalDrawerVisible.value = true;
|
priceApprovalDrawerVisible.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function retryPriceApprovalExecute() {
|
||||||
|
const id = priceApprovalInstanceId.value;
|
||||||
|
if (!id) {
|
||||||
|
Message.warning(t('channel.salesProducts.publish.approvalDetailMissing'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
priceApprovalRetryLoading.value = true;
|
||||||
|
try {
|
||||||
|
await retryApprovalExecute(id);
|
||||||
|
Message.success(t('common.success'));
|
||||||
|
const pid = selectedProduct.value;
|
||||||
|
if (pid != null) {
|
||||||
|
await refreshPricePublishSyncStatus(pid);
|
||||||
|
await loadPriceTabData(pid, { force: true });
|
||||||
|
await loadRecordsTabData(pid, true);
|
||||||
|
}
|
||||||
|
} catch (e: unknown) {
|
||||||
|
Message.error((e as Error)?.message || t('common.failed'));
|
||||||
|
} finally {
|
||||||
|
priceApprovalRetryLoading.value = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async function onPriceApprovalChanged() {
|
async function onPriceApprovalChanged() {
|
||||||
const pid = selectedProduct.value;
|
const pid = selectedProduct.value;
|
||||||
if (pid == null) return;
|
if (pid == null) return;
|
||||||
await refreshPricePublishSyncStatus(pid);
|
await refreshPricePublishSyncStatus(pid);
|
||||||
await loadPriceTabData(pid, { force: true });
|
await loadPriceTabData(pid, { force: true });
|
||||||
|
await loadRecordsTabData(pid, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
let recordsTabLoadedProductId: number | null = null;
|
let recordsTabLoadedProductId: number | null = null;
|
||||||
@ -1672,18 +1717,14 @@
|
|||||||
priceTabLoadedProductId = null;
|
priceTabLoadedProductId = null;
|
||||||
pricePublishPending.value = null;
|
pricePublishPending.value = null;
|
||||||
pricePublishChecking.value = false;
|
pricePublishChecking.value = false;
|
||||||
priceApprovalPending.value = false;
|
clearPriceApprovalSyncState();
|
||||||
priceApprovalInstanceId.value = null;
|
|
||||||
priceApprovalInstanceNo.value = '';
|
|
||||||
effectiveVersion.value = '--';
|
effectiveVersion.value = '--';
|
||||||
effectiveTime.value = '--';
|
effectiveTime.value = '--';
|
||||||
} else if (activeTab.value === 'price') {
|
} else if (activeTab.value === 'price') {
|
||||||
// 切到卖价 tab / 换产品:先清空徽章,等 sync-status 回来再显示
|
// 切到卖价 tab / 换产品:先清空徽章,等 sync-status 回来再显示
|
||||||
pricePublishPending.value = null;
|
pricePublishPending.value = null;
|
||||||
pricePublishChecking.value = false;
|
pricePublishChecking.value = false;
|
||||||
priceApprovalPending.value = false;
|
clearPriceApprovalSyncState();
|
||||||
priceApprovalInstanceId.value = null;
|
|
||||||
priceApprovalInstanceNo.value = '';
|
|
||||||
}
|
}
|
||||||
if (productChanged && activeTab.value !== 'rules') {
|
if (productChanged && activeTab.value !== 'rules') {
|
||||||
rulesTabLoadedProductId = null;
|
rulesTabLoadedProductId = null;
|
||||||
@ -1951,8 +1992,18 @@
|
|||||||
const pricePublishPending = ref<boolean | null>(null);
|
const pricePublishPending = ref<boolean | null>(null);
|
||||||
const pricePublishChecking = ref(false);
|
const pricePublishChecking = ref(false);
|
||||||
const priceApprovalPending = ref(false);
|
const priceApprovalPending = ref(false);
|
||||||
|
const priceApprovalFailed = ref(false);
|
||||||
|
const priceApprovalExecuteFailed = ref(false);
|
||||||
const priceApprovalInstanceId = ref<number | null>(null);
|
const priceApprovalInstanceId = ref<number | null>(null);
|
||||||
const priceApprovalInstanceNo = ref('');
|
const priceApprovalInstanceNo = ref('');
|
||||||
|
const priceApprovalStatusName = ref('');
|
||||||
|
const priceApprovalComment = ref('');
|
||||||
|
const priceApprovalFailedBadgeText = computed(() => {
|
||||||
|
const name = priceApprovalStatusName.value || t('channel.salesProducts.publish.badge.failed');
|
||||||
|
return priceApprovalInstanceNo.value
|
||||||
|
? `${name} · ${priceApprovalInstanceNo.value}`
|
||||||
|
: name;
|
||||||
|
});
|
||||||
|
|
||||||
const publishDiffStatus = computed(() => {
|
const publishDiffStatus = computed(() => {
|
||||||
if (!publishHasOnlineSnapshot.value) return 'first';
|
if (!publishHasOnlineSnapshot.value) return 'first';
|
||||||
@ -4581,14 +4632,44 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-else-if="selectedProduct != null && activeTab === 'price'" class="tabs-toolbar">
|
<div v-else-if="selectedProduct != null && activeTab === 'price'" class="tabs-toolbar">
|
||||||
<a-space :size="8">
|
<a-space :size="8">
|
||||||
<a-button
|
<template v-if="priceApprovalPending">
|
||||||
v-if="priceApprovalPending"
|
<a-button type="primary" size="small" @click="openPriceApprovalDrawer">
|
||||||
type="primary"
|
{{ t('channel.salesProducts.actions.viewPriceApproval') }}
|
||||||
size="small"
|
</a-button>
|
||||||
@click="openPriceApprovalDrawer"
|
</template>
|
||||||
>
|
<template v-else-if="priceApprovalExecuteFailed">
|
||||||
{{ t('channel.salesProducts.actions.viewPriceApproval') }}
|
<a-button
|
||||||
</a-button>
|
type="primary"
|
||||||
|
size="small"
|
||||||
|
:loading="priceApprovalRetryLoading"
|
||||||
|
@click="retryPriceApprovalExecute"
|
||||||
|
>
|
||||||
|
{{ t('channel.salesProducts.actions.retryPriceApprovalExecute') }}
|
||||||
|
</a-button>
|
||||||
|
<a-button size="small" @click="openPriceApprovalDrawer">
|
||||||
|
{{ t('channel.salesProducts.actions.viewPriceApproval') }}
|
||||||
|
</a-button>
|
||||||
|
<a-button
|
||||||
|
size="small"
|
||||||
|
:loading="publishModalLoading"
|
||||||
|
@click="handlePublishPrice"
|
||||||
|
>
|
||||||
|
{{ t('channel.salesProducts.actions.resubmitPriceApproval') }}
|
||||||
|
</a-button>
|
||||||
|
</template>
|
||||||
|
<template v-else-if="priceApprovalFailed">
|
||||||
|
<a-button
|
||||||
|
type="primary"
|
||||||
|
size="small"
|
||||||
|
:loading="publishModalLoading"
|
||||||
|
@click="handlePublishPrice"
|
||||||
|
>
|
||||||
|
{{ t('channel.salesProducts.actions.resubmitPriceApproval') }}
|
||||||
|
</a-button>
|
||||||
|
<a-button size="small" @click="openPriceApprovalDrawer">
|
||||||
|
{{ t('channel.salesProducts.actions.viewPriceApproval') }}
|
||||||
|
</a-button>
|
||||||
|
</template>
|
||||||
<a-button
|
<a-button
|
||||||
v-else
|
v-else
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -4663,7 +4744,7 @@
|
|||||||
{{ t('channel.salesProducts.price.effectiveVersion', { version: effectiveVersion }) }}
|
{{ t('channel.salesProducts.price.effectiveVersion', { version: effectiveVersion }) }}
|
||||||
<span style="margin-left: 16px; color: var(--color-text-3);">生效时间:{{ effectiveTime }}</span>
|
<span style="margin-left: 16px; color: var(--color-text-3);">生效时间:{{ effectiveTime }}</span>
|
||||||
<a-tag
|
<a-tag
|
||||||
v-if="pricePublishChecking && pricePublishPending == null && !priceApprovalPending"
|
v-if="pricePublishChecking && pricePublishPending == null && !priceApprovalPending && !priceApprovalFailed"
|
||||||
color="gray"
|
color="gray"
|
||||||
size="small"
|
size="small"
|
||||||
class="price-sync-tag"
|
class="price-sync-tag"
|
||||||
@ -4682,6 +4763,16 @@
|
|||||||
· {{ priceApprovalInstanceNo }}
|
· {{ priceApprovalInstanceNo }}
|
||||||
</template>
|
</template>
|
||||||
</a-tag>
|
</a-tag>
|
||||||
|
<a-tag
|
||||||
|
v-else-if="priceApprovalFailed"
|
||||||
|
color="red"
|
||||||
|
size="small"
|
||||||
|
class="price-sync-tag price-approval-tag"
|
||||||
|
:title="priceApprovalComment || undefined"
|
||||||
|
@click="openPriceApprovalDrawer"
|
||||||
|
>
|
||||||
|
{{ priceApprovalFailedBadgeText }}
|
||||||
|
</a-tag>
|
||||||
<a-tag
|
<a-tag
|
||||||
v-else-if="pricePublishPending === true"
|
v-else-if="pricePublishPending === true"
|
||||||
color="orangered"
|
color="orangered"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user