diff --git a/src/assets/img/img12.png b/src/assets/img/img12.png index c4c53c05..c6606389 100644 Binary files a/src/assets/img/img12.png and b/src/assets/img/img12.png differ diff --git a/src/views/ManufacturingCenter/EquipmentConditionAnalysis/index.vue b/src/views/ManufacturingCenter/EquipmentConditionAnalysis/index.vue index 0c6d0fce..bf1446f8 100644 --- a/src/views/ManufacturingCenter/EquipmentConditionAnalysis/index.vue +++ b/src/views/ManufacturingCenter/EquipmentConditionAnalysis/index.vue @@ -26,9 +26,9 @@ + + + + + + + + + + + +
@@ -201,46 +213,48 @@ export default { searchData1() { getData2(this.MachineValue1, this.date1, this.date2).then(response => { this.table = response.data - console.log(this.table, 222) }).then(() => { this.drawLine() - }) - if (this.date1 === null || this.date2 === null) { - this.$message.warning('请选择开始时间或结束时间') - } else { - const endYear = parseInt(this.date2.split('-')[0]) - const startYear = parseInt(this.date1.split('-')[0]) - const endMonth = parseInt(this.date2.split('-')[1]) - const startMonth = parseInt(this.date1.split('-')[1]) - const endDate = parseInt(this.date2.split('-')[2]) - const startDate = parseInt(this.date1.split('-')[2]) - let diff - if ((endMonth - startMonth) === 0) { - diff = endDate - startDate - } - if ((endMonth - startMonth) === 1) { - diff = endDate - startDate + 10 - } - if ((endMonth - startMonth) > 1 || (endYear - startYear) !== 0) { - diff = 999 - } - if (diff > 6) { - this.$message.warning('选择时间区间不得超过6天!') + if (!this.date1 || !this.date2) { + this.$message.warning('请选择开始时间或结束时间') } else { - searchState().then(response => { - for (let i = 0; i < response.data.length; i++) { - this.colors.push(response.data[i].颜色) - this.state.push(response.data[i].状态) + if (!this.MachineValue1) { + this.$message.warning('请选择工位') + } else { + const endYear = parseInt(this.date2.split('-')[0]) + const startYear = parseInt(this.date1.split('-')[0]) + const endMonth = parseInt(this.date2.split('-')[1]) + const startMonth = parseInt(this.date1.split('-')[1]) + const endDate = parseInt(this.date2.split('-')[2]) + const startDate = parseInt(this.date1.split('-')[2]) + let diff + if ((endMonth - startMonth) === 0) { + diff = endDate - startDate } - }) - getData3(this.MachineValue1, this.date1, this.date2).then(response => { - this.table1 = response.data - console.log(this.table1) - }).then(() => { - this.drawLine3() - }) + if ((endMonth - startMonth) === 1) { + diff = endDate - startDate + 10 + } + if ((endMonth - startMonth) > 1 || (endYear - startYear) !== 0) { + diff = 999 + } + if (diff > 6) { + this.$message.warning('选择时间区间不得超过6天!') + } else { + searchState().then(response => { + for (let i = 0; i < response.data.length; i++) { + this.colors.push(response.data[i].颜色) + this.state.push(response.data[i].状态) + } + }) + getData3(this.MachineValue1, this.date1, this.date2).then(response => { + this.table1 = response.data + }).then(() => { + this.drawLine3() + }) + } + } } - } + }) }, // 绘制图形 drawLine() { @@ -248,7 +262,6 @@ export default { const xData = [] const lineData = [] for (let i = 0; i < this.table.length; i++) { - console.log(this.table[i].日期, 1111) xData.push(this.table[i].日期.split(' ')[0]) lineData.push(this.table[i].利用率.toFixed(2)) } @@ -304,8 +317,8 @@ export default { myChart.clear() myChart.setOption({ title: { - text: '单台设备状态', - x: 350 + text: this.MachineValue + '设备状态' + '(' + this.Time + ')', + x: 250 }, tooltip: { trigger: 'item', @@ -344,8 +357,8 @@ export default { myChart.clear() myChart.setOption({ title: { - text: '全员设备状态', - x: 350 + text: '全员设备状态' + '(' + this.Time + ')', + x: 300 }, tooltip: { trigger: 'item', diff --git a/src/views/ManufacturingCenter/ParseQuery/index.vue b/src/views/ManufacturingCenter/ParseQuery/index.vue index d11117ea..cfefdb9d 100644 --- a/src/views/ManufacturingCenter/ParseQuery/index.vue +++ b/src/views/ManufacturingCenter/ParseQuery/index.vue @@ -4447,7 +4447,7 @@ export default { font-weight: bold; } .el-card{ - margin: 5px 10px 5px 10px; + margin: 0; } .showDiv{ height: 380px; diff --git a/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue b/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue index bdcb9800..d1ac5986 100644 --- a/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue +++ b/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue @@ -87,7 +87,7 @@ 保存
- +