纸通宝SAAS仓库
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.
 

290 lines
14 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>
<view class="flex flex-center info_status" style="justify-content: flex-start;" wx:if="{{orderInfo}}">
<image style="height:42rpx;width:42rpx" src="/assets/image/icon_payfor.png"></image>
<view class="text-white text-sg" style="margin-left:12rpx">{{ statusOrder(orderInfo.status) }}</view>
</view>
<view wx:if="{{orderInfo.status == 0 || orderInfo.status == 1 || orderInfo.status == 3}}">
<view wx:if="{{orderInfo}}">
<view class="flex flex-center bg-white" style="justify-content: flex-start;padding: 24rpx 32rpx;border-bottom:1rpx solid #f3f3f3">
<view style="height:24rpx;width:6rpx;background-image: linear-gradient(180deg, #007AFF 0%, #027BFF 15%, #5AABFF 45%, #CAF4FE 100%);"></view>
<view class="text-black text-sg text-bold" style="margin-left: 12rpx">出货信息</view>
</view>
<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 center wx:if="{{orderInfo.unitPrice}}">
<view slot="title" class="flex flex-justify">
<view class="text-black">出货单价</view>
<view class="text-gray">{{orderInfo.unitPrice || '--'}}</view>
</view>
</van-cell>
<van-cell center wx:if="{{orderInfo.estimatedAmount}}">
<view slot="title" class="flex flex-justify">
<view class="text-black">预估金额</view>
<view class="text-gray">{{orderInfo.estimatedAmount || '--'}}</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 content-class="collapse-item" name="1">
<view slot="title" class="flex flex-center" style="justify-content: flex-start;">
<view style="height:24rpx;width:6rpx;background-image: linear-gradient(180deg, #007AFF 0%, #027BFF 15%, #5AABFF 45%, #CAF4FE 100%);"></view>
<view class="text-black text-sg text-bold" style="margin-left: 12rpx">过磅信息</view>
</view>
<van-cell wx:if="{{poundInfo.firstWeight}}" border="{{false}}">
<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:0rpx 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>
<view class="van-hairline--top" style="height:1px;margin-top: 24rpx;margin-left: 24rpx" wx:if="{{poundInfo.secondWeight}}"></view>
<van-cell wx:if="{{poundInfo.secondWeight}}" border="{{false}}">
<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:0rpx 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>
<view class="van-hairline--top" style="height:1px;margin-top: 24rpx;margin-left: 24rpx"></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}}">
<view class="flex flex-center bg-white" style="justify-content: flex-start;padding: 24rpx 32rpx;border-bottom:1rpx solid #f3f3f3">
<view style="height:24rpx;width:6rpx;background-image: linear-gradient(180deg, #007AFF 0%, #027BFF 15%, #5AABFF 45%, #CAF4FE 100%);"></view>
<view class="text-black text-sg text-bold" style="margin-left: 12rpx">结算信息</view>
</view>
<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 content-class="collapse-item" name="2">
<view slot="title" class="flex flex-center" style="justify-content: flex-start;">
<view style="height:24rpx;width:6rpx;background-image: linear-gradient(180deg, #007AFF 0%, #027BFF 15%, #5AABFF 45%, #CAF4FE 100%);"></view>
<view class="text-black text-sg text-bold" style="margin-left: 12rpx">出货信息</view>
</view>
<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 content-class="collapse-item" name="1">
<view slot="title" class="flex flex-center" style="justify-content: flex-start;">
<view style="height:24rpx;width:6rpx;background-image: linear-gradient(180deg, #007AFF 0%, #027BFF 15%, #5AABFF 45%, #CAF4FE 100%);"></view>
<view class="text-black text-sg text-bold" style="margin-left: 12rpx">过磅信息</view>
</view>
<van-cell wx:if="{{poundInfo.firstWeight}}" border="{{false}}">
<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:0rpx 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>
<view class="van-hairline--top" style="height:1px;margin-top: 24rpx;margin-left: 24rpx" wx:if="{{poundInfo.secondWeight}}"></view>
<van-cell wx:if="{{poundInfo.secondWeight}}" border="{{false}}">
<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:0rpx 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>
<view class="van-hairline--top" style="height:1px;margin-top: 24rpx;margin-left: 24rpx"></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:16rpx;" wx:if="{{auditable || orderInfo.status == 1}}"></view>
<submit-layout 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>
</submit-layout>
<view style="border-radius: 50rpx;position:fixed;bottom:160rpx;right:50rpx" wx:if="{{orderInfo.status == 1 || orderInfo.status == 2}}">
<van-button round type="info" bind:click="printOrder" custom-style="width: 100rpx;height: 100rpx;">
<van-icon name="printer" size="30px"/>
</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>