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.
103 lines
5.8 KiB
103 lines
5.8 KiB
<!--pages/order/create/index.wxml-->
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">预约下单</view>
|
|
</cu-custom>
|
|
|
|
<view class="margin-top bg-white" scroll-y style="padding: 2px 0px">
|
|
<view wx:for="{{orderPapers}}" wx:key="index" class="cate-list">
|
|
<view class="flex flex-justify cate-header">
|
|
<view class="flex flex-center">
|
|
<text class="text-black text-lg">品类{{index + 1}}</text>
|
|
<!-- <text class="cate-index text-black">{{index + 1}}</text> -->
|
|
</view>
|
|
<text class="cuIcon-close text-black" wx:if="{{orderPapers.length>1}}" style="font-size:42rpx" data-index="{{index}}" catchtap="deleteCate" />
|
|
</view>
|
|
<view style="width:100%;padding:0rpx 30rpx">
|
|
<view class="flex flex-justify cate-paper" data-index="{{index}}" catchtap="showPaperPicker">
|
|
<text class="text-black text-sg">废纸品类:</text>
|
|
<view class="flex flex-center">
|
|
<view class="flex flex-column">
|
|
<view class="text-sg {{item.cateName?'text-black':'text-gray'}}" style="text-align:right;padding-top:{{item.cateName?28:-4}}rpx">{{item.cateName||'请选择'}}</view>
|
|
<view class="text-xs text-yellow" style="margin-top:-4rpx;text-align:right">{{item.cateName?'指导价格:1.2':''}}</view>
|
|
</view>
|
|
<text class="cuIcon-right text-gray" style="font-size:32rpx;padding-top:6rpx"></text>
|
|
</view>
|
|
</view>
|
|
<view class="flex flex-justify cate-paper" data-index="{{index}}" catchtap="showStatusPicker">
|
|
<text class="text-black text-sg">纸品状态:</text>
|
|
<view class="flex flex-center">
|
|
<text class="text-sg {{item.paperStateStr?'text-black':'text-gray'}}">{{item.paperStateStr||'请选择'}}</text>
|
|
<text class="cuIcon-right text-gray" style="font-size:32rpx;padding-top:2rpx"></text>
|
|
</view>
|
|
</view>
|
|
<view class="flex flex-justify cate-paper">
|
|
<text class="text-black text-sg">预估价格(元/kg):</text>
|
|
<input data-index="{{index}}" maxlength="8" type="digit" class="cate-input" placeholder-style="color:#aaa;" value="{{item.price||''}}" placeholder="点击填写预估价格" bindinput="bindPrice" bindblur="sumAmount" />
|
|
</view>
|
|
<view class="flex flex-justify" style="height:100rpx">
|
|
<text class="text-black text-sg">预估重量(kg):</text>
|
|
<view class="flex flex-column">
|
|
<input data-index="{{index}}" maxlength="8" type="number" class="cate-input" placeholder-style="color:#aaa;" value="{{item.weight||''}}" placeholder="点击填写预估重量" bindinput="bindWeight" style="margin-top:{{item.weight>0?24:0}}rpx" bindblur="sumAmount" />
|
|
<view class="text-sm text-blue" style="margin-top:-12rpx;text-align:right">{{order.handleWeight(item.weight)}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="flex flex-center" style="height:70rpx;margin-bottom:15rpx;margin-top:-12rpx;" bindtap="addCate">
|
|
<text class="cuIcon-add text-blue text-bold" style="font-size:42rpx"></text>
|
|
<text class="text-blue text-sg">添加品类</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="cu-list menu no-card sm-border margin-top">
|
|
<view id="operation" class="cu-item" bindtap="showDatePicker">
|
|
<view class="flex flex-justify content cu-item arrow">
|
|
<view class="text-sg" style="min-width:170rpx">下单工厂:</view>
|
|
<view class="flex" style="text-align:left">
|
|
<view class="text-sg {{form.appointDate?'text-blue':'input-grey'}}">{{form.appointDate||'请选择下单工厂'}}</view>
|
|
</view>
|
|
</view>
|
|
<text class="cuIcon-right text-gray" wx:if="{{!flag}}" style="font-size:32rpx;padding-top:2rpx"></text>
|
|
</view>
|
|
<view id="address" class="cu-item" bindtap="chooseLocation">
|
|
<view class="flex flex-justify content cu-item arrow">
|
|
<view class="text-sg" style="min-width:170rpx">收货地址:</view>
|
|
<view class="flex" style="text-align:left">
|
|
<view class="text-sg {{form.poiName?'text-blue':'input-grey'}}">{{form.poiName||'请选择收货地址'}}</view>
|
|
</view>
|
|
</view>
|
|
<text class="cuIcon-right text-gray" wx:if="{{!flag}}" style="font-size:32rpx;padding-top:2rpx"></text>
|
|
</view>
|
|
<view id="timing" class="cu-item" bindtap="showDatePicker">
|
|
<view class="flex flex-justify content cu-item arrow">
|
|
<view class="text-sg" style="min-width:170rpx">收货时间:</view>
|
|
<view class="flex" style="text-align:left">
|
|
<view class="text-sg {{form.appointDate?'text-blue':'input-grey'}}">{{form.appointDate||'请选择收货时间'}}</view>
|
|
<view class="text-sg text-blue" style="margin-left:{{form.appointTimePeriodStr.length > 1 ? 24 : 0}}rpx">{{form.appointTimePeriodStr}}</view>
|
|
</view>
|
|
</view>
|
|
<text class="cuIcon-right text-gray" wx:if="{{!flag}}" style="font-size:32rpx;padding-top:2rpx"></text>
|
|
</view>
|
|
<view class="cu-bar bg-white">
|
|
<view class="action" style="color:#333333">备注:</view>
|
|
</view>
|
|
<view class="bg-white">
|
|
<view class="textarea" wx:if="{{picking}}">{{form.remark?form.remark:'点击输入备注,最多100字'}}</view>
|
|
<textarea wx:else id="remark" maxlength="100" value="{{form.remark}}" class="textarea" cursor-spacing="60" show-confirm-bar="{{false}}" bindinput="bindForm" placeholder="点击输入备注,最多100字" bindkeyboardheightchange="bindKeyboard"></textarea>
|
|
</view>
|
|
</view>
|
|
|
|
<view style="height:118rpx"></view>
|
|
|
|
<view class="cu-bar bg-white tabbar foot">
|
|
<view class="action" style="flex:4;padding-left:60rpx;text-align: left">
|
|
<text class="text-gray text-sg">预估:</text>
|
|
<text class="text-black text-bold" style="font-size: 44rpx">{{order.formatePrice(form.estimatePrice)}}</text>
|
|
<text class="text-gray text-sg" style="margin-left:8rpx">元</text>
|
|
</view>
|
|
<button class="bg-blue submit" bindtap="submitForm" disabled="{{requesting}}" style="border-radius: 0px">确认</button>
|
|
</view>
|
|
|
|
<picker-view id="picker-view" bindcustomevent="onPaperChange"></picker-view>
|
|
<check-view id="check-view" bindcustomevent="onStatusChange"></check-view>
|
|
<picker-time id="picker-time" bindcustomevent="onDateChange"></picker-time>
|