|
|
@ -125,6 +125,9 @@ import * as SupplierinvoiceRecordDetailApi from '@/api/wms/supplierinvoiceRecord |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
|
import * as SupplierinvoiceRequestDetailApi from '@/api/wms/supplierinvoiceRequestDetail' |
|
|
|
import * as PackageApi from "@/api/wms/package"; |
|
|
|
import {getAccessToken} from "@/utils/auth"; |
|
|
|
import {getJmreportBaseUrl} from "@/utils/systemParam"; |
|
|
|
|
|
|
|
// 供应商发票记录主 |
|
|
|
defineOptions({ name: 'SupplierinvoiceRecordMain' }) |
|
|
@ -151,7 +154,7 @@ const { getList, setSearchParams } = tableMethods |
|
|
|
// 列表头部按钮 |
|
|
|
const HeadButttondata = [ |
|
|
|
defaultButtons.defaultExportBtn({hasPermi:'wms:supplierinvoice-record-main:export'}), // 导出 |
|
|
|
// defaultButtons.mainLisSelectiontPointBtn(null), // 批量打印 |
|
|
|
defaultButtons.mainLisSelectiontPointBtn(null), // 批量打印 |
|
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
|
defaultButtons.defaultSetBtn(null), // 设置 |
|
|
@ -180,28 +183,26 @@ const buttonBaseClick = (val, item) => { |
|
|
|
getList() |
|
|
|
} |
|
|
|
} else if (val == 'filtrate') { // 筛选 |
|
|
|
} else { // 其他按钮 |
|
|
|
}else { // 其他按钮 |
|
|
|
console.log('其他按钮', item) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const BASE_URL = getJmreportBaseUrl() |
|
|
|
const srcPoint = ref(BASE_URL + '/jmreport/view/970564557155733504?token=' + getAccessToken()) |
|
|
|
const handleSelectionPoint = async ()=>{ |
|
|
|
let rows:any = [] |
|
|
|
selectionRows.value.forEach(item=>{ |
|
|
|
rows = [...rows,...item.selectionRows.map(item1=>item1.id)] |
|
|
|
}) |
|
|
|
if(rows.length==0){ |
|
|
|
message.warning('至少选择一条数据!') |
|
|
|
return |
|
|
|
} |
|
|
|
console.log('批量打印',rows.join(',')) |
|
|
|
// let getLoading = ElLoading.service({ |
|
|
|
// lock: true, |
|
|
|
// text: 'loading...', |
|
|
|
// background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
// }) |
|
|
|
// getLoading?.close() |
|
|
|
|
|
|
|
|
|
|
|
window.open(srcPoint.value+'&ids='+rows.join(',')) |
|
|
|
} |
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
|
const butttondata = (row,$index) => { |
|
|
|
return [ |
|
|
|