| | |
| | | params: data |
| | | }) |
| | | } |
| | | // 车é´ç»¼åçæ¿,å·¦ä¸éè´è®¢å |
| | | export function WorkShopCompreLeftBottom(data) { |
| | | return request({ |
| | | url: 'KanBanManagerent/WorkShopCompreLeftBottom', |
| | | method: 'get', |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | // 车é´ç»¼åçæ¿,å³ä¸åºå |
| | | export function WorkShopCompreRightBottom(data) { |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1715311316427" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4301" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64"><path d="M808.71424 194.21184c-18.5344 48.41472-33.87392 81.87904-45.99808 100.41344 7.29088 0 21.79072-0.77824 43.56096-2.37568 6.4512 0 11.30496-0.4096 14.49984-1.24928a2503.2704 2503.2704 0 0 0-14.49984-37.4784c-3.19488-7.2704-1.18784-12.53376 6.0416-15.74912 7.2704-2.41664 12.4928-0.4096 15.74912 6.0416 1.59744 4.85376 3.19488 10.05568 4.85376 15.74912 8.88832 23.38816 15.33952 42.33216 19.3536 56.832 1.59744 8.88832-0.83968 14.56128-7.2704 16.93696-7.29088 0.8192-12.0832-2.78528-14.49984-10.83392-0.8192 0-2.00704-3.25632-3.66592-9.70752-12.9024 0.8192-28.59008 2.02752-47.18592 3.60448h-30.24896c-9.64608 0-15.68768-2.00704-18.1248-6.0416-1.59744-4.85376 0-11.30496 4.85376-19.3536 16.11776-24.9856 32.62464-60.49792 49.62304-106.45504 3.19488-8.11008 8.45824-10.89536 15.68768-8.45824 7.2704 4.03456 9.68704 10.07616 7.2704 18.1248zM341.27872 81.01888h24.59648a111.7184 111.7184 0 0 1 31.82592-51.63008 110.61248 110.61248 0 0 1 150.13888 0.02048 112.31232 112.31232 0 0 1 28.03712 40.50944 255.03744 255.03744 0 0 1 352.58368 8.47872 255.03744 255.03744 0 0 1-3.35872 364.70784v468.50048C925.0816 973.39392 874.496 1024 812.66688 1024H132.9152a112.06656 112.06656 0 0 1-79.42144-33.01376A112.10752 112.10752 0 0 1 20.48 911.5648V249.63072C20.50048 187.8016 71.08608 137.216 132.9152 137.216h132.56704c3.85024-12.51328 10.73152-23.7568 19.80416-32.82944l0.08192-0.08192-0.08192 0.08192 0.08192-0.08192a78.99136 78.99136 0 0 1 55.9104-23.28576z m197.24288 31.232l-0.55296-6.69696a65.26976 65.26976 0 0 0-20.86912-42.74176 65.18784 65.18784 0 0 0-44.31872-17.32608 65.37216 65.37216 0 0 0-65.20832 60.06784l-1.72032 20.97152h-64.59392c-9.3184 0-17.75616 3.76832-23.83872 9.85088l-0.08192 0.08192a33.60768 33.60768 0 0 0-9.85088 23.83872v72.31488c0 9.25696 3.80928 17.7152 9.9328 23.83872h-0.08192a33.792 33.792 0 0 0 23.92064 9.9328h150.77376a254.3616 254.3616 0 0 1 46.4896-154.13248z m-41.08288 199.59808h-156.16a79.0528 79.0528 0 0 1-55.9104-23.26528h-0.08192a79.03232 79.03232 0 0 1-23.26528-55.99232V182.70208H132.9152a67.11296 67.11296 0 0 0-66.92864 66.92864V911.5648c0 18.39104 7.53664 35.1232 19.68128 47.26784 12.14464 12.14464 28.8768 19.68128 47.26784 19.68128h679.75168a67.11296 67.11296 0 0 0 66.92864-66.92864V478.08512a253.99296 253.99296 0 0 1-131.87072 36.80256c-36.1472 0-70.57408-7.5776-101.7856-21.1968H225.44384c-32.39936 0-32.48128-45.48608 0-45.48608h350.33088a255.8976 255.8976 0 0 1-78.336-136.35584zM225.44384 775.2704h494.67392c32.41984 0 32.48128 45.48608 0 45.48608H225.44384c-32.39936 0-32.48128-45.48608 0-45.48608z m0-163.5328h494.67392c32.41984 0 32.48128 45.48608 0 45.48608H225.44384c-32.39936 0-32.48128-45.48608 0-45.48608zM747.7248 48.80384a209.63328 209.63328 0 0 0-148.56192 61.72672 209.63328 209.63328 0 0 0 0 297.14432 209.63328 209.63328 0 0 0 148.56192 61.72672c115.8144 0 210.28864-94.47424 210.28864-210.28864 0-57.89696-23.63392-110.46912-61.72672-148.56192a209.57184 209.57184 0 0 0-148.56192-61.7472z m38.01088 71.5776c-1.65888 7.2704-2.84672 12.53376-3.66592 15.74912h82.28864c14.49984 0 22.20032 7.2704 22.97856 21.79072v90.74688c0 17.75616-0.77824 33.44384-2.43712 47.18592a506.88 506.88 0 0 1-3.62496 39.91552c-4.03456 44.40064-30.24896 62.50496-78.62272 54.45632-8.11008-1.59744-12.12416-6.8608-12.12416-15.74912 1.65888-8.04864 6.4512-11.6736 14.56128-10.89536 32.27648 6.4512 49.60256-3.19488 51.97824-29.02016 4.07552-15.33952 6.4512-43.56096 7.2704-84.72576V169.984c0-7.22944-3.60448-10.89536-10.89536-10.89536h-78.62272a628.8384 628.8384 0 0 1-25.43616 52.03968c-6.4512 8.86784-13.27104 12.12416-20.54144 9.70752-6.4512-4.85376-6.8608-11.71456-1.18784-20.60288 12.0832-17.7152 24.1664-46.36672 36.29056-85.9136 2.43712-8.04864 7.22944-11.24352 14.49984-9.64608 6.47168 2.43712 8.88832 7.65952 7.29088 15.70816z m-107.68384 56.89344c0.77824 12.0832 1.18784 31.8464 1.18784 59.24864-0.8192 41.984-4.44416 72.64256-10.89536 91.99616-7.22944 22.54848-20.13184 42.33216-38.7072 59.26912-7.22944 5.67296-13.68064 5.67296-19.3536 0-4.03456-5.632-2.43712-11.6736 4.85376-18.1248 30.65856-29.06112 44.7488-73.80992 42.33216-134.32832v-13.312-43.56096c-0.77824-8.04864 2.00704-12.4928 8.47872-13.27104 7.24992 0.77824 11.28448 4.79232 12.10368 12.0832z m19.37408 147.59936c8.04864 7.2704 16.91648 17.34656 26.58304 30.24896l7.2704 7.2704c4.03456 6.4512 3.62496 12.0832-1.2288 16.93696-5.632 4.85376-10.83392 4.44416-15.68768-1.18784a264.704 264.704 0 0 0-25.3952-26.64448c-3.25632-3.19488-5.26336-6.0416-6.10304-8.45824-5.632-5.632-6.4512-11.30496-2.37568-16.93696 4.79232-4.85376 10.46528-5.26336 16.93696-1.2288z m6.02112-205.68064c11.30496-0.8192 16.93696 7.63904 16.93696 25.3952v152.43264c-0.83968 8.86784-4.85376 14.15168-12.0832 15.74912-7.2704-0.8192-10.87488-5.632-10.87488-14.49984v-145.2032c0-7.22944-3.25632-10.89536-9.70752-10.89536h-35.10272c-9.64608 0.83968-14.49984 4.85376-14.49984 12.14464v139.12064c-0.77824 8.88832-4.85376 14.09024-12.0832 15.74912-7.2704-0.83968-10.89536-5.67296-10.89536-14.56128V143.40096c-1.59744-16.91648 7.63904-25.02656 27.81184-24.20736h60.49792z" fill="#00ffff" p-id="4302"></path></svg> |
| | |
| | | return { |
| | | backgroundColor: 'transparent', |
| | | // tooltip: {}, |
| | | title: { |
| | | text: 'æ¯æè®¢åæ°é/åºåºæ°é', |
| | | left: '50%', |
| | | top: '0%', |
| | | textAlign: 'center', |
| | | textStyle: { |
| | | // color: '#fff', |
| | | color: '#00ffff', |
| | | fontSize: '20', |
| | | fontWeight: 'bolder' |
| | | } |
| | | }, |
| | | // title: { |
| | | // text: 'æ¯æè®¢åæ°é/åºåºæ°é', |
| | | // left: '50%', |
| | | // top: '0%', |
| | | // textAlign: 'center', |
| | | // textStyle: { |
| | | // // color: '#fff', |
| | | // color: '#00ffff', |
| | | // fontSize: '20', |
| | | // fontWeight: 'bolder' |
| | | // } |
| | | // }, |
| | | grid: { |
| | | left: '4%', |
| | | right: '4%', |
| | | bottom: '4%', |
| | | top: '15%', |
| | | bottom: '15%', |
| | | top: '10%', |
| | | containLabel: true |
| | | }, |
| | | // legend: { |
| | |
| | | |
| | | return option |
| | | } |
| | | |
| | | export function bar3(value1, value2) { |
| | | const list = [ |
| | | { |
| | | key: 'éè´æ°é', |
| | | value: value1 |
| | | }, |
| | | { |
| | | key: '已鿰é', |
| | | value: value2 |
| | | } |
| | | |
| | | ] |
| | | const color = ['26,171,234', '73,226,196', '255,221,97'] |
| | | const xList = ['1æ', '2æ', '3æ', '4æ', '5æ', '6æ', '7æ', '8æ', '9æ', '10æ', '11æ', '12æ'] |
| | | const seriesData = [] |
| | | |
| | | list.forEach((r, i) => { |
| | | var o = { |
| | | name: r.key, |
| | | type: 'bar', |
| | | smooth: false, |
| | | yAxisIndex: 0, |
| | | showSymbol: true, |
| | | showAllSymbol: true, |
| | | barWidth: 8, |
| | | zlevel: 3, |
| | | lineStyle: { |
| | | normal: { |
| | | width: 2, |
| | | color: `rgba(${color[i]})` |
| | | } |
| | | }, |
| | | label: { |
| | | show: true, |
| | | position: 'top', |
| | | textStyle: { |
| | | fontSize: 14, |
| | | color: '#fff' |
| | | } |
| | | |
| | | }, |
| | | areaStyle: { |
| | | normal: { |
| | | color: { |
| | | type: 'linear', |
| | | x: 0, |
| | | y: 0, |
| | | x2: 0, |
| | | y2: 1, |
| | | colorStops: [ |
| | | { |
| | | offset: 0, |
| | | color: `rgba(${color[i]}, 0.0)`// 0% å¤çé¢è² |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: `rgba(${color[i]}, 0.0)` // 100% å¤çé¢è² |
| | | } |
| | | ], |
| | | globalCoord: false // 缺ç为 false |
| | | } // æ¸åé¢è² |
| | | } |
| | | }, |
| | | itemStyle: { |
| | | normal: { |
| | | color: { |
| | | type: 'linear', |
| | | x: 0, |
| | | y: 0, |
| | | x2: 0, |
| | | y2: 1, |
| | | colorStops: [ |
| | | { |
| | | offset: 0, |
| | | color: `rgba(${color[i]}, 1)`// 0% å¤çé¢è² |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: `rgba(${color[i]}, 0.2)` // 100% å¤çé¢è² |
| | | } |
| | | ], |
| | | globalCoord: false // 缺ç为 false |
| | | } // æ¸åé¢è² |
| | | } |
| | | }, |
| | | data: r.value.map(r => r.value) |
| | | } |
| | | |
| | | seriesData.push(o) |
| | | }) |
| | | const option = { |
| | | backgroundColor: 'transparent', |
| | | legend: { |
| | | show: true, |
| | | data: list.map(r => r.key), |
| | | top: '4%', |
| | | right: '4%', |
| | | itemHeight: 20, |
| | | itemWidth: 20, |
| | | textStyle: { |
| | | fontSize: 14, |
| | | color: 'F1F1F3' |
| | | // color: colorX |
| | | } |
| | | |
| | | }, |
| | | // title: { |
| | | // text: 'åæ ¼çåæ', |
| | | // left: '28%', |
| | | // top: '2%', |
| | | // textAlign: 'center', |
| | | // textStyle: { |
| | | // // color: '#fff', |
| | | // color: '#00ffff', |
| | | // fontSize: '20', |
| | | // fontWeight: 'bolder' |
| | | // } |
| | | // }, |
| | | grid: { |
| | | left: '4%', |
| | | right: '4%', |
| | | bottom: '4%', |
| | | top: '15%', |
| | | containLabel: true |
| | | }, |
| | | // tooltip: { |
| | | // show: true, |
| | | // trigger: 'axis', // axis , item |
| | | // backgroundColor: 'RGBA(0, 0, 0, 0.3)', |
| | | // borderColor: 'rgba(0, 151, 251, 0.6)', |
| | | // borderWidth: 1, |
| | | // borderRadius: 0, |
| | | // textStyle: { |
| | | // color: '#BCE9FC', |
| | | // fontSize: 14, |
| | | // align: 'left' |
| | | // } |
| | | // }, |
| | | xAxis: [ |
| | | { |
| | | type: 'category', |
| | | boundaryGap: true, |
| | | axisLabel: { |
| | | interval: 0, |
| | | formatter: '{value}', |
| | | fontSize: 16, |
| | | margin: 20, |
| | | textStyle: { |
| | | color: colorX |
| | | } |
| | | }, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: '#032c58' |
| | | } |
| | | }, |
| | | splitLine: { |
| | | show: false, |
| | | lineStyle: { |
| | | color: '#032c58' |
| | | } |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | data: xList |
| | | } |
| | | ], |
| | | yAxis: [ |
| | | { |
| | | // max: 800, |
| | | boundaryGap: false, |
| | | splitNumber: 4, |
| | | type: 'value', |
| | | axisLabel: { |
| | | textStyle: { |
| | | fontSize: 16, |
| | | color: colorX |
| | | } |
| | | }, |
| | | // name: 'å', |
| | | // nameTextStyle: { |
| | | // color: colorY, |
| | | // fontSize: 14, |
| | | // lineHeight: 20 |
| | | // }, |
| | | splitLine: { |
| | | show: true, |
| | | lineStyle: { |
| | | color: '#032c58' |
| | | } |
| | | }, |
| | | axisLine: { |
| | | show: true, |
| | | lineStyle: { |
| | | color: '#032c58' |
| | | } |
| | | }, |
| | | axisTick: { |
| | | show: true |
| | | } |
| | | } |
| | | |
| | | ], |
| | | series: seriesData |
| | | } |
| | | return option |
| | | } |
| | |
| | | |
| | | <div class="kb_header"> |
| | | <div class="kb_headTime" style="top: 35px;left: 20px"> |
| | | <span>æµæ±é¿é²å
å¥èº«å¨ææéå
¬å¸</span> |
| | | <span>永康å¸å£æ²£å¡ä»¶å å·¥å</span> |
| | | </div> |
| | | |
| | | <div class="kb_headTime kb_header_text" style="top: 35px;left: 800px"> |
| | |
| | | <span>{{ headTime }}</span> |
| | | </div> |
| | | </div> |
| | | |
| | | <div |
| | | style=" padding:5px 20px 20px 20px;z-index:2;height: 940px;flex-direction: column;justify-content: space-between;" |
| | | > |
| | | <!-- ä¸è¾¹--> |
| | | <div style="display: flex;justify-content: space-between"> |
| | | <div style="width: 1000px;"> |
| | | <div style="width: 925px;"> |
| | | <div class="smallTitle"> |
| | | <svg-icon icon-class="cxjg" class="svg_class" /> |
| | | ç产订å(彿) |
| | | ç产订å(æ/å£) |
| | | </div> |
| | | <div |
| | | class="lineContent horn" |
| | | style="height: 450px;display: flex;flex-direction: column;justify-content: space-between" |
| | | > |
| | | <div style="height: 180px;padding: 10px;display: flex;justify-content: space-around"> |
| | | <div v-for="i in LeftTopData01" :key="i.wkshp_code" class="flex_c_s"> |
| | | <div class="all_block01 flex_c_s" style="width: 317px;"> |
| | | <div class="flex_c_c all_block02">{{ i.wkshp_name }}</div> |
| | | <dv-border-box-12 style="height: 415px;"> |
| | | <div style="height: 180px;padding: 10px;display: flex; justify-content: space-around;"> |
| | | |
| | | <div v-for="i in LeftTopData01" :key="i.Quarter" class="flex_c_s"> |
| | | <div class="all_block03 flex_c_s"> |
| | | <div class="flex_c_c all_block04">{{ i.Quarter }}</div> |
| | | <div class="" style="display: flex;justify-content:space-between"> |
| | | <div class="all_block02 flex_c_c" style="width: 49% ">任塿°</div> |
| | | <div class="all_block02 flex_c_c" style="width: 49% ">{{ i.plan_qty }}</div> |
| | | <div class="all_block04 flex_c_c" style="width: 49% ">任塿°</div> |
| | | <div class="all_block04 flex_c_c" style="width: 49% ">{{ i.quantity }}</div> |
| | | </div> |
| | | <div class="" style="display: flex;justify-content:space-between"> |
| | | <div class="all_block02 flex_c_c" style="width: 49% ">å®å·¥æ°</div> |
| | | <div class="all_block02 flex_c_c" style="width: 49% ">{{ i.good_qty }}</div> |
| | | <div class="all_block04 flex_c_c" style="width: 49% ">å®å·¥æ°</div> |
| | | <div class="all_block04 flex_c_c" style="width: 49% ">{{ i.inquantity }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div style="height: 280px;"> |
| | | |
| | | <div style="height: 260px;"> |
| | | <div id="all01" class="flex_c_c" style="width: 100%;height:100%;" /> |
| | | </div> |
| | | </dv-border-box-12> |
| | | |
| | | </div> |
| | | </div> |
| | | <div style="width: 850px;"> |
| | | <div style="width: 925px;"> |
| | | <div class="smallTitle"> |
| | | <svg-icon icon-class="cggz" class="svg_class" /> |
| | | éå®è®¢å(æ/å£) |
| | | </div> |
| | | <div |
| | | class="lineContent horn" |
| | | style="height: 450px;display: flex;flex-direction: column;justify-content: space-between" |
| | | > |
| | | <div style="height: 180px;padding: 10px;display: flex;justify-content: space-between"> |
| | | |
| | | <dv-border-box-12 style="height: 415px;"> |
| | | <div style="height: 180px;padding: 10px;display: flex; justify-content: space-around;"> |
| | | <div v-for="i in RightTopData01" :key="i.Quarter" class="flex_c_s"> |
| | | <div class="all_block03 flex_c_s"> |
| | | <div class="flex_c_c all_block04">{{ i.Quarter }}</div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div style="height: 260px;"> |
| | | <div id="all02" class="flex_c_c" style="width: 100%;height:100%;" /> |
| | | </div> |
| | | </div> |
| | | </dv-border-box-12> |
| | | |
| | | </div> |
| | | </div> |
| | | <!-- ä¸è¾¹--> |
| | | <div style="display: flex;justify-content: space-between;margin-top: 15px;"> |
| | | <div style="width: 1000px;"> |
| | | <div style="width: 925px;"> |
| | | <div class="smallTitle"> |
| | | <svg-icon icon-class="blcs" class="svg_class" /> |
| | | è´¨éä¸è¯(è¿ä¸å¨) |
| | | <svg-icon icon-class="cgdd" class="svg_class" /> |
| | | éè´è®¢å(æ/å£) |
| | | </div> |
| | | <div class="lineContent horn" style="height: 380px;display: flex;justify-content: space-between"> |
| | | <div id="cjzl03" class="flex_c_c" style="width: 100%;height:100%" /> |
| | | |
| | | <dv-border-box-12 style="height: 415px;display:flex;"> |
| | | |
| | | <div style="height: 180px;padding: 10px;display: flex; justify-content: space-around;"> |
| | | <div v-for="i in LeftBottomData01" :key="i.Quarter" class="flex_c_s"> |
| | | <div class="all_block03 flex_c_s"> |
| | | <div class="flex_c_c all_block04">{{ i.Quarter }}</div> |
| | | <div class="" style="display: flex;justify-content:space-between"> |
| | | <div class="all_block04 flex_c_c" style="width: 49% ">任塿°</div> |
| | | <div class="all_block04 flex_c_c" style="width: 49% ">{{ i.quantity }}</div> |
| | | </div> |
| | | <div class="" style="display: flex;justify-content:space-between"> |
| | | <div class="all_block04 flex_c_c" style="width: 49% ">åºåºæ°</div> |
| | | <div class="all_block04 flex_c_c" style="width: 49% ">{{ i.ouquantity }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div style="height: 260px;"> |
| | | <div id="all03" class="flex_c_c" style="width: 100%;height:100%;" /> |
| | | </div> |
| | | |
| | | </dv-border-box-12> |
| | | |
| | | </div> |
| | | </div> |
| | | <div style="width: 850px;"> |
| | | <div style="width: 925px;"> |
| | | <div class="smallTitle"> |
| | | <svg-icon icon-class="ckkc" class="svg_class" /> |
| | | ä»åºåºå |
| | | </div> |
| | | <div class="lineContent horn" style="height: 380px;display: flex;justify-content: space-between"> |
| | | |
| | | <dv-border-box-12 style="height: 415px;"> |
| | | <div style="display: flex;justify-content: center;position: relative"> |
| | | <div class="kb_center_block_children all_block05"> |
| | | <div style="font-size: 24px;">{{ parseFloat(RightBottom.Y) }}</div> |
| | |
| | | <div class="box02" /> |
| | | <div>产æå</div> |
| | | </div> |
| | | </div> |
| | | </dv-border-box-12> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | <script> |
| | | import './kbCommon.css' |
| | | import { loadEcharts, all01, all02, cjzl03 } from '@/utils/myEcharts' |
| | | import { loadEcharts, all02 } from '@/utils/myEcharts' |
| | | import { |
| | | WorkShopCompreLeftTop, |
| | | WorkShopCompreRightBottom, |
| | | WorkShopCompreRightTop, |
| | | WorkShopProduceBottomLeftData |
| | | WorkShopCompreLeftBottom |
| | | } from '@/api/kanbanManager' |
| | | import { PrentOrganizationNoCompany } from '@/api/GeneralBasicData' |
| | | |
| | | export default { |
| | | name: 'Cjsc', |
| | | data() { |
| | | return { |
| | | headTime: '', |
| | | tableDataRightTop: [], |
| | | wkshopArr: [], |
| | | legendData: [], |
| | | |
| | | LeftTopData01: [], |
| | | LeftTopData02: [], |
| | | |
| | | RightTopData01: [], |
| | | RightTopData02: [], |
| | | cjzl03_xData: [], |
| | | cjzl03_yData: [], |
| | | |
| | | LeftBottomData01: [], |
| | | LeftBottomData02: [], |
| | | |
| | | RightBottom: {} |
| | | |
| | | } |
| | |
| | | }, 1000 * 60 * 120) |
| | | }, |
| | | mounted() { |
| | | this.getAllApi() |
| | | this.getWorkShopCompreLeftTop() |
| | | setInterval(() => { |
| | | this.getWorkShopCompreLeftTop() |
| | | }, 10 * 1000) |
| | | |
| | | this.getWorkShopCompreRightTop() |
| | | setInterval(() => { |
| | | this.getWorkShopCompreRightTop() |
| | | }, 15 * 1000) |
| | | |
| | | this.getWorkShopCompreLeftBottom() |
| | | setInterval(() => { |
| | | this.getWorkShopCompreLeftBottom() |
| | | }, 20 * 1000) |
| | | |
| | | this.getWorkShopCompreRightBottom() |
| | | setInterval(() => { |
| | | this.getWorkShopCompreRightBottom() |
| | | }, 25 * 1000) |
| | | }, |
| | | methods: { |
| | | async getAllApi() { |
| | | const res = await PrentOrganizationNoCompany() |
| | | this.wkshopArr = res.data |
| | | |
| | | const temp = ['00301', '00302', '00303'] |
| | | |
| | | temp.forEach(i => { |
| | | const aa = this.wkshopArr.find(j => j.torg_code === i).torg_name |
| | | this.legendData.push(aa) |
| | | }) |
| | | |
| | | const res2 = await WorkShopCompreLeftTop({ wkshopcode: temp.join(',') }) |
| | | for (const res2Key in res2.data.LeftTop) { |
| | | const data = { |
| | | good_qty: 0, |
| | | plan_qty: 0, |
| | | wkshp_code: '', |
| | | wkshp_name: '' |
| | | } |
| | | if (temp.includes(res2Key)) { |
| | | data.good_qty = res2.data.LeftTop[res2Key][0].good_qty |
| | | data.plan_qty = res2.data.LeftTop[res2Key][0].plan_qty |
| | | data.wkshp_code = res2.data.LeftTop[res2Key][0].wkshp_code |
| | | data.wkshp_name = this.wkshopArr.find(i => i.torg_code === data.wkshp_code).torg_name |
| | | this.LeftTopData01.push(data) |
| | | } |
| | | } |
| | | for (const res2Key in res2.data.LeftBottom) { |
| | | const data = { |
| | | quantity: 0, |
| | | wkshp_code: '', |
| | | wkshp_name: '' |
| | | } |
| | | if (temp.includes(res2Key)) { |
| | | data.quantity = res2.data.LeftBottom[res2Key][0].quantity |
| | | data.plan_qty = res2.data.LeftBottom[res2Key][0].plan_qty |
| | | data.wkshp_code = res2.data.LeftBottom[res2Key][0].wkshp_code |
| | | data.wkshp_name = this.wkshopArr.find(i => i.torg_code === data.wkshp_code).torg_name |
| | | this.LeftTopData02.push(data) |
| | | } |
| | | } |
| | | loadEcharts('all01', all01(this.legendData, this.LeftTopData02)) |
| | | |
| | | setInterval(() => { |
| | | WorkShopCompreLeftTop({ wkshopcode: temp.join(',') }).then(res2 => { |
| | | getWorkShopCompreLeftTop() { |
| | | WorkShopCompreLeftTop().then(res2 => { |
| | | this.LeftTopData01 = [] |
| | | this.LeftTopData02 = [] |
| | | for (const res2Key in res2.data.LeftTop) { |
| | | const data = { |
| | | good_qty: 0, |
| | | plan_qty: 0, |
| | | wkshp_code: '', |
| | | wkshp_name: '' |
| | | } |
| | | if (temp.includes(res2Key)) { |
| | | data.good_qty = res2.data.LeftTop[res2Key][0].good_qty |
| | | data.plan_qty = res2.data.LeftTop[res2Key][0].plan_qty |
| | | data.wkshp_code = res2.data.LeftTop[res2Key][0].wkshp_code |
| | | data.wkshp_name = this.wkshopArr.find(i => i.torg_code === data.wkshp_code).torg_name |
| | | this.LeftTopData01.push(data) |
| | | } |
| | | } |
| | | for (const res2Key in res2.data.LeftBottom) { |
| | | const data = { |
| | | quantity: 0, |
| | | wkshp_code: '', |
| | | wkshp_name: '' |
| | | } |
| | | if (temp.includes(res2Key)) { |
| | | data.quantity = res2.data.LeftBottom[res2Key][0].quantity |
| | | data.plan_qty = res2.data.LeftBottom[res2Key][0].plan_qty |
| | | data.wkshp_code = res2.data.LeftBottom[res2Key][0].wkshp_code |
| | | data.wkshp_name = this.wkshopArr.find(i => i.torg_code === data.wkshp_code).torg_name |
| | | this.LeftTopData02.push(data) |
| | | } |
| | | } |
| | | loadEcharts('all01', all01(this.legendData, this.LeftTopData02)) |
| | | }) |
| | | }, 1000 * 30) |
| | | |
| | | const res3 = await WorkShopCompreRightTop() |
| | | res3.data.RightTop.forEach(i => { |
| | | this.RightTopData01.push({ |
| | | res2.data.LeftTop.forEach(i => { |
| | | this.LeftTopData01.push({ |
| | | Quarter: i.Quarter, |
| | | quantity: i.quantity, |
| | | ouquantity: i.ouquantity |
| | | inquantity: i.inquantity |
| | | }) |
| | | }) |
| | | res3.data.RightBottom.forEach(i => { |
| | | this.RightTopData02.push({ |
| | | res2.data.LeftBottom.forEach(i => { |
| | | this.LeftTopData02.push({ |
| | | Month: i.Month + 'æ', |
| | | quantity: i.quantity, |
| | | ouquantity: i.ouquantity |
| | | ouquantity: i.inquantity |
| | | }) |
| | | }) |
| | | loadEcharts('all02', all02(this.RightTopData02)) |
| | | setInterval(() => { |
| | | loadEcharts('all01', all02(this.LeftTopData02)) |
| | | }) |
| | | }, |
| | | |
| | | getWorkShopCompreRightTop() { |
| | | WorkShopCompreRightTop().then(res3 => { |
| | | this.RightTopData01 = [] |
| | | this.RightTopData02 = [] |
| | |
| | | }) |
| | | loadEcharts('all02', all02(this.RightTopData02)) |
| | | }) |
| | | }, 1000 * 40) |
| | | }, |
| | | |
| | | const res4 = await WorkShopProduceBottomLeftData({ wkshopcode: temp.join(',') }) |
| | | this.cjzl03_xData = res4.data[temp[0]].map(i => i.click_date) |
| | | for (const res4Key in res4.data) { |
| | | if (temp.includes(res4Key)) { |
| | | const bb = res4.data[res4Key].map(i => i.count) |
| | | this.cjzl03_yData.push(bb) |
| | | } |
| | | } |
| | | loadEcharts('cjzl03', cjzl03(this.cjzl03_xData, this.legendData, this.cjzl03_yData, true)) |
| | | setInterval(() => { |
| | | WorkShopProduceBottomLeftData({ wkshopcode: temp.join(',') }).then(res4 => { |
| | | this.cjzl03_yData = [] |
| | | |
| | | this.cjzl03_xData = res4.data[temp[0]].map(i => i.click_date) |
| | | for (const res4Key in res4.data) { |
| | | if (temp.includes(res4Key)) { |
| | | const bb = res4.data[res4Key].map(i => i.count) |
| | | this.cjzl03_yData.push(bb) |
| | | } |
| | | } |
| | | loadEcharts('cjzl03', cjzl03(this.cjzl03_xData, this.legendData, this.cjzl03_yData, true)) |
| | | getWorkShopCompreLeftBottom() { |
| | | WorkShopCompreLeftBottom().then(res3 => { |
| | | this.LeftBottomData01 = [] |
| | | this.LeftBottomData02 = [] |
| | | res3.data.BottomLeftTop.forEach(i => { |
| | | this.LeftBottomData01.push({ |
| | | Quarter: i.Quarter, |
| | | quantity: i.quantity, |
| | | ouquantity: i.ouquantity |
| | | }) |
| | | }, 1000 * 50) |
| | | }) |
| | | res3.data.BottomLeftBottom.forEach(i => { |
| | | this.LeftBottomData02.push({ |
| | | Month: i.Month + 'æ', |
| | | quantity: i.quantity, |
| | | ouquantity: i.ouquantity |
| | | }) |
| | | }) |
| | | loadEcharts('all03', all02(this.LeftBottomData02)) |
| | | }) |
| | | }, |
| | | |
| | | const res5 = await WorkShopCompreRightBottom() |
| | | this.RightBottom = res5.data |
| | | |
| | | setInterval(() => { |
| | | getWorkShopCompreRightBottom() { |
| | | WorkShopCompreRightBottom().then(res5 => { |
| | | this.RightBottom = res5.data |
| | | }) |
| | | }, 1000 * 60) |
| | | }, |
| | | |
| | | // è·åEcharts |
| | | getEcharts() { |
| | | // loadEcharts('cjzl01', cjzl01(this.cjzl01Data)) |
| | | |
| | | // loadEcharts('cjzl02_1', cjzl02(this.cjzl02_1Title, this.cjzl02_1Data)) |
| | | // loadEcharts('cjzl02_2', cjzl02(this.cjzl02_2Title, this.cjzl02_2Data)) |
| | | // loadEcharts('cjzl02_3', cjzl02(this.cjzl02_3Title, this.cjzl02_3Data)) |
| | | // loadEcharts('cjzl02_4', cjzl02(this.cjzl02_4Title, this.cjzl02_4Data)) |
| | | // loadEcharts('cjzl02_5', cjzl02(this.cjzl02_5Title, this.cjzl02_5Data)) |
| | | |
| | | // loadEcharts('cjzl04', cjzl04(this.legendData, this.cjzl04Data[0], this.cjzl04Data[1], this.cjzl04Data[2]))// å³ä¾§ |
| | | // loadEcharts('cjzl03', cjzl03(this.cjzl03_xData, this.legendData, this.cjzl03_yData))// 左侧 |
| | | }, |
| | | |
| | | // è·åå½åæ¶é´ |
| | |
| | | const week = weeks[wk] |
| | | |
| | | this.headTime = `${y}-${m}-${d} ${hh}:${mm}:${ss} ${week}` |
| | | }, |
| | | headerCellStyle() { |
| | | return { |
| | | backgroundColor: 'transparent ', |
| | | padding: '10px 0', |
| | | textAlign: 'center', |
| | | color: '#07acc2', |
| | | border: 'none', |
| | | fontSize: '20px' |
| | | } |
| | | }, |
| | | cellStyle() { |
| | | return { |
| | | padding: '7px 0', |
| | | textAlign: 'center', |
| | | backgroundColor: 'transparent ', |
| | | color: '#c7e7ff', |
| | | border: 'none', |
| | | fontSize: '20px' |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | .all_block03 { |
| | | width: 199px; |
| | | width: 220px; |
| | | height: 180px; |
| | | } |
| | | |
| | |
| | | |
| | | .all_block05 { |
| | | position: absolute; |
| | | animation: upDown 3s ease-in-out infinite; |
| | | left: 60px; |
| | | animation: upDown 5s ease-in-out infinite; |
| | | left: 80px; |
| | | } |
| | | |
| | | .all_block06 { |
| | | position: absolute; |
| | | animation: upDown2 3s ease-in-out infinite; |
| | | left: 290px; |
| | | animation: upDown2 5s ease-in-out infinite; |
| | | left: 330px; |
| | | } |
| | | |
| | | .all_block07 { |
| | | position: absolute; |
| | | animation: upDown 3s ease-in-out infinite; |
| | | left: 520px; |
| | | animation: upDown 5s ease-in-out infinite; |
| | | left: 580px; |
| | | } |
| | | |
| | | @keyframes upDown { |
| | | 0% { |
| | | top: 50px; |
| | | top: 75px; |
| | | } |
| | | 50% { |
| | | top: 100px; |
| | | top: 150px; |
| | | } |
| | | 100% { |
| | | top: 50px; |
| | | top: 75px; |
| | | } |
| | | } |
| | | |
| | | @keyframes upDown2 { |
| | | 0% { |
| | | top: 100px; |
| | | top: 150px; |
| | | } |
| | | 50% { |
| | | top: 50px; |
| | | top: 75px; |
| | | } |
| | | 100% { |
| | | top: 100px; |
| | | top: 150px; |
| | | } |
| | | } |
| | | </style> |