diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue index 6a4dbe03c..4f7eb706c 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue @@ -140,6 +140,7 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultExportBtn({hasPermi:'wms:supplierinvoice-record-main:export'}), // 导出 + // defaultButtons.mainLisSelectiontPointBtn(null), // 批量打印 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -157,6 +158,8 @@ const HeadButttondata = [ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() + }else if (val=='selection_point'){// 批量打印 + handleSelectionPoint() } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({ @@ -170,7 +173,24 @@ const buttonBaseClick = (val, item) => { console.log('其他按钮', item) } } +const handleSelectionPoint = async ()=>{ + let rows:any = [] + selectionRows.value.forEach(item=>{ + rows = [...rows,...item.selectionRows.map(item1=>item1.id)] + }) + if(rows.length==0){ + return + } + console.log('批量打印',rows.join(',')) + // let getLoading = ElLoading.service({ + // lock: true, + // text: 'loading...', + // background: 'rgba(0, 0, 0, 0.7)' + // }) + // getLoading?.close() + +} // 列表-操作按钮 const butttondata = (row,$index) => { return [] diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index 445310021..02a7893fd 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -362,7 +362,7 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea { label: t('ts.供应商确认'), name: 'invoice_sent_out', - hide: isShowMainButton(row, ['8']), + hide: isShowMainButton(row, ['3','7']), type: 'danger', color: '', link: true, // 文本展现按钮 @@ -544,7 +544,9 @@ const handleImport = () => { },{ label: t('ts.发票附件'), prop: 'Annex', - tableName:'invoice' + tableName:'invoice', + hiddenDelete:false, + hiddenUpload:false },{ label: t('ts.货运单附件'), prop: 'Annex', @@ -554,7 +556,17 @@ const handleImport = () => { const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) clicKRowId.value = row.id - if(row.status=='1'||row.status=='2'||row.status=='3'||row.status=='6'){ + + // 合同附件 + if(row.status=='1'||row.status=='2'||row.status=='3'||row.status=='6'||row.status=='7'){ + detailAnnexTable.value[0].hiddenDelete = false + detailAnnexTable.value[0].hiddenUpload = false + }else{ + detailAnnexTable.value[0].hiddenDelete = true + detailAnnexTable.value[0].hiddenUpload = true + } + // 发票附件 + if(row.status=='7'){ detailAnnexTable.value[0].hiddenDelete = false detailAnnexTable.value[0].hiddenUpload = false }else{