voyageDetail.vue 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894
  1. <template>
  2. <div class="line-container-p24">
  3. <i class="el-icon-arrow-left"></i>
  4. <div
  5. class="dib go-back ml8 pointer"
  6. @click="router.replace('/voyage/voyageList')"
  7. >
  8. 返回航次列表
  9. </div>
  10. </div>
  11. <div class="container-title df aic jcsb">
  12. <div class="df aic">
  13. <div class="mr30">航次信息</div>
  14. <el-tooltip
  15. v-if="blockchainInfo"
  16. class="box-item"
  17. effect="light"
  18. :content="blockchainInfo.hash"
  19. placement="top"
  20. >
  21. <div class="pointer" style="font-size: 14px; font-weight: normal">
  22. 汇很多科技区块链认证
  23. </div>
  24. </el-tooltip>
  25. </div>
  26. </div>
  27. <div class="line-container-p24">
  28. <div class="line">
  29. <div class="info-line">
  30. <div class="info-line-title">航次名称</div>
  31. <el-input
  32. class="info-line-text"
  33. v-model="voyage.voyageName"
  34. disabled
  35. ></el-input>
  36. </div>
  37. <div class="info-gap" v-if="shipAudits.length"></div>
  38. <div class="info-line">
  39. <div class="info-line-title">货主</div>
  40. <el-input
  41. class="info-line-text"
  42. v-model="voyage.cargoOwnerName"
  43. disabled
  44. ></el-input>
  45. </div>
  46. </div>
  47. <!-- <div class="line">
  48. <div class="info-line">
  49. <div class="info-line-title">船东</div>
  50. <el-input
  51. class="info-line-text"
  52. v-model="voyage.shipOwnerName"
  53. disabled
  54. ></el-input>
  55. </div>
  56. <div class="info-line">
  57. <div class="info-line-title">船东手机号</div>
  58. <el-input
  59. class="info-line-text"
  60. v-model="voyage.shipOwnerPhone"
  61. disabled
  62. ></el-input>
  63. </div>
  64. </div> -->
  65. <div class="line">
  66. <div class="info-line">
  67. <div class="info-line-title">船舶名称</div>
  68. <el-input
  69. class="info-line-text"
  70. v-model="voyage.shipName"
  71. disabled
  72. ></el-input>
  73. </div>
  74. <div
  75. class="info-gap"
  76. v-if="shipAudits.length"
  77. @click="isCertsVisable = true"
  78. >
  79. 汇很多认证
  80. </div>
  81. <el-dialog
  82. @open="showCerts"
  83. v-model="isCertsVisable"
  84. destroy-on-close
  85. width="30%"
  86. >
  87. <Certs ref="certs"></Certs>
  88. </el-dialog>
  89. <div class="info-line">
  90. <div class="info-line-title">MMSI</div>
  91. <el-input
  92. class="info-line-text"
  93. v-model="voyage.shipMmsi"
  94. disabled
  95. ></el-input>
  96. </div>
  97. </div>
  98. <div :id="mapId" class="map-container"></div>
  99. <div class="line" style="margin-top: 30px">
  100. <div class="info-line">
  101. <div class="info-line-title">开始时间</div>
  102. <el-input
  103. class="info-line-text"
  104. v-model="voyage.startTime"
  105. disabled
  106. ></el-input>
  107. </div>
  108. <div class="info-line">
  109. <div class="info-line-title">结束时间</div>
  110. <el-input
  111. class="info-line-text"
  112. v-model="voyage.endTime"
  113. disabled
  114. ></el-input>
  115. </div>
  116. </div>
  117. <div class="line">
  118. <div class="info-line">
  119. <div class="info-line-title">装货港</div>
  120. <el-input
  121. class="info-line-text"
  122. v-model="voyage.loadPort"
  123. disabled
  124. ></el-input>
  125. </div>
  126. </div>
  127. <div class="line">
  128. <div class="info-line" v-for="(item, index) in voyage.voyageDetails">
  129. <div class="info-line-title">{{ "第 " + (index + 1) + " 卸货港" }}</div>
  130. <el-input
  131. class="info-line-text"
  132. v-model="item.portName"
  133. disabled
  134. ></el-input>
  135. </div>
  136. <!-- <div v-if="voyage.voyageStatus != 2">
  137. <div
  138. class="info-line"
  139. v-if="!insertDiscPortVisable"
  140. style="margin-left: 140px"
  141. >
  142. <el-button type="primary" @click="insertDiscPortVisable = true"
  143. >添加提前卸货港</el-button
  144. >
  145. </div>
  146. <div class="info-line" v-else style="margin-left: 40px">
  147. <div class="info-line-title" style="width: 80px">提前卸货港</div>
  148. <el-autocomplete
  149. class="info-line-text mr20"
  150. v-model="toInsertDiscPortValue"
  151. :fetch-suggestions="getCol"
  152. @blur="clear('toInsertDiscPortId')"
  153. placeholder="选择卸货港"
  154. @select="selectToInsertDiscProt($event)"
  155. style="width: 120px !important"
  156. />
  157. <el-button type="primary" @click="addNewPort">确认添加</el-button>
  158. <el-button type="default" @click="cancelInsertDiscPort"
  159. >取消添加</el-button
  160. >
  161. </div>
  162. </div> -->
  163. </div>
  164. <div class="line">
  165. <div class="info-line">
  166. <div class="info-line-title">货种</div>
  167. <el-input
  168. class="info-line-text"
  169. v-model="voyage.cargo"
  170. disabled
  171. ></el-input>
  172. </div>
  173. <div class="info-line">
  174. <div style="width: 120px !important" class="info-line-title">货量</div>
  175. <el-input
  176. style="width: 100px !important"
  177. class="info-line-text"
  178. v-model="voyage.tons"
  179. disabled
  180. ></el-input>
  181. <span class="unit">吨</span>
  182. <el-input
  183. style="width: 80px !important"
  184. class="info-line-text"
  185. v-model="voyage.pieces"
  186. disabled
  187. ></el-input>
  188. <span class="unit">件</span>
  189. </div>
  190. </div>
  191. <div class="container-second-title df aic jcsb mt40">
  192. <div>船舶运输记录详情</div>
  193. <!-- <div class="df aic">
  194. <div v-if="voyage.voyageStatus == 1">
  195. <el-button
  196. class="mr20"
  197. v-if="disabledStatus"
  198. type="primary"
  199. @click="changeVoyageInfo"
  200. >
  201. 修改航次
  202. </el-button>
  203. <div v-else>
  204. <div>
  205. <el-button class="ml20" @click="cancelVoyageChange">
  206. 取消修改
  207. </el-button>
  208. <el-button
  209. class="ml20 mr20"
  210. type="primary"
  211. @click="submitVoyageChange"
  212. >
  213. 提交修改
  214. </el-button>
  215. </div>
  216. </div>
  217. </div>
  218. <el-button
  219. style="width: 160px"
  220. type="primary"
  221. @click="downloadExcel"
  222. :loading="isLoadingExcel"
  223. >
  224. 下载船舶跟踪表
  225. </el-button>
  226. </div> -->
  227. </div>
  228. <div class="line">
  229. <div class="info-line">
  230. <div class="info-line-title">到达装货港时间</div>
  231. <el-date-picker
  232. class="info-line-text"
  233. v-model="voyage.arrivalLoadPortTime"
  234. type="datetime"
  235. format="YYYY/MM/DD HH:mm"
  236. value-format="YYYY/MM/DD HH:mm:ss"
  237. placeholder="到达装货港时间"
  238. :disabled="disabledStatus"
  239. ></el-date-picker>
  240. </div>
  241. <div class="info-line">
  242. <div class="info-line-title">实装货量</div>
  243. <el-input
  244. style="width: 100px !important"
  245. class="info-line-text"
  246. v-model="voyage.actualLoadTons"
  247. :disabled="disabledStatus"
  248. placeholder="实装吨位"
  249. ></el-input>
  250. <span class="unit">吨</span>
  251. <el-input
  252. style="width: 80px !important"
  253. class="info-line-text"
  254. v-model="voyage.actualLoadPieces"
  255. :disabled="disabledStatus"
  256. placeholder="实装件数"
  257. ></el-input>
  258. <span class="unit">件</span>
  259. </div>
  260. </div>
  261. <div class="line">
  262. <div class="info-line">
  263. <div class="info-line-title">装货开始时间</div>
  264. <el-date-picker
  265. class="info-line-text"
  266. v-model="voyage.loadStartTime"
  267. type="datetime"
  268. format="YYYY/MM/DD HH:mm"
  269. value-format="YYYY/MM/DD HH:mm:ss"
  270. placeholder="装货开始时间"
  271. :disabled="disabledStatus"
  272. ></el-date-picker>
  273. </div>
  274. <div class="info-line">
  275. <div class="info-line-title">装货结束时间</div>
  276. <el-date-picker
  277. class="info-line-text"
  278. v-model="voyage.loadEndTime"
  279. type="datetime"
  280. format="YYYY/MM/DD HH:mm"
  281. value-format="YYYY/MM/DD HH:mm:ss"
  282. placeholder="装货开始时间"
  283. :disabled="disabledStatus"
  284. ></el-date-picker>
  285. </div>
  286. </div>
  287. <el-tabs v-model="currentPortId" type="border-card" class="demo-tabs mb20">
  288. <el-tab-pane
  289. v-for="(item, index) in voyage.voyageDetails"
  290. :label="item.portName + ' # ' + (index + 1)"
  291. :name="item.portId + ''"
  292. >
  293. <div class="line">
  294. <div class="info-line">
  295. <div class="info-line-title">开航时间</div>
  296. <el-date-picker
  297. class="info-line-text"
  298. v-model="item.setSailTime"
  299. type="datetime"
  300. @change="calExpectedArrivalTime"
  301. format="YYYY/MM/DD HH:mm"
  302. value-format="YYYY/MM/DD HH:mm:ss"
  303. placeholder="开航时间"
  304. :disabled="disabledStatus"
  305. ></el-date-picker>
  306. </div>
  307. <div class="info-line">
  308. <div class="info-line-title">预计到港时间</div>
  309. <el-date-picker
  310. class="info-line-text"
  311. v-model="item.expectedArrivalTime"
  312. type="datetime"
  313. format="YYYY/MM/DD"
  314. value-format="YYYY/MM/DD HH:mm:ss"
  315. placeholder="预计到港时间"
  316. :disabled="disabledStatus"
  317. ></el-date-picker>
  318. </div>
  319. </div>
  320. <div class="line">
  321. <div class="info-line">
  322. <div class="info-line-title">实际到港时间</div>
  323. <el-date-picker
  324. class="info-line-text"
  325. v-model="item.actualArrivalTime"
  326. type="datetime"
  327. format="YYYY/MM/DD HH:mm"
  328. value-format="YYYY/MM/DD HH:mm:ss"
  329. placeholder="实际到港时间"
  330. :disabled="disabledStatus"
  331. ></el-date-picker>
  332. </div>
  333. <!-- <div class="info-line">
  334. <div class="info-line-title">抵达目的地港时间</div>
  335. <el-date-picker
  336. class="info-line-text"
  337. v-model="voyage.arrivalPortTime"
  338. type="datetime"
  339. format="YYYY/MM/DD HH:mm:ss"
  340. value-format="YYYY/MM/DD HH:mm:ss"
  341. placeholder="抵达目的地港时间"
  342. :disabled="disabledStatus"
  343. ></el-date-picker>
  344. </div> -->
  345. </div>
  346. <div class="line">
  347. <div class="info-line">
  348. <div class="info-line-title">卸货开始时间</div>
  349. <el-date-picker
  350. class="info-line-text"
  351. v-model="item.dischargeStartTime"
  352. type="datetime"
  353. format="YYYY/MM/DD HH:mm"
  354. value-format="YYYY/MM/DD HH:mm:ss"
  355. placeholder="卸货开始时间"
  356. :disabled="disabledStatus"
  357. ></el-date-picker>
  358. </div>
  359. <div class="info-line">
  360. <div class="info-line-title">卸货结束时间</div>
  361. <el-date-picker
  362. class="info-line-text"
  363. v-model="item.dischargeEndTime"
  364. type="datetime"
  365. format="YYYY/MM/DD HH:mm"
  366. value-format="YYYY/MM/DD HH:mm:ss"
  367. placeholder="卸货结束时间"
  368. :disabled="disabledStatus"
  369. ></el-date-picker>
  370. </div>
  371. </div>
  372. <div class="line">
  373. <div class="info-line">
  374. <div class="info-line-title">实际卸货量</div>
  375. <el-input
  376. style="width: 100px !important"
  377. class="info-line-text"
  378. placeholder="实际卸货吨位"
  379. v-model="item.actualDischargeTons"
  380. :disabled="disabledStatus"
  381. ></el-input>
  382. <span class="unit">吨</span>
  383. <el-input
  384. style="width: 80px !important"
  385. class="info-line-text"
  386. placeholder="实际卸货件数"
  387. v-model="item.actualDischargePieces"
  388. :disabled="disabledStatus"
  389. ></el-input>
  390. <span class="unit">件</span>
  391. </div>
  392. <!-- <div class="info-line">
  393. <div class="info-line-title">是否购买保险</div>
  394. <el-checkbox
  395. v-model="voyage.hasInsurance"
  396. :checked="voyage.hasInsurance == 1"
  397. :disabled="disabledStatus"
  398. label="购买保险"
  399. ></el-checkbox>
  400. </div> -->
  401. </div>
  402. </el-tab-pane>
  403. </el-tabs>
  404. <div class="line">
  405. <div class="info-line">
  406. <div class="info-line-title">备注</div>
  407. <el-input
  408. class="info-line-textarea"
  409. v-model="voyage.remark"
  410. autosize
  411. type="textarea"
  412. :disabled="disabledStatus"
  413. ></el-input>
  414. </div>
  415. </div>
  416. </div>
  417. <div class="container-title">卸货信息</div>
  418. <div class="line-container-p24">
  419. <el-tabs
  420. v-model="currentDiscPortId"
  421. type="card"
  422. class="demo-tabs"
  423. @tab-click="changeDiscPortTab"
  424. >
  425. <el-tab-pane
  426. v-for="(item, index) in voyage.voyageDetails"
  427. :label="item.portName + ' # ' + (index + 1)"
  428. :name="item.portId + ''"
  429. ></el-tab-pane>
  430. </el-tabs>
  431. <div class="container-second-title df aic jcsb">
  432. <div>天气信息</div>
  433. </div>
  434. <el-table style="width: 1200px" :data="weatherTableData" stripe>
  435. <el-table-column
  436. type="index"
  437. label="序号"
  438. min-width="120"
  439. align="center"
  440. ></el-table-column>
  441. <el-table-column
  442. prop="weather"
  443. label="天气"
  444. min-width="120"
  445. align="center"
  446. ></el-table-column>
  447. <el-table-column
  448. prop="temperature"
  449. label="温度"
  450. min-width="100"
  451. align="center"
  452. ></el-table-column>
  453. <el-table-column
  454. prop="winddirection"
  455. label="风向"
  456. min-width="100"
  457. align="center"
  458. ></el-table-column>
  459. <el-table-column
  460. prop="windpower"
  461. label="风力"
  462. min-width="100"
  463. align="center"
  464. ></el-table-column>
  465. <el-table-column
  466. prop="reporttime"
  467. label="记录时间"
  468. min-width="100"
  469. align="center"
  470. >
  471. <template v-slot="scope">
  472. {{ subTimeStr(scope.row.reporttime, 16) }}
  473. </template>
  474. </el-table-column>
  475. </el-table>
  476. <div style="width: 1200px; text-align: right; margin-top: 43px">
  477. <el-pagination
  478. background
  479. layout="prev, pager, next"
  480. :current-page="weatherCurrentPage"
  481. :total="weatherTotal"
  482. @current-change="weatherPageChange"
  483. ></el-pagination>
  484. </div>
  485. <div class="hr mt20"></div>
  486. <div class="container-second-title df aic jcsb mt40">
  487. <div>提单信息</div>
  488. <!-- <div>
  489. <el-button type="primary" @click="showAddLab()">
  490. 新增提单记录
  491. </el-button>
  492. </div> -->
  493. </div>
  494. <el-table :data="labTableData" stripe style="width: 1200px">
  495. <el-table-column
  496. type="index"
  497. label="序号"
  498. min-width="120"
  499. align="center"
  500. ></el-table-column>
  501. <el-table-column
  502. prop="billingNum"
  503. label="开单数量"
  504. min-width="100"
  505. align="center"
  506. ></el-table-column>
  507. <el-table-column
  508. prop="billingDate"
  509. label="开单日期"
  510. min-width="120"
  511. align="center"
  512. ></el-table-column>
  513. <el-table-column label="单据" min-width="150" align="center">
  514. <template v-slot="scope">
  515. <el-button
  516. @click="showLab(scope.row, scope.$index, '查看提单')"
  517. type="primary"
  518. size="small"
  519. >
  520. {{ scope.row.file ? "查看" : "上传" }}
  521. </el-button>
  522. </template>
  523. </el-table-column>
  524. <el-table-column label="操作" min-width="150" align="center">
  525. <template v-slot="scope">
  526. <el-button
  527. @click="showLab(scope.row, scope.$index, '修改提单')"
  528. type="primary"
  529. size="small"
  530. >
  531. 修改
  532. </el-button>
  533. <el-button
  534. @click="deleteLab(scope.row.id, scope.$index)"
  535. type="danger"
  536. size="small"
  537. >
  538. 删除
  539. </el-button>
  540. </template>
  541. </el-table-column>
  542. </el-table>
  543. <div style="text-align: right; margin-top: 43px; width: 1200px">
  544. <el-pagination
  545. background
  546. layout="prev, pager, next"
  547. :current-page="labCurrentPage"
  548. :total="labTotal"
  549. @current-change="labPageChange"
  550. ></el-pagination>
  551. </div>
  552. <el-dialog
  553. v-model="isAddLabVisable"
  554. :title="labModalType"
  555. width="780px"
  556. center
  557. @close="cancelUploadLab"
  558. destroy-on-close
  559. >
  560. <el-form
  561. :model="labForm"
  562. inline
  563. style="margin-bottom: 20px"
  564. label-width="100px"
  565. >
  566. <el-form-item label="开单日期">
  567. <el-date-picker
  568. class="info-line-text"
  569. v-model="labForm.billingDate"
  570. type="date"
  571. format="YYYY/MM/DD"
  572. value-format="YYYY/MM/DD"
  573. placeholder="开单日期"
  574. ></el-date-picker>
  575. </el-form-item>
  576. <el-form-item label="开单数量">
  577. <el-input
  578. style="width: 240px"
  579. v-model="labForm.billingNum"
  580. placeholder="开单数量"
  581. ></el-input>
  582. </el-form-item>
  583. <el-form-item label="提单">
  584. <Uploader
  585. :actionUrl="store.state.wayBillUrl"
  586. :uploaderId="'labLoad'"
  587. :params="labParams"
  588. @onSendFileList="getLabBillList"
  589. :fileList="labBillList"
  590. uploadText="上传提单"
  591. :limit="1"
  592. ></Uploader>
  593. </el-form-item>
  594. </el-form>
  595. <template #footer>
  596. <el-button @click="cancelUploadLab">取消</el-button>
  597. <el-button style="margin-left: 30px" type="primary" @click="addLab">
  598. 提交
  599. </el-button>
  600. </template>
  601. </el-dialog>
  602. <div class="hr mt20"></div>
  603. <div class="container-second-title df aic jcsb">
  604. <div>卸货记录</div>
  605. <div>
  606. <!-- <el-button
  607. class="mr20"
  608. type="primary"
  609. @click="isAddPoundVisable = true"
  610. >
  611. 新增卸货记录
  612. </el-button>
  613. <el-button
  614. @click="exportDischargeExcel"
  615. style="width: 160px"
  616. type="primary"
  617. :loading="isDischargeLoadingExcel"
  618. >下载卸货信息</el-button
  619. > -->
  620. </div>
  621. </div>
  622. <el-table
  623. style="width: 1200px"
  624. :data="dischargeList"
  625. stripe
  626. :disabled="disabledStatus"
  627. >
  628. <el-table-column
  629. type="index"
  630. label="序号"
  631. min-width="120"
  632. align="center"
  633. ></el-table-column>
  634. <el-table-column
  635. prop="dischargeTime"
  636. label="卸货时间"
  637. min-width="120"
  638. align="center"
  639. >
  640. <template v-slot="scope">
  641. {{ subTimeStr(scope.row.dischargeTime, 16) }}
  642. </template>
  643. </el-table-column>
  644. <el-table-column
  645. prop="dischargeTons"
  646. label="卸货吨位"
  647. min-width="100"
  648. align="center"
  649. ></el-table-column>
  650. <el-table-column
  651. prop="dischargePieces"
  652. label="卸货件数"
  653. min-width="100"
  654. align="center"
  655. ></el-table-column>
  656. <el-table-column label="磅单" min-width="150" align="center">
  657. <template v-slot="scope">
  658. <el-button
  659. @click="showUpdateDischarge(scope.row, scope.$index)"
  660. type="primary"
  661. size="small"
  662. >
  663. {{ scope.row.files ? "查看" : "上传" }}
  664. </el-button>
  665. </template>
  666. </el-table-column>
  667. <el-table-column label="操作" min-width="150" align="center">
  668. <template v-slot="scope">
  669. <el-button
  670. @click="showUpdateDischarge(scope.row, scope.$index)"
  671. type="primary"
  672. size="small"
  673. >
  674. 修改
  675. </el-button>
  676. <el-button
  677. @click="deleteDischarge(scope.row.id, scope.$index)"
  678. type="danger"
  679. size="small"
  680. >
  681. 删除
  682. </el-button>
  683. </template>
  684. </el-table-column>
  685. </el-table>
  686. <div style="width: 1200px; text-align: right; margin-top: 43px">
  687. <el-pagination
  688. background
  689. layout="prev, pager, next"
  690. :current-page="currentPage"
  691. :total="total"
  692. @current-change="pageChange"
  693. ></el-pagination>
  694. </div>
  695. <el-dialog v-model="isAddPoundVisable" destroy-on-close>
  696. <el-form :model="formInline">
  697. <el-form-item label="卸货时间">
  698. <el-date-picker
  699. class="info-line-text"
  700. v-model="formInline.dischargeTime"
  701. type="datetime"
  702. format="YYYY/MM/DD HH:mm:ss"
  703. value-format="YYYY/MM/DD HH:mm:ss"
  704. placeholder="卸货时间"
  705. ></el-date-picker>
  706. </el-form-item>
  707. <el-form-item label="卸货吨位">
  708. <el-input
  709. class="info-line-text"
  710. v-model="formInline.dischargeTons"
  711. placeholder="卸货吨位"
  712. ></el-input>
  713. </el-form-item>
  714. <el-form-item label="卸货件数">
  715. <el-input
  716. class="info-line-text"
  717. v-model="formInline.dischargePieces"
  718. placeholder="卸货件数"
  719. ></el-input>
  720. </el-form-item>
  721. <el-form-item label="卸货记录">
  722. <Uploader
  723. :actionUrl="store.state.wayBillUrl"
  724. :uploaderId="'pound'"
  725. :params="poundParams"
  726. @onSendFileList="getPoundBillList"
  727. :fileList="poundBillList"
  728. uploadText="拖拽或点击上传磅单"
  729. ></Uploader>
  730. </el-form-item>
  731. </el-form>
  732. <div class="df aic jcfe mb30">
  733. <el-button type="primary" @click="addDischarge"> 新增 </el-button>
  734. </div>
  735. </el-dialog>
  736. <el-dialog
  737. v-model="updateDischargeDialog"
  738. title="修改记录"
  739. width="700px"
  740. center
  741. destroy-on-close
  742. >
  743. <el-form :model="updateForm" style="margin-bottom: 20px">
  744. <!-- <el-form-item label="记录ID">
  745. <span style="padding-left: 20px">{{ updateForm.id }}</span>
  746. </el-form-item> -->
  747. <el-form-item label="卸货时间">
  748. <el-date-picker
  749. class="info-line-text"
  750. v-model="updateForm.dischargeTime"
  751. type="datetime"
  752. format="YYYY/MM/DD HH:mm:ss"
  753. value-format="YYYY/MM/DD HH:mm:ss"
  754. placeholder="卸货时间"
  755. ></el-date-picker>
  756. </el-form-item>
  757. <el-form-item label="卸货吨位">
  758. <el-input
  759. style="width: 240px"
  760. v-model="updateForm.dischargeTons"
  761. placeholder="卸货吨位"
  762. ></el-input>
  763. </el-form-item>
  764. <el-form-item label="上传磅单">
  765. <Uploader
  766. :actionUrl="store.state.wayBillUrl"
  767. :uploaderId="'updatePound'"
  768. :params="updatePoundParams"
  769. @onSendFileList="getupdatePoundBillList"
  770. :fileList="updatePoundBillList"
  771. uploadText="拖拽或点击上传磅单"
  772. ></Uploader>
  773. </el-form-item>
  774. </el-form>
  775. <template #footer>
  776. <el-button @click="cancelUpdateDischarge">取消</el-button>
  777. <el-button
  778. style="margin-left: 30px"
  779. type="primary"
  780. @click="updateDischarge"
  781. >
  782. 提交
  783. </el-button>
  784. </template>
  785. </el-dialog>
  786. <el-dialog
  787. v-model="dialogVisible"
  788. title="图片预览"
  789. width="30%"
  790. destroy-on-close
  791. >
  792. <el-image
  793. :src="dialogImageUrl"
  794. style="height: 100%; width: 100%"
  795. ></el-image>
  796. </el-dialog>
  797. <div class="hr m30-0"></div>
  798. <div class="container-second-title df aic jcsb mt40">
  799. <div>汽车装货记录详情</div>
  800. <div>
  801. <!-- <el-button type="primary" @click="showAddTruckRecord()">
  802. 新增汽车装货记录
  803. </el-button> -->
  804. </div>
  805. </div>
  806. <el-table :data="truckTableData" stripe>
  807. <el-table-column
  808. type="index"
  809. label="序号"
  810. min-width="120"
  811. align="center"
  812. ></el-table-column>
  813. <el-table-column
  814. prop="portName"
  815. label="港口名称"
  816. min-width="100"
  817. align="center"
  818. ></el-table-column>
  819. <el-table-column
  820. prop="weighTime"
  821. label="称重时间"
  822. min-width="120"
  823. align="center"
  824. >
  825. <template v-slot="scope">
  826. {{ subTimeStr(scope.row.weighTime, 16) }}
  827. </template>
  828. </el-table-column>
  829. <el-table-column
  830. prop="carNum"
  831. label="车号"
  832. min-width="100"
  833. align="center"
  834. ></el-table-column>
  835. <el-table-column
  836. prop="cargoName"
  837. label="货物名称"
  838. min-width="120"
  839. align="center"
  840. ></el-table-column>
  841. <el-table-column
  842. prop="shippingUnit"
  843. label="发货单位"
  844. min-width="100"
  845. align="center"
  846. ></el-table-column>
  847. <el-table-column
  848. prop="receivingUnit"
  849. label="收货单位"
  850. min-width="120"
  851. align="center"
  852. ></el-table-column>
  853. <el-table-column
  854. prop="grossWeight"
  855. label="毛重"
  856. min-width="100"
  857. align="center"
  858. ></el-table-column>
  859. <el-table-column
  860. prop="tare"
  861. label="皮重"
  862. min-width="120"
  863. align="center"
  864. ></el-table-column>
  865. <el-table-column
  866. prop="netWeight"
  867. label="净重"
  868. min-width="100"
  869. align="center"
  870. ></el-table-column>
  871. <el-table-column
  872. prop="shipName"
  873. label="货船名称"
  874. min-width="120"
  875. align="center"
  876. ></el-table-column>
  877. <el-table-column
  878. prop="weigher"
  879. label="司磅员"
  880. min-width="100"
  881. align="center"
  882. ></el-table-column>
  883. <el-table-column label="单据" min-width="150" align="center">
  884. <template v-slot="scope">
  885. <el-button
  886. @click="showTruckRecord(scope.row, scope.$index, '查看单据')"
  887. type="primary"
  888. size="small"
  889. >
  890. {{ scope.row.file ? "查看" : "上传" }}
  891. </el-button>
  892. </template>
  893. </el-table-column>
  894. <el-table-column label="操作" min-width="150" align="center">
  895. <template v-slot="scope">
  896. <el-button
  897. @click="showTruckRecord(scope.row, scope.$index, '修改单据')"
  898. type="primary"
  899. size="small"
  900. >
  901. 修改
  902. </el-button>
  903. <el-button
  904. @click="deleteTruckRecord(scope.row.id, scope.$index)"
  905. type="danger"
  906. size="small"
  907. >
  908. 删除
  909. </el-button>
  910. </template>
  911. </el-table-column>
  912. </el-table>
  913. <div style="text-align: right; margin-top: 43px">
  914. <el-pagination
  915. background
  916. layout="prev, pager, next"
  917. :current-page="truckCurrentPage"
  918. :total="truckTotal"
  919. @current-change="truckPageChange"
  920. ></el-pagination>
  921. </div>
  922. <!-- <div class="hr mt20"></div>
  923. <div class="df aic jcfe mt20" v-if="voyage.voyageStatus == 1">
  924. <el-button type="primary" class="mr20" @click="cancelVoyage">
  925. 取消航次
  926. </el-button>
  927. <el-button
  928. v-if="voyage.canComplete && disabledStatus"
  929. type="primary"
  930. @click="finishVoyage"
  931. >
  932. 完成航次
  933. </el-button>
  934. </div> -->
  935. <el-dialog
  936. v-model="isAddTruckRecordVisable"
  937. :title="truckRecordModalType"
  938. width="780px"
  939. center
  940. @close="cancelUploadTruckRecord"
  941. destroy-on-close
  942. >
  943. <el-form
  944. :model="truckRecordForm"
  945. inline
  946. style="margin-bottom: 20px"
  947. label-width="100px"
  948. >
  949. <el-form-item label="港口名称">
  950. <el-input
  951. style="width: 240px"
  952. v-model="truckRecordForm.portName"
  953. placeholder="港口名称"
  954. ></el-input>
  955. </el-form-item>
  956. <el-form-item label="称重时间">
  957. <el-date-picker
  958. class="info-line-text"
  959. v-model="truckRecordForm.weighTime"
  960. type="datetime"
  961. format="YYYY/MM/DD HH:mm:ss"
  962. value-format="YYYY/MM/DD HH:mm:ss"
  963. placeholder="称重时间"
  964. ></el-date-picker>
  965. </el-form-item>
  966. <el-form-item label="车号">
  967. <el-input
  968. style="width: 240px"
  969. v-model="truckRecordForm.carNum"
  970. placeholder="车号"
  971. ></el-input>
  972. </el-form-item>
  973. <el-form-item label="货物名称">
  974. <el-input
  975. style="width: 240px"
  976. v-model="truckRecordForm.cargoName"
  977. placeholder="货物名称"
  978. ></el-input>
  979. </el-form-item>
  980. <el-form-item label="发货单位">
  981. <el-input
  982. style="width: 240px"
  983. v-model="truckRecordForm.shippingUnit"
  984. placeholder="发货单位"
  985. ></el-input>
  986. </el-form-item>
  987. <el-form-item label="毛重">
  988. <el-input
  989. style="width: 240px"
  990. v-model="truckRecordForm.grossWeight"
  991. placeholder="毛重"
  992. ></el-input>
  993. </el-form-item>
  994. <el-form-item label="收货单位">
  995. <el-input
  996. style="width: 240px"
  997. v-model="truckRecordForm.receivingUnit"
  998. placeholder="收货单位"
  999. ></el-input>
  1000. </el-form-item>
  1001. <el-form-item label="皮重">
  1002. <el-input
  1003. style="width: 240px"
  1004. v-model="truckRecordForm.tare"
  1005. placeholder="皮重"
  1006. ></el-input>
  1007. </el-form-item>
  1008. <el-form-item label="运输单位">
  1009. <el-input
  1010. style="width: 240px"
  1011. v-model="truckRecordForm.transUnit"
  1012. placeholder="运输单位"
  1013. ></el-input>
  1014. </el-form-item>
  1015. <el-form-item label="净重">
  1016. <el-input
  1017. style="width: 240px"
  1018. v-model="truckRecordForm.netWeight"
  1019. placeholder="净重"
  1020. ></el-input>
  1021. </el-form-item>
  1022. <el-form-item label="货船名称">
  1023. <el-input
  1024. style="width: 240px"
  1025. v-model="truckRecordForm.shipName"
  1026. placeholder="货船名称"
  1027. ></el-input>
  1028. </el-form-item>
  1029. <el-form-item label="司磅员">
  1030. <el-input
  1031. style="width: 240px"
  1032. v-model="truckRecordForm.weigher"
  1033. placeholder="司磅员"
  1034. ></el-input>
  1035. </el-form-item>
  1036. <el-form-item label="汽车装货单">
  1037. <Uploader
  1038. :actionUrl="store.state.wayBillUrl"
  1039. :uploaderId="'truckLoad'"
  1040. :params="truckLoadParams"
  1041. @onSendFileList="getTruckLoadBillList"
  1042. :fileList="truckRecordBillList"
  1043. uploadText="上传装货单"
  1044. :limit="1"
  1045. ></Uploader>
  1046. </el-form-item>
  1047. </el-form>
  1048. <template #footer>
  1049. <el-button @click="cancelUploadTruckRecord">取消</el-button>
  1050. <el-button
  1051. style="margin-left: 30px"
  1052. type="primary"
  1053. @click="addTruckLoadRecord"
  1054. >
  1055. 提交
  1056. </el-button>
  1057. </template>
  1058. </el-dialog>
  1059. </div>
  1060. <div class="container-title">单据信息</div>
  1061. <div class="line-container-p24">
  1062. <div class="line">
  1063. <div class="info-line">
  1064. <div class="info-line-title">保险单</div>
  1065. <el-image
  1066. style="height: 200px; width: 200px; object-fit: contain"
  1067. v-for="item in policyFileList"
  1068. :src="item.viewUrl"
  1069. :preview-src-list="prePolicyFileList"
  1070. ></el-image>
  1071. <!-- <el-upload
  1072. drag
  1073. multiple
  1074. :action="store.state.wayBillUrl"
  1075. list-type="picture-card"
  1076. :on-preview="handlePictureCardPreview"
  1077. :on-remove="handleRemovePolicy"
  1078. :data="policyParams"
  1079. :on-success="policyUploadSuccess"
  1080. :file-list="policyFileList"
  1081. >
  1082. <div class="upload-plus-icon">+</div>
  1083. <div class="upload-text">拖拽或点击上传</div>
  1084. </el-upload> -->
  1085. </div>
  1086. </div>
  1087. <div class="line">
  1088. <div class="info-line">
  1089. <div class="info-line-title">运单</div>
  1090. <el-image
  1091. style="height: 200px; width: 200px; object-fit: contain"
  1092. v-for="item in voyageBill"
  1093. :src="item.viewUrl"
  1094. :preview-src-list="preVoyageBill"
  1095. ></el-image>
  1096. <!-- <el-upload
  1097. drag
  1098. multiple
  1099. :action="store.state.wayBillUrl"
  1100. list-type="picture-card"
  1101. :on-preview="handlePictureCardPreview"
  1102. :on-remove="handleRemoveBill"
  1103. :data="billParams"
  1104. :on-success="billUploadSuccess"
  1105. :file-list="voyageBill"
  1106. >
  1107. <div class="upload-plus-icon">+</div>
  1108. <div class="upload-text">拖拽或点击上传</div>
  1109. </el-upload> -->
  1110. </div>
  1111. </div>
  1112. </div>
  1113. <!-- <div class="container-title">运单列表</div>
  1114. <div class="line-container-p24">
  1115. <div class="line">
  1116. <div class="info-line">
  1117. <div class="info-line-title">上传航次运单</div>
  1118. <el-upload
  1119. drag
  1120. multiple
  1121. :action="store.state.wayBillUrl"
  1122. list-type="picture-card"
  1123. :on-preview="handlePictureCardPreview"
  1124. :on-remove="handleRemoveBill"
  1125. :data="billParams"
  1126. :on-success="billUploadSuccess"
  1127. :file-list="voyageBill"
  1128. >
  1129. <div class="upload-plus-icon">+</div>
  1130. <div class="upload-text">拖拽或点击上传</div>
  1131. </el-upload>
  1132. </div>
  1133. </div>
  1134. </div> -->
  1135. <!-- <div class="container-title">磅单列表</div>
  1136. <div class="line-container-p24">
  1137. <div class="line" style="margin-bottom: 60px">
  1138. <div class="info-line">
  1139. <div class="info-line-title">上传磅单</div>
  1140. <el-upload
  1141. drag
  1142. multiple
  1143. :action="store.state.wayBillUrl"
  1144. list-type="picture-card"
  1145. :on-preview="handlePictureCardPreview"
  1146. :on-remove="handleRemovePoundBill"
  1147. :data="poundParams"
  1148. :on-success="poundBillUploadSuccess"
  1149. :file-list="poundBill"
  1150. >
  1151. <div class="upload-plus-icon">+</div>
  1152. <div class="upload-text">拖拽或点击上传</div>
  1153. </el-upload>
  1154. </div>
  1155. </div>
  1156. </div> -->
  1157. <!-- <div class="container-title">船舶证书</div>
  1158. <div class="line-container-p24">
  1159. <Certs ref="certs"></Certs>
  1160. </div> -->
  1161. <div class="container-title df aic jcsb">
  1162. <div @click="getVoyageDetail()">单据图片分配</div>
  1163. <!-- <div>
  1164. <el-checkbox
  1165. v-model="isCheckAll"
  1166. @change="checkAll"
  1167. :indeterminate="isIndeterminate"
  1168. size="large"
  1169. style="margin-right: 20px"
  1170. >全选</el-checkbox
  1171. >
  1172. <el-button
  1173. style="width: 220px; margin-right: 20px"
  1174. type="primary"
  1175. @click="showDistributeModal"
  1176. >
  1177. 分配单据
  1178. </el-button>
  1179. </div> -->
  1180. </div>
  1181. <div class="line-container-p24">
  1182. <div v-show="shipownerUploadFiles.length" class="df aic fww">
  1183. <div
  1184. style="
  1185. width: 100px;
  1186. text-align: center;
  1187. margin-right: 20px;
  1188. margin-bottom: 20px;
  1189. "
  1190. v-for="item in shipownerUploadFiles"
  1191. >
  1192. <el-image
  1193. style="height: 100px; width: 100px"
  1194. fit="contain"
  1195. :src="item.viewUrl"
  1196. :preview-src-list="previewList"
  1197. ></el-image>
  1198. <div style="width: 100px; text-align: center; font-size: 12px">
  1199. {{ item.createTime }}
  1200. </div>
  1201. <div class="tac">
  1202. <el-checkbox
  1203. @change="checkItem"
  1204. v-model="item.checked"
  1205. size="large"
  1206. ></el-checkbox>
  1207. </div>
  1208. </div>
  1209. </div>
  1210. <div
  1211. v-show="!shipownerUploadFiles.length"
  1212. style="text-align: center; font-size: 24px; color: #ccc"
  1213. >
  1214. 暂无单据图片
  1215. </div>
  1216. </div>
  1217. <el-dialog
  1218. title="单据分配"
  1219. v-model="isDistributeModalVisable"
  1220. @closed="distributeModalClose"
  1221. destroy-on-close
  1222. width="80%"
  1223. >
  1224. <h4 class="mb10">请选择卸货港:</h4>
  1225. <div class="df aic distribute-group">
  1226. <el-button
  1227. v-for="(item, index) in voyage.voyageDetails"
  1228. class="mr20"
  1229. :type="distributePortId == item.portId ? 'primary' : ''"
  1230. @click="distributePortId = item.portId"
  1231. >{{ item.portName }}</el-button
  1232. >
  1233. </div>
  1234. <div class="hr m10-0"></div>
  1235. <h4 class="mb10">请选择单据类型:</h4>
  1236. <div class="df aic distribute-group">
  1237. <el-button
  1238. class="mr20"
  1239. :type="distributeType == 1 ? 'primary' : ''"
  1240. @click="distributeType = 1"
  1241. >运单</el-button
  1242. >
  1243. <el-button
  1244. class="mr20"
  1245. :type="distributeType == 2 ? 'primary' : ''"
  1246. @click="distributeType = 2"
  1247. >磅单</el-button
  1248. >
  1249. <el-button
  1250. :type="distributeType == 4 ? 'primary' : ''"
  1251. @click="distributeType = 4"
  1252. >汽运装货单</el-button
  1253. >
  1254. <!-- <el-radio v-model="distributeType" label="1" size="large">运单</el-radio>
  1255. <el-radio v-model="distributeType" label="2" size="large">磅单</el-radio>
  1256. <el-radio v-model="distributeType" label="4" size="large"
  1257. >汽运装货单</el-radio
  1258. > -->
  1259. </div>
  1260. <div class="hr m10-0"></div>
  1261. <div class="df aic fww" style="max-height: 300px; overflow: scroll">
  1262. <div
  1263. style="
  1264. width: 100px;
  1265. text-align: center;
  1266. margin-right: 20px;
  1267. margin-bottom: 10px;
  1268. border: 2px solid #7598b1;
  1269. "
  1270. v-for="item in checkedImages"
  1271. >
  1272. <el-image
  1273. style="height: 100px; width: 100px"
  1274. fit="contain"
  1275. :src="item.viewUrl"
  1276. :preview-src-list="checkedPreviewList"
  1277. ></el-image>
  1278. </div>
  1279. </div>
  1280. <div class="hr m10-0"></div>
  1281. <div v-show="distributeType == 2">
  1282. <el-form inline :model="distributePoundForm">
  1283. <el-form-item label="卸货时间">
  1284. <el-date-picker
  1285. class="info-line-text"
  1286. v-model="distributePoundForm.dischargeTime"
  1287. type="datetime"
  1288. format="YYYY/MM/DD HH:mm:ss"
  1289. value-format="YYYY/MM/DD HH:mm:ss"
  1290. placeholder="卸货时间"
  1291. ></el-date-picker>
  1292. </el-form-item>
  1293. <el-form-item label="卸货吨位">
  1294. <el-input
  1295. class="info-line-text"
  1296. v-model="distributePoundForm.dischargeTons"
  1297. placeholder="卸货吨位"
  1298. ></el-input>
  1299. </el-form-item>
  1300. <el-form-item label="卸货件数">
  1301. <el-input
  1302. class="info-line-text"
  1303. v-model="distributePoundForm.dischargePieces"
  1304. placeholder="卸货件数"
  1305. ></el-input>
  1306. </el-form-item>
  1307. </el-form>
  1308. </div>
  1309. <div v-show="distributeType == 4">
  1310. <div class="tar">
  1311. <el-button @click="ocr" :loading="ocrLoading" type="primary">{{
  1312. ocrLoading ? "正在识别" : "开始识别"
  1313. }}</el-button>
  1314. </div>
  1315. <el-table :data="ocrTruckRecordTableData" stripe max-height="500">
  1316. <el-table-column label="港口名称" min-width="200" align="center">
  1317. <template v-slot="scope">
  1318. <el-input size="small" v-model="scope.row.portName"></el-input>
  1319. </template>
  1320. </el-table-column>
  1321. <!-- <el-table-column label="称重时间" min-width="200" align="center">
  1322. <template v-slot="scope">
  1323. <el-date-picker
  1324. size="small"
  1325. class="info-line-text"
  1326. v-model="scope.row.weighTime"
  1327. type="datetime"
  1328. format="YYYY/MM/DD HH:mm:ss"
  1329. value-format="YYYY/MM/DD HH:mm:ss"
  1330. placeholder="称重时间"
  1331. ></el-date-picker>
  1332. </template>
  1333. </el-table-column> -->
  1334. <el-table-column label="称重时间" min-width="120" align="center">
  1335. <template v-slot="scope">
  1336. <el-input
  1337. :input-style="
  1338. scope.row.weighTime ? {} : { border: '1px solid red' }
  1339. "
  1340. size="small"
  1341. v-model="scope.row.weighTime"
  1342. ></el-input>
  1343. </template>
  1344. </el-table-column>
  1345. <el-table-column label="车号" min-width="120" align="center">
  1346. <template v-slot="scope">
  1347. <el-input
  1348. :input-style="
  1349. scope.row.carNum?.length == 7 ? {} : { border: '1px solid red' }
  1350. "
  1351. size="small"
  1352. v-model="scope.row.carNum"
  1353. ></el-input>
  1354. </template>
  1355. </el-table-column>
  1356. <el-table-column label="货物名称" min-width="120" align="center">
  1357. <template v-slot="scope">
  1358. <el-input size="small" v-model="scope.row.cargoName"></el-input>
  1359. </template>
  1360. </el-table-column>
  1361. <el-table-column label="发货单位" min-width="200" align="center">
  1362. <template v-slot="scope">
  1363. <el-input size="small" v-model="scope.row.shippingUnit"></el-input>
  1364. </template>
  1365. </el-table-column>
  1366. <el-table-column label="收货单位" min-width="200" align="center">
  1367. <template v-slot="scope">
  1368. <el-input
  1369. :input-style="
  1370. scope.row.receivingUnit ? {} : { border: '1px solid red' }
  1371. "
  1372. size="small"
  1373. v-model="scope.row.receivingUnit"
  1374. ></el-input>
  1375. </template>
  1376. </el-table-column>
  1377. <el-table-column label="毛重" min-width="120" align="center">
  1378. <template v-slot="scope">
  1379. <el-input
  1380. :input-style="
  1381. scope.row.grossWeight ? {} : { border: '1px solid red' }
  1382. "
  1383. size="small"
  1384. v-model="scope.row.grossWeight"
  1385. ></el-input>
  1386. </template>
  1387. </el-table-column>
  1388. <el-table-column label="皮重" min-width="120" align="center">
  1389. <template v-slot="scope">
  1390. <el-input
  1391. :input-style="scope.row.tare ? {} : { border: '1px solid red' }"
  1392. size="small"
  1393. v-model="scope.row.tare"
  1394. ></el-input>
  1395. </template>
  1396. </el-table-column>
  1397. <el-table-column label="净重" min-width="120" align="center">
  1398. <template v-slot="scope">
  1399. <el-input
  1400. :input-style="
  1401. scope.row.netWeight ? {} : { border: '1px solid red' }
  1402. "
  1403. size="small"
  1404. v-model="scope.row.netWeight"
  1405. ></el-input>
  1406. </template>
  1407. </el-table-column>
  1408. <el-table-column label="货船名称" min-width="120" align="center">
  1409. <template v-slot="scope">
  1410. <el-input size="small" v-model="scope.row.shipName"></el-input>
  1411. </template>
  1412. </el-table-column>
  1413. <el-table-column label="司磅员" min-width="120" align="center">
  1414. <template v-slot="scope">
  1415. <el-input size="small" v-model="scope.row.weigher"></el-input>
  1416. </template>
  1417. </el-table-column>
  1418. <el-table-column label="查看" min-width="120" align="center">
  1419. <template v-slot="scope">
  1420. <el-image
  1421. style="height: 40px; width: 60px"
  1422. fit="contain"
  1423. :src="scope.row.viewUrl"
  1424. :preview-src-list="ocrImageList"
  1425. ></el-image
  1426. ></template>
  1427. </el-table-column>
  1428. <!-- <el-table-column label="操作" min-width="120" align="center">
  1429. <template v-slot="scope">
  1430. <el-button
  1431. size="small"
  1432. @click="deleteOcrRecord(scope.$index)"
  1433. type="danger"
  1434. >删除</el-button
  1435. >
  1436. </template>
  1437. </el-table-column> -->
  1438. </el-table>
  1439. </div>
  1440. <div class="hr m10-0"></div>
  1441. <div class="tar">
  1442. <el-button @click="submitDistribute" type="primary">确定</el-button>
  1443. </div>
  1444. </el-dialog>
  1445. <div class="container-title">航次图片</div>
  1446. <div class="line-container-p24">
  1447. <div v-if="medias.length" class="medias-content df ffw">
  1448. <div class="pic-container">
  1449. <div v-for="(item, index) in medias" :key="item" class="pic-main">
  1450. <div
  1451. :class="[
  1452. 'box',
  1453. index % 2 == 0 ? '' : 'bottom-box',
  1454. item.status == 1 ? 'now-box' : '',
  1455. ]"
  1456. >
  1457. <div class="card-note">
  1458. {{ item.shipName }} 拍摄于
  1459. <br />
  1460. {{ item.createTime }}
  1461. <br />
  1462. 天气 : {{ item.weather.weather }} - 气温 :
  1463. {{ item.weather.temperature }}℃
  1464. </div>
  1465. <div class="medias-box mb10" style="position: relative">
  1466. <el-image
  1467. v-if="item.mediaType == 1"
  1468. style="width: 100%; height: 100%"
  1469. fit="contain"
  1470. :src="item.downloadUrl"
  1471. @click="openMediaModal(item.downloadUrl, 1, '图片审核')"
  1472. ></el-image>
  1473. <video
  1474. style="width: 100%; height: 100%"
  1475. v-else
  1476. :src="item.downloadUrl"
  1477. ></video>
  1478. <img
  1479. @click="openMediaModal(item.downloadUrl, 2, '视频审核')"
  1480. v-if="item.mediaType == 2"
  1481. src="../../assets/icon-player.png"
  1482. style="
  1483. object-fit: contain;
  1484. width: 40px;
  1485. height: 40px;
  1486. position: absolute;
  1487. top: calc(50% - 20px);
  1488. left: calc(50% - 20px);
  1489. background: #fff;
  1490. border-radius: 50%;
  1491. "
  1492. alt=""
  1493. />
  1494. </div>
  1495. <div class="checkbox-group df aic jcsa mb10">
  1496. <el-checkbox
  1497. @change="auditMedia(item.id, 1, index, item.mediaType)"
  1498. :model-value="item.audit == 1"
  1499. label="通过"
  1500. disabled
  1501. ></el-checkbox>
  1502. <el-checkbox
  1503. @change="auditMedia(item.id, 2, index, item.mediaType)"
  1504. :model-value="item.audit == 2"
  1505. label="未通过"
  1506. disabled
  1507. ></el-checkbox>
  1508. </div>
  1509. <div class="checkbox-group df aic jcsa">
  1510. <el-checkbox
  1511. @change="markMedia(item.id, 1, index, item.mediaType)"
  1512. :model-value="item.type == 1"
  1513. label="验仓"
  1514. disabled
  1515. ></el-checkbox>
  1516. <el-checkbox
  1517. @change="markMedia(item.id, 2, index, item.mediaType)"
  1518. :model-value="item.type == 2"
  1519. label="清仓"
  1520. disabled
  1521. ></el-checkbox>
  1522. </div>
  1523. </div>
  1524. <div
  1525. :class="[
  1526. 's-line',
  1527. index % 2 == 0 ? '' : 'top210px',
  1528. item.status == 1 ? 'now-s-line' : '',
  1529. ]"
  1530. ></div>
  1531. <div :class="['point', item.status == 1 ? '' : 'now-point']"></div>
  1532. <div
  1533. :class="['l-line', item.status == 1 ? 'now-l-line' : '']"
  1534. v-if="index + 1 != medias.length"
  1535. ></div>
  1536. </div>
  1537. <el-dialog v-model="mediaModal" :title="modalTitle" destroy-on-close>
  1538. <el-image
  1539. v-if="modalType == 1"
  1540. style="height: 60vh; display: flex"
  1541. fit="contain"
  1542. :src="currentUrl"
  1543. :preview-src-list="modalPreview"
  1544. ></el-image>
  1545. <video
  1546. v-else
  1547. autoplay
  1548. controls
  1549. style="width: 100%; height: 100%"
  1550. :src="currentUrl"
  1551. ></video>
  1552. </el-dialog>
  1553. </div>
  1554. </div>
  1555. </div>
  1556. </template>
  1557. <script setup>
  1558. import { onMounted, reactive, ref, toRefs } from "vue";
  1559. import api from "../../apis/fetch";
  1560. import { useRoute } from "vue-router";
  1561. import _ from "lodash";
  1562. import router from "../../router";
  1563. import store from "../../store";
  1564. import { ElNotification, ElMessageBox, ElMessage } from "element-plus";
  1565. import downloadBlobFile from "../../utils/downloadBlobFile";
  1566. import url from "../../apis/config";
  1567. import { subTimeStr } from "utils/utils";
  1568. const route = useRoute();
  1569. let map = ref({});
  1570. let voyage = ref({});
  1571. let medias = ref([]);
  1572. let coordinates = ref([]);
  1573. let previewSrcList = ref([]);
  1574. let shipAudits = ref([]);
  1575. let shipownerUploadFiles = ref([]);
  1576. let prePolicyFileList = ref([]);
  1577. let preVoyageBill = ref([]);
  1578. async function getVoyageDetail(isInit) {
  1579. previewList.value = [];
  1580. policyFileList.value = [];
  1581. voyageBill.value = [];
  1582. previewSrcList.value = [];
  1583. shipownerUploadFiles.value = [];
  1584. prePolicyFileList.value = [];
  1585. preVoyageBill.value = [];
  1586. let res = await api.getVoyageDetail({
  1587. type: localStorage.userType,
  1588. voyageId: route.query.id,
  1589. });
  1590. if (res.data.status == 0) {
  1591. ElNotification({
  1592. type: "success",
  1593. title: res.data.msg,
  1594. });
  1595. blockchainInfo.value = res.data.result.blockChain;
  1596. coordinates.value = res.data.result.coordinates;
  1597. voyage.value = res.data.result.voyage;
  1598. voyage.value.startTime = voyage.value.startTime.substring(0, 16);
  1599. currentPortId.value = voyage.value.voyageDetails[0].portId + "";
  1600. currentDiscPortId.value = voyage.value.voyageDetails[0].portId + "";
  1601. medias.value = res.data.result.medias;
  1602. shipAudits.value = res.data.result.shipAudits;
  1603. shipownerUploadFiles.value = res.data.result.shipownerUploadFiles || [];
  1604. for (let i of shipownerUploadFiles.value || []) {
  1605. previewList.value.push(i.viewUrl);
  1606. }
  1607. for (let i of res.data.result.policys || []) {
  1608. policyFileList.value.push({
  1609. ...i,
  1610. url: i.viewUrl,
  1611. });
  1612. prePolicyFileList.value.push(i.viewUrl);
  1613. }
  1614. for (let i of res.data.result.waybills) {
  1615. voyageBill.value.push({
  1616. ...i,
  1617. url: i.viewUrl,
  1618. });
  1619. preVoyageBill.value.push(i.viewUrl);
  1620. }
  1621. for (let i of medias.value) {
  1622. previewSrcList.value.push(i.downloadUrl);
  1623. }
  1624. if (isInit) {
  1625. getDischargeList();
  1626. getTruckLoadRecord();
  1627. getLabList();
  1628. getPortWeatherList();
  1629. initMap();
  1630. }
  1631. } else {
  1632. console.log(res);
  1633. ElNotification({
  1634. type: "error",
  1635. title: res.data.msg,
  1636. });
  1637. }
  1638. }
  1639. let total = ref(0);
  1640. function pageChange(e) {
  1641. dischargeCurrentPage.value = e;
  1642. getDischargeList();
  1643. }
  1644. async function addDischarge() {
  1645. if (!formInline.value.dischargeTime || !formInline.value.dischargeTons)
  1646. return;
  1647. let arr = [];
  1648. if (poundBillList.value.length) {
  1649. for (let i of poundBillList.value) {
  1650. arr.push(i.response.result.id);
  1651. }
  1652. }
  1653. let res = await api.addDischarge({
  1654. ...formInline.value,
  1655. voyageFileIds: arr.join(","),
  1656. voyageId: route.query.id,
  1657. portId: currentDiscPortId.value,
  1658. });
  1659. if (res.data.status == 0) {
  1660. getDischargeList(1);
  1661. poundBillList.value = [];
  1662. formInline.value = {
  1663. dischargeTons: 0,
  1664. dischargePieces: 0,
  1665. };
  1666. } else {
  1667. console.log(res);
  1668. }
  1669. isAddPoundVisable.value = false;
  1670. }
  1671. async function deleteDischarge(id, index) {
  1672. let res = await api.deleteDischarge({
  1673. id,
  1674. });
  1675. if (res.data.status == 0) {
  1676. dischargeList.value.splice(index, 1);
  1677. ElNotification({
  1678. type: "success",
  1679. title: res.data.msg,
  1680. });
  1681. } else {
  1682. console.log(res);
  1683. ElNotification({
  1684. type: "error",
  1685. title: res.data.msg,
  1686. });
  1687. }
  1688. }
  1689. async function exportExcel() {}
  1690. let dischargeCurrentPage = ref(1);
  1691. let dischargeList = ref([]);
  1692. let formInline = ref({
  1693. dischargeTons: 0,
  1694. dischargePieces: 0,
  1695. });
  1696. async function getDischargeList() {
  1697. let res = await api.getDischargeList({
  1698. voyageId: route.query.id,
  1699. portId: currentDiscPortId.value,
  1700. currentPage: dischargeCurrentPage.value,
  1701. size: 10,
  1702. });
  1703. if (res.data.status == 0) {
  1704. dischargeList.value = res.data.result;
  1705. total.value = res.data.total;
  1706. } else {
  1707. dischargeList.value = [];
  1708. total.value = 0;
  1709. }
  1710. }
  1711. let updateForm = ref({});
  1712. let updateDischargeDialog = ref(false);
  1713. async function updateDischarge() {
  1714. let postData = {
  1715. ...updateForm.value,
  1716. };
  1717. let arr = [];
  1718. if (updatePoundBillList.value.length) {
  1719. for (let i of updatePoundBillList.value) {
  1720. arr.push(i.id || i.response.result.id);
  1721. }
  1722. postData.voyageFileIds = arr.join(",");
  1723. } else {
  1724. postData.voyageFileIds = "";
  1725. }
  1726. let res = await api.updateDischarge({
  1727. ...postData,
  1728. });
  1729. if (res.data.status == 0) {
  1730. getDischargeList();
  1731. cancelUpdateDischarge();
  1732. ElNotification({
  1733. type: "success",
  1734. title: res.data.msg,
  1735. });
  1736. } else {
  1737. console.log(res);
  1738. ElNotification({
  1739. type: "error",
  1740. title: res.data.msg,
  1741. });
  1742. }
  1743. }
  1744. function showUpdateDischarge(item, index) {
  1745. updateDischargeDialog.value = true;
  1746. updatePoundBillList.value = [];
  1747. let { id, dischargeTons, dischargeTime, voyageId, files } = item;
  1748. if (files && files.length) {
  1749. for (let i of files)
  1750. updatePoundBillList.value.push({ id: i.id, url: i.viewUrl });
  1751. }
  1752. updateForm.value = {
  1753. id,
  1754. dischargeTons,
  1755. dischargeTime,
  1756. };
  1757. }
  1758. function cancelUpdateDischarge() {
  1759. updateDischargeDialog.value = false;
  1760. updateForm.value = {};
  1761. updatePoundBillList.value = [];
  1762. }
  1763. let mapId = ref(`map${route.query.id}`);
  1764. function initMap() {
  1765. let c;
  1766. let longitude = 121.524761;
  1767. let latitude = 31.228721;
  1768. if (medias.value.length) {
  1769. c = Math.floor(medias.value.length / 2);
  1770. longitude = medias.value[c].longitude;
  1771. latitude = medias.value[c].latitude;
  1772. }
  1773. map.value = new AMap.Map(mapId.value, {
  1774. zoom: 16, //级别
  1775. center: [longitude, latitude], //中心点坐标
  1776. mapStyle: "amap://styles/f48d96805f5fa7f5aada657c5ee37017",
  1777. zoomEnable: false,
  1778. dragEnable: false,
  1779. });
  1780. let toolBar = new AMap.ToolBar({
  1781. position: {
  1782. top: "40px",
  1783. right: "40px",
  1784. },
  1785. });
  1786. let hawkEye = new AMap.HawkEye({
  1787. opened: false,
  1788. });
  1789. map.value.addControl(toolBar);
  1790. map.value.addControl(hawkEye);
  1791. let markers = [];
  1792. for (let i of medias.value) {
  1793. let content = `<div style='width:160px'>
  1794. ${
  1795. i.audit == 1
  1796. ? `<img id='img${i.id}' style='width:160px;height:160px;object-fit:contain;' src='${i.viewUrl}'/>`
  1797. : ``
  1798. }
  1799. <img src='https://hhd-pat-1255802371.cos.ap-shanghai.myqcloud.com/frontend/ship-red-icon.png' style='display:block;width:20px;height:20px;margin:6px auto'/
  1800. </div>`;
  1801. let marker = new AMap.Marker({
  1802. content,
  1803. position: new AMap.LngLat(i.longitude, i.latitude),
  1804. offset: new AMap.Pixel(-75, i.audit == 1 ? -195 : -30),
  1805. });
  1806. if (i.audit == 1) {
  1807. marker.on("click", () => {
  1808. openMediaModal(i.viewUrl, 1, "航次图片", i);
  1809. });
  1810. }
  1811. markers.push(marker);
  1812. }
  1813. let overlayGroups = new AMap.OverlayGroup(markers);
  1814. map.value.on("complete", function () {
  1815. let t = setTimeout(() => {
  1816. map.value.add(overlayGroups);
  1817. map.value.setFitView(markers, true, [200, 50, 0, 0], 18);
  1818. clearTimeout(t);
  1819. }, 2000);
  1820. });
  1821. }
  1822. let disabledStatus = ref(true);
  1823. let updateCache = {};
  1824. function changeVoyageInfo() {
  1825. updateCache = _.cloneDeep(voyage.value);
  1826. disabledStatus.value = false;
  1827. }
  1828. function cancelVoyageChange() {
  1829. voyage.value = updateCache;
  1830. disabledStatus.value = true;
  1831. }
  1832. async function submitVoyageChange() {
  1833. let res = await api.updateVoyage({
  1834. ...voyage.value,
  1835. hasInsurance: Number(voyage.value.hasInsurance),
  1836. });
  1837. if (res.data.status == 0) {
  1838. ElNotification({
  1839. type: "success",
  1840. title: res.data.msg,
  1841. });
  1842. disabledStatus.value = true;
  1843. } else {
  1844. ElNotification({
  1845. type: "error",
  1846. title: res.data.msg,
  1847. });
  1848. console.log(res);
  1849. }
  1850. getVoyageDetail();
  1851. }
  1852. let options = ref([
  1853. { value: 0, label: "请选择" },
  1854. {
  1855. value: 1,
  1856. label: "航行",
  1857. },
  1858. {
  1859. value: 2,
  1860. label: "停泊",
  1861. },
  1862. {
  1863. value: 3,
  1864. label: "装货",
  1865. },
  1866. {
  1867. value: 4,
  1868. label: "运输中",
  1869. },
  1870. {
  1871. value: 5,
  1872. label: "卸货",
  1873. },
  1874. ]);
  1875. async function finishVoyage() {
  1876. if (!voyage.value.canComplete) return;
  1877. let res = await api.finishVoyage({
  1878. voyageId: route.query.id,
  1879. });
  1880. if (res.data.status == 0) {
  1881. ElNotification({
  1882. type: "success",
  1883. title: "航次已完成",
  1884. });
  1885. } else {
  1886. ElNotification({
  1887. type: "error",
  1888. title: res.data.msg,
  1889. });
  1890. console.log(res);
  1891. }
  1892. getVoyageDetail();
  1893. }
  1894. let currentUrl = ref("");
  1895. let mediaModal = ref(false);
  1896. let modalType = ref(1);
  1897. let modalTitle = ref("");
  1898. let modalPreview = ref([]);
  1899. function openMediaModal(url, type, title, item = {}) {
  1900. modalPreview.value = [url];
  1901. modalTitle.value = title;
  1902. modalType.value = type;
  1903. currentUrl.value = url;
  1904. mediaModal.value = true;
  1905. }
  1906. async function auditMedia(mediaId, a, index, mediaType) {
  1907. console.log(mediaId, a, index, mediaType);
  1908. let res = await api.auditMedia({
  1909. mediaId,
  1910. audit: a,
  1911. });
  1912. if (res.data.status == 0) {
  1913. medias.value[index].audit = a;
  1914. ElNotification({
  1915. type: "success",
  1916. title: res.data.msg,
  1917. });
  1918. } else {
  1919. console.log(res);
  1920. }
  1921. }
  1922. async function markMedia(mediaId, type, index, mediaType) {
  1923. console.log(mediaId, type, index, mediaType);
  1924. let res = await api.markMedia({
  1925. mediaId,
  1926. type,
  1927. });
  1928. if (res.data.status == 0) {
  1929. medias.value[index].type = type;
  1930. ElNotification({
  1931. type: "success",
  1932. title: res.data.msg,
  1933. });
  1934. } else {
  1935. console.log(res);
  1936. }
  1937. }
  1938. let dialogImageUrl = ref("");
  1939. let dialogVisible = ref(false);
  1940. function handlePictureCardPreview(file) {
  1941. dialogVisible.value = true;
  1942. dialogImageUrl.value = file.url;
  1943. }
  1944. async function handleRemovePolicy(file, list) {
  1945. let cache = _.cloneDeep(policyFileList.value);
  1946. console.log(cache);
  1947. ElMessageBox.confirm("确认删除保险单?", "Warning", {
  1948. confirmButtonText: "删除",
  1949. cancelButtonText: "取消",
  1950. type: "warning",
  1951. })
  1952. .then(async () => {
  1953. let { id } = file;
  1954. let res = await api.deleteWaybill({
  1955. id,
  1956. });
  1957. if (res.data.status == 0) {
  1958. ElMessage({
  1959. message: "删除成功!",
  1960. type: "success",
  1961. });
  1962. policyFileList.value = list;
  1963. }
  1964. })
  1965. .catch(() => {
  1966. policyFileList.value = cache;
  1967. ElMessage({
  1968. type: "info",
  1969. message: "取消删除",
  1970. });
  1971. });
  1972. }
  1973. let policyFileList = ref([]);
  1974. function policyUploadSuccess(response, file, list) {
  1975. list[list.length - 1] = {
  1976. ...response.result,
  1977. url: response.result.viewUrl,
  1978. };
  1979. console.log(list);
  1980. policyFileList.value = list;
  1981. }
  1982. let policyParams = ref({
  1983. voyageId: route.query.id,
  1984. type: 3,
  1985. });
  1986. async function handleRemovePoundBill(file, list) {
  1987. let cache = _.cloneDeep(poundBill.value);
  1988. console.log(cache);
  1989. ElMessageBox.confirm("确认删除磅单?", "Warning", {
  1990. confirmButtonText: "删除",
  1991. cancelButtonText: "取消",
  1992. type: "warning",
  1993. })
  1994. .then(async () => {
  1995. let { id } = file;
  1996. let res = await api.deleteWaybill({
  1997. id,
  1998. });
  1999. if (res.data.status == 0) {
  2000. ElMessage({
  2001. message: "删除成功!",
  2002. type: "success",
  2003. });
  2004. poundBill.value = list;
  2005. }
  2006. })
  2007. .catch(() => {
  2008. poundBill.value = cache;
  2009. ElMessage({
  2010. type: "info",
  2011. message: "取消删除",
  2012. });
  2013. });
  2014. }
  2015. async function handleRemoveBill(file, list) {
  2016. let cache = _.cloneDeep(voyageBill.value);
  2017. console.log(cache);
  2018. ElMessageBox.confirm("确认删除运单?", "Warning", {
  2019. confirmButtonText: "删除",
  2020. cancelButtonText: "取消",
  2021. type: "warning",
  2022. })
  2023. .then(async () => {
  2024. let { id } = file;
  2025. let res = await api.deleteWaybill({
  2026. id,
  2027. });
  2028. if (res.data.status == 0) {
  2029. ElMessage({
  2030. message: "删除成功!",
  2031. type: "success",
  2032. });
  2033. voyageBill.value = list;
  2034. }
  2035. })
  2036. .catch(() => {
  2037. voyageBill.value = cache;
  2038. ElMessage({
  2039. type: "info",
  2040. message: "取消删除",
  2041. });
  2042. });
  2043. }
  2044. let voyageBill = ref([]);
  2045. function billUploadSuccess(response, file, list) {
  2046. list[list.length - 1] = {
  2047. ...response.result,
  2048. url: response.result.viewUrl,
  2049. };
  2050. console.log(list);
  2051. voyageBill.value = list;
  2052. }
  2053. let billParams = ref({
  2054. voyageId: route.query.id,
  2055. type: 1,
  2056. });
  2057. function getPoundBillList(list) {
  2058. console.log(list);
  2059. poundBillList.value = list;
  2060. }
  2061. let poundBillList = ref([]);
  2062. let poundBill = ref([]);
  2063. function poundBillUploadSuccess(response, file, list) {
  2064. list[list.length - 1] = {
  2065. ...response.result,
  2066. url: response.result.viewUrl,
  2067. };
  2068. console.log(list);
  2069. poundBill.value = list;
  2070. }
  2071. function previewPoundBill(url) {
  2072. console.log(url);
  2073. }
  2074. let updatePoundParams = ref({
  2075. voyageId: route.query.id,
  2076. type: 2,
  2077. });
  2078. let updatePoundBillList = ref([]);
  2079. function getupdatePoundBillList(list) {
  2080. console.log(list);
  2081. updatePoundBillList.value = list;
  2082. }
  2083. let previewPoundList = ref([]);
  2084. let poundParams = ref({
  2085. voyageId: route.query.id,
  2086. type: 2,
  2087. });
  2088. async function calExpectedArrivalTime() {
  2089. let res = await api.calExpectedArrivalTime({
  2090. voyageId: route.query.id,
  2091. setSailTime: voyage.value.setSailTime,
  2092. });
  2093. if (res.data.status == 0) {
  2094. voyage.value.expectedArrivalTime = res.data.result;
  2095. }
  2096. }
  2097. let isLoadingExcel = ref(false);
  2098. async function downloadExcel() {
  2099. isLoadingExcel.value = true;
  2100. let res = await downloadBlobFile(
  2101. `${url.baseurl}/voyage/exportExcel`,
  2102. { voyageId: route.query.id },
  2103. "船舶跟踪表",
  2104. "post"
  2105. );
  2106. if (res) {
  2107. isLoadingExcel.value = false;
  2108. }
  2109. }
  2110. async function cancelVoyage() {
  2111. console.log("取消航次");
  2112. ElMessageBox.confirm("确认取消航次?", "确认操作", {
  2113. confirmButtonText: "确认",
  2114. cancelButtonText: "取消操作",
  2115. type: "warning",
  2116. })
  2117. .then(async (e) => {
  2118. console.log(e);
  2119. let res = await api.cancelVoyage({
  2120. id: route.query.id,
  2121. });
  2122. if (res.data.status == 0) {
  2123. ElMessage({
  2124. type: "success",
  2125. message: "航次取消成功!",
  2126. });
  2127. router.push("/voyageList");
  2128. } else {
  2129. console.log(res);
  2130. }
  2131. })
  2132. .catch((e) => {
  2133. console.log(e);
  2134. ElMessage({
  2135. type: "info",
  2136. message: "取消操作",
  2137. });
  2138. });
  2139. }
  2140. let certs = ref(null);
  2141. let isCertsVisable = ref(false);
  2142. function showCerts() {
  2143. setTimeout(() => {
  2144. certs.value.initCerts(shipAudits.value);
  2145. });
  2146. }
  2147. let isDischargeLoadingExcel = ref(false);
  2148. async function exportDischargeExcel() {
  2149. isDischargeLoadingExcel.value = true;
  2150. let res = await downloadBlobFile(
  2151. `${url.baseurl}/voyage/exportDischargeExcel`,
  2152. { voyageId: route.query.id },
  2153. "卸货记录表",
  2154. "post"
  2155. );
  2156. if (res) {
  2157. isDischargeLoadingExcel.value = false;
  2158. }
  2159. }
  2160. let isAddPoundVisable = ref(false);
  2161. let isAddTruckRecordVisable = ref(false);
  2162. let truckTableData = ref([]);
  2163. let truckRecordForm = ref({});
  2164. let truckRecordBillList = ref([]);
  2165. let truckCurrentPage = ref(1);
  2166. let truckTotal = ref(0);
  2167. let truckLoadParams = ref({
  2168. voyageId: route.query.id,
  2169. type: 4,
  2170. });
  2171. function getTruckLoadBillList(list) {
  2172. truckRecordBillList.value = list;
  2173. }
  2174. function cancelUploadTruckRecord() {
  2175. isAddTruckRecordVisable.value = false;
  2176. truckRecordForm.value = {};
  2177. truckRecordBillList.value = [];
  2178. currentRecordId.value = -1;
  2179. }
  2180. let currentRecordId = ref(-1);
  2181. async function addTruckLoadRecord() {
  2182. let postData = {};
  2183. if (truckRecordBillList.value.length) {
  2184. if (truckRecordBillList.value[0].viewUrl) {
  2185. let { fileKey, viewUrl, downloadUrl } = truckRecordBillList.value[0];
  2186. postData = {
  2187. fileKey,
  2188. viewUrl,
  2189. downloadUrl,
  2190. };
  2191. } else {
  2192. let { fileKey, viewUrl, downloadUrl } =
  2193. truckRecordBillList.value[0].response.result;
  2194. postData = {
  2195. fileKey,
  2196. viewUrl,
  2197. downloadUrl,
  2198. };
  2199. }
  2200. } else {
  2201. postData = {
  2202. fileKey: "",
  2203. viewUrl: "",
  2204. downloadUrl: "",
  2205. };
  2206. }
  2207. if (currentRecordId.value != -1) {
  2208. postData.recordId = currentRecordId.value;
  2209. delete truckRecordForm.value.file;
  2210. delete truckRecordForm.value.fileId;
  2211. }
  2212. let res = await api[
  2213. `${
  2214. truckRecordModalType.value == "新增记录"
  2215. ? "addTruckLoadRecord"
  2216. : "updateTruckLoadRecord"
  2217. }`
  2218. ]({
  2219. voyageId: route.query.id,
  2220. portId: currentDiscPortId.value,
  2221. ...postData,
  2222. ...truckRecordForm.value,
  2223. });
  2224. cancelUploadTruckRecord();
  2225. getTruckLoadRecord();
  2226. }
  2227. function showAddTruckRecord() {
  2228. isAddTruckRecordVisable.value = true;
  2229. truckRecordModalType.value = "新增记录";
  2230. }
  2231. async function getTruckLoadRecord() {
  2232. let res = await api.getTruckLoadRecord({
  2233. voyageId: route.query.id,
  2234. portId: currentDiscPortId.value,
  2235. currentPage: truckCurrentPage.value,
  2236. size: 10,
  2237. });
  2238. if (res.data.status == 0) {
  2239. truckTableData.value = res.data.result;
  2240. truckTotal.value = res.data.total;
  2241. } else {
  2242. truckTableData.value = [];
  2243. truckTotal.value = 0;
  2244. }
  2245. }
  2246. function truckPageChange(e) {
  2247. truckCurrentPage.value = e;
  2248. getTruckLoadRecord();
  2249. }
  2250. let truckRecordModalType = ref("");
  2251. function showTruckRecord(item, index, text) {
  2252. isAddTruckRecordVisable.value = true;
  2253. currentRecordId.value = item.id;
  2254. truckRecordModalType.value = text;
  2255. if (item.file) {
  2256. truckRecordBillList.value[0] = {
  2257. ...item.file,
  2258. url: item.file.viewUrl,
  2259. };
  2260. }
  2261. truckRecordForm.value = { ...item };
  2262. }
  2263. async function deleteTruckRecord(id, index) {
  2264. console.log(id);
  2265. ElMessageBox.confirm("确认删除装货记录?", "Warning", {
  2266. confirmButtonText: "删除",
  2267. cancelButtonText: "取消",
  2268. type: "warning",
  2269. })
  2270. .then(async () => {
  2271. let res = await api.deleteTruckLoadRecord({
  2272. id,
  2273. });
  2274. if (res.data.status == 0) {
  2275. ElMessage({
  2276. message: "删除成功!",
  2277. type: "success",
  2278. });
  2279. }
  2280. getTruckLoadRecord();
  2281. })
  2282. .catch(() => {
  2283. ElMessage({
  2284. type: "info",
  2285. message: "取消删除",
  2286. });
  2287. });
  2288. }
  2289. let isDistributeModalVisable = ref(false);
  2290. let previewList = ref([]);
  2291. let checkedImages = ref([]);
  2292. let distributeType = ref(-1);
  2293. let distributePortId = ref(-1);
  2294. let checkedPreviewList = ref([]);
  2295. let recordIds = ref("");
  2296. let ocrTruckRecordTableData = ref([]);
  2297. function showDistributeModal() {
  2298. checkedImages.value = shipownerUploadFiles.value.filter((e) => e.checked);
  2299. if (!checkedImages.value.length) {
  2300. ElMessage({
  2301. type: "error",
  2302. message: "请选择要分配的图片!",
  2303. });
  2304. return;
  2305. }
  2306. let arr0 = [];
  2307. for (let i of checkedImages.value) {
  2308. checkedPreviewList.value.push(i.viewUrl);
  2309. arr0.push(i.id);
  2310. }
  2311. recordIds.value = arr0.join(",");
  2312. isDistributeModalVisable.value = true;
  2313. }
  2314. function distributeModalClose() {
  2315. isDistributeModalVisable.value = false;
  2316. distributeType.value = -1;
  2317. distributePortId.value = -1;
  2318. distributePoundForm.value = {
  2319. dischargeTime: "",
  2320. dischargeTons: "",
  2321. dischargePieces: "",
  2322. };
  2323. ocrTruckRecordTableData.value = [];
  2324. }
  2325. async function submitDistribute() {
  2326. if (distributePortId.value == -1) {
  2327. ElMessage({
  2328. type: "error",
  2329. message: "请选择要分配的港口!",
  2330. });
  2331. return;
  2332. }
  2333. if (distributeType.value == -1) {
  2334. ElMessage({
  2335. type: "error",
  2336. message: "请选择要分配类型!",
  2337. });
  2338. return;
  2339. }
  2340. let postData = {};
  2341. let type = distributeType.value;
  2342. if (2 == type) {
  2343. postData = {
  2344. poundBillData: {
  2345. ...distributePoundForm.value,
  2346. portId: distributePortId.value,
  2347. },
  2348. };
  2349. } else if (4 == type) {
  2350. for (let i of ocrTruckRecordTableData.value) {
  2351. i.portId = distributePortId.value;
  2352. }
  2353. postData = { carLoadDatas: ocrTruckRecordTableData.value };
  2354. }
  2355. let res = await api.distribute({
  2356. ...postData,
  2357. voyageId: route.query.id,
  2358. recordIds: recordIds.value,
  2359. type,
  2360. });
  2361. console.log(res);
  2362. distributeModalClose();
  2363. getVoyageDetail();
  2364. if (2 == type) getDischargeList();
  2365. if (4 == type) getTruckLoadRecord();
  2366. }
  2367. async function deleteOcrRecord(index) {
  2368. console.log(index);
  2369. ocrTruckRecordTableData.value.splice(index, 1);
  2370. }
  2371. let distributePoundForm = ref({});
  2372. async function ocr() {
  2373. ocrLoading.value = true;
  2374. ocrImageList.value = [];
  2375. let res = await api.ocr({
  2376. recordIds: recordIds.value,
  2377. });
  2378. ocrLoading.value = false;
  2379. ocrTruckRecordTableData.value = res.data.result;
  2380. for (let i of ocrTruckRecordTableData.value) {
  2381. if (i.weighTime) i.weighTime = i.weighTime.substring(0, 10);
  2382. ocrImageList.value.push(i.viewUrl);
  2383. }
  2384. }
  2385. let isCheckAll = ref(false);
  2386. let isIndeterminate = ref(false);
  2387. function checkAll(b) {
  2388. isIndeterminate.value = false;
  2389. shipownerUploadFiles.value.forEach((e) => {
  2390. e.checked = b;
  2391. });
  2392. }
  2393. function checkItem() {
  2394. let arr = shipownerUploadFiles.value.filter((e) => e.checked);
  2395. if (arr.length == shipownerUploadFiles.value.length) {
  2396. isCheckAll.value = true;
  2397. isIndeterminate.value = false;
  2398. } else if (arr.length == 0) {
  2399. isCheckAll.value = false;
  2400. isIndeterminate.value = false;
  2401. } else {
  2402. isIndeterminate.value = true;
  2403. }
  2404. }
  2405. let ocrLoading = ref(false);
  2406. let ocrImageList = ref([]);
  2407. let blockchainInfo = ref("");
  2408. let isAddLabVisable = ref(false);
  2409. let labTableData = ref([]);
  2410. let labForm = ref({});
  2411. let labBillList = ref([]);
  2412. let labCurrentPage = ref(1);
  2413. let labTotal = ref(0);
  2414. let labParams = ref({
  2415. voyageId: route.query.id,
  2416. type: 5,
  2417. });
  2418. function getLabBillList(list) {
  2419. labBillList.value = list;
  2420. }
  2421. function cancelUploadLab() {
  2422. isAddLabVisable.value = false;
  2423. labForm.value = {};
  2424. labBillList.value = [];
  2425. currentLabId.value = -1;
  2426. }
  2427. let currentLabId = ref(-1);
  2428. async function addLab() {
  2429. let postData = {
  2430. portId: currentDiscPortId.value,
  2431. };
  2432. if (labBillList.value.length) {
  2433. if (labBillList.value[0].viewUrl) {
  2434. let { fileKey, viewUrl, downloadUrl } = labBillList.value[0];
  2435. postData = {
  2436. ...postData,
  2437. fileKey,
  2438. viewUrl,
  2439. downloadUrl,
  2440. };
  2441. } else {
  2442. let { fileKey, viewUrl, downloadUrl } =
  2443. labBillList.value[0].response.result;
  2444. postData = {
  2445. ...postData,
  2446. fileKey,
  2447. viewUrl,
  2448. downloadUrl,
  2449. };
  2450. }
  2451. } else {
  2452. postData = {
  2453. ...postData,
  2454. fileKey: "",
  2455. viewUrl: "",
  2456. downloadUrl: "",
  2457. };
  2458. }
  2459. if (currentLabId.value != -1) {
  2460. postData.labId = currentLabId.value;
  2461. delete postData.portId;
  2462. delete labForm.value.file;
  2463. delete labForm.value.fileId;
  2464. }
  2465. let res = await api[
  2466. `${labModalType.value == "新增记录" ? "addLab" : "updateLab"}`
  2467. ]({
  2468. voyageId: route.query.id,
  2469. ...postData,
  2470. ...labForm.value,
  2471. });
  2472. cancelUploadLab();
  2473. getLabList();
  2474. }
  2475. function showAddLab() {
  2476. isAddLabVisable.value = true;
  2477. labModalType.value = "新增记录";
  2478. }
  2479. async function getLabList() {
  2480. let res = await api.getLabList({
  2481. voyageId: route.query.id,
  2482. portId: currentDiscPortId.value,
  2483. currentPage: labCurrentPage.value,
  2484. size: 10,
  2485. });
  2486. if (res.data.status == 0) {
  2487. labTableData.value = res.data.result;
  2488. labTotal.value = res.data.total;
  2489. } else {
  2490. labTableData.value = [];
  2491. labTotal.value = 0;
  2492. }
  2493. }
  2494. function labPageChange(e) {
  2495. labCurrentPage.value = e;
  2496. getLabList();
  2497. }
  2498. let labModalType = ref("");
  2499. function showLab(item, index, text) {
  2500. isAddLabVisable.value = true;
  2501. currentLabId.value = item.id;
  2502. labModalType.value = text;
  2503. if (item.file) {
  2504. labBillList.value[0] = {
  2505. ...item.file,
  2506. url: item.file.viewUrl,
  2507. };
  2508. }
  2509. labForm.value = { ...item };
  2510. }
  2511. async function deleteLab(id, index) {
  2512. console.log(id);
  2513. ElMessageBox.confirm("确认删除装货记录?", "Warning", {
  2514. confirmButtonText: "删除",
  2515. cancelButtonText: "取消",
  2516. type: "warning",
  2517. })
  2518. .then(async () => {
  2519. let res = await api.deleteLab({
  2520. id,
  2521. });
  2522. if (res.data.status == 0) {
  2523. ElMessage({
  2524. message: "删除成功!",
  2525. type: "success",
  2526. });
  2527. }
  2528. getLabList();
  2529. })
  2530. .catch(() => {
  2531. ElMessage({
  2532. type: "info",
  2533. message: "取消删除",
  2534. });
  2535. });
  2536. }
  2537. let weatherTableData = ref([]);
  2538. let weatherCurrentPage = ref(1);
  2539. let weatherTotal = ref(0);
  2540. async function getPortWeatherList() {
  2541. let res = await api.getPortWeatherList({
  2542. voyageId: route.query.id,
  2543. portId: currentDiscPortId.value,
  2544. currentPage: weatherCurrentPage.value,
  2545. size: 10,
  2546. });
  2547. if (res.data.status == 0) {
  2548. weatherTableData.value = res.data.result;
  2549. weatherTotal.value = res.data.total;
  2550. } else {
  2551. weatherTableData.value = [];
  2552. weatherTotal.value = 0;
  2553. }
  2554. }
  2555. function weatherPageChange(e) {
  2556. weatherCurrentPage.value = e;
  2557. getPortWeatherList();
  2558. }
  2559. let currentPortId = ref("");
  2560. let currentDiscPortId = ref("");
  2561. let currentDiscPortIndex = ref(0);
  2562. function changeDiscPortTab(e) {
  2563. currentDiscPortIndex.value = e.index;
  2564. currentDiscPortId.value =
  2565. voyage.value.voyageDetails[currentDiscPortIndex.value].portId + "";
  2566. weatherTableData.value = [];
  2567. weatherTotal.value = 0;
  2568. labTableData.value = [];
  2569. labTotal.value = 0;
  2570. dischargeList.value = [];
  2571. total.value = 0;
  2572. truckTableData.value = [];
  2573. truckTotal.value = 0;
  2574. labCurrentPage.value = 1;
  2575. dischargeCurrentPage.value = 1;
  2576. weatherCurrentPage.value = 1;
  2577. truckCurrentPage.value = 1;
  2578. getDischargeList();
  2579. getTruckLoadRecord();
  2580. getLabList();
  2581. getPortWeatherList();
  2582. }
  2583. let toInsertDiscPortId = ref("");
  2584. let toInsertDiscPortValue = ref("");
  2585. let getCol = _.debounce(
  2586. async (queryString, cb) => {
  2587. if (!queryString) return;
  2588. let res = await api.getCol({
  2589. term: queryString,
  2590. });
  2591. if (res.data.status == 0) {
  2592. cb(res.data.result);
  2593. }
  2594. },
  2595. 1000,
  2596. { leading: true }
  2597. );
  2598. function clear(type) {
  2599. toInsertDiscPortId.value = "";
  2600. toInsertDiscPortValue.value = "";
  2601. }
  2602. let selectToInsertDiscProt = (item, index) => {
  2603. console.log(item);
  2604. toInsertDiscPortId.value = item.key;
  2605. toInsertDiscPortValue.value = item.value;
  2606. };
  2607. let insertDiscPortVisable = ref(false);
  2608. async function addNewPort() {
  2609. if (!toInsertDiscPortId.value || !toInsertDiscPortValue.value) {
  2610. ElMessage({
  2611. message: "请选择提前卸货港!",
  2612. type: "warning",
  2613. });
  2614. return;
  2615. }
  2616. let res = await api.addNewPort({
  2617. voyageId: route.query.id,
  2618. portId: toInsertDiscPortId.value,
  2619. });
  2620. if (res.data.status == 0) {
  2621. ElMessage({
  2622. message: "添加提前卸货港成功!",
  2623. type: "success",
  2624. });
  2625. getVoyageDetail(true);
  2626. cancelInsertDiscPort();
  2627. } else {
  2628. ElMessage({
  2629. message: res.data.msg,
  2630. type: "error",
  2631. });
  2632. }
  2633. }
  2634. function cancelInsertDiscPort() {
  2635. insertDiscPortVisable.value = false;
  2636. toInsertDiscPortId.value = "";
  2637. toInsertDiscPortValue.value = "";
  2638. }
  2639. onMounted(() => {
  2640. getVoyageDetail(true);
  2641. });
  2642. </script>
  2643. <style scoped>
  2644. .map-container {
  2645. width: 100%;
  2646. height: 500px;
  2647. }
  2648. .card-note {
  2649. height: 30px;
  2650. font-size: 12px;
  2651. font-family: PingFangSC-Regular, PingFang SC;
  2652. font-weight: 400;
  2653. color: #777777;
  2654. }
  2655. .medias-box {
  2656. width: 200px;
  2657. height: 200px;
  2658. margin-top: 20px;
  2659. }
  2660. .medias-content {
  2661. width: 100%;
  2662. height: 600px;
  2663. background: #f7f7f7;
  2664. border-radius: 2px;
  2665. }
  2666. .pic-container {
  2667. width: 100%;
  2668. height: 100%;
  2669. box-sizing: border-box;
  2670. display: flex;
  2671. padding: 30px;
  2672. overflow-x: scroll;
  2673. overflow-y: hidden;
  2674. white-space: nowrap;
  2675. }
  2676. .pic-main {
  2677. position: relative;
  2678. width: 120px;
  2679. }
  2680. .box {
  2681. position: absolute;
  2682. height: 255px;
  2683. width: 180px;
  2684. border: 5px solid #dddddd;
  2685. transition: all 0.5s;
  2686. background: #fff;
  2687. z-index: 10;
  2688. }
  2689. .point {
  2690. position: relative;
  2691. left: 93px;
  2692. top: 277px;
  2693. width: 16px;
  2694. height: 16px;
  2695. background-image: url(../../assets/blue-circle.png);
  2696. }
  2697. .s-line {
  2698. position: absolute;
  2699. left: 100px;
  2700. top: 261px;
  2701. height: 20px;
  2702. border-left: 2px dashed;
  2703. box-sizing: border-box;
  2704. border-color: #ddd;
  2705. }
  2706. .l-line {
  2707. position: relative;
  2708. bottom: 30px;
  2709. left: 111px;
  2710. top: 268px;
  2711. height: 3px;
  2712. width: 100px;
  2713. background-color: #dddddd;
  2714. }
  2715. .bottom-box {
  2716. top: 309px;
  2717. }
  2718. .top210px {
  2719. top: 289px;
  2720. }
  2721. .box:hover {
  2722. transform: scale(1.15);
  2723. }
  2724. .medias-box {
  2725. width: 80px;
  2726. height: 80px;
  2727. margin-top: 10px;
  2728. }
  2729. .card-note {
  2730. height: 30px;
  2731. font-size: 12px;
  2732. font-family: PingFangSC-Regular, PingFang SC;
  2733. font-weight: 400;
  2734. color: #777777;
  2735. padding: 10px 20px;
  2736. }
  2737. .medias-box {
  2738. width: 100%;
  2739. height: 100px;
  2740. margin-top: 20px;
  2741. }
  2742. .checkbox-group {
  2743. width: 180px;
  2744. }
  2745. .el-checkbox {
  2746. height: 20px;
  2747. margin-top: 15px;
  2748. margin-right: 0;
  2749. }
  2750. .now-box {
  2751. border: 5px solid #0094fe;
  2752. }
  2753. .now-l-line {
  2754. background-color: #0094fe;
  2755. }
  2756. .now-s-line {
  2757. border-color: #97caf6;
  2758. }
  2759. .now-point {
  2760. filter: grayscale(1);
  2761. }
  2762. .info-line-text-table {
  2763. width: 180px !important;
  2764. }
  2765. .upload-plus-icon {
  2766. height: 15%;
  2767. color: rgb(139, 147, 156);
  2768. line-height: 100px;
  2769. font-size: 40px;
  2770. font-weight: 200;
  2771. }
  2772. .upload-text {
  2773. height: 25%;
  2774. color: rgb(139, 147, 156);
  2775. }
  2776. .el-checkbox {
  2777. margin-top: 0;
  2778. }
  2779. :deep().el-upload-dragger {
  2780. width: 100%;
  2781. height: 148px !important;
  2782. }
  2783. .info-gap {
  2784. width: 40px;
  2785. font-size: 14px;
  2786. overflow: visible;
  2787. white-space: nowrap;
  2788. color: #006ebc;
  2789. cursor: pointer;
  2790. }
  2791. .unit {
  2792. font-size: 14px;
  2793. font-family: PingFangSC-Regular, PingFang SC;
  2794. font-weight: 400;
  2795. color: #353a42;
  2796. line-height: 100%;
  2797. margin: 0 10px;
  2798. }
  2799. .line {
  2800. flex-wrap: wrap;
  2801. margin: 0 20px;
  2802. }
  2803. .info-line {
  2804. margin-bottom: 20px;
  2805. }
  2806. .ml50 {
  2807. margin-left: 140px;
  2808. }
  2809. </style>