diff --git a/src/api/crm/billtemplate/index.ts b/src/api/crm/billtemplate/index.ts index 85e219166..f4feff066 100644 --- a/src/api/crm/billtemplate/index.ts +++ b/src/api/crm/billtemplate/index.ts @@ -29,6 +29,11 @@ export const BillTemplateApi = { return await request.put({ url: `/crm/bill-template/update`, data }) }, + // 获取模版产品信息 + getTemplateProduct: async (params: any) => { + return await request.get({ url: `crm/bill-template/getBusBillProductItems`, params }) + }, + // 删除票据模版 deleteBillTemplate: async (id: number) => { return await request.delete({ url: `/crm/bill-template/delete?id=` + id }) diff --git a/src/api/system/organizations/index.ts b/src/api/system/organizations/index.ts new file mode 100644 index 000000000..69eb1868a --- /dev/null +++ b/src/api/system/organizations/index.ts @@ -0,0 +1,50 @@ +import request from '@/config/axios' + +// 组织机构 VO +export interface OrganizationsVO { + id: number // 主键 + orgName: string // 机构名称 + workplace: string // 工作地址 + corpId: string // 企业微信凭证 + corpSecret: string // 企业微信凭证密钥 + subjectName: string // 主体名称 + creditCode: string // 统一信用代码 + legalRepresentative: string // 法人代表 + registeredAddress: string // 注册地址 + bankName: string // 开户行 + bankAccount: string // 银行账号 + businessLicense: string // 营业执照文件路径 +} + +// 组织机构 API +export const OrganizationsApi = { + // 查询组织机构分页 + getOrganizationsPage: async (params: any) => { + return await request.get({ url: `/system/organizations/page`, params }) + }, + + // 查询组织机构详情 + getOrganizations: async (id: number) => { + return await request.get({ url: `/system/organizations/get?id=` + id }) + }, + + // 新增组织机构 + createOrganizations: async (data: OrganizationsVO) => { + return await request.post({ url: `/system/organizations/create`, data }) + }, + + // 修改组织机构 + updateOrganizations: async (data: OrganizationsVO) => { + return await request.put({ url: `/system/organizations/update`, data }) + }, + + // 删除组织机构 + deleteOrganizations: async (id: number) => { + return await request.delete({ url: `/system/organizations/delete?id=` + id }) + }, + + // 导出组织机构 Excel + exportOrganizations: async (params) => { + return await request.download({ url: `/system/organizations/export-excel`, params }) + } +} \ No newline at end of file diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 4ecc6fde9..53892d43d 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -556,6 +556,39 @@ const remainingRouter: AppRouteRecordRaw[] = [ }, component: () => import('@/views/crm/billtemplate/BillTemplateForm.vue') }, + { + path: 'business/quotationAdd', + name: 'QuotationAdd', + meta: { + title: '方案报价新增', + noCache: true, + hidden: true, + activeMenu: '/crm/business' + }, + component: () => import('@/views/crm/quotation/QuotationForm.vue') + }, + { + path: 'business/quotationEdit', + name: 'QuotationEdit', + meta: { + title: '方案报价编辑', + noCache: true, + hidden: true, + activeMenu: '/crm/business' + }, + component: () => import('@/views/crm/quotation/QuotationForm.vue') + }, + { + path: 'business/quotationDetail', + name: 'QuotationDetail', + meta: { + title: '方案报价详情', + noCache: true, + hidden: true, + activeMenu: '/crm/business' + }, + component: () => import('@/views/crm/quotation/QuotationDetail.vue') + }, { path: 'business/add', name: 'CrmBusinessAdd', diff --git a/src/views/crm/billtemplate/BillTemplateForm.vue b/src/views/crm/billtemplate/BillTemplateForm.vue index e54cc5066..09461b382 100644 --- a/src/views/crm/billtemplate/BillTemplateForm.vue +++ b/src/views/crm/billtemplate/BillTemplateForm.vue @@ -141,7 +141,8 @@ const submitForm = async () => { if (!formRef) return const valid = await formRef.value.validate() if (!valid) return - // await productFormRef.value.validate() + const validPro = await productFormRef.value.validate() + if (!validPro) return // console.log(formData.value,444); // 检查 ref 的值 await nextTick(() => { if (productFormRef.value) { diff --git a/src/views/crm/billtemplate/components/index.vue b/src/views/crm/billtemplate/components/index.vue index dd712214e..99e03cd28 100644 --- a/src/views/crm/billtemplate/components/index.vue +++ b/src/views/crm/billtemplate/components/index.vue @@ -30,7 +30,7 @@ \ No newline at end of file diff --git a/src/views/system/organizations/index.vue b/src/views/system/organizations/index.vue new file mode 100644 index 000000000..0131cba46 --- /dev/null +++ b/src/views/system/organizations/index.vue @@ -0,0 +1,306 @@ + + + \ No newline at end of file