Przeglądaj źródła

refactor(policy-fee): 用 periodFlag 替代 startTime 优化时段标识逻辑

- 将 AddPolicyFeeDTO 中的 timePeriod 改为 periodFlag,简化时段标识
- 调整 PolicyFee 实体,新增 periodFlag 字段,弃用 startTime
- 改造业务逻辑,全面使用 periodFlag 替代 startTime 关联价格策略
- 修改数据库查询条件和 mapper,支持根据 periodFlag 查询价格和费用
- 增加默认运营费字典配置读取,设置默认运营费为 0.2
- 更新综合销售费计算逻辑,改用 periodFlag 查询电价和服务费
- 移除 index.vue 中对 timePeriod 冒号的处理,适应新数据格式
- 修正相关日志、警告信息以体现 periodFlag 使用
- 保持企业价格映射和其他价费逻辑的一致性,确保功能正常
SheepHy 1 dzień temu
rodzic
commit
f1a2a103e7

+ 0 - 2
src/views/operationsManage/billing-strategy/index.vue

@@ -1077,7 +1077,6 @@ const saveEditOperationServiceFee = async (row: any, index: number) => {
   // 构造保存参数数组
   const saveParamsArray = [
     {
-      timePeriod: row.timePeriod.replace(/:/g, ""), // 移除时间中的冒号
       operationServiceFee: parseFloat(editingValue.value),
       stationInfoId: formData.stationId,
       salesType: formData.salesType,
@@ -1138,7 +1137,6 @@ const handleUniformFeeSetting = async (uniformFee: string) => {
 
   // 构造保存参数数组
   const saveParamsArray = serviceFeeData.value.map((row: any) => ({
-    timePeriod: row.timePeriod.replace(/:/g, ""), // 移除时间中的冒号
     operationServiceFee: feeValue,
     stationInfoId: formData.stationId,
     salesType: formData.salesType,