| | |
| | | import {modelList, productTreeList} from "@/api/basicData/product.js"; |
| | | import useFormData from "@/hooks/useFormData.js"; |
| | | import dayjs from "dayjs"; |
| | | import {getCurrentDate} from "@/utils/index.js"; |
| | | import {useRouter, useRoute} from "vue-router"; |
| | | import {listCustomerPrivatePool} from "@/api/basicData/customerFile.js"; |
| | | import FileUpload from "@/components/AttachmentUpload/file/index.vue"; |
| | | import { getCurrentDate } from "@/utils/index.js"; |
| | | import {listCustomer} from "@/api/basicData/customer.js"; |
| | | |
| | | const FileList = defineAsyncComponent(() => import("@/components/Dialog/FileList.vue")); |
| | | |
| | |
| | | selectedQuotation.value = null; |
| | | let userLists = await userListNoPage(); |
| | | userList.value = userLists.data; |
| | | listCustomerPrivatePool({current: -1, size: -1}).then(res => { |
| | | listCustomer({current: -1, size: -1}).then(res => { |
| | | customerOption.value = res.data.records; |
| | | }); |
| | | form.value.entryPerson = userStore.id; |
| | |
| | | // 先确保客户列表已加载,便于后续回填 customerId |
| | | if (!customerOption.value || customerOption.value.length === 0) { |
| | | try { |
| | | listCustomerPrivatePool({current: -1, size: -1}).then(res => { |
| | | listCustomer({current: -1, size: -1}).then(res => { |
| | | customerOption.value = res.data.records; |
| | | }); |
| | | } catch (e) { |