index.vue 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742
  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: 50px; text-align: center"
  12. ></i>
  13. <p>入库</p>
  14. </div>
  15. </li>
  16. <li @click="jump('/business/outStock')">
  17. <div>
  18. <i
  19. class="el-icon-upload2"
  20. style="font-size: 50px; text-align: center"
  21. ></i>
  22. <p>出库</p>
  23. </div>
  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/stockTransfer')">
  44. <div>
  45. <i
  46. class="el-icon-connection"
  47. style="font-size: 50px; text-align: center"
  48. ></i>
  49. <p>调拨</p>
  50. </div>
  51. </li>
  52. <li @click="jump('/finance/charge')">
  53. <div>
  54. <i
  55. class="el-icon-wallet"
  56. style="font-size: 50px; text-align: center"
  57. ></i>
  58. <p>收款</p>
  59. </div>
  60. </li>
  61. <li @click="jump('/finance/payment')">
  62. <div>
  63. <i
  64. class="el-icon-money"
  65. style="font-size: 50px; text-align: center"
  66. ></i>
  67. <p>付款</p>
  68. </div>
  69. </li>
  70. <li @click="jump('/finance/contrast')">
  71. <div>
  72. <i
  73. class="el-icon-s-management"
  74. style="font-size: 50px; text-align: center"
  75. ></i>
  76. <p>对账</p>
  77. </div>
  78. </li>
  79. <li @click="jump('/business/goodsTransfer')">
  80. <div>
  81. <i
  82. class="el-icon-takeaway-box"
  83. style="font-size: 50px; text-align: center"
  84. ></i>
  85. <p>货转</p>
  86. </div>
  87. </li>
  88. <li @click="jump('/agreement/agreementStorage')">
  89. <div>
  90. <i
  91. class="el-icon-s-order"
  92. style="font-size: 50px; text-align: center"
  93. ></i>
  94. <p>协议</p>
  95. </div>
  96. </li>
  97. </ul>
  98. </div>
  99. <div style="width: 30%">
  100. <div style="width: 100%">
  101. <div style="display: flex">
  102. <div id="box" style="width: 100%; height: 350px"></div>
  103. <el-select
  104. v-model="select"
  105. slot="prepend"
  106. size="mini"
  107. :select="query()"
  108. placeholder="点击切换仓库"
  109. style="position: absolute; width: 8%; right: 1%"
  110. >
  111. <div v-for="(item, index) in warehouse" :key="index">
  112. <el-option
  113. :label="item.fName"
  114. :value="item.fWarehouseid"
  115. ></el-option>
  116. </div>
  117. </el-select>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. <div style="display: flex; margin-bottom: 40px">
  123. <div style="width: 70%">
  124. <div>
  125. <div
  126. style="
  127. display: flex;
  128. color: #515a6e;
  129. font-weight: 600;
  130. background-color: #f8f8f9;
  131. height: 42.6px;
  132. font-size: 13px;
  133. justify-content: space-between;
  134. border-bottom: 1px dashed #dfe6ec;
  135. "
  136. >
  137. <div class="home_stock_table">委托方</div>
  138. <div class="home_stock_table">日期</div>
  139. <div class="home_stock_table">提单号</div>
  140. <div class="home_stock_table">业务类型</div>
  141. <div class="home_stock_table_right">
  142. <div>操作</div>
  143. <el-link type="primary" @click="jump('/morePage/stock')"
  144. >更多></el-link
  145. >
  146. </div>
  147. </div>
  148. <div v-if="tableData.length > 0">
  149. <div
  150. style="
  151. display: flex;
  152. height: 42.6px;
  153. border-bottom: 1px dashed #dfe6ec;
  154. "
  155. v-for="(item, index) in tableData"
  156. :key="index"
  157. v-if="index<5"
  158. >
  159. <div class="home_stock_table"> <p>{{ item.refno1 }}</p></div>
  160. <div class="home_stock_table">
  161. {{ item.sendTime ? item.sendTime.slice(0,10) : item.sendTime}}
  162. </div>
  163. <div class="home_stock_table" @click="approval(item)"><p style="text-align: center;">{{ item.refno3 }}</p></div>
  164. <div class="home_stock_table">
  165. <span v-if="item.refno2 === 'SJRK'">入库</span>
  166. <span v-else-if="item.refno2 === 'SJCK'">出库</span>
  167. <span v-else-if="item.refno2 === 'HQZY'">货转</span>
  168. <span v-else-if="item.refno2 === 'CKDB'">调拨</span>
  169. <span v-else-if="item.refno2 === 'CCF'">仓储费</span>
  170. <span v-else-if="item.refno2 === 'HWTG'">货物通关</span>
  171. <span v-else-if="item.refno2 === 'ZYF'">作业费</span>
  172. <span v-else-if="item.refno2 === 'SF'">收费</span>
  173. <span v-else-if="item.refno2 === 'DZ'">对账</span>
  174. <span v-else-if="item.refno2 === 'FF'">付费</span>
  175. <span v-else-if="item.refno2 === 'JSCCF'">计算仓储费</span>
  176. <span v-else-if="item.refno2 === 'KHDZ'">凯和对账</span>
  177. <span v-else-if="item.refno2 === 'KHSF'">凯和收费</span>
  178. <span v-else-if="item.refno2 === 'KHFF'">凯和付费</span>
  179. <span v-else-if="item.refno2 === 'ApplyFP'">凯和开票申请</span>
  180. <span v-else-if="item.refno2 === 'KHDD'">凯和订单</span>
  181. <span v-else-if="item.refno2 === 'SE'">下单配船</span>
  182. <span v-else-if="item.refno2 === 'SJRKITEM'">入库明细审批</span>
  183. <span v-else-if="item.refno2 === 'SJCKITEM'">出库明细审批</span>
  184. <span v-else-if="item.refno2 === 'XGDD'">申请变更</span>
  185. <span v-else-if="item.refno2 === 'XGTJ'">提交变更</span>
  186. <span v-else-if="item.refno2 === 'DDSC'">申请删单</span>
  187. </div>
  188. <div class="home_stock_table" @click="approval(item)">
  189. 查看详情
  190. </div>
  191. </div>
  192. </div>
  193. <div
  194. v-else
  195. style="
  196. display: flex;
  197. justify-content: center;
  198. height: 213px;
  199. border-bottom: 1px solid #dfe6ec;
  200. "
  201. >
  202. <div style="align-self: center; color: #909399; font-size: 14px">
  203. 暂无数据
  204. </div>
  205. </div>
  206. </div>
  207. <!-- <el-table
  208. :data="tableData"
  209. :header-cell-style="{ borderBottom: '1px dashed #dfe6ec' }"
  210. :cell-style="cellStyle"
  211. >
  212. <el-table-column
  213. prop="refno1"
  214. :show-overflow-tooltip="true"
  215. label="委托方"
  216. ></el-table-column>
  217. <el-table-column
  218. prop="auditItem"
  219. :show-overflow-tooltip="true"
  220. label="日期"
  221. >
  222. <template slot-scope="scope">
  223. <span v-if="!scope.row.auditItem">无时间</span>
  224. <span v-else>{{ scope.row.auditItem.slice(0, 10) }}</span>
  225. </template>
  226. </el-table-column>
  227. <el-table-column
  228. prop="refno3"
  229. :show-overflow-tooltip="true"
  230. label="提单号"
  231. ></el-table-column>
  232. <el-table-column
  233. prop="refno2"
  234. :show-overflow-tooltip="true"
  235. label="业务类型"
  236. >
  237. <template slot-scope="scope">
  238. <span v-if="scope.row.refno2 === 'SJRK'">入库</span>
  239. <span v-else-if="scope.row.refno2 === 'SJCK'">出库</span>
  240. <span v-else-if="scope.row.refno2 === 'HQZY'">货转</span>
  241. <span v-else-if="scope.row.refno2 === 'CKDB'">调拨</span>
  242. <span v-else-if="scope.row.refno2 === 'CCF'">仓储费</span>
  243. <span v-else-if="scope.row.refno2 === 'HWTG'">货物通关</span>
  244. <span v-else-if="scope.row.refno2 === 'ZYF'">作业费</span>
  245. <span v-else-if="scope.row.refno2 === 'SF'">收费</span>
  246. <span v-else-if="scope.row.refno2 === 'DZ'">对账</span>
  247. <span v-else-if="scope.row.refno2 === 'FF'">付费</span>
  248. <span v-else-if="scope.row.refno2 === 'JSCCF'">计算仓储费</span>
  249. </template>
  250. </el-table-column>
  251. <el-table-column prop="address" label="操作" width="80">
  252. <template slot-scope="scope">
  253. <span style="cursor: pointer" @click="approval(scope.row)"
  254. >查看详情</span
  255. >
  256. </template>
  257. </el-table-column>
  258. </el-table> -->
  259. </div>
  260. <div style="width: 30%">
  261. <el-table
  262. :data="tableDataTwo"
  263. :header-cell-style="{ borderBottom: '1px dashed #dfe6ec' }"
  264. :cell-style="cellStyle"
  265. style="margin-left: 20px"
  266. >
  267. <el-table-column
  268. prop="noticeTitle"
  269. :show-overflow-tooltip="true"
  270. label="消息中心"
  271. />
  272. <el-table-column prop="address" label="操作" width="80">
  273. <template slot-scope="scope">
  274. <span
  275. @click="querytoDo(scope.row.noticeContent)"
  276. style="cursor: pointer"
  277. >查看详情</span
  278. >
  279. </template>
  280. </el-table-column>
  281. </el-table>
  282. </div>
  283. </div>
  284. <div style="display: flex">
  285. <div style="width: 70%">
  286. <div
  287. id="commoDity"
  288. style="width: 100%; height: 350px; margin-left: 40px"
  289. ></div>
  290. </div>
  291. <div style="width: 30%">
  292. <div id="cargoOwner" style="width: 100%; height: 350px"></div>
  293. </div>
  294. </div>
  295. </div>
  296. <el-dialog
  297. v-if="sysType == 1 || sysType == 3"
  298. title="消息提示"
  299. :visible.sync="dialogVisible"
  300. width="80%"
  301. :before-close="handleClose"
  302. :close-on-click-modal="false"
  303. >
  304. <span
  305. v-html="text"
  306. class="text"
  307. style="max-width: 100%; height: auto"
  308. ></span>
  309. <span slot="footer" class="dialog-footer">
  310. <el-button type="primary" @click="dialogVisible = false"
  311. >关 闭</el-button
  312. >
  313. </span>
  314. </el-dialog>
  315. <div class="home-fleet" v-if="sysType == 2">
  316. <div class="home-left">
  317. <chi-card title="业务看板" iconName="el-icon-s-cooperation">
  318. <div slot="content">
  319. <div class="content-top">
  320. <div class="content-top-left">
  321. <div
  322. style="display: flex; align-self: center; margin-left: 5px"
  323. >
  324. <div style="align-self: center">
  325. <svg
  326. t="1616396514864"
  327. class="icon"
  328. viewBox="0 0 1024 1024"
  329. version="1.1"
  330. xmlns="http://www.w3.org/2000/svg"
  331. p-id="9805"
  332. width="20"
  333. height="20"
  334. >
  335. <path
  336. 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"
  337. p-id="9806"
  338. fill="#000000"
  339. ></path>
  340. </svg>
  341. </div>
  342. <div
  343. style="
  344. align-self: center;
  345. font-size: 16px;
  346. margin: 2px 0 0 5px;
  347. "
  348. >
  349. 今日新增柜数
  350. </div>
  351. </div>
  352. <div
  353. style="
  354. font-size: 36px;
  355. align-self: center;
  356. font-weight: 600;
  357. color: #014da1;
  358. "
  359. >
  360. {{ upperLeftCntrs.planQuantity }}
  361. </div>
  362. </div>
  363. <div class="content-top-right">
  364. <div
  365. style="
  366. display: flex;
  367. align-self: center;
  368. min-width: 120px;
  369. margin-left: 5px;
  370. "
  371. >
  372. <div style="align-self: center">
  373. <svg
  374. t="1616400289333"
  375. class="icon"
  376. viewBox="0 0 1024 1024"
  377. version="1.1"
  378. xmlns="http://www.w3.org/2000/svg"
  379. p-id="22417"
  380. width="20"
  381. height="20"
  382. >
  383. <path
  384. 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"
  385. p-id="22418"
  386. ></path>
  387. </svg>
  388. </div>
  389. <div
  390. style="
  391. align-self: center;
  392. font-size: 16px;
  393. margin: 2px 0 0 5px;
  394. "
  395. >
  396. 未安排柜数
  397. </div>
  398. </div>
  399. <div
  400. style="
  401. font-size: 36px;
  402. align-self: center;
  403. font-weight: 600;
  404. color: #014da1;
  405. "
  406. >
  407. {{ upperLeftCntrs.surplusQuantity }}
  408. </div>
  409. </div>
  410. </div>
  411. <div class="content-bottom">
  412. <div style="display: flex; align-self: center; margin-left: 5px">
  413. <div style="align-self: center">
  414. <svg
  415. t="1616402886142"
  416. class="icon"
  417. viewBox="0 0 1024 1024"
  418. version="1.1"
  419. xmlns="http://www.w3.org/2000/svg"
  420. p-id="31596"
  421. width="24"
  422. height="24"
  423. >
  424. <path
  425. 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"
  426. p-id="31597"
  427. ></path>
  428. <path
  429. 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"
  430. p-id="31598"
  431. ></path>
  432. </svg>
  433. </div>
  434. <div
  435. style="
  436. align-self: center;
  437. font-size: 16px;
  438. margin: 2px 0 0 5px;
  439. width: 110px;
  440. "
  441. >
  442. 今日派车数
  443. </div>
  444. </div>
  445. <div
  446. style="
  447. font-size: 36px;
  448. align-self: center;
  449. font-weight: 600;
  450. color: #014da1;
  451. "
  452. >
  453. {{ fleetData.upperLeftCarQuantity }}
  454. </div>
  455. <div style="align-self: center; color: #409eff">派车详情></div>
  456. </div>
  457. <div class="content-bottom">
  458. <div
  459. style="
  460. display: flex;
  461. align-self: center;
  462. min-width: 120px;
  463. margin-left: 5px;
  464. "
  465. >
  466. <div style="align-self: center">
  467. <svg
  468. t="1616402771353"
  469. class="icon"
  470. viewBox="0 0 1048 1024"
  471. version="1.1"
  472. xmlns="http://www.w3.org/2000/svg"
  473. p-id="29149"
  474. width="20"
  475. height="20"
  476. >
  477. <path
  478. 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"
  479. p-id="29150"
  480. ></path>
  481. </svg>
  482. </div>
  483. <div
  484. style="
  485. align-self: center;
  486. font-size: 16px;
  487. margin: 2px 0 0 5px;
  488. width: 110px;
  489. "
  490. >
  491. 可用车辆数
  492. </div>
  493. </div>
  494. <div
  495. style="
  496. font-size: 36px;
  497. align-self: center;
  498. font-weight: 600;
  499. color: #014da1;
  500. "
  501. >
  502. {{ fleetData.upperLeftOldCarQuantity }}
  503. </div>
  504. <div style="align-self: center; color: #409eff">派车详情></div>
  505. </div>
  506. </div>
  507. </chi-card>
  508. <chi-card
  509. title="新闻公告"
  510. iconName="el-icon-s-cooperation"
  511. :More="true"
  512. >
  513. <div slot="content" style="height: 260px">
  514. <div
  515. style="padding: 4px 15px; font-size: 14px"
  516. v-for="(item, index) in tableDataTwo"
  517. :key="index"
  518. :style="{
  519. backgroundColor: index % 2 == 0 ? '#fafbfd' : '#FFFFFF',
  520. }"
  521. >
  522. {{ item.noticeTitle }}
  523. </div>
  524. </div>
  525. </chi-card>
  526. </div>
  527. <div class="home-right">
  528. <chi-card title="运行车辆" iconName="el-icon-s-order" :More="true">
  529. <div slot="content" class="upper-right">
  530. <div
  531. style="display: flex; padding: 4px 15px; font-size: 14px"
  532. v-for="(item, index) in upperRights"
  533. :key="index"
  534. :style="{
  535. backgroundColor: index % 2 == 0 ? '#fafbfd' : '#FFFFFF',
  536. }"
  537. >
  538. <div style="width: 30%" @click="goPage(item.id)">
  539. <el-link type="primary" :underline="false">{{
  540. item.mblno
  541. }}</el-link>
  542. </div>
  543. <div style="width: 20%">{{ item.carregNo }}</div>
  544. <div style="width: 15%; color: #67c23a">
  545. {{ item.orderStatus | statusType }}
  546. </div>
  547. <div
  548. style="
  549. width: 35%;
  550. overflow: hidden;
  551. text-overflow: ellipsis;
  552. white-space: nowrap;
  553. "
  554. >
  555. {{ item.corpName }}
  556. </div>
  557. </div>
  558. </div>
  559. </chi-card>
  560. <chi-card title="业务待办" iconName="el-icon-s-order" :More="true">
  561. <div slot="content" class="upper-right2">
  562. <div
  563. style="
  564. font-size: 14px;
  565. display: flex;
  566. margin: 4px 15px;
  567. border-bottom: 1px dashed #e6ebf5;
  568. "
  569. >
  570. <div style="width: 30%" class="single_line">FK221516485645</div>
  571. <div style="width: 20%" class="single_line">运费运费运费</div>
  572. <div style="width: 15%" class="single_line">李刚</div>
  573. <div style="width: 15%; color: #67c23a" class="single_line">
  574. 待审批
  575. </div>
  576. <div style="width: 20%" class="single_line">2020/10/10</div>
  577. </div>
  578. <div style="font-size: 14px; display: flex; margin: 4px 15px">
  579. <div style="width: 30%" class="single_line">FK221516485645</div>
  580. <div style="width: 20%" class="single_line">运费运费运费</div>
  581. <div style="width: 15%" class="single_line">李刚</div>
  582. <div style="width: 15%; color: #67c23a" class="single_line">
  583. 待审批
  584. </div>
  585. <div style="width: 20%" class="single_line">2020/10/10</div>
  586. </div>
  587. </div>
  588. </chi-card>
  589. <chi-card title="审核列表" iconName="el-icon-s-order" :More="true">
  590. <div slot="content" class="upper-right2">
  591. <div
  592. style="
  593. font-size: 14px;
  594. display: flex;
  595. margin: 4px 15px;
  596. border-bottom: 1px dashed #e6ebf5;
  597. "
  598. >
  599. <div style="width: 30%" class="single_line">FK221516485645</div>
  600. <div style="width: 20%" class="single_line">运费运费运费</div>
  601. <div style="width: 15%" class="single_line">李刚</div>
  602. <div style="width: 15%; color: #67c23a">待审批</div>
  603. <div style="width: 20%" class="single_line">2020/10/10</div>
  604. </div>
  605. <div style="font-size: 14px; display: flex; margin: 4px 15px">
  606. <div style="width: 30%" class="single_line">FK221516485645</div>
  607. <div style="width: 20%" class="single_line">运费运费运费</div>
  608. <div style="width: 15%" class="single_line">李刚</div>
  609. <div style="width: 15%; color: #67c23a" class="single_line">
  610. 待审批
  611. </div>
  612. <div style="width: 20%" class="single_line">2020/10/10</div>
  613. </div>
  614. </div>
  615. </chi-card>
  616. </div>
  617. </div>
  618. <div v-if="sysType == 3">
  619. <div style="width: 100%;">
  620. <div id="distribution" style="width: 100%;height: 300px;"></div>
  621. </div>
  622. <div style="width: 100%;margin: 20px auto;float: left">
  623. <el-table :data="bookingData">
  624. <el-table-column prop="fName" align="center" label="船名"/>
  625. <el-table-column prop="fNo" align="center" label="航次"/>
  626. <el-table-column prop="portofloadName" align="center" label="起运港"/>
  627. <el-table-column prop="distinationName" align="center" label="目的港"/>
  628. <el-table-column prop="fWeight" align="center" label="容量TEU"/>
  629. <el-table-column prop="boxNumber" align="center" label="实装TEU"/>
  630. <el-table-column prop="fETD" align="center" label="预计开船">
  631. <template slot-scope="scope">
  632. <span>{{ scope.row.fETD?scope.row.fETD.slice(0, 10):'' }}</span>
  633. </template>
  634. </el-table-column>
  635. <el-table-column prop="fETA" align="center" label="预计到港">
  636. <template slot-scope="scope">
  637. <span>{{ scope.row.fETA?scope.row.fETA.slice(0, 10):'' }}</span>
  638. </template>
  639. </el-table-column>
  640. <el-table-column prop="fATD" align="center" label="实际开船">
  641. <template slot-scope="scope">
  642. <span>{{ scope.row.fATD?scope.row.fATD.slice(0, 10):'' }}</span>
  643. </template>
  644. </el-table-column>
  645. <el-table-column prop="fATA" align="center" label="实际到港">
  646. <template slot-scope="scope">
  647. <span>{{ scope.row.fATA?scope.row.fATA.slice(0, 10):'' }}</span>
  648. </template>
  649. </el-table-column>
  650. <el-table-column prop="fDays" align="center" label="航程"/>
  651. </el-table>
  652. </div>
  653. <div style="width: 100%;">
  654. <div style="width: 49%;float: left">
  655. <div
  656. style="
  657. display: flex;
  658. color: #515a6e;
  659. font-weight: 600;
  660. background-color: #f8f8f9;
  661. height: 42.6px;
  662. font-size: 13px;
  663. justify-content: space-between;
  664. border-bottom: 1px dashed #dfe6ec;
  665. "
  666. >
  667. <div class="home_stock_table">委托方</div>
  668. <div class="home_stock_table">日期</div>
  669. <div class="home_stock_table">提单号</div>
  670. <div class="home_stock_table">业务类型</div>
  671. <div class="home_stock_table_right">
  672. <div>操作</div>
  673. <el-link type="primary" @click="jump('/morePage/stock')"
  674. >更多></el-link
  675. >
  676. </div>
  677. </div>
  678. <div v-if="tableData.length > 0">
  679. <div
  680. style="display: flex;height: 42.6px;border-bottom: 1px dashed #dfe6ec;"
  681. v-for="(item, index) in tableData"
  682. :key="index"
  683. v-if="index < 5"
  684. >
  685. <div class="home_stock_table"> <p>{{ item.refno1 }}</p></div>
  686. <div class="home_stock_table">
  687. {{ item.sendTime ? item.sendTime.slice(0, 10):'' }}
  688. </div>
  689. <div class="home_stock_table" @click="approval(item)"><p>{{ item.refno3}}</p></div>
  690. <div class="home_stock_table">
  691. <span v-if="item.refno2 === 'SJRK'">入库</span>
  692. <span v-else-if="item.refno2 === 'SJCK'">出库</span>
  693. <span v-else-if="item.refno2 === 'HQZY'">货转</span>
  694. <span v-else-if="item.refno2 === 'CKDB'">调拨</span>
  695. <span v-else-if="item.refno2 === 'CCF'">仓储费</span>
  696. <span v-else-if="item.refno2 === 'HWTG'">货物通关</span>
  697. <span v-else-if="item.refno2 === 'ZYF'">作业费</span>
  698. <span v-else-if="item.refno2 === 'SF'">收费</span>
  699. <span v-else-if="item.refno2 === 'DZ'">对账</span>
  700. <span v-else-if="item.refno2 === 'FF'">付费</span>
  701. <span v-else-if="item.refno2 === 'JSCCF'">计算仓储费</span>
  702. <span v-else-if="item.refno2 === 'KHDZ'">凯和对账</span>
  703. <span v-else-if="item.refno2 === 'KHSF'">凯和收费</span>
  704. <span v-else-if="item.refno2 === 'KHFF'">凯和付费</span>
  705. <span v-else-if="item.refno2 === 'ApplyFP'">凯和开票申请</span>
  706. <span v-else-if="item.refno2 === 'KHDD'">凯和订单</span>
  707. <span v-else-if="item.refno2 === 'SE'">下单配船</span>
  708. <span v-else-if="item.refno2 === 'SJRKITEM'">入库明细审批</span>
  709. <span v-else-if="item.refno2 === 'SJCKITEM'">出库明细审批</span>
  710. <span v-else-if="item.refno2 === 'XGDD'">申请变更</span>
  711. <span v-else-if="item.refno2 === 'XGTJ'">提交变更</span>
  712. <span v-else-if="item.refno2 === 'DDSC'">申请删单</span>
  713. </div>
  714. <div class="home_stock_table" @click="approval(item)">
  715. 立即审批
  716. </div>
  717. </div>
  718. </div>
  719. <div
  720. v-else
  721. style="
  722. display: flex;
  723. justify-content: center;
  724. height: 213px;
  725. border-bottom: 1px solid #dfe6ec;
  726. "
  727. >
  728. <div style="align-self: center; color: #909399; font-size: 14px">
  729. 暂无数据
  730. </div>
  731. </div>
  732. </div>
  733. <div style="width: 49%;float: right">
  734. <el-table
  735. :data="tableDataTwo"
  736. :header-cell-style="{ borderBottom: '1px dashed #dfe6ec' }"
  737. :cell-style="cellStyle"
  738. style="margin-left: 20px"
  739. >
  740. <el-table-column
  741. prop="noticeTitle"
  742. :show-overflow-tooltip="true"
  743. label="消息中心"
  744. />
  745. <el-table-column prop="address" label="操作" width="80">
  746. <template slot-scope="scope">
  747. <span
  748. @click="querytoDo(scope.row.noticeContent)"
  749. style="cursor: pointer"
  750. >查看详情</span
  751. >
  752. </template>
  753. </el-table-column>
  754. </el-table>
  755. </div>
  756. </div>
  757. <div style="width: 100%;margin: 10px auto;float: left">
  758. <div id="bookingRanking" style="width: 100%;height: 300px;"></div>
  759. </div>
  760. <div style="width: 100%;margin: 10px auto;float: left">
  761. <div id="bookingRankingTwo" style="width: 100%;height: 300px;"></div>
  762. </div>
  763. </div>
  764. </div>
  765. </template>
  766. <script>
  767. import { queryHomeInfo } from "@/api/fleet/home";
  768. import chiCard from "./chiCard.vue";
  769. import {
  770. listCorps,
  771. information,
  772. warehouse,
  773. inquiry,
  774. boxDistribution,
  775. shipDynamics,
  776. bookingSpace,
  777. locationRanking
  778. } from "../../src/api/index";
  779. import Cookies from "js-cookie";
  780. export default {
  781. name: "index",
  782. data() {
  783. return {
  784. bookingData:[],
  785. editModel: {},
  786. // 版本号
  787. version: "3.2.1",
  788. select: "",
  789. text: "",
  790. dialogVisible: false,
  791. tableData: [],
  792. dataList:{
  793. addressName:[],
  794. boxNumber:[],
  795. bookingRanking:{
  796. text:[],
  797. textTwo:[],
  798. data:[],
  799. dataTwo:[]
  800. }
  801. },
  802. chart: [],
  803. warehouse: [],
  804. master: [],
  805. commodity: [],
  806. commoditytwo: [],
  807. name: [],
  808. tableDataTwo: [],
  809. fleetData: "",
  810. upperLeftCntrs: {},
  811. sysType: "",
  812. upperRights: [],
  813. };
  814. },
  815. filters: {
  816. statusType(val) {
  817. switch (val) {
  818. case 10:
  819. return "车队安排";
  820. break;
  821. case 20:
  822. return "司机受理";
  823. break;
  824. case 30:
  825. return "司机出车";
  826. break;
  827. case 40:
  828. return "提箱";
  829. break;
  830. case 50:
  831. return "装卸货";
  832. break;
  833. case 60:
  834. return "还卸柜";
  835. break;
  836. case 70:
  837. return "费用确认";
  838. break;
  839. default:
  840. return "回单";
  841. }
  842. },
  843. },
  844. components: {
  845. chiCard,
  846. },
  847. created() {
  848. this.getConfigKey("data_print_title").then((response) => {
  849. Cookies.set("companyName", response.msg);
  850. });
  851. queryHomeInfo().then((response) => {
  852. this.fleetData = response.data;
  853. if (response.data.upperRight.length > 0) {
  854. this.upperRights = response.data.upperRight.slice(0, 10);
  855. }
  856. this.upperLeftCntrs = response.data.upperLeftCntrs;
  857. });
  858. this.sysType = Cookies.get("sysType");
  859. // console.log(this.sysType);
  860. },
  861. activated() {
  862. this.getList();
  863. this.warehouses();
  864. this.inquiry();
  865. this.dataList.addressName = []
  866. this.dataList.boxNumber = []
  867. this.dataList.bookingRanking.text = []
  868. this.dataList.bookingRanking.textTwo = []
  869. this.dataList.bookingRanking.data = []
  870. this.dataList.bookingRanking.dataTwo = []
  871. if (Number(this.sysType) === 3){
  872. boxDistribution().then(res =>{
  873. res.data.forEach(item =>{
  874. this.dataList.addressName.push(item.addressName)
  875. this.dataList.boxNumber.push(item.boxNumber)
  876. })
  877. this.boxDistribution()
  878. })
  879. bookingSpace().then(res=>{
  880. res.data.forEach(item =>{
  881. this.dataList.bookingRanking.text.push(item.corpName)
  882. this.dataList.bookingRanking.data.push({
  883. name: item.corpName,
  884. type: 'line',
  885. stack: '总量',
  886. data: [item.January, item.February, item.March, item.April, item.May, item.June, item.July,item.August,item.September,item.October,item.November,item.December]
  887. })
  888. })
  889. this.ranking()
  890. })
  891. locationRanking().then(res=>{
  892. res.data.forEach(item =>{
  893. this.dataList.bookingRanking.textTwo.push(item.corpName)
  894. this.dataList.bookingRanking.dataTwo.push({
  895. name: item.corpName,
  896. type: 'line',
  897. stack: '总量',
  898. data: [item.January, item.February, item.March, item.April, item.May, item.June, item.July,item.August,item.September,item.October,item.November,item.December]
  899. })
  900. })
  901. this.rankingTwo()
  902. })
  903. shipDynamics().then(res=>{
  904. console.log(res)
  905. this.bookingData = res.data
  906. })
  907. }
  908. },
  909. methods: {
  910. //箱分布图表
  911. ranking() {
  912. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  913. let myChart = this.$echarts.init(document.getElementById("bookingRanking"));
  914. // 绘制图表
  915. myChart.setOption({
  916. title: {
  917. text: '订舱排名(前十)',
  918. left: 'center'
  919. },
  920. tooltip: {
  921. trigger: 'axis'
  922. },
  923. legend: {
  924. orient: 'vertical',
  925. left: 'right',
  926. data: this.dataList.bookingRanking.text
  927. },
  928. grid: {
  929. left: '3%',
  930. right: '20%',
  931. bottom: '3%',
  932. containLabel: true
  933. },
  934. xAxis: {
  935. type: 'category',
  936. boundaryGap: false,
  937. data: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
  938. },
  939. yAxis: {
  940. type: 'value'
  941. },
  942. series: this.dataList.bookingRanking.data
  943. });
  944. },
  945. //箱分布图表
  946. rankingTwo() {
  947. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  948. let myChart = this.$echarts.init(document.getElementById("bookingRankingTwo"));
  949. // 绘制图表
  950. myChart.setOption({
  951. title: {
  952. text: '应收款排名(前十)',
  953. left: 'center'
  954. },
  955. tooltip: {
  956. trigger: 'axis'
  957. },
  958. legend: {
  959. orient: 'vertical',
  960. left: 'right',
  961. data: this.dataList.bookingRanking.textTwo
  962. },
  963. grid: {
  964. left: '3%',
  965. right: '20%',
  966. bottom: '3%',
  967. containLabel: true
  968. },
  969. xAxis: {
  970. type: 'category',
  971. boundaryGap: false,
  972. data: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
  973. },
  974. yAxis: {
  975. type: 'value'
  976. },
  977. series: this.dataList.bookingRanking.dataTwo
  978. });
  979. },
  980. //箱分布图表
  981. boxDistribution() {
  982. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  983. let myChart = this.$echarts.init(document.getElementById("distribution"));
  984. // 绘制图表
  985. myChart.setOption({
  986. title: {
  987. text: "箱分布",
  988. left: "center",
  989. },
  990. xAxis: {
  991. type: 'category',
  992. data: this.dataList.addressName
  993. },
  994. tooltip: {
  995. trigger: 'axis'
  996. },
  997. yAxis: {
  998. type: 'value'
  999. },
  1000. toolbox: {
  1001. feature: {
  1002. saveAsImage: {}
  1003. }
  1004. },
  1005. series: [{
  1006. data: this.dataList.boxNumber,
  1007. type: 'line'
  1008. }]
  1009. });
  1010. },
  1011. goPage(id) {
  1012. this.$router.push({
  1013. path: "/track/cabinet",
  1014. query: { id: id },
  1015. });
  1016. },
  1017. //跳转审批页面
  1018. approval(row) {
  1019. switch (row.refno2) {
  1020. case "SJRK": {
  1021. this.$router.push({
  1022. path: "/business/inStock",
  1023. query: { id: row.billId},
  1024. });
  1025. break;
  1026. }
  1027. case "SJCK": {
  1028. this.$router.push({
  1029. path: "/business/outStock",
  1030. query: { id: row.billId},
  1031. });
  1032. break;
  1033. }
  1034. case "HQZY": {
  1035. this.$router.push({
  1036. path: "/business/goodsTransfer",
  1037. query: { id: row.billId},
  1038. });
  1039. break;
  1040. }
  1041. case "CKDB": {
  1042. this.$router.push({
  1043. path: "/business/stockTransfer",
  1044. query: { id: row.billId},
  1045. });
  1046. break;
  1047. }
  1048. case "HWTG": {
  1049. this.$router.push({
  1050. path: "/business/cargoClearance",
  1051. query: { id: row.billId},
  1052. });
  1053. break;
  1054. }
  1055. case "JSCCF": {
  1056. this.$router.push({
  1057. path: "/business/agreement",
  1058. query: { data: JSON.stringify(row) },
  1059. });
  1060. break;
  1061. }
  1062. case "CCF": {
  1063. this.$router.push({
  1064. path: "/agreement/agreementStorage",
  1065. query: { data: JSON.stringify(row) },
  1066. });
  1067. break;
  1068. }
  1069. case "ZYF": {
  1070. this.$router.push({
  1071. path: "/agreement/agreementTask",
  1072. query: { data: JSON.stringify(row) },
  1073. });
  1074. break;
  1075. }
  1076. case "SF": {
  1077. this.$router.push({
  1078. path: "/finance/charge",
  1079. query: { data: JSON.stringify(row) },
  1080. });
  1081. break;
  1082. }
  1083. case "DZ": {
  1084. this.$router.push({
  1085. path: "/finance/contrast",
  1086. query: { data: JSON.stringify(row) },
  1087. });
  1088. break;
  1089. }
  1090. case "FF": {
  1091. this.$router.push({
  1092. path: "/finance/payment",
  1093. query: { data: JSON.stringify(row) },
  1094. });
  1095. break;
  1096. }
  1097. case "ApplyFP": {
  1098. this.$router.push({
  1099. path: "/finance/chargeInvoice",
  1100. query: { data: JSON.stringify(row) },
  1101. });
  1102. break;
  1103. }
  1104. case "KHDZ": {
  1105. this.$router.push({
  1106. path: "/finance/contrast",
  1107. query: { data: JSON.stringify(row) },
  1108. });
  1109. break;
  1110. }
  1111. case "KHSF": {
  1112. this.$router.push({
  1113. path: "/finance/charge",
  1114. query: { data: JSON.stringify(row) },
  1115. });
  1116. break;
  1117. }
  1118. case "KHFF": {
  1119. this.$router.push({
  1120. path: "/finance/payment",
  1121. query: { data: JSON.stringify(row) },
  1122. });
  1123. break;
  1124. }
  1125. case "KHDD": {
  1126. this.$router.push({
  1127. path: "/domesticTrade/orderInformation",
  1128. query: { list: JSON.stringify(row) },
  1129. });
  1130. break;
  1131. }
  1132. case "SJRKITEM": {
  1133. this.$router.push({
  1134. path: "/business/inStock",
  1135. query: { id: row.billId},
  1136. });
  1137. break;
  1138. }
  1139. case "SJCKITEM": {
  1140. this.$router.push({
  1141. path: "/business/outStock",
  1142. query: { id: row.billId},
  1143. });
  1144. break;
  1145. }
  1146. case "XGDD": {
  1147. this.$router.push({
  1148. path: "/domesticTrade/orderInformation",
  1149. query: {testing:JSON.stringify(row)},
  1150. });
  1151. break;
  1152. }
  1153. case "XGTJ": {
  1154. this.$router.push({
  1155. path: "/domesticTrade/orderInformation",
  1156. query: {testing:JSON.stringify(row)},
  1157. });
  1158. break;
  1159. }
  1160. case "DDSC": {
  1161. this.$router.push({
  1162. path: "/domesticTrade/orderInformation",
  1163. query: {testing:JSON.stringify(row)},
  1164. });
  1165. break;
  1166. }
  1167. default: {
  1168. return this.$message.error("未知错误,无状态");
  1169. }
  1170. }
  1171. },
  1172. inquiry() {
  1173. let data = {
  1174. actId: "",
  1175. };
  1176. inquiry(data).then((res) => {
  1177. res.data.map(e=>{
  1178. if(e.auditItem){
  1179. e.auditItem=e.auditItem.slice(0, 10)
  1180. }
  1181. })
  1182. this.tableData = res.data;
  1183. });
  1184. },
  1185. querytoDo(res) {
  1186. this.dialogVisible = true;
  1187. this.text = res;
  1188. },
  1189. handleClose(done) {
  1190. this.dialogVisible = false;
  1191. },
  1192. firstinventory(fId) {
  1193. // console.log(this.warehouse);
  1194. information(fId).then((response) => {
  1195. this.chart = response.data;
  1196. if (this.chart.whouseList.length !== 0) {
  1197. for (let index of this.chart.corpsListWhouse) {
  1198. this.master.push({
  1199. name: index.fName,
  1200. value: index.fGrossweightD,
  1201. });
  1202. this.name.push(index.fName);
  1203. }
  1204. for (let index of this.chart.goodslistWhouse) {
  1205. this.commodity.push(index.fName);
  1206. this.commoditytwo.push(index.fGrossweightD);
  1207. }
  1208. this.drawLine();
  1209. this.drawLinetwo();
  1210. this.commoDity();
  1211. } else {
  1212. this.chart = {
  1213. corpsListWhouse: [
  1214. {
  1215. balance: 0,
  1216. fCorpid: 58,
  1217. fGrossweightD: 0,
  1218. fName: "展示数据",
  1219. fTotalgross: 10000,
  1220. fWarehouseName: "展示数据",
  1221. },
  1222. ],
  1223. goodslistWhouse: [
  1224. {
  1225. balance: 0,
  1226. fGoodsid: 13,
  1227. fGrossweightD: 0,
  1228. fName: "展示商品",
  1229. fTotalgross: 10000,
  1230. fWarehouseName: "展示数据",
  1231. },
  1232. ],
  1233. whouseList: [
  1234. {
  1235. fGrossweightD: 0,
  1236. fName: "展示数据",
  1237. fTotalgross: 10000,
  1238. fWarehouseid: 36,
  1239. },
  1240. ],
  1241. };
  1242. for (let index of this.chart.corpsListWhouse) {
  1243. this.master.push({
  1244. name: index.fName,
  1245. value: index.fGrossweightD,
  1246. });
  1247. this.name.push(index.fName);
  1248. }
  1249. for (let index of this.chart.goodslistWhouse) {
  1250. this.commodity.push(index.fName);
  1251. this.commoditytwo.push(index.fGrossweightD);
  1252. }
  1253. this.drawLine();
  1254. this.drawLinetwo();
  1255. this.commoDity();
  1256. }
  1257. });
  1258. },
  1259. query() {
  1260. this.master = [];
  1261. this.commodity = [];
  1262. this.commoditytwo = [];
  1263. this.name = [];
  1264. if (this.select === "") {
  1265. return this.select;
  1266. } else {
  1267. information(this.select).then((response) => {
  1268. this.chart = response.data;
  1269. for (let index of this.chart.corpsListWhouse) {
  1270. this.master.push({
  1271. name: index.fName,
  1272. value: index.fGrossweightD,
  1273. });
  1274. this.name.push(index.fName);
  1275. }
  1276. for (let index of this.chart.goodslistWhouse) {
  1277. this.commodity.push(index.fName);
  1278. this.commoditytwo.push(index.fGrossweightD);
  1279. }
  1280. this.drawLine();
  1281. this.drawLinetwo();
  1282. this.commoDity();
  1283. });
  1284. }
  1285. },
  1286. jump(res) {
  1287. this.$router.push({ path: res });
  1288. },
  1289. //设置单元格边框
  1290. cellStyle({ row, column, rowIndex, columnIndex }) {
  1291. return "border-bottom: 1px dashed rgb(223, 230, 236)";
  1292. },
  1293. //查询消息中心
  1294. getList() {
  1295. this.loading = true;
  1296. listCorps(this.queryParams).then((response) => {
  1297. if (response.rows.length > 0) {
  1298. this.tableDataTwo = response.rows.slice(0, 10);
  1299. }
  1300. });
  1301. },
  1302. //查询仓库
  1303. warehouses() {
  1304. warehouse().then((response) => {
  1305. this.warehouse = [];
  1306. for (let index of response.rows) {
  1307. this.warehouse.push({
  1308. fName: index.fName,
  1309. fWarehouseid: index.fWarehouseid,
  1310. });
  1311. }
  1312. // console.log(this.warehouse);
  1313. this.firstinventory(this.warehouse[0].fWarehouseid);
  1314. });
  1315. },
  1316. goTarget(href) {
  1317. window.open(href, "_blank");
  1318. },
  1319. //仓库图表
  1320. drawLine() {
  1321. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1322. let myChart = this.$echarts.init(document.getElementById("box"));
  1323. // 绘制图表
  1324. myChart.setOption({
  1325. title: {
  1326. text: this.chart.whouseList[0].fName + "统计",
  1327. subtext: "实时数据",
  1328. left: "center",
  1329. },
  1330. tooltip: {
  1331. trigger: "item",
  1332. formatter: "{a} <br/>{b} : {c} ({d}%)",
  1333. },
  1334. legend: {
  1335. bottom: 10,
  1336. left: "center",
  1337. data: ["空闲库容", "占用库容"],
  1338. },
  1339. series: [
  1340. {
  1341. type: "pie",
  1342. name: "实时数据",
  1343. radius: "65%",
  1344. center: ["50%", "50%"],
  1345. selectedMode: "single",
  1346. data: [
  1347. {
  1348. label: {
  1349. backgroundColor: "#eee",
  1350. borderColor: "#777",
  1351. borderWidth: 1,
  1352. borderRadius: 4,
  1353. rich: {
  1354. title: {
  1355. color: "#eee",
  1356. align: "center",
  1357. },
  1358. abg: {
  1359. backgroundColor: "#333",
  1360. width: "100%",
  1361. align: "right",
  1362. height: 25,
  1363. borderRadius: [4, 4, 0, 0],
  1364. },
  1365. Sunny: {
  1366. height: 30,
  1367. align: "left",
  1368. },
  1369. Cloudy: {
  1370. height: 30,
  1371. align: "left",
  1372. },
  1373. Showers: {
  1374. height: 30,
  1375. align: "left",
  1376. },
  1377. weatherHead: {
  1378. color: "#333",
  1379. height: 24,
  1380. align: "left",
  1381. },
  1382. hr: {
  1383. borderColor: "#777",
  1384. width: "100%",
  1385. borderWidth: 0.5,
  1386. height: 0,
  1387. },
  1388. value: {
  1389. width: 20,
  1390. padding: [0, 20, 0, 30],
  1391. align: "left",
  1392. },
  1393. valueHead: {
  1394. color: "#333",
  1395. width: 20,
  1396. padding: [0, 20, 0, 30],
  1397. align: "center",
  1398. },
  1399. rate: {
  1400. width: 40,
  1401. align: "right",
  1402. padding: [0, 10, 0, 0],
  1403. },
  1404. rateHead: {
  1405. color: "#333",
  1406. width: 40,
  1407. align: "center",
  1408. padding: [0, 10, 0, 0],
  1409. },
  1410. },
  1411. },
  1412. },
  1413. {
  1414. value: this.chart.whouseList[0].fGrossweightD,
  1415. name: "占用库容",
  1416. },
  1417. {
  1418. value: parseFloat(
  1419. this.chart.whouseList[0].fTotalgross -
  1420. this.chart.whouseList[0].fGrossweightD
  1421. ).toFixed(1),
  1422. name: "空闲库容",
  1423. },
  1424. ],
  1425. emphasis: {
  1426. itemStyle: {
  1427. shadowBlur: 10,
  1428. shadowOffsetX: 0,
  1429. shadowColor: "rgba(0, 0, 0, 0.5)",
  1430. },
  1431. },
  1432. },
  1433. ],
  1434. });
  1435. },
  1436. drawLinetwo() {
  1437. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1438. let myChart = this.$echarts.init(document.getElementById("cargoOwner"));
  1439. // 绘制图表
  1440. myChart.setOption({
  1441. title: {
  1442. text: this.chart.whouseList[0].fName + "货权方统计",
  1443. subtext: "实时数据",
  1444. left: "center",
  1445. },
  1446. tooltip: {
  1447. trigger: "item",
  1448. formatter: "{a} <br/>{b}: {c} ({d}%)",
  1449. },
  1450. legend: {
  1451. bottom: 10,
  1452. left: "center",
  1453. data: this.name,
  1454. },
  1455. series: [
  1456. {
  1457. name: "访问来源",
  1458. type: "pie",
  1459. radius: ["40%", "60%"],
  1460. avoidLabelOverlap: false,
  1461. label: {
  1462. show: false,
  1463. position: "center",
  1464. },
  1465. emphasis: {
  1466. label: {
  1467. // show: true,
  1468. fontSize: "30",
  1469. fontWeight: "bold",
  1470. },
  1471. },
  1472. labelLine: {
  1473. show: false,
  1474. },
  1475. data: this.master,
  1476. },
  1477. ],
  1478. });
  1479. },
  1480. commoDity() {
  1481. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1482. let myChart = this.$echarts.init(document.getElementById("commoDity"));
  1483. // 绘制图表
  1484. myChart.setOption({
  1485. title: {
  1486. text: this.chart.whouseList[0].fName + "商品统计",
  1487. subtext: "实时数据",
  1488. left: "center",
  1489. },
  1490. color: ["#3398DB"],
  1491. tooltip: {
  1492. trigger: "axis",
  1493. axisPointer: {
  1494. // 坐标轴指示器,坐标轴触发有效
  1495. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  1496. },
  1497. },
  1498. grid: {
  1499. left: "3%",
  1500. right: "4%",
  1501. bottom: "3%",
  1502. containLabel: true,
  1503. },
  1504. xAxis: [
  1505. {
  1506. type: "category",
  1507. data: this.commodity,
  1508. axisTick: {
  1509. alignWithLabel: true,
  1510. },
  1511. },
  1512. ],
  1513. yAxis: [
  1514. {
  1515. type: "value",
  1516. },
  1517. ],
  1518. series: [
  1519. {
  1520. name: "实时状态",
  1521. type: "bar",
  1522. barWidth: "60%",
  1523. data: this.commoditytwo,
  1524. },
  1525. ],
  1526. });
  1527. },
  1528. },
  1529. };
  1530. </script>
  1531. <style scoped lang="scss">
  1532. .block {
  1533. width: 100%;
  1534. display: flex;
  1535. flex-wrap: wrap;
  1536. justify-content: space-around;
  1537. li:hover {
  1538. background-color: #025184;
  1539. }
  1540. li:nth-child(6),
  1541. li:nth-child(7),
  1542. li:nth-child(8),
  1543. li:nth-child(9),
  1544. li:nth-child(10) {
  1545. background-color: #2f4554;
  1546. }
  1547. li:nth-child(6):hover,
  1548. li:nth-child(7):hover,
  1549. li:nth-child(8):hover,
  1550. li:nth-child(9):hover,
  1551. li:nth-child(10):hover {
  1552. background-color: #2f4454d1;
  1553. }
  1554. li {
  1555. width: 18%;
  1556. height: 150px;
  1557. background-color: #1c84c6;
  1558. margin-left: 10px;
  1559. text-align: center;
  1560. color: #ffffff;
  1561. border-radius: 10px;
  1562. cursor: pointer;
  1563. margin-bottom: 15px;
  1564. div {
  1565. margin-top: 40px;
  1566. p {
  1567. font-size: 20px;
  1568. }
  1569. }
  1570. }
  1571. }
  1572. .home {
  1573. blockquote {
  1574. padding: 10px 20px;
  1575. margin: 0 0 20px;
  1576. font-size: 17.5px;
  1577. border-left: 5px solid #eee;
  1578. }
  1579. hr {
  1580. margin-top: 20px;
  1581. margin-bottom: 20px;
  1582. border: 0;
  1583. border-top: 1px solid #eee;
  1584. }
  1585. .col-item {
  1586. margin-bottom: 20px;
  1587. }
  1588. ul {
  1589. padding: 0;
  1590. margin: 0;
  1591. }
  1592. font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  1593. font-size: 13px;
  1594. color: #676a6c;
  1595. overflow-x: hidden;
  1596. ul {
  1597. list-style-type: none;
  1598. }
  1599. h4 {
  1600. margin-top: 0px;
  1601. }
  1602. h2 {
  1603. margin-top: 10px;
  1604. font-size: 26px;
  1605. font-weight: 100;
  1606. }
  1607. p {
  1608. margin-top: 10px;
  1609. b {
  1610. font-weight: 700;
  1611. }
  1612. }
  1613. .update-log {
  1614. ol {
  1615. display: block;
  1616. list-style-type: decimal;
  1617. margin-block-start: 1em;
  1618. margin-block-end: 1em;
  1619. margin-inline-start: 0;
  1620. margin-inline-end: 0;
  1621. padding-inline-start: 40px;
  1622. }
  1623. }
  1624. }
  1625. .home-fleet {
  1626. display: flex;
  1627. .home-left {
  1628. width: 40%;
  1629. padding: 0 10px;
  1630. }
  1631. .home-right {
  1632. width: 60%;
  1633. padding: 0 10px;
  1634. }
  1635. .content-top {
  1636. display: flex;
  1637. .content-top-left {
  1638. display: flex;
  1639. width: 50%;
  1640. height: 100px;
  1641. border-bottom: 1px solid #e6ebf5;
  1642. border-right: 1px solid #e6ebf5;
  1643. padding: 10px;
  1644. justify-content: space-between;
  1645. }
  1646. .content-top-right {
  1647. display: flex;
  1648. width: 50%;
  1649. height: 100px;
  1650. border-bottom: 1px solid #e6ebf5;
  1651. padding: 10px;
  1652. justify-content: space-between;
  1653. }
  1654. }
  1655. .content-bottom {
  1656. display: flex;
  1657. height: 81px;
  1658. border-bottom: 1px solid #e6ebf5;
  1659. padding: 10px;
  1660. justify-content: space-between;
  1661. }
  1662. .content-bottom:last-child {
  1663. border-bottom: 0px;
  1664. }
  1665. .upper-right {
  1666. padding: 10px 0;
  1667. height: 260px;
  1668. }
  1669. .upper-right2 {
  1670. padding: 10px 0;
  1671. height: 104px;
  1672. }
  1673. }
  1674. .single_line {
  1675. overflow: hidden;
  1676. text-overflow: ellipsis;
  1677. white-space: nowrap;
  1678. }
  1679. @media screen and (max-width: 920px) {
  1680. .home-fleet {
  1681. display: flex;
  1682. flex-direction: column;
  1683. .home-left {
  1684. width: 100%;
  1685. }
  1686. .home-right {
  1687. width: 100%;
  1688. }
  1689. }
  1690. }
  1691. </style>
  1692. <style lang="scss">
  1693. .text img {
  1694. max-width: 100%;
  1695. height: auto;
  1696. }
  1697. .home_stock_table {
  1698. display: flex;
  1699. width: 20%;
  1700. justify-content: center;
  1701. align-self: center;
  1702. p{
  1703. display: inline-block;
  1704. white-space: nowrap;
  1705. width: 100%;
  1706. overflow: hidden;
  1707. text-overflow:ellipsis;
  1708. }
  1709. }
  1710. .home_stock_table:hover{
  1711. color: #1c84c6;
  1712. cursor:pointer
  1713. }
  1714. .home_stock_table_right {
  1715. display: flex;
  1716. width: 20%;
  1717. justify-content: space-around;
  1718. align-self: center;
  1719. }
  1720. </style>