| | |
| | | placeholder="请选择" |
| | | clearable |
| | | @change="calculateFromTaxRate"> |
| | | <el-option label="1" |
| | | value="1"/> |
| | | <el-option label="6" |
| | | value="6"/> |
| | | <el-option label="13" |
| | | value="13"/> |
| | | <el-option |
| | | v-for="dict in tax_rate" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | 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")); |
| | | |
| | |
| | | const route = useRoute(); |
| | | const userStore = useUserStore(); |
| | | const {proxy} = getCurrentInstance(); |
| | | const { tax_rate } = proxy.useDict("tax_rate"); |
| | | const tableData = ref([]); |
| | | const productData = ref([]); |
| | | const selectedRows = ref([]); |
| | |
| | | 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) { |