自制件状态查询
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
:value="item.value"/>
|
:value="item.value"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-input v-model="partNumber" placeholder="零件号" size="small" clearable style="width: 150px;margin: 10px 10px 0px 10px"/>
|
<el-input v-model="partNumber" placeholder="零件号" size="small" clearable style="width: 150px;margin: 10px 10px 0px 10px"/>
|
||||||
<el-button type="primary" plain icon="el-icon-search" size="small" style="margin: 15px 0 0 10px" @click="pageCurrent=1;pageSize=20;total=0;searchData()">查询</el-button>
|
<el-button type="primary" plain icon="el-icon-search" size="small" style="margin: 15px 0 0 10px" @click="pageCurrent=1;pageSize=30;total=0;searchData()">查询</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card>
|
<el-card>
|
||||||
@@ -60,14 +60,14 @@
|
|||||||
{{ scope.row.传递时间 }}
|
{{ scope.row.传递时间 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="零件状态" width="650px">
|
<el-table-column align="center" label="零件状态" width="550px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-steps :active="scope.row.考核状态" finish-status="success" simple>
|
<el-steps :active="scope.row.考核状态" finish-status="success" simple>
|
||||||
<el-step title="投产" />
|
<el-step title="投产" />
|
||||||
<el-step title="工艺" />
|
<el-step title="工艺" />
|
||||||
<el-step title="定额" />
|
<!--<el-step title="定额" />-->
|
||||||
<el-step title="平衡" />
|
<!--<el-step title="平衡" />-->
|
||||||
<el-step title="完成" />
|
<el-step title="制造" />
|
||||||
<el-step title="入库" />
|
<el-step title="入库" />
|
||||||
<el-step title="出库" />
|
<el-step title="出库" />
|
||||||
</el-steps>
|
</el-steps>
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
<div class="block" style="margin-top: 10px;">
|
<div class="block" style="margin-top: 10px;">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
:current-page="pageCurrent"
|
:current-page="pageCurrent"
|
||||||
:page-sizes="[10, 20, 30, 40, 50]"
|
:page-sizes="[30, 50, 100]"
|
||||||
:page-size="pageSize"
|
:page-size="pageSize"
|
||||||
:total="total"
|
:total="total"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
@@ -108,7 +108,7 @@ export default {
|
|||||||
partTypeValue: null, // 零件类型
|
partTypeValue: null, // 零件类型
|
||||||
num: null,
|
num: null,
|
||||||
pageCurrent: 1,
|
pageCurrent: 1,
|
||||||
pageSize: 20,
|
pageSize: 30,
|
||||||
tableData7: [],
|
tableData7: [],
|
||||||
tableData6: [],
|
tableData6: [],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
@@ -173,9 +173,18 @@ export default {
|
|||||||
this.loading0 = true
|
this.loading0 = true
|
||||||
searchTable(check1, this.machineToolValue, check2, this.groupNumberValue, check3, this.partNumber, check4, this.partStateValue, check5, this.partTypeValue, this.pageCurrent, this.pageSize).then(response => {
|
searchTable(check1, this.machineToolValue, check2, this.groupNumberValue, check3, this.partNumber, check4, this.partStateValue, check5, this.partTypeValue, this.pageCurrent, this.pageSize).then(response => {
|
||||||
for (let i = 0; i < response.data.result.length; i++) {
|
for (let i = 0; i < response.data.result.length; i++) {
|
||||||
response.data.result[i].考核状态 = parseInt(response.data.result[i].考核状态) - 2
|
if (response.data.result[i].考核状态 === 3) {
|
||||||
if (response.data.result[i].传递时间 !== undefined || response.data.result[i].hasOwnProperty('传递时间')) {
|
response.data.result[i].考核状态 = 1
|
||||||
response.data.result[i].传递时间 = response.data.result[i].传递时间.split(' ', 2)[0]
|
} else if (response.data.result[i].考核状态 === 4) {
|
||||||
|
response.data.result[i].考核状态 = 2
|
||||||
|
} else if (response.data.result[i].考核状态 === 5) {
|
||||||
|
response.data.result[i].考核状态 = 2
|
||||||
|
} else if (response.data.result[i].考核状态 === 6) {
|
||||||
|
response.data.result[i].考核状态 = 3
|
||||||
|
} else if (response.data.result[i].考核状态 === 7) {
|
||||||
|
response.data.result[i].考核状态 = 4
|
||||||
|
} else if (response.data.result[i].考核状态 === 8) {
|
||||||
|
response.data.result[i].考核状态 = 5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.loading0 = false
|
this.loading0 = false
|
||||||
|
|||||||
Reference in New Issue
Block a user