detail.wxml 14 KB

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