|
|
@@ -610,7 +610,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="imageList">
|
|
|
- <div class="imageItem" v-for="(item, index) in images" :key="item.imageId">
|
|
|
+ <div class="imageItem" v-for="(item, index) in images" :key="item.id">
|
|
|
<div class="imageBox">
|
|
|
<img :src="item.downloadUrl">
|
|
|
<div class="btn">
|
|
|
@@ -1724,16 +1724,17 @@ const initDetail = () => {
|
|
|
productName: item.kindName,
|
|
|
}));
|
|
|
}
|
|
|
- if (res.data.imageVoList && res.data.imageVoList.length > 0) {
|
|
|
- images.value = res.data.imageVoList.map(a => {
|
|
|
- return {
|
|
|
- ...a,
|
|
|
- checked: false
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- images.value = []
|
|
|
- }
|
|
|
+ imageEcho(res.data.order.quoteNo)
|
|
|
+ // if (res.data.imageVoList && res.data.imageVoList.length > 0) {
|
|
|
+ // images.value = res.data.imageVoList.map(a => {
|
|
|
+ // return {
|
|
|
+ // ...a,
|
|
|
+ // checked: false
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // images.value = []
|
|
|
+ // }
|
|
|
if (res.data.policy) {
|
|
|
let obj = res.data.policy
|
|
|
fileList.value = [
|
|
|
@@ -1764,7 +1765,26 @@ const initDetail = () => {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+// 影像查询
|
|
|
+const imageEcho = (item: any)=>{
|
|
|
+ api.insurancePolicyApi.getImage(item).then((res: any) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ console.log(res)
|
|
|
+ images.value=res.data.images.map((val:any)=>{
|
|
|
+ return {
|
|
|
+ ...val,
|
|
|
+ checked: false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ console.log(images.value)
|
|
|
+ } else {
|
|
|
+ ElMessage({
|
|
|
+ message: res.msg,
|
|
|
+ type: 'error'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
// 字典
|
|
|
let optionObj = ref({
|
|
|
vehicle_use_code: [], // 车辆用途
|