uu
This commit is contained in:
parent
ff21084fc0
commit
d822296cba
@ -23,14 +23,15 @@
|
|||||||
货物图片
|
货物图片
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 120rpx;">
|
<view style="width: 120rpx;">
|
||||||
<u-button @click="handleCheckDanJu(1)" :plain="true" shape="circle" custom-style="margin: 0 10rpx;height:50rpx;font-size: 28rpx;">
|
<u-button @click="handleCheckDanJu(modelInfo.billPicSendRmk, 1)" :plain="true" shape="circle" custom-style="margin: 0 10rpx;height:50rpx;font-size: 28rpx;">
|
||||||
查看
|
查看
|
||||||
</u-button>
|
</u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-row>
|
</u-row>
|
||||||
<view>
|
<view v-if="showHuoPreview">
|
||||||
<u-row>
|
<u-row>
|
||||||
<u-image @click="handlePreviewDiDan(modelInfo.huoPreviewUrl)" :src="modelInfo.huoPreviewUrl" width="100" height="50" mode="aspectFill"
|
<u-image v-for="(item, index) in modelInfo.billPicSendRmk"
|
||||||
|
@click="handlePreviewDiDan(modelInfo.billPicSendRmk, index)" :src="item" width="100" height="50" mode="aspectFill"
|
||||||
custom-style="margin: 20rpx 20rpx 0 0;"
|
custom-style="margin: 20rpx 20rpx 0 0;"
|
||||||
></u-image>
|
></u-image>
|
||||||
</u-row>
|
</u-row>
|
||||||
@ -41,14 +42,15 @@
|
|||||||
签收底单
|
签收底单
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 120rpx;">
|
<view style="width: 120rpx;">
|
||||||
<u-button @click="handleCheckDanJu(2)" :plain="true" shape="circle" custom-style="margin: 0 10rpx;height:50rpx;font-size: 28rpx;">
|
<u-button @click="handleCheckDanJu(modelInfo.billPicDispatchRmk, 2)" :plain="true" shape="circle" custom-style="margin: 0 10rpx;height:50rpx;font-size: 28rpx;">
|
||||||
查看
|
查看
|
||||||
</u-button>
|
</u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-row>
|
</u-row>
|
||||||
<view>
|
<view v-if="showSignPreview">
|
||||||
<u-row>
|
<u-row>
|
||||||
<u-image @click="handlePreviewDiDan(modelInfo.signPreviewUrl)" :src="modelInfo.signPreviewUrl" width="100" height="50" mode="aspectFill"
|
<u-image v-for="(item, index) in modelInfo.billPicDispatchRmk"
|
||||||
|
@click="handlePreviewDiDan(modelInfo.billPicDispatchRmk, index)" :src="item" width="100" height="50" mode="aspectFill"
|
||||||
custom-style="margin: 20rpx 20rpx 0 0;"
|
custom-style="margin: 20rpx 20rpx 0 0;"
|
||||||
></u-image>
|
></u-image>
|
||||||
</u-row>
|
</u-row>
|
||||||
@ -123,7 +125,12 @@
|
|||||||
queryOption: {
|
queryOption: {
|
||||||
billCode: '', // 运单id
|
billCode: '', // 运单id
|
||||||
},
|
},
|
||||||
modelInfo: {},
|
modelInfo: {
|
||||||
|
billPicSendRmk: [],
|
||||||
|
billPicDispatchRmk: [],
|
||||||
|
},
|
||||||
|
showHuoPreview: false,
|
||||||
|
showSignPreview: false,
|
||||||
danCheckModal: {
|
danCheckModal: {
|
||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
@ -148,20 +155,23 @@
|
|||||||
initData() {
|
initData() {
|
||||||
|
|
||||||
},
|
},
|
||||||
handleCheckDanJu(type) {
|
handleCheckDanJu(list, type) {
|
||||||
let url = ''
|
let url = ''
|
||||||
if(type == 1) {
|
if(list.length == 0) {
|
||||||
url = this.modelInfo.huoPreviewUrl = ''
|
this.showToast("暂无数据")
|
||||||
|
}
|
||||||
|
if(type == 1) {
|
||||||
|
this.showHuoPreview = true
|
||||||
}
|
}
|
||||||
if(type == 2) {
|
if(type == 2) {
|
||||||
url = this.modelInfo.signPreviewUrl = ''
|
this.showSignPreview = true
|
||||||
}
|
}
|
||||||
this.handlePreviewDiDan(url)
|
this.handlePreviewDiDan(list, 0)
|
||||||
// this.danCheckModal.show = true
|
|
||||||
},
|
},
|
||||||
handlePreviewDiDan(url = '') {
|
handlePreviewDiDan(list, index) {
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
urls: url?.join?.(",")
|
urls: list,
|
||||||
|
current: index
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleScanValChange: debounce(function(val){
|
handleScanValChange: debounce(function(val){
|
||||||
@ -169,8 +179,11 @@
|
|||||||
}),
|
}),
|
||||||
async handleSearch(val) {
|
async handleSearch(val) {
|
||||||
let res = await apiService.getOrderDetail({...this.searchParam, _loading: true})
|
let res = await apiService.getOrderDetail({...this.searchParam, _loading: true})
|
||||||
|
|
||||||
// 通过对象合并才能修改父级 数据
|
// 通过对象合并才能修改父级 数据
|
||||||
Object.assign(this.modelInfo, res.data || {})
|
Object.assign(this.modelInfo, res.data || {})
|
||||||
|
this.modelInfo.billPicSendRmk = this.modelInfo.billPicSendRmk?.split(",") || []
|
||||||
|
this.modelInfo.billPicDispatchRmk = this.modelInfo.billPicDispatchRmk?.split(",") || []
|
||||||
},
|
},
|
||||||
handleSubmitDanCheck() {
|
handleSubmitDanCheck() {
|
||||||
this.danCheckModal.show = false
|
this.danCheckModal.show = false
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user