From ea495d525a4a7a7bd0e54868b5db5684b08a586f Mon Sep 17 00:00:00 2001 From: yinq Date: Fri, 22 May 2026 15:49:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=90=8D=E7=A7=B0=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E4=B8=8B=E6=8B=89=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oa/erp/finAccountInstallment/index.vue | 36 +++++++++++++++++-- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/src/views/oa/erp/finAccountInstallment/index.vue b/src/views/oa/erp/finAccountInstallment/index.vue index fa193eb..d00b818 100644 --- a/src/views/oa/erp/finAccountInstallment/index.vue +++ b/src/views/oa/erp/finAccountInstallment/index.vue @@ -26,7 +26,21 @@
- + + + @@ -315,7 +329,14 @@ - + + + @@ -392,6 +413,7 @@ import { getUserList } from '@/api/system/user'; import type { UserVO } from '@/api/system/user/types'; import { globalHeaders } from '@/utils/request'; import { parseTime } from '@/utils/ruoyi'; +import { getCrmCustomerInfoList } from '@/api/oa/crm/customerInfo'; const { proxy } = getCurrentInstance() as ComponentInternalInstance; const router = useRouter(); @@ -470,8 +492,15 @@ const installmentForm = reactive({ remark: undefined, currency: 'CNY' }); +/** 客户下拉(选项值存客户名称) */ +const customerInfoList = ref([]); +const getCustomerInfoListSelect = async () => { + const res = await getCrmCustomerInfoList(null as any); + customerInfoList.value = res.data || []; +}; + const installmentRules = { - customerName: [{ required: true, message: '请输入客户名称', trigger: 'blur' }], + customerName: [{ required: true, message: '请选择客户名称', trigger: 'change' }], paymentAmount: [{ required: true, message: '请输入回款金额', trigger: 'blur' }], paymentDate: [{ required: true, message: '请选择回款日期', trigger: 'change' }] }; @@ -640,6 +669,7 @@ const submitImport = async () => { }; onMounted(() => { + getCustomerInfoListSelect(); getList(); });