diff --git a/.env.dev b/.env.dev index b1603db..baa8f98 100644 --- a/.env.dev +++ b/.env.dev @@ -1,8 +1,8 @@ ### # @Author: zhp # @Date: 2024-04-28 13:42:51 - # @LastEditTime: 2024-06-11 08:33:19 - # @LastEditors: zhp + # @LastEditTime: 2024-06-17 09:01:32 + # @LastEditors: DY # @Description: ### # 开发环境配置 @@ -13,8 +13,9 @@ VUE_APP_TITLE = 发电玻璃智能管控平台 # 芋道管理系统/开发环境 # VUE_APP_BASE_API = 'http://192.168.1.70:30307' -# VUE_APP_BASE_API = 'http://glass.kszny.picaiba.com' -VUE_APP_BASE_API = 'http://192.168.1.56:48080' +VUE_APP_BASE_API = 'http://glass.kszny.picaiba.com' +# 郭 +# VUE_APP_BASE_API = 'http://192.168.1.61:48080' # sara # VUE_APP_BASE_API = 'http://192.168.1.63:48080' # 张一丁 diff --git a/src/api/report/index.js b/src/api/report/index.js new file mode 100644 index 0000000..8571ad5 --- /dev/null +++ b/src/api/report/index.js @@ -0,0 +1,23 @@ +/* + * @Author: zhp + * @Date: 2024-06-17 09:41:03 + * @LastEditTime: 2024-06-18 13:47:36 + * @LastEditors: zhp + * @Description: + */ +import request from '@/utils/request' +export function getComprehensiveDataPage(data) { + return request({ + url: 'ip/comprehensive/data/get/comprehensive/data', + method: 'get', + params: data + }) +} + +export function getProduceTransData(data) { + return request({ + url: 'ip/prod-output/queryYCEReportByDateRange', + method: 'post', + data: data + }) +} diff --git a/src/assets/icons/svg/factoryWorkOrder.svg b/src/assets/icons/svg/factoryWorkOrder.svg new file mode 100644 index 0000000..7708508 --- /dev/null +++ b/src/assets/icons/svg/factoryWorkOrder.svg @@ -0,0 +1,17 @@ + + + 编组 15 + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/workProcess.svg b/src/assets/icons/svg/workProcess.svg new file mode 100644 index 0000000..a168a40 --- /dev/null +++ b/src/assets/icons/svg/workProcess.svg @@ -0,0 +1,15 @@ + + + 编组 13 + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/images/map.png b/src/assets/images/map.png new file mode 100644 index 0000000..083e44f Binary files /dev/null and b/src/assets/images/map.png differ diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index f3c0b35..5b6759d 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -232,6 +232,8 @@ aside { background-color: #d9d9d9; } +// 大屏滚动表格 + .no-data-bg { position: absolute; display: inline-block; @@ -252,3 +254,13 @@ aside { letter-spacing: 1px; } } + +.dv-scroll-board .rows .ceil, +.dv-scroll-board .header .header-item { + border-right: 1px solid rgba(13, 23, 40, 1); +} + +.dv-scroll-board .rows .ceil:last-child, +.dv-scroll-board .header .header-item:last-child { + border-right: none; +} diff --git a/src/store/modules/home.js b/src/store/modules/home.js index aaa4d21..0d1678d 100644 --- a/src/store/modules/home.js +++ b/src/store/modules/home.js @@ -378,10 +378,14 @@ function splitCurrentAndPreviousA(factoryListResponse, targetListResponse, prodO transformRate.target[fId] = componentConversionEfficiency } // 芯片OEE - chipOeeRate.current[fId] = factory.oee; + if (factory.glassType === 0) { + chipOeeRate.current[fId] = factory.oee; + } // chipOeeRate.previous[fId] = factory.previousYearOee; // 转化效率 - transformRate.current[fId] = factory.componentConversionEfficiency; + if (factory.glassType === 1) { + transformRate.current[fId] = factory.componentConversionEfficiency; + } // transformRate.previous[fId] = factory.previousYearComponentConversionEfficiency ; // 芯片良率 与 标准组件良率 if (![0, 1].includes(factory.glassType)) continue; @@ -403,7 +407,7 @@ function splitCurrentAndPrevious(factoryListResponse, targetListResponse, prodOu console.log('prodOutputFtoListRes',preFtoData); // 初始数据 const { chipInvest, ftoInvest, chipOutput, stdOutput, bipvOutput } = init() - if (prodOutputFtoListRes) { + if (prodOutputFtoListRes.length !== 0 ) { for (const factory of prodOutputFtoListRes) { console.log(factory); const fId = getFactoryId(factory); @@ -429,10 +433,13 @@ function splitCurrentAndPrevious(factoryListResponse, targetListResponse, prodOu // } } } - if (preData && preData[0] != null) { + if (preData) { for (const factory of preData) { const fId = getPreFactoryId(factory); - chipInvest.previous[fId] = factory.previousYearInputNumber; + if (factory.previousGlassType === 0) { + chipInvest.previous[fId] = factory.previousYearInputNumber + } + // chipInvest.previous[fId] = factory.previousYearInputNumber; if (![0, 1, 2].includes(factory.previousGlassType)) continue; const _t = [chipOutput, stdOutput, bipvOutput][factory.previousGlassType]; // if (fId) { @@ -445,11 +452,14 @@ function splitCurrentAndPrevious(factoryListResponse, targetListResponse, prodOu } } // console.log('ftoInvest',ftoInvest) - if (factoryListResponse && factoryListResponse[0] != null) { + if (factoryListResponse) { for (const factory of factoryListResponse) { const fId = getFactoryId(factory); + console.log('factory.inputNumber', factory, fId); + if (factory.glassType === 0) { + chipInvest.current[fId] = factory.inputNumber + } // const preFId = getPreFactoryId(factory); - // 获取目标值 if (targetListResponse) { const { chipYield, componentYield, bipvProductOutput } = @@ -459,7 +469,6 @@ function splitCurrentAndPrevious(factoryListResponse, targetListResponse, prodOu bipvOutput.target[fId] = bipvProductOutput; } // 芯片投入 - chipInvest.current[fId] = factory.inputNumber; // 产出数据, 0 - (玻璃)芯片产出, 1 - 标准组件产出, 2 - BIPV产出 // 因为后端写的垃圾数据,所以这里要做一下判断 @@ -467,6 +476,7 @@ function splitCurrentAndPrevious(factoryListResponse, targetListResponse, prodOu const _t = [chipOutput, stdOutput, bipvOutput][factory.glassType]; _t.current[fId] = factory.outputNumber; } + console.log('chipInvest',ftoInvest); return { chipInvest, // ftoInvest, @@ -475,15 +485,6 @@ function splitCurrentAndPrevious(factoryListResponse, targetListResponse, prodOu stdOutput, bipvOutput, }; - }else{ - return { - chipInvest, - // ftoInvest, - ftoInvest, - chipOutput, - stdOutput, - bipvOutput, - } } } diff --git a/src/styles/index.scss b/src/styles/index.scss index 5e425c0..df45f29 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -163,4 +163,4 @@ textarea { .el-upload__tip { line-height: 1.2; -} \ No newline at end of file +} diff --git a/src/views/copilot/components/FactoryDataHeader.vue b/src/views/copilot/components/FactoryDataHeader.vue index 08e42e2..f6d1bfc 100644 --- a/src/views/copilot/components/FactoryDataHeader.vue +++ b/src/views/copilot/components/FactoryDataHeader.vue @@ -107,7 +107,7 @@ export default { gap: 8px; } .factory-header > .menu2 { - width: 26vw; + width: 20vw; display: flex; justify-content: flex-end; align-items: center; diff --git a/src/views/copilot/efficiency/components/ChipOee.vue b/src/views/copilot/efficiency/components/ChipOee.vue index f2a0ae4..16c89be 100644 --- a/src/views/copilot/efficiency/components/ChipOee.vue +++ b/src/views/copilot/efficiency/components/ChipOee.vue @@ -47,8 +47,11 @@ export default { legend() { let items = []; var day1 = new Date(); - day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000); + var day2 = new Date(); + day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000) + day2.setTime(day2.getTime() - 48 * 60 * 60 * 1000) var yesterday = (day1.getMonth() + 1) + "月" + day1.getDate() + var dayBeYes = (day2.getMonth() + 1) + "月" + day2.getDate() //今天的时间 // var day2 = new Date(); // day2.setTime(day2.getTime()); @@ -60,13 +63,13 @@ export default { const year = new Date().getFullYear(); if (this.period === '日' && this.than === '同比') { items = [ - { label: `${year-1}年${month}月${today}日`, color: "#12f7f1" }, - { label: `${month}月${today}日`, color: "#58adfa" }, + { label: `${year - 1}年${yesterday}日`, color: "#12f7f1" }, + { label: `${yesterday}日`, color: "#58adfa" }, ]; } else if (this.period === '日' && this.than === '环比') { items = [ - { label: `${yesterday}日`, color: "#12f7f1" }, - { label: `${month}月${today}日`, color: "#58adfa" }, + { label: `${dayBeYes}日`, color: "#12f7f1" }, + { label: `${yesterday}日`, color: "#58adfa" }, ]; } else if (this.period === '周' && this.than === '同比') { items = [ @@ -96,7 +99,7 @@ export default { items = [ { label: `${year - 1}年`, color: "#12f7f1" }, { label: `${year}年`, color: "#58adfa" }, - { label: `${year}年`, color: "#58adfa" }, + { label: `${year}年目标`, color: "#58adfa" }, // { label: `${year}年目标`, value: valueTuple[2] }, ]; @@ -163,8 +166,11 @@ function getTemplate(period, dataList, than) { // console.log('dataList',dataList); let items = []; var day1 = new Date(); - day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000); + var day2 = new Date(); + day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000) + day2.setTime(day2.getTime() - 48 * 60 * 60 * 1000) var yesterday = (day1.getMonth() + 1) + "月" + day1.getDate() + var dayBeYes = (day2.getMonth() + 1) + "月" + day2.getDate() //今天的时间 // var day2 = new Date(); // day2.setTime(day2.getTime()); @@ -177,11 +183,11 @@ function getTemplate(period, dataList, than) { if (period === '日' && than === '同比') { items = [ { - name: `${year-1}年${month}月${today}日`, + name: `${year - 1}年${yesterday}日`, data: dataList ? dataList[0] : [], }, { - name: `${month}月${today}日`, + name: `${yesterday}日`, data: dataList ? dataList[1] : [], // : Array.from({ length: 7 }, () => Math.floor(Math.random() * 1000)), }, @@ -189,11 +195,11 @@ function getTemplate(period, dataList, than) { } else if (period === '日' && than === '环比') { items = [ { - name: `${yesterday}日`, + name: `${dayBeYes}日`, data: dataList ? dataList[0] : [], }, { - name: `${month}月${today}日`, + name: `${yesterday}日`, data: dataList ? dataList[1] : [], // : Array.from({ length: 7 }, () => Math.floor(Math.random() * 1000)), }, diff --git a/src/views/copilot/efficiency/components/TransformRate.vue b/src/views/copilot/efficiency/components/TransformRate.vue index 9c3dc91..04e07f5 100644 --- a/src/views/copilot/efficiency/components/TransformRate.vue +++ b/src/views/copilot/efficiency/components/TransformRate.vue @@ -47,8 +47,11 @@ export default { legend() { let items = []; var day1 = new Date(); - day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000); + var day2 = new Date(); + day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000) + day2.setTime(day2.getTime() - 48 * 60 * 60 * 1000) var yesterday = (day1.getMonth() + 1) + "月" + day1.getDate() + var dayBeYes = (day2.getMonth() + 1) + "月" + day2.getDate() //今天的时间 // var day2 = new Date(); // day2.setTime(day2.getTime()); @@ -60,13 +63,13 @@ export default { const year = new Date().getFullYear(); if (this.period === '日' && this.than === '同比') { items = [ - { label: `${year-1}年${month}月${today}日`, color: "#12f7f1" }, - { label: `${month}月${today}日`, color: "#58adfa" }, + { label: `${year - 1}年${yesterday}日`, color: "#12f7f1" }, + { label: `${yesterday}日`, color: "#58adfa" }, ]; } else if (this.period === '日' && this.than === '环比') { items = [ - { label: `${yesterday}日`, color: "#12f7f1" }, - { label: `${month}月${today}日`, color: "#58adfa" }, + { label: `${dayBeYes}日`, color: "#12f7f1" }, + { label: `${yesterday}日`, color: "#58adfa" }, ]; } else if (this.period === '周' && this.than === '同比') { items = [ @@ -96,7 +99,7 @@ export default { items = [ { label: `${year - 1}年`, color: "#12f7f1" }, { label: `${year}年`, color: "#58adfa" }, - { label: `${year}年`, color: "#58adfa" }, + { label: `${year}年目标`, color: "#58adfa" }, // { label: `${year}年目标`, value: valueTuple[2] }, ]; @@ -154,8 +157,11 @@ function getTemplate(period, dataList,than) { // console.log('dataList',dataList); let items = []; var day1 = new Date(); - day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000); + var day2 = new Date(); + day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000) + day2.setTime(day2.getTime() - 48 * 60 * 60 * 1000) var yesterday = (day1.getMonth() + 1) + "月" + day1.getDate() + var dayBeYes = (day2.getMonth() + 1) + "月" + day2.getDate() //今天的时间 // var day2 = new Date(); // day2.setTime(day2.getTime()); @@ -168,11 +174,11 @@ function getTemplate(period, dataList,than) { if (period === '日' && than === '同比') { items = [ { - name: `${year-1}年${month}月${today}日`, + name: `${year - 1}年${yesterday}日`, data: dataList ? dataList[0] : [], }, { - name: `${month}月${today}日`, + name: `${yesterday}日`, data: dataList ? dataList[1] : [], // : Array.from({ length: 7 }, () => Math.floor(Math.random() * 1000)), }, @@ -180,11 +186,11 @@ function getTemplate(period, dataList,than) { } else if (period === '日' && than === '环比') { items = [ { - name: `${yesterday}日`, + name: `${dayBeYes}日`, data: dataList ? dataList[0] : [], }, { - name: `${month}月${today}日`, + name: `${yesterday}日`, data: dataList ? dataList[1] : [], // : Array.from({ length: 7 }, () => Math.floor(Math.random() * 1000)), }, diff --git a/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue b/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue index 67b2633..6d7f58f 100644 --- a/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue +++ b/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue @@ -1,7 +1,7 @@ @@ -180,30 +180,30 @@ export default { itemStyle: { color: "#f3c000", }, - areaStyle: { - color: { - type: "linear", - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [ - { - offset: 0, - color: "#f3c000", // 0% 处的颜色 - }, - { - offset: 0.55, - color: "#f3c00033", - }, - { - offset: 1, - color: "transparent", // 100% 处的颜色 - }, - ], - global: false, // 缺省为 false - }, - }, + // areaStyle: { + // color: { + // type: "linear", + // x: 0, + // y: 0, + // x2: 0, + // y2: 1, + // colorStops: [ + // { + // offset: 0, + // color: "#f3c000", // 0% 处的颜色 + // }, + // { + // offset: 0.55, + // color: "#f3c00033", + // }, + // { + // offset: 1, + // color: "transparent", // 100% 处的颜色 + // }, + // ], + // global: false, // 缺省为 false + // }, + // }, data: [], // this.series[0].data, }, ], diff --git a/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue b/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue index 79475ff..848f32d 100644 --- a/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue +++ b/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue @@ -1,7 +1,7 @@ @@ -180,30 +180,30 @@ export default { itemStyle: { color: "#f3c000", }, - areaStyle: { - color: { - type: "linear", - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [ - { - offset: 0, - color: "#f3c000", // 0% 处的颜色 - }, - { - offset: 0.55, - color: "#f3c00033", - }, - { - offset: 1, - color: "transparent", // 100% 处的颜色 - }, - ], - global: false, // 缺省为 false - }, - }, + // areaStyle: { + // color: { + // type: "linear", + // x: 0, + // y: 0, + // x2: 0, + // y2: 1, + // colorStops: [ + // { + // offset: 0, + // color: "#f3c000", // 0% 处的颜色 + // }, + // { + // offset: 0.55, + // color: "#f3c00033", + // }, + // { + // offset: 1, + // color: "transparent", // 100% 处的颜色 + // }, + // ], + // global: false, // 缺省为 false + // }, + // }, data: [], // this.series[0].data, }, ], diff --git a/src/views/copilot/efficiency/components/sub/chip/ChipRateItem.vue b/src/views/copilot/efficiency/components/sub/chip/ChipRateItem.vue index d2959e9..8d90011 100644 --- a/src/views/copilot/efficiency/components/sub/chip/ChipRateItem.vue +++ b/src/views/copilot/efficiency/components/sub/chip/ChipRateItem.vue @@ -87,8 +87,11 @@ export default { const vt = this.valueTuple; let items = []; var day1 = new Date(); - day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000); + var day2 = new Date(); + day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000) + day2.setTime(day2.getTime() - 48 * 60 * 60 * 1000) var yesterday = (day1.getMonth() + 1) + "月" + day1.getDate() + var dayBeYes = (day2.getMonth() + 1) + "月" + day2.getDate() //今天的时间 // var day2 = new Date(); // day2.setTime(day2.getTime()); @@ -100,13 +103,13 @@ export default { // const year = new Date().getFullYear(); if (this.period === '日' && this.than === '同比') { items = [ - { label: `${month}月${today}日良率`, }, - { label: `${year-1}年${month}月${today}日良率` }, + { label: `${yesterday}日良率`, }, + { label: `${year - 1}年${yesterday}日良率` }, ]; } else if (this.period === '日' && this.than === '环比') { items = [ - { label: `${month}月${today}日良率` }, { label: `${yesterday}日良率` }, + { label: `${dayBeYes}日良率` }, ]; } else if (this.period === '周' && this.than === '同比') { items = [ @@ -139,7 +142,7 @@ export default { } let titleValue = vt[1] === null ? 0 + '%' : this.formatNumber(vt[1]) + '%', subtitle = { - 日: "本日良率", + 日: "昨日良率", 周: "本周良率", 月: `${month}月良率`, 年: `${year}良率`, @@ -161,8 +164,11 @@ export default { legend() { let items = []; var day1 = new Date(); - day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000); + var day2 = new Date(); + day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000) + day2.setTime(day2.getTime() - 48 * 60 * 60 * 1000) var yesterday = (day1.getMonth() + 1) + "月" + day1.getDate() + var dayBeYes = (day2.getMonth() + 1) + "月" + day2.getDate() //今天的时间 // var day2 = new Date(); // day2.setTime(day2.getTime()); @@ -174,13 +180,13 @@ export default { const year = new Date().getFullYear(); if (this.period === '日' && this.than === '同比') { items = [ - { label: `${year-1}年${month}月${today}日良率`, value: isNaN(this.valueTuple[0]) || this.valueTuple[0] == null ? 0 + "%" : (this.formatNumber(this.valueTuple[0]) ) + "%" }, - { label: `${month}月${today}日良率`, value: isNaN(this.valueTuple[1]) || this.valueTuple[1] == null ? 0 + "%" : (this.formatNumber(this.valueTuple[1])) + "%" }, + { label: `${year - 1}年${yesterday}日良率`, value: isNaN(this.valueTuple[0]) || this.valueTuple[0] == null ? 0 + "%" : (this.formatNumber(this.valueTuple[0]) ) + "%" }, + { label: `${yesterday}日良率`, value: isNaN(this.valueTuple[1]) || this.valueTuple[1] == null ? 0 + "%" : (this.formatNumber(this.valueTuple[1])) + "%" }, ]; } else if (this.period === '日' && this.than === '环比') { items = [ - { label: `${yesterday}日良率`, value: isNaN(this.valueTuple[0]) || this.valueTuple[0] == null ? 0 + "%" : (this.formatNumber(this.valueTuple[0])) + "%" }, - { label: `${month}月${today}日良率`, value: isNaN(this.valueTuple[1]) || this.valueTuple[1] == null ? 0 + "%" : (this.formatNumber(this.valueTuple[1])) + "%" }, + { label: `${dayBeYes}日良率`, value: isNaN(this.valueTuple[0]) || this.valueTuple[0] == null ? 0 + "%" : (this.formatNumber(this.valueTuple[0])) + "%" }, + { label: `${yesterday}日良率`, value: isNaN(this.valueTuple[1]) || this.valueTuple[1] == null ? 0 + "%" : (this.formatNumber(this.valueTuple[1])) + "%" }, ]; } else if (this.period === '周' && this.than === '同比') { items = [ diff --git a/src/views/copilot/efficiency/components/sub/std/StdRateItem.vue b/src/views/copilot/efficiency/components/sub/std/StdRateItem.vue index 1a79296..a6d707e 100644 --- a/src/views/copilot/efficiency/components/sub/std/StdRateItem.vue +++ b/src/views/copilot/efficiency/components/sub/std/StdRateItem.vue @@ -1,7 +1,7 @@ @@ -69,16 +69,19 @@ export default { titlePre() { console.log(this.city); var day1 = new Date(); - day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000); + var day2 = new Date(); + day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000) + day2.setTime(day2.getTime() - 48 * 60 * 60 * 1000) var yesterday = (day1.getMonth() + 1) + "月" + day1.getDate() + var dayBeYes = (day2.getMonth() + 1) + "月" + day2.getDate() const today = new Date().getDate(); const month = new Date().getMonth() + 1; const lastMonth = new Date().getMonth() + 1 === 12 ? 1 : new Date().getMonth() + 1 - 1; const year = new Date().getFullYear(); if (this.period === '日' && this.than === '同比') { - return `${year-1}年${month}月${today}日` + return `${year - 1}年${yesterday}日` } else if (this.period === '日' && this.than === '环比') { - return `${yesterday}日` + return `${dayBeYes}日` } else if (this.period === '周' && this.than === '同比') { return `${year-1}年本周` } else if (this.period === '周' && this.than === '环比') { @@ -93,14 +96,18 @@ export default { }, title() { var day1 = new Date(); - day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000); + var day2 = new Date(); + day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000) + day2.setTime(day2.getTime() - 48 * 60 * 60 * 1000) + var yesterday = (day1.getMonth() + 1) + "月" + day1.getDate() + var dayBeYes = (day2.getMonth() + 1) + "月" + day2.getDate() const today = new Date().getDate(); const month = new Date().getMonth() + 1; const year = new Date().getFullYear(); if (this.period === '日' && this.than === '同比') { - return `${month}月${today}日` + return `${yesterday}日` } else if (this.period === '日' && this.than === '环比') { - return `${month}月${today}日` + return `${yesterday}日` } else if (this.period === '周' && this.than === '同比') { return `本周` } else if (this.period === '周' && this.than === '环比') { diff --git a/src/views/copilot/efficiency/options/chipOptions.js b/src/views/copilot/efficiency/options/chipOptions.js index 23ffef7..3c50d1d 100644 --- a/src/views/copilot/efficiency/options/chipOptions.js +++ b/src/views/copilot/efficiency/options/chipOptions.js @@ -8,7 +8,7 @@ export default ({ preName, }) => ({ grid: { - left: '0%', + left: 300, right: 0, bottom: 0, top: 0, @@ -17,7 +17,7 @@ export default ({ tooltip: {}, title: { text: titleValue, - left: "44%", + left: "48%", top: "37%", textAlign: "center", textStyle: { @@ -39,7 +39,7 @@ export default ({ type: "pie", name: "当前良率", radius: ["70%", "85%"], - center: ["45%", "52%"], + center: ["50%", "52%"], emptyCircleStyle: { color: "#003982", }, @@ -48,7 +48,7 @@ export default ({ { type: "pie", radius: ["70%", "85%"], - center: ["45%", "52%"], + center: ["50%", "52%"], avoidLabelOvervlap: false, label: { show: false, @@ -97,7 +97,7 @@ export default ({ { type: "pie", radius: ["55%", "70%"], - center: ["45%", "52%"], + center: ["50%", "52%"], avoidLabelOvervlap: false, label: { show: false, diff --git a/src/views/copilot/factoryData/components/BarChartBase.vue b/src/views/copilot/factoryData/components/BarChartBase.vue index 5bf1725..b54d83c 100644 --- a/src/views/copilot/factoryData/components/BarChartBase.vue +++ b/src/views/copilot/factoryData/components/BarChartBase.vue @@ -1,19 +1,24 @@ diff --git a/src/views/produce/target/index.vue b/src/views/produce/target/index.vue index 876ef83..5d09d83 100644 --- a/src/views/produce/target/index.vue +++ b/src/views/produce/target/index.vue @@ -1,7 +1,7 @@ @@ -24,7 +24,7 @@ - + @@ -458,6 +458,13 @@ export default { this.changeTime() }, methods: { + clearTime() { + this.listQuery.beginTime = undefined + this.listQuery.endTime = undefined + this.listQuery.reportTime = [] + this.start = undefined + this.end = undefined + }, handleImport() { this.upload.title = "生产目标导入"; this.upload.open = true; diff --git a/src/views/produce/workOrder/add-or-updata.vue b/src/views/produce/workOrder/add-or-updata.vue index 2f51f7d..b52d0ba 100644 --- a/src/views/produce/workOrder/add-or-updata.vue +++ b/src/views/produce/workOrder/add-or-updata.vue @@ -1,7 +1,7 @@ @@ -23,7 +23,7 @@

工单类型

-

{{ ['', '芯片订单', '组件类型', 'bipv类型'][dataForm.workOrderType] }}

+

{{ ['', '芯片工单', '组件类型', 'bipv类型'][dataForm.workOrderType] }}

工单来源

@@ -39,7 +39,7 @@

工单状态

-

{{ ['未开始', '生产中', '已完成'][dataForm.orderStatus] }}

+

{{ ['', '未开始', '生产中', '已完成'][dataForm.orderStatus] }}

投入状态

@@ -83,7 +83,7 @@
-
+
@@ -267,7 +267,7 @@ export default { this.pieChart = echarts.init(this.$refs['pie']) this.pieChart.setOption({ title: { - text: '产品良率 ' + (pieData[0].value / (pieData[0].value + pieData[1].value)).toFixed(4) * 100 + '%', + text: !isNaN((pieData[0].value / (pieData[0].value + pieData[1].value)).toFixed(4) * 100) ? ( '产品良率 ' + (pieData[0].value / (pieData[0].value + pieData[1].value)).toFixed(4) * 100 + '%') : '产品良率 -', left: 'center' // subtext: 'Fake Data' }, @@ -308,7 +308,7 @@ export default { this.equipmentLineChart = echarts.init(this.$refs['equipmentLine']) this.equipmentLineChart.setOption({ title: { - text: '在制品分布', + text: '待制品分布', left: 'center' // subtext: 'Fake Data' }, @@ -339,7 +339,7 @@ export default { { data: yAxisList, type: 'bar', - barWidth: '40px' + barWidth: '50%' } ] }, true) @@ -351,6 +351,9 @@ export default { text: '历史趋势', left: 'center' // 设置标题居中 }, + tooltip: { + trigger: 'item' + }, xAxis: { type: 'category', data: xAxisList, diff --git a/src/views/produce/workOrder/index.vue b/src/views/produce/workOrder/index.vue index c5cab14..eae0180 100644 --- a/src/views/produce/workOrder/index.vue +++ b/src/views/produce/workOrder/index.vue @@ -1,28 +1,56 @@