detail.wxml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <map enable-zoom="{{false}}" enable-scroll="{{false}}" markers="{{markers}}" include-points="{{points}}" latitude="{{latitude}}" longitude="{{longitude}}" style="width: 100%;height: 400rpx;" name="map"></map>
  2. <view class="df aic jcfe p10 fs24">
  3. <view wx:if="{{canComplete}}" bindtap="completeVoyage" class="voyage-btn back-blue">完成航次</view>
  4. <view wx:if="{{canCancel}}" bindtap="cancelVoyage" class="voyage-btn back-red">取消航次</view>
  5. </view>
  6. <view class="df aic jcsb p20" style="border-bottom: 1px solid #999;border-top: 1px solid #999;">
  7. <view class="tabsview" bindtap="changeTab" data-tab="{{1}}" style="color:{{tab==1?'#0d8fcc':''}};border-bottom:{{tab==1?'2rpx solid #0d8fcc':''}}">航次信息</view>
  8. <view class="tabsview" bindtap="changeTab" data-tab="{{2}}" style="color:{{tab==2?'#0d8fcc':''}};border-bottom:{{tab==2?'2rpx solid #0d8fcc':''}}">运输记录</view>
  9. <view class="tabsview" bindtap="changeTab" data-tab="{{3}}" style="color:{{tab==3?'#0d8fcc':''}};border-bottom:{{tab==3?'2rpx solid #0d8fcc':''}}">卸货信息</view>
  10. <view class="tabsview" bindtap="changeTab" data-tab="{{4}}" style="color:{{tab==4?'#0d8fcc':''}};border-bottom:{{tab==4?'2rpx solid #0d8fcc':''}}">单据信息</view>
  11. <view class="tabsview" bindtap="changeTab" data-tab="{{5}}" style="color:{{tab==5?'#0d8fcc':''}};border-bottom:{{tab==5?'2rpx solid #0d8fcc':''}}">航次照片</view>
  12. </view>
  13. <scroll-view scroll-y="true" style="height:calc(100vh - 570rpx);font-size: 28rpx;color:#222;padding-bottom: 50rpx;" lower-threshold="50">
  14. <view wx:if="{{tab==1}}">
  15. <view class="line">
  16. <view class="line-full-item">
  17. <view class="line-full-title">航次名称:</view>
  18. <view class="line-full-text">{{voyageName}}</view>
  19. </view>
  20. </view>
  21. <view class="line">
  22. <view class="line-full-item">
  23. <view class="line-full-title">货主:</view>
  24. <view class="line-text">{{cargoOwnerName}}</view>
  25. </view>
  26. </view>
  27. <view class="line">
  28. <view class="line-full-item">
  29. <view class="line-full-title">船舶名称:</view>
  30. <view class="line-text">{{shipName}}</view>
  31. </view>
  32. </view>
  33. <view class="line">
  34. <view class="line-full-item">
  35. <view class="line-full-title">MMSI:</view>
  36. <view class="line-text">{{shipMmsi}}</view>
  37. </view>
  38. </view>
  39. <view class="line">
  40. <view class="line-item">
  41. <view class="line-title">装货港:</view>
  42. <view class="line-text">{{loadPort}}</view>
  43. </view>
  44. </view>
  45. <view class="line" wx:for="{{dischargePorts}}" wx:key="item">
  46. <view class="line-item">
  47. <view class="line-title">卸货港 #{{index+1}}:</view>
  48. <view class="line-text">{{item}}</view>
  49. </view>
  50. </view>
  51. <view class="df aic jcsb line" wx:if="{{dischargePorts.length}}">
  52. <view></view>
  53. <view class="next" bindtap="showAddDischargePortModal">添加卸货港</view>
  54. </view>
  55. <view wx:if="{{dischargeModal}}" class="mask" catchtouchmove="doNothing">
  56. <view style="padding: 20rpx 0;">
  57. <view class="df aic jcsb line">
  58. <view>卸货港</view>
  59. <view>
  60. <NewPicker placeholder="选择装货港" bind:selectItem="selectDischargePort" url="/port/getCol"></NewPicker>
  61. </view>
  62. </view>
  63. <view class="df aic jcsa">
  64. <view class="next mt30" bindtap="addDischargePort">添加卸货港</view>
  65. <view class="next mt30" bindtap="cancelAddDischargePort">取消</view>
  66. </view>
  67. </view>
  68. </view>
  69. <view class="line">
  70. <view class="line-item">
  71. <view class="line-title">货种:</view>
  72. <view class="line-text">{{cargo}}</view>
  73. </view>
  74. <view class="line-item">
  75. <view class="line-title">货量:</view>
  76. <view class="line-text" style="width: 40vw;">{{tons}} 吨</view>
  77. <view class="line-text">{{pieces}} 件</view>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="type2" wx:if="{{tab==2}}">
  82. <view class="line">
  83. <view class="line-full-item">
  84. <view class="line-full-title">到达装货港时间:</view>
  85. <picker disabled="{{tab2disabled}}" mode="date" model:value="{{arrivalLoadPortTime}}" style="width: 40vw;">
  86. <view>
  87. {{arrivalLoadPortTime ||"请选择"}}
  88. </view>
  89. </picker>
  90. </view>
  91. </view>
  92. <view class="line">
  93. <view class="line-full-item">
  94. <view class="line-full-title">实际货量:</view>
  95. <input disabled="{{tab2disabled}}" model:value="{{actualLoadTons}}" type="text" style="width: 20vw;" />{{' 吨'}}
  96. <input disabled="{{tab2disabled}}" model:value="{{actualLoadPieces}}" type="text" style="width: 10vw;" />{{' 件'}}
  97. </view>
  98. </view>
  99. <view class="line">
  100. <view class="line-full-item">
  101. <view class="line-full-title">装货开始时间:</view>
  102. <picker disabled="{{tab2disabled}}" mode="date" model:value="{{loadStartTime}}" style="width: 40vw;">
  103. <view>
  104. {{loadStartTime||"请选择"}}
  105. </view>
  106. </picker>
  107. </view>
  108. </view>
  109. <view class="line">
  110. <view class="line-full-item">
  111. <view class="line-full-title">装货结束时间:</view>
  112. <picker disabled="{{tab2disabled}}" mode="date" model:value="{{loadEndTime}}" style="width: 40vw;">
  113. <view>
  114. {{loadEndTime||"请选择"}}
  115. </view>
  116. </picker>
  117. </view>
  118. </view>
  119. <view class="df aic jcsa p20" style="border-top: 1px solid #999;">
  120. <view wx:for="{{voyageDetails}}" class="tabsview" bindtap="changeDischargeTab" data-index="{{index}}" style="color:{{currentDischargeIndex==index?'#0d8fcc':''}};border-bottom:{{currentDischargeIndex==index?'2rpx solid #0d8fcc':''}}">{{item.portName}}</view>
  121. </view>
  122. <view class="line" style="padding: 20rpx 0 10rpx 0;border-top: 1px solid grey;margin-top: 10rpx;">
  123. {{voyageDetails[currentDischargeIndex].portName}} # {{currentDischargeIndex+1}}
  124. </view>
  125. <view class="line">
  126. <view class="line-full-item">
  127. <view class="line-full-title">开航时间:</view>
  128. <picker bindchange="bindDischargePortChange" data-index="{{currentDischargeIndex}}" data-param="setSailTime" disabled="{{tab2disabled}}" mode="date" value="{{voyageDetails[currentDischargeIndex].setSailTime}}" style="width: 40vw;">
  129. <view>
  130. {{voyageDetails[currentDischargeIndex].setSailTime||"请选择"}}
  131. </view>
  132. </picker>
  133. </view>
  134. </view>
  135. <view class="line">
  136. <view class="line-full-item">
  137. <view class="line-full-title">预计到港时间:</view>
  138. <picker bindchange="bindDischargePortChange" data-index="{{currentDischargeIndex}}" data-param="expectedArrivalTime" disabled="{{tab2disabled}}" mode="date" value="{{voyageDetails[currentDischargeIndex].expectedArrivalTime}}" style="width: 40vw;">
  139. <view>
  140. {{voyageDetails[currentDischargeIndex].expectedArrivalTime||"请选择"}}
  141. </view>
  142. </picker>
  143. </view>
  144. </view>
  145. <view class="line">
  146. <view class="line-full-item">
  147. <view class="line-full-title">实际到港时间:</view>
  148. <picker bindchange="bindDischargePortChange" data-index="{{currentDischargeIndex}}" data-param="actualArrivalTime" disabled="{{tab2disabled}}" mode="date" value="{{voyageDetails[currentDischargeIndex].actualArrivalTime}}" style="width: 40vw;">
  149. <view>
  150. {{voyageDetails[currentDischargeIndex].actualArrivalTime||"请选择"}}
  151. </view>
  152. </picker>
  153. </view>
  154. </view>
  155. <view class="line">
  156. <view class="line-full-item">
  157. <view class="line-full-title">卸货开始时间:</view>
  158. <picker bindchange="bindDischargePortChange" data-index="{{currentDischargeIndex}}" data-param="dischargeStartTime" disabled="{{tab2disabled}}" mode="date" value="{{voyageDetails[currentDischargeIndex].dischargeStartTime}}" style="width: 40vw;">
  159. <view>
  160. {{voyageDetails[currentDischargeIndex].dischargeStartTime||"请选择"}}
  161. </view>
  162. </picker>
  163. </view>
  164. </view>
  165. <view class="line">
  166. <view class="line-full-item">
  167. <view class="line-full-title">卸货结束时间:</view>
  168. <picker bindchange="bindDischargePortChange" data-index="{{currentDischargeIndex}}" data-param="dischargeEndTime" disabled="{{tab2disabled}}" mode="date" value="{{voyageDetails[currentDischargeIndex].dischargeEndTime}}" style="width: 40vw;">
  169. <view>
  170. {{voyageDetails[currentDischargeIndex].dischargeEndTime||"请选择"}}
  171. </view>
  172. </picker>
  173. </view>
  174. </view>
  175. <view class="line">
  176. <view class="line-full-item">
  177. <view class="line-full-title">实际卸货量:</view>
  178. <input disabled="{{tab2disabled}}" bindblur="bindDischargePortChange" value="{{voyageDetails[currentDischargeIndex].actualDischargeTons}}" data-index="{{currentDischargeIndex}}" data-param="actualDischargeTons" type="text" style="width: 20vw;" />{{' 吨'}}
  179. <input disabled="{{tab2disabled}}" bindblur="bindDischargePortChange" value="{{voyageDetails[currentDischargeIndex].actualDischargePieces}}" data-index="{{currentDischargeIndex}}" data-param="actualDischargePieces" type="text" style="width: 10vw;" />{{' 件'}}
  180. </view>
  181. </view>
  182. <view class="next" bindtap="updateVoyage">更新航次</view>
  183. </view>
  184. <view class="p30" wx:if="{{tab==4}}">
  185. <view>保险单</view>
  186. <view wx:for="{{policys}}" wx:key="index" style="text-align: center;">
  187. <image data-src="{{item.viewUrl}}" bindtap="previewImage" src="{{item.viewUrl}}" style="width: 60%;height: 240rpx;" mode="aspectFit"></image>
  188. <view wx:if="{{policys.length&&policys.length!=1}}" class="mt10 mb10" style="border-bottom: 2rpx solid #eee;"></view>
  189. </view>
  190. <view class="next" bindtap="uploadBill" data-type="{{3}}">上传保险单</view>
  191. <view class="mt30 mb30" style="border-bottom: 2rpx solid #ccc;"></view>
  192. <view>运单</view>
  193. <view wx:for="{{waybills}}" wx:key="index" style="text-align: center;">
  194. <image data-src="{{item.viewUrl}}" bindtap="previewImage" src="{{item.viewUrl}}" style="width: 60%;height: 240rpx;" mode="aspectFit"></image>
  195. <view wx:if="{{waybills.length&&waybills.length!=1}}" class="mt10 mb10" style="border-bottom: 2rpx solid #eee;"></view>
  196. </view>
  197. <view class="next" bindtap="uploadBillCanvas" data-type="{{1}}">上传运单</view>
  198. </view>
  199. <view class="p30" wx:if="{{tab==3}}">
  200. <scroll-view scroll-x="{{true}}" style="white-space: nowrap;">
  201. <view class="{{['port-btns',currentPortId == item.portId?'current-port-btn':'','mr20']}}" wx:for="{{voyageDetails}}" bindtap="changePort" data-id="{{item.portId}}">{{item.portName}}</view>
  202. </scroll-view>
  203. <view class="df aic jcsb pb20" style="border-bottom: 2rpx solid #ddd;">
  204. <view bindtap="changeInfoType" data-type="ship" style="color:{{infoType=='ship'?'#0d8fcc':''}};border-bottom:{{infoType=='ship'?'2rpx solid #0d8fcc':''}}">船舶卸货记录</view>
  205. <view bindtap="changeInfoType" data-type="truck" style="color:{{infoType=='truck'?'#0d8fcc':''}};border-bottom:{{infoType=='truck'?'2rpx solid #0d8fcc':''}}">汽车装货记录</view>
  206. </view>
  207. <view class="ship-discharge-list" wx:if="{{infoType=='ship'}}">
  208. <view class="df aic jcsb mb20 mt10 fs22">
  209. <view>卸货时间</view>
  210. <view>卸货吨位</view>
  211. <view>卸货件数</view>
  212. <view>磅单</view>
  213. </view>
  214. <view wx:for="{{shipDischargeList}}" wx:key="index" class="df aic jcsb mb20 fs22">
  215. <view>{{item.dischargeTime}}</view>
  216. <view>{{item.dischargeTons||''}}</view>
  217. <view>{{item.dischargePieces||''}}</view>
  218. <view wx:if="{{item.files&&item.files.length}}" bindtap="previewImage" data-src="{{item.files[0].viewUrl}}" data-files="{{item.files}}">查看</view>
  219. <view wx:else>暂无</view>
  220. </view>
  221. <view bindtap="scrollShip" class="bottom-text">{{shipDischargeTotal==0?'暂无数据':(shipDischargeTotal>pageSize*shipDischargeCurrentPage?'点击或滑动加载更多...':'已加载完毕')}}</view>
  222. <view class="next" bindtap="goTo" data-url="/pages/voyages/uploadDischarge/uploadDischarge">上传磅单</view>
  223. </view>
  224. <view class="truck-load-list" wx:if="{{infoType=='truck'}}">
  225. <view class="df aic jcsb mb20 mt10 fs22">
  226. <view>车号</view>
  227. <view>毛重</view>
  228. <view>皮重</view>
  229. <view>净重</view>
  230. <view>称重时间</view>
  231. <view>单据</view>
  232. </view>
  233. <view wx:for="{{truckLoadList}}" wx:key="index" class="df aic jcsb mb20 fs22">
  234. <view>{{item.carNum}}</view>
  235. <view>{{item.grossWeight}}</view>
  236. <view>{{item.tare}}</view>
  237. <view>{{item.netWeight}}</view>
  238. <view>{{item.weighTime}}</view>
  239. <view wx:if="{{item.file}}" bindtap="previewImage" data-src="{{item.file.viewUrl}}">查看</view>
  240. <view wx:else>暂无</view>
  241. </view>
  242. <view bindtap="scrollTruck" class="bottom-text">{{truckLoadTotal==0?'暂无数据':(truckLoadTotal>pageSize*truckLoadCurrentPage?'点击或滑动加载更多...':'已加载完毕')}}</view>
  243. <view class="next" bindtap="goTo" data-url="/pages/voyages/uploadCarLoadRecord/uploadCarLoadRecord">上传运单</view>
  244. </view>
  245. </view>
  246. <view wx:if="{{tab==5}}">
  247. <view wx:for="{{medias}}" wx:key="index" style="margin-bottom:50rpx;">
  248. <view style="color: #0c81b8;padding-bottom: 10rpx;margin-bottom: 20rpx; border-bottom: 4rpx dashed rgb(197, 194, 194);">{{item.createTime}}</view>
  249. <image data-src="{{item.viewUrl}}" bindtap="previewImage" src="{{item.viewUrl}}" style="width: 90%;display: block;margin: 0 auto;" mode="aspectFit"></image>
  250. </view>
  251. </view>
  252. </scroll-view>