| | |
| | | :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({ |
| | |
| | | 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 = { |