index.vue 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799
  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. @seeMore="jumpMoreNews"
  513. >
  514. <div slot="content" style="height: 260px;" class="jingrun-news">
  515. <div
  516. style="padding: 4px 15px; font-size: 14px"
  517. v-for="(item, index) in tableDataTwo"
  518. :key="index"
  519. :style="{
  520. backgroundColor: index % 2 == 0 ? '#fafbfd' : '#FFFFFF',
  521. }"
  522. @click="openNewsDetails(item.noticeId)"
  523. >
  524. <span style="cursor: pointer">{{ item.noticeTitle }}</span>
  525. </div>
  526. </div>
  527. </chi-card>
  528. </div>
  529. <el-dialog
  530. title="新闻公告"
  531. :visible.sync="newsVisible"
  532. width="700px"
  533. v-dialogDrag
  534. :close-on-click-modal="false">
  535. <h3>{{ newsDetails.noticeTitle }}</h3>
  536. <p class="html-box" v-html="newsDetails.noticeContent"></p>
  537. <span slot="footer">
  538. <el-button @click="newsVisible = false">关闭</el-button>
  539. </span>
  540. </el-dialog>
  541. <div class="home-right">
  542. <chi-card title="运行车辆" iconName="el-icon-s-order" :More="true">
  543. <div slot="content" class="upper-right">
  544. <div
  545. style="display: flex; padding: 4px 15px; font-size: 14px"
  546. v-for="(item, index) in upperRights"
  547. :key="index"
  548. :style="{
  549. backgroundColor: index % 2 == 0 ? '#fafbfd' : '#FFFFFF',
  550. }"
  551. >
  552. <div style="width: 30%" @click="goPage(item.id)">
  553. <el-link type="primary" :underline="false">{{
  554. item.mblno
  555. }}</el-link>
  556. </div>
  557. <div style="width: 20%">{{ item.carregNo }}</div>
  558. <div style="width: 15%; color: #67c23a">
  559. {{ item.orderStatus | statusType }}
  560. </div>
  561. <div
  562. style="
  563. width: 35%;
  564. overflow: hidden;
  565. text-overflow: ellipsis;
  566. white-space: nowrap;
  567. "
  568. >
  569. {{ item.corpName }}
  570. </div>
  571. </div>
  572. </div>
  573. </chi-card>
  574. <chi-card title="业务待办" iconName="el-icon-s-order" :More="true">
  575. <div slot="content" class="upper-right2">
  576. <div
  577. style="
  578. font-size: 14px;
  579. display: flex;
  580. margin: 4px 15px;
  581. border-bottom: 1px dashed #e6ebf5;
  582. "
  583. >
  584. <div style="width: 30%" class="single_line">FK221516485645</div>
  585. <div style="width: 20%" class="single_line">运费运费运费</div>
  586. <div style="width: 15%" class="single_line">李刚</div>
  587. <div style="width: 15%; color: #67c23a" class="single_line">
  588. 待审批
  589. </div>
  590. <div style="width: 20%" class="single_line">2020/10/10</div>
  591. </div>
  592. <div style="font-size: 14px; display: flex; margin: 4px 15px">
  593. <div style="width: 30%" class="single_line">FK221516485645</div>
  594. <div style="width: 20%" class="single_line">运费运费运费</div>
  595. <div style="width: 15%" class="single_line">李刚</div>
  596. <div style="width: 15%; color: #67c23a" class="single_line">
  597. 待审批
  598. </div>
  599. <div style="width: 20%" class="single_line">2020/10/10</div>
  600. </div>
  601. </div>
  602. </chi-card>
  603. <!-- <chi-card title="审核列表" iconName="el-icon-s-order" :More="true">-->
  604. <!-- <div slot="content" class="upper-right2">-->
  605. <!-- <div-->
  606. <!-- style="-->
  607. <!-- font-size: 14px;-->
  608. <!-- display: flex;-->
  609. <!-- margin: 4px 15px;-->
  610. <!-- border-bottom: 1px dashed #e6ebf5;-->
  611. <!-- "-->
  612. <!-- >-->
  613. <!-- <div style="width: 30%" class="single_line">FK221516485645</div>-->
  614. <!-- <div style="width: 20%" class="single_line">运费运费运费</div>-->
  615. <!-- <div style="width: 15%" class="single_line">李刚</div>-->
  616. <!-- <div style="width: 15%; color: #67c23a">待审批</div>-->
  617. <!-- <div style="width: 20%" class="single_line">2020/10/10</div>-->
  618. <!-- </div>-->
  619. <!-- <div style="font-size: 14px; display: flex; margin: 4px 15px">-->
  620. <!-- <div style="width: 30%" class="single_line">FK221516485645</div>-->
  621. <!-- <div style="width: 20%" class="single_line">运费运费运费</div>-->
  622. <!-- <div style="width: 15%" class="single_line">李刚</div>-->
  623. <!-- <div style="width: 15%; color: #67c23a" class="single_line">-->
  624. <!-- 待审批-->
  625. <!-- </div>-->
  626. <!-- <div style="width: 20%" class="single_line">2020/10/10</div>-->
  627. <!-- </div>-->
  628. <!-- </div>-->
  629. <!-- </chi-card>-->
  630. </div>
  631. </div>
  632. <div v-if="sysType == 3">
  633. <div style="width: 100%;">
  634. <div id="distribution" style="width: 100%;height: 300px;"></div>
  635. </div>
  636. <div style="width: 100%;margin: 20px auto;float: left">
  637. <el-table :data="bookingData">
  638. <el-table-column prop="fName" align="center" label="船名"/>
  639. <el-table-column prop="fNo" align="center" label="航次"/>
  640. <el-table-column prop="portofloadName" align="center" label="起运港"/>
  641. <el-table-column prop="distinationName" align="center" label="目的港"/>
  642. <el-table-column prop="fWeight" align="center" label="容量TEU"/>
  643. <el-table-column prop="boxNumber" align="center" label="实装TEU"/>
  644. <el-table-column prop="fETD" align="center" label="预计开船">
  645. <template slot-scope="scope">
  646. <span>{{ scope.row.fETD?scope.row.fETD.slice(0, 10):'' }}</span>
  647. </template>
  648. </el-table-column>
  649. <el-table-column prop="fETA" align="center" label="预计到港">
  650. <template slot-scope="scope">
  651. <span>{{ scope.row.fETA?scope.row.fETA.slice(0, 10):'' }}</span>
  652. </template>
  653. </el-table-column>
  654. <el-table-column prop="fATD" align="center" label="实际开船">
  655. <template slot-scope="scope">
  656. <span>{{ scope.row.fATD?scope.row.fATD.slice(0, 10):'' }}</span>
  657. </template>
  658. </el-table-column>
  659. <el-table-column prop="fATA" align="center" label="实际到港">
  660. <template slot-scope="scope">
  661. <span>{{ scope.row.fATA?scope.row.fATA.slice(0, 10):'' }}</span>
  662. </template>
  663. </el-table-column>
  664. <el-table-column prop="fDays" align="center" label="航程"/>
  665. </el-table>
  666. </div>
  667. <div style="width: 100%;">
  668. <div style="width: 49%;float: left">
  669. <div
  670. style="
  671. display: flex;
  672. color: #515a6e;
  673. font-weight: 600;
  674. background-color: #f8f8f9;
  675. height: 42.6px;
  676. font-size: 13px;
  677. justify-content: space-between;
  678. border-bottom: 1px dashed #dfe6ec;
  679. "
  680. >
  681. <div class="home_stock_table">委托方</div>
  682. <div class="home_stock_table">日期</div>
  683. <div class="home_stock_table">提单号</div>
  684. <div class="home_stock_table">业务类型</div>
  685. <div class="home_stock_table_right">
  686. <div>操作</div>
  687. <el-link type="primary" @click="jump('/morePage/stock')"
  688. >更多></el-link
  689. >
  690. </div>
  691. </div>
  692. <div v-if="tableData.length > 0">
  693. <div
  694. style="display: flex;height: 42.6px;border-bottom: 1px dashed #dfe6ec;"
  695. v-for="(item, index) in tableData"
  696. :key="index"
  697. v-if="index < 5"
  698. >
  699. <div class="home_stock_table"> <p>{{ item.refno1 }}</p></div>
  700. <div class="home_stock_table">
  701. {{ item.sendTime ? item.sendTime.slice(0, 10):'' }}
  702. </div>
  703. <div class="home_stock_table" @click="approval(item)"><p>{{ item.refno3}}</p></div>
  704. <div class="home_stock_table">
  705. <span v-if="item.refno2 === 'SJRK'">入库</span>
  706. <span v-else-if="item.refno2 === 'SJCK'">出库</span>
  707. <span v-else-if="item.refno2 === 'HQZY'">货转</span>
  708. <span v-else-if="item.refno2 === 'CKDB'">调拨</span>
  709. <span v-else-if="item.refno2 === 'CCF'">仓储费</span>
  710. <span v-else-if="item.refno2 === 'HWTG'">货物通关</span>
  711. <span v-else-if="item.refno2 === 'ZYF'">作业费</span>
  712. <span v-else-if="item.refno2 === 'SF'">收费</span>
  713. <span v-else-if="item.refno2 === 'DZ'">对账</span>
  714. <span v-else-if="item.refno2 === 'FF'">付费</span>
  715. <span v-else-if="item.refno2 === 'JSCCF'">计算仓储费</span>
  716. <span v-else-if="item.refno2 === 'KHDZ'">凯和对账</span>
  717. <span v-else-if="item.refno2 === 'KHSF'">凯和收费</span>
  718. <span v-else-if="item.refno2 === 'KHFF'">凯和付费</span>
  719. <span v-else-if="item.refno2 === 'ApplyFP'">凯和开票申请</span>
  720. <span v-else-if="item.refno2 === 'KHDD'">凯和订单</span>
  721. <span v-else-if="item.refno2 === 'SE'">下单配船</span>
  722. <span v-else-if="item.refno2 === 'SJRKITEM'">入库明细审批</span>
  723. <span v-else-if="item.refno2 === 'SJCKITEM'">出库明细审批</span>
  724. <span v-else-if="item.refno2 === 'XGDD'">申请变更</span>
  725. <span v-else-if="item.refno2 === 'XGTJ'">提交变更</span>
  726. <span v-else-if="item.refno2 === 'DDSC'">申请删单</span>
  727. </div>
  728. <div class="home_stock_table" @click="approval(item)">
  729. 立即审批
  730. </div>
  731. </div>
  732. </div>
  733. <div
  734. v-else
  735. style="
  736. display: flex;
  737. justify-content: center;
  738. height: 213px;
  739. border-bottom: 1px solid #dfe6ec;
  740. "
  741. >
  742. <div style="align-self: center; color: #909399; font-size: 14px">
  743. 暂无数据
  744. </div>
  745. </div>
  746. </div>
  747. <div style="width: 49%;float: right">
  748. <el-table
  749. :data="tableDataTwo"
  750. :header-cell-style="{ borderBottom: '1px dashed #dfe6ec' }"
  751. :cell-style="cellStyle"
  752. style="margin-left: 20px"
  753. >
  754. <el-table-column
  755. prop="noticeTitle"
  756. :show-overflow-tooltip="true"
  757. label="消息中心"
  758. />
  759. <el-table-column prop="address" label="操作" width="80">
  760. <template slot-scope="scope">
  761. <span
  762. @click="querytoDo(scope.row.noticeContent)"
  763. style="cursor: pointer"
  764. >查看详情</span
  765. >
  766. </template>
  767. </el-table-column>
  768. </el-table>
  769. </div>
  770. </div>
  771. <div style="width: 100%;margin: 10px auto;float: left">
  772. <div id="bookingRanking" style="width: 100%;height: 300px;"></div>
  773. </div>
  774. <div style="width: 100%;margin: 10px auto;float: left">
  775. <div id="bookingRankingTwo" style="width: 100%;height: 300px;"></div>
  776. </div>
  777. </div>
  778. </div>
  779. </template>
  780. <script>
  781. import { queryHomeInfo } from "@/api/fleet/home";
  782. import chiCard from "./chiCard.vue";
  783. import {
  784. listCorps,
  785. information,
  786. warehouse,
  787. inquiry,
  788. boxDistribution,
  789. shipDynamics,
  790. bookingSpace,
  791. locationRanking
  792. } from "../../src/api/index";
  793. import Cookies from "js-cookie";
  794. export default {
  795. name: "index",
  796. data() {
  797. return {
  798. bookingData:[],
  799. editModel: {},
  800. // 版本号
  801. version: "3.2.1",
  802. select: "",
  803. text: "",
  804. dialogVisible: false,
  805. tableData: [],
  806. dataList:{
  807. addressName:[],
  808. boxNumber:[],
  809. bookingRanking:{
  810. text:[],
  811. textTwo:[],
  812. data:[],
  813. dataTwo:[]
  814. }
  815. },
  816. chart: [],
  817. warehouse: [],
  818. master: [],
  819. commodity: [],
  820. commoditytwo: [],
  821. name: [],
  822. tableDataTwo: [],
  823. fleetData: "",
  824. upperLeftCntrs: {},
  825. sysType: "",
  826. upperRights: [],
  827. // 新闻公告详情弹窗
  828. newsVisible: false,
  829. // 新闻公告内容
  830. newsDetails: {
  831. noticeTitle: '',
  832. noticeContent: ''
  833. },
  834. };
  835. },
  836. filters: {
  837. statusType(val) {
  838. switch (val) {
  839. case 10:
  840. return "车队安排";
  841. break;
  842. case 20:
  843. return "司机受理";
  844. break;
  845. case 30:
  846. return "司机出车";
  847. break;
  848. case 40:
  849. return "提箱";
  850. break;
  851. case 50:
  852. return "装卸货";
  853. break;
  854. case 60:
  855. return "还卸柜";
  856. break;
  857. case 70:
  858. return "费用确认";
  859. break;
  860. default:
  861. return "回单";
  862. }
  863. },
  864. },
  865. components: {
  866. chiCard,
  867. },
  868. created() {
  869. this.getConfigKey("data_print_title").then((response) => {
  870. Cookies.set("companyName", response.msg);
  871. });
  872. this.sysType = Cookies.get("sysType");
  873. if (this.sysType == 2) {
  874. queryHomeInfo().then((response) => {
  875. this.fleetData = response.data;
  876. if (response.data.upperRight.length > 0) {
  877. this.upperRights = response.data.upperRight.slice(0, 10);
  878. }
  879. this.upperLeftCntrs = response.data.upperLeftCntrs;
  880. });
  881. }
  882. // console.log(this.sysType);
  883. },
  884. activated() {
  885. this.getList();
  886. this.warehouses();
  887. this.inquiry();
  888. this.dataList.addressName = []
  889. this.dataList.boxNumber = []
  890. this.dataList.bookingRanking.text = []
  891. this.dataList.bookingRanking.textTwo = []
  892. this.dataList.bookingRanking.data = []
  893. this.dataList.bookingRanking.dataTwo = []
  894. if (Number(this.sysType) === 3){
  895. boxDistribution().then(res =>{
  896. res.data.forEach(item =>{
  897. this.dataList.addressName.push(item.addressName)
  898. this.dataList.boxNumber.push(item.boxNumber)
  899. })
  900. this.boxDistribution()
  901. })
  902. let l = 0
  903. bookingSpace().then(res=>{
  904. res.data.forEach(item =>{
  905. this.dataList.bookingRanking.text.push(item.corpName)
  906. this.dataList.bookingRanking.data.push({
  907. name: item.corpName,
  908. type: 'line',
  909. stack: l,
  910. 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]
  911. })
  912. })
  913. l++
  914. this.ranking()
  915. })
  916. locationRanking().then(res=>{
  917. let i = 0
  918. res.data.forEach(item =>{
  919. this.dataList.bookingRanking.textTwo.push(item.corpName)
  920. this.dataList.bookingRanking.dataTwo.push({
  921. name: item.corpName,
  922. type: 'line',
  923. stack: i,
  924. 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]
  925. })
  926. i++
  927. })
  928. console.log(this.dataList.bookingRanking.textTwo)
  929. console.log(this.dataList.bookingRanking.dataTwo)
  930. this.rankingTwo()
  931. })
  932. shipDynamics().then(res=>{
  933. console.log(res)
  934. this.bookingData = res.data
  935. })
  936. }
  937. },
  938. methods: {
  939. //箱分布图表
  940. ranking() {
  941. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  942. let myChart = this.$echarts.init(document.getElementById("bookingRanking"));
  943. // 绘制图表
  944. myChart.setOption({
  945. title: {
  946. text: '订舱排名(前十)',
  947. left: 'center'
  948. },
  949. tooltip: {
  950. trigger: 'axis'
  951. },
  952. legend: {
  953. orient: 'vertical',
  954. left: 'right',
  955. data: this.dataList.bookingRanking.text
  956. },
  957. grid: {
  958. left: '3%',
  959. right: '20%',
  960. bottom: '3%',
  961. containLabel: true
  962. },
  963. xAxis: {
  964. type: 'category',
  965. boundaryGap: false,
  966. data: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
  967. },
  968. yAxis: {
  969. type: 'value'
  970. },
  971. series: this.dataList.bookingRanking.data
  972. });
  973. },
  974. //箱分布图表
  975. rankingTwo() {
  976. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  977. let myChart = this.$echarts.init(document.getElementById("bookingRankingTwo"));
  978. // 绘制图表
  979. myChart.setOption({
  980. title: {
  981. text: '应收款排名(前十)',
  982. left: 'center'
  983. },
  984. tooltip: {
  985. trigger: 'axis'
  986. },
  987. legend: {
  988. orient: 'vertical',
  989. left: 'right',
  990. data: this.dataList.bookingRanking.textTwo
  991. },
  992. grid: {
  993. left: '3%',
  994. right: '20%',
  995. bottom: '3%',
  996. containLabel: true
  997. },
  998. xAxis: {
  999. type: 'category',
  1000. boundaryGap: false,
  1001. data: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
  1002. },
  1003. yAxis: {
  1004. type: 'value'
  1005. },
  1006. series: this.dataList.bookingRanking.dataTwo
  1007. });
  1008. },
  1009. //箱分布图表
  1010. boxDistribution() {
  1011. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1012. let myChart = this.$echarts.init(document.getElementById("distribution"));
  1013. // 绘制图表
  1014. myChart.setOption({
  1015. title: {
  1016. text: "箱分布",
  1017. left: "center",
  1018. },
  1019. xAxis: {
  1020. type: 'category',
  1021. data: this.dataList.addressName
  1022. },
  1023. tooltip: {
  1024. trigger: 'axis'
  1025. },
  1026. yAxis: {
  1027. type: 'value'
  1028. },
  1029. toolbox: {
  1030. feature: {
  1031. saveAsImage: {}
  1032. }
  1033. },
  1034. series: [{
  1035. data: this.dataList.boxNumber,
  1036. type: 'line'
  1037. }]
  1038. });
  1039. },
  1040. goPage(id) {
  1041. this.$router.push({
  1042. path: "/track/cabinet",
  1043. query: { id: id },
  1044. });
  1045. },
  1046. //跳转审批页面
  1047. approval(row) {
  1048. switch (row.refno2) {
  1049. case "SJRK": {
  1050. this.$router.push({
  1051. path: "/business/inStock",
  1052. query: { id: row.billId},
  1053. });
  1054. break;
  1055. }
  1056. case "SJCK": {
  1057. this.$router.push({
  1058. path: "/business/outStock",
  1059. query: { id: row.billId},
  1060. });
  1061. break;
  1062. }
  1063. case "HQZY": {
  1064. this.$router.push({
  1065. path: "/business/goodsTransfer",
  1066. query: { id: row.billId},
  1067. });
  1068. break;
  1069. }
  1070. case "CKDB": {
  1071. this.$router.push({
  1072. path: "/business/stockTransfer",
  1073. query: { id: row.billId},
  1074. });
  1075. break;
  1076. }
  1077. case "HWTG": {
  1078. this.$router.push({
  1079. path: "/business/cargoClearance",
  1080. query: { id: row.billId},
  1081. });
  1082. break;
  1083. }
  1084. case "JSCCF": {
  1085. this.$router.push({
  1086. path: "/business/agreement",
  1087. query: { data: JSON.stringify(row) },
  1088. });
  1089. break;
  1090. }
  1091. case "CCF": {
  1092. this.$router.push({
  1093. path: "/agreement/agreementStorage",
  1094. query: { data: JSON.stringify(row) },
  1095. });
  1096. break;
  1097. }
  1098. case "ZYF": {
  1099. this.$router.push({
  1100. path: "/agreement/agreementTask",
  1101. query: { data: JSON.stringify(row) },
  1102. });
  1103. break;
  1104. }
  1105. case "SF": {
  1106. this.$router.push({
  1107. path: "/finance/charge",
  1108. query: { data: JSON.stringify(row) },
  1109. });
  1110. break;
  1111. }
  1112. case "DZ": {
  1113. this.$router.push({
  1114. path: "/finance/contrast",
  1115. query: { data: JSON.stringify(row) },
  1116. });
  1117. break;
  1118. }
  1119. case "FF": {
  1120. this.$router.push({
  1121. path: "/finance/payment",
  1122. query: { data: JSON.stringify(row) },
  1123. });
  1124. break;
  1125. }
  1126. case "ApplyFP": {
  1127. this.$router.push({
  1128. path: "/finance/chargeInvoice",
  1129. query: { data: JSON.stringify(row) },
  1130. });
  1131. break;
  1132. }
  1133. case "KHDZ": {
  1134. this.$router.push({
  1135. path: "/finance/contrast",
  1136. query: { data: JSON.stringify(row) },
  1137. });
  1138. break;
  1139. }
  1140. case "KHSF": {
  1141. this.$router.push({
  1142. path: "/finance/charge",
  1143. query: { data: JSON.stringify(row) },
  1144. });
  1145. break;
  1146. }
  1147. case "KHFF": {
  1148. this.$router.push({
  1149. path: "/finance/payment",
  1150. query: { data: JSON.stringify(row) },
  1151. });
  1152. break;
  1153. }
  1154. case "KHDD": {
  1155. this.$router.push({
  1156. path: "/domesticTrade/orderInformation",
  1157. query: { list: JSON.stringify(row) },
  1158. });
  1159. break;
  1160. }
  1161. case "SJRKITEM": {
  1162. this.$router.push({
  1163. path: "/business/inStock",
  1164. query: { id: row.billId},
  1165. });
  1166. break;
  1167. }
  1168. case "SJCKITEM": {
  1169. this.$router.push({
  1170. path: "/business/outStock",
  1171. query: { id: row.billId},
  1172. });
  1173. break;
  1174. }
  1175. case "XGDD": {
  1176. this.$router.push({
  1177. path: "/domesticTrade/orderInformation",
  1178. query: {testing:JSON.stringify(row)},
  1179. });
  1180. break;
  1181. }
  1182. case "XGTJ": {
  1183. this.$router.push({
  1184. path: "/domesticTrade/orderInformation",
  1185. query: {testing:JSON.stringify(row)},
  1186. });
  1187. break;
  1188. }
  1189. case "DDSC": {
  1190. this.$router.push({
  1191. path: "/domesticTrade/orderInformation",
  1192. query: {testing:JSON.stringify(row)},
  1193. });
  1194. break;
  1195. }
  1196. default: {
  1197. return this.$message.error("未知错误,无状态");
  1198. }
  1199. }
  1200. },
  1201. inquiry() {
  1202. let data = {
  1203. actId: "",
  1204. };
  1205. inquiry(data).then((res) => {
  1206. res.data.map(e=>{
  1207. if(e.auditItem){
  1208. e.auditItem=e.auditItem.slice(0, 10)
  1209. }
  1210. })
  1211. this.tableData = res.data;
  1212. });
  1213. },
  1214. querytoDo(res) {
  1215. this.dialogVisible = true;
  1216. this.text = res;
  1217. },
  1218. handleClose(done) {
  1219. this.dialogVisible = false;
  1220. },
  1221. firstinventory(fId) {
  1222. // console.log(this.warehouse);
  1223. information(fId).then((response) => {
  1224. this.chart = response.data;
  1225. if (this.chart.whouseList.length !== 0) {
  1226. for (let index of this.chart.corpsListWhouse) {
  1227. this.master.push({
  1228. name: index.fName,
  1229. value: index.fGrossweightD,
  1230. });
  1231. this.name.push(index.fName);
  1232. }
  1233. for (let index of this.chart.goodslistWhouse) {
  1234. this.commodity.push(index.fName);
  1235. this.commoditytwo.push(index.fGrossweightD);
  1236. }
  1237. this.drawLine();
  1238. this.drawLinetwo();
  1239. this.commoDity();
  1240. } else {
  1241. this.chart = {
  1242. corpsListWhouse: [
  1243. {
  1244. balance: 0,
  1245. fCorpid: 58,
  1246. fGrossweightD: 0,
  1247. fName: "展示数据",
  1248. fTotalgross: 10000,
  1249. fWarehouseName: "展示数据",
  1250. },
  1251. ],
  1252. goodslistWhouse: [
  1253. {
  1254. balance: 0,
  1255. fGoodsid: 13,
  1256. fGrossweightD: 0,
  1257. fName: "展示商品",
  1258. fTotalgross: 10000,
  1259. fWarehouseName: "展示数据",
  1260. },
  1261. ],
  1262. whouseList: [
  1263. {
  1264. fGrossweightD: 0,
  1265. fName: "展示数据",
  1266. fTotalgross: 10000,
  1267. fWarehouseid: 36,
  1268. },
  1269. ],
  1270. };
  1271. for (let index of this.chart.corpsListWhouse) {
  1272. this.master.push({
  1273. name: index.fName,
  1274. value: index.fGrossweightD,
  1275. });
  1276. this.name.push(index.fName);
  1277. }
  1278. for (let index of this.chart.goodslistWhouse) {
  1279. this.commodity.push(index.fName);
  1280. this.commoditytwo.push(index.fGrossweightD);
  1281. }
  1282. this.drawLine();
  1283. this.drawLinetwo();
  1284. this.commoDity();
  1285. }
  1286. });
  1287. },
  1288. query() {
  1289. this.master = [];
  1290. this.commodity = [];
  1291. this.commoditytwo = [];
  1292. this.name = [];
  1293. if (this.select === "") {
  1294. return this.select;
  1295. } else {
  1296. information(this.select).then((response) => {
  1297. this.chart = response.data;
  1298. for (let index of this.chart.corpsListWhouse) {
  1299. this.master.push({
  1300. name: index.fName,
  1301. value: index.fGrossweightD,
  1302. });
  1303. this.name.push(index.fName);
  1304. }
  1305. for (let index of this.chart.goodslistWhouse) {
  1306. this.commodity.push(index.fName);
  1307. this.commoditytwo.push(index.fGrossweightD);
  1308. }
  1309. this.drawLine();
  1310. this.drawLinetwo();
  1311. this.commoDity();
  1312. });
  1313. }
  1314. },
  1315. jump(res) {
  1316. this.$router.push({ path: res });
  1317. },
  1318. //设置单元格边框
  1319. cellStyle({ row, column, rowIndex, columnIndex }) {
  1320. return "border-bottom: 1px dashed rgb(223, 230, 236)";
  1321. },
  1322. //查询消息中心
  1323. getList() {
  1324. this.loading = true;
  1325. listCorps(this.queryParams).then((response) => {
  1326. if (response.rows.length > 0) {
  1327. // this.tableDataTwo = response.rows.slice(0, 10);
  1328. this.tableDataTwo = response.rows
  1329. }
  1330. });
  1331. },
  1332. //查询仓库
  1333. warehouses() {
  1334. warehouse().then((response) => {
  1335. this.warehouse = [];
  1336. for (let index of response.rows) {
  1337. this.warehouse.push({
  1338. fName: index.fName,
  1339. fWarehouseid: index.fWarehouseid,
  1340. });
  1341. }
  1342. // console.log(this.warehouse);
  1343. this.firstinventory(this.warehouse[0].fWarehouseid);
  1344. });
  1345. },
  1346. goTarget(href) {
  1347. window.open(href, "_blank");
  1348. },
  1349. //仓库图表
  1350. drawLine() {
  1351. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1352. let myChart = this.$echarts.init(document.getElementById("box"));
  1353. // 绘制图表
  1354. myChart.setOption({
  1355. title: {
  1356. text: this.chart.whouseList[0].fName + "统计",
  1357. subtext: "实时数据",
  1358. left: "center",
  1359. },
  1360. tooltip: {
  1361. trigger: "item",
  1362. formatter: "{a} <br/>{b} : {c} ({d}%)",
  1363. },
  1364. legend: {
  1365. bottom: 10,
  1366. left: "center",
  1367. data: ["空闲库容", "占用库容"],
  1368. },
  1369. series: [
  1370. {
  1371. type: "pie",
  1372. name: "实时数据",
  1373. radius: "65%",
  1374. center: ["50%", "50%"],
  1375. selectedMode: "single",
  1376. data: [
  1377. {
  1378. label: {
  1379. backgroundColor: "#eee",
  1380. borderColor: "#777",
  1381. borderWidth: 1,
  1382. borderRadius: 4,
  1383. rich: {
  1384. title: {
  1385. color: "#eee",
  1386. align: "center",
  1387. },
  1388. abg: {
  1389. backgroundColor: "#333",
  1390. width: "100%",
  1391. align: "right",
  1392. height: 25,
  1393. borderRadius: [4, 4, 0, 0],
  1394. },
  1395. Sunny: {
  1396. height: 30,
  1397. align: "left",
  1398. },
  1399. Cloudy: {
  1400. height: 30,
  1401. align: "left",
  1402. },
  1403. Showers: {
  1404. height: 30,
  1405. align: "left",
  1406. },
  1407. weatherHead: {
  1408. color: "#333",
  1409. height: 24,
  1410. align: "left",
  1411. },
  1412. hr: {
  1413. borderColor: "#777",
  1414. width: "100%",
  1415. borderWidth: 0.5,
  1416. height: 0,
  1417. },
  1418. value: {
  1419. width: 20,
  1420. padding: [0, 20, 0, 30],
  1421. align: "left",
  1422. },
  1423. valueHead: {
  1424. color: "#333",
  1425. width: 20,
  1426. padding: [0, 20, 0, 30],
  1427. align: "center",
  1428. },
  1429. rate: {
  1430. width: 40,
  1431. align: "right",
  1432. padding: [0, 10, 0, 0],
  1433. },
  1434. rateHead: {
  1435. color: "#333",
  1436. width: 40,
  1437. align: "center",
  1438. padding: [0, 10, 0, 0],
  1439. },
  1440. },
  1441. },
  1442. },
  1443. {
  1444. value: this.chart.whouseList[0].fGrossweightD,
  1445. name: "占用库容",
  1446. },
  1447. {
  1448. value: parseFloat(
  1449. this.chart.whouseList[0].fTotalgross -
  1450. this.chart.whouseList[0].fGrossweightD
  1451. ).toFixed(1),
  1452. name: "空闲库容",
  1453. },
  1454. ],
  1455. emphasis: {
  1456. itemStyle: {
  1457. shadowBlur: 10,
  1458. shadowOffsetX: 0,
  1459. shadowColor: "rgba(0, 0, 0, 0.5)",
  1460. },
  1461. },
  1462. },
  1463. ],
  1464. });
  1465. },
  1466. drawLinetwo() {
  1467. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1468. let myChart = this.$echarts.init(document.getElementById("cargoOwner"));
  1469. // 绘制图表
  1470. myChart.setOption({
  1471. title: {
  1472. text: this.chart.whouseList[0].fName + "货权方统计",
  1473. subtext: "实时数据",
  1474. left: "center",
  1475. },
  1476. tooltip: {
  1477. trigger: "item",
  1478. formatter: "{a} <br/>{b}: {c} ({d}%)",
  1479. },
  1480. legend: {
  1481. bottom: 10,
  1482. left: "center",
  1483. data: this.name,
  1484. },
  1485. series: [
  1486. {
  1487. name: "访问来源",
  1488. type: "pie",
  1489. radius: ["40%", "60%"],
  1490. avoidLabelOverlap: false,
  1491. label: {
  1492. show: false,
  1493. position: "center",
  1494. },
  1495. emphasis: {
  1496. label: {
  1497. // show: true,
  1498. fontSize: "30",
  1499. fontWeight: "bold",
  1500. },
  1501. },
  1502. labelLine: {
  1503. show: false,
  1504. },
  1505. data: this.master,
  1506. },
  1507. ],
  1508. });
  1509. },
  1510. commoDity() {
  1511. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1512. let myChart = this.$echarts.init(document.getElementById("commoDity"));
  1513. // 绘制图表
  1514. myChart.setOption({
  1515. title: {
  1516. text: this.chart.whouseList[0].fName + "商品统计",
  1517. subtext: "实时数据",
  1518. left: "center",
  1519. },
  1520. color: ["#3398DB"],
  1521. tooltip: {
  1522. trigger: "axis",
  1523. axisPointer: {
  1524. // 坐标轴指示器,坐标轴触发有效
  1525. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  1526. },
  1527. },
  1528. grid: {
  1529. left: "3%",
  1530. right: "4%",
  1531. bottom: "3%",
  1532. containLabel: true,
  1533. },
  1534. xAxis: [
  1535. {
  1536. type: "category",
  1537. data: this.commodity,
  1538. axisTick: {
  1539. alignWithLabel: true,
  1540. },
  1541. },
  1542. ],
  1543. yAxis: [
  1544. {
  1545. type: "value",
  1546. },
  1547. ],
  1548. series: [
  1549. {
  1550. name: "实时状态",
  1551. type: "bar",
  1552. barWidth: "60%",
  1553. data: this.commoditytwo,
  1554. },
  1555. ],
  1556. });
  1557. },
  1558. openNewsDetails(id) {
  1559. this.tableDataTwo.forEach(item => {
  1560. if (item.noticeId === id) {
  1561. this.newsDetails.noticeTitle = item.noticeTitle;
  1562. this.newsDetails.noticeContent = item.noticeContent
  1563. }
  1564. })
  1565. this.newsVisible = true
  1566. },
  1567. // 跳转到更多公告页面
  1568. jumpMoreNews() {
  1569. this.$router.push({
  1570. path: "/notice/seeMore",
  1571. });
  1572. },
  1573. },
  1574. };
  1575. </script>
  1576. <style scoped lang="scss">
  1577. .block {
  1578. width: 100%;
  1579. display: flex;
  1580. flex-wrap: wrap;
  1581. justify-content: space-around;
  1582. li:hover {
  1583. background-color: #025184;
  1584. }
  1585. li:nth-child(6),
  1586. li:nth-child(7),
  1587. li:nth-child(8),
  1588. li:nth-child(9),
  1589. li:nth-child(10) {
  1590. background-color: #2f4554;
  1591. }
  1592. li:nth-child(6):hover,
  1593. li:nth-child(7):hover,
  1594. li:nth-child(8):hover,
  1595. li:nth-child(9):hover,
  1596. li:nth-child(10):hover {
  1597. background-color: #2f4454d1;
  1598. }
  1599. li {
  1600. width: 18%;
  1601. height: 150px;
  1602. background-color: #1c84c6;
  1603. margin-left: 10px;
  1604. text-align: center;
  1605. color: #ffffff;
  1606. border-radius: 10px;
  1607. cursor: pointer;
  1608. margin-bottom: 15px;
  1609. div {
  1610. margin-top: 40px;
  1611. p {
  1612. font-size: 20px;
  1613. }
  1614. }
  1615. }
  1616. }
  1617. .home {
  1618. blockquote {
  1619. padding: 10px 20px;
  1620. margin: 0 0 20px;
  1621. font-size: 17.5px;
  1622. border-left: 5px solid #eee;
  1623. }
  1624. hr {
  1625. margin-top: 20px;
  1626. margin-bottom: 20px;
  1627. border: 0;
  1628. border-top: 1px solid #eee;
  1629. }
  1630. .col-item {
  1631. margin-bottom: 20px;
  1632. }
  1633. ul {
  1634. padding: 0;
  1635. margin: 0;
  1636. }
  1637. font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  1638. font-size: 13px;
  1639. color: #676a6c;
  1640. overflow-x: hidden;
  1641. ul {
  1642. list-style-type: none;
  1643. }
  1644. h4 {
  1645. margin-top: 0px;
  1646. }
  1647. h2 {
  1648. margin-top: 10px;
  1649. font-size: 26px;
  1650. font-weight: 100;
  1651. }
  1652. p {
  1653. margin-top: 10px;
  1654. b {
  1655. font-weight: 700;
  1656. }
  1657. }
  1658. .update-log {
  1659. ol {
  1660. display: block;
  1661. list-style-type: decimal;
  1662. margin-block-start: 1em;
  1663. margin-block-end: 1em;
  1664. margin-inline-start: 0;
  1665. margin-inline-end: 0;
  1666. padding-inline-start: 40px;
  1667. }
  1668. }
  1669. }
  1670. .home-fleet {
  1671. display: flex;
  1672. .home-left {
  1673. width: 40%;
  1674. padding: 0 10px;
  1675. }
  1676. .home-right {
  1677. width: 60%;
  1678. padding: 0 10px;
  1679. }
  1680. .content-top {
  1681. display: flex;
  1682. .content-top-left {
  1683. display: flex;
  1684. width: 50%;
  1685. height: 100px;
  1686. border-bottom: 1px solid #e6ebf5;
  1687. border-right: 1px solid #e6ebf5;
  1688. padding: 10px;
  1689. justify-content: space-between;
  1690. }
  1691. .content-top-right {
  1692. display: flex;
  1693. width: 50%;
  1694. height: 100px;
  1695. border-bottom: 1px solid #e6ebf5;
  1696. padding: 10px;
  1697. justify-content: space-between;
  1698. }
  1699. }
  1700. .content-bottom {
  1701. display: flex;
  1702. height: 81px;
  1703. border-bottom: 1px solid #e6ebf5;
  1704. padding: 10px;
  1705. justify-content: space-between;
  1706. }
  1707. .content-bottom:last-child {
  1708. border-bottom: 0px;
  1709. }
  1710. .upper-right {
  1711. padding: 10px 0;
  1712. //height: 260px;
  1713. height: 417px;
  1714. }
  1715. .upper-right2 {
  1716. padding: 10px 0;
  1717. height: 104px;
  1718. }
  1719. }
  1720. .single_line {
  1721. overflow: hidden;
  1722. text-overflow: ellipsis;
  1723. white-space: nowrap;
  1724. }
  1725. @media screen and (max-width: 920px) {
  1726. .home-fleet {
  1727. display: flex;
  1728. flex-direction: column;
  1729. .home-left {
  1730. width: 100%;
  1731. }
  1732. .home-right {
  1733. width: 100%;
  1734. }
  1735. }
  1736. }
  1737. </style>
  1738. <style lang="scss">
  1739. .text img {
  1740. max-width: 100%;
  1741. height: auto;
  1742. }
  1743. .home_stock_table {
  1744. display: flex;
  1745. width: 20%;
  1746. justify-content: center;
  1747. align-self: center;
  1748. p{
  1749. display: inline-block;
  1750. white-space: nowrap;
  1751. width: 100%;
  1752. overflow: hidden;
  1753. text-overflow:ellipsis;
  1754. }
  1755. }
  1756. .home_stock_table:hover{
  1757. color: #1c84c6;
  1758. cursor:pointer
  1759. }
  1760. .home_stock_table_right {
  1761. display: flex;
  1762. width: 20%;
  1763. justify-content: space-around;
  1764. align-self: center;
  1765. }
  1766. .jingrun-news {
  1767. overflow: auto;
  1768. }
  1769. .html-box p {
  1770. width: 100%;
  1771. }
  1772. .html-box p img {
  1773. display: block;
  1774. margin: 0 auto;
  1775. max-width: 100% !important;
  1776. }
  1777. </style>