remove customer package
This commit is contained in:
@@ -57,6 +57,13 @@
|
||||
<t-cell-group title="库存流水" theme="card" v-entrance-transition="70">
|
||||
<t-cell title="操作类型" :note="getStockOperationText(record.operationType)" />
|
||||
<t-cell title="业务类型" :note="getBizTypeText(record.bizType)" />
|
||||
<t-cell
|
||||
v-if="relatedFulfillmentId && canReadFulfillment"
|
||||
title="关联履约单"
|
||||
note="查看履约详情"
|
||||
arrow
|
||||
@click="toFulfillment"
|
||||
/>
|
||||
<t-cell title="发生时间">
|
||||
<template #note>
|
||||
<pass-time-label :timestamp="record.occurredAt" underline />
|
||||
@@ -66,7 +73,7 @@
|
||||
<t-cell v-if="record.sourceRecordId" title="原库存流水" :note="record.sourceRecordId" arrow @click="openRelatedRecord(record.sourceRecordId)" />
|
||||
<t-cell v-if="record.revokeRecordId" title="冲正流水" :note="record.revokeRecordId" arrow @click="openRelatedRecord(record.revokeRecordId)" />
|
||||
<t-cell v-if="record.remark" title="备注" :note="record.remark" />
|
||||
<t-cell>
|
||||
<t-cell class="empty-cell-title-margin">
|
||||
<template #title>
|
||||
<span></span>
|
||||
</template>
|
||||
@@ -159,6 +166,8 @@ const canManualRevoke = computed(() => {
|
||||
&& !record.value?.revokeRecordId
|
||||
&& userStore.hasPermissions(permissionCodes.productStock.manualRevoke);
|
||||
});
|
||||
const canReadFulfillment = computed(() => userStore.hasPermissions(permissionCodes.orderFulfillment.read));
|
||||
const relatedFulfillmentId = computed(() => record.value?.bizType === "ORDER_FULFILLMENT" ? record.value.bizId : "");
|
||||
const photoItemList = computed<PhotoItem[]>(() => (record.value?.attachmentList || [])
|
||||
.filter(item => !!item.id)
|
||||
.map(item => ({
|
||||
@@ -221,6 +230,16 @@ async function openRelatedRecord(id?: string): Promise<void> {
|
||||
}
|
||||
}
|
||||
|
||||
async function toFulfillment(): Promise<void> {
|
||||
if (!relatedFulfillmentId.value || !canReadFulfillment.value) {
|
||||
return;
|
||||
}
|
||||
await router.push({
|
||||
path: `/management/order-fulfillments/${relatedFulfillmentId.value}`,
|
||||
query: { transitionDepth: String(getCurrentRouteDepth() + 1) }
|
||||
});
|
||||
}
|
||||
|
||||
function getCurrentRouteDepth(): number {
|
||||
const transitionDepth = Array.isArray(route.query.transitionDepth)
|
||||
? route.query.transitionDepth[0]
|
||||
|
||||
Reference in New Issue
Block a user