@@ -110,78 +115,79 @@ const qualityYearList = [
{
name: '翻转机',
code: 'EQ20240110112358000235',
- status: '正常',
+ status: '运行',
error: true,
},
{
name: '烘干炉',
code: 'EQ20240110112537000241',
- status: '计划停机',
+ status: '停机',
error: true,
},
{
name: '清洗机',
code: ' EQ20240110112310000232',
- status: '正常',
+ status: '故障',
error: true,
},
{
name: '钢化清洗机',
code: 'EQ20240110111700000208',
- status: '正常',
+ status: '故障',
error: true,
},
{
name: '固化机',
code: 'EQ20240110111700000201',
- status: '正常',
+ status: '停机',
error: false,
},
{
name: '磨边清洗机',
code: ' EQ20240110111700000208',
- status: '正常',
+ status: '停机',
error: true,
},
{
name: '预热机',
code: 'EQ20240110111700000205',
- status: '故障',
+ status: '运行',
error: false,
},
{
name: '下片机',
- code: 'EQ20240115151435000279',
+ code: 'EQ20240115151435000279',
+ status: '故障',
error: true,
},
{
name: '冷却机',
code: 'EQ20240110111700000203',
- status: '正常',
+ status: '运行',
error: false,
},
{
name: 'A储片机106',
code: 'EQ20240110111700000202',
- status: '正常',
+ status: '停机',
error: true,
},
{
name: '二次清洗机',
code: 'EQ20240110111700000209',
- status: '正常',
+ status: '停机',
error: true,
},
{
name: '二次磨边机',
code: ' EQ20240110110927000181',
- status: '正常',
+ status: '停机',
error: false,
},
{
name: '测试设备',
code: 'EQ20240110111700000201',
- status: '正常',
+ status: '运行',
error: true,
},
];
@@ -292,11 +298,11 @@ export default {
// equipmentList:[],
EnergyMonitoringList: [],
eqConfig: {
- header: ['序号', '设备名称', '设备编码', '设备状态', '是否故障'],
+ header: ['序号', '设备名称', '产线名', '设备状态'],
headerBGC: 'rgba(32, 55, 96, 0.8)',
oddRowBGC: 'rgba(32, 55, 96, 0.8)',
evenRowBGC: 'rgba(14, 32, 62, 0.8)',
- columnWidth: [70, 100, 200, 90, 90],
+ columnWidth: [70, 130, 240, 120],
align: ['center'],
data: [],
// index:true,
@@ -373,15 +379,15 @@ export default {
this.websocketClose();
this.SJGWebsocketClose();
},
- mounted() {
+ mounted() {
let detData = [
{
id: '1',
- name: '测试工单',
+ name: '镀釉光伏玻璃GW',
progressRate: 0.933333,
specifications: '1100*5554*22',
- plan: 11111,
- actualQuantity:111,
+ plan: 111111111111,
+ actualQuantity:10000001111,
},
{
id: '2',
@@ -455,9 +461,9 @@ export default {
id: ele.id,
name: ele.name,
progressRate: parseFloat((ele.progressRate * 100).toFixed(0)),
- specifications: ele.specifications ? '规格' + ele.specifications :null,
- planQuantity: ele.plan ? '计划' + ele.plan + '片' : null,
- actualQuantity: ele.actualQuantity + '片',
+ specifications: ele.specifications ? '规格' + ele.specifications :'',
+ planQuantity: ele.plan ? '计划' + this.getStr(String(ele.plan)) : '',
+ actualQuantity: ele.actualQuantity ?this.getStr(String(ele.actualQuantity)) : '',
};
}
});
@@ -473,16 +479,15 @@ export default {
this.EnergyMonitoringNameList,
this.EnergyMonitoringList
);
- let eqArr = this.qualityYearList.map((item, index) => [
+ let eqArr = this.qualityYearList.map((item, index) => [
`
${index + 1 || ''}
`,
// formatDate(item.planStartTime) || '',
`
${item.name || ''}
`,
- `
${item.code || ''}`,
- `
${item.status || ''}`,
- `
${item.error == true ? '是' : '否' || ''}`,
+ `
${item.lineName || ''}`,
+ `
${item.status || ''}`,
]);
this.eqConfig.data = eqArr;
let data = [
@@ -561,6 +566,15 @@ export default {
// removeEventListener('resize', resizeFun)
// },
methods: {
+ getStr(str) {
+ //你要处理的字符串
+ if (str.length > 6) { //如果字符长度超过10,后面的字符就变成...可自行调整长度和代替字符
+ str = str.substr(0, 6) + "..." //截取从第一个字符开始,往后取10个字符,剩余的用...代替
+ return str
+ } else {
+ return str
+ }
+ },
getData() {
let processArr = qualityMonthList.map((item, index) => [
// console.log(item)
@@ -746,10 +760,10 @@ export default {
`
${item.name || ''}
`,
`
${
- item.code || ''
+ item.lineName || ''
}`,
- `
${item.status || ''}`,
- `
${item.error == true ?'是' :'否' || ''}`,
+ `
${item.status || ''}`,
+ // `
${item.error == true ?'是' :'否' || ''}`,
]);
this.eqConfig.data = eqArr;
// this.$nextTick(() => {
@@ -971,7 +985,7 @@ export default {
.now-secondary-title {
display: inline-block;
- width: 70px;
+ width: 110px;
margin: 0;
font-size: 14px;
line-height: 2em;
@@ -990,16 +1004,27 @@ export default {
width: 60px;
margin: 0;
font-size: 14px;
+ text-align: right;
+ color: rgba(0, 255, 247, 1);
+}
+.orderFinishTwo{
+ display: inline-block;
+ width: 15px;
+ margin: 0;
+ font-size: 14px;
line-height: 2em;
+ // text-overflow: ellipsis;
+ // white-space: nowrap;
+ // overflow: hidden;
text-align: right;
color: rgba(0, 255, 247, 1);
}
.orderPlan {
display: inline-block;
- width: 100px;
+ // width: 80px;
margin: 0;
font-size: 14px;
- line-height: 2em;
+ // line-height: 2em;
color: #fff;
text-align: left;
}
diff --git a/src/views/report/ingredientReport/day.vue b/src/views/report/ingredientReport/day.vue
index 02bae6ee..47f90a44 100644
--- a/src/views/report/ingredientReport/day.vue
+++ b/src/views/report/ingredientReport/day.vue
@@ -1,10 +1,3 @@
-
@@ -24,10 +17,13 @@
-->
-
-
+
+
-
+
@@ -36,7 +32,7 @@
-->
-
@@ -17,6 +17,12 @@
+
+
+
+
+
+
@@ -9,7 +9,7 @@
-
+
@@ -46,7 +46,10 @@
-->
-
+
@@ -59,21 +62,6 @@
-->
-
-
-
- 人工监测人员
-
-
-
-
-
- 合计
-
-
- {{ sum }}
-
-
@@ -160,59 +148,59 @@ export default {
radio:'晚班查询',
lineList:[],
codeList: [
- {
- label: '19:00',
- prop: 'num0'
+ // {
+ // label: '19:00',
+ // prop: 'num0'
- },
- {
- label: '20:00',
- prop: 'num1'
- },
- {
- label: '21:00',
- prop: 'num2'
- },
- {
- label: '22:00',
- prop: 'num3'
- },
- {
- label: '23:00',
- prop: 'num4'
- },
- {
- label: '00:00',
- prop: 'num5'
- },
- {
- label: '01:00',
- prop: 'num6'
- },
- {
- label: '02:00',
- prop: 'num7'
- },
- {
- label: '03:00',
- prop: 'num8'
- },
- {
- label: '04:00',
- prop: 'num9'
- },
- {
- label: '05:00',
- prop: 'num10'
- },
- {
- label: '06:00',
- prop: 'num11'
- },
- {
- label: '不良合计',
- prop: 'sum'
- }
+ // },
+ // {
+ // label: '20:00',
+ // prop: 'num1'
+ // },
+ // {
+ // label: '21:00',
+ // prop: 'num2'
+ // },
+ // {
+ // label: '22:00',
+ // prop: 'num3'
+ // },
+ // {
+ // label: '23:00',
+ // prop: 'num4'
+ // },
+ // {
+ // label: '00:00',
+ // prop: 'num5'
+ // },
+ // {
+ // label: '01:00',
+ // prop: 'num6'
+ // },
+ // {
+ // label: '02:00',
+ // prop: 'num7'
+ // },
+ // {
+ // label: '03:00',
+ // prop: 'num8'
+ // },
+ // {
+ // label: '04:00',
+ // prop: 'num9'
+ // },
+ // {
+ // label: '05:00',
+ // prop: 'num10'
+ // },
+ // {
+ // label: '06:00',
+ // prop: 'num11'
+ // },
+ // {
+ // label: '不良合计',
+ // prop: 'sum'
+ // }
],
tableData: [],
formConfig: [
@@ -255,7 +243,7 @@ export default {
// this.listQuery.startTime = this.formConfig[0].defaultSelect[0]
// this.listQuery.endTime = this.formConfig[0].defaultSelect[1]
// this.formConfig[0].defaultSelect[0] = Date.now()-24*60*60-1000
- this.listQuery.startTime = new Date(new Date().setHours(1, 9, 0, 0)).getTime()
+ this.listQuery.startTime = new Date()
this.getDataList()
this.getDict()
// this.getSpanArr(this.tableData)
@@ -268,28 +256,12 @@ export default {
this.lineList = res.data
},
// objectSpanMethod({ row, column, rowIndex, columnIndex }) {
- // let spanOneArr = [], concatOne = 0;
- // this.tableData.map((item, index) => {
- // if (index === 0) {
- // spanOneArr.push(1);
- // } else {
- // //第一列需合并相同内容的判断条件
- // if (item.className === this.tableData[index - 1].className) {
- // spanOneArr[concatOne] += 1;
- // spanOneArr.push(0);
- // } else {
- // spanOneArr.push(1);
- // concatOne = index;
- // };
- // }
- // });
-
- // if (columnIndex === 0) {
- // const _row = spanOneArr[rowIndex];
- // const _col = _row > 0 ? 1 : 0;
- // return {
- // rowspan: _row,
- // colspan: _col
+ // if (columnIndex === 1) {
+ // if (rowIndex === this.tableData.length-1) {
+ // return {
+ // rowspan: 1,
+ // colspan: 4
+ // }
// }
// }
// },
@@ -310,134 +282,7 @@ export default {
return y + '-' + m + '-' + d + ' ' + h + ':' + minute + ':' + second;
},
handleGetClass(e) {
- let str = this.listQuery.startTime
- // console.log(str);
- this.listQuery.startTime = new Date(new Date(str).setHours(0, 7, 0, 0)).getTime()
- // console.log(startTime1)
- this.codeList = []
- if (e === '早班查询') {
- let arr = [
- {
- label: '07:00',
- prop:'num0'
- },
- {
- label: '08:00',
- prop: 'num1'
- },
- {
- label: '09:00',
- prop: 'num2'
- },
- {
- label: '10:00',
- prop: 'num3'
- },
- {
- label: '11:00',
- prop: 'num4'
- },
- {
- label: '12:00',
- prop: 'num5'
- },
- {
- label: '13:00',
- prop: 'num6'
- },
- {
- label: '14:00',
- prop: 'num7'
- },
- {
- label: '15:00',
- prop: 'num8'
- },
- {
- label: '16:00',
- prop: 'num9'
- },
- {
- label: '17:00',
- prop: 'num10'
- },
- {
- label: '18:00',
- prop: 'num11'
- },
- {
- label: '不良合计',
- prop: 'sum'
- }
- ]
- arr.forEach((ele,index) => [
- this.codeList.push(ele)
- ])
this.getDataList()
- } else {
- let str = this.listQuery.startTime
- // console.log(str);
- this.listQuery.startTime = new Date(new Date(str).setHours(0, 7, 0, 0)).getTime()
- let arr = [
- {
- label: '19:00',
- prop: 'num0'
-
- },
- {
- label: '20:00',
- prop: 'num1'
- },
- {
- label: '21:00',
- prop: 'num2'
- },
- {
- label: '22:00',
- prop: 'num3'
- },
- {
- label: '23:00',
- prop: 'num4'
- },
- {
- label: '00:00',
- prop: 'num5'
- },
- {
- label: '01:00',
- prop: 'num6'
- },
- {
- label: '02:00',
- prop: 'num7'
- },
- {
- label: '03:00',
- prop: 'num8'
- },
- {
- label: '04:00',
- prop: 'num9'
- },
- {
- label: '05:00',
- prop: 'num10'
- },
- {
- label: '06:00',
- prop: 'num11'
- },
- {
- label: '不良合计',
- prop: 'sum'
- }
- ]
- arr.forEach((ele, index) => [
- this.codeList.push(ele)
- ])
- this.getDataList()
- }
},
handleExport() {
// 处理查询参数
@@ -484,28 +329,45 @@ export default {
// },
// 获取数据列表
getDataList() {
- if (this.radio === '晚班查询') {
- let str = this.listQuery.startTime
- // console.log(str);
- this.listQuery.startTime = new Date(new Date(str).setHours(1, 9, 0, 0)).getTime()
+ var str = null
+ if (this.radio == '晚班查询') {
+ console.log(this.radio);
+ str = new Date(new Date(this.listQuery.startTime).setHours(19, 0, 0, 0)).getTime()
} else {
- let str = this.listQuery.startTime
- // console.log(str);
- this.listQuery.startTime = new Date(new Date(str).setHours(0, 7, 0, 0)).getTime()
+ str = new Date(new Date(this.listQuery.startTime).setHours(7, 0, 0, 0)).getTime()
}
- this.dataListLoading = true;
+ // this.dataListLoading = true;
// this.listQuery.startTime = '1713197388000';
// this.listQuery.endTime = '1713254961000';
this.urlOptions.getDataListURL({
// productionLineId: '1696716506443354114',
- // startTime: '1705618800000'
+ // startTime: '1705618800000',
productionLineId: this.listQuery.productionLineId,
- startTime:this.listQuery.startTime
+ startTime: str
},).then(res => {
let count = 0
let arr = []
console.log(res.data)
- this.sum = res.data.allSum
+
+ res.data.timeStrList.push('不良合计')
+ this.codeList = res.data.timeStrList.map((ele, index) => {
+ if (ele === '不良合计') {
+ return {
+ label: ele,
+ prop: 'sum'
+ }
+ } else {
+ return {
+ label: ele,
+ prop: 'num' + index
+ }
+ }
+
+ })
+ console.log(this.codeList)
+ // res.data.timeStrList.forEach((ele, index) => [
+ // this.codeList.push(ele)
+ // ])
for (let i in res.data.qualityInspectionRecordReportLineVOMap) {
count ++,
console.log(res.data.qualityInspectionRecordReportLineVOMap[i])
@@ -526,130 +388,11 @@ export default {
}
console.log(arr);
this.tableData = arr
- // console.log(res)
- // console.log(res.data)
- // let arr = [
- // {
- // classType: 1,
- // className: '白班(8:00-20:00)',
- // 'sj1': null,
- // 'sj2': null,
- // 'sj3': null,
- // 'sj4': null,
- // 'sj5': null,
- // 'sj7': null,
- // 'sj8': null,
- // 'sj10': null,
- // 'sj11': null,
- // 'sj12': null,
- // 'sj13': null,
- // 'sj14': null,
- // putType: '投入数量'
- // },
- // {
- // classType: 1,
- // className: '白班(8:00-20:00)',
- // 'sj1': null,
- // 'sj2': null,
- // 'sj3': null,
- // 'sj4': null,
- // 'sj5': null,
- // 'sj7': null,
- // 'sj8': null,
- // 'sj10': null,
- // 'sj11': null,
- // 'sj12': null,
- // 'sj13': null,
- // 'sj14': null,
- // putType: '投入次数'
- // },
- // {
- // classType: 2,
- // className: '夜班(20:00-8:00)',
- // 'sj1': null,
- // 'sj2': null,
- // 'sj3': null,
- // 'sj4': null,
- // 'sj5': null,
- // 'sj7': null,
- // 'sj8': null,
- // 'sj10': null,
- // 'sj11': null,
- // 'sj12': null,
- // 'sj13': null,
- // 'sj14': null,
- // putType: '投入数量',
- // },
- // {
- // classType: 2,
- // className: '夜班(20:00-8:00)',
- // 'sj1': null,
- // 'sj2': null,
- // 'sj3': null,
- // 'sj4': null,
- // 'sj5': null,
- // 'sj7': null,
- // 'sj8': null,
- // 'sj10': null,
- // 'sj11': null,
- // 'sj12': null,
- // 'sj13': null,
- // 'sj14': null,
- // putType: '投入次数',
- // },
- // {
- // classType: 1,
- // className: '全天',
- // 'sj1': null,
- // 'sj2': null,
- // 'sj3': null,
- // 'sj4': null,
- // 'sj5': null,
- // 'sj7': null,
- // 'sj8': null,
- // 'sj10': null,
- // 'sj11': null,
- // 'sj12': null,
- // 'sj13': null,
- // 'sj14': null,
- // putType: '投入数量',
- // },
- // {
- // classType: 2,
- // className: '全天',
- // 'sj1': null,
- // 'sj2': null,
- // 'sj3': null,
- // 'sj4': null,
- // 'sj5': null,
- // 'sj7': null,
- // 'sj8': null,
- // 'sj10': null,
- // 'sj11': null,
- // 'sj12': null,
- // 'sj13': null,
- // 'sj14': null,
- // putType: '投入次数',
- // }
- // ]
- // res.data.forEach((ele) => {
- // this.codeList.forEach((item) => {
- // if (ele.classType === 1 && ele.code == item) {
- // // console.log(arr[0][item])
- // arr[0][item] = ele.putNum
- // arr[1][item] = ele.useNum
- // } else if (ele.classType === 2 && ele.code == item) {
- // arr[2][item] = ele.putNum
- // arr[3][item] = ele.useNum
- // } else if (ele.classType === 3 && ele.code == item) {
- // arr[4][item] = ele.putNum
- // arr[5][item] = ele.useNum
- // }
- // })
- // })
- // // console.log(arr)
- // this.tableData = arr
- // this.dataListLoading = false;
+ this.tableData.push({
+ name: '检验员',
+ num11: '合计',
+ sum: res.data.allSum
+ })
});
},
buttonClick(val) {
From 7233720c2ec314de1b7d8b694e48a4632e9b5a44 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’>
Date: Thu, 25 Apr 2024 10:19:02 +0800
Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/report/qcReport/cutDayReport/index.vue | 6 +++---
src/views/report/qcReport/fullInspection/index.vue | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/views/report/qcReport/cutDayReport/index.vue b/src/views/report/qcReport/cutDayReport/index.vue
index f84742d0..bd90490f 100644
--- a/src/views/report/qcReport/cutDayReport/index.vue
+++ b/src/views/report/qcReport/cutDayReport/index.vue
@@ -1,7 +1,7 @@
@@ -326,7 +326,7 @@ export default {
//返回一个新创建的 Blob 对象,其内容由参数中给定的数组串联组成。
new Blob([wbout], { type: "application/octet-stream" }),
//设置导出文件名称
- "原片各线堆垛表.xlsx"
+ "切割堆垛日报.xlsx"
);
} catch (e) {
if (typeof console !== "undefined") console.log(e, wbout);
@@ -355,7 +355,7 @@ export default {
//返回一个新创建的 Blob 对象,其内容由参数中给定的数组串联组成。
new Blob([wbout], { type: "application/octet-stream" }),
//设置导出文件名称
- "原片各线堆垛表.xlsx"
+ "切割堆垛日报.xlsx"
);
} catch (e) {
if (typeof console !== "undefined") console.log(e, wbout);
diff --git a/src/views/report/qcReport/fullInspection/index.vue b/src/views/report/qcReport/fullInspection/index.vue
index 47e25f5a..bdc0798a 100644
--- a/src/views/report/qcReport/fullInspection/index.vue
+++ b/src/views/report/qcReport/fullInspection/index.vue
@@ -1,7 +1,7 @@
@@ -308,7 +308,7 @@ export default {
//返回一个新创建的 Blob 对象,其内容由参数中给定的数组串联组成。
new Blob([wbout], { type: "application/octet-stream" }),
//设置导出文件名称
- "原片各线堆垛表.xlsx"
+ "全检检验记录.xlsx"
);
} catch (e) {
if (typeof console !== "undefined") console.log(e, wbout);
From bf4bab2f3c6da520898b24f0511501d3896ee2e5 Mon Sep 17 00:00:00 2001
From: juzi <819872918@qq.com>
Date: Thu, 25 Apr 2024 11:06:16 +0800
Subject: [PATCH 3/4] =?UTF-8?q?=E7=83=9F=E6=B0=94=E9=9A=90=E8=97=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/databoard/deepProcessing/EqAlarm.vue | 16 ++++++++--------
src/views/databoard/kiln/GasHandle.vue | 7 ++++---
2 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/src/views/databoard/deepProcessing/EqAlarm.vue b/src/views/databoard/deepProcessing/EqAlarm.vue
index 805da998..5b755ec1 100644
--- a/src/views/databoard/deepProcessing/EqAlarm.vue
+++ b/src/views/databoard/deepProcessing/EqAlarm.vue
@@ -32,11 +32,11 @@ export default {
return {
timestr: '',
config: {
- header: ['序号', '设备名称', '设备编码', '设备状态', '是否故障'],
+ header: ['序号', '设备名称', '产线名', '设备状态'],
headerBGC: 'rgba(32, 55, 96, 0.8)',
oddRowBGC: 'rgba(32, 55, 96, 0.8)',
evenRowBGC: 'rgba(14, 32, 62, 0.8)',
- columnWidth: [60, 150, 190],
+ columnWidth: [60, 280, 120],
align: ['center'],
data: [],
// data: [
@@ -64,7 +64,7 @@ export default {
let outArr = this.sjgEquipment.map((item, index) => [
index + 1,
`${item.name || ''}`,
- `${item.code || ''}`,
+ `${item.lineName || ''}`,
` ${item.status || ''}`,
- ` ${item.error == true ? '是' : '否' || ''}`,
+ // ` ${item.error == true ? '是' : '否' || ''}`,
]);
this.config.data = outArr;
this.$refs['eqScrollBoard'].updateRows(outArr);
diff --git a/src/views/databoard/kiln/GasHandle.vue b/src/views/databoard/kiln/GasHandle.vue
index 999c9274..2d6df9e6 100644
--- a/src/views/databoard/kiln/GasHandle.vue
+++ b/src/views/databoard/kiln/GasHandle.vue
@@ -80,7 +80,7 @@
-
+
+
Date: Thu, 25 Apr 2024 13:56:49 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/report/qcReport/cutDayReport/index.vue | 15 ++++++++-------
.../report/qcReport/fullInspection/index.vue | 4 ++--
src/views/report/qcReport/lineReport.vue | 12 ++++++------
src/views/report/qcReport/optimizeCutData.vue | 12 ++++++------
4 files changed, 22 insertions(+), 21 deletions(-)
diff --git a/src/views/report/qcReport/cutDayReport/index.vue b/src/views/report/qcReport/cutDayReport/index.vue
index bd90490f..5e997255 100644
--- a/src/views/report/qcReport/cutDayReport/index.vue
+++ b/src/views/report/qcReport/cutDayReport/index.vue
@@ -1,7 +1,7 @@
@@ -195,7 +195,7 @@ export default {
startPlaceholder: '开始时间',
endPlaceholder: '结束时间',
param: 'checkTime',
- defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()],
+ defaultSelect: [new Date(new Date(Date.now()).setHours(7, 0, 0, 0)).getTime(), new Date(new Date(Date.now()).setHours(6, 59, 59)).getTime() + 24 * 60 * 60 * 1000],
width: 350
},
{
@@ -232,9 +232,10 @@ export default {
},
created() { },
mounted() {
- // this.formConfig[1].defaultSelect[]
- this.listQuery.startTime = this.formConfig[0].defaultSelect[0]
- this.listQuery.endTime = this.formConfig[0].defaultSelect[1]
+ // this.formConfig[1].defaultSelect[0] =
+ // this.formConfig[1].defaultSelect[0] =
+ this.listQuery.startTime = new Date(new Date(Date.now()).setHours(7, 0, 0, 0)).getTime()
+ this.listQuery.endTime = new Date(new Date(Date.now()).setHours(6, 59, 59)).getTime() + 24 * 60 * 60 * 1000
// this.formConfig[0].defaultSelect[0] = Date.now()-24*60*60-1000
this.getDataList()
this.getDict()
@@ -462,8 +463,8 @@ export default {
// this.listQuery.materialId = val.materialId ? val.materialId : undefined;
// this.listQuery.startTime = '1706144404000';
// this.listQuery.endTime = '1706230804000';
- this.listQuery.startTime = val.checkTime ? val.checkTime[0] : undefined;
- this.listQuery.endTime = val.checkTime ? val.checkTime[1] : undefined;
+ this.listQuery.startTime = val.checkTime ? new Date(new Date(val.checkTime[0]).setHours(7, 0, 0, 0)).getTime() : undefined;
+ this.listQuery.endTime = val.checkTime ? new Date(new Date(val.checkTime[1]).setHours(6, 59, 59)).getTime() + 24*60*60*1000 : undefined;
this.listQuery.lineId = val.lineId ? val.lineId : undefined
this.getDataList();
break;
diff --git a/src/views/report/qcReport/fullInspection/index.vue b/src/views/report/qcReport/fullInspection/index.vue
index bdc0798a..d61b3f16 100644
--- a/src/views/report/qcReport/fullInspection/index.vue
+++ b/src/views/report/qcReport/fullInspection/index.vue
@@ -1,7 +1,7 @@
@@ -214,7 +214,7 @@ export default {
startPlaceholder: '开始时间',
endPlaceholder: '结束时间',
param: 'checkTime',
- defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()],
+ defaultSelect: [Date.now() - 24 * 60 * 60*1000, Date.now()],
width: 350
},
{
diff --git a/src/views/report/qcReport/lineReport.vue b/src/views/report/qcReport/lineReport.vue
index 4d57398d..3636977a 100644
--- a/src/views/report/qcReport/lineReport.vue
+++ b/src/views/report/qcReport/lineReport.vue
@@ -1,7 +1,7 @@
@@ -132,7 +132,7 @@ export default {
startPlaceholder: '开始时间',
endPlaceholder: '结束时间',
param: 'checkTime',
- defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()],
+ defaultSelect: [new Date(new Date(Date.now()).setHours(7, 0, 0, 0)).getTime(), new Date(new Date(Date.now()).setHours(6, 59, 59)).getTime() + 24 * 60 * 60 * 1000],
width: 350
},
{
@@ -170,8 +170,8 @@ export default {
created() { },
mounted() {
// this.formConfig[1].defaultSelect[]
- this.listQuery.startTime = this.formConfig[0].defaultSelect[0]
- this.listQuery.endTime = this.formConfig[0].defaultSelect[1]
+ this.listQuery.startTime = new Date(new Date(Date.now()).setHours(7, 0, 0, 0)).getTime()
+ this.listQuery.endTime = new Date(new Date(Date.now()).setHours(6, 59, 59)).getTime() + 24 * 60 * 60 * 1000
// this.formConfig[0].defaultSelect[0] = Date.now()-24*60*60-1000
this.getDataList()
this.getDict()
@@ -365,8 +365,8 @@ export default {
// this.listQuery.materialId = val.materialId ? val.materialId : undefined;
// this.listQuery.startTime = '1706144404000';
// this.listQuery.endTime = '1706230804000';
- this.listQuery.startTime = val.checkTime ? val.checkTime[0] : undefined;
- this.listQuery.endTime = val.checkTime ? val.checkTime[1] : undefined;
+ this.listQuery.startTime = val.checkTime ? new Date(new Date(val.checkTime[0]).setHours(7, 0, 0, 0)).getTime() : undefined;
+ this.listQuery.endTime = val.checkTime ? new Date(new Date(val.checkTime[1]).setHours(6, 59, 59)).getTime() + 24 * 60 * 60 * 1000 : undefined;
this.listQuery.lineId = val.lineId ? val.lineId : undefined
this.getDataList();
break;
diff --git a/src/views/report/qcReport/optimizeCutData.vue b/src/views/report/qcReport/optimizeCutData.vue
index b3f011bc..35a210f6 100644
--- a/src/views/report/qcReport/optimizeCutData.vue
+++ b/src/views/report/qcReport/optimizeCutData.vue
@@ -1,7 +1,7 @@
@@ -129,7 +129,7 @@ export default {
startPlaceholder: '开始时间',
endPlaceholder: '结束时间',
param: 'checkTime',
- defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()],
+ defaultSelect: [new Date(new Date(Date.now()).setHours(7, 0, 0, 0)).getTime(), new Date(new Date(Date.now()).setHours(6, 59, 59)).getTime() + 24 * 60 * 60 * 1000],
width: 350
},
{
@@ -167,8 +167,8 @@ export default {
created() { },
mounted() {
// this.formConfig[1].defaultSelect[]
- this.listQuery.startTime = this.formConfig[0].defaultSelect[0]
- this.listQuery.endTime = this.formConfig[0].defaultSelect[1]
+ this.listQuery.startTime = new Date(new Date(Date.now()).setHours(7, 0, 0, 0)).getTime()
+ this.listQuery.endTime = new Date(new Date(Date.now()).setHours(6, 59, 59)).getTime() + 24 * 60 * 60 * 1000
// this.formConfig[0].defaultSelect[0] = Date.now()-24*60*60-1000
this.getDataList()
this.getDict()
@@ -357,8 +357,8 @@ export default {
// this.listQuery.materialId = val.materialId ? val.materialId : undefined;
// this.listQuery.startTime = '1706144404000';
// this.listQuery.endTime = '1706230804000';
- this.listQuery.startTime = val.checkTime ? val.checkTime[0] : undefined;
- this.listQuery.endTime = val.checkTime ? val.checkTime[1] : undefined;
+ this.listQuery.startTime = val.checkTime ? new Date(new Date(val.checkTime[0]).setHours(7, 0, 0, 0)).getTime() : undefined;
+ this.listQuery.endTime = val.checkTime ? new Date(new Date(val.checkTime[1]).setHours(6, 59, 59)).getTime() + 24 * 60 * 60 * 1000 : undefined;
this.listQuery.lineId = val.lineId ? val.lineId : undefined
this.getDataList();
break;