修复物料管理的查看图片
This commit is contained in:
parent
c79553cb0e
commit
959afef0e8
@ -42,7 +42,7 @@ if (process.env.NODE_ENV == 'development') {
|
|||||||
// axios.defaults.baseURL = 'http://192.168.34.117:6023/' // 杨杰本地
|
// axios.defaults.baseURL = 'http://192.168.34.117:6023/' // 杨杰本地
|
||||||
// axios.defaults.baseURL = 'http://139.9.66.234:6324/' // 河南春笋
|
// axios.defaults.baseURL = 'http://139.9.66.234:6324/' // 河南春笋
|
||||||
// axios.defaults.baseURL ='http://124.71.67.160:8088/' //中建四局线上
|
// axios.defaults.baseURL ='http://124.71.67.160:8088/' //中建四局线上
|
||||||
// axios.defaults.baseURL ='http://182.90.224.147:100/' //演示平台/
|
axios.defaults.baseURL ='http://182.90.224.147:100/' //演示平台/
|
||||||
// axios.defaults.baseURL = 'http://192.168.34.125:6023/' //杨意本地 http/1.1
|
// axios.defaults.baseURL = 'http://192.168.34.125:6023/' //杨意本地 http/1.1
|
||||||
// axios.defaults.baseURL ='http://47.97.202.104:6023/' //金林湾线上
|
// axios.defaults.baseURL ='http://47.97.202.104:6023/' //金林湾线上
|
||||||
// axios.defaults.baseURL = 'http://192.168.34.231:6023/'; //杨思瑞本地
|
// axios.defaults.baseURL = 'http://192.168.34.231:6023/'; //杨思瑞本地
|
||||||
@ -74,7 +74,7 @@ if (process.env.NODE_ENV == 'development') {
|
|||||||
// axios.defaults.baseURL = 'http://183.234.150.152:9090/' //华发 huaxin 123456789
|
// axios.defaults.baseURL = 'http://183.234.150.152:9090/' //华发 huaxin 123456789
|
||||||
// axios.defaults.baseURL = 'http://182.90.224.147:18170' //瑞士恒通线上
|
// axios.defaults.baseURL = 'http://182.90.224.147:18170' //瑞士恒通线上
|
||||||
// axios.defaults.baseURL = 'http://58.250.210.9:9090' //深汕线上
|
// axios.defaults.baseURL = 'http://58.250.210.9:9090' //深汕线上
|
||||||
axios.defaults.baseURL = 'http://192.168.34.221:8188' //郭圣雄本地
|
// axios.defaults.baseURL = 'http://192.168.34.221:8200' //郭圣雄本地
|
||||||
|
|
||||||
} else if (process.env.NODE_ENV == 'debug') {
|
} else if (process.env.NODE_ENV == 'debug') {
|
||||||
axios.defaults.baseURL = 'https://www.ceshi.com'
|
axios.defaults.baseURL = 'https://www.ceshi.com'
|
||||||
|
|||||||
@ -39,7 +39,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import LeftOne from './leftOne'
|
import LeftOne from './leftOne'
|
||||||
import LeftTwo from './leftTwo'
|
import LeftTwo from './leftTwo'
|
||||||
import LeftThree from './LeftThree'
|
import LeftThree from './leftThree'
|
||||||
import LeftFour from './leftFour'
|
import LeftFour from './leftFour'
|
||||||
import Center from './center'
|
import Center from './center'
|
||||||
import CenterBOne from './centerBOne'
|
import CenterBOne from './centerBOne'
|
||||||
|
|||||||
@ -26,10 +26,10 @@
|
|||||||
<el-table-column prop="netWeight" label="净重" align="center"></el-table-column>
|
<el-table-column prop="netWeight" label="净重" align="center"></el-table-column>
|
||||||
<el-table-column prop="tareTime" label="毛重时间" align="center"></el-table-column>
|
<el-table-column prop="tareTime" label="毛重时间" align="center"></el-table-column>
|
||||||
<el-table-column prop="grossTime" label="皮重时间" align="center"></el-table-column>
|
<el-table-column prop="grossTime" label="皮重时间" align="center"></el-table-column>
|
||||||
<el-table-column label="操作" align="center" width="300">
|
<el-table-column label="操作" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div class="tableBtns">
|
<div class="tableBtns">
|
||||||
<div @click="seePhonegrap(scope.row)" class="operationText">
|
<div @click="seePhonegrap(scope.row.weighPicList)" class="operationText">
|
||||||
<i class="el-icon-delete" style="color: #eb5760; font-size: 16px; margin-right: 2px"></i>
|
<i class="el-icon-delete" style="color: #eb5760; font-size: 16px; margin-right: 2px"></i>
|
||||||
<span>查看过磅照片</span>
|
<span>查看过磅照片</span>
|
||||||
</div>
|
</div>
|
||||||
@ -49,21 +49,31 @@
|
|||||||
:total="Number(total)"
|
:total="Number(total)"
|
||||||
></el-pagination>
|
></el-pagination>
|
||||||
</vue-scroll>
|
</vue-scroll>
|
||||||
<el-dialog title="过磅照片" :visible.sync="dialogVisiblePhone" width="40%" :before-close="handleClose">
|
<el-dialog title="过磅照片" :modal-append-to-body="false" :visible.sync="dialogVisiblePhone" width="40%" :before-close="handleClose" @close="closeDialog">
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<h6>第一次称重照片</h6>
|
<h6>第一次称重照片</h6>
|
||||||
<img src="@/assets/images/test.png" alt="" />
|
<div v-if="srcList.length !== 0">
|
||||||
<img src="@/assets/images/test.png" alt="" />
|
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.emptyPic1}`" :preview-src-list="srcList"> </el-image>
|
||||||
<img src="@/assets/images/test.png" alt="" />
|
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.emptyPic2}`" :preview-src-list="srcList"> </el-image>
|
||||||
<img src="@/assets/images/test.png" alt="" />
|
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.emptyPic3}`" :preview-src-list="srcList"> </el-image>
|
||||||
|
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.emptyPic4}`" :preview-src-list="srcList"> </el-image>
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
暂无数据
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h6>第二次称重照片</h6>
|
<h6>第二次称重照片</h6>
|
||||||
<img src="@/assets/images/test.png" alt="" />
|
<div v-if="srcList.length !== 0">
|
||||||
<img src="@/assets/images/test.png" alt="" />
|
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.fullPic1}`" :preview-src-list="srcList"> </el-image>
|
||||||
<img src="@/assets/images/test.png" alt="" />
|
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.fullPic2}`" :preview-src-list="srcList"> </el-image>
|
||||||
<img src="@/assets/images/test.png" alt="" />
|
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.fullPic3}`" :preview-src-list="srcList"> </el-image>
|
||||||
|
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.fullPic4}`" :preview-src-list="srcList"> </el-image>
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
暂无数据
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@ -80,6 +90,7 @@ import {
|
|||||||
deleteWeighInfoItem,
|
deleteWeighInfoItem,
|
||||||
weighTypeList
|
weighTypeList
|
||||||
} from '@/assets/js/api/quality.js'
|
} from '@/assets/js/api/quality.js'
|
||||||
|
import axios from 'axios'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@ -97,8 +108,9 @@ export default {
|
|||||||
pageSize: -1,
|
pageSize: -1,
|
||||||
total: 0,
|
total: 0,
|
||||||
dialogVisiblePhone: false,
|
dialogVisiblePhone: false,
|
||||||
devId: '',
|
phoneList: [],
|
||||||
fuel: ''
|
imgUrl: axios.defaults.baseURL,
|
||||||
|
srcList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -107,12 +119,27 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
seePhonegrap(val) {
|
seePhonegrap(val) {
|
||||||
console.log(val)
|
|
||||||
this.dialogVisiblePhone = true
|
this.dialogVisiblePhone = true
|
||||||
|
if (val) {
|
||||||
|
this.phoneList = val[0]
|
||||||
|
}else{
|
||||||
|
this.phoneList = []
|
||||||
|
}
|
||||||
|
console.log(this.phoneList)
|
||||||
|
let arr = Object.values(this.phoneList)
|
||||||
|
arr.forEach((item, index, array) => {
|
||||||
|
if (index !== 0 && index < 9) {
|
||||||
|
this.srcList.push(`${this.imgUrl}/image/${array[index]}`)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleClose(done) {
|
handleClose(done) {
|
||||||
done()
|
done()
|
||||||
},
|
},
|
||||||
|
closeDialog(){
|
||||||
|
this.srcList.splice(0, this.srcList.length)
|
||||||
|
console.log("关闭",this.srcList);
|
||||||
|
},
|
||||||
//获取列表数据
|
//获取列表数据
|
||||||
getListData() {
|
getListData() {
|
||||||
let data = {
|
let data = {
|
||||||
@ -203,4 +230,9 @@ th {
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
.imgStyle {
|
||||||
|
width: 170px;
|
||||||
|
height: 100px;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user