|
|
|
@ -3,7 +3,10 @@ |
|
|
|
<view slot="content">{{form.scrapPaperReceiptId ? '修改订单' : '新增厂外收货'}}</view> |
|
|
|
</cu-custom> |
|
|
|
|
|
|
|
<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> |
|
|
|
<van-cell clickable center is-link bind:click="chooseCustomer"> |
|
|
|
<view slot="title" class="flex flex-justify"> |
|
|
|
<view class="flex flex-center text-black"> |
|
|
|
@ -13,7 +16,7 @@ |
|
|
|
<view class="{{form.factoryCustomerName ? 'text-black' : 'text-gray'}}">{{form.factoryCustomerName || '请选择客户'}}</view> |
|
|
|
</view> |
|
|
|
</van-cell> |
|
|
|
<van-cell clickable center is-link bind:click="showPlate"> |
|
|
|
<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> |
|
|
|
@ -31,58 +34,55 @@ |
|
|
|
<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"> |
|
|
|
<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="辅助设备" type="textarea" value="{{ form.equipmentRemark }}" input-align="right" bind:change="onChange" placeholder="请输入辅助设备" autosize border="{{ false }}" /> |
|
|
|
<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> |
|
|
|
|