index.vue 38 KB

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