报废零件查询

This commit is contained in:
Vergil
2020-05-18 11:51:41 +08:00
parent ca3574dce5
commit 70ef97bae9

View File

@@ -23,157 +23,156 @@
<el-button v-positive="'loading'" :disabled="false" type="success" icon="el-icon-download" size="small" plain style="margin-left: 10px" @click="exportExcel()">导出</el-button> <el-button v-positive="'loading'" :disabled="false" type="success" icon="el-icon-download" size="small" plain style="margin-left: 10px" @click="exportExcel()">导出</el-button>
</el-row> </el-row>
</el-card> </el-card>
<el-row> <el-card style="margin-top: 15px">
<el-col> <el-table v-loading="listLoading" :data="tableData" style="width: 100%" stripe size="small" height="590" highlight-current-row border>
<el-card style="margin-top: 15px"> <el-table-column align="center" label="机床图号" width="80px" show-overflow-tooltip fixed>
<el-table v-loading="listLoading" :data="tableData" style="width: 100%" stripe size="small" height="590" highlight-current-row border @row-click="fetchTableData2"> <template slot-scope="scope">
<el-table-column align="center" label="机床图号" width="120px" show-overflow-tooltip fixed> {{ scope.row.机床图号 }}
<template slot-scope="scope"> </template>
{{ scope.row.机床图号 }} </el-table-column>
</template> <el-table-column align="center" label="组号" width="50px" fixed>
</el-table-column> <template slot-scope="scope">
<el-table-column align="center" label="组号" width="50px" fixed> {{ scope.row.组号 }}
<template slot-scope="scope"> </template>
{{ scope.row.组号 }} </el-table-column>
</template> <el-table-column align="center" label="零件图号" width="140px" show-overflow-tooltip fixed>
</el-table-column> <template slot-scope="scope">
<el-table-column align="center" label="零件图号" width="140px" show-overflow-tooltip fixed> {{ scope.row.零件图号 }}
<template slot-scope="scope"> </template>
{{ scope.row.零件图号 }} </el-table-column>
</template> <el-table-column align="center" label="零件名称" width="100px" show-overflow-tooltip fixed>
</el-table-column> <template slot-scope="scope">
<el-table-column align="center" label="零件名称" width="100px" show-overflow-tooltip fixed> {{ scope.row.零件名称 }}
<template slot-scope="scope"> </template>
{{ scope.row.零件名称 }} </el-table-column>
</template> <el-table-column align="center" label="报废数" width="70px">
</el-table-column> <template slot-scope="scope">
<el-table-column align="center" label="报废数" width="70px"> {{ scope.row.报废数 }}
<template slot-scope="scope"> </template>
{{ scope.row.报废数量 }} </el-table-column>
</template> <el-table-column align="center" label="报废时间" width="85px">
</el-table-column> <template slot-scope="scope">
<el-table-column align="center" label="报废时间" width="85px"> {{ scope.row.报废时间 }}
<template slot-scope="scope"> </template>
{{ scope.row.报废时间 }} </el-table-column>
</template> <el-table-column align="center" label="报废人" width="80px">
</el-table-column> <template slot-scope="scope">
<el-table-column align="center" label="报废人" width="85px"> {{ scope.row.报废人 }}
<template slot-scope="scope"> </template>
{{ scope.row.报废人 }} </el-table-column>
</template> <el-table-column align="center" label="报废工序" width="80px">
</el-table-column> <template slot-scope="scope">
<el-table-column align="center" label="报废工序" width="80px"> {{ scope.row.工艺名称 }}
<template slot-scope="scope"> </template>
{{ scope.row.工艺名称 }} </el-table-column>
</template> <el-table-column align="center" label="报废原因" width="80px" show-overflow-tooltip>
</el-table-column> <template slot-scope="scope">
<el-table-column align="center" label="报废原因" width="80px" show-overflow-tooltip> {{ scope.row.报废原因 }}
<template slot-scope="scope"> </template>
{{ scope.row.报废原因 }} </el-table-column>
</template> <el-table-column align="center" label="操作工人" width="80px" show-overflow-tooltip>
</el-table-column> <template slot-scope="scope">
<el-table-column align="center" label="操作工人" width="80px" show-overflow-tooltip> {{ scope.row.操作工 === '超级管理员' ? '' : scope.row.操作工 }}
<template slot-scope="scope"> </template>
{{ scope.row.操作工 === '超级管理员' ? '' : scope.row.操作工 }} </el-table-column>
</template> <el-table-column align="center" label="报废备注" width="100px" show-overflow-tooltip>
</el-table-column> <template slot-scope="scope">
<el-table-column align="center" label="报废备注" width="100px" show-overflow-tooltip> {{ scope.row.备注 }}
<template slot-scope="scope"> </template>
{{ scope.row.备注 }} </el-table-column>
</template> <el-table-column align="center" label="质检员" width="85px">
</el-table-column> <template slot-scope="scope">
<el-table-column align="center" label="质检员" width="85px"> {{ scope.row.质检人 }}
<template slot-scope="scope"> </template>
{{ scope.row.质检人 }} </el-table-column>
</template> <el-table-column align="center" label="报废工时(分)" width="80px">
</el-table-column> <template slot-scope="scope">
<el-table-column align="center" label="报废工时(分)" width="105px"> {{ scope.row.报废工时 }}
<template slot-scope="scope"> </template>
{{ scope.row.报废工时 }} </el-table-column>
</template> <el-table-column align="center" label="补投时间" width="85px">
</el-table-column> <template slot-scope="scope">
<el-table-column align="center" label="补投时间" width="85px"> {{ scope.row.补投时间 ? scope.row.补投时间.split(' ')[0] : '' }}
<template slot-scope="scope"> </template>
{{ scope.row.补投时间 ? scope.row.补投时间.split(' ')[0] : '' }} </el-table-column>
</template> <el-table-column align="center" label="补投人" width="80px">
</el-table-column> <template slot-scope="scope">
<el-table-column align="center" label="补投人" width="85px"> {{ scope.row.补投人 }}
<template slot-scope="scope"> </template>
{{ scope.row.补投人 }} </el-table-column>
</template> <el-table-column label="操作" align="center" width="80px">
</el-table-column> <template slot-scope="scope">
</el-table> <el-button type="text" plain size="small" @click="fetchTableData2(scope.row)">加工过程</el-button>
<div class="block" style="margin-top: 10px"> </template>
<el-pagination </el-table-column>
:current-page="pageCurrent" </el-table>
:page-sizes="[10, 20, 30, 40, 50]" <div class="block" style="margin-top: 10px">
:page-size="pageSize" <el-pagination
:total="total" :current-page="pageCurrent"
layout="total, sizes, prev, pager, next, jumper" :page-sizes="[10, 20, 30, 40, 50]"
@size-change="handleSizeChange" :page-size="pageSize"
@current-change="handleCurrentChange"/> :total="total"
</div> layout="total, sizes, prev, pager, next, jumper"
</el-card> @size-change="handleSizeChange"
</el-col> @current-change="handleCurrentChange"/>
<el-col> </div>
<el-card> </el-card>
<el-table :data="tableData2" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(226,223,223,1)" height="630" border style="width: 430px"> <el-dialog :visible.sync="dialogVisible" title="离线合同请款" center style="min-height: 300px" width="1000px">
<el-table-column <el-table :data="tableData2" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(226,223,223,1)" height="630" border style="width: 430px">
width="50px" <el-table-column
prop="province1" width="50px"
label="顺序" prop="province1"
align="center" label="顺序"
> align="center"
<template slot-scope="scope">{{ scope.row.工序顺序 }}</template> >
</el-table-column> <template slot-scope="scope">{{ scope.row.工序顺序 }}</template>
<el-table-column </el-table-column>
width="80px" <el-table-column
prop="province2" width="80px"
label="工艺名称" prop="province2"
align="center" label="工艺名称"
> align="center"
<template slot-scope="scope">{{ scope.row.工艺名称 }}</template> >
</el-table-column> <template slot-scope="scope">{{ scope.row.工艺名称 }}</template>
<el-table-column </el-table-column>
prop="province4" <el-table-column
label="工艺要求" prop="province4"
align="center" label="工艺要求"
width="80px" align="center"
show-overflow-tooltip width="80px"
> show-overflow-tooltip
<template slot-scope="scope">{{ scope.row.工艺要求 }}</template> >
</el-table-column> <template slot-scope="scope">{{ scope.row.工艺要求 }}</template>
<el-table-column </el-table-column>
width="60px" <el-table-column
prop="province5" width="60px"
label="单件定额" prop="province5"
align="center" label="单件定额"
> align="center"
<template slot-scope="scope">{{ scope.row.单件定额工时 }}</template> >
</el-table-column> <template slot-scope="scope">{{ scope.row.单件定额工时 }}</template>
<el-table-column </el-table-column>
width="60px" <el-table-column
prop="province6" width="60px"
label="准结定额" prop="province6"
align="center" label="准结定额"
> align="center"
<template slot-scope="scope">{{ scope.row.准结定额工时 }}</template> >
</el-table-column> <template slot-scope="scope">{{ scope.row.准结定额工时 }}</template>
<el-table-column </el-table-column>
width="77px" <el-table-column
prop="province7" width="77px"
label="完成状态" prop="province7"
align="center" label="完成状态"
> align="center"
<template slot-scope="scope"> >
<div v-if="scope.row.工序状态 === 4"><div style="width: 12px;height: 12px;border-radius: 50%;background-color: rgb(103, 194, 58);display: inline-block;margin:0px 5px 0 0"/>完成</div> <template slot-scope="scope">
<div v-else ><div style="width: 12px;height: 12px;border-radius: 50%;background-color: red;display: inline-block;margin:0px 5px 0 0"/>未完</div> <div v-if="scope.row.工序状态 === 4"><div style="width: 12px;height: 12px;border-radius: 50%;background-color: rgb(103, 194, 58);display: inline-block;margin:0px 5px 0 0"/>完成</div>
</template> <div v-else ><div style="width: 12px;height: 12px;border-radius: 50%;background-color: red;display: inline-block;margin:0px 5px 0 0"/>未完</div>
</el-table-column> </template>
</el-table> </el-table-column>
</el-card> </el-table>
</el-col> </el-dialog>
</el-row>
</div> </div>
</template> </template>
@@ -182,6 +181,7 @@ import { searchMachine, searchTable1, searchTable2, TableDta2Select } from '@/ap
export default { export default {
data() { data() {
return { return {
dialogVisible: false,
pageCurrent: 1, pageCurrent: 1,
pageSize: 20, pageSize: 20,
total: 0, total: 0,
@@ -248,6 +248,7 @@ export default {
fetchTableData2(row) { fetchTableData2(row) {
TableDta2Select(row.补投流水号).then(response => { TableDta2Select(row.补投流水号).then(response => {
this.tableData2 = response.data this.tableData2 = response.data
this.dialogVisible = true
}) })
}, },
exportExcel() { exportExcel() {