纸通宝SAAS仓库
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.
 

116 lines
6.7 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:30rpx;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">
<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:30rpx;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="{{item.konePrice || '请输入单价'}}" 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" />
<van-popup position="bottom" show="{{ visible }}" bind:close="onHide" z-index="29">
<van-picker show-toolbar title="选择预估时间" columns="{{ columns }}" bind:cancel="onHide" bind:confirm="onConfirm" />
</van-popup>
<van-popup position="bottom" show="{{ visible2 }}" bind:close="onHide" z-index="29">
<view class="van-picker__toolbar van-hairline--top-bottom toolbar-class">
<view style="width: 96rpx;" hover-stay-time="70"></view>
<view class="van-picker__title van-ellipsis">选择纸品</view>
<view class="van-picker__confirm flex flex-cener" hover-class="van-picker__confirm--hover" hover-stay-time="70" bindtap="onHide">
<van-icon name="cross" size="24" color="#999999" />
</view>
</view>
<scroll-view scroll-y="true" style="height:480rpx;padding: 12rpx 0rpx">
<van-grid column-num="3" border="{{fasle}}">
<van-grid-item use-slot wx:for="{{ paperList }}" wx:key="index" content-style="padding:12rpx">
<van-button plain type="{{index == cIndex ? 'info' : 'default'}}" custom-style="height:88rpx;width:208rpx;padding: 0rpx" data-index="{{index}}" bind:click="onCateConfirm">{{item.name}}</van-button>
</van-grid-item>
</van-grid>
</scroll-view>
</van-popup>
<vip-dialog id="vip-dialog"/>
<notification id="qn-notification"/>