|
@ -68,6 +68,7 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
import { formatTime } from '@/utils/index' |
|
|
import { formatTime } from '@/utils/index' |
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
|
|
|
import * as PackageApi from '@/api/wms/package' |
|
|
|
|
|
|
|
|
defineOptions({ name: 'Callmaterials' }) |
|
|
defineOptions({ name: 'Callmaterials' }) |
|
|
|
|
|
|
|
@ -243,12 +244,19 @@ const handlePoint = async (row) => { |
|
|
window.open(src.value+'&relateNumber='+row.id) |
|
|
window.open(src.value+'&relateNumber='+row.id) |
|
|
} |
|
|
} |
|
|
// 批量打印 |
|
|
// 批量打印 |
|
|
const handleSelectionPoint = ()=>{ |
|
|
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)] |
|
|
}) |
|
|
}) |
|
|
console.log('批量打印',rows) |
|
|
console.log('批量打印',rows.join(',')) |
|
|
|
|
|
await PackageApi.batchPrintingLable(rows.join(',')).then(res => { |
|
|
|
|
|
console.log(res) |
|
|
|
|
|
message.success('创建标签成功') |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
message.error('创建标签失败') |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
/** 导入 */ |
|
|
/** 导入 */ |
|
|
const importFormRef = ref() |
|
|
const importFormRef = ref() |
|
|