Commit d3087fce by wuqian

Merge branch 'dev'

parents a0fe056a c60d7f41
...@@ -590,7 +590,7 @@ const trackcodeInput = async () => { ...@@ -590,7 +590,7 @@ const trackcodeInput = async () => {
} }
try { try {
const res = await getSubOrderBySubOrderNumber(orderNumber) const res = await getSubOrderBySubOrderNumber(orderNumber)
if(!res.data){ if (!res.data) {
return ElMessage.error('生产单不存在') return ElMessage.error('生产单不存在')
} }
const d = JSON.parse(JSON.stringify(res.data)) const d = JSON.parse(JSON.stringify(res.data))
...@@ -611,6 +611,11 @@ const trackcodeInput = async () => { ...@@ -611,6 +611,11 @@ const trackcodeInput = async () => {
arr = arr.concat([ arr = arr.concat([
{ url: d.negativeImage, title: '反面', id: d.negativeDesignId }, { url: d.negativeImage, title: '反面', id: d.negativeDesignId },
]) ])
arr.forEach((item) => {
if (item.url && item.url.startsWith('/')) {
item.url = 'https://img.jomalls.com/upload/erp' + item.url
}
})
} }
const result = [] const result = []
arr = arr.filter((el: ImageItemInter) => el.url) arr = arr.filter((el: ImageItemInter) => el.url)
......
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