projects/mesxc-zhp #350

Merged
juzi merged 3 commits from projects/mesxc-zhp into projects/mesxc-test 2024-04-23 15:26:04 +08:00
7 changed files with 158 additions and 41 deletions
Showing only changes of commit becf34d089 - Show all commits

View File

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

View File

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

View File

@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2024-04-18 14:08:46
* @LastEditTime: 2024-04-22 08:42:07
* @LastEditTime: 2024-04-23 15:05:47
* @LastEditors: zhp
* @Description:
-->
@ -36,6 +36,19 @@
<el-table-column prop="message"></el-table-column>
</el-table-column> -->
<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>
<!-- <pagination :limit.sync="listQuery.pageSize" :page.sync="listQuery.pageNo" :total="listQuery.total"
@ -172,7 +185,7 @@ export default {
spanOneArr.push(1);
} else {
//
if (item.className === this.tableData[index - 1].className) {
if (item.classType === this.tableData[index - 1].classType) {
spanOneArr[concatOne] += 1;
spanOneArr.push(0);
} else {
@ -190,6 +203,14 @@ export default {
colspan: _col
}
}
// if (columnIndex === 1 ) {
// if (rowIndex === 0 || rowIndex === 2 || rowIndex === 4 || rowIndex === 6 || rowIndex === 8 || rowIndex === 10) {
// return {
// rowspan: 2,
// colspan: 1
// }
// }
// }
},
handleExport() {
//
@ -260,6 +281,23 @@ export default {
'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: 1,
className: '白班(8:00-20:00)',
@ -277,6 +315,23 @@ export default {
'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)',
@ -294,6 +349,23 @@ export default {
'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)',
@ -312,7 +384,24 @@ export default {
putType: '投入次数',
},
{
classType: 1,
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: '全天',
'sj1': null,
'sj2': null,
@ -329,7 +418,24 @@ export default {
putType: '投入数量',
},
{
classType: 2,
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: ''
},
{
classType: 3,
className: '全天',
'sj1': null,
'sj2': null,
@ -344,20 +450,37 @@ export default {
'sj13': null,
'sj14': null,
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) => {
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
arr[2][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
arr[6][item] = ele.useNum
} else if (ele.classType === 3 && ele.code == item) {
arr[8][item] = ele.putNum
arr[10][item] = ele.useNum
}
})
})

View File

@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2024-04-18 10:01:33
* @LastEditTime: 2024-04-23 13:46:29
* @LastEditTime: 2024-04-23 15:08:51
* @LastEditors: zhp
* @Description:
-->
@ -154,7 +154,7 @@ export default {
endPlaceholder: '结束时间',
param: 'checkTime',
defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()],
width: 250
width: 350
},
{
type: 'select',

View File

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

View File

@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2024-04-18 10:01:33
* @LastEditTime: 2024-04-23 13:51:30
* @LastEditTime: 2024-04-23 15:08:40
* @LastEditors: zhp
* @Description:
-->
@ -129,7 +129,7 @@ export default {
endPlaceholder: '结束时间',
param: 'checkTime',
defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()],
width: 250
width: 350
},
{
type: 'select',

View File

@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2024-04-18 15:07:53
* @LastEditTime: 2024-04-23 13:51:20
* @LastEditTime: 2024-04-23 15:07:51
* @LastEditors: zhp
* @Description:
-->
@ -99,7 +99,7 @@ export default {
listQuery: {
startTime: undefined,
endTime: undefined,
lineId:null
lineId:undefined
},
formConfig: [
// {
@ -128,7 +128,7 @@ export default {
endPlaceholder: '结束时间',
param: 'checkTime',
defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()],
width: 250
width: 350
},
{
type: 'select',