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.
245 lines
12 KiB
245 lines
12 KiB
<!--pages/process/order-check/index.wxml-->
|
|
<wxs module="formate" src="../../formate.wxs"></wxs>
|
|
<import src="../template/index.wxml" />
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">厂外收货</view>
|
|
</cu-custom>
|
|
|
|
<view wx:if="{{form}}">
|
|
<view class="flex flex-justify info_status">
|
|
<view class="flex flex-center" wx:if="{{form.orderStatus == 4}}">
|
|
<image style="height:42rpx;width:42rpx" src="/assets/image/icon_payfor.png"></image>
|
|
<view class="text-white text-sg" style="margin-left:12rpx">待付款</view>
|
|
</view>
|
|
<view class="flex flex-center" wx:elif="{{form.orderStatus == 3}}">
|
|
<image style="height:42rpx;width:42rpx" src="/assets/image/icon_uncheck.png"></image>
|
|
<view class="text-white text-sg" style="margin-left:12rpx">待审核</view>
|
|
</view>
|
|
<view class="flex flex-center" wx:elif="{{form.orderStatus == 41}}">
|
|
<image style="height:42rpx;width:42rpx" src="/assets/image/icon_payfor.png"></image>
|
|
<view class="text-white text-sg" style="margin-left:12rpx">代付审核中</view>
|
|
</view>
|
|
<view class="flex flex-center" wx:elif="{{form.orderStatus == 42}}">
|
|
<image style="height:42rpx;width:42rpx" src="/assets/image/icon_payfor.png"></image>
|
|
<view class="text-white text-sg" style="margin-left:12rpx">待结算</view>
|
|
</view>
|
|
<view class="flex flex-center" wx:elif="{{form.orderStatus == 5}}">
|
|
<image style="height:42rpx;width:42rpx" src="/assets/image/icon_payfor.png"></image>
|
|
<view class="text-white text-sg" style="margin-left:12rpx">已完成</view>
|
|
</view>
|
|
<view class="flex flex-center" wx:elif="{{form.orderStatus == 6}}">
|
|
<view class="text-white text-sg" style="margin-left:12rpx">已取消</view>
|
|
</view>
|
|
<view class="flex flex-center text-cancel" bindtap="cancelOrderInfo" wx:if="{{admin && (form.orderStatus == 3 || form.orderStatus == 4)}}">
|
|
<view class="text-white">取消订单</view>
|
|
</view>
|
|
<view class="flex flex-center" style="padding:4rpx 0rpx 4rpx 4rpx" bindtap="orderLogger" wx:else>
|
|
<view class="text-white text-sm" style="margin-right:8rpx">查看订单日志</view>
|
|
<van-icon name="arrow" color="white"/>
|
|
</view>
|
|
</view>
|
|
<template is="agent-info" data="{{form}}" wx:if="{{agent}}"></template>
|
|
<van-cell clickable center>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">客户姓名</view>
|
|
<view class="text-gray">{{form.factoryCustomerName || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell clickable center>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">车牌号码</view>
|
|
<view class="text-gray">{{form.plateNumber || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell clickable center>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">司机</view>
|
|
<view class="text-gray">{{form.driverName || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell clickable center wx:if="{{form.operatorName}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">操作员</view>
|
|
<view class="text-gray">{{form.operatorName || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell clickable center wx:if="{{form.predictDeliveryToFactoryTime}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">预计到厂时间</view>
|
|
<view class="text-gray">{{form.predictDeliveryToFactoryTime}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-field label="辅助设备" type="textarea" disabled input-align="right" value="{{ form.equipmentRemark }}" autosize border="{{false}}" />
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="flex flex-center text-black">厂外皮重(公斤)</view>
|
|
<view class="text-gray">{{form.offsiteTareWeight || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="flex flex-center text-black">厂外毛重(公斤)</view>
|
|
<view class="text-gray">{{form.offsiteGrossWeight || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="flex flex-center text-black">净重(公斤)</view>
|
|
<view class="text-gray">{{form.totalNetWeight || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="flex flex-center text-black">预计总金额(元)</view>
|
|
<view class="text-gray">{{form.estimatedTotalAmount || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="flex flex-center text-black">厂内毛重(公斤)</view>
|
|
<view class="{{form.onsideGrossWeight ? 'text-gray' : 'text-red'}}">{{form.onsideGrossWeight || '暂无'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="flex flex-center text-black">厂内厂外毛重差异(公斤)</view>
|
|
<view class="text-gray">{{form.onsideAndOffsiteDifferences || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{form.onsideGrossWeightImageList && form.onsideGrossWeightImageList.length}}">
|
|
<view slot="title">
|
|
<view class="text-black">厂内毛重凭证</view>
|
|
<view class="flex" style="margin-top:18rpx">
|
|
<van-image wx:for="{{form.onsideGrossWeightImageList}}" wx:key="index" use-loading-slot width="330rpx" height="240rpx"
|
|
custom-class="page-icon" data-url="{{item}}" fit="cover" src="{{item}}" bind:click="viewImage">
|
|
<view class="image-load" slot="loading">
|
|
<van-loading type="spinner" size="32" />
|
|
</view>
|
|
</van-image>
|
|
</view>
|
|
</view>
|
|
</van-cell>
|
|
|
|
<!-- <van-cell title="查看订单日志" is-link clickable url="/pages/process/order-logger/index?type=1&orderId={{form.id}}"></van-cell> -->
|
|
<view style="height:16rpx"></view>
|
|
<view class="flex flex-center bg-white" style="justify-content: flex-start;padding: 24rpx 32rpx;border-bottom:1rpx solid #f3f3f3">
|
|
<view style="height:30rpx;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>
|
|
<view wx:for="{{form.productCategoryInfos}}" wx:key="index">
|
|
<view style="height:16rpx" wx:if="{{index != 0 }}"></view>
|
|
<van-cell clickable center>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">废纸品类{{index + 1}}</view>
|
|
<view class="text-gray">{{item.productCategoryName || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">结算单价(元/公斤)</view>
|
|
<view class="text-gray">{{item.settleUnitPrice || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">毛重(公斤)</view>
|
|
<view class="text-gray">{{item.grossWeight || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">皮重(公斤)</view>
|
|
<view class="text-gray">{{item.tareWeight || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">净重(公斤)</view>
|
|
<view class="text-gray">{{item.netWeight || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<!-- <van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">预估金额(元)</view>
|
|
<view class="{{item.price ? 'text-black' : 'text-gray'}}">{{item.price || ''}}</view>
|
|
</view>
|
|
</van-cell> -->
|
|
<view class="bg-white" style="padding: 24rpx 32rpx 20rpx 32rpx" wx:if="{{item.fileList && item.fileList.length}}">
|
|
<view class="flex flex-justify" style="padding-bottom: 24rpx">
|
|
<view class="flex flex-center text-black">过磅凭证</view>
|
|
</view>
|
|
<van-uploader file-list="{{ item.fileList }}" deletable="{{false}}" show-upload="{{false}}" />
|
|
</view>
|
|
<van-cell wx:if="{{item.deductWeight}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">扣重(公斤)</view>
|
|
<view class="text-gray">{{item.deductWeight}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{item.deductPercent}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">扣点(%)</view>
|
|
<view class="text-gray">{{item.deductPercent}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">结算重量(公斤)</view>
|
|
<view class="text-gray">{{item.settleWeight || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">结算金额(元)</view>
|
|
<view class="text-gray">{{item.adjustedPrice || form.settlePrice || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
</view>
|
|
<view style="height:16rpx"></view>
|
|
<view class="flex flex-center bg-white" style="justify-content: flex-start;padding: 24rpx 32rpx;border-bottom:1rpx solid #f3f3f3">
|
|
<view style="height:30rpx;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 clickable center>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">结算总重量(公斤)</view>
|
|
<view class="text-gray">{{form.settleTotalWeight || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell clickable center>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">结算总金额(元)</view>
|
|
<view class="text-gray">{{formate.formateAmount(form.settleTotalAmount, 2)}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<view class="bg-white" style="padding: 24rpx 32rpx 20rpx 32rpx" wx:if="{{imageList.length}}">
|
|
<view class="flex flex-justify" style="padding-bottom: 24rpx">
|
|
<view class="flex flex-center text-black">订单凭证</view>
|
|
</view>
|
|
<van-uploader file-list="{{ imageList }}" deletable="{{false}}" show-upload="{{false}}" />
|
|
</view>
|
|
</view>
|
|
|
|
<submit-layout wx:if="{{form && admin && form.orderStatus == 3}}">
|
|
<van-button type="warning" custom-style="height:88rpx;width:254rpx" bind:click="repeatOrder">重新定价</van-button>
|
|
<van-button type="info" custom-style="margin-left:32rpx;height:88rpx;width:400rpx" bind:click="submitForm">通过审核</van-button>
|
|
</submit-layout>
|
|
<submit-layout wx:if="{{form && admin && form.orderStatus == 4}}">
|
|
<van-button type="info" custom-style="margin-left:32rpx;height:88rpx;width:686rpx" bind:click="paymentOrder">进行支付</van-button>
|
|
</submit-layout>
|
|
<submit-layout wx:if="{{form && admin && form.orderStatus == 42}}">
|
|
<view class="flex flex-center" style="flex:1;justify-content: flex-start">
|
|
<text class="text-lg" wx:if="{{form.settleTotalAmount}}">金额:</text>
|
|
<text class="text-xxl text-price text-red" wx:if="{{form.settleTotalAmount}}">{{formate.formateAmount(form.settleTotalAmount, 2)}}</text>
|
|
</view>
|
|
<van-button type="info" custom-style="height:88rpx;width:300rpx" bind:click="paymentOrder" wx:if="{{form.orderStatus == 42}}">客户结算</van-button>
|
|
</submit-layout>
|
|
|
|
<view style="border-radius: 50rpx;position: fixed;bottom:{{160 + safeBottom}}rpx;right:50rpx" wx:if="{{form && form.orderStatus != 6}}">
|
|
<van-button round bind:click="printOrderInfo" custom-style="width: 100rpx;height: 100rpx;padding-top:12rpx">
|
|
<van-icon name="/assets/image/icon-print.png" size="100rpx"/>
|
|
</van-button>
|
|
</view>
|
|
|
|
<van-dialog id="van-dialog" />
|
|
<notification id="qn-notification"/>
|