Commit f93f0317 by wusiyi

fix: podus待排单字段显示修改

parent c2b3c106
......@@ -1087,7 +1087,9 @@
<div
:style="{
visibility:
status === 'IN_PRODUCTION' || status === 'PICKING'
status === 'IN_PRODUCTION' ||
status === 'PICKING' ||
status === 'TO_BE_ARRANGE'
? 'visible'
: 'hidden',
}"
......@@ -1108,7 +1110,7 @@
{{ cardItem?.baseSku }}
</span>
</div>
<div class="grid-item">
<div v-if="status !== 'TO_BE_ARRANGE'" class="grid-item">
<span class="grid-item-label">补胚数量:</span>
<span class="grid-item-value">
{{ cardItem?.replenishmentNum || 0 }}
......@@ -2236,7 +2238,7 @@ const downloadTif = async (type: string) => {
tifDownloadLoading.value = false
} else {
fetch(url)
.then(response => {
.then((response) => {
// 确保响应是 OK
if (!response.ok) {
throw new Error('网络响应错误')
......@@ -2244,15 +2246,17 @@ const downloadTif = async (type: string) => {
// 返回图片的二进制数据(Blob)
return response.blob()
})
.then(blob => {
.then((blob) => {
const a = document.createElement('a')
a.href = window.URL.createObjectURL(blob)
a.target = '_blank'
a.download = (res.message as string).split('/')[ (res.message as string).split('/').length - 1]
a.download = (res.message as string).split('/')[
(res.message as string).split('/').length - 1
]
a.click()
pngDownloadLoading.value = false
})
.catch(error => {
.catch((error) => {
console.error('下载图片时出错:', error)
pngDownloadLoading.value = false
})
......
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