| | |
| | | :value-enum="supplierEnterpriseSelect" |
| | | placeholder="请选择供应商" |
| | | :disabled="isEdit" |
| | | @change="supplierEnterpriseChange" |
| | | ></ProFormSelect> |
| | | </ProFormItemV2> |
| | | <ProFormCol> |
| | |
| | | :check-rules="[{ message: '请选择保险产品' }]" |
| | | v-if=" |
| | | form.checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.CheckIn) && |
| | | enterpriseInsuranceProductSelect?.length > 0 |
| | | form.isConfiguredInsurance |
| | | " |
| | | > |
| | | <ProFormSelect |
| | |
| | | totalServiceFee: 0, |
| | | |
| | | insuranceProductId: '', |
| | | isConfiguredInsurance: false, |
| | | }); |
| | | |
| | | const { settlementAccessList } = useEnterpriseWalletAccessSelect({ |
| | |
| | | |
| | | const { enterpriseInsuranceProductSelect } = useEnterpriseInsuranceProductSelect({ |
| | | supplierEnterpriseId: computed(() => form.supplierEnterpriseId), |
| | | isConfiguredInsurance: computed(() => form.isConfiguredInsurance), |
| | | }); |
| | | |
| | | const { isLoading } = useQuery({ |
| | |
| | | form.totalServiceFee = data.estimatedServiceFee; |
| | | |
| | | form.insuranceProductId = data.insuranceProductId ?? ''; |
| | | |
| | | supplierEnterpriseChange(); |
| | | }, |
| | | enabled: isEdit, |
| | | }); |
| | |
| | | // } |
| | | // }); |
| | | |
| | | function supplierEnterpriseChange() { |
| | | if (form.supplierEnterpriseId) { |
| | | form.isConfiguredInsurance = supplierEnterpriseSelect.value?.find( |
| | | (item) => item.value === form.supplierEnterpriseId |
| | | )?.data?.isConfiguredInsurance; |
| | | } |
| | | } |
| | | |
| | | async function calcTaskTotalServiceFee() { |
| | | try { |
| | | let params: API.CalcTaskTotalServiceFeeCommand = { |
| | |
| | | description: form.description, |
| | | checkReceiveMethods: form.checkReceiveMethods, |
| | | settlementAccess: form.settlementAccess, |
| | | insuranceProductId: form.insuranceProductId, |
| | | insuranceProductId: form.insuranceProductId ? form.insuranceProductId : null, |
| | | }; |
| | | if (form.billingMethod !== EnumBillingMethod.Face) { |
| | | params.serviceFee = form.serviceFee; |