Commit 0685ef6a authored by 邓春圆's avatar 邓春圆

入仓影像

parent 4e8e45f1
...@@ -41,6 +41,15 @@ ...@@ -41,6 +41,15 @@
{{getLocationName(row.orderLocationBackVOList)}} {{getLocationName(row.orderLocationBackVOList)}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('入仓影像')" prop="orderLocationBackVOList" >
<template slot-scope="{row}">
<image-display :pictureUrls="warehouseItem.pictureUrls" :type="5">
<el-button type="text">
查看
</el-button>
</image-display>
</template>
</el-table-column>
</el-table> </el-table>
</el-dialog> </el-dialog>
</template> </template>
...@@ -49,8 +58,10 @@ import { getOrder, getOrderWarehouseIn } from '@/api/ecw/order' ...@@ -49,8 +58,10 @@ import { getOrder, getOrderWarehouseIn } from '@/api/ecw/order'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'
import { parseTime } from '@/utils/ruoyi' import { parseTime } from '@/utils/ruoyi'
import WarehouseAreaSelect from "@/components/WarehouseAreaSelect" import WarehouseAreaSelect from "@/components/WarehouseAreaSelect"
import ImageDisplay from "@/views/ecw/order/components/imageDisplay.vue";
export default { export default {
components: { components: {
ImageDisplay,
WarehouseAreaSelect WarehouseAreaSelect
}, },
filters: {parseTime}, filters: {parseTime},
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
:visible.sync="visible" :visible.sync="visible"
width="80%"> width="80%">
<div style="display: flex;flex-wrap: wrap;"> <div style="display: flex;flex-wrap: wrap;">
<el-image style="width: 200px;height: 200px;margin-right: 10px;margin-bottom: 10px" v-for="(item) in list" :src="item.url"></el-image> <el-image style="width: 200px;height: 200px;margin-right: 10px;margin-bottom: 10px" v-for="(item) in list" :src="bizId ? item.url : item"></el-image>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
...@@ -23,6 +23,10 @@ export default { ...@@ -23,6 +23,10 @@ export default {
props:{ props:{
bizId:[String, Number], bizId:[String, Number],
type:[Number], type:[Number],
pictureUrls:{
type: Array,
default:()=>[]
}
}, },
name: "imageDisplay", name: "imageDisplay",
data(){ data(){
...@@ -44,7 +48,12 @@ export default { ...@@ -44,7 +48,12 @@ export default {
watch:{ watch:{
visible(val){ visible(val){
if(val){ if(val){
this.getList() if(this.bizId){
this.getList()
}else {
this.list = this.pictureUrls
}
} }
} }
} }
......
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