|
|
@ -80,9 +80,12 @@ |
|
|
|
<a-col :span="24"> |
|
|
|
<div |
|
|
|
><span class="titleLabel">故障图片:</span> |
|
|
|
<div v-for="(item, index) in detail.attachments" :key="index"> |
|
|
|
<img alt="" :src="item.url" /> |
|
|
|
</div> |
|
|
|
<a-upload |
|
|
|
v-model:file-list="fileLists" |
|
|
|
list-type="picture" |
|
|
|
disabled |
|
|
|
> |
|
|
|
</a-upload> |
|
|
|
</div> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
@ -120,9 +123,12 @@ |
|
|
|
<a-col :span="24"> |
|
|
|
<div |
|
|
|
><span class="titleLabel">处理图片:</span> |
|
|
|
<div v-for="(item, index) in dealDetail.attachments" :key="index"> |
|
|
|
<img alt="" :src="item.url" /> |
|
|
|
</div> |
|
|
|
<a-upload |
|
|
|
v-model:file-list="fileLists1" |
|
|
|
list-type="picture" |
|
|
|
disabled |
|
|
|
> |
|
|
|
</a-upload> |
|
|
|
</div> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
@ -201,6 +207,8 @@ |
|
|
|
cost: '', |
|
|
|
attachments: '', |
|
|
|
}); |
|
|
|
const fileLists = ref([]) |
|
|
|
const fileLists1 = ref([]) |
|
|
|
const progress = ref([]); |
|
|
|
const statusOptions = [ |
|
|
|
{ |
|
|
@ -295,10 +303,21 @@ |
|
|
|
const visible = ref(false); |
|
|
|
const showDrawer = async (id) => { |
|
|
|
visible.value = true; |
|
|
|
fileLists.value= [] |
|
|
|
fileLists1.value= [] |
|
|
|
const data = await getInfo(id); |
|
|
|
for (let i in detail) { |
|
|
|
detail[i] = data[i]; |
|
|
|
} |
|
|
|
if (detail.attachments && detail.attachments.length > 0) { |
|
|
|
detail.attachments.forEach((i) => { |
|
|
|
fileLists.value.push({ |
|
|
|
url: i.url, |
|
|
|
name: i.name, |
|
|
|
status: 'done', |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
const progressLine = await queryProcess(id); |
|
|
|
progress.value = progressLine; |
|
|
|
console.log(progress.value); |
|
|
@ -308,6 +327,15 @@ |
|
|
|
dealDetail[i] = data1[i]; |
|
|
|
} |
|
|
|
} |
|
|
|
if (dealDetail.attachments && dealDetail.attachments.length > 0) { |
|
|
|
dealDetail.attachments.forEach((i) => { |
|
|
|
fileLists1.value.push({ |
|
|
|
url: i.url, |
|
|
|
name: i.name, |
|
|
|
status: 'done', |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
const data2 = await getOrderDelayHistory(id); |
|
|
|
if (data2) { |
|
|
|
delayInfo.value = data2; |
|
|
@ -365,6 +393,8 @@ |
|
|
|
dealDetail, |
|
|
|
statusText, |
|
|
|
progress, |
|
|
|
fileLists, |
|
|
|
fileLists1 |
|
|
|
}; |
|
|
|
}, |
|
|
|
}); |
|
|
|