diff --git a/src/api/wms/wmsProductProductionRecords.js b/src/api/wms/wmsProductProductionRecords.js new file mode 100644 index 0000000..8438422 --- /dev/null +++ b/src/api/wms/wmsProductProductionRecords.js @@ -0,0 +1,12 @@ +import request from '@/utils/request' + +// 查询成品生记录列表 +export function selectProductProductionRecords(query) { + return request({ + url: '/wms/put/selectProductProductionRecords', + method: 'get', + params: query + }); + + +} diff --git a/src/views/energy/WaterManagement/Energystatistics/index.vue b/src/views/energy/WaterManagement/Energystatistics/index.vue index 05547a6..70fcd5b 100644 --- a/src/views/energy/WaterManagement/Energystatistics/index.vue +++ b/src/views/energy/WaterManagement/Energystatistics/index.vue @@ -464,7 +464,7 @@ export default { this.number = this.number.toFixed(2); if (this.queryParams.monitorHierarchy == "" && this.queryParams.publicShareType == ""){ this.queryParams.type = 0; - this.queryParams.energyType = 2; + this.queryParams.energyType = 3; this.queryParams.relationId = 1; previewPolyline(this.queryParams).then((res) => { this.number = res.data.sumEnergyValue; diff --git a/src/views/kanban/Packagingline/index2.vue b/src/views/kanban/Packagingline/index2.vue index dab2d6c..5340b9c 100644 --- a/src/views/kanban/Packagingline/index2.vue +++ b/src/views/kanban/Packagingline/index2.vue @@ -129,6 +129,7 @@ style="height: 44px" :key="index" v-for="(n, index) in orderdetail" + @click="getorderdetail(n.workorderCodeSap)" > {{ n.workorderCodeSap }} @@ -407,11 +408,12 @@ export default { optionDatalist5: [], optionDatalist6: [], colorlist: ["#005aff", "#f8b551"], - datetime: null, + datetime: 0, time1: null, getlist: [], repairlist: [], orderdetail: [], + gudingworkorderCodeSap:'', packaginglinerepairlist: [], packaginglinestabilizelist: [], packaginglineinfo: [], @@ -483,7 +485,7 @@ export default { this.RefreshTime = response.data; this.time1 = setInterval(() => { _this.getdatalist(_this.selectxt); - }, 1000 * 60 * this.RefreshTime); + },1000 * 60 * this.RefreshTime); } }); }, @@ -505,9 +507,61 @@ export default { const _this = this; _this.initChart1(); _this.piedata = []; - getProductionLineInfo({ + // getProductionLineInfo({ + // equCode: _this.selectxtclasses, + // factoryCode: "ds_" + _this.selectxt, + // }).then((response) => { + // if (response) { + // _this.workOrder = response.data.workOrder; + // _this.taskNum = response.data.taskNum; + // _this.taskSampleNum = response.data.taskSampleNum; + // if (response.data.piedata.checkList) { + // response.data.piedata.checkList.forEach((item) => { + // let a = {}; + // let b = {}; + // if (item.checkResult == "合格") { + // a.name = item.checkResult; + // a.value = item.quality; + // _this.piedata[0] = a; + // } + // if (item.checkResult == "不合格") { + // b.name = item.checkResult; + // b.value = item.quality; + // _this.piedata[1] = b; + // } + // }); + // _this.initChart2(); + // } else { + // _this.initChart3(); + // } + // } + // }); + getPorOrderList({ equCode: _this.selectxtclasses, factoryCode: "ds_" + _this.selectxt, + }).then((response) => { + if (response) { + _this.orderdetail = response.data; + + if(_this.datetime == 0){ + _this.gudingworkorderCodeSap = _this.orderdetail[0].workorderCodeSap; + _this.getorderdetail(_this.gudingworkorderCodeSap); + } + _this.datetime+=1; + + if (_this.orderdetail.length == 0) { + _this.orderdetail = this.ceshitable; + } + } + }); + }, + //选择订单查看详细 + getorderdetail(item) { + const _this = this; + getProductionLineInfo({ + equCode: _this.selectxtclasses, + factoryCode: "ds_" + _this.selectxt, + workorderCodeSap: item, }).then((response) => { if (response) { _this.workOrder = response.data.workOrder; @@ -528,20 +582,9 @@ export default { _this.piedata[1] = b; } }); - _this.initChart2(); + //_this.initChart2(); } else { - _this.initChart3(); - } - } - }); - getPorOrderList({ - equCode: _this.selectxtclasses, - factoryCode: "ds_" + _this.selectxt, - }).then((response) => { - if (response) { - _this.orderdetail = response.data; - if (_this.orderdetail.length == 0) { - _this.orderdetail = this.ceshitable; + //_this.initChart3(); } } }); diff --git a/src/views/wms/wmsProductProductionRecords/index.vue b/src/views/wms/wmsProductProductionRecords/index.vue new file mode 100644 index 0000000..1d2d350 --- /dev/null +++ b/src/views/wms/wmsProductProductionRecords/index.vue @@ -0,0 +1,320 @@ + + +