姜福壮

This commit is contained in:
Vergil
2020-05-14 15:49:06 +08:00
parent cfcfabd22b
commit e99d954057
8 changed files with 66 additions and 35 deletions

View File

@@ -23,22 +23,32 @@
<el-col :span="8">
<el-card>
<el-table :data="tableData1" :row-class-name="tableRowClassName" empty-text=" " style="height: 670px" highlight-current-row border>
<el-table-column align="center" label="工序名" width="110">
<el-table-column align="center" label="工序名" width="80">
<template slot-scope="scope">
{{ scope.row.工艺名称 }}
</template>
</el-table-column>
<el-table-column align="center" label="操作者" width="100">
<el-table-column align="center" label="操作者" width="70" show-overflow-tooltip="">
<template slot-scope="scope">
<!--{{ scope.row.员工姓名 === '超级管理员' && scope.row.工序状态 !== 4 ? '' : scope.row.员工姓名 }}-->
{{ scope.row.工序间是否外协 === 2 ? '外协' : (scope.row.员工姓名 === '超级管理员' && scope.row.工序状态 !== 4 ? '' : scope.row.员工姓名) }}
</template>
</el-table-column>
<el-table-column align="center" label="数量" show-overflow-tooltip min-width="90">
<el-table-column align="center" label="数量" show-overflow-tooltip min-width="50">
<template slot-scope="scope">
{{ scope.row.投产数量 }}
</template>
</el-table-column>
<el-table-column align="center" label="质检数" show-overflow-tooltip min-width="65">
<template slot-scope="scope">
{{ scope.row.检验数量 }}
</template>
</el-table-column>
<el-table-column align="center" label="不良数" show-overflow-tooltip min-width="65">
<template slot-scope="scope">
{{ scope.row.不合格数量 }}
</template>
</el-table-column>
<el-table-column align="center" label="完成日期" show-overflow-tooltip min-width="90">
<template slot-scope="scope">
{{ scope.row.完成日期 ? scope.row.完成日期.split(' ')[0] : '' }}

View File

@@ -131,14 +131,14 @@
</el-col>
</el-row>
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible" title="工序完成情况" center width="650px">
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible" title="工序完成情况" center width="700px">
<el-row>
<span>零件图号:</span>
<el-input v-model="SparePartsNumber" style="width: 150px" size="small"/>
<span>零件名称:</span>
<el-input v-model="SparePartsName" style="width: 150px" size="small"/>
</el-row>
<el-table :data="tableData2" style="width: 615px;margin-top: 20px" size="mini" height="320" stripe highlight-current-row border>
<el-table :data="tableData2" style="width: 665px;margin-top: 20px" size="mini" height="320" stripe highlight-current-row border>
<el-table-column align="center" label="工序" width="70">
<template slot-scope="scope">
{{ scope.row.工序顺序 }}
@@ -149,17 +149,17 @@
{{ scope.row.工艺名称 }}
</template>
</el-table-column>
<el-table-column align="center" label="工艺要求" width="205">
<el-table-column align="center" label="工艺要求" width="205" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.工艺要求 }}
</template>
</el-table-column>
<el-table-column align="center" label="操作工" width="70">
<el-table-column align="center" label="操作工" width="70" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.工序间是否外协 === 2 ? '外协' : scope.row.操作员 }}
</template>
</el-table-column>
<el-table-column align="center" label="工序完成" width="80">
<el-table-column align="center" label="状态" width="80">
<template slot-scope="scope">
<span v-if="parseInt(scope.row.工序状态)===4" style="color: #67C23A">已完</span>
<span v-if="parseInt(scope.row.工序状态)===5" style="color: #E6A23C">报废</span>
@@ -169,16 +169,23 @@
<!--<el-tag v-if="parseInt(scope.row.工序状态)!==4 && parseInt(scope.row.工序状态)!==5" type="primary" size="small">未完</el-tag>-->
</template>
</el-table-column>
<el-table-column align="center" label="工序质检" width="80">
<el-table-column align="center" label="质检" width="65">
<template slot-scope="scope">
{{ scope.row.数量 === null ? 0 : scope.row.数量 }}
</template>
</el-table-column>
<el-table-column align="center" label="不良数" width="65">
<template slot-scope="scope">
{{ scope.row.不合格数量 === null ? 0 : scope.row.不合格数量 }}
</template>
</el-table-column>
<!-- <el-table-column align="center" label="工序质检" width="80">
<template slot-scope="scope">
<span v-if="parseInt(scope.row.是否质检)===1" style="color: #67C23A">合格</span>
<span v-if="parseInt(scope.row.是否质检)===2" style="color: #E6A23C">不合格</span>
<span v-if="parseInt(scope.row.是否质检)!==1 && parseInt(scope.row.是否质检)!==2" style="color: #409EFF">未检</span>
<!--<el-tag v-if="parseInt(scope.row.是否质检)===1" type="success" size="small">合格</el-tag>-->
<!--<el-tag v-if="parseInt(scope.row.是否质检)===2" type="warning" size="small">不合格</el-tag>-->
<!--<el-tag v-if="parseInt(scope.row.是否质检)!==1 && parseInt(scope.row.是否质检)!==2" type="primary" size="small">未检</el-tag>-->
</template>
</el-table-column>
</el-table-column> -->
</el-table>
</el-dialog>
</div>

View File

@@ -49,14 +49,14 @@
{{ scope.row.完成数量 }}
</template>
</el-table-column>
<el-table-column align="center" label="检数" width="80">
<el-table-column align="center" label="检数" width="80">
<template slot-scope="scope">
{{ scope.row.检验数量 }}
</template>
</el-table-column>
<el-table-column align="center" label="不合格数" width="80">
<el-table-column align="center" label="不数" width="80">
<template slot-scope="scope">
{{ scope.row不合格数量 }}
{{ scope.row.不合格数量 }}
</template>
</el-table-column>
<el-table-column align="center" label="操作者" show-overflow-tooltip width="70">
@@ -105,12 +105,12 @@
{{ scope.row.报废数量 }}
</template>
</el-table-column>
<el-table-column align="center" label="检数" width="70">
<el-table-column align="center" label="检数" width="70">
<template slot-scope="scope">
{{ scope.row.检验数量 }}
</template>
</el-table-column>
<el-table-column align="center" label="不合格数" width="80">
<el-table-column align="center" label="不数" width="80">
<template slot-scope="scope">
{{ scope.row.不合格数量 }}
</template>
@@ -418,7 +418,9 @@ export default {
工序流水号: response.data[i].工序流水号,
完成过程流水号: response.data[i].完成过程流水号,
工序状态: response.data[i].工序状态,
完成数量: response.data[i].完成数量
完成数量: response.data[i].完成数量,
检验数量: response.data[i].检验数量,
不合格数量: response.data[i].不合格数量
})
}
}
@@ -590,7 +592,9 @@ export default {
完成过程流水号: response.data[i].完成过程流水号,
工序状态: response.data[i].工序状态,
完成数量: response.data[i].完成数量,
工序间是否外协: response.data[i].工序间是否外协
工序间是否外协: response.data[i].工序间是否外协,
检验数量: response.data[i].检验数量,
不合格数量: response.data[i].不合格数量
})
}
this.loading2 = false

View File

@@ -55,6 +55,16 @@
{{ scope.row.批次数量 }}
</template>
</el-table-column>
<el-table-column align="center" label="质检数" width="65px">
<template slot-scope="scope">
{{ scope.row.质检数量 }}
</template>
</el-table-column>
<el-table-column align="center" label="不良数" width="65px">
<template slot-scope="scope">
{{ scope.row.质检不合格数量 }}
</template>
</el-table-column>
<el-table-column align="center" label="投产时间" width="100px">
<template slot-scope="scope">
{{ scope.row.传递时间 }}