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.
177 lines
11 KiB
177 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>
|
|
|
|
<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 class="flex flex-center" style="flex: 1;justify-content: flex-start">
|
|
<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 class="text-red text-cancel" style="padding:4rpx 0rpx 4rpx 4rpx" bindtap="closeForm">关闭订单</view> -->
|
|
<van-button type="danger" round custom-style="width:120rpx" size="mini" bind:click="closeForm">关闭订单</van-button>
|
|
</view>
|
|
<van-cell center required clickable is-link arrow-direction="down" bind:click="showCategory">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="flex flex-center text-black">
|
|
<text>废纸品类</text>
|
|
</view>
|
|
<view class="{{form.categoryName ? 'text-black' : 'text-gray'}}">{{form.categoryName || '请选择废纸品类'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-field id="settleUnitPrice" required value="{{ form.settleUnitPrice || '' }}" type="digit" label="结算单价(元/吨)" title-width="240rpx" placeholder="{{form.konePrice || '请输入结算单价'}}" clearable input-align="right" bind:change="bindInput"></van-field>
|
|
<van-field id="netWeight" required value="{{ form.netWeight || '' }}" type="digit" label="净重(吨)" placeholder="请输入净重" clearable input-align="right" bind:change="bindInput"></van-field>
|
|
<van-field id="deductPercent" value="{{ form.deductPercent || '' }}" label="扣点(%)" maxlength="4" type="digit" placeholder="请输入扣点" clearable input-align="right" bind:change="bindInput"></van-field>
|
|
<van-field id="settleWeight" required value="{{ form.settleWeight || '' }}" label="结算重量(吨)" maxlength="8" type="digit" placeholder="请输入结算重量" clearable input-align="right" bind:change="bindInput"></van-field>
|
|
<!-- <van-field id="otherFee" value="{{ form.otherFee || '' }}" label="其他费用(元)" maxlength="8" type="digit" placeholder="请输入其他费用" clearable input-align="right" bind:change="bindInput"></van-field> -->
|
|
<van-field id="settlePrice" value="{{ form.settlePrice || '' }}" title-width="240rpx" label="纸厂结算金额(元)" maxlength="8" type="digit" placeholder="请输入结算金额" clearable input-align="right" bind:change="bindInput"></van-field>
|
|
<van-field id="proxyPaySurcharge" value="{{ form.proxyPaySurcharge || '' }}" label="代卖费(元)" maxlength="8" type="digit" placeholder="请输入代卖费" clearable input-align="right" bind:change="bindInput"></van-field>
|
|
<van-field id="freight" value="{{ form.freight || '' }}" label="运费(元)" maxlength="8" type="digit" placeholder="请输入运费" clearable input-align="right" bind:change="bindInput"></van-field>
|
|
<van-field id="otherFee" value="{{ form.otherFee || '' }}" label="其他费用(元)" maxlength="8" type="digit" placeholder="请输入其他费用" clearable input-align="right" bind:change="bindInput"></van-field>
|
|
<van-field id="subsidy" value="{{ form.subsidy || '' }}" label="补贴(元)" maxlength="8" type="digit" placeholder="请输入补贴" clearable input-align="right" bind:change="bindInput"></van-field>
|
|
<van-field value="{{ amout || '- -' }}" label="收入金额(元)" type="digit" disabled input-align="right"></van-field>
|
|
|
|
<view class="bg-white" style="padding: 24rpx 32rpx 20rpx 32rpx">
|
|
<view class="flex flex-justify" style="padding-bottom: 24rpx">
|
|
<view class="flex flex-center" style="justify-content: flex-start;">
|
|
<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>
|
|
<text class="text-gray">最多3张,每张图片大小限制5M</text>
|
|
</view>
|
|
<van-uploader file-list="{{ fileList }}" multiple max-count="3" max-size="{{1024 * 1024 * 5}}" bind:file-change="fileChange" />
|
|
</view>
|
|
</view>
|
|
<view class="margin-top"></view>
|
|
<van-collapse value="{{ activeNames }}" bind:change="onChange" wx:if="{{orderInfo}}">
|
|
<van-collapse-item name="2">
|
|
<view slot="title" class="flex flex-center" style="justify-content: flex-start;">
|
|
<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 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-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-field label="备注" type="textarea" input-align="right" readonly autosize border="{{ false }}" />
|
|
</van-collapse-item>
|
|
<view class="margin-top"></view>
|
|
<van-collapse-item content-class="collapse-item" name="1">
|
|
<view slot="title" class="flex flex-center" style="justify-content: flex-start;">
|
|
<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 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>
|
|
<van-cell 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" wx:if="{{poundInfo.totalWeighingPicture.length}}"></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 style="border-radius: 50rpx;position:fixed;bottom:{{160 + safeBottom}}rpx;right:50rpx">
|
|
<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>
|
|
|
|
<view style="height:16rpx" wx:if="{{orderInfo && orderInfo.status == 1}}"></view>
|
|
<submit-layout wx:if="{{orderInfo && orderInfo.status == 1}}">
|
|
<van-button 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="settlementForm">确认收款</van-button>
|
|
</submit-layout>
|
|
|
|
<van-popup position="bottom" show="{{ visible }}" bind:close="onHide" z-index="29">
|
|
<view class="van-picker__toolbar van-hairline--top-bottom toolbar-class">
|
|
<view class="van-picker__cancel" hover-stay-time="70"></view>
|
|
<view class="van-picker__title van-ellipsis">选择纸品</view>
|
|
<view class="van-picker__confirm flex flex-cener" hover-class="van-picker__confirm--hover" hover-stay-time="70" bindtap="onHide">
|
|
<van-icon name="cross" size="24" color="#999999" />
|
|
</view>
|
|
</view>
|
|
<scroll-view scroll-y="true" style="height:480rpx;padding: 12rpx 0rpx">
|
|
<van-grid column-num="3" border="{{fasle}}">
|
|
<van-grid-item use-slot wx:for="{{ paperList }}" wx:key="index" content-style="padding:12rpx">
|
|
<van-button plain type="{{index == cIndex ? 'info' : 'default'}}" custom-style="height:88rpx;width:208rpx;padding: 0rpx" data-index="{{index}}" bind:click="onConfirm">{{item.name}}</van-button>
|
|
</van-grid-item>
|
|
</van-grid>
|
|
</scroll-view>
|
|
</van-popup>
|
|
<van-dialog id="van-dialog" />
|
|
<notification id="qn-notification"/>
|