detail.wxml 15 KB

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