6b94d10e by zhangmeng

看板

1 parent b16791bc
1 <template> 1 <template>
2 <div class="main"> 2 <div class="main">
3 <el-row class="w100"> 3 <el-row class="w100">
4 <el-col v-if="obj.IFBASE" :span="type=='否'?8:12"> 4 <el-col v-if="obj?.IFBASE" :span="type=='否'?8:12">
5 <left-page :obj="obj" :type="type" :url="result"/> 5 <left-page :obj="obj" :type="type" :url="result"/>
6 </el-col> 6 </el-col>
7 <el-col v-if="type=='否'" :span="8"> 7 <el-col v-if="type=='否'" :span="8">
8 <center-page :obj="obj" :type="type=='否'" :url="result"/> 8 <center-page :obj="obj" :type="type=='否'" :url="result"/>
9 </el-col> 9 </el-col>
10 <el-col v-if="obj.IFBASE" :span="type=='否'?8:12"> 10 <el-col v-if="obj?.IFBASE" :span="type=='否'?8:12">
11 <right-page :obj="obj" :type="type" :url="result"/> 11 <right-page :obj="obj" :type="type" :url="result"/>
12 </el-col> 12 </el-col>
13 </el-row> 13 </el-row>
14
15 </div> 14 </div>
16 15
17 </template> 16 </template>
...@@ -45,7 +44,9 @@ onMounted(() => { ...@@ -45,7 +44,9 @@ onMounted(() => {
45 async function handelGetYS000() { 44 async function handelGetYS000() {
46 const res = await getYS000(result.value) 45 const res = await getYS000(result.value)
47 type.value = res.data?.IFBASE || '否' 46 type.value = res.data?.IFBASE || '否'
48 obj.value = res.data 47 obj.value = res.data || {
48 IFBASE: '123'
49 }
49 } 50 }
50 51
51 52
......
...@@ -26,13 +26,13 @@ ...@@ -26,13 +26,13 @@
26 <span><img alt="" class="titleImg" src="@/assets/image/title_bg.png"></span> 26 <span><img alt="" class="titleImg" src="@/assets/image/title_bg.png"></span>
27 营业收入 27 营业收入
28 </div> 28 </div>
29 <div ref="bing1" style="width: 100%;height:13vh;"> 29 <div ref="bing1" style="width: 100%;height:13.3vh;">
30 </div> 30 </div>
31 <div class="bingBottom"> 31 <div class="bingBottom">
32 <div style="text-align: center">{{ `${dayjs().format('YYYY')}年` }}营业收入 <br>(万元)</div> 32 <div style="text-align: center">{{ `${dayjs().format('YYYY')}年` }}营业收入 <br>(万元)</div>
33 </div> 33 </div>
34 </div> 34 </div>
35 <div ref="zhuRef1" class="zhu" style="width:70%;height: 17vh"/> 35 <div ref="zhuRef1" class="zhu" style="width:70%;height: 17.3vh"/>
36 </div> 36 </div>
37 37
38 <hr> 38 <hr>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
44 <span><img alt="" class="titleImg" src="@/assets/image/title_bg.png"></span> 44 <span><img alt="" class="titleImg" src="@/assets/image/title_bg.png"></span>
45 应收余额 45 应收余额
46 </div> 46 </div>
47 <div ref="bing2" style="width: 100%;height:13vh;"> 47 <div ref="bing2" style="width: 100%;height:13.3vh;">
48 </div> 48 </div>
49 <div class="bingBottom"> 49 <div class="bingBottom">
50 <div style="text-align: center;">{{ `${dayjs().format('YYYY')}年${dayjs().format('MM')}月` }} <br> 50 <div style="text-align: center;">{{ `${dayjs().format('YYYY')}年${dayjs().format('MM')}月` }} <br>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
52 </div> 52 </div>
53 </div> 53 </div>
54 </div> 54 </div>
55 <div ref="zhuRef2" class="zhu" style="width:70%;height: 17vh"/> 55 <div ref="zhuRef2" class="zhu" style="width:70%;height: 17.3vh"/>
56 </div> 56 </div>
57 57
58 <hr> 58 <hr>
...@@ -64,14 +64,14 @@ ...@@ -64,14 +64,14 @@
64 <span><img alt="" class="titleImg" src="@/assets/image/title_bg.png"></span> 64 <span><img alt="" class="titleImg" src="@/assets/image/title_bg.png"></span>
65 现金余额 65 现金余额
66 </div> 66 </div>
67 <div ref="bing3" style="width: 100%;height:13vh;"> 67 <div ref="bing3" style="width: 100%;height:13.3vh;">
68 </div> 68 </div>
69 <div class="bingBottom"> 69 <div class="bingBottom">
70 <div style="text-align: center">{{ `${dayjs().format('YYYY')}年${dayjs().format('MM')}月` }} <br> 累计现金余额<br>(万元) 70 <div style="text-align: center">{{ `${dayjs().format('YYYY')}年${dayjs().format('MM')}月` }} <br> 累计现金余额<br>(万元)
71 </div> 71 </div>
72 </div> 72 </div>
73 </div> 73 </div>
74 <div ref="zhuRef3" class="zhu" style="width:70%;height: 17vh"/> 74 <div ref="zhuRef3" class="zhu" style="width:70%;height: 17.3vh"/>
75 </div> 75 </div>
76 <hr> 76 <hr>
77 </div> 77 </div>
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
80 <span><img alt="" class="titleImg" src="@/assets/image/title_bg.png"></span> 80 <span><img alt="" class="titleImg" src="@/assets/image/title_bg.png"></span>
81 DSO天数 81 DSO天数
82 </div> 82 </div>
83 <div ref="zhuRef4" style="width: 100%;height: 17vh"> 83 <div ref="zhuRef4" style="width: 100%;height: 17.3vh">
84 </div> 84 </div>
85 </div> 85 </div>
86 </div> 86 </div>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 <div class="pd20"> 2 <div class="pd20">
3 <div class="chartCard"> 3 <div class="chartCard">
4 <div class="title">应收账款余额</div> 4 <div class="title">应收账款余额</div>
5 <div ref="zhuRef" style="width: 100%; height: 24.6vh;"></div> 5 <div ref="zhuRef" style="width: 100%; height: 24vh;"></div>
6 </div> 6 </div>
7 7
8 <div class="chartCard mt30"> 8 <div class="chartCard mt30">
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
25 <el-select 25 <el-select
26 v-model="type1" 26 v-model="type1"
27 class="select" 27 class="select"
28 collapse-tags
28 multiple 29 multiple
29 placeholder="数据因素" 30 placeholder="数据因素"
30 size="small" 31 size="small"
...@@ -36,7 +37,7 @@ ...@@ -36,7 +37,7 @@
36 </div> 37 </div>
37 </div> 38 </div>
38 39
39 <div ref="lineRef" style="width: 100%; height: 24.6vh;"></div> 40 <div ref="lineRef" style="width: 100%; height: 24vh;"></div>
40 </div> 41 </div>
41 <div class="chartCard mt30"> 42 <div class="chartCard mt30">
42 <div> 43 <div>
...@@ -55,7 +56,7 @@ ...@@ -55,7 +56,7 @@
55 </div> 56 </div>
56 </div> 57 </div>
57 </div> 58 </div>
58 <div ref="payeeRef" style="width: 100%; height: 24.6vh;"></div> 59 <div ref="payeeRef" style="width: 100%; height: 24vh;"></div>
59 </div> 60 </div>
60 </div> 61 </div>
61 </template> 62 </template>
...@@ -852,7 +853,7 @@ onUnmounted(() => { ...@@ -852,7 +853,7 @@ onUnmounted(() => {
852 right: calc(20 * 100vw / 1920); 853 right: calc(20 * 100vw / 1920);
853 top: 3%; 854 top: 3%;
854 z-index: 1; 855 z-index: 1;
855 width: 70%; 856 width: 60%;
856 display: flex; 857 display: flex;
857 justify-content: space-between; 858 justify-content: space-between;
858 859
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
17 </div> 17 </div>
18 </div> 18 </div>
19 19
20 <div ref="zhuRef" style="width: 100%; height: 24.6vh;"></div> 20 <div ref="zhuRef" style="width: 100%; height: 24vh;"></div>
21 </div> 21 </div>
22 22
23 <div class="chartCard mt30"> 23 <div class="chartCard mt30">
...@@ -49,12 +49,12 @@ ...@@ -49,12 +49,12 @@
49 </el-select> 49 </el-select>
50 </div> 50 </div>
51 </div> 51 </div>
52 <div ref="lineRef" style="width: 100%; height: 24.6vh;"></div> 52 <div ref="lineRef" style="width: 100%; height: 24vh;"></div>
53 </div> 53 </div>
54 54
55 <div class="chartCard mt30"> 55 <div class="chartCard mt30">
56 <div class="title">逾期360天以上未开票</div> 56 <div class="title">逾期360天以上未开票</div>
57 <div ref="overdueRef" style="width: 100%; height: 24.6vh;"></div> 57 <div ref="overdueRef" style="width: 100%; height: 24vh;"></div>
58 </div> 58 </div>
59 </div> 59 </div>
60 </template> 60 </template>
...@@ -452,7 +452,7 @@ const setA = (arrY, arr1, arr2, arr3, markLineName, BC) => { ...@@ -452,7 +452,7 @@ const setA = (arrY, arr1, arr2, arr3, markLineName, BC) => {
452 textStyle: { 452 textStyle: {
453 color: '#fff', // 文字颜色 453 color: '#fff', // 文字颜色
454 fontSize: 12, // 文字大小 454 fontSize: 12, // 文字大小
455 } 455 },
456 }, 456 },
457 legend: { 457 legend: {
458 top: "3%", 458 top: "3%",
...@@ -612,6 +612,7 @@ const setA = (arrY, arr1, arr2, arr3, markLineName, BC) => { ...@@ -612,6 +612,7 @@ const setA = (arrY, arr1, arr2, arr3, markLineName, BC) => {
612 612
613 ], 613 ],
614 } 614 }
615
615 chartA.setOption(option) 616 chartA.setOption(option)
616 autoHover(chartA, option, 0, 2000) 617 autoHover(chartA, option, 0, 2000)
617 } 618 }
...@@ -835,10 +836,10 @@ const setC = (arry, arr1, arr2, arr3) => { ...@@ -835,10 +836,10 @@ const setC = (arry, arr1, arr2, arr3) => {
835 chartC = echarts.init(overdueRef.value) 836 chartC = echarts.init(overdueRef.value)
836 const option = { 837 const option = {
837 tooltip: { 838 tooltip: {
838 trigger: 'axis', 839 // trigger: '',
839 axisPointer: { 840 // axisPointer: {
840 type: 'shadow' 841 // type: 'shadow'
841 }, 842 // },
842 valueFormatter: (value) => value + '万', 843 valueFormatter: (value) => value + '万',
843 backgroundColor: 'rgba(5, 28, 51, 1)', // 背景色 844 backgroundColor: 'rgba(5, 28, 51, 1)', // 背景色
844 borderColor: 'rgba(46, 151, 198, 1)', // 边框颜色 845 borderColor: 'rgba(46, 151, 198, 1)', // 边框颜色
...@@ -846,6 +847,16 @@ const setC = (arry, arr1, arr2, arr3) => { ...@@ -846,6 +847,16 @@ const setC = (arry, arr1, arr2, arr3) => {
846 textStyle: { 847 textStyle: {
847 color: '#fff', // 文字颜色 848 color: '#fff', // 文字颜色
848 fontSize: 12, // 文字大小 849 fontSize: 12, // 文字大小
850 },
851 position: 'top',
852 formatter: function (row) {
853 return `
854 <div style="font-weight:bold">${row.name}</div>
855 <div style="display:flex;align-items:center;margin-top:5px">
856 ${row.marker}
857 ${row.seriesName == '逾期360天以上' ? '未开票金额' : row.seriesName}: ${row.value}
858 </div>
859 `;
849 } 860 }
850 }, 861 },
851 legend: { 862 legend: {
...@@ -963,13 +974,6 @@ const setC = (arry, arr1, arr2, arr3) => { ...@@ -963,13 +974,6 @@ const setC = (arry, arr1, arr2, arr3) => {
963 chartC.setOption(option) 974 chartC.setOption(option)
964 autoHover(chartC, option, 0, 2000) 975 autoHover(chartC, option, 0, 2000)
965 } 976 }
966 const radioAChange = (e) => {
967 getA()
968 }
969 const radioBChange = (e) => {
970 getB()
971 }
972
973 const clear = () => { 977 const clear = () => {
974 if (autoToolTip) { 978 if (autoToolTip) {
975 clearTimeout(autoToolTip); 979 clearTimeout(autoToolTip);
...@@ -1047,7 +1051,7 @@ onUnmounted(() => { ...@@ -1047,7 +1051,7 @@ onUnmounted(() => {
1047 position: absolute; 1051 position: absolute;
1048 right: calc(20 * 100vw / 1920); 1052 right: calc(20 * 100vw / 1920);
1049 top: 3%; 1053 top: 3%;
1050 width: 50%; 1054 width: 60%;
1051 z-index: 1; 1055 z-index: 1;
1052 display: flex; 1056 display: flex;
1053 justify-content: space-between; 1057 justify-content: space-between;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!