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.
128 lines
7.1 KiB
128 lines
7.1 KiB
<!--pages/process/index.wxml-->
|
|
<wxs module="formate" src="../../formate.wxs"></wxs>
|
|
<cu-custom bgColor="bg-blue">
|
|
<view slot="right" class="text-white text-xl" style="padding-left:32rpx">{{userInfo.factoryName || '未注册工厂'}}</view>
|
|
</cu-custom>
|
|
|
|
<scroll-view scroll-y style="height: {{height}}rpx;">
|
|
|
|
<view class="bg-white flex flex-justify" style="height:80rpx;padding: 0rpx 32rpx">
|
|
<view class="text-black text-df" bindtap="showCalendar">{{vdateString}}</view>
|
|
<view class="flex flex-center" bindtap="showSheet" style="padding: 2rpx 0rpx">
|
|
<view class="text-black text-df" style="margin-right:8rpx">{{sheetStr}}</view>
|
|
<van-icon name="{{sheet ? 'arrow-up' : 'arrow-down'}}" />
|
|
</view>
|
|
</view>
|
|
|
|
<view style="padding: 0rpx 28rpx;margin-top:24rpx">
|
|
<view class="bg-white" style="border-radius: 20rpx;padding: 24rpx 0rpx 8rpx 0rpx">
|
|
<view class="flex flex-justify" style="padding: 0rpx 28rpx 24rpx 28rpx">
|
|
<view class="text-black text-sg text-bold">收货统计</view>
|
|
<!-- <view class="flex flex-center" bindtap="showSheet" style="padding: 2rpx 0rpx">
|
|
<view class="text-black text-sm" style="margin-right:8rpx">{{vdateString}}</view>
|
|
</view> -->
|
|
</view>
|
|
|
|
<view class="flex" style="padding:0rpx 0rpx 24rpx 0rpx" bindtap="orderList">
|
|
<view style="flex:1;padding:0rpx 32rpx;margin-right:12rpx">
|
|
<view class="flex flex-center" style="justify-content: flex-start">
|
|
<view style="height:24rpx;width:6rpx;background:#007AFF"></view>
|
|
<view class="text-black text-sm" style="margin-left: 12rpx">收货重量</view>
|
|
</view>
|
|
<view class="text-xxl text-bold" style="margin:12rpx 0rpx">{{formate.formateWeight(totalInfo.totalWeight)}}吨</view>
|
|
<view class="text-gray text-sm">查看收货详情</view>
|
|
</view>
|
|
<view style="flex:1;padding:0rpx 32rpx;margin-left:12rpx">
|
|
<view class="flex flex-center" style="justify-content: flex-start">
|
|
<view style="height:24rpx;width:6rpx;background:#FF8413"></view>
|
|
<view class="text-black text-sm" style="margin-left: 12rpx">收货金额</view>
|
|
</view>
|
|
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{formate.formateAmount(totalInfo.totalMoney)}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view style="padding: 0rpx 28rpx;margin-top:24rpx">
|
|
<view class="bg-white" style="border-radius: 20rpx;padding: 24rpx 0rpx 12rpx 0rpx">
|
|
<view class="flex flex-justify" style="padding: 0rpx 28rpx 8rpx 28rpx">
|
|
<view class="text-black text-sg text-bold">厂内收货</view>
|
|
<view class="flex flex-center" style="padding:4rpx 0rpx 4rpx 4rpx" bindtap="orderList">
|
|
<view class="text-gray text-sm" style="margin-right:8rpx">查看全部订单</view>
|
|
<van-icon name="arrow" color="#aaa"/>
|
|
</view>
|
|
</view>
|
|
<van-grid column-num="4" border="{{fasle}}">
|
|
<van-grid-item wx:for="{{ tabList }}" wx:key="index" data-status="{{item.status}}" bind:click="checkList" text="{{item.name}}">
|
|
<van-icon slot="icon" name="{{ item.icon }}" size="68rpx" info="{{item.badge}}" />
|
|
</van-grid-item>
|
|
</van-grid>
|
|
</view>
|
|
</view>
|
|
|
|
<view style="padding: 0rpx 28rpx;margin-top:24rpx">
|
|
<view class="bg-white" style="border-radius: 20rpx;padding: 24rpx 0rpx 12rpx 0rpx">
|
|
<view class="flex flex-justify" style="padding: 0rpx 28rpx 8rpx 28rpx">
|
|
<view class="text-black text-sg text-bold">厂外收货</view>
|
|
<view class="flex flex-center" style="padding:4rpx 0rpx 4rpx 4rpx" bindtap="outsideList">
|
|
<view class="text-gray text-sm" style="margin-right:8rpx">查看全部订单</view>
|
|
<van-icon name="arrow" color="#aaa"/>
|
|
</view>
|
|
</view>
|
|
<van-grid column-num="4" border="{{fasle}}">
|
|
<van-grid-item wx:for="{{ tabList1 }}" wx:key="index" data-status="{{item.status}}" bind:click="outsideList" text="{{item.name}}">
|
|
<van-icon slot="icon" name="{{ item.icon }}" size="68rpx" info="{{item.badge}}" />
|
|
</van-grid-item>
|
|
</van-grid>
|
|
</view>
|
|
</view>
|
|
|
|
<view style="padding: 0rpx 28rpx;margin-top:24rpx" wx:if="{{!totalInfo.creditLine}}">
|
|
<image style="width:694rpx;height:250rpx" src="https://pic.imgdb.cn/item/609ba232d1a9ae528fd0392d.png" bindtap="toAuths"></image>
|
|
</view>
|
|
<view style="padding: 0rpx 28rpx;margin-top:24rpx" bindtap="agentList" wx:else>
|
|
<view class="bg-white" style="border-radius: 20rpx;padding: 24rpx 0rpx 8rpx 0rpx">
|
|
<view class="flex flex-justify" style="padding: 0rpx 28rpx 24rpx 28rpx">
|
|
<view class="text-black text-sg text-bold">千鸟代付额度</view>
|
|
<view class="flex flex-center" style="padding:4rpx 0rpx 4rpx 4rpx">
|
|
<view class="text-gray text-sm" style="margin-right:8rpx">查看代付详情</view>
|
|
<van-icon name="arrow" color="#aaa"/>
|
|
</view>
|
|
</view>
|
|
<view class="flex" style="padding:0rpx 0rpx 24rpx 0rpx">
|
|
<view style="flex:1;padding:0rpx 32rpx;margin-right:12rpx">
|
|
<view class="flex flex-center" style="justify-content: flex-start">
|
|
<view style="height:24rpx;width:6rpx;background:#007AFF"></view>
|
|
<view class="text-black text-sm" style="margin-left: 12rpx">剩余代付额度</view>
|
|
</view>
|
|
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{totalInfo.availableCreditLine || 0}}</view>
|
|
</view>
|
|
<view style="flex:1;padding:0rpx 32rpx;margin-left:12rpx">
|
|
<view class="flex flex-center" style="justify-content: flex-start">
|
|
<view style="height:24rpx;width:6rpx;background:#FF8413"></view>
|
|
<view class="text-black text-sm" style="margin-left: 12rpx">待付款金额</view>
|
|
</view>
|
|
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{totalInfo.usedCreditLine || 0}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view style="height:24rpx;"></view>
|
|
|
|
</scroll-view>
|
|
|
|
<van-calendar show="{{ show }}" type="range" row-height="50" color="#008AFF" z-index="22" min-date="{{ minDate }}" max-date="{{ maxDate }}" default-date="{{ vdate }}" top="{{ 1500 }}" show-subtitle="{{ false }}" show-confirm="{{ false }}" bind:close="onClose" bind:confirm="onSelect"/>
|
|
|
|
<van-action-sheet show="{{ sheet }}" actions="{{ actions }}" bind:cancel="onCancel" bind:close="onCancel"
|
|
bind:select="onAction" cancel-text="取消" z-index="22" />
|
|
|
|
<van-popup position="top" show="{{ visible }}" bind:close="onHide" z-index="29">
|
|
<view class="bg-white" style="margin-top:{{customBar}}px;width: 100%;">
|
|
<scroll-view scroll-y style="height:{{ 96 * (factoryList.length >= 5 ? 5 : factoryList.length)}}rpx;">
|
|
<van-cell clickable wx:for="{{factoryList}}" custom-class="fcell" wx:key="index" data-index="{{index}}" bind:click="changeFactory">
|
|
<view class="text-lg {{ item.id == factoryId ? 'text-blue' : 'text-black'}}" slot="title">{{item.name}}</view>
|
|
<van-icon slot="right-icon" name="success" size="1.3em" color="#008AFF" wx:if="{{item.id == factoryId}}"/>
|
|
</van-cell>
|
|
</scroll-view>
|
|
</view>
|
|
</van-popup>
|