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