liyong
9 天以前 cf9f906994422b65daaa9ea287d5093f3fa7463c
src/views/salesManagement/salesQuotation/index.vue
@@ -300,7 +300,6 @@
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";
@@ -316,7 +315,7 @@
const quotationList = ref([])
const userList = ref([])
const productOptions = ref([]);
const modelOptions = ref([]);
const modelOptions  = ref([]);
const pagination = reactive({
  total: 3,
  currentPage: 1,
@@ -401,15 +400,18 @@
  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 确保能反显
@@ -780,6 +782,7 @@
onMounted(()=>{
  getUserList()
  loadCustomerOptions()
  handleSearch()
})
</script>