index.vue 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226
  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. @click="jump('/track/cabinet')"
  442. >
  443. <div style="width: 30%">{{ item.mblno }}</div>
  444. <div style="width: 20%">{{ item.carregNo }}</div>
  445. <div style="width: 15%; color: #67c23a">
  446. {{ item.orderStatus | statusType }}
  447. </div>
  448. <div
  449. style="
  450. width: 35%;
  451. overflow: hidden;
  452. text-overflow: ellipsis;
  453. white-space: nowrap;
  454. "
  455. >
  456. {{ item.corpName }}
  457. </div>
  458. </div>
  459. </div>
  460. </chi-card>
  461. <chi-card title="业务待办" iconName="el-icon-s-order" :More="true">
  462. <div slot="content" class="upper-right2">
  463. <div
  464. style="
  465. font-size: 14px;
  466. display: flex;
  467. margin: 4px 15px;
  468. border-bottom: 1px dashed #e6ebf5;
  469. "
  470. >
  471. <div style="width: 30%" class="single_line">FK221516485645</div>
  472. <div style="width: 20%" class="single_line">运费运费运费</div>
  473. <div style="width: 15%" class="single_line">李刚</div>
  474. <div style="width: 15%; color: #67c23a" class="single_line">
  475. 待审批
  476. </div>
  477. <div style="width: 20%" class="single_line">2020/10/10</div>
  478. </div>
  479. <div style="font-size: 14px; display: flex; margin: 4px 15px">
  480. <div style="width: 30%" class="single_line">FK221516485645</div>
  481. <div style="width: 20%" class="single_line">运费运费运费</div>
  482. <div style="width: 15%" class="single_line">李刚</div>
  483. <div style="width: 15%; color: #67c23a" class="single_line">
  484. 待审批
  485. </div>
  486. <div style="width: 20%" class="single_line">2020/10/10</div>
  487. </div>
  488. </div>
  489. </chi-card>
  490. <chi-card title="审核列表" iconName="el-icon-s-order" :More="true">
  491. <div slot="content" class="upper-right2">
  492. <div
  493. style="
  494. font-size: 14px;
  495. display: flex;
  496. margin: 4px 15px;
  497. border-bottom: 1px dashed #e6ebf5;
  498. "
  499. >
  500. <div style="width: 30%" class="single_line">FK221516485645</div>
  501. <div style="width: 20%" class="single_line">运费运费运费</div>
  502. <div style="width: 15%" class="single_line">李刚</div>
  503. <div style="width: 15%; color: #67c23a">待审批</div>
  504. <div style="width: 20%" class="single_line">2020/10/10</div>
  505. </div>
  506. <div style="font-size: 14px; display: flex; margin: 4px 15px">
  507. <div style="width: 30%" class="single_line">FK221516485645</div>
  508. <div style="width: 20%" class="single_line">运费运费运费</div>
  509. <div style="width: 15%" class="single_line">李刚</div>
  510. <div style="width: 15%; color: #67c23a" class="single_line">
  511. 待审批
  512. </div>
  513. <div style="width: 20%" class="single_line">2020/10/10</div>
  514. </div>
  515. </div>
  516. </chi-card>
  517. </div>
  518. </div>
  519. </div>
  520. </template>
  521. <script>
  522. import { queryHomeInfo } from "@/api/fleet/home";
  523. import chiCard from "./chiCard.vue";
  524. import {
  525. listCorps,
  526. information,
  527. warehouse,
  528. inquiry,
  529. } from "../../src/api/index";
  530. import Cookies from "js-cookie";
  531. export default {
  532. name: "index",
  533. data() {
  534. return {
  535. editModel: {},
  536. // 版本号
  537. version: "3.2.1",
  538. select: "",
  539. text: "",
  540. dialogVisible: false,
  541. tableData: [],
  542. chart: [],
  543. warehouse: [],
  544. master: [],
  545. commodity: [],
  546. commoditytwo: [],
  547. name: [],
  548. tableDataTwo: [],
  549. fleetData: "",
  550. upperLeftCntrs: {},
  551. sysType: "",
  552. upperRights: [],
  553. };
  554. },
  555. filters: {
  556. statusType(val) {
  557. switch (val) {
  558. case 10:
  559. return "车队安排";
  560. break;
  561. case 20:
  562. return "司机受理";
  563. break;
  564. case 30:
  565. return "司机出车";
  566. break;
  567. case 40:
  568. return "提箱";
  569. break;
  570. case 50:
  571. return "装卸货";
  572. break;
  573. case 60:
  574. return "还卸柜子";
  575. break;
  576. case 70:
  577. return "费用确认";
  578. break;
  579. default:
  580. return "回单";
  581. }
  582. },
  583. },
  584. components: {
  585. chiCard,
  586. },
  587. created() {
  588. queryHomeInfo().then((response) => {
  589. this.fleetData = response.data;
  590. if (response.data.upperRight.length > 0) {
  591. this.upperRights = response.data.upperRight.slice(0, 10);
  592. }
  593. this.upperLeftCntrs = response.data.upperLeftCntrs;
  594. });
  595. this.sysType = Cookies.get("sysType");
  596. console.log(this.sysType);
  597. },
  598. activated() {
  599. this.getList();
  600. this.warehouses();
  601. this.inquiry();
  602. },
  603. methods: {
  604. //跳转审批页面
  605. approval(row) {
  606. switch (row.refno2) {
  607. case "SJRK": {
  608. this.$router.push({
  609. path: "/business/inStock",
  610. query: { data: JSON.stringify(row) },
  611. });
  612. break;
  613. }
  614. case "SJCK": {
  615. this.$router.push({
  616. path: "/business/outStock",
  617. query: { data: JSON.stringify(row) },
  618. });
  619. break;
  620. }
  621. case "HQZY": {
  622. this.$router.push({
  623. path: "/business/goodsTransfer",
  624. query: { data: JSON.stringify(row) },
  625. });
  626. break;
  627. }
  628. case "CKDB": {
  629. this.$router.push({
  630. path: "/business/stockTransfer",
  631. query: { data: JSON.stringify(row) },
  632. });
  633. break;
  634. }
  635. case "HWTG": {
  636. this.$router.push({
  637. path: "/business/cargoClearance",
  638. query: { data: JSON.stringify(row) },
  639. });
  640. break;
  641. }
  642. case "JSCCF": {
  643. this.$router.push({
  644. path: "/business/agreement",
  645. query: { data: JSON.stringify(row) },
  646. });
  647. break;
  648. }
  649. case "CCF": {
  650. this.$router.push({
  651. path: "/agreement/agreementStorage",
  652. query: { data: JSON.stringify(row) },
  653. });
  654. break;
  655. }
  656. case "ZYF": {
  657. this.$router.push({
  658. path: "/agreement/agreementTask",
  659. query: { data: JSON.stringify(row) },
  660. });
  661. break;
  662. }
  663. case "SF": {
  664. this.$router.push({
  665. path: "/finance/charge",
  666. query: { data: JSON.stringify(row) },
  667. });
  668. break;
  669. }
  670. case "DZ": {
  671. this.$router.push({
  672. path: "/finance/contrast",
  673. query: { data: JSON.stringify(row) },
  674. });
  675. break;
  676. }
  677. case "FF": {
  678. this.$router.push({
  679. path: "/finance/payment",
  680. query: { data: JSON.stringify(row) },
  681. });
  682. break;
  683. }
  684. default: {
  685. return this.$message.error("未知错误,无状态");
  686. }
  687. }
  688. },
  689. inquiry() {
  690. let data = {
  691. actId: "",
  692. };
  693. inquiry(data).then((res) => {
  694. this.tableData = res.data;
  695. });
  696. },
  697. querytoDo(res) {
  698. this.dialogVisible = true;
  699. this.text = res;
  700. },
  701. handleClose(done) {
  702. this.dialogVisible = false;
  703. },
  704. firstinventory(fId) {
  705. console.log(this.warehouse);
  706. information(fId).then((response) => {
  707. this.chart = response.data;
  708. if (this.chart.whouseList.length !== 0) {
  709. for (let index of this.chart.corpsListWhouse) {
  710. this.master.push({
  711. name: index.fName,
  712. value: index.fGrossweightD,
  713. });
  714. this.name.push(index.fName);
  715. }
  716. for (let index of this.chart.goodslistWhouse) {
  717. this.commodity.push(index.fName);
  718. this.commoditytwo.push(index.fGrossweightD);
  719. }
  720. this.drawLine();
  721. this.drawLinetwo();
  722. this.commoDity();
  723. } else {
  724. this.chart = {
  725. corpsListWhouse: [
  726. {
  727. balance: 0,
  728. fCorpid: 58,
  729. fGrossweightD: 0,
  730. fName: "展示数据",
  731. fTotalgross: 10000,
  732. fWarehouseName: "展示数据",
  733. },
  734. ],
  735. goodslistWhouse: [
  736. {
  737. balance: 0,
  738. fGoodsid: 13,
  739. fGrossweightD: 0,
  740. fName: "展示商品",
  741. fTotalgross: 10000,
  742. fWarehouseName: "展示数据",
  743. },
  744. ],
  745. whouseList: [
  746. {
  747. fGrossweightD: 0,
  748. fName: "展示数据",
  749. fTotalgross: 10000,
  750. fWarehouseid: 36,
  751. },
  752. ],
  753. };
  754. for (let index of this.chart.corpsListWhouse) {
  755. this.master.push({
  756. name: index.fName,
  757. value: index.fGrossweightD,
  758. });
  759. this.name.push(index.fName);
  760. }
  761. for (let index of this.chart.goodslistWhouse) {
  762. this.commodity.push(index.fName);
  763. this.commoditytwo.push(index.fGrossweightD);
  764. }
  765. this.drawLine();
  766. this.drawLinetwo();
  767. this.commoDity();
  768. }
  769. });
  770. },
  771. query() {
  772. this.master = [];
  773. this.commodity = [];
  774. this.commoditytwo = [];
  775. this.name = [];
  776. if (this.select === "") {
  777. return this.select;
  778. } else {
  779. information(this.select).then((response) => {
  780. this.chart = response.data;
  781. for (let index of this.chart.corpsListWhouse) {
  782. this.master.push({
  783. name: index.fName,
  784. value: index.fGrossweightD,
  785. });
  786. this.name.push(index.fName);
  787. }
  788. for (let index of this.chart.goodslistWhouse) {
  789. this.commodity.push(index.fName);
  790. this.commoditytwo.push(index.fGrossweightD);
  791. }
  792. this.drawLine();
  793. this.drawLinetwo();
  794. this.commoDity();
  795. });
  796. }
  797. },
  798. jump(res) {
  799. this.$router.push({ path: res });
  800. },
  801. //设置单元格边框
  802. cellStyle({ row, column, rowIndex, columnIndex }) {
  803. return "border-bottom: 1px dashed rgb(223, 230, 236)";
  804. },
  805. //查询消息中心
  806. getList() {
  807. this.loading = true;
  808. listCorps(this.queryParams).then((response) => {
  809. this.tableDataTwo = response.rows;
  810. });
  811. },
  812. //查询仓库
  813. warehouses() {
  814. warehouse().then((response) => {
  815. this.warehouse = [];
  816. for (let index of response.rows) {
  817. this.warehouse.push({
  818. fName: index.fName,
  819. fWarehouseid: index.fWarehouseid,
  820. });
  821. }
  822. console.log(this.warehouse);
  823. this.firstinventory(this.warehouse[0].fWarehouseid);
  824. });
  825. },
  826. goTarget(href) {
  827. window.open(href, "_blank");
  828. },
  829. //仓库图表
  830. drawLine() {
  831. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  832. let myChart = this.$echarts.init(document.getElementById("box"));
  833. // 绘制图表
  834. myChart.setOption({
  835. title: {
  836. text: this.chart.whouseList[0].fName + "统计",
  837. subtext: "实时数据",
  838. left: "center",
  839. },
  840. tooltip: {
  841. trigger: "item",
  842. formatter: "{a} <br/>{b} : {c} ({d}%)",
  843. },
  844. legend: {
  845. bottom: 10,
  846. left: "center",
  847. data: ["空闲库容", "占用库容"],
  848. },
  849. series: [
  850. {
  851. type: "pie",
  852. name: "实时数据",
  853. radius: "65%",
  854. center: ["50%", "50%"],
  855. selectedMode: "single",
  856. data: [
  857. {
  858. label: {
  859. backgroundColor: "#eee",
  860. borderColor: "#777",
  861. borderWidth: 1,
  862. borderRadius: 4,
  863. rich: {
  864. title: {
  865. color: "#eee",
  866. align: "center",
  867. },
  868. abg: {
  869. backgroundColor: "#333",
  870. width: "100%",
  871. align: "right",
  872. height: 25,
  873. borderRadius: [4, 4, 0, 0],
  874. },
  875. Sunny: {
  876. height: 30,
  877. align: "left",
  878. },
  879. Cloudy: {
  880. height: 30,
  881. align: "left",
  882. },
  883. Showers: {
  884. height: 30,
  885. align: "left",
  886. },
  887. weatherHead: {
  888. color: "#333",
  889. height: 24,
  890. align: "left",
  891. },
  892. hr: {
  893. borderColor: "#777",
  894. width: "100%",
  895. borderWidth: 0.5,
  896. height: 0,
  897. },
  898. value: {
  899. width: 20,
  900. padding: [0, 20, 0, 30],
  901. align: "left",
  902. },
  903. valueHead: {
  904. color: "#333",
  905. width: 20,
  906. padding: [0, 20, 0, 30],
  907. align: "center",
  908. },
  909. rate: {
  910. width: 40,
  911. align: "right",
  912. padding: [0, 10, 0, 0],
  913. },
  914. rateHead: {
  915. color: "#333",
  916. width: 40,
  917. align: "center",
  918. padding: [0, 10, 0, 0],
  919. },
  920. },
  921. },
  922. },
  923. {
  924. value: this.chart.whouseList[0].fGrossweightD,
  925. name: "占用库容",
  926. },
  927. {
  928. value: parseFloat(
  929. this.chart.whouseList[0].fTotalgross -
  930. this.chart.whouseList[0].fGrossweightD
  931. ).toFixed(1),
  932. name: "空闲库容",
  933. },
  934. ],
  935. emphasis: {
  936. itemStyle: {
  937. shadowBlur: 10,
  938. shadowOffsetX: 0,
  939. shadowColor: "rgba(0, 0, 0, 0.5)",
  940. },
  941. },
  942. },
  943. ],
  944. });
  945. },
  946. drawLinetwo() {
  947. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  948. let myChart = this.$echarts.init(document.getElementById("cargoOwner"));
  949. // 绘制图表
  950. myChart.setOption({
  951. title: {
  952. text: this.chart.whouseList[0].fName + "货权方统计",
  953. subtext: "实时数据",
  954. left: "center",
  955. },
  956. tooltip: {
  957. trigger: "item",
  958. formatter: "{a} <br/>{b}: {c} ({d}%)",
  959. },
  960. legend: {
  961. bottom: 10,
  962. left: "center",
  963. data: this.name,
  964. },
  965. series: [
  966. {
  967. name: "访问来源",
  968. type: "pie",
  969. radius: ["40%", "60%"],
  970. avoidLabelOverlap: false,
  971. label: {
  972. show: false,
  973. position: "center",
  974. },
  975. emphasis: {
  976. label: {
  977. // show: true,
  978. fontSize: "30",
  979. fontWeight: "bold",
  980. },
  981. },
  982. labelLine: {
  983. show: false,
  984. },
  985. data: this.master,
  986. },
  987. ],
  988. });
  989. },
  990. commoDity() {
  991. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  992. let myChart = this.$echarts.init(document.getElementById("commoDity"));
  993. // 绘制图表
  994. myChart.setOption({
  995. title: {
  996. text: this.chart.whouseList[0].fName + "商品统计",
  997. subtext: "实时数据",
  998. left: "center",
  999. },
  1000. color: ["#3398DB"],
  1001. tooltip: {
  1002. trigger: "axis",
  1003. axisPointer: {
  1004. // 坐标轴指示器,坐标轴触发有效
  1005. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  1006. },
  1007. },
  1008. grid: {
  1009. left: "3%",
  1010. right: "4%",
  1011. bottom: "3%",
  1012. containLabel: true,
  1013. },
  1014. xAxis: [
  1015. {
  1016. type: "category",
  1017. data: this.commodity,
  1018. axisTick: {
  1019. alignWithLabel: true,
  1020. },
  1021. },
  1022. ],
  1023. yAxis: [
  1024. {
  1025. type: "value",
  1026. },
  1027. ],
  1028. series: [
  1029. {
  1030. name: "实时状态",
  1031. type: "bar",
  1032. barWidth: "60%",
  1033. data: this.commoditytwo,
  1034. },
  1035. ],
  1036. });
  1037. },
  1038. },
  1039. };
  1040. </script>
  1041. <style scoped lang="scss">
  1042. .block {
  1043. width: 68%;
  1044. float: left;
  1045. display: flex;
  1046. flex-wrap: wrap;
  1047. justify-content: space-around;
  1048. height: 350px;
  1049. li:hover {
  1050. background-color: #025184;
  1051. }
  1052. li:nth-child(6),
  1053. li:nth-child(7),
  1054. li:nth-child(8),
  1055. li:nth-child(9),
  1056. li:nth-child(10) {
  1057. background-color: #2f4554;
  1058. }
  1059. li:nth-child(6):hover,
  1060. li:nth-child(7):hover,
  1061. li:nth-child(8):hover,
  1062. li:nth-child(9):hover,
  1063. li:nth-child(10):hover {
  1064. background-color: #2f4454d1;
  1065. }
  1066. li {
  1067. width: 18%;
  1068. height: 150px;
  1069. background-color: #1c84c6;
  1070. margin-left: 10px;
  1071. text-align: center;
  1072. color: #ffffff;
  1073. border-radius: 10px;
  1074. cursor: pointer;
  1075. div {
  1076. margin-top: 40px;
  1077. p {
  1078. font-size: 20px;
  1079. }
  1080. }
  1081. }
  1082. }
  1083. .home {
  1084. blockquote {
  1085. padding: 10px 20px;
  1086. margin: 0 0 20px;
  1087. font-size: 17.5px;
  1088. border-left: 5px solid #eee;
  1089. }
  1090. hr {
  1091. margin-top: 20px;
  1092. margin-bottom: 20px;
  1093. border: 0;
  1094. border-top: 1px solid #eee;
  1095. }
  1096. .col-item {
  1097. margin-bottom: 20px;
  1098. }
  1099. ul {
  1100. padding: 0;
  1101. margin: 0;
  1102. }
  1103. font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  1104. font-size: 13px;
  1105. color: #676a6c;
  1106. overflow-x: hidden;
  1107. ul {
  1108. list-style-type: none;
  1109. }
  1110. h4 {
  1111. margin-top: 0px;
  1112. }
  1113. h2 {
  1114. margin-top: 10px;
  1115. font-size: 26px;
  1116. font-weight: 100;
  1117. }
  1118. p {
  1119. margin-top: 10px;
  1120. b {
  1121. font-weight: 700;
  1122. }
  1123. }
  1124. .update-log {
  1125. ol {
  1126. display: block;
  1127. list-style-type: decimal;
  1128. margin-block-start: 1em;
  1129. margin-block-end: 1em;
  1130. margin-inline-start: 0;
  1131. margin-inline-end: 0;
  1132. padding-inline-start: 40px;
  1133. }
  1134. }
  1135. }
  1136. .home-fleet {
  1137. display: flex;
  1138. .home-left {
  1139. width: 40%;
  1140. padding: 0 10px;
  1141. }
  1142. .home-right {
  1143. width: 60%;
  1144. padding: 0 10px;
  1145. }
  1146. .content-top {
  1147. display: flex;
  1148. .content-top-left {
  1149. display: flex;
  1150. width: 50%;
  1151. height: 100px;
  1152. border-bottom: 1px solid #e6ebf5;
  1153. border-right: 1px solid #e6ebf5;
  1154. padding: 10px;
  1155. justify-content: space-between;
  1156. }
  1157. .content-top-right {
  1158. display: flex;
  1159. width: 50%;
  1160. height: 100px;
  1161. border-bottom: 1px solid #e6ebf5;
  1162. padding: 10px;
  1163. justify-content: space-between;
  1164. }
  1165. }
  1166. .content-bottom {
  1167. display: flex;
  1168. height: 81px;
  1169. border-bottom: 1px solid #e6ebf5;
  1170. padding: 10px;
  1171. justify-content: space-between;
  1172. }
  1173. .upper-right {
  1174. padding: 10px 0;
  1175. height: 260px;
  1176. }
  1177. .upper-right2 {
  1178. padding: 10px 0;
  1179. height: 130px;
  1180. }
  1181. }
  1182. .single_line {
  1183. overflow: hidden;
  1184. text-overflow: ellipsis;
  1185. white-space: nowrap;
  1186. }
  1187. @media screen and (max-width: 920px) {
  1188. .home-fleet {
  1189. display: flex;
  1190. flex-direction: column;
  1191. .home-left {
  1192. width: 100%;
  1193. }
  1194. .home-right {
  1195. width: 100%;
  1196. }
  1197. }
  1198. }
  1199. </style>
  1200. <style>
  1201. .text img {
  1202. max-width: 100%;
  1203. height: auto;
  1204. }
  1205. </style>