Compare commits

..

No commits in common. "0fffed9b0e4a13b11c6cbf707b3dc81ebd13805b" and "f0d64de77bc5355f477be7f130e9d15256f2014e" have entirely different histories.

8 changed files with 48 additions and 189 deletions

View File

@ -1,7 +1,7 @@
/* /*
* @Author: zhp * @Author: zhp
* @Date: 2024-04-18 09:27:54 * @Date: 2024-04-18 09:27:54
* @LastEditTime: 2024-04-23 15:16:12 * @LastEditTime: 2024-04-23 13:37:12
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
*/ */
@ -78,19 +78,3 @@ export function getCuttingReportDataList(data) {
data: data data: data
}) })
} }
export function getProcessingLineDataList(data) {
return request({
url: 'extend/customized-reports/getProcessingLine',
method: 'get',
data: data
})
}
export function getOriginalLineDataList(data) {
return request({
url: 'extend/customized-reports/getOriginalLine',
method: 'get',
data: data
})
}

View File

@ -2,7 +2,7 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2023-09-21 09:06:28 * @Date: 2023-09-21 09:06:28
* @LastEditTime: 2024-04-23 14:04:24 * @LastEditTime: 2024-04-22 09:36:58
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
@ -266,9 +266,12 @@ export default {
// }, // },
}, },
{ {
min: 0, min: function() { //
max: 100000, return 0
minInterval: 5,// },
max: function(value) { //
return Math.ceil(value.max)
},
scale: true, scale: true,
type: 'value', type: 'value',
name: '产量/㎡', // y name: '产量/㎡', // y

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2023-09-21 09:06:28 * @Date: 2023-09-21 09:06:28
* @LastEditTime: 2024-04-23 14:06:05 * @LastEditTime: 2024-04-16 13:37:38
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
@ -265,9 +265,12 @@ export default {
// }, // },
}, },
{ {
min: 0, // min: function() { //
max: 100000, // return 0
minInterval: 5,// // },
// max: function(value) { //
// return Math.ceil(value.max)
// },
scale: true, scale: true,
type: 'value', type: 'value',
name: '产量/片', // y name: '产量/片', // y

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2024-04-18 14:08:46 * @Date: 2024-04-18 14:08:46
* @LastEditTime: 2024-04-23 15:23:05 * @LastEditTime: 2024-04-22 08:42:07
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
@ -36,19 +36,6 @@
<el-table-column prop="message"></el-table-column> <el-table-column prop="message"></el-table-column>
</el-table-column> --> </el-table-column> -->
<el-table-column v-for="(item,index) in codeList " :prop="item" :label="item"> <el-table-column v-for="(item,index) in codeList " :prop="item" :label="item">
<!-- <template slot-scope="scope">
<el-col :span="12">
{{ codeList[index] }}
</el-col>
<el-col :span="12">
</el-col>
<el-row>
<el-col :span="24">
{{ scope.row.sj2 }}
</el-col>
</el-row>
</template> -->
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- <pagination :limit.sync="listQuery.pageSize" :page.sync="listQuery.pageNo" :total="listQuery.total" <!-- <pagination :limit.sync="listQuery.pageSize" :page.sync="listQuery.pageNo" :total="listQuery.total"
@ -185,7 +172,7 @@ export default {
spanOneArr.push(1); spanOneArr.push(1);
} else { } else {
// //
if (item.classType === this.tableData[index - 1].classType) { if (item.className === this.tableData[index - 1].className) {
spanOneArr[concatOne] += 1; spanOneArr[concatOne] += 1;
spanOneArr.push(0); spanOneArr.push(0);
} else { } else {
@ -203,22 +190,6 @@ export default {
colspan: _col colspan: _col
} }
} }
if (columnIndex === 1 ) {
if (rowIndex === 0 || rowIndex === 2 || rowIndex === 4 || rowIndex === 6 || rowIndex === 8 || rowIndex === 10) {
return {
rowspan: 2,
colspan: 1
}
}
}
if (columnIndex === 1 || columnIndex === 2 || columnIndex === 3 || columnIndex === 4 || columnIndex === 5 || columnIndex === 6) {
if (rowIndex === 1 || rowIndex === 3 || rowIndex === 5 || rowIndex === 7 || rowIndex === 9 || rowIndex === 11) {
return {
rowspan: 1,
colspan: 2
}
}
}
}, },
handleExport() { handleExport() {
// //
@ -289,23 +260,6 @@ export default {
'sj14': null, 'sj14': null,
putType: '投入数量' 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: 1, classType: 1,
className: '白班(8:00-20:00)', className: '白班(8:00-20:00)',
@ -323,93 +277,42 @@ export default {
'sj14': null, 'sj14': null,
putType: '投入次数' 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, 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: '夜班(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: '夜班(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: 3,
className: '全天', className: '全天',
'sj1': null, 'sj1': null,
'sj2': null, 'sj2': null,
@ -426,24 +329,7 @@ export default {
putType: '投入数量', putType: '投入数量',
}, },
{ {
classType: 3, 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: ''
},
{
classType: 3,
className: '全天', className: '全天',
'sj1': null, 'sj1': null,
'sj2': null, 'sj2': null,
@ -458,37 +344,20 @@ export default {
'sj13': null, 'sj13': null,
'sj14': null, 'sj14': null,
putType: '投入次数', putType: '投入次数',
}, }
{
classType: 3,
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) => { res.data.forEach((ele) => {
this.codeList.forEach((item) => { this.codeList.forEach((item) => {
if (ele.classType === 1 && ele.code == item) { if (ele.classType === 1 && ele.code == item) {
// console.log(arr[0][item]) // console.log(arr[0][item])
arr[0][item] = ele.putNum arr[0][item] = ele.putNum
arr[2][item] = ele.useNum arr[1][item] = ele.useNum
} else if (ele.classType === 2 && ele.code == item) { } else if (ele.classType === 2 && ele.code == item) {
arr[4][item] = ele.putNum arr[2][item] = ele.putNum
arr[6][item] = ele.useNum arr[3][item] = ele.useNum
} else if (ele.classType === 3 && ele.code == item) { } else if (ele.classType === 3 && ele.code == item) {
arr[8][item] = ele.putNum arr[4][item] = ele.putNum
arr[10][item] = ele.useNum arr[5][item] = ele.useNum
} }
}) })
}) })

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2024-04-18 10:01:33 * @Date: 2024-04-18 10:01:33
* @LastEditTime: 2024-04-23 15:15:22 * @LastEditTime: 2024-04-23 13:46:29
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
@ -36,7 +36,7 @@
// import basicPage from '../../../core/mixins/basic-page'; // import basicPage from '../../../core/mixins/basic-page';
// import { parseTime } from '../../../core/mixins/code-filter'; // import { parseTime } from '../../../core/mixins/code-filter';
import { import {
getOriginalLineDataList, getCWSectionList,
getCuttingReportDataList getCuttingReportDataList
} from '@/api/report/qcReport'; } from '@/api/report/qcReport';
import tableHeightMixin from '@/mixins/lb/tableHeightMixin'; import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
@ -154,7 +154,7 @@ export default {
endPlaceholder: '结束时间', endPlaceholder: '结束时间',
param: 'checkTime', param: 'checkTime',
defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()], defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()],
width: 350 width: 250
}, },
{ {
type: 'select', type: 'select',
@ -201,7 +201,7 @@ export default {
}, },
methods: { methods: {
async getDict() { async getDict() {
const res = await getOriginalLineDataList() const res = await getCWSectionList()
console.log(res) console.log(res)
this.formConfig[1].selectOptions = res.data this.formConfig[1].selectOptions = res.data
}, },

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2024-04-18 14:08:46 * @Date: 2024-04-18 14:08:46
* @LastEditTime: 2024-04-23 15:08:44 * @LastEditTime: 2024-04-23 13:51:05
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
@ -222,7 +222,7 @@ export default {
endPlaceholder: '结束时间', endPlaceholder: '结束时间',
param: 'checkTime', param: 'checkTime',
defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()], defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()],
width: 350 width: 250
}, },
{ {
type: 'button', type: 'button',
@ -653,24 +653,25 @@ export default {
}, },
}; };
</script> </script>
<style scoped> <style>
::v-deep.baseTable .el-table__body tr.current-row>td.el-table__cell { .baseTable .el-table__body tr.current-row>td.el-table__cell {
background-color: #EAF1FC; background-color: #EAF1FC;
} }
::v-deep .baseTable .el-table .el-table__cell { .baseTable .el-table .el-table__cell {
padding: 0; padding: 0;
height: 35px; height: 35px;
} }
::v-deep.el-table thead.is-group th {
.el-table thead.is-group th {
background: none; background: none;
} }
::v-deep.el-table thead.is-group tr:first-of-type th:first-of-type { .el-table thead.is-group tr:first-of-type th:first-of-type {
border-bottom: none; border-bottom: none;
} }
::v-deep.el-table thead.is-group tr:first-of-type th:first-of-type:before { .el-table thead.is-group tr:first-of-type th:first-of-type:before {
content: ''; content: '';
position: absolute; position: absolute;
width: 1px; width: 1px;
@ -686,7 +687,7 @@ export default {
transform-origin: top; transform-origin: top;
} }
::v-deep.el-table thead.is-group tr:last-of-type th:first-of-type:before { .el-table thead.is-group tr:last-of-type th:first-of-type:before {
content: ''; content: '';
position: absolute; position: absolute;
width: 1px; width: 1px;
@ -701,5 +702,4 @@ export default {
/*这里需要自己调整,根据线的位置*/ /*这里需要自己调整,根据线的位置*/
transform-origin: bottom; transform-origin: bottom;
} }
</style> </style>

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2024-04-18 10:01:33 * @Date: 2024-04-18 10:01:33
* @LastEditTime: 2024-04-23 15:15:45 * @LastEditTime: 2024-04-23 13:51:30
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
@ -36,7 +36,7 @@
// import { parseTime } from '../../../core/mixins/code-filter'; // import { parseTime } from '../../../core/mixins/code-filter';
import { import {
getOriginalData, getOriginalData,
getOriginalLineDataList getCWSectionList
} from '@/api/report/qcReport'; } from '@/api/report/qcReport';
import tableHeightMixin from '@/mixins/lb/tableHeightMixin'; import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
import FileSaver from 'file-saver' import FileSaver from 'file-saver'
@ -129,7 +129,7 @@ export default {
endPlaceholder: '结束时间', endPlaceholder: '结束时间',
param: 'checkTime', param: 'checkTime',
defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()], defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()],
width: 350 width: 250
}, },
{ {
type: 'select', type: 'select',
@ -176,7 +176,7 @@ export default {
}, },
methods: { methods: {
async getDict() { async getDict() {
const res = await getOriginalLineDataList() const res = await getCWSectionList()
console.log(res) console.log(res)
this.formConfig[1].selectOptions = res.data this.formConfig[1].selectOptions = res.data
}, },

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2024-04-18 15:07:53 * @Date: 2024-04-18 15:07:53
* @LastEditTime: 2024-04-23 15:15:52 * @LastEditTime: 2024-04-23 13:51:20
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
@ -36,7 +36,7 @@
// import { parseTime } from '../../../core/mixins/code-filter'; // import { parseTime } from '../../../core/mixins/code-filter';
import { import {
getCuttingtData, getCuttingtData,
getOriginalLineDataList getCWSectionList
} from '@/api/report/qcReport'; } from '@/api/report/qcReport';
import tableHeightMixin from '@/mixins/lb/tableHeightMixin'; import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
import FileSaver from 'file-saver' import FileSaver from 'file-saver'
@ -99,7 +99,7 @@ export default {
listQuery: { listQuery: {
startTime: undefined, startTime: undefined,
endTime: undefined, endTime: undefined,
lineId:undefined lineId:null
}, },
formConfig: [ formConfig: [
// { // {
@ -128,7 +128,7 @@ export default {
endPlaceholder: '结束时间', endPlaceholder: '结束时间',
param: 'checkTime', param: 'checkTime',
defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()], defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()],
width: 350 width: 250
}, },
{ {
type: 'select', type: 'select',
@ -175,7 +175,7 @@ export default {
}, },
methods: { methods: {
async getDict() { async getDict() {
const res = await getOriginalLineDataList() const res = await getCWSectionList()
console.log(res) console.log(res)
this.formConfig[1].selectOptions = res.data this.formConfig[1].selectOptions = res.data
}, },