Commit f93f0317 by wusiyi

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

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