voyageDetail.vue 76 KB

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