Browse Source

no message

feature/v1.3
xpz2018 5 years ago
parent
commit
1a7b2c6b10
5 changed files with 16 additions and 6 deletions
  1. 5
      pages/formate.wxs
  2. 6
      pages/storage/order-create/index.js
  3. 3
      pages/storage/order-create/index.wxml
  4. 6
      pages/storage/order-info/index.wxml
  5. 2
      pages/storage/order-settlement/index.wxml

5
pages/formate.wxs

@ -63,6 +63,10 @@ function formateWeight(weight) {
return (parseFloat(weight) / 1000).toFixed(2)
}
function formatePrice(weight) {
return (parseFloat(weight) * 1000).toFixed(0)
}
function maxWeight(fweight, sweight) {
if(fweight && sweight){
if(fweight > sweight){
@ -91,6 +95,7 @@ function minWeight(fweight, sweight) {
module.exports = {
formateAmount: formateAmount,
formatePrice: formatePrice,
formateWeight: formateWeight,
formatTime: formatTime,
formateDate: formateDate,

6
pages/storage/order-create/index.js

@ -112,6 +112,12 @@ Scene({
onChange: function({detail}) {
this.setData({ activeNames: detail })
},
bindInput: function (e) {
this.data.form[e.currentTarget.id] = e.detail.value
},
onInputChange: function(e){
this.data.form[e.currentTarget.id] = e.detail
},
submitForm: function(){
if(util.isEmpty(this.data.form.factoryName)){
util.showToast('请选择出货方名称')

3
pages/storage/order-create/index.wxml

@ -48,7 +48,6 @@
placeholder="请输司机姓名" value="{{form.driverName || ''}}" bindinput="bindInput" />
</view>
</van-cell>
<van-field label="备注" type="textarea" input-align="right" placeholder="请输入备注" autosize border="{{ false }}" />
</view>
<view class="margin-top"></view>
<van-collapse value="{{ activeNames }}" bind:change="onChange" wx:if="{{poundInfo}}">
@ -84,7 +83,7 @@
<van-cell wx:if="{{poundInfo.netWeight}}">
<view slot="title" class="flex flex-justify">
<view class="text-black">净重(公斤)</view>
<view class="text-gray">{{form.netWeight}}</view>
<view class="text-gray">{{poundInfo.netWeight}}</view>
</view>
</van-cell>
<van-cell wx:if="{{poundInfo.operaterId}}">

6
pages/storage/order-info/index.wxml

@ -20,10 +20,10 @@
<view class="text-gray">{{orderInfo.productName || ''}}</view>
</view>
</van-cell>
<van-cell wx:if="{{orderInfo.packageNumber}}">
<van-cell wx:if="{{orderInfo.packageQuantity}}">
<view slot="title" class="flex flex-justify">
<view class="text-black">纸品包数</view>
<view class="text-gray">{{orderInfo.packageNumber || ''}}</view>
<view class="text-gray">{{orderInfo.packageQuantity || ''}}</view>
</view>
</van-cell>
<van-cell center>
@ -98,7 +98,7 @@
<van-cell center>
<view slot="title" class="flex flex-justify">
<view class="text-black">结算单价(元/吨)</view>
<view class="text-gray">{{orderInfo.settleUnitPrice || ''}}</view>
<view class="text-gray">{{formate.formatePrice(orderInfo.settleUnitPrice)}}</view>
</view>
</van-cell>
<van-cell wx:if="{{orderInfo.packageNumber}}">

2
pages/storage/order-settlement/index.wxml

@ -138,7 +138,7 @@
<van-cell wx:if="{{poundInfo.netWeight}}">
<view slot="title" class="flex flex-justify">
<view class="text-black">净重(公斤)</view>
<view class="text-gray">{{form.netWeight}}</view>
<view class="text-gray">{{poundInfo.netWeight}}</view>
</view>
</van-cell>
<van-cell wx:if="{{poundInfo.operaterId}}">

Loading…
Cancel
Save