Browse Source

ui

feature/v1.6
xpz2018 4 years ago
parent
commit
0278c356df
4 changed files with 5 additions and 3 deletions
  1. 4
      pages/home/factory-list/index.js
  2. 2
      pages/storage/order-create/index.wxml
  3. 1
      pages/storage/order-settlement/index.js
  4. 1
      pages/storage/order-settlement/index.wxml

4
pages/home/factory-list/index.js

@ -152,9 +152,9 @@ Scene({
saveChanel(this.data.nowItem).then(result => { saveChanel(this.data.nowItem).then(result => {
wx.hideLoading() wx.hideLoading()
if(this.data.nowItem.id){ if(this.data.nowItem.id){
util.showToast('修改成功')
util.showToast('修改成功')
} else { } else {
util.showToast('添加成功')
util.showToast('添加成功')
} }
this.onRefreshList() this.onRefreshList()
}).catch(err => { }).catch(err => {

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

@ -47,7 +47,7 @@
</van-cell> </van-cell>
<van-field id="driverName" label="司机姓名" value="{{ form.driverName || '' }}" maxlength="12" placeholder="请输司机姓名" clearable input-align="right" bind:change="bindInput"></van-field> <van-field id="driverName" label="司机姓名" value="{{ form.driverName || '' }}" maxlength="12" placeholder="请输司机姓名" clearable input-align="right" bind:change="bindInput"></van-field>
<van-field id="unitPrice" label="出货单价(元/公斤)" title-width="240rpx" value="{{ form.driverName || '' }}" maxlength="8" type="digit" placeholder="请输入出货单价" clearable input-align="right" bind:change="bindInput"></van-field>
<van-field id="unitPrice" label="出货单价(元/公斤)" title-width="240rpx" value="{{ form.unitPrice || '' }}" maxlength="8" type="digit" placeholder="请输入出货单价" clearable input-align="right" bind:change="bindInput"></van-field>
<van-field id="estimatedAmount" label="预估金额" value="{{ form.estimatedAmount || '' }}" maxlength="8" type="digit" placeholder="请输入预估金额" clearable input-align="right" bind:change="bindInput"></van-field> <van-field id="estimatedAmount" label="预估金额" value="{{ form.estimatedAmount || '' }}" maxlength="8" type="digit" placeholder="请输入预估金额" clearable input-align="right" bind:change="bindInput"></van-field>

1
pages/storage/order-settlement/index.js

@ -54,6 +54,7 @@ Scene({
if(result.data.weightNote.secondWeightImageUrl2){ if(result.data.weightNote.secondWeightImageUrl2){
result.data.weightNote.totalWeighingPicture.push(result.data.weightNote.secondWeightImageUrl2) result.data.weightNote.totalWeighingPicture.push(result.data.weightNote.secondWeightImageUrl2)
} }
result.data.outboundDeliveryOrderSettlementInfo.netWeight = math.divide(result.data.outboundDeliveryOrderSettlementInfo.netWeight, 1000)
if(result.data.outboundDeliveryOrderSettlementInfo.id){ if(result.data.outboundDeliveryOrderSettlementInfo.id){
this.setData({ this.setData({
safeBottom: app.globalData.safeBottom, safeBottom: app.globalData.safeBottom,

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

@ -148,6 +148,7 @@
</van-collapse-item> </van-collapse-item>
</van-collapse> </van-collapse>
<view style="height:16rpx" wx:if="{{orderInfo && orderInfo.status == 1}}"></view>
<submit-layout wx:if="{{orderInfo && orderInfo.status == 1}}"> <submit-layout wx:if="{{orderInfo && orderInfo.status == 1}}">
<van-button type="danger" custom-style="height:88rpx;width:254rpx" bind:click="closeForm">关闭订单</van-button> <van-button type="danger" custom-style="height:88rpx;width:254rpx" bind:click="closeForm">关闭订单</van-button>
<van-button type="info" custom-style="margin-left:32rpx;height:88rpx;width:400rpx" bind:click="settlementForm">确认收款</van-button> <van-button type="info" custom-style="margin-left:32rpx;height:88rpx;width:400rpx" bind:click="settlementForm">确认收款</van-button>

Loading…
Cancel
Save