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.
114 lines
6.6 KiB
114 lines
6.6 KiB
<!--pages/agent/edit/index.wxml-->
|
|
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content" class="text-cut" style="color:black;font-size:36rpx">{{factoryDetail.name || '纸厂卖货'}}</view>
|
|
</cu-custom>
|
|
|
|
<view class="bg-white flex flex-center" style="height:90rpx">
|
|
<view class="text-df flex flex-center" style="flex:1">提交订单</view>
|
|
<text class="cuIcon-right text-black" style="font-size:36rpx;"></text>
|
|
<view class="text-df flex flex-center" style="flex:1">等待预约</view>
|
|
<text class="cuIcon-right text-black" style="font-size:36rpx;"></text>
|
|
<view class="text-df flex flex-center" style="flex:1">线下送货</view>
|
|
<text class="cuIcon-right text-black" style="font-size:36rpx;"></text>
|
|
<view class="text-df flex flex-center" style="flex:1">余额提现</view>
|
|
</view>
|
|
|
|
<view class="margin-top bg-white" style="padding: 24rpx 30rpx;">
|
|
<view class="text-sg text-gray">纸品信息</view>
|
|
</view>
|
|
<view class="cu-list menu no-card sm-border">
|
|
<!-- <view class="cu-item text-sg" style="text-align: right">
|
|
<view class="title">客户名称:</view>
|
|
<input id="customerName" placeholder-style="color:#aaa" placeholder="请输入客户名称" value="{{form.customerName}}"
|
|
bindinput="bindInput" style="flex: 1"></input>
|
|
</view> -->
|
|
<view id="cateName" class="cu-item" style="border-top: 2rpx solid #f3f3f3" bindtap="showPicker">
|
|
<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" wx:if="{{cateName}}">
|
|
<view class="text-sg text-blue">{{cateName}}</view>
|
|
</view>
|
|
<view class="flex" style="text-align:left" wx:else>
|
|
<view class="text-sg text-input">请选择纸品</view>
|
|
</view>
|
|
</view>
|
|
<text class="cuIcon-right text-gray" wx:if="{{!flag}}" style="font-size:32rpx;padding-top:2rpx"></text>
|
|
</view>
|
|
<view class="cu-item">
|
|
<view class="text-sg" style="min-width:170rpx">预估单价(元/吨):</view>
|
|
<view class="text-sg text-black">
|
|
<text>{{formate.formatePrice(form.unitPrice)}}</text>
|
|
<text class="text-sm" wx:if="{{form.publicSubsidies}}">(已含补贴{{formate.formatePrice2(form.publicSubsidies, 0)}})</text>
|
|
</view>
|
|
</view>
|
|
<view class="cu-item text-sg" style="text-align: right">
|
|
<view class="title">预估重量(吨):</view>
|
|
<input id="totalEstimatedWeight" type="digit" placeholder-style="color:#aaa" placeholder="请输入预估重量"
|
|
value="{{form.totalEstimatedWeight}}" bindinput="bindInput" style="flex: 1"></input>
|
|
</view>
|
|
<view id="deliveryTime" class="cu-item" style="border-bottom: 0rpx solid #ddd" bindtap="showPicker">
|
|
<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.deliveryTime?'text-blue':'input-grey'}}">{{form.deliveryTime||'请选择货到时间'}}</view>
|
|
</view>
|
|
</view>
|
|
<text class="cuIcon-right text-gray" wx:if="{{!flag}}" style="font-size:32rpx;padding-top:2rpx"></text>
|
|
</view>
|
|
<view class="cu-item" style="border-bottom: 0rpx solid #ddd" bindtap="editAddress">
|
|
<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.deliveryTime?'text-blue':'input-grey'}}">{{form.deliveryTime||'请填写发货信息'}}</view>
|
|
</view>
|
|
</view>
|
|
<text class="cuIcon-right text-gray" style="font-size:32rpx;padding-top:2rpx"></text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="margin-top bg-white" style="margin-top: 16rpx;padding: 24rpx 30rpx;border-bottom: 2rpx solid #f3f3f3">
|
|
<view class="text-sg text-gray">车辆信息</view>
|
|
</view>
|
|
<view class="bg-white cu-list grid col-4 no-border" style="padding: 16rpx 24rpx 0rpx 24rpx" wx:if="{{vateList.length}}">
|
|
<view class="cu-item" wx:for="{{vateList}}" wx:key="index" style="padding: 0rpx 8rpx 8rpx 8rpx">
|
|
<wux-button outline block type="stone" size="cate" data-index="{{index}}" bind:click="tagChange">{{item.plateNumber}}</wux-button>
|
|
</view>
|
|
</view>
|
|
<view class="bg-white" style="padding: 0rpx 30rpx">
|
|
<view class="flex flex-justify" wx:for="{{vehicleList}}" wx:key="index" style="height: 100rpx;border-bottom:1rpx solid #f3f3f3;">
|
|
<text class="text-black text-sg">货车车牌{{index + 1}}:</text>
|
|
<view class="text-sg flex flex-center {{item.plateNumber?'text-black':'input-grey'}}" style="flex: 1;height:64rpx;justify-content: flex-start"
|
|
data-index="{{index}}" bindtap="showKeyboard">{{item.plateNumber||'点击输入车牌号码'}}</view>
|
|
<!-- <input id="plateNumber" data-index="{{index}}" maxlength="8" placeholder-style="color:#aaa;" disabled="{{true}}"
|
|
value="{{item.plateNumber||''}}" placeholder="点击输入车牌号码" bindinput="bindList" style="margin-right:16rpx;flex:1" /> -->
|
|
<text class="cuIcon-close text-gray" style="font-size:44rpx;" data-index="{{index}}" wx:if="{{vehicleList.length > 1}}" bindtap="deleteCate"></text>
|
|
</view>
|
|
<view class="flex flex-center" style="height:90rpx;line-height:90rpx" bindtap="addCate">
|
|
<text class="cuIcon-roundadd text-blue" style="font-size: 16px;"></text>
|
|
<text class="text-blue text-sg" style="margin-left:8rpx">添加车辆</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="margin-top bg-white" style="margin-top: 16rpx;padding: 24rpx 30rpx;border-bottom: 2rpx solid #f3f3f3">
|
|
<view class="text-sg text-gray">备注信息</view>
|
|
</view>
|
|
<view class="bg-white" style="padding-top:24rpx">
|
|
<view class="textarea {{form.remark?'text-black':'text-gray'}}" wx:if="{{picking}}">{{form.remark?form.remark:'点击输入备注,最多100字'}}</view>
|
|
<textarea wx:else id="remark" maxlength="100" value="{{form.remark}}" class="textarea" cursor-spacing="60" style="padding-top:4rpx"
|
|
show-confirm-bar="{{false}}" bindinput="bindInput" placeholder-style="color:#aaa" placeholder="点击输入备注,最多100字"></textarea>
|
|
</view>
|
|
|
|
|
|
<view style="height:{{136 + safeBottom}}rpx;"></view>
|
|
<view class="cu-bar bg-white foot" style="height:{{120 + safeBottom}}rpx;padding: 32rpx 32rpx {{safeBottom + 32}}rpx 32rpx;">
|
|
<view style="width:100%">
|
|
<wux-button block type="positive" bind:click="submitForm" disabled="{{requesting}}">提交订单</wux-button>
|
|
</view>
|
|
</view>
|
|
|
|
<picker-time id="picker-time" day="{{5}}" bindcustomevent="onDateChange"></picker-time>
|
|
<picker-view id="picker-view" bindcustomevent="onPickerChange"></picker-view>
|
|
<wux-dialog id="wux-dialog" />
|
|
|
|
<vehicle-keyboard id="wux-keyboard" safeBottom="{{safeBottom}}" bind:change="onPlatenumber"></vehicle-keyboard>
|