| | |
| | | import request from '@/utils/request' |
| | | |
| | | // 大å²è½¦é´ç»¼åçæ¿,è·åçäº§è½¦é´ |
| | | export function ShopSearch() { |
| | | // 车é´çæ¿,ä¸çäº§ä¿¡æ¯ |
| | | export function WorkShopProduceTopData(data) { |
| | | return request({ |
| | | url: 'KanBanManagerent/ShopSearch', |
| | | method: 'get' |
| | | }) |
| | | } |
| | | // 大å²è½¦é´ç»¼åçæ¿,å·¦ä¸äº§çº¿å 工任塿¥å£ |
| | | export function LineSearchTopLeftData(data) { |
| | | return request({ |
| | | url: 'KanBanManagerent/LineSearchTopLeftData', |
| | | method: 'post', |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | // 大å²è½¦é´ç»¼åçæ¿,çäº§è½¦é´æ¥æ¾äº§çº¿æ¥å£ |
| | | export function ShopSearchLine(data) { |
| | | return request({ |
| | | url: 'KanBanManagerent/ShopSearchLine', |
| | | url: 'KanBanManagerent/WorkShopProduceTopData', |
| | | method: 'get', |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | // // 大å²è½¦é´ç»¼åçæ¿,å·¦ä¸äº§çº¿å 工任塿¥å£ |
| | | // export function LineSearchTopLeftData(data) { |
| | | // return request({ |
| | | // url: 'KanBanManagerent/LineSearchTopLeftData', |
| | | // method: 'post', |
| | | // data |
| | | // }) |
| | | // } |
| | | |
| | | // 大å²è½¦é´ç»¼åçæ¿,å·¦ä¸å表æ¥å£ |
| | | export function LineSearchBottomLeftData(data) { |
| | | // 车é´çæ¿,ä¸å·¦è¿ä¸å¨ä¸è¯è¶å¿ |
| | | export function WorkShopProduceBottomLeftData(data) { |
| | | return request({ |
| | | url: 'KanBanManagerent/LineSearchBottomLeftData', |
| | | url: 'KanBanManagerent/WorkShopProduceBottomLeftData', |
| | | method: 'get', |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | // 大å²è½¦é´ç»¼åçæ¿,å³ä¸topæè¡æ¥å£ |
| | | export function LineSearchTopRightData(data) { |
| | | // 车é´çæ¿,ä¸å³è¿ä¸æä¸è¯ç»è®¡ |
| | | export function WorkShopProduceBottomRightData(data) { |
| | | return request({ |
| | | url: 'KanBanManagerent/LineSearchTopRightData', |
| | | url: 'KanBanManagerent/WorkShopProduceBottomRightData', |
| | | method: 'get', |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | // 大å²è½¦é´ç»¼åçæ¿,å³ä¸topæè¡æ¥å£ |
| | | export function LineSearchBottomRightData(data) { |
| | | // 车é´ç»¼åçæ¿,å·¦ä¸ç产订å |
| | | export function WorkShopCompreLeftTop(data) { |
| | | return request({ |
| | | url: 'KanBanManagerent/LineSearchBottomRightData', |
| | | url: 'KanBanManagerent/WorkShopCompreLeftTop', |
| | | method: 'get', |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | // éè´è®¢åè·è¸ªç®¡ççæ¿,左䏿¬æéè´è®¢åæ°ãæ¬æéè´è¿è´§åæ°ãæ¬æéè´å
¥åºåæ° |
| | | export function PurchaseLeftTop() { |
| | | // 车é´ç»¼åçæ¿,å³ä¸éå®è®¢å |
| | | export function WorkShopCompreRightTop(data) { |
| | | return request({ |
| | | url: 'KanBanManagerent/PurchaseLeftTop', |
| | | method: 'get' |
| | | url: 'KanBanManagerent/WorkShopCompreRightTop', |
| | | method: 'get', |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | // éè´è®¢åè·è¸ªç®¡ççæ¿,å·¦ä¸éè´è®¢åè·è¸ªå表 |
| | | export function PurchaseLeftBottom() { |
| | | // 车é´ç»¼åçæ¿,å³ä¸åºå |
| | | export function WorkShopCompreRightBottom(data) { |
| | | return request({ |
| | | url: 'KanBanManagerent/PurchaseLeftBottom', |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // éè´è®¢åè·è¸ªç®¡ççæ¿,å³ä¾§Top |
| | | export function PurchaseRight() { |
| | | return request({ |
| | | url: 'KanBanManagerent/PurchaseRight', |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 大å²ä»åºçæ¿,å·¦ä¸äº§åå¾
å
¥åºå表 |
| | | export function WareHouseTopLeftData() { |
| | | return request({ |
| | | url: 'KanBanManagerent/WareHouseTopLeftData', |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 大å²ä»åºçæ¿,å·¦ä¸äº§åå¾
å
¥åºå表 |
| | | export function WareHouseTopBottomData() { |
| | | return request({ |
| | | url: 'KanBanManagerent/WareHouseTopBottomData', |
| | | method: 'get' |
| | | }) |
| | | } |
| | | // 大å²ä»åºçæ¿,å³ä¸æååºãåæååºtop5åºåæè¡ |
| | | export function WareHouseRightTopData() { |
| | | return request({ |
| | | url: 'KanBanManagerent/WareHouseRightTopData', |
| | | method: 'get' |
| | | }) |
| | | } |
| | | // 大å²ä»åºçæ¿,å³ä¸åæåºåºtop5åºåæè¡ |
| | | export function WareHouseRightBottomData() { |
| | | return request({ |
| | | url: 'KanBanManagerent/WareHouseRightBottomData', |
| | | method: 'get' |
| | | }) |
| | | } |
| | | // 车é´çæ¿å
Œ |
| | | export function WkspReportNotice(data) { |
| | | return request({ |
| | | url: 'KanBanManagerent/WkspReportNotice', |
| | | method: 'post', |
| | | url: 'KanBanManagerent/WorkShopCompreRightBottom', |
| | | method: 'get', |
| | | params: 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="1694480164779" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5197" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M517.2 878l-69.7-38.1-30.6-16.7-30.6 16.7-86.9 47.3-86.7-47.3-30.6-16.7-30.6 16.7-22.6 12.3V160c0-17.7 14.3-32 32-32h511.6c17.7 0 32 14.3 32 32v381c0 17.7 14.3 32 32 32s32-14.3 32-32V128c0-35.3-26.2-64-58.6-64H123.4C91 64 64.7 92.7 64.7 128v832L182 896l117.3 64 117.5-64 69.7 38.1c21.3 11.7 47.3-3.8 47.3-28.1 0-11.7-6.4-22.4-16.6-28z" p-id="5198" fill="#00ffff"></path><path d="M639.5 926.9c0 17.7 14.3 32 32 32s32-14.3 32-32V672.1c0-17.7-14.3-32-32-32s-32 14.3-32 32v254.8zM799.3 736.1c-17.7 0-32 14.3-32 32v158.8c0 17.7 14.3 32 32 32s32-14.3 32-32V768.1c0-17.7-14.4-32-32-32zM927.3 799.1c-17.7 0-32 14.3-32 32v95.8c0 17.7 14.3 32 32 32s32-14.3 32-32v-95.8c0-17.7-14.4-32-32-32z" p-id="5199" fill="#00ffff" data-spm-anchor-id="a313x.search_index.0.i3.d8a93a81BG5nd3" class="selected"></path><path d="M544.6 572h-256c-17.7 0-32 14.3-32 32s14.3 32 32 32h256c17.7 0 32-14.3 32-32s-14.3-32-32-32zM303.4 493.1c12.5 12.5 32.8 12.5 45.3 0l67.9-67.9 67.9 67.9c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-68-67.8 67.9-67.9c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-67.9 67.9-67.9-67.9c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l67.9 67.9-67.9 67.9c-12.3 12.5-12.3 32.7 0.1 45.2z" p-id="5200" fill="#00ffff"></path></svg> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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="1694592951293" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7561" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M640 725.333333v-128h128v128h85.333333v128h-128v-128h-42.666666v128h-128v-128h85.333333z m213.333333-128h-85.333333v-51.2l-256-256-256 256V768h256v85.333333H170.666667v-298.666666H128l384-384 384 384h-42.666667v42.666666z" fill="#00ffff" p-id="7562"></path></svg> |
| | |
| | | // tooltip: {}, |
| | | title: { |
| | | show: show, |
| | | text: 'å车é´å½æä¸è¯è¶å¿', |
| | | text: 'å车é´ä¸è¯è¶å¿', |
| | | left: '50%', |
| | | top: '3%', |
| | | textAlign: 'center', |
| | |
| | | grid: { |
| | | left: '2%', |
| | | right: '2%', |
| | | bottom: '20%', |
| | | top: '15%', |
| | | bottom: '15%', |
| | | top: '20%', |
| | | containLabel: true |
| | | }, |
| | | legend: { |
| | |
| | | symbolSize: 6, |
| | | lineStyle: { |
| | | normal: { |
| | | color: '#ffe000' // 线æ¡é¢è² |
| | | color: '#ffa800' // 线æ¡é¢è² |
| | | }, |
| | | borderColor: '#ffe000' |
| | | borderColor: '#ffa800' |
| | | }, |
| | | label: { |
| | | show: true, |
| | |
| | | }, |
| | | itemStyle: { |
| | | normal: { |
| | | color: '#ffe000' |
| | | color: '#ffa800' |
| | | } |
| | | }, |
| | | tooltip: { |
| | |
| | | symbolSize: 6, |
| | | lineStyle: { |
| | | normal: { |
| | | color: '#ffa800' // 线æ¡é¢è² |
| | | color: '#ffee00' // 线æ¡é¢è² |
| | | }, |
| | | borderColor: '#ffa800' |
| | | borderColor: '#ffee00' |
| | | }, |
| | | label: { |
| | | show: true, |
| | |
| | | }, |
| | | itemStyle: { |
| | | normal: { |
| | | color: '#ffa800' |
| | | color: '#ffee00' |
| | | } |
| | | }, |
| | | tooltip: { |
| | |
| | | font-weight: bolder; |
| | | } |
| | | |
| | | .kb_title_text{ |
| | | .kb_title_text { |
| | | font-weight: bolder; |
| | | font-size: 24px; |
| | | } |
| | |
| | | .flex_c_c { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-content: center; |
| | | align-items: center; |
| | | } |
| | | |
| | | .flex_c_s { |
| | |
| | | justify-content: space-evenly; |
| | | /*align-content: center;*/ |
| | | } |
| | | |
| | | .flex_c_b { |
| | | display: flex; |
| | | flex-direction: column; |
| | |
| | | .kb_mt10 { |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | /*å
¬åæ ·å¼*/ |
| | | .MarqueeTipsContentClass { |
| | | color: #00ffff; |
| | |
| | | font-size: 32px; |
| | | z-index: 2; |
| | | position: absolute; |
| | | top:80px; |
| | | top: 80px; |
| | | } |
| | | |
| | | /* |
| | |
| | | /*scrollbar END*/ |
| | | |
| | | |
| | | .smallTitle{ |
| | | .smallTitle { |
| | | height: 35px; |
| | | display: flex; |
| | | color: #00ffff; |
| | |
| | | /*align-content: flex-start;*/ |
| | | } |
| | | |
| | | .svg_class{ |
| | | .svg_class { |
| | | margin-right: 10px; |
| | | font-size: 28px; |
| | | } |
| | | |
| | | |
| | | |
| | | .lineContent { |
| | |
| | | </div> |
| | | |
| | | </div> |
| | | <div style="height: 260px;"> |
| | | <div style="height: 280px;"> |
| | | <div id="all01" class="flex_c_c" style="width: 100%;height:100%;" /> |
| | | </div> |
| | | </div> |
| | |
| | | <div style="width: 1000px;"> |
| | | <div class="smallTitle"> |
| | | <svg-icon icon-class="blcs" 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%" /> |
| | |
| | | <script> |
| | | import './kbCommon.css' |
| | | import { loadEcharts, all01, all02, cjzl03 } from '@/utils/myEcharts' |
| | | import { |
| | | WorkShopCompreLeftTop, |
| | | WorkShopCompreRightBottom, |
| | | WorkShopCompreRightTop, WorkShopProduceBottomLeftData, |
| | | WorkShopProduceBottomRightData |
| | | } from '@/api/kanbanManager' |
| | | import { PrentOrganizationNoCompany } from '@/api/GeneralBasicData' |
| | | // import { |
| | | // QCBadCenterLeftWeek, |
| | | // ShopSearch, WorkShopCompreLeftTop, WorkShopCompreRightBottom, WorkShopCompreRightTop |
| | |
| | | }, 1000 * 60 * 120) |
| | | }, |
| | | mounted() { |
| | | // this.getAllApi() |
| | | this.getAllApi() |
| | | }, |
| | | methods: { |
| | | async getAllApi() { |
| | | const { data: res } = await ShopSearch() |
| | | this.wkshopArr = res |
| | | const temp = this.wkshopArr.map(i => i.org_code) |
| | | // const temp = this.wkshopArr.map(i => i.org_code) |
| | | const res = await PrentOrganizationNoCompany() |
| | | this.wkshopArr = res.data |
| | | |
| | | const temp = ['CJ001', '006', 'LD001', 'ZP001'] |
| | | |
| | | temp.forEach(i => { |
| | | const aa = this.wkshopArr.find(j => j.org_code === i).org_name |
| | | 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 = { |
| | |
| | | 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.org_code === data.wkshp_code).org_name |
| | | data.wkshp_name = this.wkshopArr.find(i => i.torg_code === data.wkshp_code).torg_name |
| | | this.LeftTopData01.push(data) |
| | | } |
| | | } |
| | |
| | | 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.org_code === data.wkshp_code).org_name |
| | | data.wkshp_name = this.wkshopArr.find(i => i.torg_code === data.wkshp_code).torg_name |
| | | this.LeftTopData02.push(data) |
| | | } |
| | | } |
| | |
| | | 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.org_code === data.wkshp_code).org_name |
| | | data.wkshp_name = this.wkshopArr.find(i => i.torg_code === data.wkshp_code).torg_name |
| | | this.LeftTopData01.push(data) |
| | | } |
| | | } |
| | |
| | | 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.org_code === data.wkshp_code).org_name |
| | | data.wkshp_name = this.wkshopArr.find(i => i.torg_code === data.wkshp_code).torg_name |
| | | this.LeftTopData02.push(data) |
| | | } |
| | | } |
| | |
| | | }) |
| | | }, 1000 * 40) |
| | | |
| | | const res4 = await QCBadCenterLeftWeek({ wkshopcode: temp.join(',') }) |
| | | 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)) { |
| | |
| | | } |
| | | loadEcharts('cjzl03', cjzl03(this.cjzl03_xData, this.legendData, this.cjzl03_yData, true)) |
| | | setInterval(() => { |
| | | QCBadCenterLeftWeek({ wkshopcode: temp.join(',') }).then(res4 => { |
| | | WorkShopProduceBottomLeftData({ wkshopcode: temp.join(',') }).then(res4 => { |
| | | this.cjzl03_yData = [] |
| | | |
| | | this.cjzl03_xData = res4.data[temp[0]].map(i => i.click_date) |
| | |
| | | } |
| | | |
| | | .all_block01{ |
| | | width:187px; |
| | | width:237px; |
| | | height: 180px; |
| | | } |
| | | .all_block02{ |