From 2f5b4e5487159560eaead8c0723a0c20c2ebf468 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Sat, 29 Jun 2024 14:54:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Detail/src/Detail.vue | 17 +++++++++++++---- .../supplierinvoiceRecordMain/index.vue | 14 ++++++++++++++ .../supplierinvoiceRecordMain.data.ts | 14 +++++++++++++- .../supplierinvoiceRequestMain/index.vue | 6 ++++++ .../supplierinvoiceRequestMain.data.ts | 2 +- 5 files changed, 47 insertions(+), 6 deletions(-) diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 07411ee65..52b781867 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -135,7 +135,7 @@ - + - - @@ -240,6 +238,7 @@ const props = defineProps({ type: Object, required: false, default: ()=>({ + hidden:false, label: '附件', showDownload:false, showPreview:false, @@ -433,7 +432,8 @@ if (props.isBasic == true) { } } -const otherList = [...props.annexTable,{ + +let otherList = [...props.annexTable,{ label:props.annexAlias.label, prop:'Annex' },{ @@ -443,6 +443,15 @@ const otherList = [...props.annexTable,{ label:'变更记录', prop:'ChangeRecord' }] +if(props.annexAlias.hidden){ + otherList = [...props.annexTable,{ + label:'备注', + prop:'Remarks' + },{ + label:'变更记录', + prop:'ChangeRecord' + }] +} tabsList.value = [...tabsList?.value,...otherList] if (!tabsList.value || tabsList.value && tabsList.value.length == otherList.length) { diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue index 4f7eb706c..91eabd141 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue @@ -88,8 +88,19 @@ queryField:'tableId', rowField:'annexMasterId', }], + },{ + label: t('ts.其他附件'), + prop: 'Annex', + tableName:'invoiceOther', + showDownload:true, + hiddenDelete:true, + queryParams:[{ + queryField:'tableId', + rowField:'annexMasterId', + }], }]" :annexAlias="{ + hidden:true, label:t('ts.其他附件'), showDownload:true, hiddenDelete:true @@ -224,6 +235,9 @@ const openDetail = async (row: any, titleName: any, titleValue: any) => { detailRef.value.openDetail(row, titleName, titleValue) } const searchList = (model)=>{ + if(model.postingDate){ + model.postingDate[1] = model.postingDate[1].replace('00:00:00','23:59:59') + } selectionRows.value = [] setSearchParams(model) } diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts index b330cc01c..a0db79bc5 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts @@ -14,6 +14,18 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([ width: 180, fixed: 'left' }, + isSearch: false + }, + { + label: '发票申请单号', + field:'requestNumber', + sort: 'custom', + table: { + width: 180, + fixed: 'left' + }, + sortSearchDefault:1, + sortTableDefault:1, isSearch: true }, { @@ -368,7 +380,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([ value:[], component: 'DatePicker', componentProps: { - valueFormat: 'x', + valueFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD', type: 'daterange', defaultTime: [new Date('1 '), new Date('1 ')] diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index 354b5ed15..fc389e9d7 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -137,6 +137,7 @@ fieldTableColumn="poLine" :annexTable="detailAnnexTable" :annexAlias="{ + hidden:true, label:t('ts.其他附件') }" :otherHeadButttonData="[{ @@ -645,6 +646,11 @@ const handleImport = () => { prop: 'Annex', tableName:'waybill', fileSize:20 + },{ + label: t('ts.其他附件'), + prop: 'Annex', + tableName:'invoiceOther', + fileSize:20 }]) const openDetail = (row : any, titleName : any, titleValue : any) => { const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts index d2935dfe0..60cf625fb 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts @@ -1045,7 +1045,7 @@ export const SupplierinvoiceRequestFinance = useCrudSchemas(reactive