Compare commits
No commits in common. "4531429e83bd57b3e6c0678374271f0f8926e722" and "a42f9761274e413b01e53de1dd030dde72648633" have entirely different histories.
4531429e83
...
a42f976127
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-18 14:16:25
|
* @Date: 2021-11-18 14:16:25
|
||||||
* @LastEditors: zhp
|
* @LastEditors: DY
|
||||||
* @LastEditTime: 2024-03-08 09:14:38
|
* @LastEditTime: 2023-12-14 14:03:27
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -224,7 +224,6 @@ export default {
|
|||||||
this.equipmentList.forEach((ele) => {
|
this.equipmentList.forEach((ele) => {
|
||||||
if (val === ele.id) {
|
if (val === ele.id) {
|
||||||
this.dataForm.equipmentCode = ele.code
|
this.dataForm.equipmentCode = ele.code
|
||||||
console.log(this.dataForm.equipmentCode);
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -337,17 +336,16 @@ export default {
|
|||||||
pageSize:10
|
pageSize:10
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
this.dataForm = response.data
|
this.dataForm = response.data
|
||||||
this.getCode(response.data.equipmentId)
|
|
||||||
// this.dataForm.unit = String(this.dataForm.unit)
|
// this.dataForm.unit = String(this.dataForm.unit)
|
||||||
// this.dataForm.ValueType = String(this.dataForm.ValueType)
|
// this.dataForm.ValueType = String(this.dataForm.ValueType)
|
||||||
// this.dataForm.productType = String(this.dataForm.productType)
|
// this.dataForm.productType = String(this.dataForm.productType)
|
||||||
});
|
});
|
||||||
// 获取产品属性列表
|
// 获取产品属性列表
|
||||||
this.getList()
|
this.getList();
|
||||||
} else {
|
} else {
|
||||||
// if (this.urlOptions.isGetCode) {
|
if (this.urlOptions.isGetCode) {
|
||||||
// this.getCode()
|
this.getCode()
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -114,12 +114,10 @@ export default {
|
|||||||
inspectionDetList:[],
|
inspectionDetList:[],
|
||||||
workshopSectionList: [],
|
workshopSectionList: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created () {
|
mounted() {
|
||||||
|
this.getProductionLineList()
|
||||||
},
|
this.getQualityInspectionDetList()
|
||||||
mounted() {
|
|
||||||
|
|
||||||
// this.getList()
|
// this.getList()
|
||||||
// this.getWorksectionList();
|
// this.getWorksectionList();
|
||||||
// this.getCode('/base/equipment-group-alarm/getCode').then((code) => {
|
// this.getCode('/base/equipment-group-alarm/getCode').then((code) => {
|
||||||
@ -141,9 +139,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
init(obj) {
|
init(obj) {
|
||||||
// console.log(productionLineId);
|
// console.log(productionLineId);
|
||||||
console.log(obj)
|
console.log(obj);
|
||||||
this.getProductionLineList()
|
|
||||||
this.getQualityInspectionDetList()
|
|
||||||
this.visible = true
|
this.visible = true
|
||||||
// if(obj.id)
|
// if(obj.id)
|
||||||
if (obj) {
|
if (obj) {
|
||||||
|
@ -97,13 +97,11 @@ export default {
|
|||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
prop: 'productionLineName',
|
prop: 'productionLineName',
|
||||||
label: '产线',
|
label: '产线',
|
||||||
width:120,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'sectionName',
|
prop: 'sectionName',
|
||||||
label: '工段',
|
label: '工段',
|
||||||
width: 120,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'inspectionInfoList',
|
prop: 'inspectionInfoList',
|
||||||
|
@ -22,7 +22,8 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="报废时间" prop="logTime">
|
<el-form-item label="报废时间" prop="logTime">
|
||||||
<el-date-picker v-model="dataForm.logTime" type="datetime" value-format="timestamp" placeholder="选择日期">
|
<el-date-picker v-model="dataForm.logTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
|
placeholder="选择日期">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2024-02-28 09:51:25
|
* @Date: 2024-02-28 09:51:25
|
||||||
* @LastEditTime: 2024-03-08 13:46:46
|
* @LastEditTime: 2024-02-28 10:05:00
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
@ -41,7 +41,7 @@ export default {
|
|||||||
console.log(response)
|
console.log(response)
|
||||||
this.dataForm = response.data
|
this.dataForm = response.data
|
||||||
this.dataForm.detId = response.data.detIdList
|
this.dataForm.detId = response.data.detIdList
|
||||||
this.dataForm.logTime = new Date(response.data.logTime)
|
this.dataForm.logTime = new Date(response.data.createTime)
|
||||||
|
|
||||||
// if (this.setData) {
|
// if (this.setData) {
|
||||||
// this.setDataForm()
|
// this.setDataForm()
|
||||||
|
@ -36,7 +36,7 @@ const tableProps = [
|
|||||||
// filter: parseTime
|
// filter: parseTime
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
prop: 'createTime',
|
prop: 'logTime',
|
||||||
label: '报废时间',
|
label: '报废时间',
|
||||||
filter: parseTime
|
filter: parseTime
|
||||||
},
|
},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-11-06 15:15:30
|
* @Date: 2023-11-06 15:15:30
|
||||||
* @LastEditTime: 2024-03-08 08:38:25
|
* @LastEditTime: 2023-12-01 16:33:41
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -22,7 +22,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="报废类型描述" prop="description" label-width="110px">
|
<el-form-item label="描述类型" prop="description" label-width="110px">
|
||||||
<el-input v-model="dataForm.description" clearable placeholder="描述类型" />
|
<el-input v-model="dataForm.description" clearable placeholder="描述类型" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2024-01-24 15:15:24
|
* @Date: 2024-01-24 15:15:24
|
||||||
* @LastEditTime: 2024-03-08 15:09:26
|
* @LastEditTime: 2024-03-07 16:21:26
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -65,7 +65,6 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.getDict()
|
this.getDict()
|
||||||
this.getTodayStartTimeAndEndTime()
|
this.getTodayStartTimeAndEndTime()
|
||||||
this.getDataList()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getTodayStartTimeAndEndTime() {
|
getTodayStartTimeAndEndTime() {
|
||||||
@ -143,6 +142,7 @@ export default {
|
|||||||
this.listQuery.reportTime[0] = this.format(val.setHours(7, 0, 0)) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000
|
this.listQuery.reportTime[0] = this.format(val.setHours(7, 0, 0)) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000
|
||||||
this.listQuery.reportTime[1] = this.format(val.setHours(7, 0, 0) + 24 * 60 * 60 * 1000) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000
|
this.listQuery.reportTime[1] = this.format(val.setHours(7, 0, 0) + 24 * 60 * 60 * 1000) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000
|
||||||
console.log(this.listQuery.reportTime);
|
console.log(this.listQuery.reportTime);
|
||||||
|
this.getDataList();
|
||||||
} else {
|
} else {
|
||||||
this.listQuery.reportTime = []
|
this.listQuery.reportTime = []
|
||||||
}
|
}
|
||||||
|
@ -56,8 +56,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getCurrentMonthFirst()
|
this.getCurrentMonthFirst()
|
||||||
this.getDict()
|
this.getDict()
|
||||||
this.getDataList()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getDict() {
|
async getDict() {
|
||||||
@ -80,10 +79,7 @@ export default {
|
|||||||
this.tableData = response.data.filter(item => {
|
this.tableData = response.data.filter(item => {
|
||||||
this.proLineList.forEach(it => {
|
this.proLineList.forEach(it => {
|
||||||
if (item.lineId === it.id) {
|
if (item.lineId === it.id) {
|
||||||
item.lineName = it.name
|
item.lineName = it.name
|
||||||
item.originalGlassStatisticsTrend = item.originalGlassStatisticsTrend ? this.multipliedByHundred(item.originalGlassStatisticsTrend) + '%' : null
|
|
||||||
item.actualProductTrend = item.actualProductTrend ? this.multipliedByHundred(item.actualProductTrend) + '%' : null
|
|
||||||
item.originalGlassPassTrend = item.originalGlassPassTrend ? this.multipliedByHundred(item.originalGlassPassTrend) * 100 + '%' : null
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (item.det === false) {
|
if (item.det === false) {
|
||||||
|
@ -91,8 +91,7 @@ export default {
|
|||||||
// console.log('周四', day)
|
// console.log('周四', day)
|
||||||
this.getCurrentWeekStartTimeAndEndTime()
|
this.getCurrentWeekStartTimeAndEndTime()
|
||||||
// this.changeTime(new Date(new Date().getTime() - day * 24 * 60 * 60 * 1000))
|
// this.changeTime(new Date(new Date().getTime() - day * 24 * 60 * 60 * 1000))
|
||||||
this.getDict()
|
this.getDict()
|
||||||
this.getDataList()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getDict() {
|
async getDict() {
|
||||||
@ -113,10 +112,7 @@ export default {
|
|||||||
this.tableData = response.data.filter(item => {
|
this.tableData = response.data.filter(item => {
|
||||||
this.proLineList.forEach(it => {
|
this.proLineList.forEach(it => {
|
||||||
if (item.lineId === it.id) {
|
if (item.lineId === it.id) {
|
||||||
item.lineName = it.name
|
item.lineName = it.name
|
||||||
item.originalGlassStatisticsTrend = item.originalGlassStatisticsTrend ? this.multipliedByHundred(item.originalGlassStatisticsTrend) + '%' : null
|
|
||||||
item.actualProductTrend = item.actualProductTrend ? this.multipliedByHundred(item.actualProductTrend) + '%' : null
|
|
||||||
item.originalGlassPassTrend = item.originalGlassPassTrend ? this.multipliedByHundred(item.originalGlassPassTrend) * 100 + '%' : null
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (item.det === false) {
|
if (item.det === false) {
|
||||||
|
@ -56,7 +56,6 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.getCurrentYearFirst()
|
this.getCurrentYearFirst()
|
||||||
this.getDataList()
|
|
||||||
;
|
;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -81,10 +80,7 @@ export default {
|
|||||||
await this.urlOptions.getDataListURL(this.listQuery).then(response => {
|
await this.urlOptions.getDataListURL(this.listQuery).then(response => {
|
||||||
this.tableData = response.data.filter(item => {
|
this.tableData = response.data.filter(item => {
|
||||||
this.proLineList.forEach(it => {
|
this.proLineList.forEach(it => {
|
||||||
if (item.lineId === it.id) {
|
if (item.lineId === it.id) {
|
||||||
item.originalGlassStatisticsTrend = item.originalGlassStatisticsTrend ? this.multipliedByHundred(item.originalGlassStatisticsTrend) + '%' : null
|
|
||||||
item.actualProductTrend = item.actualProductTrend ? this.multipliedByHundred(item.actualProductTrend) + '%' : null
|
|
||||||
item.originalGlassPassTrend = item.originalGlassPassTrend ? this.multipliedByHundred(item.originalGlassPassTrend) * 100 + '%' : null
|
|
||||||
item.lineName = it.name
|
item.lineName = it.name
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user