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.
208 lines
9.9 KiB
208 lines
9.9 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" wx:if="{{form.status == 2}}">
|
|
<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" wx:elif="{{form.status == 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" wx:elif="{{form.status == 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" wx:elif="{{form.status == 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" wx:elif="{{form.status == 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" wx:elif="{{form.status == 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" wx:elif="{{form.status == 6}}">
|
|
<image style="height:42rpx;width:42rpx" src="/assets/image/icon_close.png"></image>
|
|
<view class="text-white text-sg" style="margin-left:12rpx">已关闭</view>
|
|
</view>
|
|
<view class="text-white text-cancel" bindtap="cancelOrder" wx:if="{{form.status == 2 || form.status == 3 || form.status == 4}}">取消订单</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>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">客户姓名</view>
|
|
<view class="text-gray">{{form.factoryCustomerName}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">车牌号码</view>
|
|
<view class="text-gray">{{form.plateNumber || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">废纸品类</view>
|
|
<view class="text-gray">{{form.productName || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">毛重(公斤)</view>
|
|
<view class="text-gray">{{form.totalWeight}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">皮重(公斤)</view>
|
|
<view class="text-gray">{{form.emptyWeight || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">净重(公斤)</view>
|
|
<view class="text-gray">{{form.netWeight || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{form.deductWeight}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">扣重(公斤)</view>
|
|
<view class="text-gray">-{{form.deductWeight }}</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>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">定价员</view>
|
|
<view class="text-gray">{{form.inspectionPerson || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">定价时间</view>
|
|
<view class="text-gray">{{form.inspectionTime || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{form.totalWeighingPicture && form.totalWeighingPicture.length}}">
|
|
<view slot="title" class="text-black">
|
|
<view>过毛重照片</view>
|
|
<view class="flex" style="margin-top:18rpx">
|
|
<van-image wx:for="{{form.totalWeighingPicture}}" wx:key="index" use-loading-slot width="330rpx" height="240rpx"
|
|
custom-class="page-icon" data-url="{{item.url}}" fit="cover" data-type="0" src="{{item.url}}" bind:click="viewImage">
|
|
<view class="image-load" slot="loading">
|
|
<van-loading type="spinner" size="32" />
|
|
</view>
|
|
</van-image>
|
|
</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{form.emptyWeighingPicture && form.emptyWeighingPicture.length}}">
|
|
<view slot="title" class="text-black">
|
|
<view>过皮重照片</view>
|
|
<view class="flex" style="margin-top:18rpx">
|
|
<van-image wx:for="{{form.emptyWeighingPicture}}" wx:key="index" use-loading-slot width="330rpx" height="240rpx"
|
|
custom-class="page-icon" data-url="{{item.url}}" fit="cover" data-type="1" src="{{item.url}}" bind:click="viewImage">
|
|
<view class="image-load" slot="loading">
|
|
<van-loading type="spinner" size="32" />
|
|
</view>
|
|
</van-image>
|
|
</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{ imageList.length}}">
|
|
<view slot="title" class="text-black">
|
|
<view style="margin-bottom: 12rpx;">订单凭证</view>
|
|
<van-uploader file-list="{{ imageList }}" deletable="{{false}}" show-upload="{{false}}" />
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{form.inspectionRemark}}">
|
|
<view slot="title" class="text-black">
|
|
<view>备注</view>
|
|
<view class="flex" style="margin-top:18rpx;border: 2rpx solid #f3f3f3;padding: 18rpx;">{{form.inspectionRemark}}</view>
|
|
</view>
|
|
</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>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">单价(元/公斤)</view>
|
|
<view class="text-gray">{{formate.formateAmount(form.settleUnitPrice || form.unitPrice)}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">结算重量(公斤)</view>
|
|
<view class="text-gray">{{form.settleWeight || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">结算金额(元)</view>
|
|
<view class="text-gray">{{formate.formateAmount(form.adjustedPrice, 2) || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">下单时间</view>
|
|
<view class="text-gray">{{form.createTime || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">订单编号</view>
|
|
<view class="text-gray">{{form.id}}</view>
|
|
</view>
|
|
</van-cell>
|
|
</view>
|
|
|
|
<view style="height:16rpx"></view>
|
|
<!-- <submit-layout wx:if="{{form && form.status == 2 }}">
|
|
<van-button plain type="default" custom-style="height:88rpx;width:254rpx" bind:click="cancelOrder">取消订单</van-button>
|
|
</submit-layout> -->
|
|
<submit-layout wx:if="{{form && form.status == 3 && !agent && form.isHandworkOrder != 1 }}">
|
|
<!-- <van-button plain type="default" custom-style="height:88rpx;width:186rpx" bind:click="cancelOrder">取消订单</van-button> -->
|
|
<van-button type="warning" custom-style="margin-left:32rpx;height:88rpx;width:254rpx" bind:click="repeatOrder">重新过皮重</van-button>
|
|
<van-button type="info" custom-style="margin-left:32rpx;height:88rpx;width:400rpx" bind:click="checkOrder">通过审核</van-button>
|
|
</submit-layout>
|
|
<submit-layout wx:elif="{{form && form.status == 3 && !agent && form.isHandworkOrder == 1}}">
|
|
<van-button plain type="default" custom-style="height:88rpx;width:254rpx" bind:click="priceOrder">重新定价</van-button>
|
|
<van-button type="info" custom-style="margin-left:32rpx;height:88rpx;width:400rpx" bind:click="checkOrder">通过审核</van-button>
|
|
</submit-layout>
|
|
<submit-layout wx:elif="{{form && form.status == 4 && !agent && admin }}">
|
|
<!-- <van-button plain type="default" custom-style="height:88rpx;width:254rpx" bind:click="cancelOrder">取消订单</van-button> -->
|
|
<van-button type="info" custom-style="margin-left:32rpx;height:88rpx;width:686rpx" bind:click="paymentOrder">进行支付</van-button>
|
|
</submit-layout>
|
|
<submit-layout wx:elif="{{form && form.status == 42 && !agent && admin }}">
|
|
<van-button type="info" custom-style="height:88rpx;width:686rpx" bind:click="paymentOrder">客户结算</van-button>
|
|
</submit-layout>
|
|
|
|
<view style="border-radius: 50rpx;position:fixed;bottom:{{160 + safeBottom}}rpx;right:50rpx" wx:if="{{form && (form.status == 3 || form.status == 4 || form.status == 42)}}">
|
|
<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"/>
|