diff --git a/pages/process/outside-price/index.js b/pages/process/outside-price/index.js index 86a211d..4f54b54 100644 --- a/pages/process/outside-price/index.js +++ b/pages/process/outside-price/index.js @@ -20,6 +20,7 @@ Scene({ offsiteGrossWeight: null, offsiteTareWeight: null, }, + grossList: [], imageList: [], intoview: '' }, @@ -45,7 +46,13 @@ Scene({ imageList.push({url: result.data.orderImageList[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) diff --git a/pages/process/outside-price/index.wxml b/pages/process/outside-price/index.wxml index ceec2c0..bba53a4 100644 --- a/pages/process/outside-price/index.wxml +++ b/pages/process/outside-price/index.wxml @@ -57,8 +57,25 @@ {{form.predictDeliveryToFactoryTime || '- -'}} - + + + + 厂内毛重(公斤) + {{form.onsideGrossWeight || '暂无'}} + + + + + 厂内厂外毛重差异(公斤) + {{form.onsideAndOffsiteDifferences || '- -'}} + + + + + 厂内毛重 + + +