report.vue 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010
  1. <template>
  2. <view class="content">
  3. <view class="content1">
  4. <u-navbar back-text="" title="数据统计" :border-bottom='false' :background="background" back-icon-color='white'
  5. title-color='white'>
  6. </u-navbar>
  7. <view class="row2">
  8. <view class="left" @click="dateClick">
  9. {{nowDate}}
  10. <u-icon name="arrow-down-fill" size="16" class="icon"></u-icon>
  11. </view>
  12. <view class="right">
  13. <view :class="typeSelect==index?'type-bgc':''" class="type-style" v-for="(item,index) in moneyList"
  14. @click="typeClick(index)">
  15. {{item.name}}
  16. </view>
  17. </view>
  18. </view>
  19. <view class="row3">
  20. <view class="title">
  21. 总收入
  22. </view>
  23. <view class="number">
  24. 核算中
  25. </view>
  26. </view>
  27. </view>
  28. <view class="move-content">
  29. <view class="content2 content-wrap">
  30. <view class="row1">
  31. <view class="left title">
  32. 合同完成进度
  33. </view>
  34. <view class="right">
  35. <view class="item" :class="contractSelect=='0'?'item-Select':''" @click="htClick(0)">采购</view>
  36. <view class="item" :class="contractSelect=='1'?'item-Select':''" @click="htClick(1)">销售</view>
  37. </view>
  38. </view>
  39. <u-line color="#EEEEEE" class="u-line" />
  40. <view class="row2" @click="goToPage(1)">
  41. <view class="top">
  42. 合同总量
  43. </view>
  44. <view class="bottom">
  45. <view class="left">
  46. <image src="../../static/img/report/hetongzongliang.png" mode=""></image>
  47. </view>
  48. <view class="right" v-if="contractSelect=='0'">
  49. <view class="top">
  50. <view class="left">
  51. 已完成量
  52. <view class="number">{{dataObj3.percentage}}</view>
  53. </view>
  54. <view class="right-number">{{dataObj3.total}}吨</view>
  55. </view>
  56. <view class="bottom">
  57. <u-line-progress height="12" active-color="#22C572" :show-percent="false"
  58. :striped="true" :percent="dataObj3.percent" :striped-active="true">
  59. </u-line-progress>
  60. </view>
  61. </view>
  62. <view class="right" v-if="contractSelect=='1'">
  63. <view class="top">
  64. <view class="left">
  65. 已完成量
  66. <view class="number">{{dataObj0.percentage}}</view>
  67. </view>
  68. <view class="right-number">{{dataObj0.total}}吨</view>
  69. </view>
  70. <view class="bottom">
  71. <u-line-progress height="12" active-color="#22C572" :show-percent="false"
  72. :striped="true" :percent="dataObj0.percent" :striped-active="true">
  73. </u-line-progress>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <view class="row3" @click="goToPage(2)">
  79. <view class="top">
  80. 合同总额
  81. </view>
  82. <view class="bottom">
  83. <view class="left">
  84. <image src="../../static/img/report/kaipiao.png" mode=""></image>
  85. </view>
  86. <view class="right" v-if="contractSelect=='0'">
  87. <view class="top">
  88. <view class="left">
  89. 已开票
  90. <view class="number">{{dataObj4.percentage}}</view>
  91. </view>
  92. <view class="right-number">¥{{dataObj4.total}}</view>
  93. </view>
  94. <view class="bottom">
  95. <u-line-progress height="12" active-color="#FD714F" :show-percent="false"
  96. :striped="true" :percent="dataObj4.percent" :striped-active="true">
  97. </u-line-progress>
  98. </view>
  99. </view>
  100. <view class="right" v-if="contractSelect=='1'">
  101. <view class="top">
  102. <view class="left">
  103. 已开票
  104. <view class="number">{{dataObj1.percentage}}</view>
  105. </view>
  106. <view class="right-number">¥{{dataObj1.total}}</view>
  107. </view>
  108. <view class="bottom">
  109. <u-line-progress height="12" active-color="#FD714F" :show-percent="false"
  110. :striped="true" :percent="dataObj1.percent" :striped-active="true">
  111. </u-line-progress>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="row4" @click="goToPage(3)">
  117. <view class="top">
  118. 合同总额
  119. </view>
  120. <view class="bottom">
  121. <view class="left">
  122. <image src="../../static/img/report/hetongzongliang.png" mode=""></image>
  123. </view>
  124. <view class="right" v-if="contractSelect=='0'">
  125. <view class="top">
  126. <view class="left">
  127. 已结算
  128. <view class="number">{{dataObj5.percentage}}</view>
  129. </view>
  130. <view class="right-number">¥{{dataObj5.total}}</view>
  131. </view>
  132. <view class="bottom">
  133. <u-line-progress height="12" active-color="#5C75DF" :show-percent="false"
  134. :striped="true" :percent="dataObj5.percent" :striped-active="true">
  135. </u-line-progress>
  136. </view>
  137. </view>
  138. <view class="right" v-if="contractSelect=='1'">
  139. <view class="top">
  140. <view class="left">
  141. 已结算
  142. <view class="number">{{dataObj2.percentage}}</view>
  143. </view>
  144. <view class="right-number">¥{{dataObj5.total}}</view>
  145. </view>
  146. <view class="bottom">
  147. <u-line-progress height="12" active-color="#5C75DF" :show-percent="false"
  148. :striped="true" :percent="dataObj5.percent" :striped-active="true">
  149. </u-line-progress>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. <view class="content3 content-wrap">
  156. <view class="title" @click="goToPage(4)">粮食品种占比</view>
  157. <u-line color="#EEEEEE" class="u-line" />
  158. <qiun-data-charts type="line" class='line-chart' :chartData="chartData" :opts='zringoptions'
  159. background="none" :ontouch="true"/>
  160. </view>
  161. <view class="content4 content-wrap">
  162. <view class="title">在途信息统计表</view>
  163. <u-line color="#EEEEEE" class="u-line" />
  164. <qiun-data-charts type="column" class='line-chart' :chartData="carChartData" :opts='ringoptions'
  165. background="none" />
  166. </view>
  167. <view class="content5 content-wrap" @click="goToPage(5)">
  168. <view class="title">库存成本</view>
  169. <u-line color="#EEEEEE" class="u-line" />
  170. <view class="row1">
  171. <view class="left">
  172. <image src="../../static/img/report/kuncunliang.png" mode=""></image>
  173. <view class="text">
  174. 总库存量(吨)
  175. </view>
  176. </view>
  177. <view class="right">
  178. {{inventoryCost}}
  179. </view>
  180. </view>
  181. <view class="row2">
  182. <view class="left">
  183. <image src="../../static/img/report/jiazhi.png" mode=""></image>
  184. <view class="text">
  185. 库存价值(元)
  186. </view>
  187. </view>
  188. <view class="right">
  189. {{inventoryValue}}
  190. </view>
  191. </view>
  192. </view>
  193. <view class="content6 content-wrap">
  194. <view class="title">库点流向分布</view>
  195. <u-line color="#EEEEEE" class="u-line" />
  196. <iframe class='map' :src='url'></iframe>
  197. </view>
  198. <!-- <view class="content7">
  199. <maoScroll :data="ztList" :showNum="showNum" :lineHeight="lineHeight" :animationScroll="animationScroll"
  200. :animation="animation">
  201. <template v-slot="{line}">
  202. <view class="row1">
  203. <view class="zt">
  204. <view class="point"></view>在途
  205. </view>
  206. <view>{{line.startName}}</view>
  207. <img src="https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/jiantou.png" alt="">
  208. <view class="">
  209. {{line.endName}}
  210. </view>
  211. </view>
  212. </template>
  213. </maoScroll>
  214. </view> -->
  215. <view class="content7">
  216. <view class="row1" v-for="(item,index) in ztList">
  217. <view class="zt">
  218. <view class="point"></view>在途
  219. </view>
  220. <view>{{item.startName}}</view>
  221. <img src="https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/jiantou.png" alt="">
  222. <view class="">
  223. {{item.endName}}
  224. </view>
  225. </view>
  226. </view>
  227. </view>
  228. <u-select v-model="showDate" mode="mutil-column" confirm-color='#22C572' :list="dateList" @confirm="confirm">
  229. </u-select>
  230. </view>
  231. </template>
  232. <script>
  233. import maoScroll from '@/components/mao-scroll/mao-scroll.vue';
  234. export default {
  235. components: {
  236. maoScroll
  237. },
  238. data() {
  239. return {
  240. inventoryCost: '',
  241. inventoryValue: '',
  242. contractSelect: '0',
  243. url: '',
  244. nowDate: '2022年全年',
  245. seachMoth: '2021',
  246. background: {
  247. backgroundColor: '#2E303A',
  248. },
  249. typeSelect: '0',
  250. contractSelect: '0',
  251. showDate: false,
  252. chartData: {},
  253. carChartData: {},
  254. carRingoptions: {},
  255. ringoptions: {},
  256. zringoptions: {},
  257. moneyList: [{
  258. name: '收入'
  259. }, {
  260. name: '支出'
  261. }, {
  262. name: '毛利润'
  263. }],
  264. dataList: [],
  265. dataObj0: {
  266. percentage: '',
  267. total: '',
  268. percentage: ''
  269. },
  270. dataObj1: {
  271. percentage: '',
  272. total: '',
  273. percentage: ''
  274. },
  275. dataObj2: {
  276. percentage: '',
  277. total: '',
  278. percentage: ''
  279. },
  280. dataObj3: {
  281. percentage: '',
  282. total: '',
  283. percentage: ''
  284. },
  285. dataObj4: {
  286. percentage: '',
  287. total: '',
  288. percentage: ''
  289. },
  290. dataObj5: {
  291. percentage: '',
  292. total: '',
  293. percentage: ''
  294. },
  295. dateList: [
  296. [ {
  297. value: '1',
  298. label: '2021年'
  299. },
  300. {
  301. value: '2',
  302. label: '2022年'
  303. }
  304. ],
  305. [{
  306. value: '0',
  307. label: '全年'
  308. },
  309. {
  310. value: '01',
  311. label: '1月'
  312. },
  313. {
  314. value: '02',
  315. label: '2月'
  316. },
  317. {
  318. value: '03',
  319. label: '3月'
  320. },
  321. {
  322. value: '04',
  323. label: '4月'
  324. },
  325. {
  326. value: '05',
  327. label: '5月'
  328. },
  329. {
  330. value: '06',
  331. label: '6月'
  332. },
  333. {
  334. value: '07',
  335. label: '7月'
  336. },
  337. {
  338. value: '08',
  339. label: '8月'
  340. },
  341. {
  342. value: '09',
  343. label: '9月'
  344. },
  345. {
  346. value: '10',
  347. label: '10月'
  348. },
  349. {
  350. value: '11',
  351. label: '11月'
  352. },
  353. {
  354. value: '12',
  355. label: '12月'
  356. },
  357. ]
  358. ],
  359. ztList: [],
  360. showNum: 8,
  361. lineHeight: 80,
  362. animationScroll: 5000,
  363. animation: 0,
  364. }
  365. },
  366. onLoad: function(option) {
  367. // uni.showLoading({
  368. // title: "数据加载中...",
  369. // mask: true
  370. // })
  371. if (this.nowDate == '2022年全年') {
  372. this.seachMoth = '2022'
  373. }
  374. this.init()
  375. },
  376. methods: {
  377. goToPage(index) {
  378. console.log(index)
  379. if (index == 4) {
  380. uni.navigateTo({
  381. url: '/pages/user/contractLook/warehouseReserves'
  382. })
  383. return true
  384. } else if (index == 5) {
  385. uni.navigateTo({
  386. url: '/pages/user/contractLook/inventoryCost'
  387. })
  388. return true
  389. }
  390. if (this.contractSelect == '0') {
  391. uni.navigateTo({
  392. url: '/pages/user/contractLook/purchaseContract'
  393. })
  394. } else {
  395. uni.navigateTo({
  396. url: '/pages/user/contractLook/salesContract'
  397. })
  398. }
  399. },
  400. init() {
  401. this.url = "https://liangxin.zthymaoyi.com/map_0105.html?id=" + uni.getStorageSync('pcUserInfo').compId +'&seachMoth='+this.seachMoth
  402. this.$api.doRequest('get', '/biInfoController/selectBiInfo?compId=' + uni.getStorageSync('pcUserInfo')
  403. .compId + '&seachMoth=' + this.seachMoth).then(res => {
  404. console.log(res)
  405. uni.hideLoading()
  406. let _list = []
  407. this.dataList = res.data.data
  408. for (let i = 0; i < res.data.data.length; i++) {
  409. let _obj = {}
  410. let _color = []
  411. let _title = ""
  412. let _subtitle = ''
  413. let _name = ''
  414. let _count = ''
  415. let _data = []
  416. if (i < 6) {
  417. res.data.data[i].biViewInfoList[0].percent = Number(res.data.data[i].biViewInfoList[0]
  418. .percentage.substring(0, res.data.data[i].biViewInfoList[0].percentage.length -
  419. 1))
  420. switch (i) {
  421. case 0:
  422. this.dataObj0 = {
  423. percentage: res.data.data[i].biViewInfoList[0].percentage,
  424. total: Number(res.data.data[i].total),
  425. percent: Number(res.data.data[i].biViewInfoList[0].percent)
  426. }
  427. break;
  428. case 1:
  429. this.dataObj1 = {
  430. percentage: res.data.data[i].biViewInfoList[0].percentage,
  431. total: Number(res.data.data[i].total),
  432. percent: Number(res.data.data[i].biViewInfoList[0].percent)
  433. }
  434. break;
  435. case 2:
  436. this.dataObj2 = {
  437. percentage: res.data.data[i].biViewInfoList[0].percentage,
  438. total: Number(res.data.data[i].total),
  439. percent: Number(res.data.data[i].biViewInfoList[0].percent)
  440. }
  441. break;
  442. case 3:
  443. this.dataObj3 = {
  444. percentage: res.data.data[i].biViewInfoList[0].percentage,
  445. total: Number(res.data.data[i].total),
  446. percent: Number(res.data.data[i].biViewInfoList[0].percent)
  447. }
  448. break;
  449. case 4:
  450. this.dataObj4 = {
  451. percentage: res.data.data[i].biViewInfoList[0].percentage,
  452. total: Number(res.data.data[i].total),
  453. percent: Number(res.data.data[i].biViewInfoList[0].percent)
  454. }
  455. break;
  456. case 5:
  457. this.dataObj5 = {
  458. percentage: res.data.data[i].biViewInfoList[0].percentage,
  459. total: Number(res.data.data[i].total),
  460. percent: Number(res.data.data[i].biViewInfoList[0].percent)
  461. }
  462. break;
  463. }
  464. } else if (i == 6) {
  465. this.carCount1 = res.data.data[i].biViewInfoList[0].count
  466. this.carCount2 = res.data.data[i].biViewInfoList[1].count
  467. this.carCount3 = res.data.data[i].biViewInfoList[2].count
  468. let _x = []
  469. let _y = []
  470. for (let k = 0; k < res.data.data[i].biViewInfoList.length; k++) {
  471. _x.push(res.data.data[i].biViewInfoList[k].name)
  472. _y.push(Number(res.data.data[i].biViewInfoList[k].count))
  473. }
  474. this.carChartData = {
  475. categories: _x,
  476. series: [{
  477. "name": '车辆',
  478. "data": _y
  479. }]
  480. }
  481. this.ringoptions = {
  482. "type": "column",
  483. "canvasId": "",
  484. "canvas2d": false,
  485. "background": "none",
  486. "animation": true,
  487. "timing": "easeOut",
  488. "duration": 1000,
  489. "color": [
  490. "#22C572"
  491. ],
  492. "padding": [
  493. 15,
  494. 15,
  495. 0,
  496. 5
  497. ],
  498. "rotate": false,
  499. "errorReload": true,
  500. "fontSize": 13,
  501. "fontColor": "#666666",
  502. "enableScroll": false,
  503. "touchMoveLimit": 60,
  504. "enableMarkLine": false,
  505. "dataLabel": true,
  506. "dataPointShape": true,
  507. "dataPointShapeType": "solid",
  508. "tapLegend": true,
  509. "xAxis": {
  510. "disabled": false,
  511. "axisLine": false,
  512. "axisLineColor": "#CCCCCC",
  513. "calibration": false,
  514. "fontColor": "#666666",
  515. "fontSize": 13,
  516. "rotateLabel": false,
  517. "itemCount": 5,
  518. "boundaryGap": "center",
  519. "disableGrid": true,
  520. "gridColor": "#CCCCCC",
  521. "gridType": "solid",
  522. "dashLength": 4,
  523. "gridEval": 1,
  524. "scrollShow": false,
  525. "scrollAlign": "left",
  526. "scrollColor": "#A6A6A6",
  527. "scrollBackgroundColor": "#EFEBEF",
  528. "format": ""
  529. },
  530. "yAxis": {
  531. "disabled": true,
  532. "disableGrid": true,
  533. "splitNumber": 5,
  534. "gridType": "solid",
  535. "dashLength": 8,
  536. "gridColor": "#CCCCCC",
  537. "padding": 10,
  538. "showTitle": false,
  539. "data": []
  540. },
  541. "legend": {
  542. "show": false,
  543. "position": "bottom",
  544. "float": "center",
  545. "padding": 5,
  546. "margin": 5,
  547. "backgroundColor": "rgba(0,0,0,0)",
  548. "borderColor": "rgba(0,0,0,0)",
  549. "borderWidth": 0,
  550. "fontSize": 13,
  551. "fontColor": "#666666",
  552. "lineHeight": 11,
  553. "hiddenColor": "#CECECE",
  554. "itemGap": 10
  555. },
  556. "extra": {
  557. "column": {
  558. "type": "group",
  559. "width": 30,
  560. "seriesGap": 2,
  561. "categoryGap": 3,
  562. "barBorderCircle": true,
  563. "linearType": "none",
  564. "linearOpacity": 1,
  565. "colorStop": 0,
  566. "meterBorder": 1,
  567. "meterFillColor": "#FFFFFF",
  568. "activeBgColor": "#000000",
  569. "activeBgOpacity": 0.08,
  570. "meterBorde": 1
  571. },
  572. "tooltip": {
  573. "showBox": true,
  574. "showArrow": true,
  575. "showCategory": false,
  576. "borderWidth": 0,
  577. "borderRadius": 0,
  578. "borderColor": "#000000",
  579. "borderOpacity": 0.7,
  580. "bgColor": "#000000",
  581. "bgOpacity": 0.7,
  582. "gridType": "solid",
  583. "dashLength": 4,
  584. "gridColor": "#CCCCCC",
  585. "fontColor": "#FFFFFF",
  586. "splitLine": true,
  587. "horizentalLine": false,
  588. "xAxisLabel": false,
  589. "yAxisLabel": false,
  590. "labelBgColor": "#FFFFFF",
  591. "labelBgOpacity": 0.7,
  592. "labelFontColor": "#666666"
  593. },
  594. "markLine": {
  595. "type": "solid",
  596. "dashLength": 4,
  597. "data": []
  598. }
  599. }
  600. }
  601. } else if (i == 7) {
  602. this.inventoryCost = Number(res.data.data[i].biViewInfoList[0].count)
  603. this.inventoryValue = Number(res.data.data[i].biViewInfoList[1].count)
  604. } else if (i == 8) {
  605. let _x = []
  606. let _y = []
  607. for (let k = 0; k < res.data.data[i].biViewInfoList.length; k++) {
  608. _x.push(res.data.data[i].biViewInfoList[k].name)
  609. _y.push(Number(res.data.data[i].biViewInfoList[k].count))
  610. }
  611. this.chartData = {
  612. categories: _x,
  613. series: [{
  614. "name": '储量',
  615. "data": _y
  616. }]
  617. }
  618. this.zringoptions = {
  619. "type": "line",
  620. "canvasId": "",
  621. "canvas2d": false,
  622. "background": "none",
  623. "animation": true,
  624. "timing": "easeOut",
  625. "duration": 1000,
  626. "color": [
  627. "#91CB74",
  628. ],
  629. "padding": [
  630. 15,
  631. 10,
  632. 0,
  633. 15
  634. ],
  635. "rotate": false,
  636. "errorReload": true,
  637. "fontSize": 13,
  638. "fontColor": "#666666",
  639. "enableScroll": true,
  640. "touchMoveLimit": 60,
  641. "enableMarkLine": true,
  642. "dataLabel": true,
  643. "dataPointShape": true,
  644. "dataPointShapeType": "hollow",
  645. "tapLegend": true,
  646. "xAxis": {
  647. "disabled": false,
  648. "axisLine": false,
  649. "axisLineColor": "#CCCCCC",
  650. "calibration": false,
  651. "fontColor": "#666666",
  652. "fontSize": 13,
  653. "rotateLabel": false,
  654. "itemCount": 4,
  655. "boundaryGap": "center",
  656. "disableGrid": false,
  657. "gridColor": "#CCCCCC",
  658. "gridType": "dash",
  659. "dashLength": 4,
  660. "gridEval": 1,
  661. "scrollShow": false,
  662. "scrollAlign": "left",
  663. "scrollColor": "#A6A6A6",
  664. "scrollBackgroundColor": "#EFEBEF",
  665. "format": ""
  666. },
  667. "yAxis": {
  668. "disabled": true,
  669. "disableGrid": true,
  670. "splitNumber": 5,
  671. "gridType": "dash",
  672. "dashLength": 2,
  673. "gridColor": "#CCCCCC",
  674. "padding": 10,
  675. "showTitle": false,
  676. "data": []
  677. },
  678. "legend": {
  679. "show": false,
  680. "position": "bottom",
  681. "float": "center",
  682. "padding": 5,
  683. "margin": 5,
  684. "backgroundColor": "rgba(0,0,0,0)",
  685. "borderColor": "rgba(0,0,0,0)",
  686. "borderWidth": 0,
  687. "fontSize": 13,
  688. "fontColor": "#666666",
  689. "lineHeight": 11,
  690. "hiddenColor": "#CECECE",
  691. "itemGap": 10
  692. },
  693. "extra": {
  694. "line": {
  695. "type": "straight",
  696. "width": 2
  697. },
  698. "tooltip": {
  699. "showBox": true,
  700. "showArrow": true,
  701. "showCategory": false,
  702. "borderWidth": 0,
  703. "borderRadius": 0,
  704. "borderColor": "#000000",
  705. "borderOpacity": 0.7,
  706. "bgColor": "#000000",
  707. "bgOpacity": 0.7,
  708. "gridType": "dash",
  709. "dashLength": 4,
  710. "gridColor": "#22C572",
  711. "fontColor": "#FFFFFF",
  712. "splitLine": true,
  713. "horizentalLine": false,
  714. "xAxisLabel": false,
  715. "yAxisLabel": false,
  716. "labelBgColor": "#FFFFFF",
  717. "labelBgOpacity": 0.7,
  718. "labelFontColor": "#666666"
  719. },
  720. "markLine": {
  721. "type": "solid",
  722. "dashLength": 4,
  723. "data": []
  724. }
  725. }
  726. }
  727. } else if (i == 9) {
  728. for (let k = 0; k < res.data.data[i].biViewInfoList.length; k++) {
  729. var obj = res.data.data[i].biViewInfoList[k]
  730. obj.startName = obj.name.split('→')[0].substring(0, 5) + '...'
  731. obj.endName = obj.name.split('→')[1]
  732. }
  733. this.ztList = res.data.data[i].biViewInfoList
  734. // this.prizeScroll();
  735. }
  736. }
  737. this.chartlist = _list
  738. uni.hideLoading()
  739. })
  740. },
  741. confirm(e) {
  742. console.log(e)
  743. this.nowDate = e[0].label+e[1].label
  744. let _year = e[0].label.substring(0, 4)
  745. if (e[1].label != '全年') {
  746. this.seachMoth = _year +'-'+ e[1].value
  747. } else {
  748. this.seachMoth = _year
  749. }
  750. this.init()
  751. },
  752. dateClick() {
  753. this.showDate = true
  754. },
  755. typeClick(index) {
  756. this.typeSelect = index
  757. console.log(index)
  758. },
  759. htClick(index) {
  760. // this.itemSelect = index
  761. this.contractSelect = index
  762. }
  763. }
  764. }
  765. </script>
  766. <style scoped lang="scss">
  767. .title {
  768. font-size: 32rpx;
  769. font-weight: 400;
  770. color: #343434;
  771. }
  772. .content-wrap {
  773. background: white;
  774. margin: 0 20rpx;
  775. border-radius: 20rpx;
  776. padding: 20rpx;
  777. }
  778. .u-line {
  779. margin: 20rpx 0 !important;
  780. }
  781. .line-chart {
  782. height: 200px;
  783. }
  784. .content1 {
  785. background: #2E303A;
  786. padding: 0 20rpx 180rpx 20rpx;
  787. .row2 {
  788. display: flex;
  789. justify-content: space-between;
  790. color: white;
  791. font-size: 32rpx;
  792. align-items: center;
  793. color: #FFFFFF;
  794. .icon {
  795. margin: 0 10rpx;
  796. }
  797. .right {
  798. display: flex;
  799. font-size: 26rpx;
  800. .type-style {
  801. margin-left: 38rpx;
  802. padding: 6rpx 16rpx;
  803. border-radius: 10rpx;
  804. color: #A6A6A6;
  805. }
  806. .type-bgc {
  807. background: rgba(255, 255, 255, 0.3);
  808. color: white;
  809. }
  810. }
  811. }
  812. .row3 {
  813. .title {
  814. font-size: 26rpx;
  815. font-weight: 400;
  816. color: #C5C5C5;
  817. margin: 35rpx 0 20rpx 0;
  818. }
  819. .number {
  820. font-size: 32rpx;
  821. font-weight: 400;
  822. color: #E2C4A1;
  823. }
  824. }
  825. }
  826. .move-content {
  827. position: relative;
  828. top: -136rpx;
  829. }
  830. .content2 {
  831. .row1 {
  832. display: flex;
  833. justify-content: space-between;
  834. .left {}
  835. .right {
  836. display: flex;
  837. .item {
  838. background: #F1F1F1;
  839. border-radius: 30px;
  840. margin-left: 20rpx;
  841. font-size: 2rpx;
  842. color: #333333;
  843. padding: 13rpx 27rpx;
  844. }
  845. .item-Select {
  846. background-color: black;
  847. color: white;
  848. }
  849. }
  850. }
  851. .row2,
  852. .row3,
  853. .row4 {
  854. .top {
  855. font-size: 26rpx;
  856. color: #929292;
  857. margin: 0;
  858. }
  859. .bottom {
  860. display: flex;
  861. align-items: center;
  862. margin: 10rpx;
  863. .left {
  864. margin-left: 20rpx;
  865. image {
  866. width: 45rpx;
  867. height: 45rpx;
  868. }
  869. }
  870. .right {
  871. width: 100%;
  872. padding-left: 20rpx;
  873. .top {
  874. display: flex;
  875. justify-content: space-between;
  876. width: 100%;
  877. margin-top: 10px;
  878. .left,
  879. .right-number {
  880. display: flex;
  881. align-items: center;
  882. font-size: 26rpx;
  883. color: #343434;
  884. .number {
  885. font-size: 26rpx;
  886. font-weight: 400;
  887. color: #929292;
  888. margin-left: 10rpx;
  889. }
  890. }
  891. }
  892. .bottom {
  893. margin: 30rpx 0 30rpx 20rpx;
  894. }
  895. }
  896. }
  897. }
  898. }
  899. .content3,
  900. .content4,
  901. .content5,
  902. .content6 {
  903. margin-top: 20rpx;
  904. }
  905. .content5 {
  906. .row1,
  907. .row2 {
  908. display: flex;
  909. justify-content: space-between;
  910. align-items: center;
  911. margin: 40rpx 0;
  912. .left {
  913. display: flex;
  914. align-items: center;
  915. .text {
  916. font-size: 28rpx;
  917. font-weight: 400;
  918. color: #707575;
  919. margin-left: 20rpx;
  920. }
  921. }
  922. .right {
  923. font-size: 34rpx;
  924. font-weight: 500;
  925. color: #333333;
  926. }
  927. image {
  928. width: 54rpx;
  929. height: 54rpx;
  930. }
  931. }
  932. }
  933. .content6 {
  934. .map {
  935. border: 0;
  936. width: 100%;
  937. height: 500rpx;
  938. }
  939. }
  940. .content7 {
  941. position: relative;
  942. .row1 {
  943. background: #FAFAFA;
  944. display: flex;
  945. align-items: center;
  946. justify-content: space-between;
  947. margin: 20rpx;
  948. padding: 20rpx;
  949. color: #707575;
  950. .point {
  951. width: 15rpx;
  952. height: 15rpx;
  953. border-radius: 50%;
  954. background: #22C572;
  955. margin-right: 10px;
  956. }
  957. .zt {
  958. display: flex;
  959. align-items: center;
  960. }
  961. }
  962. }
  963. </style>