|
|
|
@ -39,20 +39,24 @@ Scene({ |
|
|
|
wx.hideLoading() |
|
|
|
this.data.param.offsiteGrossWeight = result.data.offsiteGrossWeight |
|
|
|
this.data.param.offsiteTareWeight = result.data.offsiteTareWeight |
|
|
|
var height = app.globalData.fragmentHeight - app.globalData.safeBottom - 120 |
|
|
|
var admin = app.userInfo.type && app.userInfo.type.indexOf('ADMIN') >= 0 |
|
|
|
var height = app.globalData.fragmentHeight - app.globalData.safeBottom |
|
|
|
if(admin){ |
|
|
|
height = app.globalData.fragmentHeight - app.globalData.safeBottom - 120 |
|
|
|
} |
|
|
|
var imageList = [] |
|
|
|
if(result.data.orderImageList && result.data.orderImageList.length){ |
|
|
|
for (let index = 0; index < result.data.orderImageList.length; index++) { |
|
|
|
imageList.push({url: result.data.orderImageList[index]}) |
|
|
|
} |
|
|
|
} |
|
|
|
// var grossList = []
|
|
|
|
// if(result.data.onsideGrossWeightImageList && result.data.onsideGrossWeightImageList.length){
|
|
|
|
// for (let index = 0; index < result.data.onsideGrossWeightImageList.length; index++) {
|
|
|
|
// grossList.push({url: result.data.onsideGrossWeightImageList[index]})
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
this.setData({ form: result.data, admin: app.userInfo.type && app.userInfo.type.indexOf('ADMIN') >= 0, height, imageList }) |
|
|
|
var grossList = [] |
|
|
|
if(result.data.onsideGrossWeightImageList && result.data.onsideGrossWeightImageList.length){ |
|
|
|
for (let index = 0; index < result.data.onsideGrossWeightImageList.length; index++) { |
|
|
|
grossList.push({url: result.data.onsideGrossWeightImageList[index]}) |
|
|
|
} |
|
|
|
} |
|
|
|
this.setData({ form: result.data, admin: app.userInfo.type && app.userInfo.type.indexOf('ADMIN') >= 0, height, imageList, grossList }) |
|
|
|
}).catch(err => { |
|
|
|
wx.hideLoading() |
|
|
|
util.showToast(err) |
|
|
|
|