v1
This commit is contained in:
@@ -20,31 +20,51 @@
|
||||
<div class="a">
|
||||
<div class="title_sub">{{ checkItemTable.paint[0].inspectionModule }}</div>
|
||||
<div class="grid_sub">
|
||||
<div class="a_11" v-for="(item, index) of checkItemTable.paint" :key="index">{{ item.inspectionName }}</div>
|
||||
<div class="a_11" v-for="(item, index) of checkItemTable.paint" :key="index">
|
||||
<el-badge :value="item.Counter" type="primary"
|
||||
><div class="context" @click="Accumulator(item, index)">{{ item.inspectionName }}</div></el-badge
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="b">
|
||||
<div class="title_sub">{{ checkItemTable.device[0].inspectionModule }}</div>
|
||||
<div class="grid_sub">
|
||||
<div class="a_11" v-for="(item, index) of checkItemTable.device" :key="index">{{ item.inspectionName }}</div>
|
||||
<div class="a_11" v-for="(item, index) of checkItemTable.device" :key="index">
|
||||
<el-badge :value="item.Counter" type="primary"
|
||||
><div class="context">{{ item.inspectionName }}</div></el-badge
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="c">
|
||||
<div class="title_sub">{{ checkItemTable.blank[0].inspectionModule }}</div>
|
||||
<div class="grid_sub">
|
||||
<div class="a_11" v-for="(item, index) of checkItemTable.blank" :key="index">{{ item.inspectionName }}</div>
|
||||
<div class="a_11" v-for="(item, index) of checkItemTable.blank" :key="index">
|
||||
<el-badge :value="item.Counter" type="primary"
|
||||
><div class="context">{{ item.inspectionName }}</div></el-badge
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d">
|
||||
<div class="title_sub">{{ checkItemTable.program[0].inspectionModule }}</div>
|
||||
<div class="grid_sub">
|
||||
<div class="a_11" v-for="(item, index) of checkItemTable.program" :key="index">{{ item.inspectionName }}</div>
|
||||
<div class="a_11" v-for="(item, index) of checkItemTable.program" :key="index">
|
||||
<el-badge :value="item.Counter" type="primary"
|
||||
><div class="context">{{ item.inspectionName }}</div></el-badge
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div class="title_sub">{{ checkItemTable.team[0].inspectionModule }}</div>
|
||||
<div class="grid_sub">
|
||||
<div class="a_11" v-for="(item, index) of checkItemTable.team" :key="index">{{ item.inspectionName }}</div>
|
||||
<div class="a_11" v-for="(item, index) of checkItemTable.team" :key="index">
|
||||
<el-badge :value="item.Counter" type="primary"
|
||||
><div class="context">{{ item.inspectionName }}</div></el-badge
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="f">
|
||||
@@ -73,7 +93,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>"------------------"+{{ data }}</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
@@ -81,7 +100,6 @@
|
||||
|
||||
<script>
|
||||
import { GetcheckItemTable } from '@/api/qualityManagement/firstFQC.js'
|
||||
import * as signalR from '@microsoft/signalr'
|
||||
export default {
|
||||
name: 'firstFQC',
|
||||
data() {
|
||||
@@ -103,9 +121,7 @@ export default {
|
||||
created() {
|
||||
this.getCheckItemList()
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
mounted() {},
|
||||
methods: {
|
||||
//todo 获取检测项
|
||||
getCheckItemList() {
|
||||
@@ -113,10 +129,37 @@ export default {
|
||||
.then((result) => {
|
||||
if (result.code == 200) {
|
||||
this.checkItemTable = result.data
|
||||
this.checkItemTable.paint.forEach((item, index) => {
|
||||
item.Counter = 0
|
||||
})
|
||||
this.checkItemTable.device.forEach((item, index) => {
|
||||
item.Counter = 0
|
||||
})
|
||||
this.checkItemTable.blank.forEach((item, index) => {
|
||||
item.Counter = 0
|
||||
})
|
||||
this.checkItemTable.program.forEach((item, index) => {
|
||||
item.Counter = 0
|
||||
})
|
||||
this.checkItemTable.team.forEach((item, index) => {
|
||||
item.Counter = 0
|
||||
})
|
||||
}
|
||||
})
|
||||
.catch((err) => {})
|
||||
},
|
||||
//todo 累加器
|
||||
Accumulator(item, index) {
|
||||
switch (item.inspectionModule) {
|
||||
case '油漆':
|
||||
this.checkItemTable.paint.filter((it) => it.id == item.id)[0].Counter++
|
||||
console.log(
|
||||
'this.checkItemTable.paint.filter((it) => it.id == item.id)[0].Counter',
|
||||
this.checkItemTable.paint.filter((it) => it.id == item.id)[0].Counter,
|
||||
)
|
||||
break
|
||||
}
|
||||
},
|
||||
|
||||
//todo 初始话 signalR
|
||||
/*initSignalR() {
|
||||
@@ -249,7 +292,7 @@ export default {
|
||||
|
||||
.grid_sub > * {
|
||||
height: 60px;
|
||||
background-color: #53a8ff;
|
||||
background-color: #11a983;
|
||||
color: white;
|
||||
border-radius: 0.2em;
|
||||
transition: all 0.2s ease-in-out;
|
||||
@@ -275,4 +318,7 @@ export default {
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
.context {
|
||||
margin: 0.5em 1em;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user