detail.wxml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. <view wx:if="{{canComplete&&voyageStatus!=2}}" bindtap="completeVoyage" class="voyage-btn back-blue">完成航次</view>
  2. <view style="height: 294rpx;overflow:hidden">
  3. <map enable-zoom="{{false}}" enable-scroll="{{false}}" markers="{{markers}}" include-points="{{points}}" latitude="{{latitude}}" longitude="{{longitude}}" style="width: 100%;height: 334rpx;" name="map" class="map"></map>
  4. </view>
  5. <view wx:if="{{canCancel&&voyageStatus!=2}}" bindtap="cancelVoyage" class="cancel-voyage">取消航次</view>
  6. <view class="df aic jcsa tabs" style="padding: 0 20rpx;margin-bottom:32rpx">
  7. <view class="tabsview {{tab==1?'current-tab':''}}" bindtap="changeTab" data-tab="{{1}}">航次信息</view>
  8. <view class="tabsview {{tab==2?'current-tab':''}}" bindtap="changeTab" data-tab="{{2}}">运输记录</view>
  9. <view class="tabsview {{tab==3?'current-tab':''}}" bindtap="changeTab" data-tab="{{3}}">卸货信息</view>
  10. <view class="tabsview {{tab==4?'current-tab':''}}" bindtap="changeTab" data-tab="{{4}}">单据信息</view>
  11. <view class="tabsview {{tab==5?'current-tab':''}}" bindtap="changeTab" data-tab="{{5}}">航次照片</view>
  12. </view>
  13. <scroll-view scroll-y="true" class="scroll" lower-threshold="50">
  14. <view wx:if="{{tab==1}}">
  15. <view class="line mt20">
  16. <view class="line-full-item">
  17. <view class="line-full-title">航次名称:</view>
  18. <view class="line-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-full-item">
  41. <view class="line-full-title">装货港:</view>
  42. <view class="line-text">{{loadPort}}</view>
  43. <view class="add-discharge-port" wx:if="{{voyageStatus!=2}}" bindtap="showAddDischargePortModal">添加卸货港</view>
  44. </view>
  45. </view>
  46. <view class="line" wx:for="{{dischargePorts}}" wx:key="item">
  47. <view class="line-full-item">
  48. <view class="line-full-title">卸货港 #{{index+1}}:</view>
  49. <view class="line-text">{{item}}</view>
  50. <view bindtap="deleteDischargePort" wx:if="{{dischargePorts.length>1}}" data-index="{{index}}" style="width: 100rpx;padding:4rpx 10rpx;color: coral;">删除</view>
  51. </view>
  52. </view>
  53. <view class="line">
  54. <view class="line-full-item">
  55. <view class="line-full-title">货种:</view>
  56. <view class="line-text">{{cargo}}</view>
  57. </view>
  58. </view>
  59. <view class="line">
  60. <view class="line-full-item">
  61. <view class="line-full-title">货量:</view>
  62. <view class="line-text mr20">{{tons}} 吨</view>
  63. <view class="line-text">{{pieces||'-'}} 件</view>
  64. </view>
  65. </view>
  66. <view class="line">
  67. <view class="line-full-item">
  68. <view class="line-full-title">合理卸货天数:</view>
  69. <view class="line-text">{{reasonableUnloadingDays}} <text>天</text> </view>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="type2" wx:if="{{tab==2}}">
  74. <view class="line">
  75. <view class="line-full-item jcsb">
  76. <view class="df">
  77. <view class="line-full-title">到达装货港时间:</view>
  78. <picker class="picker" disabled="{{tab2disabled}}" mode="date" model:value="{{arrivalLoadPortTime}}">
  79. <view>
  80. {{arrivalLoadPortTime ||(tab2disabled?"":"请选择时间")}}
  81. </view>
  82. </picker>
  83. </view>
  84. <image class="arrow" src="../../../images/newUI/right-arrow.png"></image>
  85. </view>
  86. </view>
  87. <view class="line">
  88. <view class="line-full-item aic jcsb">
  89. <view class="df aic">
  90. <view class="line-full-title">实际货量:</view>
  91. <input class="d-input" disabled="{{tab2disabled}}" model:value="{{actualLoadTons}}" type="text" />
  92. <view style="margin-right:10rpx;color:#333">{{' 吨'}}</view>
  93. </view>
  94. </view>
  95. </view>
  96. <view class="line">
  97. <view class="line-full-item">
  98. <view class="line-full-title"></view>
  99. <input class="d-input" disabled="{{tab2disabled}}" model:value="{{actualLoadPieces}}" type="text" />
  100. <view style="margin-right:10rpx;color:#333">{{' 件'}}</view>
  101. </view>
  102. </view>
  103. <view class="line">
  104. <view class="line-full-item jcsb">
  105. <view class="df">
  106. <view class="line-full-title">装货开始时间:</view>
  107. <picker class="picker" disabled="{{tab2disabled}}" mode="date" model:value="{{loadStartTime}}">
  108. <view>
  109. {{loadStartTime||(tab2disabled?"":"请选择时间")}}
  110. </view>
  111. </picker>
  112. </view>
  113. <image class="arrow" src="../../../images/newUI/right-arrow.png"></image>
  114. </view>
  115. </view>
  116. <view class="line">
  117. <view class="line-full-item jcsb">
  118. <view class="df">
  119. <view class="line-full-title">装货结束时间:</view>
  120. <picker class="picker" disabled="{{tab2disabled}}" mode="date" model:value="{{loadEndTime}}" bindchange="loadEndTimeChange">
  121. <view>
  122. {{loadEndTime||(tab2disabled?"":"请选择时间")}}
  123. </view>
  124. </picker>
  125. </view>
  126. <image class="arrow" src="../../../images/newUI/right-arrow.png"></image>
  127. </view>
  128. </view>
  129. <view class="line">
  130. <view class="line-full-item">
  131. <view class="line-full-title">合理卸货天数:</view>
  132. <input class="d-input" disabled="{{tab2disabled}}" model:value="{{reasonableUnloadingDays}}" type="number" />
  133. <view class="unit">天</view>
  134. </view>
  135. </view>
  136. <PortsBar arr="{{voyageDetails}}" key="portId" currentIndex="{{currentDischargeIndex}}" label="portName" bind:tapTab="changeDischargeTab"></PortsBar>
  137. <view class="line">
  138. <view class="line-full-item jcsb">
  139. <view class="df aic">
  140. <view class="line-full-title">开航时间:</view>
  141. <picker class="picker" bindchange="bindDischargePortChange" data-index="{{currentDischargeIndex}}" data-param="setSailTime" disabled="{{tab2disabled}}" mode="date" value="{{voyageDetails[currentDischargeIndex].setSailTime}}">
  142. <view>
  143. {{voyageDetails[currentDischargeIndex].setSailTime||(tab2disabled?"":"请选择时间")}}
  144. </view>
  145. </picker>
  146. </view>
  147. <image class="arrow" src="../../../images/newUI/right-arrow.png"></image>
  148. </view>
  149. </view>
  150. <view class="line">
  151. <view class="line-full-item jcsb">
  152. <view class="df aic">
  153. <view class="line-full-title">预计到港时间:</view>
  154. <view>{{voyageDetails[currentDischargeIndex].expectedArrivalTime}}</view>
  155. </view>
  156. </view>
  157. </view>
  158. <view class="line">
  159. <view class="line-full-item jcsb">
  160. <view class="df aic">
  161. <view class="line-full-title">实际到港时间:</view>
  162. <picker class="picker" bindchange="bindDischargePortChange" data-index="{{currentDischargeIndex}}" data-param="actualArrivalTime" disabled="{{tab2disabled}}" mode="date" value="{{voyageDetails[currentDischargeIndex].actualArrivalTime}}">
  163. <view>
  164. {{voyageDetails[currentDischargeIndex].actualArrivalTime||(tab2disabled?"":"请选择时间")}}
  165. </view>
  166. </picker>
  167. </view>
  168. <image class="arrow" src="../../../images/newUI/right-arrow.png"></image>
  169. </view>
  170. </view>
  171. <view class="line">
  172. <view class="line-full-item jcsb">
  173. <view class="df aic">
  174. <view class="line-full-title">卸货开始时间:</view>
  175. <picker class="picker" bindchange="bindDischargePortChange" data-index="{{currentDischargeIndex}}" data-param="dischargeStartTime" disabled="{{tab2disabled}}" mode="date" value="{{voyageDetails[currentDischargeIndex].dischargeStartTime}}">
  176. <view>
  177. {{voyageDetails[currentDischargeIndex].dischargeStartTime||(tab2disabled?"":"请选择时间")}}
  178. </view>
  179. </picker>
  180. </view>
  181. <image class="arrow" src="../../../images/newUI/right-arrow.png"></image>
  182. </view>
  183. </view>
  184. <view class="line">
  185. <view class="line-full-item jcsb">
  186. <view class="df aic">
  187. <view class="line-full-title">卸货结束时间:</view>
  188. <picker class="picker" bindchange="bindDischargePortChange" data-index="{{currentDischargeIndex}}" data-param="dischargeEndTime" disabled="{{tab2disabled}}" mode="date" value="{{voyageDetails[currentDischargeIndex].dischargeEndTime}}">
  189. <view>
  190. {{voyageDetails[currentDischargeIndex].dischargeEndTime||(tab2disabled?"":"请选择时间")}}
  191. </view>
  192. </picker>
  193. </view>
  194. <image class="arrow" src="../../../images/newUI/right-arrow.png"></image>
  195. </view>
  196. </view>
  197. <view class="line">
  198. <view class="line-full-item">
  199. <view class="line-full-title">实际卸货量:</view>
  200. <input class="d-input" disabled="{{tab2disabled}}" bindblur="bindDischargePortChange" value="{{voyageDetails[currentDischargeIndex].actualDischargeTons}}" data-index="{{currentDischargeIndex}}" data-param="actualDischargeTons" type="text" />
  201. <view class="unit">吨</view>
  202. </view>
  203. </view>
  204. <view class="line">
  205. <view class="line-full-item">
  206. <view class="line-full-title"></view>
  207. <input class="d-input" disabled="{{tab2disabled}}" bindblur="bindDischargePortChange" value="{{voyageDetails[currentDischargeIndex].actualDischargePieces}}" data-index="{{currentDischargeIndex}}" data-param="actualDischargePieces" type="text" />
  208. <view class="unit">件</view>
  209. </view>
  210. </view>
  211. <view wx:if="{{!tab2disabled}}" class="update" style="margin-top: 60rpx;" bindtap="updateVoyage">更新航次</view>
  212. </view>
  213. <view class="type3" wx:if="{{tab==4}}">
  214. <view class="title">保险单</view>
  215. <view wx:for="{{policys}}" wx:key="index" style="text-align: center;">
  216. <image data-src="{{item.viewUrl}}" bindtap="previewImage" src="{{item.viewUrl}}" style="width: 60%;height: 240rpx;" mode="aspectFit"></image>
  217. <view wx:if="{{policys.length&&policys.length!=1}}" class="mt20 mb20"></view>
  218. </view>
  219. <view wx:if="{{!tab2disabled}}" class="update" style="margin:60rpx auto" bindtap="uploadBill" data-type="{{3}}">上传保险单</view>
  220. <view class="title">运单</view>
  221. <view wx:for="{{waybills}}" class="mt20 mb20" wx:key="index" style="text-align: center;">
  222. <image data-src="{{item.viewUrl}}" bindtap="previewImage" src="{{item.viewUrl}}" style="width: 60%;height: 240rpx;" mode="aspectFit"></image>
  223. </view>
  224. <view wx:if="{{!tab2disabled}}" class="update" style="margin-top: 60rpx;" bindtap="uploadBill" data-type="{{1}}">上传运单</view>
  225. </view>
  226. <view wx:if="{{tab==3}}">
  227. <PortsBar arr="{{voyageDetails}}" key="portId" currentIndex="{{tab3CurrentDischargeIndex}}" label="portName" bind:tapTab="changePort"></PortsBar>
  228. <view class="info-types df aic">
  229. <view bindtap="changeInfoType" style="margin-right: 36rpx;" class="{{infoType=='ship'?'current-type':''}}" data-type="ship">船舶卸货记录</view>
  230. <view bindtap="changeInfoType" class="{{infoType=='truck'?'current-type':''}}" data-type="truck">汽车装货记录</view>
  231. </view>
  232. <view class="ship-discharge-list" wx:if="{{infoType=='ship'}}">
  233. <view class="df aic jcsb th" wx:if="{{shipDischargeList.length}}">
  234. <view class="tr tr-time">卸货时间</view>
  235. <view class="tr tr-4">卸货吨位</view>
  236. <view class="tr tr-4">卸货件数</view>
  237. <view class="tr tr-2">磅单</view>
  238. </view>
  239. <view wx:else="" class="no-data">暂无数据</view>
  240. <view wx:for="{{shipDischargeList}}" wx:key="index" class="df aic jcsb td">
  241. <view class="tr tr-time">{{item.dischargeTime}}</view>
  242. <view class="tr tr-4">{{item.dischargeTons||''}}</view>
  243. <view class="tr tr-4">{{item.dischargePieces||''}}</view>
  244. <view class="tr tr-2" wx:if="{{item.files&&item.files.length}}" style="color: #0089FD;" bindtap="previewImage" data-src="{{item.files[0].viewUrl}}" data-files="{{item.files}}">查看</view>
  245. <view class="tr tr-2" wx:else>暂无</view>
  246. </view>
  247. <!-- <view bindtap="scrollShip" class="bottom-text">{{shipDischargeTotal==0?'暂无数据':(shipDischargeTotal>pageSize*shipDischargeCurrentPage?'点击或滑动加载更多...':'已加载完毕')}}</view> -->
  248. <view wx:if="{{!tab2disabled}}" class="update" style="margin-top: 60rpx;" bindtap="goTo" data-url="/pages/voyages/uploadDischarge/uploadDischarge">上传磅单</view>
  249. </view>
  250. <view class="truck-load-list" wx:if="{{infoType=='truck'}}">
  251. <view wx:if="{{truckLoadList.length}}" class="df aic jcsb th">
  252. <view class="tr tr-car-num">车号</view>
  253. <view class="tr tr-3">毛重</view>
  254. <view class="tr tr-3">皮重</view>
  255. <view class="tr tr-3">净重</view>
  256. <view class="tr tr-time">称重时间</view>
  257. <view class="tr tr-2">单据</view>
  258. </view>
  259. <view wx:else="" class="no-data">暂无数据</view>
  260. <view wx:for="{{truckLoadList}}" wx:key="index" class="df aic jcsb td">
  261. <view class="tr tr-car-num">{{item.carNum}}</view>
  262. <view class="tr tr-3">{{item.grossWeight}}</view>
  263. <view class="tr tr-3">{{item.tare}}</view>
  264. <view class="tr tr-3">{{item.netWeight}}</view>
  265. <view class="tr tr-time">{{item.weighTime}}</view>
  266. <view class="tr tr-2" wx:if="{{item.file}}" style="color: #0089FD;" bindtap="previewImage" data-src="{{item.file.viewUrl}}">查看</view>
  267. <view class="tr tr-2" wx:else>暂无</view>
  268. </view>
  269. <!-- <view bindtap="scrollTruck" class="bottom-text">{{truckLoadTotal==0?'暂无数据':(truckLoadTotal>pageSize*truckLoadCurrentPage?'点击或滑动加载更多...':'已加载完毕')}}</view> -->
  270. <view wx:if="{{!tab2disabled}}" class="update" style="margin-top: 60rpx;" bindtap="goTo" data-url="/pages/voyages/uploadCarLoadRecord/uploadCarLoadRecord">上传运单</view>
  271. </view>
  272. </view>
  273. <view class="type5" wx:if="{{tab==5}}">
  274. <view wx:if="{{medias.length}}" wx:for="{{medias}}" wx:key="index">
  275. <view class="timer">{{item.createTime}}</view>
  276. <image data-src="{{item.viewUrl}}" class="type5-img" bindtap="previewImage" src="{{item.viewUrl}}" mode="aspectFit"></image>
  277. </view>
  278. <view wx:if="{{medias.length==0}}" class="no-data">暂无照片</view>
  279. </view>
  280. </scroll-view>
  281. <view class="discharge-modal" wx:if="{{dischargeModal}}">
  282. <view class="discharge-card">
  283. <view class="df">
  284. <view class="disc-title">前置港口:</view>
  285. <view>
  286. <picker style="width: 200rpx;text-align: left;" bindchange="bindBeforePortChange" value="{{currentBeforePortIndex}}" range-key="portName" range="{{beforePorts}}">
  287. <view style="color: #666;">
  288. {{beforePorts[currentBeforePortIndex].portName||'请选择'}}
  289. </view>
  290. </picker>
  291. </view>
  292. </view>
  293. <view class="df">
  294. <view class="disc-title">卸货港:</view>
  295. <NewPicker value="{{currentDischargePort}}" placeholder="选择卸货港" inputStyle=" width: 338rpx;color:#48aafc" bind:selectItem="selectDischargePort" arrow="{{false}}" url="/port/getCol"></NewPicker>
  296. </view>
  297. <view class="df aic jcsa">
  298. <view class="disc-btn" bindtap="cancelAddDischargePort">取消</view>
  299. <view class="disc-btn" bindtap="addDischargePort">确认</view>
  300. </view>
  301. </view>
  302. </view>