质量统计完成
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="animate__animated animate__shakeX title">车镜油漆缺陷采集系统</div>
|
||||
<div class="animate__animated animate__shakeX title">车镜油漆缺陷采集系统(首检)</div>
|
||||
<el-row>
|
||||
<el-col :span="1">
|
||||
<div style="height: 225px">
|
||||
@@ -120,10 +120,10 @@ export default {
|
||||
team: [{ inspectionModule: '' }], //班组
|
||||
|
||||
ProductSituationForm: {
|
||||
workorderid:"VW123456",
|
||||
workorderid: 'VW123456',
|
||||
productName: 'VW12309',
|
||||
direction: '左',
|
||||
color: 'blued',
|
||||
color: 'blue',
|
||||
team: 'A',
|
||||
inputNum: 7852,
|
||||
},
|
||||
@@ -132,33 +132,34 @@ export default {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'$store.getters.counterList': {
|
||||
'$store.getters.counterList_v1': {
|
||||
immediate: true,
|
||||
deep: true,
|
||||
handler(newValue, oldValue) {
|
||||
switch (this.$store.getters.counterList.Moudle) {
|
||||
case '油漆':
|
||||
this.paint.filter((it) => it.id == this.$store.getters.counterList.checkid)[0].counter = this.$store.getters.counterList.sum
|
||||
break
|
||||
case '设备':
|
||||
this.device.filter((it) => it.id == this.$store.getters.counterList.checkid)[0].counter = this.$store.getters.counterList.sum
|
||||
break
|
||||
case '毛坯':
|
||||
this.blank.filter((it) => it.id == this.$store.getters.counterList.checkid)[0].counter = this.$store.getters.counterList.sum
|
||||
break
|
||||
case '程序':
|
||||
this.program.filter((it) => it.id == this.$store.getters.counterList.checkid)[0].counter = this.$store.getters.counterList.sum
|
||||
break
|
||||
case '班组操作':
|
||||
this.team.filter((it) => it.id == this.$store.getters.counterList.checkid)[0].counter = this.$store.getters.counterList.sum
|
||||
break
|
||||
if (newValue.checkid && newValue.checkid.length > 0) {
|
||||
let checkid_ = newValue.checkid.substring(0, 3)
|
||||
switch (this.$store.getters.counterList_v1.Moudle) {
|
||||
case '油漆':
|
||||
this.paint.filter((it) => it.id == checkid_)[0].counter = this.$store.getters.counterList_v1.sum
|
||||
break
|
||||
case '设备':
|
||||
this.device.filter((it) => it.id == checkid_)[0].counter = this.$store.getters.counterList_v1.sum
|
||||
break
|
||||
case '毛坯':
|
||||
this.blank.filter((it) => it.id == checkid_)[0].counter = this.$store.getters.counterList_v1.sum
|
||||
break
|
||||
case '程序':
|
||||
this.program.filter((it) => it.id == checkid_)[0].counter = this.$store.getters.counterList_v1.sum
|
||||
break
|
||||
case '班组操作':
|
||||
this.team.filter((it) => it.id == checkid_)[0].counter = this.$store.getters.counterList_v1.sum
|
||||
break
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['counterList']),
|
||||
},
|
||||
|
||||
created() {
|
||||
this.getCheckItemList()
|
||||
},
|
||||
@@ -198,29 +199,29 @@ export default {
|
||||
switch (item.inspectionModule) {
|
||||
case '油漆':
|
||||
// 把数据传递到redis
|
||||
this.signalr.SR.invoke('SaveCacheInformation', this.ProductSituationForm.workorderid, '油漆', item.id + '').catch((err) => {
|
||||
this.signalr.SR.invoke('SaveCacheInformation_v1', this.ProductSituationForm.workorderid, '油漆', item.id + '').catch((err) => {
|
||||
console.log(err)
|
||||
})
|
||||
// redis再将数据返回
|
||||
|
||||
break
|
||||
case '设备':
|
||||
this.signalr.SR.invoke('SaveCacheInformation', this.ProductSituationForm.workorderid, '设备', item.id + '').catch((err) => {
|
||||
this.signalr.SR.invoke('SaveCacheInformation_v1', this.ProductSituationForm.workorderid, '设备', item.id + '').catch((err) => {
|
||||
console.log(err)
|
||||
})
|
||||
break
|
||||
case '毛坯':
|
||||
this.signalr.SR.invoke('SaveCacheInformation', this.ProductSituationForm.workorderid, '毛坯', item.id + '').catch((err) => {
|
||||
this.signalr.SR.invoke('SaveCacheInformation_v1', this.ProductSituationForm.workorderid, '毛坯', item.id + '').catch((err) => {
|
||||
console.log(err)
|
||||
})
|
||||
break
|
||||
case '程序':
|
||||
this.signalr.SR.invoke('SaveCacheInformation', this.ProductSituationForm.workorderid, '程序', item.id + '').catch((err) => {
|
||||
this.signalr.SR.invoke('SaveCacheInformation_v1', this.ProductSituationForm.workorderid, '程序', item.id + '').catch((err) => {
|
||||
console.log(err)
|
||||
})
|
||||
break
|
||||
case '班组操作':
|
||||
this.signalr.SR.invoke('SaveCacheInformation', this.ProductSituationForm.workorderid, '班组操作', item.id + '').catch((err) => {
|
||||
this.signalr.SR.invoke('SaveCacheInformation_v1', this.ProductSituationForm.workorderid, '班组操作', item.id + '').catch((err) => {
|
||||
console.log(err)
|
||||
})
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user