pass-time-label to time-label
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
<span class="title" v-text="getConversationName(item)" />
|
<span class="title" v-text="getConversationName(item)" />
|
||||||
</template>
|
</template>
|
||||||
<template #description>
|
<template #description>
|
||||||
<pass-time-label :timestamp="formatConversationTime(item)" underline />
|
<time-label :timestamp="formatConversationTime(item)" underline />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
<template #right>
|
<template #right>
|
||||||
@@ -83,7 +83,7 @@ import { DialogPlugin } from "tdesign-mobile-vue";
|
|||||||
import { deleteConversation as removeConversation, type GaoAiConversation, listConversations } from "@/api/GaoAiAPI";
|
import { deleteConversation as removeConversation, type GaoAiConversation, listConversations } from "@/api/GaoAiAPI";
|
||||||
import { getErrorMessage } from "@/utils/error";
|
import { getErrorMessage } from "@/utils/error";
|
||||||
import { Message } from "@/utils/message";
|
import { Message } from "@/utils/message";
|
||||||
import { PassTimeLabel } from "timi-web";
|
import { TimeLabel } from "timi-web";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "AiConversationList"
|
name: "AiConversationList"
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
<t-cell title="录入用户" :note="Text.display(customer.creatorUser?.nick || customer.creatorUser?.name)" />
|
<t-cell title="录入用户" :note="Text.display(customer.creatorUser?.nick || customer.creatorUser?.name)" />
|
||||||
<t-cell title="录入时间">
|
<t-cell title="录入时间">
|
||||||
<template #note>
|
<template #note>
|
||||||
<pass-time-label :timestamp="customer.createdAt" underline />
|
<time-label :timestamp="customer.createdAt" underline />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
</t-cell-group>
|
</t-cell-group>
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { BottomPopup } from "timi-tdesign-mobile";
|
import { BottomPopup } from "timi-tdesign-mobile";
|
||||||
import { Message } from "@/utils/message";
|
import { Message } from "@/utils/message";
|
||||||
import { PassTimeLabel, Text } from "timi-web";
|
import { TimeLabel, Text } from "timi-web";
|
||||||
import { useUserStore, type Attachment } from "timi-web-api";
|
import { useUserStore, type Attachment } from "timi-web-api";
|
||||||
import CustomerAPI from "@/api/CustomerAPI";
|
import CustomerAPI from "@/api/CustomerAPI";
|
||||||
import PointAPI from "@/api/PointAPI";
|
import PointAPI from "@/api/PointAPI";
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
<t-cell v-if="record.earnedPointValue !== undefined && record.earnedPointValue !== null" title="本次积分变化" :note="getPointValueText(record.earnedPointValue, pointLedgerChangeType)" />
|
<t-cell v-if="record.earnedPointValue !== undefined && record.earnedPointValue !== null" title="本次积分变化" :note="getPointValueText(record.earnedPointValue, pointLedgerChangeType)" />
|
||||||
<t-cell title="登记时间">
|
<t-cell title="登记时间">
|
||||||
<template #note>
|
<template #note>
|
||||||
<pass-time-label :timestamp="record.registeredAt" underline />
|
<time-label :timestamp="record.registeredAt" underline />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
<t-cell title="登记人" :note="Text.display(record.operator?.nick || record.operator?.name)" />
|
<t-cell title="登记人" :note="Text.display(record.operator?.nick || record.operator?.name)" />
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
<t-cell v-if="record.verificationStatus === 'VERIFIED'" title="核销人" :note="Text.display(record.verifier?.nick || record.verifier?.name)" />
|
<t-cell v-if="record.verificationStatus === 'VERIFIED'" title="核销人" :note="Text.display(record.verifier?.nick || record.verifier?.name)" />
|
||||||
<t-cell v-if="record.verificationStatus === 'VERIFIED'" title="核销时间">
|
<t-cell v-if="record.verificationStatus === 'VERIFIED'" title="核销时间">
|
||||||
<template #note>
|
<template #note>
|
||||||
<pass-time-label :timestamp="record.verifiedAt" underline />
|
<time-label :timestamp="record.verifiedAt" underline />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
</t-cell-group>
|
</t-cell-group>
|
||||||
@@ -143,7 +143,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { DialogPlugin } from "tdesign-mobile-vue";
|
import { DialogPlugin } from "tdesign-mobile-vue";
|
||||||
import { PassTimeLabel, Text } from "timi-web";
|
import { TimeLabel, Text } from "timi-web";
|
||||||
import { useUserStore, type Attachment } from "timi-web-api";
|
import { useUserStore, type Attachment } from "timi-web-api";
|
||||||
import EventRecordAPI from "@/api/EventRecordAPI";
|
import EventRecordAPI from "@/api/EventRecordAPI";
|
||||||
import CustomerProfileCard from "@/components/CustomerProfileCard.vue";
|
import CustomerProfileCard from "@/components/CustomerProfileCard.vue";
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
<t-cell title="提醒时间" :note="detail.remindAt ? Time.toDateTime(detail.remindAt) : '-'" />
|
<t-cell title="提醒时间" :note="detail.remindAt ? Time.toDateTime(detail.remindAt) : '-'" />
|
||||||
<t-cell title="创建时间">
|
<t-cell title="创建时间">
|
||||||
<template #note>
|
<template #note>
|
||||||
<pass-time-label :timestamp="detail.createdAt" underline />
|
<time-label :timestamp="detail.createdAt" underline />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
</t-cell-group>
|
</t-cell-group>
|
||||||
@@ -128,7 +128,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { DialogPlugin } from "tdesign-mobile-vue";
|
import { DialogPlugin } from "tdesign-mobile-vue";
|
||||||
import { NotifyAPI, type NotifyDetail, useUserStore } from "timi-web-api";
|
import { NotifyAPI, type NotifyDetail, useUserStore } from "timi-web-api";
|
||||||
import { PassTimeLabel, Time } from "timi-web";
|
import { TimeLabel, Time } from "timi-web";
|
||||||
import { Message } from "@/utils/message";
|
import { Message } from "@/utils/message";
|
||||||
import { getErrorMessage } from "@/utils/error";
|
import { getErrorMessage } from "@/utils/error";
|
||||||
import FollowUpReminderAPI from "@/api/FollowUpReminderAPI";
|
import FollowUpReminderAPI from "@/api/FollowUpReminderAPI";
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<t-cell title="状态"><template #note><t-tag :content="getFulfillmentStatusText(fulfillment.status)" variant="light-outline" :theme="getStatusTheme(fulfillment.status)" /></template></t-cell>
|
<t-cell title="状态"><template #note><t-tag :content="getFulfillmentStatusText(fulfillment.status)" variant="light-outline" :theme="getStatusTheme(fulfillment.status)" /></template></t-cell>
|
||||||
<t-cell title="履约时间">
|
<t-cell title="履约时间">
|
||||||
<template #note>
|
<template #note>
|
||||||
<pass-time-label :timestamp="fulfillment.deliveredAt" underline />
|
<time-label :timestamp="fulfillment.deliveredAt" underline />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
<t-cell title="提交人" :note="fulfillment.operator?.nick || fulfillment.operator?.name || fulfillment.operatorUserId || '未知'" />
|
<t-cell title="提交人" :note="fulfillment.operator?.nick || fulfillment.operator?.name || fulfillment.operatorUserId || '未知'" />
|
||||||
@@ -129,7 +129,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { PassTimeLabel } from "timi-web";
|
import { TimeLabel } from "timi-web";
|
||||||
import { useUserStore } from "timi-web-api";
|
import { useUserStore } from "timi-web-api";
|
||||||
import FulfillmentAPI from "@/api/FulfillmentAPI";
|
import FulfillmentAPI from "@/api/FulfillmentAPI";
|
||||||
import ProductAPI from "@/api/ProductAPI";
|
import ProductAPI from "@/api/ProductAPI";
|
||||||
|
|||||||
@@ -474,7 +474,7 @@ onUnmounted(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.stock-wrap {
|
.stock-wrap {
|
||||||
|
padding: .5rem 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<pass-time-label class="time" :timestamp="fulfillment.deliveredAt" underline />
|
<time-label class="time" :timestamp="fulfillment.deliveredAt" underline />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { PassTimeLabel } from "timi-web";
|
import { TimeLabel } from "timi-web";
|
||||||
import type { OrderFulfillment, OrderFulfillmentItem } from "@/types/Fulfillment";
|
import type { OrderFulfillment, OrderFulfillmentItem } from "@/types/Fulfillment";
|
||||||
import { getCustomerPhotoURL } from "@/utils/customer";
|
import { getCustomerPhotoURL } from "@/utils/customer";
|
||||||
import { getPackageQuantityText } from "@/utils/package";
|
import { getPackageQuantityText } from "@/utils/package";
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<span class="label">时间</span>
|
<span class="label">时间</span>
|
||||||
<div>
|
<div>
|
||||||
<pass-time-label
|
<time-label
|
||||||
v-if="toTimestamp(order.createdAt)"
|
v-if="toTimestamp(order.createdAt)"
|
||||||
class="value"
|
class="value"
|
||||||
:timestamp="toTimestamp(order.createdAt)"
|
:timestamp="toTimestamp(order.createdAt)"
|
||||||
@@ -133,7 +133,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { PassTimeLabel } from "timi-web";
|
import { TimeLabel } from "timi-web";
|
||||||
import FulfillmentAPI from "@/api/FulfillmentAPI";
|
import FulfillmentAPI from "@/api/FulfillmentAPI";
|
||||||
import type { QuickFulfillmentSku, QuickFulfillmentSourceOrder, QuickFulfillmentSourceOrderItem } from "@/types/Fulfillment";
|
import type { QuickFulfillmentSku, QuickFulfillmentSourceOrder, QuickFulfillmentSourceOrderItem } from "@/types/Fulfillment";
|
||||||
import type { QuickFulfillmentItem, QuickFulfillmentSourceOrdersExpose } from "./OrderFulfillmentQuickTypes";
|
import type { QuickFulfillmentItem, QuickFulfillmentSourceOrdersExpose } from "./OrderFulfillmentQuickTypes";
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #description>
|
<template #description>
|
||||||
<span v-if="isScheduled(item)" v-text="`定时 ${Time.toDateTime(item.sendAt)}`" />
|
<span v-if="isScheduled(item)" v-text="`定时 ${Time.toDateTime(item.sendAt)}`" />
|
||||||
<pass-time-label v-else :timestamp="item.sendAt || item.createdAt" underline />
|
<time-label v-else :timestamp="item.sendAt || item.createdAt" underline />
|
||||||
</template>
|
</template>
|
||||||
<template #note>
|
<template #note>
|
||||||
<t-tag size="small" :theme="getStatusTheme(item)" :content="getStatusText(item)" />
|
<t-tag size="small" :theme="getStatusTheme(item)" :content="getStatusText(item)" />
|
||||||
@@ -107,7 +107,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { PassTimeLabel, Time } from "timi-web";
|
import { TimeLabel, Time } from "timi-web";
|
||||||
import { NotifyAPI, type Notify, type NotifyManagementItem, type Page, type PageResult, useUserStore } from "timi-web-api";
|
import { NotifyAPI, type Notify, type NotifyManagementItem, type Page, type PageResult, useUserStore } from "timi-web-api";
|
||||||
import { DialogPlugin } from "tdesign-mobile-vue";
|
import { DialogPlugin } from "tdesign-mobile-vue";
|
||||||
import { Message } from "@/utils/message";
|
import { Message } from "@/utils/message";
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template v-if="recipientFilter === 'all'" #description>
|
<template v-if="recipientFilter === 'all'" #description>
|
||||||
<div class="recipient-description">
|
<div class="recipient-description">
|
||||||
<pass-time-label :timestamp="item.sendAt" underline />
|
<time-label :timestamp="item.sendAt" underline />
|
||||||
<span v-if="item.resultDesc" v-text="item.resultDesc" />
|
<span v-if="item.resultDesc" v-text="item.resultDesc" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
:theme="getStatusTheme(item)"
|
:theme="getStatusTheme(item)"
|
||||||
:content="getStatusText(item)"
|
:content="getStatusText(item)"
|
||||||
/>
|
/>
|
||||||
<pass-time-label
|
<time-label
|
||||||
v-else-if="recipientFilter === 'read'"
|
v-else-if="recipientFilter === 'read'"
|
||||||
:timestamp="item.readAt"
|
:timestamp="item.readAt"
|
||||||
underline
|
underline
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { PassTimeLabel, Time } from "timi-web";
|
import { TimeLabel, Time } from "timi-web";
|
||||||
import { NotifyAPI, type Notify, type NotifyDetail } from "timi-web-api";
|
import { NotifyAPI, type Notify, type NotifyDetail } from "timi-web-api";
|
||||||
import { Message } from "@/utils/message";
|
import { Message } from "@/utils/message";
|
||||||
import { getErrorMessage } from "@/utils/error";
|
import { getErrorMessage } from "@/utils/error";
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #description>
|
<template #description>
|
||||||
<pass-time-label :timestamp="item.sendAt" underline />
|
<time-label :timestamp="item.sendAt" underline />
|
||||||
</template>
|
</template>
|
||||||
<template #note>
|
<template #note>
|
||||||
<t-tag
|
<t-tag
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { PassTimeLabel } from "timi-web";
|
import { TimeLabel } from "timi-web";
|
||||||
import { NotifyAPI, type NotifyDetail, type Page, type PageResult, useUserStore } from "timi-web-api";
|
import { NotifyAPI, type NotifyDetail, type Page, type PageResult, useUserStore } from "timi-web-api";
|
||||||
import { DialogPlugin } from "tdesign-mobile-vue";
|
import { DialogPlugin } from "tdesign-mobile-vue";
|
||||||
import { Message } from "@/utils/message";
|
import { Message } from "@/utils/message";
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<div v-if="sender" class="sender">
|
<div v-if="sender" class="sender">
|
||||||
发送用户:<span v-text="sender" />
|
发送用户:<span v-text="sender" />
|
||||||
</div>
|
</div>
|
||||||
<pass-time-label
|
<time-label
|
||||||
v-if="timestamp !== undefined"
|
v-if="timestamp !== undefined"
|
||||||
class="time"
|
class="time"
|
||||||
:timestamp="timestamp"
|
:timestamp="timestamp"
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { NotifyView } from "timi-tdesign-mobile";
|
import { NotifyView } from "timi-tdesign-mobile";
|
||||||
import { PassTimeLabel } from "timi-web";
|
import { TimeLabel } from "timi-web";
|
||||||
import type { NotifyDetail } from "timi-web-api";
|
import type { NotifyDetail } from "timi-web-api";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
<t-cell title="变化后余额" :note="getPointText(ledger.balanceAfter)" />
|
<t-cell title="变化后余额" :note="getPointText(ledger.balanceAfter)" />
|
||||||
<t-cell title="发生时间">
|
<t-cell title="发生时间">
|
||||||
<template #note>
|
<template #note>
|
||||||
<pass-time-label :timestamp="ledger.occurredAt" underline />
|
<time-label :timestamp="ledger.occurredAt" underline />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
<t-cell title="流水备注" :note="Text.display(ledger.remark)" />
|
<t-cell title="流水备注" :note="Text.display(ledger.remark)" />
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
<t-cell title="登记事件" :note="eventRecord.event?.name || triggerEvent?.name || '未知事件'" />
|
<t-cell title="登记事件" :note="eventRecord.event?.name || triggerEvent?.name || '未知事件'" />
|
||||||
<t-cell title="登记时间">
|
<t-cell title="登记时间">
|
||||||
<template #note>
|
<template #note>
|
||||||
<pass-time-label :timestamp="eventRecord.registeredAt" underline />
|
<time-label :timestamp="eventRecord.registeredAt" underline />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
<t-cell v-if="hasEventNumberValue" title="事件数值" :note="getEventNumberValueText()" />
|
<t-cell v-if="hasEventNumberValue" title="事件数值" :note="getEventNumberValueText()" />
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { PassTimeLabel, Text } from "timi-web";
|
import { TimeLabel, Text } from "timi-web";
|
||||||
import { useUserStore } from "timi-web-api";
|
import { useUserStore } from "timi-web-api";
|
||||||
import CustomerAPI from "@/api/CustomerAPI";
|
import CustomerAPI from "@/api/CustomerAPI";
|
||||||
import EventAPI from "@/api/EventAPI";
|
import EventAPI from "@/api/EventAPI";
|
||||||
|
|||||||
@@ -103,7 +103,7 @@
|
|||||||
<div class="description">
|
<div class="description">
|
||||||
<div>
|
<div>
|
||||||
<span>时间:</span>
|
<span>时间:</span>
|
||||||
<pass-time-label :timestamp="item.occurredAt" underline />
|
<time-label :timestamp="item.occurredAt" underline />
|
||||||
</div>
|
</div>
|
||||||
<div v-text="`余额:${formatPointValue(item.balanceBefore)} → ${formatPointValue(item.balanceAfter)}`" />
|
<div v-text="`余额:${formatPointValue(item.balanceBefore)} → ${formatPointValue(item.balanceAfter)}`" />
|
||||||
<div v-text="item.remark" />
|
<div v-text="item.remark" />
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { DropdownValue } from "tdesign-mobile-vue";
|
import type { DropdownValue } from "tdesign-mobile-vue";
|
||||||
import { PassTimeLabel, Toolkit } from "timi-web";
|
import { TimeLabel, Toolkit } from "timi-web";
|
||||||
import { type PageResult, useUserStore } from "timi-web-api";
|
import { type PageResult, useUserStore } from "timi-web-api";
|
||||||
import CustomerAPI from "@/api/CustomerAPI";
|
import CustomerAPI from "@/api/CustomerAPI";
|
||||||
import PointAPI from "@/api/PointAPI";
|
import PointAPI from "@/api/PointAPI";
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
/>
|
/>
|
||||||
<t-cell title="发生时间">
|
<t-cell title="发生时间">
|
||||||
<template #note>
|
<template #note>
|
||||||
<pass-time-label :timestamp="record.occurredAt" underline />
|
<time-label :timestamp="record.occurredAt" underline />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
<t-cell title="操作人" :note="record.operator?.nick || record.operator?.name || record.operatorUserId || '未知操作人'" />
|
<t-cell title="操作人" :note="record.operator?.nick || record.operator?.name || record.operatorUserId || '未知操作人'" />
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { BottomPopup } from "timi-tdesign-mobile";
|
import { BottomPopup } from "timi-tdesign-mobile";
|
||||||
import { PassTimeLabel } from "timi-web";
|
import { TimeLabel } from "timi-web";
|
||||||
import { useUserStore, type Attachment } from "timi-web-api";
|
import { useUserStore, type Attachment } from "timi-web-api";
|
||||||
import ProductAPI from "@/api/ProductAPI";
|
import ProductAPI from "@/api/ProductAPI";
|
||||||
import MediaSelector from "@/components/mediaSelector/MediaSelector.vue";
|
import MediaSelector from "@/components/mediaSelector/MediaSelector.vue";
|
||||||
|
|||||||
@@ -139,7 +139,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #description>
|
<template #description>
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<pass-time-label :timestamp="record.occurredAt" underline />
|
<time-label :timestamp="record.occurredAt" underline />
|
||||||
<div class="delta">
|
<div class="delta">
|
||||||
<span>库存:</span>
|
<span>库存:</span>
|
||||||
<span
|
<span
|
||||||
@@ -191,7 +191,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { type DropdownValue } from "tdesign-mobile-vue";
|
import { type DropdownValue } from "tdesign-mobile-vue";
|
||||||
import { PassTimeLabel, Time } from "timi-web";
|
import { TimeLabel, Time } from "timi-web";
|
||||||
import { UserAPI } from "timi-web-api";
|
import { UserAPI } from "timi-web-api";
|
||||||
import { onBeforeRouteLeave } from "vue-router";
|
import { onBeforeRouteLeave } from "vue-router";
|
||||||
import ProductAPI from "@/api/ProductAPI";
|
import ProductAPI from "@/api/ProductAPI";
|
||||||
|
|||||||
@@ -135,7 +135,7 @@
|
|||||||
variant="light-outline"
|
variant="light-outline"
|
||||||
:content="getStatusText(item.status)"
|
:content="getStatusText(item.status)"
|
||||||
/>
|
/>
|
||||||
<pass-time-label class="time" :timestamp="item.effectiveAt" underline />
|
<time-label class="time" :timestamp="item.effectiveAt" underline />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #note>
|
<template #note>
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { DropdownValue } from "tdesign-mobile-vue";
|
import type { DropdownValue } from "tdesign-mobile-vue";
|
||||||
import { PassTimeLabel, Time } from "timi-web";
|
import { TimeLabel, Time } from "timi-web";
|
||||||
import { useUserStore } from "timi-web-api";
|
import { useUserStore } from "timi-web-api";
|
||||||
import ConsumptionRecordAPI from "@/api/ConsumptionRecordAPI";
|
import ConsumptionRecordAPI from "@/api/ConsumptionRecordAPI";
|
||||||
import CustomerAPI from "@/api/CustomerAPI";
|
import CustomerAPI from "@/api/CustomerAPI";
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
/>
|
/>
|
||||||
<t-cell title="发起时间">
|
<t-cell title="发起时间">
|
||||||
<template #note>
|
<template #note>
|
||||||
<pass-time-label :timestamp="record.occurredAt" underline />
|
<time-label :timestamp="record.occurredAt" underline />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
<t-cell
|
<t-cell
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
/>
|
/>
|
||||||
<t-cell title="处理时间">
|
<t-cell title="处理时间">
|
||||||
<template #note>
|
<template #note>
|
||||||
<pass-time-label :timestamp="record.verifiedAt" underline />
|
<time-label :timestamp="record.verifiedAt" underline />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
</t-cell-group>
|
</t-cell-group>
|
||||||
@@ -128,7 +128,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { DialogPlugin } from "tdesign-mobile-vue";
|
import { DialogPlugin } from "tdesign-mobile-vue";
|
||||||
import { PassTimeLabel, Text } from "timi-web";
|
import { TimeLabel, Text } from "timi-web";
|
||||||
import { useUserStore } from "timi-web-api";
|
import { useUserStore } from "timi-web-api";
|
||||||
import SalesOrderAPI from "@/api/SalesOrderAPI";
|
import SalesOrderAPI from "@/api/SalesOrderAPI";
|
||||||
import MediaSelector from "@/components/mediaSelector/MediaSelector.vue";
|
import MediaSelector from "@/components/mediaSelector/MediaSelector.vue";
|
||||||
|
|||||||
@@ -124,7 +124,7 @@
|
|||||||
<span class="label">核销人</span>
|
<span class="label">核销人</span>
|
||||||
<span class="text-bold" v-text="getVerifierText(item)" />
|
<span class="text-bold" v-text="getVerifierText(item)" />
|
||||||
</div>
|
</div>
|
||||||
<pass-time-label :timestamp="item.occurredAt" underline />
|
<time-label :timestamp="item.occurredAt" underline />
|
||||||
</div>
|
</div>
|
||||||
<div class="amounts">
|
<div class="amounts">
|
||||||
<div class="order-amount">
|
<div class="order-amount">
|
||||||
@@ -185,7 +185,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { type DropdownValue } from "tdesign-mobile-vue";
|
import { type DropdownValue } from "tdesign-mobile-vue";
|
||||||
import { PassTimeLabel, Time } from "timi-web";
|
import { TimeLabel, Time } from "timi-web";
|
||||||
import { useUserStore } from "timi-web-api";
|
import { useUserStore } from "timi-web-api";
|
||||||
import CustomerAPI from "@/api/CustomerAPI";
|
import CustomerAPI from "@/api/CustomerAPI";
|
||||||
import SalesOrderAPI from "@/api/SalesOrderAPI";
|
import SalesOrderAPI from "@/api/SalesOrderAPI";
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<h1 class="no selectable" v-text="order.orderNo" />
|
<h1 class="no selectable" v-text="order.orderNo" />
|
||||||
<div class="meta">
|
<div class="meta">
|
||||||
<pass-time-label class="time" :timestamp="order.purchasedAt" underline />
|
<time-label class="time" :timestamp="order.purchasedAt" underline />
|
||||||
<div class="amount red text-bold">
|
<div class="amount red text-bold">
|
||||||
<span>¥</span>
|
<span>¥</span>
|
||||||
<strong class="value" v-text="formatPackageAmount(order.saleAmount)" />
|
<strong class="value" v-text="formatPackageAmount(order.saleAmount)" />
|
||||||
@@ -198,7 +198,7 @@
|
|||||||
<t-cell-group v-if="order.status === 'CANCELLED'" class="cancel-info" title="取消记录" theme="card">
|
<t-cell-group v-if="order.status === 'CANCELLED'" class="cancel-info" title="取消记录" theme="card">
|
||||||
<t-cell title="取消时间">
|
<t-cell title="取消时间">
|
||||||
<template #note>
|
<template #note>
|
||||||
<pass-time-label :timestamp="order.cancelledAt" underline />
|
<time-label :timestamp="order.cancelledAt" underline />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
<t-cell title="取消人" :note="order.cancelOperator?.nick || order.cancelOperator?.name || order.cancelOperatorUserId || '未知'" />
|
<t-cell title="取消人" :note="order.cancelOperator?.nick || order.cancelOperator?.name || order.cancelOperatorUserId || '未知'" />
|
||||||
@@ -232,7 +232,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { PassTimeLabel, Text, Time } from "timi-web";
|
import { TimeLabel, Text, Time } from "timi-web";
|
||||||
import { type Attachment, useUserStore } from "timi-web-api";
|
import { type Attachment, useUserStore } from "timi-web-api";
|
||||||
import FulfillmentAPI from "@/api/FulfillmentAPI";
|
import FulfillmentAPI from "@/api/FulfillmentAPI";
|
||||||
import SalesOrderAPI from "@/api/SalesOrderAPI";
|
import SalesOrderAPI from "@/api/SalesOrderAPI";
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<t-divider />
|
<t-divider />
|
||||||
<div class="time-payment">
|
<div class="time-payment">
|
||||||
<pass-time-label class="time gray" :timestamp="props.order.purchasedAt" underline />
|
<time-label class="time gray" :timestamp="props.order.purchasedAt" underline />
|
||||||
<div class="amount">
|
<div class="amount">
|
||||||
<span class="red">¥</span>
|
<span class="red">¥</span>
|
||||||
<strong class="value red" v-text="formatPackageAmount(props.order.saleAmount)" />
|
<strong class="value red" v-text="formatPackageAmount(props.order.saleAmount)" />
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { PassTimeLabel } from "timi-web";
|
import { TimeLabel } from "timi-web";
|
||||||
import type { GaoSalesPaymentStatus, SalesOrder } from "@/types/SalesOrder";
|
import type { GaoSalesPaymentStatus, SalesOrder } from "@/types/SalesOrder";
|
||||||
import { getCustomerPhotoURL } from "@/utils/customer";
|
import { getCustomerPhotoURL } from "@/utils/customer";
|
||||||
import { formatPackageAmount, getPackageQuantityText } from "@/utils/package";
|
import { formatPackageAmount, getPackageQuantityText } from "@/utils/package";
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
<header class="header" v-entrance-transition>
|
<header class="header" v-entrance-transition>
|
||||||
<h1 v-text="article.title || '未命名日记'" />
|
<h1 v-text="article.title || '未命名日记'" />
|
||||||
<div v-if="article.description" class="description" v-text="article.description" />
|
<div v-if="article.description" class="description" v-text="article.description" />
|
||||||
<pass-time-label
|
<time-label
|
||||||
class="time gray"
|
class="time gray"
|
||||||
v-if="article.createdAt"
|
v-if="article.createdAt"
|
||||||
:timestamp="article.createdAt"
|
:timestamp="article.createdAt"
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="updated-at">
|
<div class="updated-at">
|
||||||
<span>最近更新时间:</span>
|
<span>最近更新时间:</span>
|
||||||
<pass-time-label v-if="article.updatedAt" :timestamp="article.updatedAt" />
|
<time-label v-if="article.updatedAt" :timestamp="article.updatedAt" />
|
||||||
<span v-else v-text="'未知时间'" />
|
<span v-else v-text="'未知时间'" />
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
@@ -113,7 +113,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ArticleView } from "timi-tdesign-mobile";
|
import { ArticleView } from "timi-tdesign-mobile";
|
||||||
import { DialogPlugin } from "tdesign-mobile-vue";
|
import { DialogPlugin } from "tdesign-mobile-vue";
|
||||||
import { PassTimeLabel } from "timi-web";
|
import { TimeLabel } from "timi-web";
|
||||||
import { UserAPI, type Attachment, useUserStore } from "timi-web-api";
|
import { UserAPI, type Attachment, useUserStore } from "timi-web-api";
|
||||||
import StoreDiaryAPI from "@/api/StoreDiaryAPI";
|
import StoreDiaryAPI from "@/api/StoreDiaryAPI";
|
||||||
import MediaSelector from "@/components/mediaSelector/MediaSelector.vue";
|
import MediaSelector from "@/components/mediaSelector/MediaSelector.vue";
|
||||||
|
|||||||
@@ -20,13 +20,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #note>
|
<template #note>
|
||||||
<pass-time-label :timestamp="props.diary.updatedAt || props.diary.createdAt" underline />
|
<time-label :timestamp="props.diary.updatedAt || props.diary.createdAt" underline />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { PassTimeLabel } from "timi-web";
|
import { TimeLabel } from "timi-web";
|
||||||
import type { StoreDiary } from "@/types/StoreDiary";
|
import type { StoreDiary } from "@/types/StoreDiary";
|
||||||
import { getAttachmentReadURL } from "@/utils/attachment";
|
import { getAttachmentReadURL } from "@/utils/attachment";
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
</t-cell>
|
</t-cell>
|
||||||
<t-cell title="上次登录时间">
|
<t-cell title="上次登录时间">
|
||||||
<template #note>
|
<template #note>
|
||||||
<pass-time-label :timestamp="managedUser.user.lastLoginAt" underline />
|
<time-label :timestamp="managedUser.user.lastLoginAt" underline />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
</t-cell-group>
|
</t-cell-group>
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Message } from "@/utils/message";
|
import { Message } from "@/utils/message";
|
||||||
import { PassTimeLabel } from "timi-web";
|
import { TimeLabel } from "timi-web";
|
||||||
import { type User, UserAPI, useUserStore } from "timi-web-api";
|
import { type User, UserAPI, useUserStore } from "timi-web-api";
|
||||||
import EventAPI from "@/api/EventAPI";
|
import EventAPI from "@/api/EventAPI";
|
||||||
import ManagedUserAPI from "@/api/ManagedUserAPI";
|
import ManagedUserAPI from "@/api/ManagedUserAPI";
|
||||||
|
|||||||
Reference in New Issue
Block a user