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.
200 lines
9.0 KiB
200 lines
9.0 KiB
<!--pages/process/payment/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-column" style="height:360rpx;background-color:#008AFF;align-items: center">
|
|
<view class="text-white text-sg" style="margin-top:72rpx">付款金额(元)</view>
|
|
<view class="text-white text-sl text-bold" style="margin-top:16rpx">{{formate.formateAmount(amount)}}</view>
|
|
</view>
|
|
|
|
<view class="bg-white" style="border-radius: 20rpx 20rpx 0rpx 0rpx;padding: 32rpx 0rpx;margin-top:-90rpx" wx:if="{{orderList}}">
|
|
<view class="flex flex-center" style="justify-content: flex-start;padding: 0rpx 32rpx">
|
|
<view style="height:24rpx;width:6rpx;background:#007AFF"></view>
|
|
<view class="text-black text-sg text-bold" style="margin-left: 12rpx">付款方式</view>
|
|
</view>
|
|
<view style="min-height:90rpx;padding-right:32rpx">
|
|
<van-radio-group value="{{ params.settleType }}" bind:change="onTypeChange">
|
|
<van-cell-group>
|
|
<van-cell title="现金" clickable data-name="1" bind:click="onTypeClick">
|
|
<van-radio slot="right-icon" name="1" />
|
|
</van-cell>
|
|
<van-cell clickable data-name="2" bind:click="onTypeClick">
|
|
<text slot="title">
|
|
<text>银行卡转账</text>
|
|
<text wx:if="{{params.bankCardNo}}">({{params.bankCardNo}})</text>
|
|
</text>
|
|
<van-radio slot="right-icon" name="2" disabled="{{!params.bankCardNo}}" />
|
|
</van-cell>
|
|
<van-cell title="使用千鸟代付" clickable is-link link-type="navigateTo" url="/pages/htmls/auths/index"></van-cell>
|
|
</van-cell-group>
|
|
</van-radio-group>
|
|
</view>
|
|
<view class="flex flex-center" style="justify-content: flex-start;margin-top:16rpx;padding: 0rpx 32rpx">
|
|
<view style="height:24rpx;width:6rpx;background:#007AFF"></view>
|
|
<view class="text-black text-sg text-bold" style="margin-left: 12rpx">付款备注</view>
|
|
</view>
|
|
<view style="min-height:90rpx;padding: 0rpx 32rpx">
|
|
<input id="payRemark" placeholder-style="color:#aaa" style="width:100%;height:90rpx" placeholder="请输入付款备注" bindinput="bindInput" />
|
|
<view style="height:1rpx;background:#eee"></view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="flex flex-justify bg-white lable" wx:if="{{orderList}}">
|
|
<view class="flex flex-center">
|
|
<text style="height:24rpx;width:6rpx;background:#007AFF"></text>
|
|
<text class="text-black text-sg text-bold" style="margin-left: 12rpx">订单列表</text>
|
|
<text class="text-gray text-sm" style="margin-left:12rpx">(共{{orderList.length}}笔订单)</text>
|
|
</view>
|
|
<text class="text-gray text-sm">点击订单项可以查看详情</text>
|
|
</view>
|
|
<van-cell clickable is-link wx:for="{{ orderList }}" wx:key="index">
|
|
<view slot="title" class="flex" style=";justify-content: flex-start">
|
|
<van-checkbox value="{{ !item.checked }}" custom-class="checkbox" data-index="{{index}}" icon-size="36rpx"
|
|
shape="square" bind:change="onChange"></van-checkbox>
|
|
<view style="flex:1;margin-left:16rpx" data-index="{{index}}" catchtap="lookItem">
|
|
<view class="flex flex-justify">
|
|
<view class="text-black text-lg">{{item.factoryCustomerName}} {{item.factoryCustomerMobile || ''}}</view>
|
|
<view class="text-sm text-gray">{{item.bangTime}}</view>
|
|
</view>
|
|
<view class="text-sm text-gray" style="line-height:54rpx">
|
|
<text>废纸品类:{{item.productName}}</text>
|
|
<text style="margin-left:32rpx">金额:{{formate.formateAmount(item.settlePrice)}}元</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</van-cell>
|
|
|
|
<view style="height:{{132 + safeBottom}}rpx;"></view>
|
|
<view class="cu-bar bg-white foot" style="height:{{132 + safeBottom}}rpx;padding:0rpx 32rpx {{safeBottom}}rpx 32rpx;" wx:if="{{orderList}}">
|
|
<van-button type="info" custom-style="height:88rpx;width:686rpx" disabled="{{amount==0}}" bind:click="paymentOrder">付款
|
|
</van-button>
|
|
</view>
|
|
|
|
<van-popup show="{{ popup }}" closeable position="bottom" z-index="66" custom-style="height: {{height * 0.85}}rpx" bind:close="onPopupClose">
|
|
<view class="text-sg text-bold" style="padding:30rpx;border-bottom: 2rpx solid #f3f3f3;height:100rpx">
|
|
<text>订单详情</text>
|
|
<text>({{detail.id}})</text>
|
|
</view>
|
|
<scroll-view scroll-y style="height: {{height * 0.85 - 100}}rpx;" wx:if="{{detail}}">
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">客户姓名</view>
|
|
<view class="text-gray">{{detail.factoryCustomerName}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{detail.plateNumber}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">车牌号码</view>
|
|
<view class="text-gray">{{detail.plateNumber || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">废纸品类</view>
|
|
<view class="text-gray">{{detail.productName}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">毛重(公斤)</view>
|
|
<view class="text-gray">{{detail.totalWeight}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">皮重(公斤)</view>
|
|
<view class="text-gray">{{detail.emptyWeight || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">净重(公斤)</view>
|
|
<view class="text-gray">{{detail.netWeight || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{detail.deductWeight}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">扣重(公斤)</view>
|
|
<view class="text-gray">-{{detail.deductWeight}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{detail.deductPercent}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">扣点(%)</view>
|
|
<view class="text-gray">{{detail.deductPercent}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{detail.inspectorName}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">定价员</view>
|
|
<view class="text-gray">{{detail.inspectorName || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">定价时间</view>
|
|
<view class="text-gray">{{detail.inspectionTime || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="text-black">
|
|
<view>过毛重照片</view>
|
|
<view class="flex" style="margin-top:18rpx">
|
|
<van-image wx:for="{{detail.totalWeighingPicture}}" wx:key="index" use-loading-slot width="150" height="100"
|
|
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="{{detail.emptyWeighingPicture && detail.emptyWeighingPicture.length}}">
|
|
<view slot="title" class="text-black">
|
|
<view>过皮重照片</view>
|
|
<view class="flex" style="margin-top:18rpx">
|
|
<van-image wx:for="{{detail.emptyWeighingPicture}}" wx:key="index" use-loading-slot width="150" height="100"
|
|
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="{{detail.inspectionRemark}}">
|
|
<view slot="title" class="text-black">
|
|
<view>备注</view>
|
|
<view class="flex" style="margin-top:18rpx;border: 2rpx solid #f3f3f3;padding: 18rpx;">{{detail.inspectionRemark}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">单价(元/公斤)</view>
|
|
<view class="text-gray">{{formate.formateAmount(detail.settleUnitPrice)}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">结算金额(元)</view>
|
|
<view class="text-gray">{{formate.formateAmount(detail.settlePrice) || '- -'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">下单时间</view>
|
|
<view class="text-gray">{{detail.createTime || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">订单编号</view>
|
|
<view class="text-gray">{{detail.id}}</view>
|
|
</view>
|
|
</van-cell>
|
|
</scroll-view>
|
|
</van-popup>
|
|
|
|
<van-dialog id="van-dialog" />
|