diff --git a/src/api/report/DayDnb.js b/src/api/report/DayDnb.js index e2d66e2..4465df0 100644 --- a/src/api/report/DayDnb.js +++ b/src/api/report/DayDnb.js @@ -42,3 +42,12 @@ export function delDayDnb(objId) { method: 'delete' }) } + +// 查询统计能耗报表 +export function energyStatisticalReportList(query) { + return request({ + url: '/report/DayDnb/energyStatisticalReportList', + method: 'get', + params: query + }) +} diff --git a/src/api/report/recordException.js b/src/api/report/recordException.js new file mode 100644 index 0000000..628376a --- /dev/null +++ b/src/api/report/recordException.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询成品下线异常记录列表 +export function listRecordException(query) { + return request({ + url: '/report/recordException/list', + method: 'get', + params: query + }) +} + +// 查询成品下线异常记录详细 +export function getRecordException(objId) { + return request({ + url: '/report/recordException/' + objId, + method: 'get' + }) +} + +// 新增成品下线异常记录 +export function addRecordException(data) { + return request({ + url: '/report/recordException', + method: 'post', + data: data + }) +} + +// 修改成品下线异常记录 +export function updateRecordException(data) { + return request({ + url: '/report/recordException', + method: 'put', + data: data + }) +} + +// 删除成品下线异常记录 +export function delRecordException(objId) { + return request({ + url: '/report/recordException/' + objId, + method: 'delete' + }) +} diff --git a/src/api/report/repairMeasures.js b/src/api/report/repairMeasures.js index 0233d29..46cf1b0 100644 --- a/src/api/report/repairMeasures.js +++ b/src/api/report/repairMeasures.js @@ -42,3 +42,11 @@ export function delRepairMeasures(objId) { method: 'delete' }) } + +// 查询返修措施维护详细 +export function findRepairMeasuresList(objId) { + return request({ + url: '/report/repairMeasures/getRepairMeasures', + method: 'get' + }) +} diff --git a/src/api/report/reportAPI.js b/src/api/report/reportAPI.js index 3721ddb..2c759e4 100644 --- a/src/api/report/reportAPI.js +++ b/src/api/report/reportAPI.js @@ -36,6 +36,15 @@ export function WIPInquiryReportList(query) { }) } +// 查询在制品明细报表 +export function WIPInquiryDetailReportList(query) { + return request({ + url: '/report/productionReport/WIPInquiryDetailReportList', + method: 'get', + params: query + }) +} + // 扫描下线记录报表 export function ScanOfflineRecordReportList(query) { return request({ @@ -143,3 +152,21 @@ export function repairRateReportList(query) { params: query }) } + +// 箱体流转追溯报表 +export function boxTurnoverTraceabilityReportList(query) { + return request({ + url: '/report/productionReport/boxTurnoverTraceabilityReportList', + method: 'get', + params: query + }) +} + +// 箱体流转追溯报表明细 +export function boxTurnoverTraceabilityDetailReportList(query) { + return request({ + url: '/report/productionReport/boxTurnoverTraceabilityDetailReportList', + method: 'get', + params: query + }) +} diff --git a/src/views/base/dnbInstant/index.vue b/src/views/base/dnbInstant/index.vue index a0afa1b..fa392f9 100644 --- a/src/views/base/dnbInstant/index.vue +++ b/src/views/base/dnbInstant/index.vue @@ -28,14 +28,14 @@ - - - + + + + + + + + @@ -112,8 +112,8 @@ - - + + - - - + + + + + + + + + + + + + + + + + + import { listDnbInstant, getDnbInstant, delDnbInstant, addDnbInstant, updateDnbInstant } from "@/api/base/dnbInstant"; import { getMonitorInfoTree } from '@/api/report/pointDnb' +import { parseTime } from '@//utils/ruoyi' export default { name: "DnbInstant", @@ -345,7 +346,7 @@ export default { { key: 7, label: `B项电流`, visible: true }, { key: 8, label: `C项电流`, visible: true }, { key: 9, label: `记录时间`, visible: false }, - { key: 10, label: `功率因数`, visible: true }, + { key: 10, label: `功率因数`, visible: false }, { key: 11, label: `正向有功`, visible: true }, { key: 12, label: `有功功率`, visible: false }, { key: 13, label: `无功功率`, visible: false }, @@ -367,6 +368,9 @@ export default { } }, created() { + const nowDate = parseTime(new Date(), '{y}-{m}-{d}') + this.daterangeCollectTime[0] = nowDate + ' 00:00:00' + this.daterangeCollectTime[1] = nowDate + ' 23:59:59' this.getList(); this.getDeptTrees(); }, diff --git a/src/views/base/monitorInfo/index.vue b/src/views/base/monitorInfo/index.vue index b084d40..ddc6c34 100644 --- a/src/views/base/monitorInfo/index.vue +++ b/src/views/base/monitorInfo/index.vue @@ -49,7 +49,7 @@ :tree-props="{children: 'children', hasChildren: 'hasChildren'}" > - + @@ -92,7 +92,7 @@ {{ parseTime(scope.row.updatedTime, '{y}-{m}-{d}') }} - + diff --git a/src/views/report/energyStatisticalReport/index.vue b/src/views/report/energyStatisticalReport/index.vue new file mode 100644 index 0000000..308d8b3 --- /dev/null +++ b/src/views/report/energyStatisticalReport/index.vue @@ -0,0 +1,335 @@ + + + diff --git a/src/views/report/pointDnb/index.vue b/src/views/report/pointDnb/index.vue index b773a89..56bef72 100644 --- a/src/views/report/pointDnb/index.vue +++ b/src/views/report/pointDnb/index.vue @@ -28,31 +28,34 @@ - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + @@ -62,27 +65,27 @@ - - 新增 - - - 修改 - + + + + + + + + + + + + + + + + + + + + + - - + + - - - + + + + - - - + + + + + + + + + + + + + + + + + + - - + + @@ -211,6 +215,7 @@ import { getMonitorInfoTree } from '@/api/report/pointDnb' import { listMonitorInfo,getMointorListLike} from "@/api/base/monitorInfo"; +import { parseTime } from '@//utils/ruoyi' @@ -265,6 +270,7 @@ export default { }, // 表单参数 form: {}, + daterangeCollectTime: [], defaultProps: { children: "children", label: "label" @@ -276,21 +282,20 @@ export default { ], }, columns: [ - { key: 0, label: `主键标识`, visible: true }, + { key: 0, label: `主键标识`, visible: false }, { key: 1, label: `计量设备编号`, visible: true }, - { key: 2, label: `仪表值`, visible: true }, + { key: 2, label: `仪表值(kW·h)`, visible: true }, { key: 3, label: `耗量`, visible: true }, { key: 4, label: `记录时间`, visible: true }, { key: 5, label: `开始时间`, visible: true }, { key: 6, label: `结束时间`, visible: true }, - { key: 7, label: `是否标识`, visible: true }, - { key: 8, label: `创建人`, visible: true }, - { key: 9, label: `创建时间`, visible: true }, - { key: 10, label: `更新人`, visible: true }, - { key: 11, label: `更新时间`, visible: true }, + { key: 7, label: `是否标识`, visible: false }, + { key: 8, label: `创建人`, visible: false }, + { key: 9, label: `创建时间`, visible: false }, + { key: 10, label: `更新人`, visible: false }, + { key: 11, label: `更新时间`, visible: false }, + { key: 12, label: `计量设备名称`, visible: true }, ], - - }; }, watch: { @@ -301,6 +306,9 @@ export default { } }, created() { + const nowDate = parseTime(new Date(), '{y}-{m}-{d}') + this.daterangeCollectTime[0] = nowDate + ' 00:00:00' + this.daterangeCollectTime[1] = nowDate + ' 23:59:59' this.getList(); this.getDeptTrees(); }, @@ -315,6 +323,11 @@ export default { /** 查询电整点耗量报表列表 */ getList() { this.loading = true; + this.queryParams.params = {}; + if (null != this.daterangeCollectTime && '' != this.daterangeCollectTime) { + this.queryParams.params["beginCollectTime"] = this.daterangeCollectTime[0]; + this.queryParams.params["endCollectTime"] = this.daterangeCollectTime[1]; + } listPointDnb(this.queryParams).then(response => { this.pointDnbList = response.rows; this.total = response.total; @@ -374,6 +387,7 @@ export default { /** 重置按钮操作 */ resetQuery() { + this.daterangeCollectTime = []; this.resetForm("queryForm"); this.queryParams.monitorCode = null; this.handleQuery(); diff --git a/src/views/report/productionExecutionReport/index.vue b/src/views/report/productionExecutionReport/index.vue index 6f30b3d..8e821db 100644 --- a/src/views/report/productionExecutionReport/index.vue +++ b/src/views/report/productionExecutionReport/index.vue @@ -113,13 +113,13 @@ - - - - - - - + @@ -162,8 +162,8 @@ export default { daterangeBeginTime: [], // 查询参数 queryParams: { - // pageNum: 1, - // pageSize: 10, + pageNum: 1, + pageSize: 10, beginBeginTime: null, endBeginTime: null, productLineCode: 'CX_02', @@ -201,10 +201,12 @@ export default { watch: { 'queryParams.productLineCode': function(newVal, oldVal) { // 执行方法,可以在这里调用你的方法 + this.selectedType = null; this.getStationList() }, selectedType(newType) { // 根据选择的工位类型筛选工位列表 + this.queryParams.stationCode = null; this.findStationList = this.stationList.filter(item => item.stationType == newType); // 重置选择的工位 // this.selectedStation = ''; @@ -236,12 +238,12 @@ export default { this.queryParams.endBeginTime = null } productionExecutionReportList(this.queryParams).then(response => { - this.reportList = response.data + this.reportList = response.rows + this.total = response.total this.totalSum = 0; this.reportList.forEach(e => { this.totalSum += e.COMP_AMOUNT }) - // this.total = response.total this.loading = false }) }, diff --git a/src/views/report/qualityInspection/index.vue b/src/views/report/qualityInspection/index.vue index 0082e87..bcb7631 100644 --- a/src/views/report/qualityInspection/index.vue +++ b/src/views/report/qualityInspection/index.vue @@ -1,6 +1,6 @@