零件数量调整
This commit is contained in:
@@ -28,30 +28,12 @@
|
|||||||
<el-button style="float: right;margin-bottom: 3px" type="danger" size="small" plain @click="alldelete()">全部删除</el-button>
|
<el-button style="float: right;margin-bottom: 3px" type="danger" size="small" plain @click="alldelete()">全部删除</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table v-loading="loading" :data="tableData" highlight-current-row border stripe size="mini" style="width: 100%;max-height: 520px" height="320">
|
||||||
v-loading="loading"
|
<el-table-column label="序号" align="center" type="index" width="50"/>
|
||||||
:data="tableData"
|
<el-table-column label="机床图号" align="center" min-width="150px">
|
||||||
highlight-current-row
|
|
||||||
border
|
|
||||||
stripe
|
|
||||||
size="mini"
|
|
||||||
style="width: 100%;max-height: 520px"
|
|
||||||
height="320">
|
|
||||||
<el-table-column
|
|
||||||
label="序号"
|
|
||||||
align="center"
|
|
||||||
type="index"
|
|
||||||
width="50"/>
|
|
||||||
<el-table-column
|
|
||||||
label="机床图号"
|
|
||||||
align="center"
|
|
||||||
min-width="150px">
|
|
||||||
<template slot-scope="scope">{{ scope.row.机床图号 }}</template>
|
<template slot-scope="scope">{{ scope.row.机床图号 }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="零件图号" align="center" min-width="200px">
|
||||||
label="零件图号"
|
|
||||||
align="center"
|
|
||||||
min-width="200px">
|
|
||||||
<template slot-scope="scope">{{ scope.row.零件图号 }}</template>
|
<template slot-scope="scope">{{ scope.row.零件图号 }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -113,9 +95,9 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" fixed="right" align="center" width="200">
|
<el-table-column label="操作" fixed="right" align="center" width="200">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
||||||
<el-tooltip :open-delay="1000" effect="dark" content="编辑零件数量" placement="top">
|
<el-tooltip :open-delay="1000" effect="dark" content="编辑零件数量" placement="top">
|
||||||
<el-button
|
<el-button
|
||||||
|
:disabled="scope.row.考核状态>=6"
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="primary"
|
||||||
plain
|
plain
|
||||||
@@ -853,7 +835,6 @@ export default {
|
|||||||
this.loading = false
|
this.loading = false
|
||||||
const res = response.data
|
const res = response.data
|
||||||
this.total = res.total
|
this.total = res.total
|
||||||
// console.log(this.tableData)
|
|
||||||
this.tableData = res.map(item => {
|
this.tableData = res.map(item => {
|
||||||
if (item.整改类型 === '1') {
|
if (item.整改类型 === '1') {
|
||||||
item.整改类型 = '新增'
|
item.整改类型 = '新增'
|
||||||
@@ -871,7 +852,6 @@ export default {
|
|||||||
const data = response.data
|
const data = response.data
|
||||||
this.totalWB = data.total
|
this.totalWB = data.total
|
||||||
this.tableDataWB = data.map(item => {
|
this.tableDataWB = data.map(item => {
|
||||||
console.log(item)
|
|
||||||
item.零件类型 = item.零件类型 === '2' ? '外购件' : '标准件'
|
item.零件类型 = item.零件类型 === '2' ? '外购件' : '标准件'
|
||||||
return item
|
return item
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user