From 4f52b02ee2db3a9a3b00411b2a1ebfc8eb8c5a7c Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 17 九月 2025 14:04:38 +0800 Subject: [PATCH] fix: bug --- packages/components/src/Card/JobApplicationCard.vue | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/packages/components/src/Card/JobApplicationCard.vue b/packages/components/src/Card/JobApplicationCard.vue index f4cf8b8..62e7449 100644 --- a/packages/components/src/Card/JobApplicationCard.vue +++ b/packages/components/src/Card/JobApplicationCard.vue @@ -2,7 +2,7 @@ <div class="job-application-card-wrapper"> <div class="job-application-card-title-wrapper"> <div class="job-application-card-title">{{ name }}</div> - <TaskPrice :value="serviceFee" :unit="unit" v-if="mode === 'taskManage'" /> + <TaskPrice :value="toThousand(serviceFee ?? 0)" :unit="unit" v-if="mode === 'taskManage'" /> <div v-else class="job-application-card-title-more" @click.stop="handleMore"> <img :src="IconMore" class="more-btn-icon" /> </div> @@ -32,7 +32,7 @@ </div> <slot name="footer-actions"> <div class="job-application-card-fee"> - <TaskPrice :value="serviceFee" :unit="unit" /> + <TaskPrice :value="toThousand(serviceFee)" :unit="unit" /> </div> </slot> </div> @@ -48,6 +48,7 @@ import { TaskPrice } from '@12333/components'; import { EnumTaskStatus, EnumTaskReleaseStatus, EnumTaskReleaseStatusText } from '@12333/constants'; import dayjs from 'dayjs'; +import { toThousand } from '@12333/utils'; defineOptions({ name: 'JobApplicationCard', @@ -95,15 +96,21 @@ const menuList = computed(() => { let _menuList = []; _menuList.push( - { - name: '缂栬緫', - value: ManageActions.Edit, - }, + // { + // name: '缂栬緫', + // value: ManageActions.Edit, + // }, { name: '鏌ョ湅璇︽儏', value: ManageActions.Detail, } ); + if (props.status === EnumTaskStatus.Wait) { + _menuList.push({ + name: '缂栬緫', + value: ManageActions.Edit, + }); + } if (props.releaseStatus === EnumTaskReleaseStatus.Stopped) { _menuList.push({ name: '鍙戝竷', -- Gitblit v1.9.1