diff --git a/pages/post/query.vue b/pages/post/query.vue
index 5efdb2a..19180e2 100644
--- a/pages/post/query.vue
+++ b/pages/post/query.vue
@@ -23,14 +23,15 @@
货物图片
-
+
查看
-
+
-
@@ -41,14 +42,15 @@
签收底单
-
+
查看
-
+
-
@@ -123,7 +125,12 @@
queryOption: {
billCode: '', // 运单id
},
- modelInfo: {},
+ modelInfo: {
+ billPicSendRmk: [],
+ billPicDispatchRmk: [],
+ },
+ showHuoPreview: false,
+ showSignPreview: false,
danCheckModal: {
show: false
},
@@ -148,20 +155,23 @@
initData() {
},
- handleCheckDanJu(type) {
+ handleCheckDanJu(list, type) {
let url = ''
- if(type == 1) {
- url = this.modelInfo.huoPreviewUrl = ''
+ if(list.length == 0) {
+ this.showToast("暂无数据")
+ }
+ if(type == 1) {
+ this.showHuoPreview = true
}
if(type == 2) {
- url = this.modelInfo.signPreviewUrl = ''
+ this.showSignPreview = true
}
- this.handlePreviewDiDan(url)
- // this.danCheckModal.show = true
+ this.handlePreviewDiDan(list, 0)
},
- handlePreviewDiDan(url = '') {
+ handlePreviewDiDan(list, index) {
uni.previewImage({
- urls: url?.join?.(",")
+ urls: list,
+ current: index
})
},
handleScanValChange: debounce(function(val){
@@ -169,8 +179,11 @@
}),
async handleSearch(val) {
let res = await apiService.getOrderDetail({...this.searchParam, _loading: true})
+
// 通过对象合并才能修改父级 数据
Object.assign(this.modelInfo, res.data || {})
+ this.modelInfo.billPicSendRmk = this.modelInfo.billPicSendRmk?.split(",") || []
+ this.modelInfo.billPicDispatchRmk = this.modelInfo.billPicDispatchRmk?.split(",") || []
},
handleSubmitDanCheck() {
this.danCheckModal.show = false