|
@@ -157,13 +157,16 @@
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="left">磅单</view>
|
|
|
- <view v-if="item.status == '已装车' || item.status == '已送达'">
|
|
|
- <image v-if="item.loadPoundImg" @click='shadeshow(item.loadPoundImg)' style='width:100px;height:100px;' :src="item.loadPoundImg" mode=""></image>
|
|
|
- <view v-else>暂无图片</view>
|
|
|
+ <view v-if="item.status == '已装车' || item.status == '已送达'" v-for="(items,count) in item.imgUrl">
|
|
|
+ <view class="pound_list1">
|
|
|
+ <image v-if="items.url" @click='shadeshow(item.loadPoundImg)' style='width:100px;height:100px;margin: 0rpx;' :src="items.url" mode=""></image>
|
|
|
+ <view v-else>暂无图片</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
- <view v-else>
|
|
|
- <image v-if="item.loadPoundImg" @click='shadeshow(item.loadPoundImg)' style='width:100px;height:100px;' :src="item.loadPoundImg" mode=""></image>
|
|
|
- <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="imgUrl"
|
|
|
+ <view v-else class="pound_list">
|
|
|
+ <!-- <image v-if="item.loadPoundImg" @click='shadeshow(item.loadPoundImg)' style='width:100px;height:100px;' :src="item.loadPoundImg" mode=""></image> -->
|
|
|
+ <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="item.imgUrl"
|
|
|
:size-type="['compressed']" :imgIndex='index' @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
|
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
|
|
|
</view>
|
|
@@ -222,8 +225,8 @@
|
|
|
<view v-if="item.loadPoundImg">
|
|
|
<image style='width:100px;height:100px;' @click='shadeshow(item.loadPoundImg)' :src="item.loadPoundImg" mode=""></image>
|
|
|
</view>
|
|
|
- <view v-else>
|
|
|
- <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="imgUrl"
|
|
|
+ <view v-else class="pound_list">
|
|
|
+ <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="item.imgUrl"
|
|
|
:size-type="['compressed']" :imgIndex='index' @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
|
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
|
|
|
</view>
|
|
@@ -367,7 +370,12 @@
|
|
|
imgUrl:[],
|
|
|
unloadPoundImg:'',
|
|
|
action: this.$uploadUrl,
|
|
|
- freightspace:[],
|
|
|
+ freightspace:[
|
|
|
+ {
|
|
|
+ imgUrl:[],
|
|
|
+ }
|
|
|
+
|
|
|
+ ],
|
|
|
feedbackFlag:1,
|
|
|
detailData:{},
|
|
|
allWarehouse: [],
|
|
@@ -561,7 +569,6 @@
|
|
|
},
|
|
|
finishedgoods(){
|
|
|
var that = this
|
|
|
-
|
|
|
if(this.detailData.tranType=='火运'){
|
|
|
uni.showModal({
|
|
|
content: "完货操作后,装车信息不可修改,是否确定完货?",
|
|
@@ -812,15 +819,21 @@
|
|
|
if(res.data.data.tranCarInfoList[0].driver){
|
|
|
this.detailData.driver = res.data.data.tranCarInfoList[0].driver
|
|
|
}
|
|
|
- for (var i = 0; i < res.data.data.tranCarInfoList.length; i++) {
|
|
|
- res.data.data.tranCarInfoList[i].show2=false
|
|
|
- }
|
|
|
this.detailData.driverPhone =res.data.data.tranCarInfoList[0].driverPhone
|
|
|
this.$set(this.detailData,'sendDateStart',res.data.data.tranCarInfoList[0].sendDateStart)
|
|
|
this.detailData.receiveDateEnd =
|
|
|
res.data.data.tranCarInfoList[0].receiveDateEnd
|
|
|
this.detailData.carModel = res.data.data.tranCarInfoList[0].carModel
|
|
|
this.freightspace=res.data.data.tranCarInfoList
|
|
|
+ for (var i = 0; i < res.data.data.tranCarInfoList.length; i++) {
|
|
|
+ this.imgUrl = []
|
|
|
+ res.data.data.tranCarInfoList[i].show2=false
|
|
|
+ let imgs = res.data.data.tranCarInfoList[i].loadPoundImg.split(",")
|
|
|
+ for(let j = 0 ; j < imgs.length ; j++){
|
|
|
+ this.imgUrl.push({url:imgs[j]})
|
|
|
+ }
|
|
|
+ this.freightspace[i].imgUrl = this.imgUrl
|
|
|
+ }
|
|
|
}
|
|
|
}else if(res.data.data.tranType=='汽运'){
|
|
|
for (var i = 0; i < res.data.data.tranCarInfoList.length; i++) {
|
|
@@ -1036,4 +1049,10 @@
|
|
|
width:100%;height:100%;
|
|
|
z-index:10000;
|
|
|
}
|
|
|
+ .pound_list{
|
|
|
+ width: 452rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
</style>
|