1.0.85 合同回款阶段接口优化

dev
yinq 7 days ago
parent 5b8b4a9411
commit b8b48e3a04

@ -447,7 +447,7 @@ import type { ContractChangeSaveForm } from '@/api/oa/erp/contractChange/types';
import type { ContractMaterialForm } from '@/api/oa/erp/contractMaterial/types'; import type { ContractMaterialForm } from '@/api/oa/erp/contractMaterial/types';
import type { ContractPaymentMethodForm } from '@/api/oa/erp/contractPaymentMethod/types'; import type { ContractPaymentMethodForm } from '@/api/oa/erp/contractPaymentMethod/types';
import { getBaseUnitInfoList } from '@/api/oa/base/unitInfo'; import { getBaseUnitInfoList } from '@/api/oa/base/unitInfo';
import { listPaymentStage } from '@/api/oa/base/paymentStage'; import { getBasePaymentStageList } from '@/api/oa/base/paymentStage';
import type { PaymentStageVO } from '@/api/oa/base/paymentStage/types'; import type { PaymentStageVO } from '@/api/oa/base/paymentStage/types';
import { getCrmCustomerInfoList } from '@/api/oa/crm/customerInfo'; import { getCrmCustomerInfoList } from '@/api/oa/crm/customerInfo';
import { getCrmPaymentAccountList } from '@/api/oa/crm/paymentAccount'; import { getCrmPaymentAccountList } from '@/api/oa/crm/paymentAccount';
@ -812,9 +812,9 @@ async function loadDetail() {
function loadSelectOptions() { function loadSelectOptions() {
getBaseUnitInfoList(null).then((res) => (unitInfoList.value = res.data || [])); getBaseUnitInfoList(null).then((res) => (unitInfoList.value = res.data || []));
listPaymentStage({ pageNum: 1, pageSize: 500 }).then((res) => (paymentStageList.value = res.rows || [])); getBasePaymentStageList({} as any).then((res) => (paymentStageList.value = res.data || []));
getCrmCustomerInfoList(null).then((res) => (customerInfoList.value = res.data || [])); getCrmCustomerInfoList(null).then((res) => (customerInfoList.value = res.data || []));
getUserList({ pageNum: 1, pageSize: 1000 }).then((res) => (userInfoList.value = res.data || [])); getUserList({} as any).then((res) => (userInfoList.value = res.data || []));
getCrmPaymentAccountList({}).then((res) => (paymentAccountList.value = res.data || [])); getCrmPaymentAccountList({}).then((res) => (paymentAccountList.value = res.data || []));
getBasePrintTemplateList({ templateType: '1' }).then((res) => (printTemplateList.value = res.data || [])); getBasePrintTemplateList({ templateType: '1' }).then((res) => (printTemplateList.value = res.data || []));
allListDept({} as any).then((res) => (deptInfoList.value = res.data || [])); allListDept({} as any).then((res) => (deptInfoList.value = res.data || []));

@ -664,7 +664,7 @@ import { getInfo } from '@/api/login';
import FileUpload from '@/components/FileUpload/index.vue'; import FileUpload from '@/components/FileUpload/index.vue';
import { contractAddMaterialInfo } from '@/api/oa/base/materialInfo'; import { contractAddMaterialInfo } from '@/api/oa/base/materialInfo';
import { MaterialInfoForm } from '@/api/oa/base/materialInfo/types'; import { MaterialInfoForm } from '@/api/oa/base/materialInfo/types';
import { listPaymentStage } from '@/api/oa/base/paymentStage'; import { getBasePaymentStageList } from '@/api/oa/base/paymentStage';
import type { PaymentStageVO } from '@/api/oa/base/paymentStage/types'; import type { PaymentStageVO } from '@/api/oa/base/paymentStage/types';
import { getCrmPaymentAccountList } from '@/api/oa/crm/paymentAccount'; import { getCrmPaymentAccountList } from '@/api/oa/crm/paymentAccount';
@ -787,8 +787,9 @@ const getUserInfoListSelect = async () => {
/** 付款节点下拉列表(回款阶段) */ /** 付款节点下拉列表(回款阶段) */
const paymentStageList = ref<PaymentStageVO[]>([]); const paymentStageList = ref<PaymentStageVO[]>([]);
const getPaymentStageListSelect = async () => { const getPaymentStageListSelect = async () => {
const res = await listPaymentStage({ pageNum: 1, pageSize: 500 }); const params = { } as any;
paymentStageList.value = res.rows || []; const res = await getBasePaymentStageList(params);
paymentStageList.value = res.data || [];
}; };
/** 付款账户下拉列表 */ /** 付款账户下拉列表 */

Loading…
Cancel
Save