zhengyiming
2025-11-28 4b605424c769f0ef5f02eb1abdf8bd5b7d558161
src/views/CustomerManage/components/AddOrEditCustomerView.vue
@@ -180,20 +180,22 @@
                </ProFormSelect>
              </ProFormItemV2>
            </ProFormColItem>
            <ProFormColItem
              :span="8"
              v-if="
                form.serviceFeeCollectType === EnumEnterpriseCooperationServiceFeeCollectType.Rate
              "
            >
              <ProFormItemV2 label="服务费:" prop="serviceFeeRate">
            <ProFormColItem :span="8">
              <ProFormItemV2
                label="服务费:"
                prop="serviceFeeRate"
                :check-rules="
                  form.serviceFeeCollectType ? [{ message: '请输入服务费' }] : undefined
                "
                :required="!!form.serviceFeeCollectType"
              >
                <ProFormInputNumber
                  v-model="form.serviceFeeRate"
                  :controls="false"
                  :min="0"
                  :precision="2"
                  placeholder="请输入"
                  unit="%"
                  :unit="serviceFeeCollectTypeUnit"
                  :showReadContent="!!form.serviceFeeRate"
                />
              </ProFormItemV2>
@@ -428,6 +430,16 @@
  enabled: computed(() => !!id),
});
const serviceFeeCollectTypeUnit = computed(() => {
  if (!form.serviceFeeCollectType) {
    return '';
  } else {
    return form.serviceFeeCollectType === EnumEnterpriseCooperationServiceFeeCollectType.Rate
      ? '%'
      : '元/人';
  }
});
const {
  dialogProps: resetPasswordDialogProps,
  handleAdd: handleResetPasswordAdd,
@@ -536,10 +548,8 @@
      operatorPassword: form.operatorPassword,
      serviceFeeCollectType: form.serviceFeeCollectType,
      invoiceTaxPointRate: form.invoiceTaxPointRate,
      serviceFeeRate: form.serviceFeeRate,
    };
    if (form.serviceFeeCollectType === EnumEnterpriseCooperationServiceFeeCollectType.Rate) {
      params.serviceFeeRate = form.serviceFeeRate;
    }
    if (isEdit) {
      params.id = id;
    }