From b331f884097a2dc5086c8cf043c8c8f52e7640fe Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 12 九月 2025 17:34:39 +0800 Subject: [PATCH] Merge branch 'master' into dev-v1.1 --- src/views/EmploymentManage/components/AddOrEditEmploymentView.vue | 43 ++++++++++++++++++++++++++++++++++++++----- 1 files changed, 38 insertions(+), 5 deletions(-) diff --git a/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue b/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue index f828627..c46c0de 100644 --- a/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue +++ b/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue @@ -68,6 +68,24 @@ </ProFormCol> <ProFormCol> <ProFormColItem :span="12"> + <ProFormItemV2 + label="缁撶畻鏃ユ湡:" + prop="settlementCycle" + :check-rules="[{ message: '璇烽�夋嫨缁撶畻鏃ユ湡' }]" + class="settlement-cycle-date-form-item" + > + {{ EnumSettlementCycleDateText[form.settlementCycle] }} + <ProFormSelect + v-model="form.settlementCycle" + :value-enum="[]" + :button-style="false" + ></ProFormSelect> + {{ '鏃ョ粨绠�' }} + </ProFormItemV2> + </ProFormColItem> + </ProFormCol> + <ProFormCol> + <ProFormColItem :span="12"> <ProFormItemV2 label="绂忓埄:" prop="benefits"> <el-checkbox v-if="!isDetail" @@ -162,9 +180,7 @@ <ProFormItemV2 label="浠诲姟鍦扮偣:" prop="weMapInfo" - :check-rules="[ - { message: '璇烽�夋嫨浠诲姟鍦扮偣', validator: FormValidator.validatorWeMap }, - ]" + :check-rules="[{ message: '璇烽�夋嫨浠诲姟鍦扮偣', type: 'weMap' }]" > <WeMap v-if="!isDetail" v-model="form.weMapInfo" /> <div v-else> @@ -229,6 +245,7 @@ ProFormRadio, ProFormDatePicker, ProFormCheckbox, + ProFormSelect, } from '@bole-core/components'; import { FormInstance, ModelValueType } from 'element-plus'; import { Message } from '@bole-core/core'; @@ -240,6 +257,7 @@ EnumBillingMethodText, EnumBillingMethodUnitText, EnumSettlementCycleText, + EnumSettlementCycleDateText, } from '@/constants'; import { format, FormValidator } from '@/utils'; import dayjs from 'dayjs'; @@ -279,9 +297,9 @@ const form = reactive({ name: '', - billingMethod: EnumBillingMethod.Month, + billingMethod: EnumBillingMethod.Day, serviceFee: null, - settlementCycle: EnumSettlementCycle.Month, + settlementCycle: EnumSettlementCycle.Day, benefits: [] as string[], ageMinLimit: null, ageMaxLimit: null, @@ -425,5 +443,20 @@ width: auto; } } + + .settlement-cycle-date-form-item { + color: inherit; + + .el-form-item__content { + flex-wrap: nowrap; + + .el-select { + margin: 0 20px; + width: auto; + min-width: 0; + flex: 1; + } + } + } } </style> -- Gitblit v1.9.1