|
@@ -35,9 +35,9 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="df line2 disc" style="padding: 20rpx;border-bottom: 2rpx solid #ddd;margin-top: 30rpx;" wx:if="{{tab==2||tab==4}}">
|
|
<view class="df line2 disc" style="padding: 20rpx;border-bottom: 2rpx solid #ddd;margin-top: 30rpx;" wx:if="{{tab==2||tab==4}}">
|
|
|
- <view class="box-title">卸货港</view>
|
|
|
|
|
|
|
+ <view class="tab-title">卸货港</view>
|
|
|
<view>
|
|
<view>
|
|
|
- <picker class="picker0" bindchange="bindDiscPortChange" value="{{currentDischargeIndex}}" range="{{currentBillItem.discPorts}}" range-key="portName">
|
|
|
|
|
|
|
+ <picker class="picker0 tab-ipt" bindchange="bindDiscPortChange" value="{{currentDischargeIndex}}" range="{{currentBillItem.discPorts}}" range-key="portName">
|
|
|
<view class="text">
|
|
<view class="text">
|
|
|
{{currentBillItem.discPorts[currentDischargeIndex].portName||'请选择卸货港'}}
|
|
{{currentBillItem.discPorts[currentDischargeIndex].portName||'请选择卸货港'}}
|
|
|
</view>
|
|
</view>
|
|
@@ -47,9 +47,9 @@
|
|
|
<block wx:if="{{tab==2}}">
|
|
<block wx:if="{{tab==2}}">
|
|
|
<view class="p20 box2" wx:if="{{currentDischargeIndex!=-1}}">
|
|
<view class="p20 box2" wx:if="{{currentDischargeIndex!=-1}}">
|
|
|
<view class="df line2">
|
|
<view class="df line2">
|
|
|
- <view class="box-title ">卸货时间</view>
|
|
|
|
|
|
|
+ <view class="tab-title">卸货时间</view>
|
|
|
<view>
|
|
<view>
|
|
|
- <picker class="picker2" mode="date" style="border-radius: 0;" model:value="{{dischargeTime}}">
|
|
|
|
|
|
|
+ <picker class="picker2 tab-ipt" mode="date" style="border-radius: 0;" model:value="{{dischargeTime}}">
|
|
|
<view class="text" style="color:#6C6C6C">
|
|
<view class="text" style="color:#6C6C6C">
|
|
|
{{dischargeTime||'选择卸货时间'}}
|
|
{{dischargeTime||'选择卸货时间'}}
|
|
|
</view>
|
|
</view>
|
|
@@ -57,46 +57,48 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="df line2">
|
|
<view class="df line2">
|
|
|
- <view class="box-title">卸货吨位(吨)</view>
|
|
|
|
|
- <view><input model:value="{{dischargeTons}}" type="digit" placeholder="必填" /></view>
|
|
|
|
|
|
|
+ <view class="tab-title">卸货吨位(吨)</view>
|
|
|
|
|
+ <view><input class="tab-ipt" model:value="{{dischargeTons}}" type="digit" placeholder="必填" /></view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="df line2">
|
|
<view class="df line2">
|
|
|
- <view class="box-title">卸货件数</view>
|
|
|
|
|
- <view class="text"><input model:value="{{dischargePieces}}" type="number" /></view>
|
|
|
|
|
|
|
+ <view class="tab-title">卸货件数</view>
|
|
|
|
|
+ <view class="text"><input class="tab-ipt" model:value="{{dischargePieces}}" type="number" /></view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="primary" bindtap="distributeBills">确认</view>
|
|
<view class="primary" bindtap="distributeBills">确认</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</block>
|
|
</block>
|
|
|
<block wx:if="{{tab==4}}">
|
|
<block wx:if="{{tab==4}}">
|
|
|
- <view wx:if="{{ocrList.length==0}}" class="primary" bindtap="ocr">开始识别</view>
|
|
|
|
|
- <view wx:else>
|
|
|
|
|
- <block wx:for="{{ocrList}}" wx:key="viewUrl">
|
|
|
|
|
- <view class="p20 box2" wx:if="{{currentDischargeIndex!=-1&&ocrList.length}}">
|
|
|
|
|
- <view class="df jcsb line2">
|
|
|
|
|
- <view>车牌</view>
|
|
|
|
|
- <view><input bindblur="ocrInputBlur" data-index="{{index}}" data-param="carNum" value="{{item.carNum}}" type="text" placeholder="" /></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="df jcsb line2">
|
|
|
|
|
- <view>收货单位</view>
|
|
|
|
|
- <view><input bindblur="ocrInputBlur" data-index="{{index}}" data-param="receivingUnit" value="{{item.receivingUnit}}" type="text" /></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="df jcsb line2">
|
|
|
|
|
- <view>毛重</view>
|
|
|
|
|
- <view><input bindblur="ocrInputBlur" data-index="{{index}}" data-param="grossWeight" value="{{item.grossWeight}}" type="digit" /></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="df jcsb line2">
|
|
|
|
|
- <view>皮重</view>
|
|
|
|
|
- <view><input bindblur="ocrInputBlur" data-index="{{index}}" data-param="tare" value="{{item.tare}}" type="digit" /></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="df jcsb line2">
|
|
|
|
|
- <view>净重</view>
|
|
|
|
|
- <view><input bindblur="ocrInputBlur" data-index="{{index}}" data-param="netWeight" value="{{item.netWeight}}" type="digit" /></view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <block wx:for="{{ocrList}}" wx:key="viewUrl">
|
|
|
|
|
+ <view class="p20 box2 tab4" wx:if="{{currentDischargeIndex!=-1}}">
|
|
|
|
|
+ <view class="df aib jcsb">
|
|
|
|
|
+ <view style="color: #666;">记录 #{{index+1}}</view>
|
|
|
|
|
+ <view class="delete-one" data-index="{{index}}" bindtap="deleteOne">移除</view>
|
|
|
</view>
|
|
</view>
|
|
|
- </block>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view wx:if="{{currentDischargeIndex!=-1&&ocrList.length}}" class="primary" bindtap="distributeBills">确认</view>
|
|
|
|
|
|
|
+ <view class="df line2">
|
|
|
|
|
+ <view class="tab-title">车牌</view>
|
|
|
|
|
+ <view><input class="tab-ipt" bindblur="ocrInputBlur" data-index="{{index}}" data-param="carNum" value="{{item.carNum}}" type="text" placeholder="" /></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="df line2">
|
|
|
|
|
+ <view class="tab-title">收货单位</view>
|
|
|
|
|
+ <view><input class="tab-ipt" bindblur="ocrInputBlur" data-index="{{index}}" data-param="receivingUnit" value="{{item.receivingUnit}}" type="text" /></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="df line2">
|
|
|
|
|
+ <view class="tab-title">毛重</view>
|
|
|
|
|
+ <view><input class="tab-ipt" bindblur="ocrInputBlur" data-index="{{index}}" data-param="grossWeight" value="{{item.grossWeight}}" type="digit" /></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="df line2">
|
|
|
|
|
+ <view class="tab-title">皮重</view>
|
|
|
|
|
+ <view><input class="tab-ipt" bindblur="ocrInputBlur" data-index="{{index}}" data-param="tare" value="{{item.tare}}" type="digit" /></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="df line2">
|
|
|
|
|
+ <view class="tab-title">净重</view>
|
|
|
|
|
+ <view><input class="tab-ipt" bindblur="ocrInputBlur" data-index="{{index}}" data-param="netWeight" value="{{item.netWeight}}" type="digit" /></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <view class="add-one" bindtap="addOne">添加一条记录</view>
|
|
|
|
|
+ <view wx:if="{{currentDischargeIndex!=-1}}" class="primary" bindtap="distributeBills">确认</view>
|
|
|
<view style="height: 30rpx;"></view>
|
|
<view style="height: 30rpx;"></view>
|
|
|
</block>
|
|
</block>
|
|
|
</block>
|
|
</block>
|