Commit e6d9a5be by wusiyi

feat: 修改tiff文件打开链接

parent debe63b6
...@@ -3053,9 +3053,11 @@ const handleDownload = async (row: PodCnOrderListData) => { ...@@ -3053,9 +3053,11 @@ const handleDownload = async (row: PodCnOrderListData) => {
const type = row.url && row.tiffUrl ? 'tiff' : row.url ? 'png' : 'tiff' const type = row.url && row.tiffUrl ? 'tiff' : row.url ? 'png' : 'tiff'
try { try {
const url = const url =
type === 'png' type === 'tiff'
? filePath + row.url ? row.tiffUrl?.startsWith('/temp')
: `https://ps.jomalls.com/tiff/` + row.tiffUrl ? `https://factory.jomalls.com/upload/factory` + row.tiffUrl
: `https://ps.jomalls.com/tiff/` + row.tiffUrl
: filePath + row.url
if (type === 'tiff') { if (type === 'tiff') {
window.open(url, '_blank') window.open(url, '_blank')
...@@ -3688,8 +3690,11 @@ const downloadTif = async (type: string, templateWidth: number) => { ...@@ -3688,8 +3690,11 @@ const downloadTif = async (type: string, templateWidth: number) => {
) )
const url = const url =
type === 'tiff' type === 'tiff'
? `https://ps.jomalls.com/tiff/` + res.message ? res.message?.startsWith('/temp')
? `https://factory.jomalls.com/upload/factory` + res.message
: `https://ps.jomalls.com/tiff/` + res.message
: filePath + res.message : filePath + res.message
if (type === 'tiff') { if (type === 'tiff') {
window.open(url, '_blank') window.open(url, '_blank')
tifDownloadLoading.value = false tifDownloadLoading.value = false
......
...@@ -3259,16 +3259,12 @@ const handleDownload = async (row: PodUsOrderListData) => { ...@@ -3259,16 +3259,12 @@ const handleDownload = async (row: PodUsOrderListData) => {
const type = row.url && row.tiffUrl ? 'tiff' : row.url ? 'png' : 'tiff' const type = row.url && row.tiffUrl ? 'tiff' : row.url ? 'png' : 'tiff'
try { try {
let url: string = '' const url =
if (type === 'png') { type === 'tiff'
url = filePath + row.url ? row.tiffUrl?.startsWith('/temp')
} else { ? `https://factory.jomalls.com/upload/factory` + row.tiffUrl
if (row.tiffUrl?.startsWith('/temp')) { : `https://ps.jomalls.com/tiff/` + row.tiffUrl
url = `https://factory.jomalls.com/upload/factory` + row.tiffUrl : filePath + row.url
} else {
url = `https://ps.jomalls.com/tiff` + row.tiffUrl
}
}
if (type === 'tiff') { if (type === 'tiff') {
window.open(url, '_blank') window.open(url, '_blank')
...@@ -4641,7 +4637,8 @@ const downloadMaterial = async () => { ...@@ -4641,7 +4637,8 @@ const downloadMaterial = async () => {
if ( if (
status.value === 'IN_PRODUCTION' || status.value === 'IN_PRODUCTION' ||
status.value === 'PICKING' || status.value === 'PICKING' ||
status.value === 'TO_BE_REPLENISHMENT' status.value === 'TO_BE_REPLENISHMENT' ||
status.value === 'TO_BE_ARRANGE'
) { ) {
selectedIds = cardSelection.value selectedIds = cardSelection.value
.map((item: ProductList) => item.id) .map((item: ProductList) => item.id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment