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.
136 lines
8.2 KiB
136 lines
8.2 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}}">
|
|
<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 id="orderId" clickable center is-link bind:click="chooseList">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="flex flex-center text-black">
|
|
<text>关联代卖单</text>
|
|
</view>
|
|
<view class="{{form.agencySellOrderItemId ? 'text-black' : 'text-gray'}}">{{form.agencySellOrderItemId || '请选择代卖订单'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell id="factoryId" clickable center is-link bind:click="chooseList">
|
|
<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.consigneeName ? 'text-black' : 'text-gray'}}">{{form.consigneeName || '请选择收货方'}}</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="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.productName ? 'text-black' : 'text-gray'}}">{{form.productName || '请选择废纸品类'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-field id="packageQuantity" label="纸品包数" value="{{ form.packageQuantity || '' }}" type="number" placeholder="请输入纸品包数" clearable input-align="right" bind:change="bindInput"></van-field>
|
|
<van-cell clickable is-link arrow-direction="down" center bind:click="showPlate">
|
|
<view class="flex flex-justify text-black">
|
|
<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-field id="driverName" label="司机姓名" value="{{ form.driverName || '' }}" maxlength="12" placeholder="请输司机姓名" clearable input-align="right" bind:change="bindInput"></van-field>
|
|
|
|
<van-field id="unitPrice" label="出货单价(元/吨)" title-width="240rpx" value="{{ form.unitPrice || '' }}" maxlength="8" type="digit" placeholder="{{form.konePrice || '请输入出货单价'}}" clearable input-align="right" bind:change="bindInput">
|
|
<view slot="left-icon" class="text-red text-xl" style="line-height: 10px; padding-top: 8px">*</view>
|
|
</van-field>
|
|
|
|
<van-field id="estimatedAmount" label="预估金额" value="{{ form.estimatedAmount || '- -' }}" disabled input-align="right" bind:change="bindInput"></van-field>
|
|
|
|
</view>
|
|
<view class="margin-top"></view>
|
|
<van-collapse value="{{ activeNames }}" bind:change="onChange" wx:if="{{poundInfo}}">
|
|
<van-collapse-item content-class="collapse-item" name="1">
|
|
<view slot="title" class="flex flex-center" style="justify-content: flex-start;">
|
|
<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 wx:if="{{poundInfo.firstWeight}}" border="{{false}}">
|
|
<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 use-loading-slot wx:for="{{poundInfo.emptyWeighingPicture}}" wx:key="index" use-loading-slot width="330rpx" 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>
|
|
<view class="van-hairline--top" style="height:1px;margin-top: 24rpx;margin-left: 24rpx" wx:if="{{poundInfo.secondWeight}}"></view>
|
|
<van-cell wx:if="{{poundInfo.secondWeight}}" border="{{false}}">
|
|
<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:0rpx 32rpx" wx:if="{{poundInfo.totalWeighingPicture.length}}">
|
|
<van-image wx:for="{{poundInfo.totalWeighingPicture}}" wx:key="index" use-loading-slot width="330rpx" 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>
|
|
<view class="van-hairline--top" style="height:1px;margin-top: 24rpx;margin-left: 24rpx"></view>
|
|
<van-cell wx:if="{{poundInfo.netWeight}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">净重(公斤)</view>
|
|
<view class="text-gray">{{poundInfo.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 wx:else>
|
|
<view class="flex flex-center bg-white margin-top" 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-field id="totalWeight" label="毛重(公斤)" value="{{ form.totalWeight || '' }}" type="digit" placeholder="请输入毛重" clearable input-align="right" bind:change="bindInput">
|
|
</van-field>
|
|
<van-field id="emptyWeight" label="皮重(公斤)" value="{{ form.emptyWeight || '' }}" type="digit" placeholder="请输入皮重" clearable input-align="right" bind:change="bindInput">
|
|
</van-field>
|
|
<van-field id="netWeight" label="净重(公斤)" value="{{ form.netWeight || '' }}" type="digit" placeholder="请输入净重" clearable input-align="right" bind:change="bindInput">
|
|
<view slot="left-icon" class="text-red text-xl" style="line-height: 10px; padding-top: 8px">*</view>
|
|
</van-field>
|
|
<view class="bg-white" style="padding: 24rpx 32rpx 20rpx 32rpx">
|
|
<view class="flex flex-justify" style="padding-bottom: 24rpx">
|
|
<view class="flex flex-center text-black">出货凭证</view>
|
|
<text class="text-gray">4张以内,每张图片大小限制5M</text>
|
|
</view>
|
|
<van-uploader file-list="{{ imageList }}" multiple max-count="4" max-size="{{1024 * 1024 * 5}}" bind:file-change="fileChange" />
|
|
</view>
|
|
</view>
|
|
|
|
<submit-layout>
|
|
<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>
|
|
<paper-select visible="{{visible}}" paper-list="{{paperList}}" bind:select="onSelect"></paper-select>
|
|
|
|
<vip-dialog id="vip-dialog"/>
|
|
<notification id="qn-notification"/>
|