金工样式

This commit is contained in:
zhangdingyu
2019-11-28 11:28:49 +08:00
parent f7c3b8229f
commit 76b3e57e9e
5 changed files with 64 additions and 30 deletions

View File

@@ -22,7 +22,7 @@
<!-- </el-tooltip>-->
</el-card>
<el-row>
<el-col style="width: 400px">
<el-col style="width: 350px">
<el-card>
<el-table
v-loading="loading"
@@ -35,22 +35,22 @@
border
element-loading-text="拼命加载中"
@row-click="searchTable2">
<el-table-column label="操作者" align="center" width="110px" show-overflow-tooltip>
<el-table-column label="操作者" align="center" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.姓名 }}
</template>
</el-table-column>
<el-table-column label="计划工时" align="center">
<el-table-column label="计划工时" align="center" width="70px">
<template slot-scope="scope">
{{ scope.row.理论加工时间段 }}
</template>
</el-table-column>
<el-table-column label="加工工时" align="center">
<el-table-column label="加工工时" align="center" width="70px">
<template slot-scope="scope">
{{ scope.row.实际加工时间段 }}
</template>
</el-table-column>
<el-table-column label="完成数量" align="center">
<el-table-column label="完成数量" align="center" width="70px">
<template slot-scope="scope">
{{ scope.row.完成数量 }}
</template>
@@ -66,15 +66,15 @@
</div>
</el-card>
</el-col>
<el-col style="margin-left: 0px;width: 810px">
<el-col style="margin-left: 0px;width: 860px">
<el-card>
<el-table v-loading="loading2" :data="tableData2" size="mini" stripe highlight-current-row style="width: 100%;" height="700px" border element-loading-text="拼命加载中">
<el-table-column label="零件图号" align="center" width="170px" show-overflow-tooltip>
<el-table-column label="零件图号" align="center" width="140px" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.零件图号 }}
</template>
</el-table-column>
<el-table-column label="零件名称" align="center" width="90px" show-overflow-tooltip>
<el-table-column label="零件名称" align="center" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.零件名称 }}
</template>
@@ -84,7 +84,7 @@
{{ scope.row.工艺名称 }}
</template>
</el-table-column>
<el-table-column label="完成数" align="center" width="70px">
<el-table-column label="完成数" align="center" width="60px">
<template slot-scope="scope">
{{ scope.row.完成数量 }}
</template>
@@ -94,11 +94,11 @@
{{ scope.row.质检结果 }}
</template>
</el-table-column>
<el-table-column label="不合格数" align="center" width="70px">
<template slot-scope="scope">
{{ scope.row.不合格数量 }}
</template>
</el-table-column>
<!--<el-table-column label="不合格数" align="center" width="70px">-->
<!--<template slot-scope="scope">-->
<!--{{ scope.row.不合格数量 }}-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column label="计划工时" align="center" width="70px">
<template slot-scope="scope">
{{ scope.row.理论加工时间段 }}
@@ -109,7 +109,12 @@
{{ scope.row.实际加工时间段 }}
</template>
</el-table-column>
<el-table-column label="完成时间" align="center" width="100px">
<el-table-column label="加工开始" align="center" width="135px">
<template slot-scope="scope">
{{ scope.row.加工开始时间 }}
</template>
</el-table-column>
<el-table-column label="加工完成" align="center" width="135px">
<template slot-scope="scope">
{{ scope.row.加工完成时间 }}
</template>
@@ -145,10 +150,10 @@ export default {
loading2: '',
pageCurrent: 1,
pageSize: 10000,
total: '',
total: 0,
pageCurrent2: 1,
pageSize2: 10000,
total2: '',
total2: 0,
timeCheck: '',
operater: ''
}
@@ -166,8 +171,6 @@ export default {
if (this.startTime !== '' && this.startTime !== null && this.endTime !== null && this.endTime !== null) {
this.timeCheck = 1
} else {
// this.startTime = ''
// this.endTime = ''
this.timeCheck = 0
}
searchtable(this.operater, this.timeCheck, this.startTime, this.endTime, this.pageCurrent, this.pageSize).then(response => {
@@ -197,7 +200,8 @@ export default {
不合格数量: response.data.rows[i].不合格数量,
理论加工时间段: response.data.rows[i].理论加工时间段,
实际加工时间段: response.data.rows[i].实际加工时间段,
加工完成时间: response.data.rows[i].加工完成时间 ? response.data.rows[i].加工完成时间.split(' ')[0] : ''
加工开始时间: response.data.rows[i].加工开始时间 ? response.data.rows[i].加工开始时间 : '',
加工完成时间: response.data.rows[i].加工完成时间 ? response.data.rows[i].加工完成时间 : ''
})
}
}