You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
246 lines
11 KiB
246 lines
11 KiB
<!--pages/storage/index/index.wxml-->
|
|
<wxs module="formate" src="../../formate.wxs"></wxs>
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">出货详情</view>
|
|
</cu-custom>
|
|
|
|
<van-notice-bar color="#1989fa" background="#008AFF" left-icon="info-o" text="{{ statusOrder(orderInfo.status) }}" wx:if="{{orderInfo}}"/>
|
|
<view wx:if="{{orderInfo.status == 0 || orderInfo.status == 1 || orderInfo.status == 3}}">
|
|
<view wx:if="{{orderInfo}}">
|
|
<van-index-anchor index="出货信息" />
|
|
<van-cell center>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">收货方名称</view>
|
|
<view class="text-gray">{{orderInfo.consigneeName || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell center>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">废纸品类</view>
|
|
<view class="text-gray">{{orderInfo.productName || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{orderInfo.packageQuantity}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">纸品包数</view>
|
|
<view class="text-gray">{{orderInfo.packageQuantity || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell center>
|
|
<view class="flex flex-justify text-black">
|
|
<view class="text-black">车牌号码</view>
|
|
<view class="text-gray">{{orderInfo.plateNumber || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell center wx:if="{{orderInfo.driverName}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">司机姓名</view>
|
|
<view class="text-gray">{{orderInfo.driverName}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell clickable is-link wx:if="{{orderInfo.agencySellOrderItemId}}" url="/pages/agent/order-detail/index?itemId={{orderInfo.agencySellOrderItemId}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">代卖订单详情</view>
|
|
</view>
|
|
</van-cell>
|
|
</view>
|
|
<view class="margin-top"></view>
|
|
<van-collapse value="{{ activeNames }}" bind:change="onChange" wx:if="{{poundInfo}}">
|
|
<van-collapse-item title="过磅信息" content-class="collapse-item" name="1">
|
|
<van-cell wx:if="{{poundInfo.firstWeight}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">第一次过磅(皮重)</view>
|
|
<view class="text-gray">{{formate.minWeight(poundInfo.firstWeight, poundInfo.secondWeight)}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<view class="bg-white flex flex-justify" style="padding:24rpx 32rpx" wx:if="{{poundInfo.emptyWeighingPicture.length}}">
|
|
<van-image wx:for="{{poundInfo.emptyWeighingPicture}}" wx:key="index" use-loading-slot width="330rpx" height="240rpx"
|
|
data-url="{{item}}" fit="cover" data-type="0" src="{{item}}" bind:click="viewImage">
|
|
<view class="image-load" slot="loading">
|
|
<van-loading type="spinner" size="32" />
|
|
</view>
|
|
</van-image>
|
|
</view>
|
|
<van-cell wx:if="{{poundInfo.secondWeight}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">第二次过磅(毛重)</view>
|
|
<view class="text-gray">重量(公斤):{{formate.maxWeight(poundInfo.firstWeight, poundInfo.secondWeight)}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<view class="bg-white flex flex-justify" style="padding:24rpx 32rpx" wx:if="{{poundInfo.totalWeighingPicture.length}}">
|
|
<van-image wx:for="{{poundInfo.totalWeighingPicture}}" wx:key="index" use-loading-slot width="330rpx" height="240rpx"
|
|
data-url="{{item}}" fit="cover" data-type="1" src="{{item}}" bind:click="viewImage">
|
|
<view class="image-load" slot="loading">
|
|
<van-loading type="spinner" size="32" />
|
|
</view>
|
|
</van-image>
|
|
</view>
|
|
<van-cell wx:if="{{poundInfo.netWeight}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">净重(公斤)</view>
|
|
<view class="text-gray">{{poundInfo.netWeight}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{poundInfo.operaterId}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">过磅人</view>
|
|
<view class="text-gray">{{poundInfo.operaterName}}</view>
|
|
</view>
|
|
</van-cell>
|
|
</van-collapse-item>
|
|
</van-collapse>
|
|
</view>
|
|
<view wx:elif="{{orderInfo.status == 2}}">
|
|
<view wx:if="{{form}}">
|
|
<van-index-anchor index="结算信息" />
|
|
<van-cell center>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">纸品品类</view>
|
|
<view class="text-gray">{{form.categoryName || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell center>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">结算单价(元/吨)</view>
|
|
<view class="text-gray">{{formate.formatePrice(form.settleUnitPrice)}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{form.netWeight}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">净重(吨)</view>
|
|
<view class="text-gray">{{formate.formateWeight(form.netWeight)}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell center>
|
|
<view class="flex flex-justify text-black">
|
|
<view class="text-black">结算重量(吨)</view>
|
|
<view class="text-gray">{{formate.formateWeight(form.settleWeight)}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{form.deductPercent}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">扣点(%)</view>
|
|
<view class="text-gray">{{ form.deductPercent || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{form.otherFee}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">其他费用(元)</view>
|
|
<view class="text-gray">{{ form.otherFee}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">结算金额(元)</view>
|
|
<view class="text-gray">{{ form.settlePrice}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<view class="bg-white" style="padding: 20rpx 32rpx" wx:if="{{fileList.length}}">
|
|
<view class="flex flex-justify" style="padding-bottom: 20rpx">
|
|
<text class="text-black">纸厂磅单</text>
|
|
</view>
|
|
<van-uploader file-list="{{ fileList }}" deletable="{{false}}" show-upload="{{false}}" />
|
|
</view>
|
|
</view>
|
|
<view class="margin-top"></view>
|
|
<van-collapse value="{{ activeNames }}" bind:change="onChange" wx:if="{{poundInfo}}">
|
|
<van-collapse-item title="出货信息" content-class="collapse-item" name="2">
|
|
<van-cell center>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">收货方名称</view>
|
|
<view class="text-gray">{{orderInfo.consigneeName || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell center>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">废纸品类</view>
|
|
<view class="text-gray">{{orderInfo.productName || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{orderInfo.packageQuantity}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">纸品包数</view>
|
|
<view class="text-gray">{{orderInfo.packageQuantity || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell center>
|
|
<view class="flex flex-justify text-black">
|
|
<view class="text-black">车牌号码</view>
|
|
<view class="text-gray">{{orderInfo.plateNumber || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{orderInfo.driverName}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">司机姓名</view>
|
|
<view class="text-gray">{{ orderInfo.driverName || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<!-- <van-field label="备注" type="textarea" input-align="right" readonly autosize border="{{ false }}" /> -->
|
|
</van-collapse-item>
|
|
<van-collapse-item title="过磅信息" content-class="collapse-item" name="1">
|
|
<van-cell wx:if="{{poundInfo.firstWeight}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">第一次过磅(皮重)</view>
|
|
<view class="text-gray">{{formate.minWeight(poundInfo.firstWeight, poundInfo.secondWeight)}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<view class="bg-white flex flex-justify" style="padding:24rpx 32rpx" wx:if="{{poundInfo.emptyWeighingPicture.length}}">
|
|
<van-image wx:for="{{poundInfo.emptyWeighingPicture}}" wx:key="index" use-loading-slot width="330rpx" height="240rpx"
|
|
data-url="{{item}}" fit="cover" data-type="0" src="{{item}}" bind:click="viewImage">
|
|
<view class="image-load" slot="loading">
|
|
<van-loading type="spinner" size="32" />
|
|
</view>
|
|
</van-image>
|
|
</view>
|
|
<van-cell wx:if="{{poundInfo.secondWeight}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">第二次过磅(毛重)</view>
|
|
<view class="text-gray">重量(公斤):{{formate.maxWeight(poundInfo.firstWeight, poundInfo.secondWeight)}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<view class="bg-white flex flex-justify" style="padding:24rpx 32rpx" wx:if="{{poundInfo.totalWeighingPicture.length}}">
|
|
<van-image wx:for="{{poundInfo.totalWeighingPicture}}" wx:key="index" use-loading-slot width="330rpx" height="240rpx"
|
|
data-url="{{item}}" fit="cover" data-type="1" src="{{item}}" bind:click="viewImage">
|
|
<view class="image-load" slot="loading">
|
|
<van-loading type="spinner" size="32" />
|
|
</view>
|
|
</van-image>
|
|
</view>
|
|
<van-cell wx:if="{{poundInfo.netWeight}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">净重(公斤)</view>
|
|
<view class="text-gray">{{poundInfo.netWeight}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{poundInfo.operaterId}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">过磅人</view>
|
|
<view class="text-gray">{{poundInfo.operaterName}}</view>
|
|
</view>
|
|
</van-cell>
|
|
</van-collapse-item>
|
|
</van-collapse>
|
|
</view>
|
|
<view style="height:{{136 + safeBottom}}rpx;" wx:if="{{auditable || orderInfo.status == 1}}"></view>
|
|
<view class="cu-bar bg-white foot" style="height:{{120 + safeBottom}}rpx;padding:0rpx 32rpx {{safeBottom}}rpx 32rpx;" wx:if="{{auditable || orderInfo.status == 1}}">
|
|
<van-button id="refuse" type="danger" custom-style="height:88rpx;width:254rpx" bind:click="submitForm" wx:if="{{auditable}}">审核不通过</van-button>
|
|
<van-button id="agree" type="info" custom-style="margin-left:32rpx;height:88rpx;width:400rpx" bind:click="submitForm" wx:if="{{auditable}}">审核通过</van-button>
|
|
<van-button type="info" custom-style="height:88rpx;width:686rpx" bind:click="settleForm" wx:if="{{orderInfo.status == 1}}">收款结算</van-button>
|
|
</view>
|
|
|
|
<van-dialog id="van-dialog" />
|
|
<notification id="qn-notification"/>
|
|
<wxs module="statusOrder">
|
|
function statusOrder(status) {
|
|
if(status == 0){
|
|
return '待审核'
|
|
} else if(status == 1){
|
|
return '待收款'
|
|
} else if(status == 2){
|
|
return '已完成'
|
|
} else if(status == 3){
|
|
return '已关闭'
|
|
}
|
|
}
|
|
module.exports = statusOrder
|
|
</wxs>
|