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

160 lines
9.4 KiB

<!--pages/process/order-check/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" wx:if="{{form.orderStatus == 0}}">
<view class="flex">
<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="text-white" style="padding: 12rpx 0rpx 12rpx 12rpx" bindtap="eidtForm" wx:if="{{admin}}">修改订单</view>
</view>
<view class="flex flex-center info_status" style="justify-content: flex-start;" wx:elif="{{form.orderStatus == 1}}">
<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-justify info_status" wx:elif="{{form.orderStatus == 3}}">
<view class="flex">
<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="text-white" style="padding: 12rpx 0rpx 12rpx 12rpx" bindtap="repeatForm">重新定价</view>
</view>
<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 clickable center>
<view slot="title" class="flex flex-justify">
<view class="text-black">客户姓名</view>
<view class="{{form.factoryCustomerName ? 'text-black' : '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="{{form.plateNumber ? 'text-black' : '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="{{form.driverName ? 'text-black' : '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="{{form.operatorName ? 'text-black' : '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="{{form.predictDeliveryToFactoryTime ? 'text-black' : 'text-gray'}}">{{form.predictDeliveryToFactoryTime || '- -'}}</view>
</view>
</van-cell>
<van-field label="辅助设备" type="textarea" value="{{ form.equipmentRemark }}" disabled input-align="right" placeholder="暂无" autosize
border="{{false}}" />
<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: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>
<view wx:for="{{form.productCategoryInfos}}" wx:key="index">
<outside-item item="{{item}}" index="{{index}}" status="{{form.orderStatus}}" bind:change="onProductChange"></outside-item>
</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: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 clickable center wx:if="{{form.orderStatus > 0}}">
<view slot="title" class="flex flex-justify">
<view class="text-black">结算总重量(公斤)</view>
<view class="{{form.settleTotalWeight ? 'text-black' : 'text-gray'}}">{{form.settleTotalWeight || '- -'}}</view>
</view>
</van-cell>
<van-cell clickable center wx:else>
<view slot="title" class="flex flex-justify">
<view class="text-black">总净重(公斤)</view>
<view class="{{form.totalNetWeight ? 'text-black' : 'text-gray'}}">{{form.totalNetWeight || '- -'}}</view>
</view>
</van-cell>
<van-cell clickable center wx:if="{{form.orderStatus > 0}}">
<view slot="title" class="flex flex-justify">
<view class="text-black">结算总金额(元)</view>
<view class="{{form.settleTotalAmount ? 'text-black' : 'text-gray'}}">{{form.settleTotalAmount || '- -'}}</view>
</view>
</van-cell>
<van-cell clickable center wx:else>
<view slot="title" class="flex flex-justify">
<view class="text-black">预计总金额(元)</view>
<view class="{{form.estimatedAmount ? 'text-black' : 'text-gray'}}">{{form.estimatedAmount || '- -'}}</view>
</view>
</van-cell>
<!-- <van-cell>
<view slot="title" class="flex flex-justify">
<view class="flex flex-center text-black">
<view class="text-red text-xl" style="line-height: 10px; padding-top: 8px" wx:if="{{ form.orderStatus == 0}}">*</view>
<text>厂外皮重(公斤)</text>
</view>
<input id="offsiteTareWeight" type="digit" placeholder-style="color:#aaa"
style="text-align: right" maxlength="8" placeholder="请输入厂外皮重" value="{{form.offsiteTareWeight || ''}}"
bindinput="bindInput" disabled="{{ form.orderStatus != 0}}" />
</view>
</van-cell> -->
<van-field id="offsiteTareWeight" value="{{ form.offsiteTareWeight || '' }}" type="digit" placeholder="请输入厂外皮重" clearable input-align="right" disabled="{{ form.orderStatus != 0}}" maxlength="8" bind:change="bindInput">
<view slot="label" class="flex text-black" style="width:240rpx">
<view class="text-red text-xl" style="line-height: 10px; padding-top: 12px" wx:if="{{ form.orderStatus == 0}}">*</view>
<text>厂外皮重(公斤)</text>
</view>
</van-field>
<!-- <van-cell>
<view slot="title" class="flex flex-justify">
<view class="flex flex-center text-black">
<view class="text-red text-xl" style="line-height: 10px; padding-top: 8px" wx:if="{{ form.orderStatus == 0}}">*</view>
<text>厂外毛重(公斤)</text>
</view>
<input id="offsiteGrossWeight" type="digit" placeholder-style="color:#aaa"
style="text-align: right" maxlength="8" placeholder="请输入厂外毛重" value="{{form.offsiteGrossWeight || ''}}"
bindinput="bindInput" disabled="{{ form.orderStatus != 0}}"/>
</view>
</van-cell> -->
<van-field id="offsiteGrossWeight" value="{{ form.offsiteGrossWeight || '' }}" type="digit" placeholder="请输入厂外毛重" clearable input-align="right" disabled="{{ form.orderStatus != 0}}" maxlength="8" bind:change="bindInput">
<view slot="label" class="flex text-black" style="width:240rpx">
<view class="text-red text-xl" style="line-height: 10px; padding-top: 12px" wx:if="{{ form.orderStatus == 0}}">*</view>
<text>厂外毛重(公斤)</text>
</view>
</van-field>
</view>
<submit-layout wx:if="{{admin && form && form.orderStatus == 0}}">
<van-button plain type="default" custom-style="height:88rpx;width:186rpx" bind:click="cancelForm">取消订单</van-button>
<van-button type="info" custom-style="margin-left:32rpx;height:88rpx;width:218rpx" bind:click="saveForm">保存订单</van-button>
<van-button type="info" custom-style="margin-left:32rpx;height:88rpx;width:218rpx;" bind:click="submitForm">提交订单</van-button>
</submit-layout>
<submit-layout wx:elif="{{form && form.orderStatus == 0}}">
<van-button plain type="default" custom-style="height:88rpx;width:254rpx" bind:click="saveForm">保存订单</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="{{admin && form && form.orderStatus == 1}}">
<van-button plain type="default" custom-style="height:88rpx;width:254rpx" bind:click="cancelForm">取消订单</van-button>
<van-button type="info" custom-style="margin-left:32rpx;height:88rpx;width:400rpx" bind:click="priceForm">确认定价</van-button>
</submit-layout>
<submit-layout wx:if="{{admin && form && form.orderStatus == 3}}">
<van-button plain type="default" custom-style="height:88rpx;width:254rpx" bind:click="repeatForm">重新定价</van-button>
<van-button type="info" custom-style="margin-left:32rpx;height:88rpx;width:400rpx" bind:click="checkForm">审核</van-button>
</submit-layout>
<view style="border-radius: 50rpx;position: fixed;bottom:160rpx;right:50rpx" wx:if="{{form && form.orderStatus == 3}}">
<van-button round type="info" bind:click="printOrderInfo" custom-style="width: 100rpx;height: 100rpx;">
<van-icon name="printer" size="30px"/>
</van-button>
</view>
<van-dialog id="van-dialog" />
<notification id="qn-notification" />