|
|
@ -99,6 +99,7 @@ import * as PutawayJobMainApi from '@/api/wms/putawayJobMain' |
|
|
|
import * as PutawayJobDetailApi from '@/api/wms/putawayJobDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
|
import {getAccessToken} from "@/utils/auth"; |
|
|
|
// 上架任务主 |
|
|
|
defineOptions({ name: 'PutawayJobMain' }) |
|
|
|
|
|
|
@ -229,10 +230,10 @@ const getSelectionRows = (currentPage,currentPageSelectionRows) => { |
|
|
|
const handleSelectionPoint = async ()=>{ |
|
|
|
let rows:any = [] |
|
|
|
selectionRows.value.forEach(item=>{ |
|
|
|
rows = [...rows,...item.selectionRows.map(item1=>item1.packingNumber)] |
|
|
|
rows = [...rows,...item.selectionRows.map(item1=>item1.masterId)] |
|
|
|
}) |
|
|
|
console.log('批量打印',rows.join(',')) |
|
|
|
|
|
|
|
window.open(src.value+'&id='+rows.join(',')) |
|
|
|
// window.open(srcPoint.value+'&relateNumber='+rows.join(',')) |
|
|
|
} |
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
@ -271,11 +272,14 @@ const buttonTableClick = async (val, row) => { |
|
|
|
console.log('列表-操作按钮事件-承接') |
|
|
|
} else if (val == 'documentPrint') { |
|
|
|
// 单据打印 |
|
|
|
handleDocumentPrint(row.masterId) |
|
|
|
handleDocumentPrint(row) |
|
|
|
} |
|
|
|
} |
|
|
|
const handleDocumentPrint = async (id) => { |
|
|
|
alert('单据打印') |
|
|
|
|
|
|
|
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL |
|
|
|
const src = ref(BASE_URL + '/jmreport/view/954234424010665984?token=' + getAccessToken()) |
|
|
|
const handleDocumentPrint = async (row) => { |
|
|
|
window.open(src.value+'&id='+row.masterId) |
|
|
|
} |
|
|
|
// 子包装数据 |
|
|
|
const detailParenPackingRef = ref() |
|
|
|