bug 工单详情

This commit is contained in:
helloDy
2024-06-05 16:42:54 +08:00
parent c77130603e
commit 8a08846198
7 changed files with 111 additions and 96 deletions

View File

@@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2024-04-15 10:49:13
* @LastEditTime: 2024-05-31 19:14:05
* @LastEditTime: 2024-06-04 14:13:23
* @LastEditors: DY
* @Description:
-->
@@ -197,7 +197,7 @@ export default {
],
tableProps: [
{
prop: 'tableTime',
prop: 'groupTime',
label: '日期',
minWidth: 100,
showOverflowtooltip: true
@@ -229,7 +229,7 @@ export default {
{
prop: 'yieldRate',
label: '良品率%',
filter: (val) => val + '%'
filter: (val) => (val * 100) + '%'
},
],
tableData: [],
@@ -334,17 +334,17 @@ export default {
}
},
async getDataList() {
// const res = await getProduceDataPage(this.listQuery)
// console.log(res)
// if (res.code === 0) {
// this.tableData = res.data.records
// this.listQuery.total = res.data.total
// if (this.listQuery.total > 0) {
// this.tableData.forEach(item => {
// item.tableTime = item?.reportDate?.length > 0 ? item.reportDate[0] + '-' + item.reportDate[1] + '-' + item.reportDate[2] : '--'
// })
// }
// }
const res = await getProduceDataPage(this.listQuery)
console.log(res)
if (res.code === 0) {
this.tableData = res.data.records
this.listQuery.total = res.data.total
// if (this.listQuery.total > 0) {
// this.tableData.forEach(item => {
// item.tableTime = item?.reportDate?.length > 0 ? item.reportDate[0] + '-' + item.reportDate[1] + '-' + item.reportDate[2] : '--'
// })
// }
}
// 图表
await prodOutputDataList({