Commit e6d9a5be by wusiyi

feat: 修改tiff文件打开链接

parent debe63b6
......@@ -3053,9 +3053,11 @@ const handleDownload = async (row: PodCnOrderListData) => {
const type = row.url && row.tiffUrl ? 'tiff' : row.url ? 'png' : 'tiff'
try {
const url =
type === 'png'
? filePath + row.url
: `https://ps.jomalls.com/tiff/` + row.tiffUrl
type === 'tiff'
? row.tiffUrl?.startsWith('/temp')
? `https://factory.jomalls.com/upload/factory` + row.tiffUrl
: `https://ps.jomalls.com/tiff/` + row.tiffUrl
: filePath + row.url
if (type === 'tiff') {
window.open(url, '_blank')
......@@ -3688,8 +3690,11 @@ const downloadTif = async (type: string, templateWidth: number) => {
)
const url =
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
if (type === 'tiff') {
window.open(url, '_blank')
tifDownloadLoading.value = false
......
......@@ -3259,16 +3259,12 @@ const handleDownload = async (row: PodUsOrderListData) => {
const type = row.url && row.tiffUrl ? 'tiff' : row.url ? 'png' : 'tiff'
try {
let url: string = ''
if (type === 'png') {
url = filePath + row.url
} else {
if (row.tiffUrl?.startsWith('/temp')) {
url = `https://factory.jomalls.com/upload/factory` + row.tiffUrl
} else {
url = `https://ps.jomalls.com/tiff` + row.tiffUrl
}
}
const url =
type === 'tiff'
? row.tiffUrl?.startsWith('/temp')
? `https://factory.jomalls.com/upload/factory` + row.tiffUrl
: `https://ps.jomalls.com/tiff/` + row.tiffUrl
: filePath + row.url
if (type === 'tiff') {
window.open(url, '_blank')
......@@ -4641,7 +4637,8 @@ const downloadMaterial = async () => {
if (
status.value === 'IN_PRODUCTION' ||
status.value === 'PICKING' ||
status.value === 'TO_BE_REPLENISHMENT'
status.value === 'TO_BE_REPLENISHMENT' ||
status.value === 'TO_BE_ARRANGE'
) {
selectedIds = cardSelection.value
.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