From e9dda9e6c52cb737267185f5118ded73c0053115 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期二, 06 五月 2025 17:13:41 +0800 Subject: [PATCH] feat: 接口 --- src/components/commonView/MaterialInfoView.vue | 64 +++++++++++-------------------- 1 files changed, 23 insertions(+), 41 deletions(-) diff --git a/src/components/commonView/MaterialInfoView.vue b/src/components/commonView/MaterialInfoView.vue index 4026f93..5308a1b 100644 --- a/src/components/commonView/MaterialInfoView.vue +++ b/src/components/commonView/MaterialInfoView.vue @@ -1,42 +1,25 @@ <template> - <ProFormCol> - <ProFormColItem :span="12"> - <ProFormItemV2 - label="浼佷笟缂寸◣鏄庣粏姹囨�昏〃:" - prop="enterpriseTaxSubFileUrl" - style="margin-bottom: 22px" - > - <ProFormUpload - v-model:file-url="form.enterpriseTaxSubFileUrl" - :limitShowViewMoreBtnCount="4" - ></ProFormUpload> - </ProFormItemV2> - </ProFormColItem> - </ProFormCol> - <ProFormCol> - <ProFormColItem :span="12"> - <ProFormItemV2 - label="浼佷笟钀ユ敹姹囨�昏〃:" - prop="enterpriseOperateFileUrl" - style="margin-bottom: 22px" - > - <ProFormUpload - v-model:file-url="form.enterpriseOperateFileUrl" - :limitShowViewMoreBtnCount="4" - ></ProFormUpload> - </ProFormItemV2> - </ProFormColItem> - </ProFormCol> - <ProFormCol> - <ProFormColItem :span="12"> - <ProFormItemV2 label="鍏ラ┗鎯呭喌鍏宠仈璇存槑:" prop="enterpriseRelateFileUrl"> - <ProFormUpload - v-model:file-url="form.enterpriseRelateFileUrl" - :limitShowViewMoreBtnCount="4" - ></ProFormUpload> - </ProFormItemV2> - </ProFormColItem> - </ProFormCol> + <!-- <ProFormCol> + <ProFormColItem :span="12"> --> + <ProFormItemV2 + :label="`${item.fileTypeName}:`" + :prop="`parkCollectFileList.${index}.listFiles`" + :check-rules="[{ message: `璇蜂笂浼�${item.fileTypeName}`, type: 'upload' }]" + :label-width="160" + :style="{ marginBottom: index === form.parkCollectFileList.length - 1 ? 0 : '22px' }" + v-for="(item, index) in form.parkCollectFileList" + :key="item.fileSearchTypeId" + > + <ProFormUpload + v-model:file-url="item.listFiles" + :limitFileSize="50" + :showTip="false" + :limitShowViewMoreBtnCount="4" + accept="doc,docx,pdf,xls,xlsx,jpg/jpeg,png" + ></ProFormUpload> + </ProFormItemV2> + <!-- </ProFormColItem> + </ProFormCol> --> </template> <script setup lang="ts"> @@ -47,6 +30,7 @@ ProFormUpload, UploadUserFile, } from '@bole-core/components'; +import { CustomerApplyFileTypeListItem } from './utils'; defineOptions({ name: 'MaterialInfoView', @@ -54,9 +38,7 @@ type Props = { form: { - enterpriseTaxSubFileUrl: UploadUserFile[]; - enterpriseOperateFileUrl: UploadUserFile[]; - enterpriseRelateFileUrl: UploadUserFile[]; + parkCollectFileList: CustomerApplyFileTypeListItem[]; }; }; -- Gitblit v1.9.1