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

107 lines
5.1 KiB

<!--pages/storage/index/index.wxml-->
<wxs module="formate" src="../../formate.wxs"></wxs>
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">出货信息</view>
</cu-custom>
<view wx:if="{{form}}">
<van-cell center is-link bind:click="chooseFactory">
<view slot="title" class="flex flex-justify">
<view class="flex flex-center text-black">
<view class="text-red text-xxl" style="line-height: 10px; padding-top: 10px">*</view>
<text>收货方名称</text>
</view>
<view class="text-gray">{{form.factoryName || '请选择收货方'}}</view>
</view>
</van-cell>
<van-cell center is-link bind:click="showCategory">
<view slot="title" class="flex flex-justify">
<view class="flex flex-center text-black">
<view class="text-red text-xxl" style="line-height: 10px; padding-top: 10px">*</view>
<text>废纸品类</text>
</view>
<view class="text-gray">{{form.productName || '请选择废纸品类'}}</view>
</view>
</van-cell>
<van-cell>
<view slot="title" class="flex flex-justify">
<view class="text-black">纸品包数</view>
<input id="packageQuantity" type="number" placeholder-style="color:#aaa" style="text-align: right" maxlength="8"
placeholder="请输入纸品包数" value="{{form.packageQuantity || ''}}" bindinput="bindInput" />
</view>
</van-cell>
<van-cell center bind:click="showPlate">
<view class="flex flex-justify text-black">
<view class="flex flex-center text-black">
<view class="text-red text-xxl" style="line-height: 10px; padding-top: 10px">*</view>
<text>车牌号码</text>
</view>
<view class="text-gray">{{form.plateNumber || '请输入车牌号码'}}</view>
</view>
</van-cell>
<van-cell>
<view slot="title" class="flex flex-justify">
<view class="text-black">
<text>司机姓名</text>
</view>
<input id="driverName" placeholder-style="color:#aaa" style="text-align: right" maxlength="12"
placeholder="请输司机姓名" value="{{form.driverName || ''}}" bindinput="bindInput" />
</view>
</van-cell>
<van-field label="备注" type="textarea" input-align="right" placeholder="请输入备注" autosize border="{{ false }}" />
</view>
<view class="margin-top"></view>
<van-collapse value="{{ activeNames }}" bind:change="onChange" wx:if="{{poundInfo}}">
<van-collapse-item title="过磅信息" content-class="collapse-item" name="1">
<van-cell wx:if="{{poundInfo.firstWeight}}">
<view slot="title" class="flex flex-justify">
<view class="text-black">第一次过磅(皮重)</view>
<view class="text-gray">{{formate.minWeight(poundInfo.firstWeight, poundInfo.secondWeight)}}</view>
</view>
</van-cell>
<view class="bg-white flex flex-justify" style="padding:24rpx 32rpx" wx:if="{{poundInfo.emptyWeighingPicture.length}}">
<van-image wx:for="{{poundInfo.emptyWeighingPicture}}" wx:key="index" use-loading-slot width="320rpx" height="240rpx"
data-url="{{item}}" fit="cover" data-type="0" src="{{item}}" bind:click="viewImage">
<view class="image-load" slot="loading">
<van-loading type="spinner" size="32" />
</view>
</van-image>
</view>
<van-cell wx:if="{{poundInfo.secondWeight}}">
<view slot="title" class="flex flex-justify">
<view class="text-black">第二次过磅(毛重)</view>
<view class="text-gray">重量(公斤):{{formate.maxWeight(poundInfo.firstWeight, poundInfo.secondWeight)}}</view>
</view>
</van-cell>
<view class="bg-white flex flex-justify" style="padding:24rpx 32rpx" wx:if="{{poundInfo.totalWeighingPicture.length}}">
<van-image wx:for="{{poundInfo.totalWeighingPicture}}" wx:key="index" use-loading-slot width="320rpx" height="240rpx"
data-url="{{item}}" fit="cover" data-type="1" src="{{item}}" bind:click="viewImage">
<view class="image-load" slot="loading">
<van-loading type="spinner" size="32" />
</view>
</van-image>
</view>
<van-cell wx:if="{{poundInfo.netWeight}}">
<view slot="title" class="flex flex-justify">
<view class="text-black">净重(公斤)</view>
<view class="text-gray">{{form.netWeight}}</view>
</view>
</van-cell>
<van-cell wx:if="{{poundInfo.operaterId}}">
<view slot="title" class="flex flex-justify">
<view class="text-black">过磅人</view>
<view class="text-gray">{{poundInfo.operaterName}}</view>
</view>
</van-cell>
</van-collapse-item>
</van-collapse>
<view style="height:{{136 + safeBottom}}rpx;" wx:if="{{poundInfo}}"></view>
<submit-layout wx:if="{{poundInfo}}">
<van-button type="info" custom-style="height:88rpx;width:680rpx" bind:click="submitForm">提交</van-button>
</submit-layout>
<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="选择纸品" columns="{{ columns }}" bind:cancel="onHide" bind:confirm="onConfirm" />
</van-popup>
<notification id="qn-notification"/>