Browse Source

上架任务打印

master_hella_20240701
zhaoyiran 6 months ago
parent
commit
f788a48a77
  1. 14
      src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue

14
src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue

@ -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()

Loading…
Cancel
Save