index.vue 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313
  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">更多>></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: 312px">
  486. <div
  487. style="padding: 5px 5px 0 5px; 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. this.tableDataTwo = response.rows;
  887. });
  888. },
  889. //查询仓库
  890. warehouses() {
  891. warehouse().then((response) => {
  892. this.warehouse = [];
  893. for (let index of response.rows) {
  894. this.warehouse.push({
  895. fName: index.fName,
  896. fWarehouseid: index.fWarehouseid,
  897. });
  898. }
  899. console.log(this.warehouse);
  900. this.firstinventory(this.warehouse[0].fWarehouseid);
  901. });
  902. },
  903. goTarget(href) {
  904. window.open(href, "_blank");
  905. },
  906. //仓库图表
  907. drawLine() {
  908. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  909. let myChart = this.$echarts.init(document.getElementById("box"));
  910. // 绘制图表
  911. myChart.setOption({
  912. title: {
  913. text: this.chart.whouseList[0].fName + "统计",
  914. subtext: "实时数据",
  915. left: "center",
  916. },
  917. tooltip: {
  918. trigger: "item",
  919. formatter: "{a} <br/>{b} : {c} ({d}%)",
  920. },
  921. legend: {
  922. bottom: 10,
  923. left: "center",
  924. data: ["空闲库容", "占用库容"],
  925. },
  926. series: [
  927. {
  928. type: "pie",
  929. name: "实时数据",
  930. radius: "65%",
  931. center: ["50%", "50%"],
  932. selectedMode: "single",
  933. data: [
  934. {
  935. label: {
  936. backgroundColor: "#eee",
  937. borderColor: "#777",
  938. borderWidth: 1,
  939. borderRadius: 4,
  940. rich: {
  941. title: {
  942. color: "#eee",
  943. align: "center",
  944. },
  945. abg: {
  946. backgroundColor: "#333",
  947. width: "100%",
  948. align: "right",
  949. height: 25,
  950. borderRadius: [4, 4, 0, 0],
  951. },
  952. Sunny: {
  953. height: 30,
  954. align: "left",
  955. },
  956. Cloudy: {
  957. height: 30,
  958. align: "left",
  959. },
  960. Showers: {
  961. height: 30,
  962. align: "left",
  963. },
  964. weatherHead: {
  965. color: "#333",
  966. height: 24,
  967. align: "left",
  968. },
  969. hr: {
  970. borderColor: "#777",
  971. width: "100%",
  972. borderWidth: 0.5,
  973. height: 0,
  974. },
  975. value: {
  976. width: 20,
  977. padding: [0, 20, 0, 30],
  978. align: "left",
  979. },
  980. valueHead: {
  981. color: "#333",
  982. width: 20,
  983. padding: [0, 20, 0, 30],
  984. align: "center",
  985. },
  986. rate: {
  987. width: 40,
  988. align: "right",
  989. padding: [0, 10, 0, 0],
  990. },
  991. rateHead: {
  992. color: "#333",
  993. width: 40,
  994. align: "center",
  995. padding: [0, 10, 0, 0],
  996. },
  997. },
  998. },
  999. },
  1000. {
  1001. value: this.chart.whouseList[0].fGrossweightD,
  1002. name: "占用库容",
  1003. },
  1004. {
  1005. value: parseFloat(
  1006. this.chart.whouseList[0].fTotalgross -
  1007. this.chart.whouseList[0].fGrossweightD
  1008. ).toFixed(1),
  1009. name: "空闲库容",
  1010. },
  1011. ],
  1012. emphasis: {
  1013. itemStyle: {
  1014. shadowBlur: 10,
  1015. shadowOffsetX: 0,
  1016. shadowColor: "rgba(0, 0, 0, 0.5)",
  1017. },
  1018. },
  1019. },
  1020. ],
  1021. });
  1022. },
  1023. drawLinetwo() {
  1024. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1025. let myChart = this.$echarts.init(document.getElementById("cargoOwner"));
  1026. // 绘制图表
  1027. myChart.setOption({
  1028. title: {
  1029. text: this.chart.whouseList[0].fName + "货权方统计",
  1030. subtext: "实时数据",
  1031. left: "center",
  1032. },
  1033. tooltip: {
  1034. trigger: "item",
  1035. formatter: "{a} <br/>{b}: {c} ({d}%)",
  1036. },
  1037. legend: {
  1038. bottom: 10,
  1039. left: "center",
  1040. data: this.name,
  1041. },
  1042. series: [
  1043. {
  1044. name: "访问来源",
  1045. type: "pie",
  1046. radius: ["40%", "60%"],
  1047. avoidLabelOverlap: false,
  1048. label: {
  1049. show: false,
  1050. position: "center",
  1051. },
  1052. emphasis: {
  1053. label: {
  1054. // show: true,
  1055. fontSize: "30",
  1056. fontWeight: "bold",
  1057. },
  1058. },
  1059. labelLine: {
  1060. show: false,
  1061. },
  1062. data: this.master,
  1063. },
  1064. ],
  1065. });
  1066. },
  1067. commoDity() {
  1068. // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
  1069. let myChart = this.$echarts.init(document.getElementById("commoDity"));
  1070. // 绘制图表
  1071. myChart.setOption({
  1072. title: {
  1073. text: this.chart.whouseList[0].fName + "商品统计",
  1074. subtext: "实时数据",
  1075. left: "center",
  1076. },
  1077. color: ["#3398DB"],
  1078. tooltip: {
  1079. trigger: "axis",
  1080. axisPointer: {
  1081. // 坐标轴指示器,坐标轴触发有效
  1082. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  1083. },
  1084. },
  1085. grid: {
  1086. left: "3%",
  1087. right: "4%",
  1088. bottom: "3%",
  1089. containLabel: true,
  1090. },
  1091. xAxis: [
  1092. {
  1093. type: "category",
  1094. data: this.commodity,
  1095. axisTick: {
  1096. alignWithLabel: true,
  1097. },
  1098. },
  1099. ],
  1100. yAxis: [
  1101. {
  1102. type: "value",
  1103. },
  1104. ],
  1105. series: [
  1106. {
  1107. name: "实时状态",
  1108. type: "bar",
  1109. barWidth: "60%",
  1110. data: this.commoditytwo,
  1111. },
  1112. ],
  1113. });
  1114. },
  1115. },
  1116. };
  1117. </script>
  1118. <style scoped lang="scss">
  1119. .block {
  1120. width: 100%;
  1121. display: flex;
  1122. flex-wrap: wrap;
  1123. justify-content: space-around;
  1124. li:hover {
  1125. background-color: #025184;
  1126. }
  1127. li:nth-child(6),
  1128. li:nth-child(7),
  1129. li:nth-child(8),
  1130. li:nth-child(9),
  1131. li:nth-child(10) {
  1132. background-color: #2f4554;
  1133. }
  1134. li:nth-child(6):hover,
  1135. li:nth-child(7):hover,
  1136. li:nth-child(8):hover,
  1137. li:nth-child(9):hover,
  1138. li:nth-child(10):hover {
  1139. background-color: #2f4454d1;
  1140. }
  1141. li {
  1142. width: 18%;
  1143. height: 150px;
  1144. background-color: #1c84c6;
  1145. margin-left: 10px;
  1146. text-align: center;
  1147. color: #ffffff;
  1148. border-radius: 10px;
  1149. cursor: pointer;
  1150. margin-bottom: 15px;
  1151. div {
  1152. margin-top: 40px;
  1153. p {
  1154. font-size: 20px;
  1155. }
  1156. }
  1157. }
  1158. }
  1159. .home {
  1160. blockquote {
  1161. padding: 10px 20px;
  1162. margin: 0 0 20px;
  1163. font-size: 17.5px;
  1164. border-left: 5px solid #eee;
  1165. }
  1166. hr {
  1167. margin-top: 20px;
  1168. margin-bottom: 20px;
  1169. border: 0;
  1170. border-top: 1px solid #eee;
  1171. }
  1172. .col-item {
  1173. margin-bottom: 20px;
  1174. }
  1175. ul {
  1176. padding: 0;
  1177. margin: 0;
  1178. }
  1179. font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  1180. font-size: 13px;
  1181. color: #676a6c;
  1182. overflow-x: hidden;
  1183. ul {
  1184. list-style-type: none;
  1185. }
  1186. h4 {
  1187. margin-top: 0px;
  1188. }
  1189. h2 {
  1190. margin-top: 10px;
  1191. font-size: 26px;
  1192. font-weight: 100;
  1193. }
  1194. p {
  1195. margin-top: 10px;
  1196. b {
  1197. font-weight: 700;
  1198. }
  1199. }
  1200. .update-log {
  1201. ol {
  1202. display: block;
  1203. list-style-type: decimal;
  1204. margin-block-start: 1em;
  1205. margin-block-end: 1em;
  1206. margin-inline-start: 0;
  1207. margin-inline-end: 0;
  1208. padding-inline-start: 40px;
  1209. }
  1210. }
  1211. }
  1212. .home-fleet {
  1213. display: flex;
  1214. .home-left {
  1215. width: 40%;
  1216. padding: 0 10px;
  1217. }
  1218. .home-right {
  1219. width: 60%;
  1220. padding: 0 10px;
  1221. }
  1222. .content-top {
  1223. display: flex;
  1224. .content-top-left {
  1225. display: flex;
  1226. width: 50%;
  1227. height: 100px;
  1228. border-bottom: 1px solid #e6ebf5;
  1229. border-right: 1px solid #e6ebf5;
  1230. padding: 10px;
  1231. justify-content: space-between;
  1232. }
  1233. .content-top-right {
  1234. display: flex;
  1235. width: 50%;
  1236. height: 100px;
  1237. border-bottom: 1px solid #e6ebf5;
  1238. padding: 10px;
  1239. justify-content: space-between;
  1240. }
  1241. }
  1242. .content-bottom {
  1243. display: flex;
  1244. height: 81px;
  1245. border-bottom: 1px solid #e6ebf5;
  1246. padding: 10px;
  1247. justify-content: space-between;
  1248. }
  1249. .upper-right {
  1250. padding: 10px 0;
  1251. height: 260px;
  1252. }
  1253. .upper-right2 {
  1254. padding: 10px 0;
  1255. height: 130px;
  1256. }
  1257. }
  1258. .single_line {
  1259. overflow: hidden;
  1260. text-overflow: ellipsis;
  1261. white-space: nowrap;
  1262. }
  1263. @media screen and (max-width: 920px) {
  1264. .home-fleet {
  1265. display: flex;
  1266. flex-direction: column;
  1267. .home-left {
  1268. width: 100%;
  1269. }
  1270. .home-right {
  1271. width: 100%;
  1272. }
  1273. }
  1274. }
  1275. </style>
  1276. <style>
  1277. .text img {
  1278. max-width: 100%;
  1279. height: auto;
  1280. }
  1281. .home_stock_table {
  1282. display: flex;
  1283. width: 20%;
  1284. justify-content: center;
  1285. align-self: center;
  1286. }
  1287. .home_stock_table_right {
  1288. display: flex;
  1289. width: 20%;
  1290. justify-content: space-around;
  1291. align-self: center;
  1292. }
  1293. </style>