report.vue 24 KB

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