| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299 |
- <view wx:if="{{canCancel}}" bindtap="cancelVoyage" class="cancel-voyage">取消航次</view>
- <!-- <map enable-zoom="{{false}}" enable-scroll="{{false}}" markers="{{markers}}" include-points="{{points}}" latitude="{{latitude}}" longitude="{{longitude}}" style="width: 100%;height: 294rpx;" name="map" class="map"></map> -->
- <view style="width: 100%;height: 294rpx;"></view>
- <!-- <view wx:if="{{canComplete}}" bindtap="completeVoyage" class="voyage-btn back-blue">完成航次</view> -->
- <view class="df aic jcsa tabs" style="padding: 0 20rpx;margin-bottom:32rpx">
- <view class="tabsview {{tab==1?'current-tab':''}}" bindtap="changeTab" data-tab="{{1}}">航次信息</view>
- <view class="tabsview {{tab==2?'current-tab':''}}" bindtap="changeTab" data-tab="{{2}}">运输记录</view>
- <view class="tabsview {{tab==3?'current-tab':''}}" bindtap="changeTab" data-tab="{{3}}">卸货信息</view>
- <view class="tabsview {{tab==4?'current-tab':''}}" bindtap="changeTab" data-tab="{{4}}">单据信息</view>
- <view class="tabsview {{tab==5?'current-tab':''}}" bindtap="changeTab" data-tab="{{5}}">航次照片</view>
- </view>
- <scroll-view scroll-y="true" class="scroll" lower-threshold="50">
- <view wx:if="{{tab==1}}">
- <view class="line">
- <view class="line-full-item">
- <view class="line-full-title">航次名称:</view>
- <view class="line-text">{{voyageName}}</view>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item">
- <view class="line-full-title">货主:</view>
- <view class="line-text">{{cargoOwnerName}}</view>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item">
- <view class="line-full-title">船舶名称:</view>
- <view class="line-text">{{shipName}}</view>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item">
- <view class="line-full-title">MMSI:</view>
- <view class="line-text">{{shipMmsi}}</view>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item">
- <view class="line-full-title">装货港:</view>
- <view class="line-text">{{loadPort}}</view>
- </view>
- </view>
- <view class="line" wx:for="{{dischargePorts}}" wx:key="item">
- <view class="line-full-item">
- <view class="line-full-title">卸货港 #{{index+1}}:</view>
- <view class="line-text">{{item}}</view>
- <NewPicker wx:if="{{dischargePorts.length-1==index}}" value="{{currentDischargePort}}" placeholder="添加卸货港" inputStyle="width: 180rpx;height: 56rpx;background: #0089FD;border-radius: 12rpx;font-size: 26rpx;font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;color: #FFFFFF;line-height: 56rpx;text-align:center" bind:selectItem="selectDischargePort" url="/port/getCol"></NewPicker>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item">
- <view class="line-full-title">货种:</view>
- <view class="line-text">{{cargo}}</view>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item">
- <view class="line-full-title">货量:</view>
- <view class="line-text mr20">{{tons}} 吨</view>
- <view class="line-text">{{pieces||'-'}} 件</view>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item">
- <view class="line-full-title">合理卸货天数:</view>
- <view class="line-text">{{reasonableUnloadingDays}}</view>
- </view>
- </view>
- </view>
- <view class="type2" wx:if="{{tab==2}}">
- <view class="line">
- <view class="line-full-item jcsb">
- <view class="df">
- <view class="line-full-title">到达装货港时间:</view>
- <picker class="" disabled="{{tab2disabled}}" mode="date" model:value="{{arrivalLoadPortTime}}">
- <view>
- {{arrivalLoadPortTime ||"请选择时间"}}
- </view>
- </picker>
- </view>
- <image class="arrow" src="../../../images/newUI/right-arrow.png"></image>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item aic jcsb">
- <view class="df aic">
- <view class="line-full-title">实际货量:</view>
- <input class="d-input" disabled="{{tab2disabled}}" model:value="{{actualLoadTons}}" type="text" />
- <view style="margin-right:10rpx;color:#333">{{' 吨'}}</view>
- </view>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item">
- <view class="line-full-title"></view>
- <input class="d-input" disabled="{{tab2disabled}}" model:value="{{actualLoadPieces}}" type="text" />
- <view style="margin-right:10rpx;color:#333">{{' 件'}}</view>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item jcsb">
- <view class="df">
- <view class="line-full-title">装货开始时间:</view>
- <picker disabled="{{tab2disabled}}" mode="date" model:value="{{loadStartTime}}">
- <view>
- {{loadStartTime||"请选择时间"}}
- </view>
- </picker>
- </view>
- <image class="arrow" src="../../../images/newUI/right-arrow.png"></image>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item jcsb">
- <view class="df">
- <view class="line-full-title">装货结束时间:</view>
- <picker disabled="{{tab2disabled}}" mode="date" model:value="{{loadEndTime}}">
- <view>
- {{loadEndTime||"请选择时间"}}
- </view>
- </picker>
- </view>
- <image class="arrow" src="../../../images/newUI/right-arrow.png"></image>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item">
- <view class="line-full-title">合理卸货天数:</view>
- <input class="d-input" disabled="{{tab2disabled}}" model:value="{{reasonableUnloadingDays}}" type="text" />
- <view class="unit">天</view>
- </view>
- </view>
- <PortsBar arr="{{voyageDetails}}" key="portId" currentIndex="{{currentDischargeIndex}}" label="portName" bind:tapTab="changeDischargeTab"></PortsBar>
- <view class="line">
- <view class="line-full-item jcsb">
- <view class="df aic">
- <view class="line-full-title">开航时间:</view>
- <picker bindchange="bindDischargePortChange" data-index="{{currentDischargeIndex}}" data-param="setSailTime" disabled="{{tab2disabled}}" mode="date" value="{{voyageDetails[currentDischargeIndex].setSailTime}}">
- <view>
- {{voyageDetails[currentDischargeIndex].setSailTime||"请选择时间"}}
- </view>
- </picker>
- </view>
- <image class="arrow" src="../../../images/newUI/right-arrow.png"></image>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item jcsb">
- <view class="df aic">
- <view class="line-full-title">预计到港时间:</view>
- <picker bindchange="bindDischargePortChange" data-index="{{currentDischargeIndex}}" data-param="expectedArrivalTime" disabled="{{tab2disabled}}" mode="date" value="{{voyageDetails[currentDischargeIndex].expectedArrivalTime}}">
- <view>
- {{voyageDetails[currentDischargeIndex].expectedArrivalTime||"请选择时间"}}
- </view>
- </picker>
- </view>
- <image class="arrow" src="../../../images/newUI/right-arrow.png"></image>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item jcsb">
- <view class="df aic">
- <view class="line-full-title">实际到港时间:</view>
- <picker bindchange="bindDischargePortChange" data-index="{{currentDischargeIndex}}" data-param="actualArrivalTime" disabled="{{tab2disabled}}" mode="date" value="{{voyageDetails[currentDischargeIndex].actualArrivalTime}}">
- <view>
- {{voyageDetails[currentDischargeIndex].actualArrivalTime||"请选择时间"}}
- </view>
- </picker>
- </view>
- <image class="arrow" src="../../../images/newUI/right-arrow.png"></image>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item jcsb">
- <view class="df aic">
- <view class="line-full-title">卸货开始时间:</view>
- <picker bindchange="bindDischargePortChange" data-index="{{currentDischargeIndex}}" data-param="dischargeStartTime" disabled="{{tab2disabled}}" mode="date" value="{{voyageDetails[currentDischargeIndex].dischargeStartTime}}">
- <view>
- {{voyageDetails[currentDischargeIndex].dischargeStartTime||"请选择时间"}}
- </view>
- </picker>
- </view>
- <image class="arrow" src="../../../images/newUI/right-arrow.png"></image>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item jcsb">
- <view class="df aic">
- <view class="line-full-title">卸货结束时间:</view>
- <picker bindchange="bindDischargePortChange" data-index="{{currentDischargeIndex}}" data-param="dischargeEndTime" disabled="{{tab2disabled}}" mode="date" value="{{voyageDetails[currentDischargeIndex].dischargeEndTime}}">
- <view>
- {{voyageDetails[currentDischargeIndex].dischargeEndTime||"请选择时间"}}
- </view>
- </picker>
- </view>
- <image class="arrow" src="../../../images/newUI/right-arrow.png"></image>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item">
- <view class="line-full-title">实际卸货量:</view>
- <input class="d-input" disabled="{{tab2disabled}}" bindblur="bindDischargePortChange" value="{{voyageDetails[currentDischargeIndex].actualDischargeTons}}" data-index="{{currentDischargeIndex}}" data-param="actualDischargeTons" type="text" />
- <view class="unit">吨</view>
- </view>
- </view>
- <view class="line">
- <view class="line-full-item">
- <view class="line-full-title"></view>
- <input class="d-input" disabled="{{tab2disabled}}" bindblur="bindDischargePortChange" value="{{voyageDetails[currentDischargeIndex].actualDischargePieces}}" data-index="{{currentDischargeIndex}}" data-param="actualDischargePieces" type="text" />
- <view class="unit">件</view>
- </view>
- </view>
- <view class="update" bindtap="updateVoyage">更新航次</view>
- </view>
- <view class="p30" wx:if="{{tab==4}}">
- <view>保险单</view>
- <view wx:for="{{policys}}" wx:key="index" style="text-align: center;">
- <image data-src="{{item.viewUrl}}" bindtap="previewImage" src="{{item.viewUrl}}" style="width: 60%;height: 240rpx;" mode="aspectFit"></image>
- <view wx:if="{{policys.length&&policys.length!=1}}" class="mt10 mb10" style="border-bottom: 2rpx solid #eee;"></view>
- </view>
- <view class="next" bindtap="uploadBill" data-type="{{3}}">上传保险单</view>
- <view class="mt30 mb30" style="border-bottom: 2rpx solid #ccc;"></view>
- <view>运单</view>
- <view wx:for="{{waybills}}" wx:key="index" style="text-align: center;">
- <image data-src="{{item.viewUrl}}" bindtap="previewImage" src="{{item.viewUrl}}" style="width: 60%;height: 240rpx;" mode="aspectFit"></image>
- <view wx:if="{{waybills.length&&waybills.length!=1}}" class="mt10 mb10" style="border-bottom: 2rpx solid #eee;"></view>
- </view>
- <view class="next" bindtap="uploadBill" data-type="{{1}}">上传运单</view>
- </view>
- <view class="p30" wx:if="{{tab==3}}">
- <scroll-view scroll-x="{{true}}" style="white-space: nowrap;">
- <view class="{{['port-btns',currentPortId == item.portId?'current-port-btn':'','mr20']}}" wx:for="{{voyageDetails}}" bindtap="changePort" wx:key="portId" data-id="{{item.portId}}">{{item.portName}}</view>
- </scroll-view>
- <view class="df aic jcsb pb20">
- <view bindtap="changeInfoType" data-type="ship" style="color:{{infoType=='ship'?'#0d8fcc':''}};border-bottom:{{infoType=='ship'?'2rpx solid #0d8fcc':''}}">船舶卸货记录</view>
- <view bindtap="changeInfoType" data-type="truck" style="color:{{infoType=='truck'?'#0d8fcc':''}};border-bottom:{{infoType=='truck'?'2rpx solid #0d8fcc':''}}">汽车装货记录</view>
- </view>
- <view class="ship-discharge-list" wx:if="{{infoType=='ship'}}">
- <view class="df aic jcsb mb20 mt10 fs22">
- <view>卸货时间</view>
- <view>卸货吨位</view>
- <view>卸货件数</view>
- <view>磅单</view>
- </view>
- <view wx:for="{{shipDischargeList}}" wx:key="index" class="df aic jcsb mb20 fs22">
- <view>{{item.dischargeTime}}</view>
- <view>{{item.dischargeTons||''}}</view>
- <view>{{item.dischargePieces||''}}</view>
- <view wx:if="{{item.files&&item.files.length}}" bindtap="previewImage" data-src="{{item.files[0].viewUrl}}" data-files="{{item.files}}">查看</view>
- <view wx:else>暂无</view>
- </view>
- <view bindtap="scrollShip" class="bottom-text">{{shipDischargeTotal==0?'暂无数据':(shipDischargeTotal>pageSize*shipDischargeCurrentPage?'点击或滑动加载更多...':'已加载完毕')}}</view>
- <view class="next" bindtap="goTo" data-url="/pages/voyages/uploadDischarge/uploadDischarge">上传磅单</view>
- </view>
- <view class="truck-load-list" wx:if="{{infoType=='truck'}}">
- <view class="df aic jcsb mb20 mt10 fs22">
- <view>车号</view>
- <view>毛重</view>
- <view>皮重</view>
- <view>净重</view>
- <view>称重时间</view>
- <view>单据</view>
- </view>
- <view wx:for="{{truckLoadList}}" wx:key="index" class="df aic jcsb mb20 fs22">
- <view>{{item.carNum}}</view>
- <view>{{item.grossWeight}}</view>
- <view>{{item.tare}}</view>
- <view>{{item.netWeight}}</view>
- <view>{{item.weighTime}}</view>
- <view wx:if="{{item.file}}" bindtap="previewImage" data-src="{{item.file.viewUrl}}">查看</view>
- <view wx:else>暂无</view>
- </view>
- <view bindtap="scrollTruck" class="bottom-text">{{truckLoadTotal==0?'暂无数据':(truckLoadTotal>pageSize*truckLoadCurrentPage?'点击或滑动加载更多...':'已加载完毕')}}</view>
- <view class="next" bindtap="goTo" data-url="/pages/voyages/uploadCarLoadRecord/uploadCarLoadRecord">上传运单</view>
- </view>
- </view>
- <view wx:if="{{tab==5}}">
- <view wx:for="{{medias}}" wx:key="index" style="margin-bottom:50rpx;">
- <view style="color: #0c81b8;padding-bottom: 10rpx;margin-bottom: 20rpx; border-bottom: 4rpx dashed rgb(197, 194, 194);">{{item.createTime}}</view>
- <image data-src="{{item.viewUrl}}" bindtap="previewImage" src="{{item.viewUrl}}" style="width: 90%;display: block;margin: 0 auto;" mode="aspectFit"></image>
- </view>
- </view>
- </scroll-view>
- <view wx:if="{{dischargeModal}}" class="mask" catchtouchmove="doNothing">
- <view>
- <view class="ship-owner-title">添加卸货港</view>
- <NewPicker placeholder="添加卸货港" inputStyle="width:400rpx;margin:0 auto" bind:selectItem="selectDischargePort" url="/port/getCol"></NewPicker>
- <view class="df btns">
- <view class="btn btn-1" bindtap="cancelAddDischargePort">取消</view>
- <view class="btn btn-2" bindtap="addDischargePort">确定</view>
- </view>
- </view>
- </view>
|