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.2 KiB
99 lines
5.2 KiB
<!--pages/process/order-check/index.wxml-->
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">{{form.scrapPaperReceiptId ? '修改订单' : '新增厂外收货'}}</view>
|
|
</cu-custom>
|
|
|
|
<van-index-anchor index="订单信息" />
|
|
<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">
|
|
<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-index-anchor index="纸品信息" />
|
|
<scroll-view class="bg-white" scroll-y>
|
|
<view wx:for="{{form.productCategoryInfos}}" wx:key="index" class="cate-list">
|
|
<view class="flex flex-justify cate-header">
|
|
<view class="flex flex-center">
|
|
<text class="text-black text-lg">品类</text>
|
|
<text class="cate-index text-black">{{index + 1}}</text>
|
|
</view>
|
|
<van-icon name="close" size="44rpx" wx:if="{{form.productCategoryInfos.length>1}}" data-index="{{index}}" bind:click="deleteCate"/>
|
|
</view>
|
|
<van-cell clickable center is-link data-index="{{index}}" 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>废纸品类</text>
|
|
</view>
|
|
<view class="{{item.productCategoryName ? 'text-black' : 'text-gray'}}">{{item.productCategoryName || '请选择废纸品类'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell border="{{false}}">
|
|
<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>
|
|
<input data-index="{{index}}" type="digit" placeholder-style="color:#aaa" style="text-align: right" maxlength="8"
|
|
placeholder="请输入单价" value="{{item.unitPrice || ''}}" bindinput="bindInput" />
|
|
</view>
|
|
</van-cell>
|
|
</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> -->
|
|
<van-icon name="plus" color="#008AFF"/>
|
|
<text class="text-blue text-sg">添加品类</text>
|
|
</view>
|
|
</scroll-view>
|
|
<van-index-anchor index="其他信息" />
|
|
<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 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="辅助设备" type="textarea" value="{{ form.equipmentRemark }}" input-align="right" bind:change="onChange" placeholder="请输入辅助设备" autosize border="{{ false }}" />
|
|
|
|
<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}}" triplet="{{1}}" 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"/>
|