wupengfei
2025-11-07 650069714a250c746164c262a01854d3cf99ac80
feat: 1.3.0.1
已修改3个文件
已添加1个文件
23 ■■■■ 文件已修改
src/constants/task.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/index.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/orderUtils.ts 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/TaskManage/TaskManageList.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/constants/task.ts
@@ -94,6 +94,7 @@
  [EnumBillingMethod.Day]: '元/日',
  [EnumBillingMethod.Hour]: '元/小时',
  [EnumBillingMethod.Piece]: '元/ä»¶',
  [EnumBillingMethod.Face]: '面议',
};
export const EnumTaskSettlementStatusText = {
src/utils/index.ts
@@ -6,3 +6,4 @@
export * from './theme';
export * from './validator';
export * from './enterpriseWallet';
export * from './orderUtils';
src/utils/orderUtils.ts
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,13 @@
export class OrderUtils {
  static getServiceFeeText(serviceFee: number, billingMethod: EnumBillingMethod) {
    if (billingMethod === EnumBillingMethod.Face) {
      return EnumBillingMethodUnitText[billingMethod];
    }
    return `${serviceFee ?? 0}${EnumBillingMethodUnitText[billingMethod]}`;
  }
  static isContainCheckIn(checkReceiveMethods: EnumTaskCheckReceiveMethod[]) {
    if (!checkReceiveMethods) return false;
    return checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.CheckIn);
  }
}
src/views/TaskManage/TaskManageList.vue
@@ -70,7 +70,7 @@
  EnumTaskRecommendStatusText,
  EnumTaskApplyStatusText,
} from '@/constants';
import { format } from '@/utils';
import { format, OrderUtils } from '@/utils';
import { Message } from '@bole-core/core';
defineOptions({
@@ -160,10 +160,8 @@
      endTime: { type: 'date', format: 'YYYY-MM-DD' },
      serviceFee: {
        type: 'money',
        formatter: (row) => {
          return row.billingMethod === EnumBillingMethod.Face
            ? ''
            : `${row.serviceFee}${EnumBillingMethodUnitText[row.billingMethod]}`;
        formatter: (row: API.GetTaskInfosQueryResultItem) => {
          return OrderUtils.getServiceFeeText(row.serviceFee, row.billingMethod);
        },
      },
    },