projects/mesxc-zhp #235

Merged
juzi merged 2 commits from projects/mesxc-zhp into projects/mesxc-test 2024-03-08 18:48:30 +08:00
11 changed files with 46 additions and 27 deletions

View File

@ -1,8 +1,8 @@
<!-- <!--
* @Author: zwq * @Author: zwq
* @Date: 2021-11-18 14:16:25 * @Date: 2021-11-18 14:16:25
* @LastEditors: DY * @LastEditors: zhp
* @LastEditTime: 2023-12-14 14:03:27 * @LastEditTime: 2024-03-08 09:14:38
* @Description: * @Description:
--> -->
<template> <template>
@ -224,6 +224,7 @@ 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);
} }
}) })
}, },
@ -336,16 +337,17 @@ 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()
} // }
} }
}); });
}, },

View File

@ -114,10 +114,12 @@ export default {
inspectionDetList:[], inspectionDetList:[],
workshopSectionList: [], workshopSectionList: [],
}; };
},
created () {
}, },
mounted() { mounted() {
this.getProductionLineList()
this.getQualityInspectionDetList()
// 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) => {
@ -139,7 +141,9 @@ 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) {

View File

@ -98,10 +98,12 @@ export default {
{ {
prop: 'productionLineName', prop: 'productionLineName',
label: '产线', label: '产线',
width:120,
}, },
{ {
prop: 'sectionName', prop: 'sectionName',
label: '工段', label: '工段',
width: 120,
}, },
{ {
prop: 'inspectionInfoList', prop: 'inspectionInfoList',

View File

@ -22,8 +22,7 @@
</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="yyyy-MM-dd HH:mm:ss" <el-date-picker v-model="dataForm.logTime" type="datetime" value-format="timestamp" placeholder="选择日期">
placeholder="选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>

View File

@ -1,7 +1,7 @@
/* /*
* @Author: zhp * @Author: zhp
* @Date: 2024-02-28 09:51:25 * @Date: 2024-02-28 09:51:25
* @LastEditTime: 2024-02-28 10:05:00 * @LastEditTime: 2024-03-08 13:46:46
* @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.createTime) this.dataForm.logTime = new Date(response.data.logTime)
// if (this.setData) { // if (this.setData) {
// this.setDataForm() // this.setDataForm()

View File

@ -36,7 +36,7 @@ const tableProps = [
// filter: parseTime // filter: parseTime
// }, // },
{ {
prop: 'logTime', prop: 'createTime',
label: '报废时间', label: '报废时间',
filter: parseTime filter: parseTime
}, },

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2023-11-06 15:15:30 * @Date: 2023-11-06 15:15:30
* @LastEditTime: 2023-12-01 16:33:41 * @LastEditTime: 2024-03-08 08:38:25
* @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>

View File

@ -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-07 16:21:26 * @LastEditTime: 2024-03-08 15:09:26
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
@ -65,6 +65,7 @@ export default {
created() { created() {
this.getDict() this.getDict()
this.getTodayStartTimeAndEndTime() this.getTodayStartTimeAndEndTime()
this.getDataList()
}, },
methods: { methods: {
getTodayStartTimeAndEndTime() { getTodayStartTimeAndEndTime() {
@ -142,7 +143,6 @@ 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 = []
} }

View File

@ -57,6 +57,7 @@ export default {
created() { created() {
this.getCurrentMonthFirst() this.getCurrentMonthFirst()
this.getDict() this.getDict()
this.getDataList()
}, },
methods: { methods: {
async getDict() { async getDict() {
@ -80,6 +81,9 @@ export default {
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) {

View File

@ -92,6 +92,7 @@ export default {
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,6 +114,9 @@ export default {
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) {

View File

@ -56,6 +56,7 @@ export default {
}, },
mounted () { mounted () {
this.getCurrentYearFirst() this.getCurrentYearFirst()
this.getDataList()
; ;
}, },
methods: { methods: {
@ -81,6 +82,9 @@ 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.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
} }
}) })