From 7f7e45a4b98e0ba774f558eb55a09bfa93053037 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Thu, 25 Apr 2024 12:03:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E8=B4=A8=E9=87=8F=E6=8A=A5?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BasicForm/src/BasicForm.vue | 6 ++++-- src/components/UploadFile/src/UploadFile.vue | 4 ++-- .../supplierdeliver/supplierdeliverRequestMain/index.vue | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 0c54a52f8..d7d018198 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -452,9 +452,11 @@ const searchTableSuccess = (formField, searchField, val, type, row) => { } /** 打开弹窗 */ -const open = async (type: string, row?: any, masterParmas?: any, titleName?: any) => { +const open = async (type: string, row?: any, masterParmas?: any, titleName?: any, alltitleName?: any) => { dialogVisible.value = true - if (titleName) { + if(alltitleName){ + dialogTitle.value = alltitleName + }else if (titleName) { dialogTitle.value = t('action.' + titleName) } else { dialogTitle.value = t('action.' + type) diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue index a05ff581f..33de112d5 100644 --- a/src/components/UploadFile/src/UploadFile.vue +++ b/src/components/UploadFile/src/UploadFile.vue @@ -106,12 +106,12 @@ const beforeUpload: UploadProps['beforeUpload'] = (file: UploadRawFile) => { // uploadRef.value.data.path = uploadFile.name // } // 文件上传成功 -const handleFileSuccess: UploadProps['onSuccess'] = (res: any): void => { +const handleFileSuccess: UploadProps['onSuccess'] = (res: any,uploadFile: any): void => { message.success('上传成功') const fileListNew = fileList.value fileListNew.pop() fileList.value = fileListNew - uploadList.value.push({ name: res.data, url: res.data }) + uploadList.value.push({ name: uploadFile.name, url: res.data }) if (uploadList.value.length == uploadNumber.value) { fileList.value = fileList.value.concat(uploadList.value) uploadList.value = [] diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue index efde21c16..1065befd7 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue @@ -625,7 +625,7 @@ const handleUploadQualityReport = async (row) => { if(uploadFile){ uploadFile['componentProps']['upData']['tableId'] = row.masterId } - ploadQualityReportRef.value.open('create', null, {masterId:row.masterId},'上传质检报告')//创建标签页面 createLabel 标题 + ploadQualityReportRef.value.open('create', null, {masterId:row.masterId},'上传质检报告','上传质检报告')//创建标签页面 createLabel 标题 const tableFormKeys = {} SupplierdeliverInspectionDetail.allSchemas.tableFormColumns.forEach((item) => { tableFormKeys[item.field] = item.default ? item.default : ''