| | |
| | | |
| | | import { computed, ref } from 'vue'; |
| | | |
| | | import { useVbenForm, useVbenModal } from '..\..\..\..\packages\effects\common-ui\src'; |
| | | import { erpPriceMultiply } from '..\..\..\..\packages\utils\src'; |
| | | import { useVbenForm, useVbenModal } from '@vben/common-ui'; |
| | | import { erpPriceMultiply } from '@vben/utils'; |
| | | |
| | | import { message } from 'ant-design-vue'; |
| | | |
| | |
| | | // 加载数据 |
| | | const data = modalApi.getData<CrmContractApi.Contract>(); |
| | | if (!data || !data.id) { |
| | | // 新增时,回显从商机/客户详情传入的数据 |
| | | if (data) { |
| | | await formApi.setValues(data); |
| | | } |
| | | return; |
| | | } |
| | | modalApi.lock(); |
| | |
| | | </script> |
| | | |
| | | <template> |
| | | <Modal :title="getTitle" class="w-1/2"> |
| | | <Modal :title="getTitle" class="w-[80%]"> |
| | | <Form class="mx-4"> |
| | | <template #product="slotProps"> |
| | | <ProductEditTable |