Browse Source

代卖订单详情

featrue/v4.3
xpz2018 5 years ago
parent
commit
58fb83367d
4 changed files with 79 additions and 28 deletions
  1. 5
      pages/agent/detail/index.js
  2. 97
      pages/agent/detail/index.wxml
  3. 4
      pages/agent/factory-fragment/index.wxml
  4. 1
      pages/shop/index/index.js

5
pages/agent/detail/index.js

@ -1,7 +1,8 @@
// pages/agent/detail/index.js
import { getProxyOrderInfo, cancelProxyOrder, cancelReservation, cancelProxyOrderItem } from "../../api/ztb"
const util = require('../../../utils/util')
const event = require('../../../utils/event.js')
const math = require('../../../utils/math')
const event = require('../../../utils/event')
const app = getApp()
Page({
@ -32,8 +33,8 @@ Page({
for (let index = 0; index < result.data.orderItems.length; index++) {
const element = result.data.orderItems[index]
if(element.weightnoteInfo && element.weightnoteInfo.id){
element.proxyAmount = math.times(element.weightnoteInfo.settleWeight, element.unitSurcharge)
this.data.cancel = false
break
}
}
this.setData({orderInfo: result.data, safeBottom: app.globalData.safeBottom, cancel: this.data.cancel })

97
pages/agent/detail/index.wxml

@ -37,24 +37,75 @@
<text class="text-black">扣点</text>
<text class="text-gray">{{item.weightnoteInfo.deductedPoint}}%</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">代卖费</text>
<text class="text-gray">{{formate.formatePrice2(item.unitSurcharge)}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">磅单图片</text>
</view>
<view style="margin-top:20rpx">
<sudoku-image image-list="{{item.weightnoteInfo.imageUrls}}" square="{{true}}" clickable="{{true}}">
</sudoku-image>
<sudoku-image image-list="{{item.weightnoteInfo.imageUrls}}" square="{{true}}" clickable="{{true}}"></sudoku-image>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">信息费</text>
<text class="text-gray">{{formate.formatePrice2(item.unitSurcharge)}}</text>
<!-- 预付款 -->
<view wx:if="{{item.paymentType == 1}}">
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">预计总金额</text>
<text class="text-gray">{{formate.formateAmount(item.preTotalMoney)}}元</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">预计收款金额</text>
<text class="text-gray">
<text>{{formate.formateAmount(item.preSettleMoney)}}元</text>
<text style="color:#F5222D">({{'首款70%'}})</text>
</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">代卖费</text>
<text class="text-gray">-{{formate.formateAmount(item.proxyAmount)}}元</text>
</view>
<view class="flex text-sg" style="justify-content: flex-end;margin-top:20rpx;border-top:2rpx solid #f3f3f3;padding-top:16rpx">
<text class="text-black text-bold">预计结算金额:</text>
<text class="text-gray" style="color:#F5222D">{{formate.formateAmount(item.settlePrice)}}元</text>
</view>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">调节费</text>
<text class="text-gray text-price">{{item.adjustMoney}}</text>
<!-- 尾款 -->
<view wx:elif="{{item.paymentType == 2}}">
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">总金额</text>
<text class="text-gray">{{formate.formateAmount(item.settlePrice)}}元</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx" wx:if="{{item.adjustMoney}}">
<text class="text-black">调节费</text>
<text class="text-gray">-{{formate.formateAmount(item.adjustMoney)}}元</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">已结算金额:</text>
<text class="text-gray">-{{formate.formateAmount(item.preSettleMoney)}}元</text>
</view>
<view class="flex text-sg" style="justify-content: flex-end;margin-top:20rpx;border-top:2rpx solid #f3f3f3;padding-top:16rpx">
<text class="text-black text-bold">剩余结算金额:</text>
<text class="text-gray" style="color:#F5222D">{{formate.formateAmount(item.finalPayMoney)}}元</text>
</view>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">结算金额</text>
<text class="text-gray text-price" style="color:#FFA524">{{item.weightnoteInfo.settlePrice}}</text>
<!-- 全款 -->
<view wx:else>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">总金额</text>
<text class="text-gray">{{formate.formateAmount(item.preTotalMoney)}}元</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx" wx:if="{{item.adjustMoney}}">
<text class="text-black">调节费</text>
<text class="text-gray">{{formate.formateAmount(item.adjustMoney)}}元</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">代卖费</text>
<text class="text-gray">-{{formate.formateAmount(item.proxyAmount)}}元</text>
</view>
<view class="flex text-sg" style="justify-content: flex-end;margin-top:20rpx;border-top:2rpx solid #f3f3f3;padding-top:16rpx">
<text class="text-black text-bold">结算金额:</text>
<text class="text-gray" style="color:#F5222D">{{formate.formateAmount(item.weightnoteInfo.settlePrice)}}元</text>
</view>
</view>
</view>
</view>
@ -64,17 +115,17 @@
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">纸厂开户账号</text>
<view class="flex flex-center">
<text class="text-gray" style="margin-right:12rpx">{{orderInfo.millSupplierId}}</text>
<wux-button outline type="positive" size="copy" bind:click="clipboard">复制</wux-button>
<text class="text-gray" style="margin-right:12rpx">{{orderInfo.millSupplierId || ''}}</text>
<wux-button outline type="positive" size="copy" bind:click="clipboard" wx:if="{{orderInfo.millSupplierId}}">复制</wux-button>
</view>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">纸厂订单号</text>
<text class="text-gray">{{orderInfo.millDeliveryOrderId}}</text>
<text class="text-gray">{{orderInfo.millDeliveryOrderId || ''}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">货到时间</text>
<text class="text-gray">{{orderInfo.paperMillDeliveryTime}}</text>
<text class="text-gray">{{orderInfo.paperMillDeliveryTime || ''}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">信息费</text>
@ -129,17 +180,17 @@
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">纸厂开户账号</text>
<view class="flex flex-center">
<text class="text-gray" style="margin-right:12rpx">{{orderInfo.millSupplierId}}</text>
<wux-button outline type="positive" size="copy" bind:click="clipboard">复制</wux-button>
<text class="text-gray" style="margin-right:12rpx">{{orderInfo.millSupplierId || ''}}</text>
<wux-button outline type="positive" size="copy" bind:click="clipboard" wx:if="{{orderInfo.millSupplierId}}">复制</wux-button>
</view>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">纸厂订单号</text>
<text class="text-gray">{{orderInfo.millDeliveryOrderId}}</text>
<text class="text-gray">{{orderInfo.millDeliveryOrderId || ''}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">货到时间</text>
<text class="text-gray">{{orderInfo.paperMillDeliveryTime}}</text>
<text class="text-gray">{{orderInfo.paperMillDeliveryTime || ''}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">信息费</text>
@ -225,17 +276,17 @@
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">纸厂开户账号</text>
<view class="flex flex-center">
<text class="text-gray" style="margin-right:12rpx">{{orderInfo.millSupplierId}}</text>
<wux-button outline type="positive" size="copy" bind:click="clipboard">复制</wux-button>
<text class="text-gray" style="margin-right:12rpx">{{orderInfo.millSupplierId || ''}}</text>
<wux-button outline type="positive" size="copy" bind:click="clipboard" wx:if="{{orderInfo.millSupplierId}}">复制</wux-button>
</view>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">纸厂订单号</text>
<text class="text-gray">{{orderInfo.millDeliveryOrderId}}</text>
<text class="text-gray">{{orderInfo.millDeliveryOrderId || ''}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">货到时间</text>
<text class="text-gray">{{orderInfo.paperMillDeliveryTime}}</text>
<text class="text-gray">{{orderInfo.paperMillDeliveryTime || ''}}</text>
</view>
<view class="flex flex-justify text-sg" style="margin-top:20rpx">
<text class="text-black">信息费</text>

4
pages/agent/factory-fragment/index.wxml

@ -13,8 +13,8 @@
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view>
</view>
<view wx:else>
<view class="bg-white" style="padding:32rpx 32rpx 0rpx 32rpx" wx:if="{{hasActivity}}" bindtap="toAbility">
<wux-image width="{{686}}" height="{{146}}" nuit="{{'rpx'}}" shape="rounded" lazyLoad="true" src="https://img.imgdb.cn/item/603f4f7e360785be54c19c1d.png" mode="aspectFill">
<view class="bg-white" wx:if="{{hasActivity}}" bindtap="toAbility">
<wux-image width="{{750}}" height="{{160}}" nuit="{{'rpx'}}" src="https://img.imgdb.cn/item/603f4f7e360785be54c19c1d.png" mode="aspectFill">
<view class="flex flex-center" slot="loading" style="height:146rpx;width:686rpx">
<text class="icon--refresher"></text>
</view>

1
pages/shop/index/index.js

@ -58,7 +58,6 @@ Page({
wx.hideLoading()
})
},
showDialog: function(){
this.wuxDialog.open({
resetOnClose: true,

Loading…
Cancel
Save