|
@@ -31,15 +31,15 @@
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="凭证照片" :span="2">
|
|
<el-descriptions-item label="凭证照片" :span="2">
|
|
|
- <div v-if="orderDetail.voucherPhoto && orderDetail.voucherPhoto.length > 0">
|
|
|
|
|
|
|
+ <!-- 确保 split(',') 将字符串转为数组进行遍历 -->
|
|
|
|
|
+ <div v-if="orderDetail.voucherPhoto">
|
|
|
<el-image
|
|
<el-image
|
|
|
- v-for="(url, index) in orderDetail.voucherPhoto"
|
|
|
|
|
|
|
+ v-for="(url, index) in orderDetail.voucherPhoto.split(',')"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
:src="url"
|
|
:src="url"
|
|
|
:preview-src-list="orderDetail.voucherPhoto.split(',')"
|
|
:preview-src-list="orderDetail.voucherPhoto.split(',')"
|
|
|
style="width: 80px; height: 80px; margin-right: 8px; object-fit: cover"
|
|
style="width: 80px; height: 80px; margin-right: 8px; object-fit: cover"
|
|
|
fit="cover"
|
|
fit="cover"
|
|
|
- :initial-index="index"
|
|
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
<span v-else>无</span>
|
|
<span v-else>无</span>
|