|
|
@ -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 [] |
|
|
|