零件数量维护

This commit is contained in:
Vergil
2020-03-25 10:40:44 +08:00
parent d1a65d2063
commit 5f05d7e727
2 changed files with 18 additions and 62 deletions

View File

@@ -23,7 +23,7 @@
</el-card>
<el-card>
<div>
<span style="font-size: 20px">基本件三表数量</span>
<span style="font-size: 20px">基本件</span>
<el-tooltip :open-delay="1000" effect="dark" content="删除基本件三表数量" placement="top">
<el-button style="float: right;margin-bottom: 3px" type="danger" size="small" plain @click="alldelete()">全部删除</el-button>
</el-tooltip>
@@ -36,21 +36,13 @@
<el-table-column label="零件图号" align="center" min-width="200px">
<template slot-scope="scope">{{ scope.row.零件图号 }}</template>
</el-table-column>
<el-table-column
label="零件名称"
align="center"
min-width="100px">
<el-table-column label="零件名称" align="center" min-width="100px">
<template slot-scope="scope">{{ scope.row.零件名称 }}</template>
</el-table-column>
<el-table-column
label="组号"
align="center"
min-width="100px">
<el-table-column label="组号" align="center" min-width="100px">
<template slot-scope="scope">{{ scope.row.组号 }}</template>
</el-table-column>
<el-table-column
label="零件数量"
align="center">
<el-table-column label="零件数量" align="center">
<template slot-scope="scope">{{ scope.row.零件数量 }}</template>
</el-table-column>
<el-table-column label="部件数量" align="center">
@@ -63,19 +55,13 @@
{{ scope.row.机床数量 }}
</template>
</el-table-column>
<el-table-column
label="材料"
align="center">
<el-table-column label="材料" align="center">
<template slot-scope="scope">{{ scope.row.材料 }}</template>
</el-table-column>
<el-table-column
label="备注"
align="center">
<el-table-column label="备注" align="center">
<template slot-scope="scope">{{ scope.row.零件备注 }}</template>
</el-table-column>
<el-table-column
label="零件类型"
align="center">
<el-table-column label="零件类型" align="center">
<template slot-scope="scope">{{ scope.row.零件类型名称 }}</template>
</el-table-column>
<el-table-column align="center" label="分类码" width="150">
@@ -93,24 +79,13 @@
{{ scope.row.整改类型 }}
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="200">
<el-table-column label="操作" fixed="right" align="center" width="100">
<template slot-scope="scope">
<el-tooltip :open-delay="1000" effect="dark" content="编辑零件数量" placement="top">
<el-button
:disabled="scope.row.考核状态>=6&&scope.row.状态==='已加工'"
size="mini"
type="primary"
plain
icon="el-icon-edit"
@click="type=1;handleEdit(scope.row)">编辑</el-button>
<el-button :disabled="scope.row.考核状态>=6&&scope.row.状态==='已加工'" size="mini" type="text" plain icon="el-icon-edit" @click="type=1;handleEdit(scope.row)"/>
</el-tooltip>
<el-tooltip :open-delay="1000" effect="dark" content="删除该行" placement="top">
<el-button
size="mini"
type="danger"
plain
icon="el-icon-delete"
@click="handleDelete(scope.row)">删除</el-button>
<el-button size="mini" type="text" plain icon="el-icon-delete" @click="handleDelete(scope.row)"/>
</el-tooltip>
</template>
</el-table-column>
@@ -128,7 +103,7 @@
</el-card>
<el-card>
<div>
<span style="font-size: 20px">外购件和标准件三表数量</span>
<span style="font-size: 20px">外购件和标准件</span>
<el-tooltip :open-delay="1000" effect="dark" content="删除外购件和标准件数量" placement="top">
<el-button style="float: right;margin-bottom: 3px" type="danger" size="small" plain @click="alldeleteWB()">全部删除</el-button>
</el-tooltip>
@@ -226,7 +201,7 @@
</el-card>
<el-card>
<div>
<div style="font-size: 20px">未投产数量</div>
<div style="font-size: 20px">未投产</div>
<el-table
:data="tableData1"
border
@@ -291,7 +266,7 @@
</div>
</el-card>
<el-card>
<div style="font-size: 20px">未平衡数量</div>
<div style="font-size: 20px">未平衡</div>
<el-table
:data="tableData2"
border
@@ -350,7 +325,7 @@
<!-- </div>-->
</el-card>
<el-card>
<div style="font-size: 20px">未分配采购零件数量</div>
<div style="font-size: 20px">未分配采购</div>
<el-tabs type="border-card" @tab-click="searchTable1();searchTable2()">
<el-tab-pane label="标准件和外购件">
<el-table :data="tableData3" size="mini" style="max-height: 320px" height="320px" border>

View File

@@ -4,21 +4,10 @@
<el-badge :value="value" class="item" style="margin-bottom: 10px; float: right">
<el-button size="small" @click="openWindow">Andon信息</el-button>
</el-badge>
<el-table
:data="tableData"
style="width: 100%;"
size="mini"
height="800"
highlight-current-row
border
stripe>
<el-table :data="tableData" style="width: 100%;" size="mini" height="800" highlight-current-row border stripe>
<el-table-column align="center" label="照片" width="50">
<template slot-scope="scope">
<el-popover
v-if="scope.row.文件标识 && scope.row.文件标识 !== 'null'"
placement="top-start"
width="200"
trigger="hover">
<el-popover v-if="scope.row.文件标识 && scope.row.文件标识 !== 'null'" placement="top-start" width="200" trigger="hover">
<el-button type="text" style="float:right" @click="deletePhoto(scope.row)">删除</el-button>
<el-image :src="scope.row.文件标识 && scope.row.文件标识 !== 'null' ? (readFile + scope.row.文件标识 + '.' + scope.row.文件后缀) : readFile + '123.jpg'">
<div slot="error" class="image-slot">
@@ -63,16 +52,8 @@
</el-table-column>
</el-table>
</el-card>
<el-dialog
:visible.sync="dialogVisible"
width="60%">
<el-table
:data="tableDataMassage"
style="width: 100%;"
size="mini"
height="500"
highlight-current-row
border>
<el-dialog :visible.sync="dialogVisible" width="60%">
<el-table :data="tableDataMassage" style="width: 100%;" size="mini" height="500" highlight-current-row border>
<el-table-column align="center" label="工位号">
<template slot-scope="scope">
<el-button type="text">{{ scope.row.工位号 }}</el-button>