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.
99 lines
5.8 KiB
99 lines
5.8 KiB
<!--pages/process/order-check/index.wxml-->
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">{{form.scrapPaperReceiptId ? '修改订单' : '新增厂外收货'}}</view>
|
|
</cu-custom>
|
|
|
|
<view class="flex flex-center bg-white" style="justify-content: flex-start;padding: 24rpx 32rpx;border-bottom:1rpx solid #f3f3f3">
|
|
<view style="height:24rpx;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 clickable center is-link bind:click="chooseCustomer">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="flex flex-center text-black">
|
|
<view class="text-red text-xl" style="line-height: 10px; padding-top: 8px">*</view>
|
|
<text>客户姓名</text>
|
|
</view>
|
|
<view class="{{form.factoryCustomerName ? 'text-black' : 'text-gray'}}">{{form.factoryCustomerName || '请选择客户'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell clickable center is-link bind:click="showPlate" arrow-direction="down">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="flex flex-center text-black">
|
|
<view class="text-red text-xl" style="line-height: 10px; padding-top: 8px">*</view>
|
|
<text>车牌号码</text>
|
|
</view>
|
|
<view class="{{form.plateNumber ? 'text-black' : 'text-gray'}}">{{form.plateNumber || '请输入车牌号码'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell id="driverName" clickable center is-link bind:click="chooseEmploy">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="flex flex-center text-black">
|
|
<view class="text-red text-xl" style="line-height: 10px; padding-top: 8px">*</view>
|
|
<text>司机</text>
|
|
</view>
|
|
<view class="{{form.driverName ? 'text-black' : 'text-gray'}}">{{form.driverName || '请选择司机'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell id="operatorName" clickable center is-link bind:click="chooseEmploy">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">操作员</view>
|
|
<view class="{{form.operatorName ? 'text-black' : 'text-gray'}}">{{form.operatorName || '请选择操作员'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell clickable center is-link arrow-direction="down" bind:click="showCategory">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">预计到厂时间</view>
|
|
<view class="{{form.predictDeliveryToFactoryTime ? 'text-black' : 'text-gray'}}">{{form.predictDeliveryToFactoryTime || '请选择预计到厂时间'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-field label="辅助设备" value="{{ form.equipmentRemark }}" input-align="right" clearable bind:change="onChange" placeholder="请输入辅助设备" border="{{ false }}" />
|
|
<view style="height:16rpx"></view>
|
|
<!-- <van-index-anchor index="纸品信息" /> -->
|
|
<view class="flex flex-center bg-white" style="justify-content: flex-start;padding: 24rpx 32rpx;border-bottom:1rpx solid #f3f3f3">
|
|
<view style="height:24rpx;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>
|
|
<scroll-view scroll-y>
|
|
<view wx:for="{{form.productCategoryInfos}}" wx:key="index">
|
|
<view style="height:16rpx" wx:if="{{index > 0}}"></view>
|
|
<van-cell clickable center is-link data-index="{{index}}" arrow-direction="down" bind:click="showCategory">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="flex flex-center text-black">
|
|
<view class="text-red text-xl" style="line-height: 10px; padding-top: 8px">*</view>
|
|
<text style="margin-right: 12rpx;">品类{{index + 1}}</text>
|
|
<view class="flex flex-center" data-index="{{index}}" catchtap="deleteCate" wx:if="{{form.productCategoryInfos.length>1}}">
|
|
<van-icon name="close" size="36rpx" color="#999999"/>
|
|
</view>
|
|
</view>
|
|
<view class="{{item.productCategoryName ? 'text-black' : 'text-gray'}}">{{item.productCategoryName || '请选择品类'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-field data-index="{{index}}" value="{{ item.unitPrice || '' }}" type="digit" placeholder="请输入单价" clearable border="{{ false }}" input-align="right" bind:change="bindInput">
|
|
<view slot="label" class="flex text-black" style="width:200rpx">
|
|
<view class="text-red text-xl" style="line-height: 10px; padding-top: 12px">*</view>
|
|
<text>单价(元/公斤)</text>
|
|
</view>
|
|
</van-field>
|
|
</view>
|
|
<view class="flex flex-center bg-white" style="height:90rpx;margin-top:16rpx;" bindtap="addCate">
|
|
<!-- <text class="cuIcon-add text-blue text-bold" style="font-size:42rpx"></text> -->
|
|
<van-icon name="add-o" color="#008AFF" size="36rpx"/>
|
|
<text class="text-blue text-sg" style="margin-left:8rpx">添加品类</text>
|
|
</view>
|
|
</scroll-view>
|
|
|
|
<view style="height:16rpx"></view>
|
|
<submit-layout wx:if="{{form.scrapPaperReceiptId}}">
|
|
<van-button plain type="default" custom-style="height:88rpx;width:254rpx" bind:click="cancelOrder">取消订单</van-button>
|
|
<van-button type="info" custom-style="margin-left:32rpx;height:88rpx;width:400rpx" bind:click="submitForm">提交订单</van-button>
|
|
</submit-layout>
|
|
<submit-layout wx:else>
|
|
<van-button type="info" custom-style="height:88rpx;width:686rpx" bind:click="submitForm">提交订单</van-button>
|
|
</submit-layout>
|
|
|
|
<van-dialog id="van-dialog" />
|
|
<vehicle-keyboard id="wux-keyboard" safeBottom="{{safeBottom}}" bind:change="onPlatenumber"></vehicle-keyboard>
|
|
<van-popup position="bottom" show="{{ visible }}" bind:close="onHide" z-index="29">
|
|
<van-picker show-toolbar title="{{cateIndex >= 0 ? '选择纸品' : '选择预估时间'}}" columns="{{ columns }}" bind:cancel="onHide" bind:confirm="onConfirm" />
|
|
</van-popup>
|
|
<notification id="qn-notification"/>
|