index.vue 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318
  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">
  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')">更多></el-link>
  144. </div>
  145. </div>
  146. <div v-if="tableData.length > 0">
  147. <div
  148. style="
  149. display: flex;
  150. height: 42.6px;
  151. border-bottom: 1px dashed #dfe6ec;
  152. "
  153. v-for="(item, index) in tableData"
  154. :key="index"
  155. >
  156. <div class="home_stock_table">{{ item.refno1 }}</div>
  157. <div class="home_stock_table">
  158. {{ item.auditItem }}
  159. </div>
  160. <div class="home_stock_table">{{ item.refno3 }}</div>
  161. <div class="home_stock_table">{{ item.refno2 }}</div>
  162. <div class="home_stock_table">操作</div>
  163. </div>
  164. </div>
  165. <div
  166. v-else
  167. style="
  168. display: flex;
  169. justify-content: center;
  170. height: 213px;
  171. border-bottom: 1px solid #dfe6ec;
  172. "
  173. >
  174. <div style="align-self: center; color: #909399; font-size: 14px">
  175. 暂无数据
  176. </div>
  177. </div>
  178. </div>
  179. <!-- <el-table
  180. :data="tableData"
  181. :header-cell-style="{ borderBottom: '1px dashed #dfe6ec' }"
  182. :cell-style="cellStyle"
  183. >
  184. <el-table-column
  185. prop="refno1"
  186. :show-overflow-tooltip="true"
  187. label="委托方"
  188. ></el-table-column>
  189. <el-table-column
  190. prop="auditItem"
  191. :show-overflow-tooltip="true"
  192. label="日期"
  193. >
  194. <template slot-scope="scope">
  195. <span v-if="!scope.row.auditItem">无时间</span>
  196. <span v-else>{{ scope.row.auditItem.slice(0, 10) }}</span>
  197. </template>
  198. </el-table-column>
  199. <el-table-column
  200. prop="refno3"
  201. :show-overflow-tooltip="true"
  202. label="提单号"
  203. ></el-table-column>
  204. <el-table-column
  205. prop="refno2"
  206. :show-overflow-tooltip="true"
  207. label="业务类型"
  208. >
  209. <template slot-scope="scope">
  210. <span v-if="scope.row.refno2 === 'SJRK'">入库</span>
  211. <span v-else-if="scope.row.refno2 === 'SJCK'">出库</span>
  212. <span v-else-if="scope.row.refno2 === 'HQZY'">货转</span>
  213. <span v-else-if="scope.row.refno2 === 'CKDB'">调拨</span>
  214. <span v-else-if="scope.row.refno2 === 'CCF'">仓储费</span>
  215. <span v-else-if="scope.row.refno2 === 'HWTG'">货物通关</span>
  216. <span v-else-if="scope.row.refno2 === 'ZYF'">作业费</span>
  217. <span v-else-if="scope.row.refno2 === 'SF'">收费</span>
  218. <span v-else-if="scope.row.refno2 === 'DZ'">对账</span>
  219. <span v-else-if="scope.row.refno2 === 'FF'">付费</span>
  220. <span v-else-if="scope.row.refno2 === 'JSCCF'">计算仓储费</span>
  221. </template>
  222. </el-table-column>
  223. <el-table-column prop="address" label="操作" width="80">
  224. <template slot-scope="scope">
  225. <span style="cursor: pointer" @click="approval(scope.row)"
  226. >查看详情</span
  227. >
  228. </template>
  229. </el-table-column>
  230. </el-table> -->
  231. </div>
  232. <div style="width: 30%">
  233. <el-table
  234. :data="tableDataTwo"
  235. :header-cell-style="{ borderBottom: '1px dashed #dfe6ec' }"
  236. :cell-style="cellStyle"
  237. style="margin-left: 20px"
  238. >
  239. <el-table-column
  240. prop="noticeTitle"
  241. :show-overflow-tooltip="true"
  242. label="消息中心"
  243. />
  244. <el-table-column prop="address" label="操作" width="80">
  245. <template slot-scope="scope">
  246. <span
  247. @click="querytoDo(scope.row.noticeContent)"
  248. style="cursor: pointer"
  249. >查看详情</span
  250. >
  251. </template>
  252. </el-table-column>
  253. </el-table>
  254. </div>
  255. </div>
  256. <div style="display: flex;">
  257. <div style="width: 70%">
  258. <div
  259. id="commoDity"
  260. style="width: 100%; height: 350px; margin-left: 40px"
  261. ></div>
  262. </div>
  263. <div style="width: 30%">
  264. <div id="cargoOwner" style="width: 100%; height: 350px"></div>
  265. </div>
  266. </div>
  267. </div>
  268. <el-dialog
  269. v-if="sysType == 1"
  270. title="消息提示"
  271. :visible.sync="dialogVisible"
  272. width="80%"
  273. :before-close="handleClose"
  274. :close-on-click-modal="false"
  275. >
  276. <span
  277. v-html="text"
  278. class="text"
  279. style="max-width: 100%; height: auto"
  280. ></span>
  281. <span slot="footer" class="dialog-footer">
  282. <el-button type="primary" @click="dialogVisible = false"
  283. >关 闭</el-button
  284. >
  285. </span>
  286. </el-dialog>
  287. <div class="home-fleet" v-if="sysType == 2">
  288. <div class="home-left">
  289. <chi-card title="业务看板" iconName="el-icon-s-cooperation">
  290. <div slot="content">
  291. <div class="content-top">
  292. <div class="content-top-left">
  293. <div
  294. style="display: flex; align-self: center; margin-left: 5px"
  295. >
  296. <div style="align-self: center">
  297. <svg
  298. t="1616396514864"
  299. class="icon"
  300. viewBox="0 0 1024 1024"
  301. version="1.1"
  302. xmlns="http://www.w3.org/2000/svg"
  303. p-id="9805"
  304. width="20"
  305. height="20"
  306. >
  307. <path
  308. 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"
  309. p-id="9806"
  310. fill="#000000"
  311. ></path>
  312. </svg>
  313. </div>
  314. <div
  315. style="
  316. align-self: center;
  317. font-size: 16px;
  318. margin: 2px 0 0 5px;
  319. "
  320. >
  321. 今日新增柜数
  322. </div>
  323. </div>
  324. <div
  325. style="
  326. font-size: 36px;
  327. align-self: center;
  328. font-weight: 600;
  329. color: #014da1;
  330. "
  331. >
  332. {{ upperLeftCntrs.planQuantity }}
  333. </div>
  334. </div>
  335. <div class="content-top-right">
  336. <div
  337. style="
  338. display: flex;
  339. align-self: center;
  340. min-width: 120px;
  341. margin-left: 5px;
  342. "
  343. >
  344. <div style="align-self: center">
  345. <svg
  346. t="1616400289333"
  347. class="icon"
  348. viewBox="0 0 1024 1024"
  349. version="1.1"
  350. xmlns="http://www.w3.org/2000/svg"
  351. p-id="22417"
  352. width="20"
  353. height="20"
  354. >
  355. <path
  356. 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"
  357. p-id="22418"
  358. ></path>
  359. </svg>
  360. </div>
  361. <div
  362. style="
  363. align-self: center;
  364. font-size: 16px;
  365. margin: 2px 0 0 5px;
  366. "
  367. >
  368. 未安排柜数
  369. </div>
  370. </div>
  371. <div
  372. style="
  373. font-size: 36px;
  374. align-self: center;
  375. font-weight: 600;
  376. color: #014da1;
  377. "
  378. >
  379. {{ upperLeftCntrs.surplusQuantity }}
  380. </div>
  381. </div>
  382. </div>
  383. <div class="content-bottom">
  384. <div style="display: flex; align-self: center; margin-left: 5px">
  385. <div style="align-self: center">
  386. <svg
  387. t="1616402886142"
  388. class="icon"
  389. viewBox="0 0 1024 1024"
  390. version="1.1"
  391. xmlns="http://www.w3.org/2000/svg"
  392. p-id="31596"
  393. width="24"
  394. height="24"
  395. >
  396. <path
  397. 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"
  398. p-id="31597"
  399. ></path>
  400. <path
  401. 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"
  402. p-id="31598"
  403. ></path>
  404. </svg>
  405. </div>
  406. <div
  407. style="
  408. align-self: center;
  409. font-size: 16px;
  410. margin: 2px 0 0 5px;
  411. width: 110px;
  412. "
  413. >
  414. 今日派车数
  415. </div>
  416. </div>
  417. <div
  418. style="
  419. font-size: 36px;
  420. align-self: center;
  421. font-weight: 600;
  422. color: #014da1;
  423. "
  424. >
  425. {{ fleetData.upperLeftCarQuantity }}
  426. </div>
  427. <div style="align-self: center; color: #409eff">派车详情></div>
  428. </div>
  429. <div class="content-bottom">
  430. <div
  431. style="
  432. display: flex;
  433. align-self: center;
  434. min-width: 120px;
  435. margin-left: 5px;
  436. "
  437. >
  438. <div style="align-self: center">
  439. <svg
  440. t="1616402771353"
  441. class="icon"
  442. viewBox="0 0 1048 1024"
  443. version="1.1"
  444. xmlns="http://www.w3.org/2000/svg"
  445. p-id="29149"
  446. width="20"
  447. height="20"
  448. >
  449. <path
  450. 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"
  451. p-id="29150"
  452. ></path>
  453. </svg>
  454. </div>
  455. <div
  456. style="
  457. align-self: center;
  458. font-size: 16px;
  459. margin: 2px 0 0 5px;
  460. width: 110px;
  461. "
  462. >
  463. 可用车辆数
  464. </div>
  465. </div>
  466. <div
  467. style="
  468. font-size: 36px;
  469. align-self: center;
  470. font-weight: 600;
  471. color: #014da1;
  472. "
  473. >
  474. {{ fleetData.upperLeftOldCarQuantity }}
  475. </div>
  476. <div style="align-self: center; color: #409eff">派车详情></div>
  477. </div>
  478. </div>
  479. </chi-card>
  480. <chi-card
  481. title="新闻公告"
  482. iconName="el-icon-s-cooperation"
  483. :More="true"
  484. >
  485. <div slot="content" style="height: 260px">
  486. <div
  487. style="padding: 4px 15px; font-size: 14px"
  488. v-for="(item, index) in tableDataTwo"
  489. :key="index"
  490. :style="{
  491. backgroundColor: index % 2 == 0 ? '#fafbfd' : '#FFFFFF',
  492. }"
  493. >
  494. {{ item.noticeTitle }}
  495. </div>
  496. </div>
  497. </chi-card>
  498. </div>
  499. <div class="home-right">
  500. <chi-card title="运行车辆" iconName="el-icon-s-order" :More="true">
  501. <div slot="content" class="upper-right">
  502. <div
  503. style="display: flex; padding: 4px 15px; font-size: 14px"
  504. v-for="(item, index) in upperRights"
  505. :key="index"
  506. :style="{
  507. backgroundColor: index % 2 == 0 ? '#fafbfd' : '#FFFFFF',
  508. }"
  509. >
  510. <div style="width: 30%" @click="goPage(item.id)">
  511. <el-link type="primary" :underline="false">{{
  512. item.mblno
  513. }}</el-link>
  514. </div>
  515. <div style="width: 20%">{{ item.carregNo }}</div>
  516. <div style="width: 15%; color: #67c23a">
  517. {{ item.orderStatus | statusType }}
  518. </div>
  519. <div
  520. style="
  521. width: 35%;
  522. overflow: hidden;
  523. text-overflow: ellipsis;
  524. white-space: nowrap;
  525. "
  526. >
  527. {{ item.corpName }}
  528. </div>
  529. </div>
  530. </div>
  531. </chi-card>
  532. <chi-card title="业务待办" iconName="el-icon-s-order" :More="true">
  533. <div slot="content" class="upper-right2">
  534. <div
  535. style="
  536. font-size: 14px;
  537. display: flex;
  538. margin: 4px 15px;
  539. border-bottom: 1px dashed #e6ebf5;
  540. "
  541. >
  542. <div style="width: 30%" class="single_line">FK221516485645</div>
  543. <div style="width: 20%" class="single_line">运费运费运费</div>
  544. <div style="width: 15%" class="single_line">李刚</div>
  545. <div style="width: 15%; color: #67c23a" class="single_line">
  546. 待审批
  547. </div>
  548. <div style="width: 20%" class="single_line">2020/10/10</div>
  549. </div>
  550. <div style="font-size: 14px; display: flex; margin: 4px 15px">
  551. <div style="width: 30%" class="single_line">FK221516485645</div>
  552. <div style="width: 20%" class="single_line">运费运费运费</div>
  553. <div style="width: 15%" class="single_line">李刚</div>
  554. <div style="width: 15%; color: #67c23a" class="single_line">
  555. 待审批
  556. </div>
  557. <div style="width: 20%" class="single_line">2020/10/10</div>
  558. </div>
  559. </div>
  560. </chi-card>
  561. <chi-card title="审核列表" iconName="el-icon-s-order" :More="true">
  562. <div slot="content" class="upper-right2">
  563. <div
  564. style="
  565. font-size: 14px;
  566. display: flex;
  567. margin: 4px 15px;
  568. border-bottom: 1px dashed #e6ebf5;
  569. "
  570. >
  571. <div style="width: 30%" class="single_line">FK221516485645</div>
  572. <div style="width: 20%" class="single_line">运费运费运费</div>
  573. <div style="width: 15%" class="single_line">李刚</div>
  574. <div style="width: 15%; color: #67c23a">待审批</div>
  575. <div style="width: 20%" class="single_line">2020/10/10</div>
  576. </div>
  577. <div style="font-size: 14px; display: flex; margin: 4px 15px">
  578. <div style="width: 30%" class="single_line">FK221516485645</div>
  579. <div style="width: 20%" class="single_line">运费运费运费</div>
  580. <div style="width: 15%" class="single_line">李刚</div>
  581. <div style="width: 15%; color: #67c23a" class="single_line">
  582. 待审批
  583. </div>
  584. <div style="width: 20%" class="single_line">2020/10/10</div>
  585. </div>
  586. </div>
  587. </chi-card>
  588. </div>
  589. </div>
  590. </div>
  591. </template>
  592. <script>
  593. import { queryHomeInfo } from "@/api/fleet/home";
  594. import chiCard from "./chiCard.vue";
  595. import {
  596. listCorps,
  597. information,
  598. warehouse,
  599. inquiry,
  600. } from "../../src/api/index";
  601. import Cookies from "js-cookie";
  602. export default {
  603. name: "index",
  604. data() {
  605. return {
  606. editModel: {},
  607. // 版本号
  608. version: "3.2.1",
  609. select: "",
  610. text: "",
  611. dialogVisible: false,
  612. tableData: [],
  613. chart: [],
  614. warehouse: [],
  615. master: [],
  616. commodity: [],
  617. commoditytwo: [],
  618. name: [],
  619. tableDataTwo: [],
  620. fleetData: "",
  621. upperLeftCntrs: {},
  622. sysType: "",
  623. upperRights: [],
  624. };
  625. },
  626. filters: {
  627. statusType(val) {
  628. switch (val) {
  629. case 10:
  630. return "车队安排";
  631. break;
  632. case 20:
  633. return "司机受理";
  634. break;
  635. case 30:
  636. return "司机出车";
  637. break;
  638. case 40:
  639. return "提箱";
  640. break;
  641. case 50:
  642. return "装卸货";
  643. break;
  644. case 60:
  645. return "还卸柜";
  646. break;
  647. case 70:
  648. return "费用确认";
  649. break;
  650. default:
  651. return "回单";
  652. }
  653. },
  654. },
  655. components: {
  656. chiCard,
  657. },
  658. created() {
  659. queryHomeInfo().then((response) => {
  660. this.fleetData = response.data;
  661. if (response.data.upperRight.length > 0) {
  662. this.upperRights = response.data.upperRight.slice(0, 10);
  663. }
  664. this.upperLeftCntrs = response.data.upperLeftCntrs;
  665. });
  666. this.sysType = Cookies.get("sysType");
  667. console.log(this.sysType);
  668. },
  669. activated() {
  670. this.getList();
  671. this.warehouses();
  672. this.inquiry();
  673. },
  674. methods: {
  675. goPage(id) {
  676. this.$router.push({
  677. path: "/track/cabinet",
  678. query: { id: id },
  679. });
  680. },
  681. //跳转审批页面
  682. approval(row) {
  683. switch (row.refno2) {
  684. case "SJRK": {
  685. this.$router.push({
  686. path: "/business/inStock",
  687. query: { data: JSON.stringify(row) },
  688. });
  689. break;
  690. }
  691. case "SJCK": {
  692. this.$router.push({
  693. path: "/business/outStock",
  694. query: { data: JSON.stringify(row) },
  695. });
  696. break;
  697. }
  698. case "HQZY": {
  699. this.$router.push({
  700. path: "/business/goodsTransfer",
  701. query: { data: JSON.stringify(row) },
  702. });
  703. break;
  704. }
  705. case "CKDB": {
  706. this.$router.push({
  707. path: "/business/stockTransfer",
  708. query: { data: JSON.stringify(row) },
  709. });
  710. break;
  711. }
  712. case "HWTG": {
  713. this.$router.push({
  714. path: "/business/cargoClearance",
  715. query: { data: JSON.stringify(row) },
  716. });
  717. break;
  718. }
  719. case "JSCCF": {
  720. this.$router.push({
  721. path: "/business/agreement",
  722. query: { data: JSON.stringify(row) },
  723. });
  724. break;
  725. }
  726. case "CCF": {
  727. this.$router.push({
  728. path: "/agreement/agreementStorage",
  729. query: { data: JSON.stringify(row) },
  730. });
  731. break;
  732. }
  733. case "ZYF": {
  734. this.$router.push({
  735. path: "/agreement/agreementTask",
  736. query: { data: JSON.stringify(row) },
  737. });
  738. break;
  739. }
  740. case "SF": {
  741. this.$router.push({
  742. path: "/finance/charge",
  743. query: { data: JSON.stringify(row) },
  744. });
  745. break;
  746. }
  747. case "DZ": {
  748. this.$router.push({
  749. path: "/finance/contrast",
  750. query: { data: JSON.stringify(row) },
  751. });
  752. break;
  753. }
  754. case "FF": {
  755. this.$router.push({
  756. path: "/finance/payment",
  757. query: { data: JSON.stringify(row) },
  758. });
  759. break;
  760. }
  761. default: {
  762. return this.$message.error("未知错误,无状态");
  763. }
  764. }
  765. },
  766. inquiry() {
  767. let data = {
  768. actId: "",
  769. };
  770. inquiry(data).then((res) => {
  771. this.tableData = res.data;
  772. });
  773. },
  774. querytoDo(res) {
  775. this.dialogVisible = true;
  776. this.text = res;
  777. },
  778. handleClose(done) {
  779. this.dialogVisible = false;
  780. },
  781. firstinventory(fId) {
  782. console.log(this.warehouse);
  783. information(fId).then((response) => {
  784. this.chart = response.data;
  785. if (this.chart.whouseList.length !== 0) {
  786. for (let index of this.chart.corpsListWhouse) {
  787. this.master.push({
  788. name: index.fName,
  789. value: index.fGrossweightD,
  790. });
  791. this.name.push(index.fName);
  792. }
  793. for (let index of this.chart.goodslistWhouse) {
  794. this.commodity.push(index.fName);
  795. this.commoditytwo.push(index.fGrossweightD);
  796. }
  797. this.drawLine();
  798. this.drawLinetwo();
  799. this.commoDity();
  800. } else {
  801. this.chart = {
  802. corpsListWhouse: [
  803. {
  804. balance: 0,
  805. fCorpid: 58,
  806. fGrossweightD: 0,
  807. fName: "展示数据",
  808. fTotalgross: 10000,
  809. fWarehouseName: "展示数据",
  810. },
  811. ],
  812. goodslistWhouse: [
  813. {
  814. balance: 0,
  815. fGoodsid: 13,
  816. fGrossweightD: 0,
  817. fName: "展示商品",
  818. fTotalgross: 10000,
  819. fWarehouseName: "展示数据",
  820. },
  821. ],
  822. whouseList: [
  823. {
  824. fGrossweightD: 0,
  825. fName: "展示数据",
  826. fTotalgross: 10000,
  827. fWarehouseid: 36,
  828. },
  829. ],
  830. };
  831. for (let index of this.chart.corpsListWhouse) {
  832. this.master.push({
  833. name: index.fName,
  834. value: index.fGrossweightD,
  835. });
  836. this.name.push(index.fName);
  837. }
  838. for (let index of this.chart.goodslistWhouse) {
  839. this.commodity.push(index.fName);
  840. this.commoditytwo.push(index.fGrossweightD);
  841. }
  842. this.drawLine();
  843. this.drawLinetwo();
  844. this.commoDity();
  845. }
  846. });
  847. },
  848. query() {
  849. this.master = [];
  850. this.commodity = [];
  851. this.commoditytwo = [];
  852. this.name = [];
  853. if (this.select === "") {
  854. return this.select;
  855. } else {
  856. information(this.select).then((response) => {
  857. this.chart = response.data;
  858. for (let index of this.chart.corpsListWhouse) {
  859. this.master.push({
  860. name: index.fName,
  861. value: index.fGrossweightD,
  862. });
  863. this.name.push(index.fName);
  864. }
  865. for (let index of this.chart.goodslistWhouse) {
  866. this.commodity.push(index.fName);
  867. this.commoditytwo.push(index.fGrossweightD);
  868. }
  869. this.drawLine();
  870. this.drawLinetwo();
  871. this.commoDity();
  872. });
  873. }
  874. },
  875. jump(res) {
  876. this.$router.push({ path: res });
  877. },
  878. //设置单元格边框
  879. cellStyle({ row, column, rowIndex, columnIndex }) {
  880. return "border-bottom: 1px dashed rgb(223, 230, 236)";
  881. },
  882. //查询消息中心
  883. getList() {
  884. this.loading = true;
  885. listCorps(this.queryParams).then((response) => {
  886. if(response.rows.length>0){
  887. this.tableDataTwo = response.rows.slice(0, 10);
  888. }
  889. });
  890. },
  891. //查询仓库
  892. warehouses() {
  893. warehouse().then((response) => {
  894. this.warehouse = [];
  895. for (let index of response.rows) {
  896. this.warehouse.push({
  897. fName: index.fName,
  898. fWarehouseid: index.fWarehouseid,
  899. });
  900. }
  901. console.log(this.warehouse);
  902. this.firstinventory(this.warehouse[0].fWarehouseid);
  903. });
  904. },
  905. goTarget(href) {
  906. window.open(href, "_blank");
  907. },
  908. //仓库图表
  909. drawLine() {
  910. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  911. let myChart = this.$echarts.init(document.getElementById("box"));
  912. // 绘制图表
  913. myChart.setOption({
  914. title: {
  915. text: this.chart.whouseList[0].fName + "统计",
  916. subtext: "实时数据",
  917. left: "center",
  918. },
  919. tooltip: {
  920. trigger: "item",
  921. formatter: "{a} <br/>{b} : {c} ({d}%)",
  922. },
  923. legend: {
  924. bottom: 10,
  925. left: "center",
  926. data: ["空闲库容", "占用库容"],
  927. },
  928. series: [
  929. {
  930. type: "pie",
  931. name: "实时数据",
  932. radius: "65%",
  933. center: ["50%", "50%"],
  934. selectedMode: "single",
  935. data: [
  936. {
  937. label: {
  938. backgroundColor: "#eee",
  939. borderColor: "#777",
  940. borderWidth: 1,
  941. borderRadius: 4,
  942. rich: {
  943. title: {
  944. color: "#eee",
  945. align: "center",
  946. },
  947. abg: {
  948. backgroundColor: "#333",
  949. width: "100%",
  950. align: "right",
  951. height: 25,
  952. borderRadius: [4, 4, 0, 0],
  953. },
  954. Sunny: {
  955. height: 30,
  956. align: "left",
  957. },
  958. Cloudy: {
  959. height: 30,
  960. align: "left",
  961. },
  962. Showers: {
  963. height: 30,
  964. align: "left",
  965. },
  966. weatherHead: {
  967. color: "#333",
  968. height: 24,
  969. align: "left",
  970. },
  971. hr: {
  972. borderColor: "#777",
  973. width: "100%",
  974. borderWidth: 0.5,
  975. height: 0,
  976. },
  977. value: {
  978. width: 20,
  979. padding: [0, 20, 0, 30],
  980. align: "left",
  981. },
  982. valueHead: {
  983. color: "#333",
  984. width: 20,
  985. padding: [0, 20, 0, 30],
  986. align: "center",
  987. },
  988. rate: {
  989. width: 40,
  990. align: "right",
  991. padding: [0, 10, 0, 0],
  992. },
  993. rateHead: {
  994. color: "#333",
  995. width: 40,
  996. align: "center",
  997. padding: [0, 10, 0, 0],
  998. },
  999. },
  1000. },
  1001. },
  1002. {
  1003. value: this.chart.whouseList[0].fGrossweightD,
  1004. name: "占用库容",
  1005. },
  1006. {
  1007. value: parseFloat(
  1008. this.chart.whouseList[0].fTotalgross -
  1009. this.chart.whouseList[0].fGrossweightD
  1010. ).toFixed(1),
  1011. name: "空闲库容",
  1012. },
  1013. ],
  1014. emphasis: {
  1015. itemStyle: {
  1016. shadowBlur: 10,
  1017. shadowOffsetX: 0,
  1018. shadowColor: "rgba(0, 0, 0, 0.5)",
  1019. },
  1020. },
  1021. },
  1022. ],
  1023. });
  1024. },
  1025. drawLinetwo() {
  1026. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1027. let myChart = this.$echarts.init(document.getElementById("cargoOwner"));
  1028. // 绘制图表
  1029. myChart.setOption({
  1030. title: {
  1031. text: this.chart.whouseList[0].fName + "货权方统计",
  1032. subtext: "实时数据",
  1033. left: "center",
  1034. },
  1035. tooltip: {
  1036. trigger: "item",
  1037. formatter: "{a} <br/>{b}: {c} ({d}%)",
  1038. },
  1039. legend: {
  1040. bottom: 10,
  1041. left: "center",
  1042. data: this.name,
  1043. },
  1044. series: [
  1045. {
  1046. name: "访问来源",
  1047. type: "pie",
  1048. radius: ["40%", "60%"],
  1049. avoidLabelOverlap: false,
  1050. label: {
  1051. show: false,
  1052. position: "center",
  1053. },
  1054. emphasis: {
  1055. label: {
  1056. // show: true,
  1057. fontSize: "30",
  1058. fontWeight: "bold",
  1059. },
  1060. },
  1061. labelLine: {
  1062. show: false,
  1063. },
  1064. data: this.master,
  1065. },
  1066. ],
  1067. });
  1068. },
  1069. commoDity() {
  1070. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1071. let myChart = this.$echarts.init(document.getElementById("commoDity"));
  1072. // 绘制图表
  1073. myChart.setOption({
  1074. title: {
  1075. text: this.chart.whouseList[0].fName + "商品统计",
  1076. subtext: "实时数据",
  1077. left: "center",
  1078. },
  1079. color: ["#3398DB"],
  1080. tooltip: {
  1081. trigger: "axis",
  1082. axisPointer: {
  1083. // 坐标轴指示器,坐标轴触发有效
  1084. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  1085. },
  1086. },
  1087. grid: {
  1088. left: "3%",
  1089. right: "4%",
  1090. bottom: "3%",
  1091. containLabel: true,
  1092. },
  1093. xAxis: [
  1094. {
  1095. type: "category",
  1096. data: this.commodity,
  1097. axisTick: {
  1098. alignWithLabel: true,
  1099. },
  1100. },
  1101. ],
  1102. yAxis: [
  1103. {
  1104. type: "value",
  1105. },
  1106. ],
  1107. series: [
  1108. {
  1109. name: "实时状态",
  1110. type: "bar",
  1111. barWidth: "60%",
  1112. data: this.commoditytwo,
  1113. },
  1114. ],
  1115. });
  1116. },
  1117. },
  1118. };
  1119. </script>
  1120. <style scoped lang="scss">
  1121. .block {
  1122. width: 100%;
  1123. display: flex;
  1124. flex-wrap: wrap;
  1125. justify-content: space-around;
  1126. li:hover {
  1127. background-color: #025184;
  1128. }
  1129. li:nth-child(6),
  1130. li:nth-child(7),
  1131. li:nth-child(8),
  1132. li:nth-child(9),
  1133. li:nth-child(10) {
  1134. background-color: #2f4554;
  1135. }
  1136. li:nth-child(6):hover,
  1137. li:nth-child(7):hover,
  1138. li:nth-child(8):hover,
  1139. li:nth-child(9):hover,
  1140. li:nth-child(10):hover {
  1141. background-color: #2f4454d1;
  1142. }
  1143. li {
  1144. width: 18%;
  1145. height: 150px;
  1146. background-color: #1c84c6;
  1147. margin-left: 10px;
  1148. text-align: center;
  1149. color: #ffffff;
  1150. border-radius: 10px;
  1151. cursor: pointer;
  1152. margin-bottom: 15px;
  1153. div {
  1154. margin-top: 40px;
  1155. p {
  1156. font-size: 20px;
  1157. }
  1158. }
  1159. }
  1160. }
  1161. .home {
  1162. blockquote {
  1163. padding: 10px 20px;
  1164. margin: 0 0 20px;
  1165. font-size: 17.5px;
  1166. border-left: 5px solid #eee;
  1167. }
  1168. hr {
  1169. margin-top: 20px;
  1170. margin-bottom: 20px;
  1171. border: 0;
  1172. border-top: 1px solid #eee;
  1173. }
  1174. .col-item {
  1175. margin-bottom: 20px;
  1176. }
  1177. ul {
  1178. padding: 0;
  1179. margin: 0;
  1180. }
  1181. font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  1182. font-size: 13px;
  1183. color: #676a6c;
  1184. overflow-x: hidden;
  1185. ul {
  1186. list-style-type: none;
  1187. }
  1188. h4 {
  1189. margin-top: 0px;
  1190. }
  1191. h2 {
  1192. margin-top: 10px;
  1193. font-size: 26px;
  1194. font-weight: 100;
  1195. }
  1196. p {
  1197. margin-top: 10px;
  1198. b {
  1199. font-weight: 700;
  1200. }
  1201. }
  1202. .update-log {
  1203. ol {
  1204. display: block;
  1205. list-style-type: decimal;
  1206. margin-block-start: 1em;
  1207. margin-block-end: 1em;
  1208. margin-inline-start: 0;
  1209. margin-inline-end: 0;
  1210. padding-inline-start: 40px;
  1211. }
  1212. }
  1213. }
  1214. .home-fleet {
  1215. display: flex;
  1216. .home-left {
  1217. width: 40%;
  1218. padding: 0 10px;
  1219. }
  1220. .home-right {
  1221. width: 60%;
  1222. padding: 0 10px;
  1223. }
  1224. .content-top {
  1225. display: flex;
  1226. .content-top-left {
  1227. display: flex;
  1228. width: 50%;
  1229. height: 100px;
  1230. border-bottom: 1px solid #e6ebf5;
  1231. border-right: 1px solid #e6ebf5;
  1232. padding: 10px;
  1233. justify-content: space-between;
  1234. }
  1235. .content-top-right {
  1236. display: flex;
  1237. width: 50%;
  1238. height: 100px;
  1239. border-bottom: 1px solid #e6ebf5;
  1240. padding: 10px;
  1241. justify-content: space-between;
  1242. }
  1243. }
  1244. .content-bottom {
  1245. display: flex;
  1246. height: 81px;
  1247. border-bottom: 1px solid #e6ebf5;
  1248. padding: 10px;
  1249. justify-content: space-between;
  1250. }
  1251. .content-bottom:last-child{
  1252. border-bottom: 0px;
  1253. }
  1254. .upper-right {
  1255. padding: 10px 0;
  1256. height: 260px;
  1257. }
  1258. .upper-right2 {
  1259. padding: 10px 0;
  1260. height: 104px;
  1261. }
  1262. }
  1263. .single_line {
  1264. overflow: hidden;
  1265. text-overflow: ellipsis;
  1266. white-space: nowrap;
  1267. }
  1268. @media screen and (max-width: 920px) {
  1269. .home-fleet {
  1270. display: flex;
  1271. flex-direction: column;
  1272. .home-left {
  1273. width: 100%;
  1274. }
  1275. .home-right {
  1276. width: 100%;
  1277. }
  1278. }
  1279. }
  1280. </style>
  1281. <style>
  1282. .text img {
  1283. max-width: 100%;
  1284. height: auto;
  1285. }
  1286. .home_stock_table {
  1287. display: flex;
  1288. width: 20%;
  1289. justify-content: center;
  1290. align-self: center;
  1291. }
  1292. .home_stock_table_right {
  1293. display: flex;
  1294. width: 20%;
  1295. justify-content: space-around;
  1296. align-self: center;
  1297. }
  1298. </style>