index.vue 73 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329
  1. <template>
  2. <div class="app-container home">
  3. <div v-if="sysType == 1">
  4. <div style="display: flex; margin-bottom: 40px">
  5. <div style="width: 70%">
  6. <ul class="block" v-if="sysType == 1 || sysType == 3">
  7. <li @click="jump('/business/inStock')">
  8. <div>
  9. <i
  10. class="el-icon-download"
  11. style="font-size: 25px; text-align: center"
  12. ></i>
  13. </div>
  14. <p>常规入库</p>
  15. </li>
  16. <li @click="jump('/business/outStock')">
  17. <div>
  18. <i
  19. class="el-icon-upload2"
  20. style="font-size: 25px; text-align: center"
  21. ></i>
  22. </div>
  23. <p>常规出库</p>
  24. </li>
  25. <!-- <li @click="jump('/basicdata/corps')">-->
  26. <!-- <div>-->
  27. <!-- <i-->
  28. <!-- class="el-icon-s-custom"-->
  29. <!-- style="font-size: 50px; text-align: center"-->
  30. <!-- ></i>-->
  31. <!-- <p>新增用户</p>-->
  32. <!-- </div>-->
  33. <!-- </li>-->
  34. <!-- <li @click="jump('/basicdata/goods')">-->
  35. <!-- <div>-->
  36. <!-- <i-->
  37. <!-- class="el-icon-s-cooperation"-->
  38. <!-- style="font-size: 50px; text-align: center"-->
  39. <!-- ></i>-->
  40. <!-- <p>新增商品</p>-->
  41. <!-- </div>-->
  42. <!-- </li>-->
  43. <li @click="jump('/business/goodsTransfer')">
  44. <div>
  45. <i
  46. class="el-icon-takeaway-box"
  47. style="font-size: 25px; text-align: center"
  48. ></i>
  49. </div>
  50. <p>货权转移</p>
  51. </li>
  52. <li @click="jump('/business/stockTransfer')">
  53. <div>
  54. <i
  55. class="el-icon-connection"
  56. style="font-size: 25px; text-align: center"
  57. ></i>
  58. </div>
  59. <p>库间调拨</p>
  60. </li>
  61. <li @click="smartScreen()" v-if="showDataCenter == 0">
  62. <div>
  63. <i
  64. class="el-icon-s-order"
  65. style="font-size: 25px; text-align: center"
  66. ></i>
  67. </div>
  68. <p>数据中心</p>
  69. </li>
  70. <li @click="jump('/finance/charge')">
  71. <div>
  72. <i
  73. class="el-icon-wallet"
  74. style="font-size: 25px; text-align: center"
  75. ></i>
  76. </div>
  77. <p>收款</p>
  78. </li>
  79. <li @click="jump('/finance/payment')">
  80. <div>
  81. <i
  82. class="el-icon-money"
  83. style="font-size: 25px; text-align: center"
  84. ></i>
  85. </div>
  86. <p>付款</p>
  87. </li>
  88. <li @click="jump('/finance/contrast')">
  89. <div>
  90. <i
  91. class="el-icon-s-management"
  92. style="font-size: 25px; text-align: center"
  93. ></i>
  94. </div>
  95. <p>对账</p>
  96. </li>
  97. <!-- <li @click="jump('/business/goodsTransfer')">-->
  98. <!-- <div>-->
  99. <!-- <i-->
  100. <!-- class="el-icon-takeaway-box"-->
  101. <!-- style="font-size: 50px; text-align: center"-->
  102. <!-- ></i>-->
  103. <!-- <p>货转</p>-->
  104. <!-- </div>-->
  105. <!-- </li>-->
  106. <!-- <li @click="jump('/agreement/agreementStorage')">-->
  107. <!-- <div>-->
  108. <!-- <i-->
  109. <!-- class="el-icon-s-order"-->
  110. <!-- style="font-size: 50px; text-align: center"-->
  111. <!-- ></i>-->
  112. <!-- <p>协议</p>-->
  113. <!-- </div>-->
  114. <!-- </li>-->
  115. <li @click="openDialog('inStock')">
  116. <div>
  117. <i
  118. class="el-icon-s-unfold"
  119. style="font-size: 25px; text-align: center"
  120. ></i>
  121. </div>
  122. <p>快速入库</p>
  123. </li>
  124. <li @click="openDialog('outStock')">
  125. <div>
  126. <i
  127. class="el-icon-s-fold"
  128. style="font-size: 25px; text-align: center"
  129. ></i>
  130. </div>
  131. <p>快速出库</p>
  132. </li>
  133. </ul>
  134. <el-table
  135. ref="remind"
  136. :header-cell-style="{ borderBottom: '1px dashed #dfe6ec' }"
  137. :cell-style="cellStyle"
  138. :data="remindList"
  139. height="280"
  140. >
  141. <el-table-column
  142. :show-overflow-tooltip="true"
  143. label="协议到期 客户"
  144. prop="fCorpid"
  145. >
  146. </el-table-column>
  147. <el-table-column
  148. :show-overflow-tooltip="true"
  149. label="开始日期"
  150. prop="fBegindate"
  151. >
  152. </el-table-column>
  153. <el-table-column
  154. :show-overflow-tooltip="true"
  155. label="结束日期"
  156. prop="fEnddate"
  157. >
  158. </el-table-column>
  159. <el-table-column
  160. :show-overflow-tooltip="true"
  161. label="类型"
  162. prop="fFeetypeid"
  163. >
  164. <template slot-scope="scope">
  165. {{ scope.row.fFeetypeid == 0 ? "仓储费协议" : "作业费协议" }}
  166. </template>
  167. </el-table-column>
  168. </el-table>
  169. </div>
  170. <div style="width: 30%">
  171. <div style="width: 100%">
  172. <div style="display: flex">
  173. <div id="box" style="width: 100%; height: 350px"></div>
  174. <el-select
  175. v-model="select"
  176. slot="prepend"
  177. size="mini"
  178. :select="query()"
  179. placeholder="点击切换仓库"
  180. style="position: absolute; width: 8%; right: 1%"
  181. >
  182. <div v-for="(item, index) in warehouse" :key="index">
  183. <el-option
  184. :label="item.fName"
  185. :value="item.fWarehouseid"
  186. ></el-option>
  187. </div>
  188. </el-select>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. <div style="display: flex; margin-bottom: 40px">
  194. <div style="width: 70%">
  195. <div>
  196. <div
  197. style="
  198. display: flex;
  199. color: #515a6e;
  200. font-weight: 600;
  201. background-color: #f8f8f9;
  202. height: 42.6px;
  203. font-size: 13px;
  204. justify-content: space-between;
  205. border-bottom: 1px dashed #dfe6ec;
  206. "
  207. >
  208. <div class="home_stock_table">客户</div>
  209. <div class="home_stock_table">日期</div>
  210. <div class="home_stock_table">提单号</div>
  211. <div class="home_stock_table">业务类型</div>
  212. <div class="home_stock_table_right">
  213. <div>操作</div>
  214. <el-link type="primary" @click="jump('/morePage/stock')"
  215. >更多></el-link
  216. >
  217. </div>
  218. </div>
  219. <div v-if="tableData.length > 0">
  220. <div
  221. style="
  222. display: flex;
  223. height: 42.6px;
  224. border-bottom: 1px dashed #dfe6ec;
  225. "
  226. v-for="(item, index) in tableData"
  227. :key="index"
  228. v-if="index < 5"
  229. >
  230. <div class="home_stock_table">
  231. <p>{{ item.refno1 }}</p>
  232. </div>
  233. <div class="home_stock_table">
  234. {{
  235. item.sendTime ? item.sendTime.slice(0, 10) : item.sendTime
  236. }}
  237. </div>
  238. <div class="home_stock_table" @click="approval(item)">
  239. <p style="text-align: center">{{ item.refno3 }}</p>
  240. </div>
  241. <div class="home_stock_table">
  242. <span v-if="item.refno2 === 'SJRK'">入库</span>
  243. <span v-else-if="item.actId === 1000">费用修改</span>
  244. <span v-else-if="item.refno2 === 'CDZZ'">场地直装</span>
  245. <span v-else-if="item.refno2 === 'SJCK'">出库</span>
  246. <span v-else-if="item.refno2 === 'HQZY'">货转</span>
  247. <span v-else-if="item.refno2 === 'CKDB'">调拨</span>
  248. <span v-else-if="item.refno2 === 'CCF'">仓储费</span>
  249. <span v-else-if="item.refno2 === 'HWTG'">货物通关</span>
  250. <span v-else-if="item.refno2 === 'ZYF'">作业费</span>
  251. <span v-else-if="item.refno2 === 'SF'">收费</span>
  252. <span v-else-if="item.refno2 === 'DZ'">对账</span>
  253. <span v-else-if="item.refno2 === 'FF'">付费</span>
  254. <span v-else-if="item.refno2 === 'JSCCF'">计算仓储费</span>
  255. <span v-else-if="item.refno2 === 'KHDZ'">凯和对账</span>
  256. <span v-else-if="item.refno2 === 'KHSF'">凯和收费</span>
  257. <span v-else-if="item.refno2 === 'KHFF'">凯和付费</span>
  258. <span v-else-if="item.refno2 === 'ApplyFP'"
  259. >凯和开票申请</span
  260. >
  261. <span v-else-if="item.refno2 === 'KHDD'">凯和订单</span>
  262. <span v-else-if="item.refno2 === 'SE'">下单配船</span>
  263. <span v-else-if="item.refno2 === 'SJRKITEM'"
  264. >入库明细审批</span
  265. >
  266. <span v-else-if="item.refno2 === 'SJCKITEM'"
  267. >出库明细审批</span
  268. >
  269. <span v-else-if="item.refno2 === 'XGDD'">申请变更</span>
  270. <span v-else-if="item.refno2 === 'XGTJ'">提交变更</span>
  271. <span v-else-if="item.refno2 === 'DDSC'">申请删单</span>
  272. </div>
  273. <div class="home_stock_table" @click="approval(item)">
  274. 查看详情
  275. </div>
  276. </div>
  277. </div>
  278. <div
  279. v-else
  280. style="
  281. display: flex;
  282. justify-content: center;
  283. height: 213px;
  284. border-bottom: 1px solid #dfe6ec;
  285. "
  286. >
  287. <div style="align-self: center; color: #909399; font-size: 14px">
  288. 暂无数据
  289. </div>
  290. </div>
  291. </div>
  292. <!-- <el-table
  293. :data="tableData"
  294. :header-cell-style="{ borderBottom: '1px dashed #dfe6ec' }"
  295. :cell-style="cellStyle"
  296. >
  297. <el-table-column
  298. prop="refno1"
  299. :show-overflow-tooltip="true"
  300. label="委托方"
  301. ></el-table-column>
  302. <el-table-column
  303. prop="auditItem"
  304. :show-overflow-tooltip="true"
  305. label="日期"
  306. >
  307. <template slot-scope="scope">
  308. <span v-if="!scope.row.auditItem">无时间</span>
  309. <span v-else>{{ scope.row.auditItem.slice(0, 10) }}</span>
  310. </template>
  311. </el-table-column>
  312. <el-table-column
  313. prop="refno3"
  314. :show-overflow-tooltip="true"
  315. label="提单号"
  316. ></el-table-column>
  317. <el-table-column
  318. prop="refno2"
  319. :show-overflow-tooltip="true"
  320. label="业务类型"
  321. >
  322. <template slot-scope="scope">
  323. <span v-if="scope.row.refno2 === 'SJRK'">入库</span>
  324. <span v-else-if="scope.row.refno2 === 'SJCK'">出库</span>
  325. <span v-else-if="scope.row.refno2 === 'HQZY'">货转</span>
  326. <span v-else-if="scope.row.refno2 === 'CKDB'">调拨</span>
  327. <span v-else-if="scope.row.refno2 === 'CCF'">仓储费</span>
  328. <span v-else-if="scope.row.refno2 === 'HWTG'">货物通关</span>
  329. <span v-else-if="scope.row.refno2 === 'ZYF'">作业费</span>
  330. <span v-else-if="scope.row.refno2 === 'SF'">收费</span>
  331. <span v-else-if="scope.row.refno2 === 'DZ'">对账</span>
  332. <span v-else-if="scope.row.refno2 === 'FF'">付费</span>
  333. <span v-else-if="scope.row.refno2 === 'JSCCF'">计算仓储费</span>
  334. </template>
  335. </el-table-column>
  336. <el-table-column prop="address" label="操作" width="80">
  337. <template slot-scope="scope">
  338. <span style="cursor: pointer" @click="approval(scope.row)"
  339. >查看详情</span
  340. >
  341. </template>
  342. </el-table-column>
  343. </el-table> -->
  344. </div>
  345. <div style="width: 30%">
  346. <el-table
  347. :data="tableDataTwo"
  348. :header-cell-style="{ borderBottom: '1px dashed #dfe6ec' }"
  349. :cell-style="cellStyle"
  350. style="margin-left: 20px"
  351. >
  352. <el-table-column
  353. prop="noticeTitle"
  354. :show-overflow-tooltip="true"
  355. label="消息中心"
  356. />
  357. <el-table-column prop="address" label="操作" width="80">
  358. <template slot-scope="scope">
  359. <span
  360. @click="querytoDo(scope.row.noticeContent)"
  361. style="cursor: pointer"
  362. >查看详情</span
  363. >
  364. </template>
  365. </el-table-column>
  366. </el-table>
  367. </div>
  368. </div>
  369. <div style="display: flex">
  370. <div style="width: 70%">
  371. <div
  372. id="commoDity"
  373. style="width: 100%; height: 350px; margin-left: 40px"
  374. ></div>
  375. </div>
  376. <div style="width: 30%">
  377. <div id="cargoOwner" style="width: 100%; height: 350px"></div>
  378. </div>
  379. </div>
  380. </div>
  381. <el-dialog
  382. v-if="sysType == 1 || sysType == 3"
  383. title="消息提示"
  384. :visible.sync="dialogVisible"
  385. width="80%"
  386. :before-close="handleClose"
  387. :close-on-click-modal="false"
  388. >
  389. <span
  390. v-html="text"
  391. class="text"
  392. style="max-width: 100%; height: auto"
  393. ></span>
  394. <span slot="footer" class="dialog-footer">
  395. <el-button type="primary" @click="dialogVisible = false"
  396. >关 闭</el-button
  397. >
  398. </span>
  399. </el-dialog>
  400. <div class="home-fleet" v-if="sysType == 2">
  401. <div class="home-left">
  402. <chi-card title="业务看板" iconName="el-icon-s-cooperation">
  403. <div slot="content">
  404. <div class="content-top">
  405. <div class="content-top-left">
  406. <div
  407. style="display: flex; align-self: center; margin-left: 5px"
  408. >
  409. <div style="align-self: center">
  410. <svg
  411. t="1616396514864"
  412. class="icon"
  413. viewBox="0 0 1024 1024"
  414. version="1.1"
  415. xmlns="http://www.w3.org/2000/svg"
  416. p-id="9805"
  417. width="20"
  418. height="20"
  419. >
  420. <path
  421. d="M314.324 292.999c24.207 0.095 44.072-19.16 44.72-43.36L359.044 52.6c-0.647-24.2-20.512-43.455-44.72-43.36-23.945 0-43.36 19.415-43.36 43.36l0 197.04C271.012 273.567 290.397 292.952 314.324 292.999L314.324 292.999zM707.923 292.999c24.21 0.095 44.07-19.16 44.72-43.36L752.643 52.6c-0.65-24.2-20.51-43.455-44.72-43.36-23.945 0-43.36 19.415-43.36 43.36l0 197.04C664.563 273.584 683.978 292.999 707.923 292.999L707.923 292.999zM402.084 118.36l219.279 0 0 65.6L402.084 183.96 402.084 118.36 402.084 118.36zM878.003 118.36l-81.52 0 0 65.2 84.64 0c25.2 0.345 45.535 20.72 45.84 45.92l0 152L96.085 381.48 96.085 229.56c0.48-25.232 21-45.472 46.24-45.6l85.2 0 0-65.6-81.36 0c-63.345 0.265-114.592 51.615-114.72 114.96l0 666.558c-0.752 62.69 49.455 114.12 112.152 114.87 0.16 0 0.328 0 0.488 0.01l733.758 0c63.31-0.265 114.545-51.57 114.72-114.88L992.563 233.32C992.432 170.04 941.282 118.712 878.003 118.36L878.003 118.36zM497.929 810.758c-74.175 0.185-134.465-59.815-134.645-133.995-0.177-74.175 59.815-134.465 133.995-134.645 74.175-0.18 134.46 59.815 134.645 133.995 0 0.11 0 0.215 0 0.325C632.023 750.533 572.023 810.658 497.929 810.758L497.929 810.758 497.929 810.758z"
  422. p-id="9806"
  423. fill="#000000"
  424. ></path>
  425. </svg>
  426. </div>
  427. <div
  428. style="
  429. align-self: center;
  430. font-size: 16px;
  431. margin: 2px 0 0 5px;
  432. "
  433. >
  434. 今日新增柜数
  435. </div>
  436. </div>
  437. <div
  438. style="
  439. font-size: 36px;
  440. align-self: center;
  441. font-weight: 600;
  442. color: #014da1;
  443. "
  444. >
  445. {{ upperLeftCntrs.planQuantity }}
  446. </div>
  447. </div>
  448. <div class="content-top-right">
  449. <div
  450. style="
  451. display: flex;
  452. align-self: center;
  453. min-width: 120px;
  454. margin-left: 5px;
  455. "
  456. >
  457. <div style="align-self: center">
  458. <svg
  459. t="1616400289333"
  460. class="icon"
  461. viewBox="0 0 1024 1024"
  462. version="1.1"
  463. xmlns="http://www.w3.org/2000/svg"
  464. p-id="22417"
  465. width="20"
  466. height="20"
  467. >
  468. <path
  469. d="M864.425973 1023.936004 228.305731 1023.936004c-114.296856 0-130.871821-105.529404-133.111681-128.439973l-0.383976-0.575964 0.31998 0c-0.255984-2.367852-0.31998-4.031748-0.31998-4.031748l0-12.351228c-60.604212-36.093744-64.059996-115.320792-64.059996-115.320792L30.750078 126.328104C30.814074 3.967752 158.934067 0 158.934067 0l643.415787 0c64.63596 0 96.441972 38.269608 112.120992 72.63546 71.931504 28.47822 78.779076 117.496656 78.779076 117.496656l0 700.756203C993.249922 890.952315 974.56309 1023.936004 864.425973 1023.936004L864.425973 1023.936004 864.425973 1023.936004zM479.298044 256.687957l0 191.476033L222.994063 448.16399 222.994063 511.968002l256.303981 0 0 191.476033 256.303981-223.410037L479.298044 256.687957 479.298044 256.687957 479.298044 256.687957zM927.782014 129.015937l-64.059996 0 0 748.433223 0 17.470908-46.07712 0L158.934067 894.920067 158.934067 895.944003l0 62.844072 704.787951 0 64.059996 0L927.782014 129.015937 927.782014 129.015937zM927.782014 129.015937"
  470. p-id="22418"
  471. ></path>
  472. </svg>
  473. </div>
  474. <div
  475. style="
  476. align-self: center;
  477. font-size: 16px;
  478. margin: 2px 0 0 5px;
  479. "
  480. >
  481. 未安排柜数
  482. </div>
  483. </div>
  484. <div
  485. style="
  486. font-size: 36px;
  487. align-self: center;
  488. font-weight: 600;
  489. color: #014da1;
  490. "
  491. >
  492. {{ upperLeftCntrs.surplusQuantity }}
  493. </div>
  494. </div>
  495. </div>
  496. <div class="content-bottom">
  497. <div style="display: flex; align-self: center; margin-left: 5px">
  498. <div style="align-self: center">
  499. <svg
  500. t="1616402886142"
  501. class="icon"
  502. viewBox="0 0 1024 1024"
  503. version="1.1"
  504. xmlns="http://www.w3.org/2000/svg"
  505. p-id="31596"
  506. width="24"
  507. height="24"
  508. >
  509. <path
  510. d="M55.3 594.7V851c0 11 9 20 20 20h3.1c10 0 18.3-7.4 19.8-17.2 8.3-55.3 56.1-97.8 113.7-97.8s105.4 42.4 113.7 97.8c1.5 9.9 9.8 17.2 19.8 17.2H386c11 0 20-9 20-20V407c0-11-9-20-20-20H280c-33.1 0-64.8 13.7-87.5 37.9L71.6 553.7c-10.5 11.1-16.3 25.8-16.3 41zM336 478v144c0 11-9 20-20 20H145.3c-11 0-20-9-20-20v-13.6c0-10.5 4.2-20.7 11.6-28.1l85.9-86.7c22.5-22.8 53.2-35.6 85.3-35.6h7.9c11 0 20 8.9 20 20zM467.3 257v574c0 22.1 17.9 40 40 40h175.1c10 0 18.3-7.4 19.8-17.2 8.3-55.3 56.1-97.8 113.7-97.8 63.5 0 115 51.5 115 115 20.4 0 37-16.6 37-37V257c0-22.1-17.9-40-40-40H507.3c-22.1 0-40 17.9-40 40z"
  511. p-id="31597"
  512. ></path>
  513. <path
  514. d="M213.5 797c-45.4-0.8-82.3 36.1-81.5 81.5 0.8 42.8 35.7 77.7 78.5 78.5 45.4 0.8 82.3-36.1 81.5-81.5-0.8-42.8-35.7-77.7-78.5-78.5zM817.5 797c-45.4-0.8-82.3 36.1-81.5 81.5 0.8 42.8 35.7 77.7 78.5 78.5 45.4 0.8 82.3-36.1 81.5-81.5-0.8-42.8-35.7-77.7-78.5-78.5z"
  515. p-id="31598"
  516. ></path>
  517. </svg>
  518. </div>
  519. <div
  520. style="
  521. align-self: center;
  522. font-size: 16px;
  523. margin: 2px 0 0 5px;
  524. width: 110px;
  525. "
  526. >
  527. 今日派车数
  528. </div>
  529. </div>
  530. <div
  531. style="
  532. font-size: 36px;
  533. align-self: center;
  534. font-weight: 600;
  535. color: #014da1;
  536. "
  537. >
  538. {{ fleetData.upperLeftCarQuantity }}
  539. </div>
  540. <div style="align-self: center; color: #409eff">派车详情></div>
  541. </div>
  542. <div class="content-bottom">
  543. <div
  544. style="
  545. display: flex;
  546. align-self: center;
  547. min-width: 120px;
  548. margin-left: 5px;
  549. "
  550. >
  551. <div style="align-self: center">
  552. <svg
  553. t="1616402771353"
  554. class="icon"
  555. viewBox="0 0 1048 1024"
  556. version="1.1"
  557. xmlns="http://www.w3.org/2000/svg"
  558. p-id="29149"
  559. width="20"
  560. height="20"
  561. >
  562. <path
  563. d="M880.931574 1.385265c-82.95439-11.745754-55.058223 55.058223-55.058224 55.058223l60.931101 83.6885c88.093157 106.445898-33.034934 81.486171-33.034934 81.48617-77.081513 36.705482 0 82.95439 0 82.95439h110.116447v496.99223c-49.185346 69.740416-82.95439 0-82.95439 0V470.481328a106.445898 106.445898 0 0 0-82.95439-110.116447H715.022794a34.503153 34.503153 0 0 1-27.896167-27.896166V84.339655c0-41.11014-18.352741-51.387675-54.324113-53.590004S198.209604 30.749651 135.810284 30.749651a55.058223 55.058223 0 0 0-54.324113 55.058223v828.075679c-163.706451 56.526443-27.896166 110.116447-27.896167 110.116447h690.063066c107.914118-73.410964-55.058223-110.116447-55.058223-110.116447v-440.465787l4.404658-4.404657a73.410964 73.410964 0 0 1 105.711788 4.404657v357.511397a122.596311 122.596311 0 0 0 55.058224 82.95439h110.116447a198.209604 198.209604 0 0 0 82.954389-82.95439v-660.69868zM610.045115 345.682688a34.503153 34.503153 0 0 1-34.503154 34.503154H191.602617a34.503153 34.503153 0 0 1-34.503153-34.503154V148.207194a34.503153 34.503153 0 0 1 34.503153-34.503153h383.939344a34.503153 34.503153 0 0 1 34.503154 34.503153z"
  564. p-id="29150"
  565. ></path>
  566. </svg>
  567. </div>
  568. <div
  569. style="
  570. align-self: center;
  571. font-size: 16px;
  572. margin: 2px 0 0 5px;
  573. width: 110px;
  574. "
  575. >
  576. 可用车辆数
  577. </div>
  578. </div>
  579. <div
  580. style="
  581. font-size: 36px;
  582. align-self: center;
  583. font-weight: 600;
  584. color: #014da1;
  585. "
  586. >
  587. {{ fleetData.upperLeftOldCarQuantity }}
  588. </div>
  589. <div style="align-self: center; color: #409eff">派车详情></div>
  590. </div>
  591. </div>
  592. </chi-card>
  593. <chi-card
  594. title="新闻公告"
  595. iconName="el-icon-s-cooperation"
  596. :More="true"
  597. @seeMore="jumpMoreNews"
  598. >
  599. <div slot="content" style="height: 260px" class="jingrun-news">
  600. <div
  601. style="padding: 4px 15px; font-size: 14px"
  602. v-for="(item, index) in tableDataTwo"
  603. :key="index"
  604. :style="{
  605. backgroundColor: index % 2 == 0 ? '#fafbfd' : '#FFFFFF',
  606. }"
  607. @click="openNewsDetails(item.noticeId)"
  608. >
  609. <span style="cursor: pointer">{{ item.noticeTitle }}</span>
  610. </div>
  611. </div>
  612. </chi-card>
  613. </div>
  614. <el-dialog
  615. title="新闻公告"
  616. :visible.sync="newsVisible"
  617. width="700px"
  618. v-dialogDrag
  619. :close-on-click-modal="false"
  620. >
  621. <h3>{{ newsDetails.noticeTitle }}</h3>
  622. <p class="html-box" v-html="newsDetails.noticeContent"></p>
  623. <span slot="footer">
  624. <el-button @click="newsVisible = false">关闭</el-button>
  625. </span>
  626. </el-dialog>
  627. <div class="home-right">
  628. <chi-card title="运行车辆" iconName="el-icon-s-order" :More="true">
  629. <div slot="content" class="upper-right">
  630. <div
  631. style="display: flex; padding: 4px 15px; font-size: 14px"
  632. v-for="(item, index) in upperRights"
  633. :key="index"
  634. :style="{
  635. backgroundColor: index % 2 == 0 ? '#fafbfd' : '#FFFFFF',
  636. }"
  637. >
  638. <div style="width: 30%" @click="goPage(item.id)">
  639. <el-link type="primary" :underline="false">{{
  640. item.mblno
  641. }}</el-link>
  642. </div>
  643. <div style="width: 20%">{{ item.carregNo }}</div>
  644. <div style="width: 15%; color: #67c23a">
  645. {{ item.orderStatus | statusType }}
  646. </div>
  647. <div
  648. style="
  649. width: 35%;
  650. overflow: hidden;
  651. text-overflow: ellipsis;
  652. white-space: nowrap;
  653. "
  654. >
  655. {{ item.corpName }}
  656. </div>
  657. </div>
  658. </div>
  659. </chi-card>
  660. <chi-card title="业务待办" iconName="el-icon-s-order" :More="true">
  661. <div slot="content" class="upper-right2">
  662. <div
  663. style="
  664. font-size: 14px;
  665. display: flex;
  666. margin: 4px 15px;
  667. border-bottom: 1px dashed #e6ebf5;
  668. "
  669. >
  670. <div style="width: 30%" class="single_line">FK221516485645</div>
  671. <div style="width: 20%" class="single_line">运费运费运费</div>
  672. <div style="width: 15%" class="single_line">李刚</div>
  673. <div style="width: 15%; color: #67c23a" class="single_line">
  674. 待审批
  675. </div>
  676. <div style="width: 20%" class="single_line">2020/10/10</div>
  677. </div>
  678. <div style="font-size: 14px; display: flex; margin: 4px 15px">
  679. <div style="width: 30%" class="single_line">FK221516485645</div>
  680. <div style="width: 20%" class="single_line">运费运费运费</div>
  681. <div style="width: 15%" class="single_line">李刚</div>
  682. <div style="width: 15%; color: #67c23a" class="single_line">
  683. 待审批
  684. </div>
  685. <div style="width: 20%" class="single_line">2020/10/10</div>
  686. </div>
  687. </div>
  688. </chi-card>
  689. <!-- <chi-card title="审核列表" iconName="el-icon-s-order" :More="true">-->
  690. <!-- <div slot="content" class="upper-right2">-->
  691. <!-- <div-->
  692. <!-- style="-->
  693. <!-- font-size: 14px;-->
  694. <!-- display: flex;-->
  695. <!-- margin: 4px 15px;-->
  696. <!-- border-bottom: 1px dashed #e6ebf5;-->
  697. <!-- "-->
  698. <!-- >-->
  699. <!-- <div style="width: 30%" class="single_line">FK221516485645</div>-->
  700. <!-- <div style="width: 20%" class="single_line">运费运费运费</div>-->
  701. <!-- <div style="width: 15%" class="single_line">李刚</div>-->
  702. <!-- <div style="width: 15%; color: #67c23a">待审批</div>-->
  703. <!-- <div style="width: 20%" class="single_line">2020/10/10</div>-->
  704. <!-- </div>-->
  705. <!-- <div style="font-size: 14px; display: flex; margin: 4px 15px">-->
  706. <!-- <div style="width: 30%" class="single_line">FK221516485645</div>-->
  707. <!-- <div style="width: 20%" class="single_line">运费运费运费</div>-->
  708. <!-- <div style="width: 15%" class="single_line">李刚</div>-->
  709. <!-- <div style="width: 15%; color: #67c23a" class="single_line">-->
  710. <!-- 待审批-->
  711. <!-- </div>-->
  712. <!-- <div style="width: 20%" class="single_line">2020/10/10</div>-->
  713. <!-- </div>-->
  714. <!-- </div>-->
  715. <!-- </chi-card>-->
  716. </div>
  717. </div>
  718. <div v-if="sysType == 3">
  719. <div style="width: 100%">
  720. <div id="distribution" style="width: 100%; height: 300px"></div>
  721. </div>
  722. <div style="width: 100%; margin: 20px auto; float: left">
  723. <el-table :data="bookingData">
  724. <el-table-column prop="fName" align="center" label="船名" />
  725. <el-table-column prop="fNo" align="center" label="航次" />
  726. <el-table-column
  727. prop="portofloadName"
  728. align="center"
  729. label="起运港"
  730. />
  731. <el-table-column
  732. prop="distinationName"
  733. align="center"
  734. label="目的港"
  735. />
  736. <el-table-column prop="fWeight" align="center" label="容量TEU" />
  737. <el-table-column prop="boxNumber" align="center" label="实装TEU" />
  738. <el-table-column prop="fETD" align="center" label="预计开船">
  739. <template slot-scope="scope">
  740. <span>{{
  741. scope.row.fETD ? scope.row.fETD.slice(0, 10) : ""
  742. }}</span>
  743. </template>
  744. </el-table-column>
  745. <el-table-column prop="fETA" align="center" label="预计到港">
  746. <template slot-scope="scope">
  747. <span>{{
  748. scope.row.fETA ? scope.row.fETA.slice(0, 10) : ""
  749. }}</span>
  750. </template>
  751. </el-table-column>
  752. <el-table-column prop="fATD" align="center" label="实际开船">
  753. <template slot-scope="scope">
  754. <span>{{
  755. scope.row.fATD ? scope.row.fATD.slice(0, 10) : ""
  756. }}</span>
  757. </template>
  758. </el-table-column>
  759. <el-table-column prop="fATA" align="center" label="实际到港">
  760. <template slot-scope="scope">
  761. <span>{{
  762. scope.row.fATA ? scope.row.fATA.slice(0, 10) : ""
  763. }}</span>
  764. </template>
  765. </el-table-column>
  766. <el-table-column prop="fDays" align="center" label="航程" />
  767. </el-table>
  768. </div>
  769. <div style="width: 100%">
  770. <div style="width: 49%; float: left">
  771. <div
  772. style="
  773. display: flex;
  774. color: #515a6e;
  775. font-weight: 600;
  776. background-color: #f8f8f9;
  777. height: 42.6px;
  778. font-size: 13px;
  779. justify-content: space-between;
  780. border-bottom: 1px dashed #dfe6ec;
  781. "
  782. >
  783. <div class="home_stock_table">委托方</div>
  784. <div class="home_stock_table">日期</div>
  785. <div class="home_stock_table">提单号</div>
  786. <div class="home_stock_table">业务类型</div>
  787. <div class="home_stock_table">金额</div>
  788. <div class="home_stock_table_right">
  789. <div>操作</div>
  790. <el-link type="primary" @click="jump('/morePage/stock')"
  791. >更多></el-link
  792. >
  793. </div>
  794. </div>
  795. <div v-if="tableData.length > 0">
  796. <div
  797. style="
  798. display: flex;
  799. height: 42.6px;
  800. border-bottom: 1px dashed #dfe6ec;
  801. "
  802. v-for="(item, index) in tableData"
  803. :key="index"
  804. v-if="index < 5"
  805. >
  806. <div class="home_stock_table">
  807. <p>{{ item.refno1 }}</p>
  808. </div>
  809. <div class="home_stock_table">
  810. {{ item.sendTime ? item.sendTime.slice(0, 10) : "" }}
  811. </div>
  812. <div class="home_stock_table" @click="approval(item)">
  813. <p>{{ item.refno3 }}</p>
  814. </div>
  815. <div class="home_stock_table">
  816. <span v-if="item.refno2 === 'SJRK'">入库</span>
  817. <span v-else-if="item.refno2 === 'SJCK'">出库</span>
  818. <span v-else-if="item.refno2 === 'HQZY'">货转</span>
  819. <span v-else-if="item.refno2 === 'CKDB'">调拨</span>
  820. <span v-else-if="item.refno2 === 'CCF'">仓储费</span>
  821. <span v-else-if="item.refno2 === 'HWTG'">货物通关</span>
  822. <span v-else-if="item.refno2 === 'ZYF'">作业费</span>
  823. <span v-else-if="item.refno2 === 'SF'">收费</span>
  824. <span v-else-if="item.refno2 === 'DZ'">对账</span>
  825. <span v-else-if="item.refno2 === 'FF'">付费</span>
  826. <span v-else-if="item.refno2 === 'JSCCF'">计算仓储费</span>
  827. <span v-else-if="item.refno2 === 'KHDZ'">凯和对账</span>
  828. <span v-else-if="item.refno2 === 'KHSF'">凯和收费</span>
  829. <span v-else-if="item.refno2 === 'KHFF'">凯和付费</span>
  830. <span v-else-if="item.refno2 === 'ApplyFP'">凯和开票申请</span>
  831. <span v-else-if="item.refno2 === 'KHDD'">凯和订单</span>
  832. <span v-else-if="item.refno2 === 'SE'">下单配船</span>
  833. <span v-else-if="item.refno2 === 'SJRKITEM'">入库明细审批</span>
  834. <span v-else-if="item.refno2 === 'SJCKITEM'">出库明细审批</span>
  835. <span v-else-if="item.refno2 === 'XGDD'">申请变更</span>
  836. <span v-else-if="item.refno2 === 'XGTJ'">提交变更</span>
  837. <span v-else-if="item.refno2 === 'DDSC'">申请删单</span>
  838. <span v-else-if="item.refno2 === 'FYBG'">费用变更</span>
  839. </div>
  840. <div class="home_stock_table">
  841. {{ item.amount }}
  842. </div>
  843. <div class="home_stock_table" @click="approval(item)">
  844. 立即审批
  845. </div>
  846. </div>
  847. </div>
  848. <div
  849. v-else
  850. style="
  851. display: flex;
  852. justify-content: center;
  853. height: 213px;
  854. border-bottom: 1px solid #dfe6ec;
  855. "
  856. >
  857. <div style="align-self: center; color: #909399; font-size: 14px">
  858. 暂无数据
  859. </div>
  860. </div>
  861. </div>
  862. <div style="width: 49%; float: right">
  863. <el-table
  864. :data="tableDataTwo"
  865. :header-cell-style="{ borderBottom: '1px dashed #dfe6ec' }"
  866. :cell-style="cellStyle"
  867. style="margin-left: 20px"
  868. >
  869. <el-table-column
  870. prop="noticeTitle"
  871. :show-overflow-tooltip="true"
  872. label="消息中心"
  873. />
  874. <el-table-column prop="address" label="操作" width="80">
  875. <template slot-scope="scope">
  876. <span
  877. @click="querytoDo(scope.row.noticeContent)"
  878. style="cursor: pointer"
  879. >查看详情</span
  880. >
  881. </template>
  882. </el-table-column>
  883. </el-table>
  884. </div>
  885. </div>
  886. <div style="width: 100%; margin: 10px auto; float: left">
  887. <div id="bookingRanking" style="width: 100%; height: 300px"></div>
  888. </div>
  889. <div style="width: 100%; margin: 10px auto; float: left">
  890. <div id="bookingRankingTwo" style="width: 100%; height: 300px"></div>
  891. </div>
  892. <!-- 船名航次-->
  893. <div style="width: 100%; margin: 10px auto; float: left">
  894. <div id="voyage" style="width: 100%; height: 350px"></div>
  895. </div>
  896. </div>
  897. <div style="width: 100%; float: left" v-if="wealthChart">
  898. <div id="finance" style="width: 100%; height: 600px"></div>
  899. </div>
  900. <div style="width: 100%; float: left" v-if="wealthChart">
  901. <div id="arrears" style="width: 100%; height: 600px"></div>
  902. </div>
  903. <!--快捷入库-->
  904. <fast-in-stock
  905. ref="fastInStock"
  906. v-if="fastInStockVisble"
  907. @closeDialog="closeInStock"
  908. ></fast-in-stock>
  909. <!--快速出库-->
  910. <fast-out-stock
  911. ref="fastOutStock"
  912. v-if="fastOutStockVisble"
  913. @closeDialog="closeOutStock"
  914. ></fast-out-stock>
  915. </div>
  916. </template>
  917. <script>
  918. import { queryHomeInfo } from "@/api/fleet/home";
  919. import chiCard from "./chiCard.vue";
  920. import {
  921. listCorps,
  922. information,
  923. warehouse,
  924. inquiry,
  925. boxDistribution,
  926. shipDynamics,
  927. bookingSpace,
  928. locationRanking,
  929. getProfitData,
  930. remindExpirationData,
  931. getFeeStatistics,
  932. getArrearsStatistics,
  933. } from "../../src/api/index";
  934. import Cookies from "js-cookie";
  935. import fastInStock from "../../src/components/fastStorage/fastInStock/index";
  936. import fastOutStock from "../../src/components/fastStorage/fastOutStock/index";
  937. import { getToken } from "@/utils/auth";
  938. import { currentLogin } from "@/api/warehouseCheck";
  939. import { getUserProfile } from "@/api/system/user";
  940. export default {
  941. name: "index",
  942. data() {
  943. return {
  944. fastInStockVisble: false,
  945. fastOutStockVisble: false,
  946. wealthChart: false,
  947. bookingData: [],
  948. editModel: {},
  949. // 版本号
  950. version: "3.2.1",
  951. select: "",
  952. text: "",
  953. dialogVisible: false,
  954. tableData: [],
  955. dataList: {
  956. addressName: [],
  957. boxNumber: [],
  958. bookingRanking: {
  959. text: [],
  960. textTwo: [],
  961. data: [],
  962. dataTwo: [],
  963. },
  964. },
  965. boxCMCC: [],
  966. // 利润统计数据获得
  967. profitData: {
  968. xData: [],
  969. seriesData: [],
  970. },
  971. chart: [],
  972. warehouse: [],
  973. master: [],
  974. commodity: [],
  975. commoditytwo: [],
  976. name: [],
  977. tableDataTwo: [],
  978. fleetData: "",
  979. upperLeftCntrs: {},
  980. sysType: "",
  981. upperRights: [],
  982. // 新闻公告详情弹窗
  983. newsVisible: false,
  984. // 新闻公告内容
  985. newsDetails: {
  986. noticeTitle: "",
  987. noticeContent: "",
  988. },
  989. remindList: [],
  990. showDataCenter: "0",
  991. };
  992. },
  993. filters: {
  994. statusType(val) {
  995. switch (val) {
  996. case 10:
  997. return "车队安排";
  998. break;
  999. case 20:
  1000. return "司机受理";
  1001. break;
  1002. case 30:
  1003. return "司机出车";
  1004. break;
  1005. case 40:
  1006. return "提箱";
  1007. break;
  1008. case 50:
  1009. return "装卸货";
  1010. break;
  1011. case 60:
  1012. return "还卸柜";
  1013. break;
  1014. case 70:
  1015. return "费用确认";
  1016. break;
  1017. default:
  1018. return "回单";
  1019. }
  1020. },
  1021. },
  1022. components: {
  1023. chiCard,
  1024. fastInStock,
  1025. fastOutStock,
  1026. },
  1027. created() {
  1028. this.getConfigKey("data_print_title").then((response) => {
  1029. Cookies.set("companyName", response.msg);
  1030. });
  1031. this.getConfigKey("show.data_center").then((response) => {
  1032. this.showDataCenter = response.msg;
  1033. });
  1034. this.sysType = Cookies.get("sysType");
  1035. if (this.sysType == 2) {
  1036. queryHomeInfo().then((response) => {
  1037. this.fleetData = response.data;
  1038. if (response.data.upperRight.length > 0) {
  1039. this.upperRights = response.data.upperRight.slice(0, 10);
  1040. }
  1041. this.upperLeftCntrs = response.data.upperLeftCntrs;
  1042. });
  1043. }
  1044. // console.log(this.sysType);
  1045. },
  1046. activated() {
  1047. this.getList();
  1048. this.warehouses();
  1049. this.inquiry();
  1050. if (this.sysType == 1) {
  1051. remindExpirationData().then((res) => {
  1052. this.remindList = res.rows;
  1053. });
  1054. }
  1055. this.dataList.addressName = [];
  1056. this.dataList.boxNumber = [];
  1057. this.dataList.bookingRanking.text = [];
  1058. this.dataList.bookingRanking.textTwo = [];
  1059. this.dataList.bookingRanking.data = [];
  1060. this.dataList.bookingRanking.dataTwo = [];
  1061. if (Number(this.sysType) === 3) {
  1062. let arr = [];
  1063. boxDistribution().then((res) => {
  1064. res.data.forEach((item) => {
  1065. this.dataList.addressName.push(item.addressName);
  1066. this.dataList.boxNumber.push(item.boxNumber);
  1067. if (item.details) {
  1068. this.boxCMCC = item.details;
  1069. }
  1070. });
  1071. this.boxDistribution();
  1072. });
  1073. let l = 0;
  1074. bookingSpace().then((res) => {
  1075. res.data.forEach((item) => {
  1076. this.dataList.bookingRanking.text.push(item.corpName);
  1077. this.dataList.bookingRanking.data.push({
  1078. name: item.corpName,
  1079. type: "line",
  1080. stack: l,
  1081. data: [
  1082. item.January,
  1083. item.February,
  1084. item.March,
  1085. item.April,
  1086. item.May,
  1087. item.June,
  1088. item.July,
  1089. item.August,
  1090. item.September,
  1091. item.October,
  1092. item.November,
  1093. item.December,
  1094. ],
  1095. });
  1096. });
  1097. l++;
  1098. this.ranking();
  1099. });
  1100. locationRanking().then((res) => {
  1101. let i = 0;
  1102. res.data.forEach((item) => {
  1103. this.dataList.bookingRanking.textTwo.push(item.corpName);
  1104. this.dataList.bookingRanking.dataTwo.push({
  1105. name: item.corpName,
  1106. type: "line",
  1107. stack: i,
  1108. data: [
  1109. item.January,
  1110. item.February,
  1111. item.March,
  1112. item.April,
  1113. item.May,
  1114. item.June,
  1115. item.July,
  1116. item.August,
  1117. item.September,
  1118. item.October,
  1119. item.November,
  1120. item.December,
  1121. ],
  1122. });
  1123. i++;
  1124. });
  1125. this.rankingTwo();
  1126. });
  1127. shipDynamics().then((res) => {
  1128. console.log(res);
  1129. this.bookingData = res.data;
  1130. });
  1131. this.profitData.xData = [];
  1132. this.profitData.seriesData = [];
  1133. getProfitData({ pageSize: 24, pageNum: 1 }).then((res) => {
  1134. res.rows.forEach((item) => {
  1135. if (!item.shipsName) {
  1136. item.shipsName = "";
  1137. }
  1138. if (!item.voyage) {
  1139. item.voyage = "";
  1140. }
  1141. let name = item.shipsName + "-" + item.voyage;
  1142. this.profitData.xData.push(name);
  1143. this.profitData.seriesData.push(
  1144. (Number(item.profit) / 10000).toFixed(2)
  1145. );
  1146. // this.profitData.seriesData.push(item.profit)
  1147. });
  1148. this.oceanVessel();
  1149. });
  1150. }
  1151. getUserProfile().then((res) => {
  1152. for (let item in res.data.roles) {
  1153. if (
  1154. res.data.roles[item].roleKey == "wealthStatistics" ||
  1155. res.data.roles[item].roleKey == "admin"
  1156. ) {
  1157. getFeeStatistics().then((res) => {
  1158. this.financeLine(res.data);
  1159. });
  1160. getArrearsStatistics().then((res) => {
  1161. this.customerArrears(res.data);
  1162. });
  1163. this.wealthChart = true;
  1164. }
  1165. }
  1166. });
  1167. },
  1168. methods: {
  1169. // 船名航次
  1170. oceanVessel() {
  1171. let myChart = this.$echarts.init(document.getElementById("voyage"));
  1172. const color = ["#EE6666", "#7DD2F3"];
  1173. myChart.setOption({
  1174. title: {
  1175. text: "利润统计(前二十四)",
  1176. left: "center",
  1177. },
  1178. tooltip: {
  1179. trigger: "axis",
  1180. },
  1181. legend: {
  1182. orient: "vertical",
  1183. left: "right",
  1184. data: [],
  1185. },
  1186. grid: {
  1187. // left: '10%',
  1188. bottom: "30%",
  1189. },
  1190. xAxis: {
  1191. axisLabel: {
  1192. rotate: 40,
  1193. },
  1194. type: "category",
  1195. boundaryGap: false,
  1196. data: this.profitData.xData,
  1197. // data: ['凯和志诚-02W1', '凯和志诚-02W2', '凯和志诚-03W3', '凯和志诚2111', '凯和志诚2110', '凯和志诚2110-4', '凯和志诚2114', '凯和志诚2116', '凯和志诚2118', '凯和志诚2118A', '凯和志诚2119N', '凯和志诚2120', '凯和志诚2122', '凯和志诚2123', '凯和志诚2124', '凯和志诚2125', '凯和志诚2127', '凯和志诚2126', '凯和志诚2128', '凯和志诚ABC', '凯和志诚2129', '凯和志诚K8101', '凯和志诚K8102', '凯和志诚K8102E',]
  1198. },
  1199. yAxis: {
  1200. type: "value",
  1201. name: "万元",
  1202. },
  1203. series: [
  1204. {
  1205. type: "line",
  1206. smooth: false,
  1207. data: this.profitData.seriesData,
  1208. // data:[1000,2112,333,4444,6323,11,234]
  1209. },
  1210. ],
  1211. });
  1212. },
  1213. //箱分布图表
  1214. ranking() {
  1215. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1216. let myChart = this.$echarts.init(
  1217. document.getElementById("bookingRanking")
  1218. );
  1219. // 绘制图表
  1220. myChart.setOption({
  1221. title: {
  1222. text: "订舱排名(前十)",
  1223. left: "center",
  1224. },
  1225. tooltip: {
  1226. trigger: "axis",
  1227. },
  1228. legend: {
  1229. orient: "vertical",
  1230. left: "right",
  1231. data: this.dataList.bookingRanking.text,
  1232. },
  1233. grid: {
  1234. left: "3%",
  1235. right: "20%",
  1236. bottom: "3%",
  1237. containLabel: true,
  1238. },
  1239. xAxis: {
  1240. type: "category",
  1241. boundaryGap: false,
  1242. data: [
  1243. "一月",
  1244. "二月",
  1245. "三月",
  1246. "四月",
  1247. "五月",
  1248. "六月",
  1249. "七月",
  1250. "八月",
  1251. "九月",
  1252. "十月",
  1253. "十一月",
  1254. "十二月",
  1255. ],
  1256. },
  1257. yAxis: {
  1258. type: "value",
  1259. },
  1260. series: this.dataList.bookingRanking.data,
  1261. });
  1262. },
  1263. //箱分布图表
  1264. rankingTwo() {
  1265. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1266. let myChart = this.$echarts.init(
  1267. document.getElementById("bookingRankingTwo")
  1268. );
  1269. // 绘制图表
  1270. myChart.setOption({
  1271. title: {
  1272. text: "应收款排名(前十)",
  1273. left: "center",
  1274. },
  1275. tooltip: {
  1276. trigger: "axis",
  1277. },
  1278. legend: {
  1279. orient: "vertical",
  1280. left: "right",
  1281. data: this.dataList.bookingRanking.textTwo,
  1282. },
  1283. grid: {
  1284. left: "3%",
  1285. right: "20%",
  1286. bottom: "3%",
  1287. containLabel: true,
  1288. },
  1289. xAxis: {
  1290. type: "category",
  1291. boundaryGap: false,
  1292. data: [
  1293. "一月",
  1294. "二月",
  1295. "三月",
  1296. "四月",
  1297. "五月",
  1298. "六月",
  1299. "七月",
  1300. "八月",
  1301. "九月",
  1302. "十月",
  1303. "十一月",
  1304. "十二月",
  1305. ],
  1306. },
  1307. yAxis: {
  1308. type: "value",
  1309. },
  1310. series: this.dataList.bookingRanking.dataTwo,
  1311. });
  1312. },
  1313. //箱分布图表
  1314. boxDistribution() {
  1315. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1316. let myChart = this.$echarts.init(document.getElementById("distribution"));
  1317. // 绘制图表
  1318. let _this = this;
  1319. myChart.setOption({
  1320. title: {
  1321. text: "箱分布",
  1322. left: "center",
  1323. },
  1324. xAxis: {
  1325. type: "category",
  1326. data: this.dataList.addressName,
  1327. },
  1328. tooltip: {
  1329. trigger: "axis",
  1330. formatter(params) {
  1331. let res = "";
  1332. params.forEach((item) => {
  1333. if (item.name == "在船") {
  1334. params.forEach((item) => {
  1335. let data = "";
  1336. if (_this.boxCMCC.length > 0) {
  1337. _this.boxCMCC.forEach((e) => {
  1338. data += e.f_vsl + ":" + e.f_voy + "</br>";
  1339. });
  1340. } else {
  1341. data = "-" + "</br>";
  1342. }
  1343. res =
  1344. item.axisValueLabel +
  1345. "</br>" +
  1346. data +
  1347. item.marker +
  1348. item.data;
  1349. });
  1350. } else {
  1351. params.forEach((item) => {
  1352. res = item.axisValueLabel + "</br>" + item.marker + item.data;
  1353. });
  1354. }
  1355. });
  1356. return res;
  1357. },
  1358. },
  1359. yAxis: {
  1360. type: "value",
  1361. },
  1362. toolbox: {
  1363. feature: {
  1364. saveAsImage: {},
  1365. },
  1366. },
  1367. series: [
  1368. {
  1369. data: this.dataList.boxNumber,
  1370. type: "line",
  1371. },
  1372. ],
  1373. });
  1374. },
  1375. goPage(id) {
  1376. this.$router.push({
  1377. path: "/track/cabinet",
  1378. query: { id: id },
  1379. });
  1380. },
  1381. //跳转审批页面
  1382. approval(row) {
  1383. console.log(row);
  1384. switch (row.refno2) {
  1385. case "CDZZ": {
  1386. this.$router.push({
  1387. path: "/business/inAndOutStock",
  1388. query: { id: row.billId },
  1389. });
  1390. break;
  1391. }
  1392. case "FYBG": {
  1393. if (this.sysType == 1) {
  1394. this.$router.push({
  1395. path: "/business/costModify",
  1396. query: { id: row.billId },
  1397. });
  1398. } else if (this.sysType == 3) {
  1399. this.$router.push({
  1400. path: "/domesticTrade/costModify",
  1401. query: { id: row.billId },
  1402. });
  1403. }
  1404. break;
  1405. }
  1406. case "SJRK": {
  1407. this.$router.push({
  1408. path: "/business/inStock",
  1409. query: { id: row.billId },
  1410. });
  1411. break;
  1412. }
  1413. case "SJCK": {
  1414. this.$router.push({
  1415. path: "/business/outStock",
  1416. query: { id: row.billId },
  1417. });
  1418. break;
  1419. }
  1420. case "HQZY": {
  1421. this.$router.push({
  1422. path: "/business/goodsTransfer",
  1423. query: { id: row.billId },
  1424. });
  1425. break;
  1426. }
  1427. case "CKDB": {
  1428. this.$router.push({
  1429. path: "/business/stockTransfer",
  1430. query: { id: row.billId },
  1431. });
  1432. break;
  1433. }
  1434. case "HWTG": {
  1435. this.$router.push({
  1436. path: "/business/cargoClearance",
  1437. query: { id: row.billId },
  1438. });
  1439. break;
  1440. }
  1441. case "JSCCF": {
  1442. this.$router.push({
  1443. path: "/business/agreement",
  1444. query: { data: JSON.stringify(row) },
  1445. });
  1446. break;
  1447. }
  1448. case "CCF": {
  1449. this.$router.push({
  1450. path: "/agreement/agreementStorage",
  1451. query: { data: JSON.stringify(row) },
  1452. });
  1453. break;
  1454. }
  1455. case "ZYF": {
  1456. this.$router.push({
  1457. path: "/agreement/agreementTask",
  1458. query: { data: JSON.stringify(row) },
  1459. });
  1460. break;
  1461. }
  1462. case "SF": {
  1463. this.$router.push({
  1464. path: "/finance/charge",
  1465. query: { data: JSON.stringify(row) },
  1466. });
  1467. break;
  1468. }
  1469. case "DZ": {
  1470. this.$router.push({
  1471. path: "/finance/contrast",
  1472. query: { data: JSON.stringify(row) },
  1473. });
  1474. break;
  1475. }
  1476. case "FF": {
  1477. this.$router.push({
  1478. path: "/finance/payment",
  1479. query: { data: JSON.stringify(row) },
  1480. });
  1481. break;
  1482. }
  1483. case "ApplyFP": {
  1484. this.$router.push({
  1485. path: "/finance/chargeInvoice",
  1486. query: { data: JSON.stringify(row) },
  1487. });
  1488. break;
  1489. }
  1490. case "KHDZ": {
  1491. this.$router.push({
  1492. path: "/finance/contrast",
  1493. query: { data: JSON.stringify(row) },
  1494. });
  1495. break;
  1496. }
  1497. case "KHSF": {
  1498. this.$router.push({
  1499. path: "/finance/charge",
  1500. query: { data: JSON.stringify(row) },
  1501. });
  1502. break;
  1503. }
  1504. case "KHFF": {
  1505. this.$router.push({
  1506. path: "/finance/payment",
  1507. query: { data: JSON.stringify(row) },
  1508. });
  1509. break;
  1510. }
  1511. case "KHDD": {
  1512. this.$router.push({
  1513. path: "/domesticTrade/orderInformation",
  1514. query: { list: JSON.stringify(row) },
  1515. });
  1516. break;
  1517. }
  1518. case "SJRKITEM": {
  1519. this.$router.push({
  1520. path: "/business/inStock",
  1521. query: { id: row.billId },
  1522. });
  1523. break;
  1524. }
  1525. case "SJCKITEM": {
  1526. this.$router.push({
  1527. path: "/business/outStock",
  1528. query: { id: row.billId },
  1529. });
  1530. break;
  1531. }
  1532. case "XGDD": {
  1533. this.$router.push({
  1534. path: "/domesticTrade/orderInformation",
  1535. query: { testing: JSON.stringify(row) },
  1536. });
  1537. break;
  1538. }
  1539. case "XGTJ": {
  1540. this.$router.push({
  1541. path: "/domesticTrade/orderInformation",
  1542. query: { testing: JSON.stringify(row) },
  1543. });
  1544. break;
  1545. }
  1546. case "DDSC": {
  1547. this.$router.push({
  1548. path: "/domesticTrade/orderInformation",
  1549. query: { testing: JSON.stringify(row) },
  1550. });
  1551. break;
  1552. }
  1553. default: {
  1554. return this.$message.error("未知错误,无状态");
  1555. }
  1556. }
  1557. },
  1558. inquiry() {
  1559. let data = {
  1560. actId: "",
  1561. auditStatus: "S",
  1562. };
  1563. inquiry(data).then((res) => {
  1564. res.data.map((e) => {
  1565. if (e.auditItem) {
  1566. e.auditItem = e.auditItem.slice(0, 10);
  1567. }
  1568. });
  1569. this.tableData = res.data;
  1570. });
  1571. },
  1572. querytoDo(res) {
  1573. this.dialogVisible = true;
  1574. this.text = res;
  1575. },
  1576. handleClose(done) {
  1577. this.dialogVisible = false;
  1578. },
  1579. firstinventory(fId) {
  1580. // console.log(this.warehouse);
  1581. information(fId).then((response) => {
  1582. this.chart = response.data;
  1583. if (this.chart.whouseList.length !== 0) {
  1584. for (let index of this.chart.corpsListWhouse) {
  1585. this.master.push({
  1586. name: index.fName,
  1587. value: index.fGrossweightD,
  1588. });
  1589. this.name.push(index.fName);
  1590. }
  1591. for (let index of this.chart.goodslistWhouse) {
  1592. this.commodity.push(index.fName);
  1593. this.commoditytwo.push(index.fGrossweightD);
  1594. }
  1595. this.drawLine();
  1596. this.drawLinetwo();
  1597. this.commoDity();
  1598. } else {
  1599. this.chart = {
  1600. corpsListWhouse: [
  1601. {
  1602. balance: 0,
  1603. fCorpid: 58,
  1604. fGrossweightD: 0,
  1605. fName: "展示数据",
  1606. fTotalgross: 10000,
  1607. fWarehouseName: "展示数据",
  1608. },
  1609. ],
  1610. goodslistWhouse: [
  1611. {
  1612. balance: 0,
  1613. fGoodsid: 13,
  1614. fGrossweightD: 0,
  1615. fName: "展示商品",
  1616. fTotalgross: 10000,
  1617. fWarehouseName: "展示数据",
  1618. },
  1619. ],
  1620. whouseList: [
  1621. {
  1622. fGrossweightD: 0,
  1623. fName: "展示数据",
  1624. fTotalgross: 10000,
  1625. fWarehouseid: 36,
  1626. },
  1627. ],
  1628. };
  1629. for (let index of this.chart.corpsListWhouse) {
  1630. this.master.push({
  1631. name: index.fName,
  1632. value: index.fGrossweightD,
  1633. });
  1634. this.name.push(index.fName);
  1635. }
  1636. for (let index of this.chart.goodslistWhouse) {
  1637. this.commodity.push(index.fName);
  1638. this.commoditytwo.push(index.fGrossweightD);
  1639. }
  1640. this.drawLine();
  1641. this.drawLinetwo();
  1642. this.commoDity();
  1643. }
  1644. });
  1645. },
  1646. query() {
  1647. this.master = [];
  1648. this.commodity = [];
  1649. this.commoditytwo = [];
  1650. this.name = [];
  1651. if (this.select === "") {
  1652. return this.select;
  1653. } else {
  1654. information(this.select).then((response) => {
  1655. this.chart = response.data;
  1656. for (let index of this.chart.corpsListWhouse) {
  1657. this.master.push({
  1658. name: index.fName,
  1659. value: index.fGrossweightD,
  1660. });
  1661. this.name.push(index.fName);
  1662. }
  1663. for (let index of this.chart.goodslistWhouse) {
  1664. this.commodity.push(index.fName);
  1665. this.commoditytwo.push(index.fGrossweightD);
  1666. }
  1667. this.drawLine();
  1668. this.drawLinetwo();
  1669. this.commoDity();
  1670. });
  1671. }
  1672. },
  1673. jump(res) {
  1674. this.$router.push({ path: res });
  1675. },
  1676. //设置单元格边框
  1677. cellStyle({ row, column, rowIndex, columnIndex }) {
  1678. return "border-bottom: 1px dashed rgb(223, 230, 236)";
  1679. },
  1680. //查询消息中心
  1681. getList() {
  1682. this.loading = true;
  1683. listCorps(this.queryParams).then((response) => {
  1684. if (response.rows.length > 0) {
  1685. // this.tableDataTwo = response.rows.slice(0, 10);
  1686. this.tableDataTwo = response.rows;
  1687. }
  1688. });
  1689. },
  1690. //查询仓库
  1691. warehouses() {
  1692. warehouse().then((response) => {
  1693. this.warehouse = [];
  1694. for (let index of response.rows) {
  1695. this.warehouse.push({
  1696. fName: index.fName,
  1697. fWarehouseid: index.fWarehouseid,
  1698. });
  1699. }
  1700. // console.log(this.warehouse);
  1701. this.firstinventory(this.warehouse[0].fWarehouseid);
  1702. });
  1703. },
  1704. goTarget(href) {
  1705. window.open(href, "_blank");
  1706. },
  1707. //财务图表
  1708. financeLine(data) {
  1709. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1710. let myChart = this.$echarts.init(document.getElementById("finance"));
  1711. // 绘制图表
  1712. myChart.setOption({
  1713. legend: {
  1714. left: "10%",
  1715. top: "4%",
  1716. },
  1717. title: {
  1718. text: "利润分析",
  1719. left: "center",
  1720. subtext: "实时数据",
  1721. },
  1722. tooltip: {},
  1723. color: ["#5470c6", "#92cc75", "#fac858"],
  1724. dataset: data,
  1725. xAxis: { type: "category" },
  1726. yAxis: [
  1727. {
  1728. type: "value",
  1729. scale: true,
  1730. axisLabel: {
  1731. formatter: "{value} 万元",
  1732. },
  1733. },
  1734. ],
  1735. grid: {
  1736. left: "3%",
  1737. right: "4%",
  1738. bottom: "3%",
  1739. containLabel: true,
  1740. },
  1741. // Declare several bar series, each will be mapped
  1742. // to a column of dataset.source by default.
  1743. series: [
  1744. {
  1745. type: "bar",
  1746. label: {
  1747. show: true,
  1748. position: "top",
  1749. valueAnimation: true,
  1750. },
  1751. },
  1752. {
  1753. type: "bar",
  1754. label: {
  1755. show: true,
  1756. position: "top",
  1757. valueAnimation: true,
  1758. },
  1759. },
  1760. {
  1761. type: "bar",
  1762. label: {
  1763. show: true,
  1764. position: "top",
  1765. valueAnimation: true,
  1766. },
  1767. },
  1768. ],
  1769. });
  1770. },
  1771. customerArrears(data) {
  1772. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1773. let myChart = this.$echarts.init(document.getElementById("arrears"));
  1774. // 绘制图表
  1775. myChart.setOption({
  1776. tooltip: {
  1777. trigger: "axis",
  1778. axisPointer: {
  1779. type: "shadow",
  1780. },
  1781. },
  1782. title: {
  1783. text: "欠款排行",
  1784. left: "center",
  1785. subtext: "实时数据",
  1786. },
  1787. color: ["#3298db"],
  1788. grid: {
  1789. left: "3%",
  1790. right: "4%",
  1791. bottom: "3%",
  1792. containLabel: true,
  1793. },
  1794. xAxis: [
  1795. {
  1796. type: "category",
  1797. data: data.key,
  1798. axisTick: {
  1799. alignWithLabel: true,
  1800. },
  1801. },
  1802. ],
  1803. yAxis: [
  1804. {
  1805. type: "value",
  1806. scale: true,
  1807. axisLabel: {
  1808. formatter: "{value} 万元",
  1809. },
  1810. },
  1811. ],
  1812. series: [
  1813. {
  1814. name: "欠款",
  1815. type: "bar",
  1816. barWidth: "60%",
  1817. data: data.value,
  1818. label: {
  1819. show: true,
  1820. position: "top",
  1821. valueAnimation: true,
  1822. },
  1823. },
  1824. ],
  1825. });
  1826. },
  1827. //仓库图表
  1828. drawLine() {
  1829. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1830. let myChart = this.$echarts.init(document.getElementById("box"));
  1831. // 绘制图表
  1832. myChart.setOption({
  1833. title: {
  1834. text: this.chart.whouseList[0].fName + "统计",
  1835. subtext: "实时数据",
  1836. left: "center",
  1837. },
  1838. tooltip: {
  1839. trigger: "item",
  1840. formatter: "{a} <br/>{b} : {c} ({d}%)",
  1841. },
  1842. legend: {
  1843. bottom: 10,
  1844. left: "center",
  1845. data: ["空闲库容", "占用库容"],
  1846. },
  1847. series: [
  1848. {
  1849. type: "pie",
  1850. name: "实时数据",
  1851. radius: "65%",
  1852. center: ["50%", "50%"],
  1853. selectedMode: "single",
  1854. data: [
  1855. {
  1856. label: {
  1857. backgroundColor: "#eee",
  1858. borderColor: "#777",
  1859. borderWidth: 1,
  1860. borderRadius: 4,
  1861. rich: {
  1862. title: {
  1863. color: "#eee",
  1864. align: "center",
  1865. },
  1866. abg: {
  1867. backgroundColor: "#333",
  1868. width: "100%",
  1869. align: "right",
  1870. height: 25,
  1871. borderRadius: [4, 4, 0, 0],
  1872. },
  1873. Sunny: {
  1874. height: 30,
  1875. align: "left",
  1876. },
  1877. Cloudy: {
  1878. height: 30,
  1879. align: "left",
  1880. },
  1881. Showers: {
  1882. height: 30,
  1883. align: "left",
  1884. },
  1885. weatherHead: {
  1886. color: "#333",
  1887. height: 24,
  1888. align: "left",
  1889. },
  1890. hr: {
  1891. borderColor: "#777",
  1892. width: "100%",
  1893. borderWidth: 0.5,
  1894. height: 0,
  1895. },
  1896. value: {
  1897. width: 20,
  1898. padding: [0, 20, 0, 30],
  1899. align: "left",
  1900. },
  1901. valueHead: {
  1902. color: "#333",
  1903. width: 20,
  1904. padding: [0, 20, 0, 30],
  1905. align: "center",
  1906. },
  1907. rate: {
  1908. width: 40,
  1909. align: "right",
  1910. padding: [0, 10, 0, 0],
  1911. },
  1912. rateHead: {
  1913. color: "#333",
  1914. width: 40,
  1915. align: "center",
  1916. padding: [0, 10, 0, 0],
  1917. },
  1918. },
  1919. },
  1920. },
  1921. {
  1922. value: this.chart.whouseList[0].fGrossweightD,
  1923. name: "占用库容",
  1924. },
  1925. {
  1926. value: parseFloat(
  1927. this.chart.whouseList[0].fTotalgross -
  1928. this.chart.whouseList[0].fGrossweightD
  1929. ).toFixed(1),
  1930. name: "空闲库容",
  1931. },
  1932. ],
  1933. emphasis: {
  1934. itemStyle: {
  1935. shadowBlur: 10,
  1936. shadowOffsetX: 0,
  1937. shadowColor: "rgba(0, 0, 0, 0.5)",
  1938. },
  1939. },
  1940. },
  1941. ],
  1942. });
  1943. },
  1944. drawLinetwo() {
  1945. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1946. let myChart = this.$echarts.init(document.getElementById("cargoOwner"));
  1947. // 绘制图表
  1948. myChart.setOption({
  1949. title: {
  1950. text: this.chart.whouseList[0].fName + "货权方统计",
  1951. subtext: "实时数据",
  1952. left: "center",
  1953. },
  1954. tooltip: {
  1955. trigger: "item",
  1956. formatter: "{a} <br/>{b}: {c} ({d}%)",
  1957. },
  1958. legend: {
  1959. bottom: 10,
  1960. left: "center",
  1961. data: this.name,
  1962. },
  1963. series: [
  1964. {
  1965. name: "访问来源",
  1966. type: "pie",
  1967. radius: ["40%", "60%"],
  1968. avoidLabelOverlap: false,
  1969. label: {
  1970. show: false,
  1971. position: "center",
  1972. },
  1973. emphasis: {
  1974. label: {
  1975. // show: true,
  1976. fontSize: "30",
  1977. fontWeight: "bold",
  1978. },
  1979. },
  1980. labelLine: {
  1981. show: false,
  1982. },
  1983. data: this.master,
  1984. },
  1985. ],
  1986. });
  1987. },
  1988. smartScreen() {
  1989. currentLogin().then((res) => {
  1990. const role = res.data.roles.some(
  1991. (item) => item.roleKey == "admin" || item.roleKey == "IDC"
  1992. );
  1993. if (role) {
  1994. this.getConfigKey("large.screen").then((response) => {
  1995. if (response.msg) {
  1996. window.open(
  1997. "http://119.3.74.195:9527/view/" +
  1998. response.msg +
  1999. "?Authorization=" +
  2000. getToken()
  2001. );
  2002. } else {
  2003. return this.$message.warning("模板开发中");
  2004. }
  2005. });
  2006. } else {
  2007. this.$message.warning("您无此权限查看面板");
  2008. }
  2009. });
  2010. },
  2011. commoDity() {
  2012. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  2013. let myChart = this.$echarts.init(document.getElementById("commoDity"));
  2014. // 绘制图表
  2015. myChart.setOption({
  2016. title: {
  2017. text: this.chart.whouseList[0].fName + "商品统计",
  2018. subtext: "实时数据",
  2019. left: "center",
  2020. },
  2021. color: ["#3398DB"],
  2022. tooltip: {
  2023. trigger: "axis",
  2024. axisPointer: {
  2025. // 坐标轴指示器,坐标轴触发有效
  2026. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  2027. },
  2028. },
  2029. grid: {
  2030. left: "3%",
  2031. right: "4%",
  2032. bottom: "3%",
  2033. containLabel: true,
  2034. },
  2035. xAxis: [
  2036. {
  2037. type: "category",
  2038. data: this.commodity,
  2039. axisTick: {
  2040. alignWithLabel: true,
  2041. },
  2042. },
  2043. ],
  2044. yAxis: [
  2045. {
  2046. type: "value",
  2047. },
  2048. ],
  2049. series: [
  2050. {
  2051. name: "实时状态",
  2052. type: "bar",
  2053. barWidth: "60%",
  2054. data: this.commoditytwo,
  2055. label: {
  2056. show: true,
  2057. position: "top",
  2058. valueAnimation: true,
  2059. },
  2060. },
  2061. ],
  2062. });
  2063. },
  2064. openNewsDetails(id) {
  2065. this.tableDataTwo.forEach((item) => {
  2066. if (item.noticeId === id) {
  2067. this.newsDetails.noticeTitle = item.noticeTitle;
  2068. this.newsDetails.noticeContent = item.noticeContent;
  2069. }
  2070. });
  2071. this.newsVisible = true;
  2072. },
  2073. // 跳转到更多公告页面
  2074. jumpMoreNews() {
  2075. this.$router.push({
  2076. path: "/notice/seeMore",
  2077. });
  2078. },
  2079. // 弹窗
  2080. openDialog(name) {
  2081. if (name == "inStock") {
  2082. this.fastInStockVisble = true;
  2083. this.$nextTick(() => {
  2084. this.$refs.fastInStock.init();
  2085. });
  2086. }
  2087. if (name === "outStock") {
  2088. // this.$message.warning('模块开发中')
  2089. this.fastOutStockVisble = true;
  2090. this.$nextTick(() => {
  2091. this.$refs.fastOutStock.init();
  2092. });
  2093. }
  2094. },
  2095. // 关闭
  2096. closeInStock() {
  2097. this.fastInStockVisble = false;
  2098. },
  2099. closeOutStock() {
  2100. this.fastOutStockVisble = false;
  2101. },
  2102. },
  2103. };
  2104. </script>
  2105. <style scoped lang="scss">
  2106. .block {
  2107. width: 100%;
  2108. display: flex;
  2109. flex-wrap: wrap;
  2110. justify-content: space-around;
  2111. li div:hover {
  2112. background-color: #025184;
  2113. }
  2114. li:nth-child(6) div,
  2115. li:nth-child(7) div,
  2116. li:nth-child(8) div,
  2117. li:nth-child(9) div,
  2118. li:nth-child(10) div {
  2119. background-color: #2f4554;
  2120. }
  2121. li:nth-child(6) div:hover,
  2122. li:nth-child(7) div:hover,
  2123. li:nth-child(8) div:hover,
  2124. li:nth-child(9) div:hover,
  2125. li:nth-child(10) div:hover {
  2126. background-color: #2f4454d1;
  2127. }
  2128. li {
  2129. width: 8%;
  2130. margin-left: 10px;
  2131. text-align: center;
  2132. cursor: pointer;
  2133. margin-bottom: 15px;
  2134. div {
  2135. //margin-top: 18px;
  2136. background-color: #1c84c6;
  2137. color: #ffffff;
  2138. border-radius: 10px;
  2139. height: 35px;
  2140. display: flex;
  2141. align-items: center;
  2142. justify-content: center;
  2143. }
  2144. p {
  2145. font-size: 10px;
  2146. }
  2147. }
  2148. }
  2149. .home {
  2150. blockquote {
  2151. padding: 10px 20px;
  2152. margin: 0 0 20px;
  2153. font-size: 17.5px;
  2154. border-left: 5px solid #eee;
  2155. }
  2156. hr {
  2157. margin-top: 20px;
  2158. margin-bottom: 20px;
  2159. border: 0;
  2160. border-top: 1px solid #eee;
  2161. }
  2162. .col-item {
  2163. margin-bottom: 20px;
  2164. }
  2165. ul {
  2166. padding: 0;
  2167. margin: 0;
  2168. }
  2169. font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  2170. font-size: 13px;
  2171. color: #676a6c;
  2172. overflow-x: hidden;
  2173. ul {
  2174. list-style-type: none;
  2175. }
  2176. h4 {
  2177. margin-top: 0px;
  2178. }
  2179. h2 {
  2180. margin-top: 10px;
  2181. font-size: 26px;
  2182. font-weight: 100;
  2183. }
  2184. p {
  2185. margin-top: 10px;
  2186. b {
  2187. font-weight: 700;
  2188. }
  2189. }
  2190. .update-log {
  2191. ol {
  2192. display: block;
  2193. list-style-type: decimal;
  2194. margin-block-start: 1em;
  2195. margin-block-end: 1em;
  2196. margin-inline-start: 0;
  2197. margin-inline-end: 0;
  2198. padding-inline-start: 40px;
  2199. }
  2200. }
  2201. }
  2202. .home-fleet {
  2203. display: flex;
  2204. .home-left {
  2205. width: 40%;
  2206. padding: 0 10px;
  2207. }
  2208. .home-right {
  2209. width: 60%;
  2210. padding: 0 10px;
  2211. }
  2212. .content-top {
  2213. display: flex;
  2214. .content-top-left {
  2215. display: flex;
  2216. width: 50%;
  2217. height: 100px;
  2218. border-bottom: 1px solid #e6ebf5;
  2219. border-right: 1px solid #e6ebf5;
  2220. padding: 10px;
  2221. justify-content: space-between;
  2222. }
  2223. .content-top-right {
  2224. display: flex;
  2225. width: 50%;
  2226. height: 100px;
  2227. border-bottom: 1px solid #e6ebf5;
  2228. padding: 10px;
  2229. justify-content: space-between;
  2230. }
  2231. }
  2232. .content-bottom {
  2233. display: flex;
  2234. height: 81px;
  2235. border-bottom: 1px solid #e6ebf5;
  2236. padding: 10px;
  2237. justify-content: space-between;
  2238. }
  2239. .content-bottom:last-child {
  2240. border-bottom: 0px;
  2241. }
  2242. .upper-right {
  2243. padding: 10px 0;
  2244. //height: 260px;
  2245. height: 417px;
  2246. }
  2247. .upper-right2 {
  2248. padding: 10px 0;
  2249. height: 104px;
  2250. }
  2251. }
  2252. .single_line {
  2253. overflow: hidden;
  2254. text-overflow: ellipsis;
  2255. white-space: nowrap;
  2256. }
  2257. @media screen and (max-width: 920px) {
  2258. .home-fleet {
  2259. display: flex;
  2260. flex-direction: column;
  2261. .home-left {
  2262. width: 100%;
  2263. }
  2264. .home-right {
  2265. width: 100%;
  2266. }
  2267. }
  2268. }
  2269. </style>
  2270. <style lang="scss">
  2271. .text img {
  2272. max-width: 100%;
  2273. height: auto;
  2274. }
  2275. .home_stock_table {
  2276. display: flex;
  2277. width: 20%;
  2278. justify-content: center;
  2279. align-self: center;
  2280. p {
  2281. display: inline-block;
  2282. white-space: nowrap;
  2283. width: 100%;
  2284. overflow: hidden;
  2285. text-overflow: ellipsis;
  2286. }
  2287. }
  2288. .home_stock_table:hover {
  2289. color: #1c84c6;
  2290. cursor: pointer;
  2291. }
  2292. .home_stock_table_right {
  2293. display: flex;
  2294. width: 20%;
  2295. justify-content: space-around;
  2296. align-self: center;
  2297. }
  2298. .jingrun-news {
  2299. overflow: auto;
  2300. }
  2301. .html-box p {
  2302. width: 100%;
  2303. }
  2304. .html-box p img {
  2305. display: block;
  2306. margin: 0 auto;
  2307. max-width: 100% !important;
  2308. }
  2309. </style>