From 2af6a94072108f6a6070c1e376923a2d3cda3334 Mon Sep 17 00:00:00 2001 From: louis <869322496@qq.com> Date: Mon, 4 Mar 2024 14:17:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8E=9F=E6=9D=90=E6=96=99=E7=9B=98?= =?UTF-8?q?=E7=82=B9=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/backend/api/typings.d.ts | 2 + src/enums/dictEnum.ts | 3 +- src/store/modules/dict.ts | 3 +- src/views/contract/index.vue | 8 +- src/views/meterials-inventory/columns.tsx | 230 +++++++++++++-------- src/views/meterials-inventory/index.vue | 236 ++++++++++------------ 6 files changed, 272 insertions(+), 210 deletions(-) diff --git a/src/api/backend/api/typings.d.ts b/src/api/backend/api/typings.d.ts index c99ec9a..040acf2 100644 --- a/src/api/backend/api/typings.d.ts +++ b/src/api/backend/api/typings.d.ts @@ -1412,6 +1412,8 @@ declare namespace API { agent: string; /** 领料单号 */ issuanceNumber?: number; + /** 项目 */ + project: string; /** 备注 */ remark: string; /** 附件 */ diff --git a/src/enums/dictEnum.ts b/src/enums/dictEnum.ts index 4f16588..7fd8eed 100644 --- a/src/enums/dictEnum.ts +++ b/src/enums/dictEnum.ts @@ -1,3 +1,4 @@ export enum DictEnum { - ContractType = 'contract_type', + ContractType = 'contract_type', // 合同类型 + Unit = 'unit', // 单位 } diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index f176545..08b3fe1 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -4,7 +4,8 @@ import Api from '@/api'; import { store } from '@/store'; import { DictEnum } from '@/enums/dictEnum'; const needCachedKey = [ - DictEnum.ContractType, // 合同类型 + DictEnum.ContractType, + DictEnum.Unit ]; export const useDictStore = defineStore('dict', () => { diff --git a/src/views/contract/index.vue b/src/views/contract/index.vue index bbd4f3c..8d1f5aa 100644 --- a/src/views/contract/index.vue +++ b/src/views/contract/index.vue @@ -33,7 +33,7 @@ import { Button } from 'ant-design-vue'; import AttachmentManage from '@/components/business/attachment-manage/index.vue'; import AttachmentUpload from '@/components/business/attachment-upload/index.vue'; -import { ref, onMounted, type FunctionalComponent } from 'vue'; + import { ref, onMounted, type FunctionalComponent } from 'vue'; defineOptions({ name: 'Contract', }); @@ -96,7 +96,7 @@ import { ref, onMounted, type FunctionalComponent } from 'vue'; ]; }); - const openAttachmentUploadModal = async (record: API.ContractEntity) => { + const openAttachmentUploadModal = async (record: TableListItem) => { isUploadPopupVisiable.value = true; fnModal.show({ width: 800, @@ -169,7 +169,7 @@ import { ref, onMounted, type FunctionalComponent } from 'vue'; dynamicTableInstance?.reload(); }; - const FilesRender: FunctionalComponent = (contract: API.ContractEntity) => { + const FilesRender: FunctionalComponent = (contract: TableListItem) => { const [fnModal] = useModal(); return (