This commit is contained in:
Vergil
2020-02-18 14:33:57 +08:00
parent d28af8c2fa
commit 6a18d96118
2 changed files with 12 additions and 17 deletions

View File

@@ -80,8 +80,8 @@
</div> </div>
</el-card> </el-card>
<el-dialog :visible.sync="dialogFormVisible" :title="title" center width="400px"> <el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible" :title="title" center width="400px">
<el-table ref="multipleTable" :data="tableData2" size="mini" height="400" border> <el-table :data="tableData2" size="mini" height="400" border>
<el-table-column align="center" label="序号" width="80"> <el-table-column align="center" label="序号" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.工序顺序 }} {{ scope.row.工序顺序 }}

View File

@@ -29,9 +29,9 @@
<el-col style="width: 37%"> <el-col style="width: 37%">
<el-card> <el-card>
<el-table <el-table
v-loading="loading2"
:data="tableData1" :data="tableData1"
:row-class-name="tableRowClassName1" :row-class-name="tableRowClassName1"
loading="loading"
class="table" class="table"
style="max-height: 830px" style="max-height: 830px"
highlight-current-row highlight-current-row
@@ -44,11 +44,6 @@
{{ scope.row.工艺名称 }} {{ scope.row.工艺名称 }}
</template> </template>
</el-table-column> </el-table-column>
<!--<el-table-column align="center" label="已完数量" show-overflow-tooltip min-width="70">-->
<!--<template slot-scope="scope">-->
<!--{{ scope.row.完成数量 }}-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column align="center" label="质检" width="60"> <el-table-column align="center" label="质检" width="60">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.序间质检 }} {{ scope.row.序间质检 }}
@@ -75,20 +70,15 @@
<el-col style="width: 63%"> <el-col style="width: 63%">
<el-card> <el-card>
<el-table <el-table
v-loading="loading"
ref="singleTable" ref="singleTable"
:data="tableData" :data="tableData"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
loading="loading"
class="table" class="table"
highlight-current-row highlight-current-row
border border
height="630" height="630"
@row-click="getCurrentRow"> @row-click="getCurrentRow">
<!--<el-table-column type="index" align="center" label="跟单号" width="140">-->
<!--<template slot-scope="scope">-->
<!--<el-radio :label="scope.row.跟单号" v-model="radio"/>-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column align="center" label="零件图号" show-overflow-tooltip width="200"> <el-table-column align="center" label="零件图号" show-overflow-tooltip width="200">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.零件图号 }} {{ scope.row.零件图号 }}
@@ -127,6 +117,7 @@
</el-table> </el-table>
<div class="block"> <div class="block">
<el-pagination <el-pagination
v-if="!loading"
:current-page="pageCurrent" :current-page="pageCurrent"
:page-sizes="[100, 200, 300, 400]" :page-sizes="[100, 200, 300, 400]"
:page-size="pageSize" :page-size="pageSize"
@@ -285,7 +276,8 @@ export default {
Groups: [], Groups: [],
number: '', // 零件图号 number: '', // 零件图号
tableData: [], // 工序表 tableData: [], // 工序表
loading: '', loading: false,
loading2: false,
checkbox_Machine: '', // 机床 checkbox_Machine: '', // 机床
checkbox_Group: '', // 分组 checkbox_Group: '', // 分组
checkbox_number: '', checkbox_number: '',
@@ -529,12 +521,13 @@ export default {
this.Group = response.data[0].组件流水号 this.Group = response.data[0].组件流水号
}) })
this.getTableData() this.getTableData()
}, // 按条件查询 },
// 按条件查询
getTableData() { getTableData() {
this.tableData = [] this.tableData = []
this.tableData1 = [] this.tableData1 = []
this.isDisabled = true this.isDisabled = true
this.Loading = true this.loading = true
if (this.Machine === '') { if (this.Machine === '') {
this.checkbox_Machine = 0 this.checkbox_Machine = 0
} else { } else {
@@ -574,6 +567,7 @@ export default {
}, },
// 获取工序表 // 获取工序表
getCurrentRow(row) { getCurrentRow(row) {
this.loading2 = true
this.批次数量 = row.批次数量 this.批次数量 = row.批次数量
this.index = row.index this.index = row.index
this.row2 = row.工艺计划流水号 this.row2 = row.工艺计划流水号
@@ -599,6 +593,7 @@ export default {
完成数量: response.data[i].完成数量 完成数量: response.data[i].完成数量
}) })
} }
this.loading2 = false
} }
}) })
}, },