Browse Source

no message

feature/v2.1
xpz2018 4 years ago
parent
commit
057aa73915
2 changed files with 27 additions and 3 deletions
  1. 9
      pages/process/outside-price/index.js
  2. 21
      pages/process/outside-price/index.wxml

9
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)

21
pages/process/outside-price/index.wxml

@ -57,8 +57,25 @@
<view class="{{form.predictDeliveryToFactoryTime ? 'text-black' : 'text-gray'}}">{{form.predictDeliveryToFactoryTime || '- -'}}</view>
</view>
</van-cell>
<van-field label="辅助设备" type="textarea" value="{{ form.equipmentRemark }}" disabled input-align="right" placeholder="暂无" autosize
border="{{false}}" />
<van-field label="辅助设备" type="textarea" value="{{ form.equipmentRemark }}" disabled input-align="right" placeholder="暂无" autosize />
<van-cell>
<view slot="title" class="flex flex-justify">
<view class="flex flex-center text-black">厂内毛重(公斤)</view>
<view class="{{form.onsideGrossWeight ? 'text-gray' : 'text-red'}}">{{form.onsideGrossWeight || '暂无'}}</view>
</view>
</van-cell>
<van-cell>
<view slot="title" class="flex flex-justify">
<view class="flex flex-center text-black">厂内厂外毛重差异(公斤)</view>
<view class="text-gray">{{form.onsideAndOffsiteDifferences || '- -'}}</view>
</view>
</van-cell>
<view class="bg-white" style="padding: 24rpx 32rpx 20rpx 32rpx" wx:if="{{grossList.length}}">
<view class="flex flex-justify" style="padding-bottom: 24rpx">
<view class="flex flex-center text-black">厂内毛重</view>
</view>
<van-uploader file-list="{{ grossList }}" deletable="{{false}}" show-upload="{{false}}" />
</view>
<view style="height:16rpx"></view>
<view class="flex flex-center bg-white" style="justify-content: flex-start;padding: 24rpx 32rpx;border-bottom:1rpx solid #f3f3f3">
<view style="height:30rpx;width:6rpx;background-image: linear-gradient(180deg, #007AFF 0%, #027BFF 15%, #5AABFF 45%, #CAF4FE 100%);"></view>

Loading…
Cancel
Save