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/styles/index.scss b/src/styles/index.scss index 05d0ef0c..edb9e08d 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -249,14 +249,14 @@ h3 { border-color: rgb(255,151,89); color: rgb(255,151,89); &:hover{ - background: #67C23A; - border-color: #67C23A; - color: white; + background: #ffffff; + border-color: rgb(255,151,89); + color: rgb(255,151,89); } &:focus{ - background: #67C23A; - border-color: #67C23A; - color: white; + background: #ffffff; + border-color: rgb(255,151,89); + color: rgb(255,151,89); } } .el-button--baocun.is-disabled{ diff --git a/src/utils/request.js b/src/utils/request.js index 8ff60856..d440babd 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -23,7 +23,7 @@ export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFil export const MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx` export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx` const service = axios.create({ - baseURL: `http://192.168.0.101:8411/submit/MESCommonBase.ashx`, + baseURL: `http://192.168.0.104:8005/submit/MESCommonBase.ashx`, timeout: 1500000 // 请求超时时间 }) diff --git a/src/views/Inventory/Inboundscanning/index.vue b/src/views/Inventory/Inboundscanning/index.vue index 4c64d609..5befe324 100644 --- a/src/views/Inventory/Inboundscanning/index.vue +++ b/src/views/Inventory/Inboundscanning/index.vue @@ -18,7 +18,7 @@ + + + + + + + + + + + +
@@ -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/MachiningSequenceAdjustment/index.vue b/src/views/ManufacturingCenter/MachiningSequenceAdjustment/index.vue index e50dfeba..a00a566d 100644 --- a/src/views/ManufacturingCenter/MachiningSequenceAdjustment/index.vue +++ b/src/views/ManufacturingCenter/MachiningSequenceAdjustment/index.vue @@ -28,7 +28,7 @@ :data="tableData" :row-key="getRowKeys" :expand-row-keys="expands" - stripe="true" + stripe size="mini" highlight-current-row border 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/ManufacturingCenter/ProcessingStatus/index.vue b/src/views/ManufacturingCenter/ProcessingStatus/index.vue index 1d600c16..b425a0a5 100644 --- a/src/views/ManufacturingCenter/ProcessingStatus/index.vue +++ b/src/views/ManufacturingCenter/ProcessingStatus/index.vue @@ -48,7 +48,9 @@ type="date" placeholder="选择日期"/> 查询 - 导出 + + 导出 + @@ -392,9 +394,9 @@ export default { } } }, - // created() { - // this.getMachine() - // }, + created() { + this.getMachine() + }, methods: { formatJson(filterVal, jsonData) { return jsonData.map(v => filterVal.map(j => { diff --git a/src/views/ManufacturingCenter/ProcessingStatusEdit/index.vue b/src/views/ManufacturingCenter/ProcessingStatusEdit/index.vue index b258f8e0..778a6f26 100644 --- a/src/views/ManufacturingCenter/ProcessingStatusEdit/index.vue +++ b/src/views/ManufacturingCenter/ProcessingStatusEdit/index.vue @@ -50,7 +50,7 @@ v-loading="listLoading1" id="ProcessingStatusEdit" :data="tableData1" - :stripe="true" + stripe class="table" size="mini" highlight-current-row diff --git a/src/views/ManufacturingCenter/StatusQuery/index.vue b/src/views/ManufacturingCenter/StatusQuery/index.vue index 2380922f..755d8924 100644 --- a/src/views/ManufacturingCenter/StatusQuery/index.vue +++ b/src/views/ManufacturingCenter/StatusQuery/index.vue @@ -17,7 +17,7 @@ :label="item.label" :value="item.value"/> - 机床号: + 机床图号: @@ -27,7 +27,7 @@ - 零件号: + 零件图号: 零件状态: @@ -54,7 +54,7 @@ :data="tableData" style="width: 100%;max-height: 600px" height="600" - stripe="true" + stripe size="mini" highlight-current-row border> @@ -69,12 +69,12 @@ {{ scope.row.组号 }} - + - + @@ -89,7 +89,7 @@ {{ scope.row.传递时间 }} - +