| | |
| | | import Pagination from '@/components/PIMTable/Pagination.vue' |
| | | import FormDialog from '@/components/Dialog/FormDialog.vue' |
| | | import {getQuotationList,addQuotation,updateQuotation,deleteQuotation} from '@/api/salesManagement/salesQuotation.js' |
| | | import {customerList} from "@/api/salesManagement/salesLedger.js"; |
| | | import {modelList, productTreeList} from "@/api/basicData/product.js"; |
| | | import {listCustomerPrivatePool} from "@/api/basicData/customerFile.js"; |
| | | import { userListNoPage } from "@/api/system/user.js"; |
| | |
| | | handleSearch() |
| | | } |
| | | |
| | | const loadCustomerOptions = async () => { |
| | | const res = await listCustomerPrivatePool({ current: -1, size: -1 }); |
| | | customerOption.value = res?.data?.records || []; |
| | | } |
| | | |
| | | const handleAdd = async () => { |
| | | dialogTitle.value = '新增报价' |
| | | isEdit.value = false |
| | | resetForm() |
| | | dialogVisible.value = true |
| | | getProductOptions(); |
| | | listCustomerPrivatePool({current: -1,size:-1}).then((res) => { |
| | | customerOption.value = res.data.records; |
| | | }); |
| | | loadCustomerOptions(); |
| | | } |
| | | const getProductOptions = () => { |
| | | // 返回 Promise,便于编辑时 await 确保能反显 |
| | |
| | | |
| | | onMounted(()=>{ |
| | | getUserList() |
| | | loadCustomerOptions() |
| | | handleSearch() |
| | | }) |
| | | </script> |