This commit is contained in:
bryan sun
2019-10-31 17:13:36 +08:00
parent 4af98a6f65
commit c97874bbd5
6 changed files with 556 additions and 491 deletions

View File

@@ -1,49 +1,48 @@
<template>
<div class="app-container">
<el-card>
<span>人员姓名:</span>
<el-input v-model="personnelNumber" placeholder="请双击选择人员姓名" class="input-with-select" clearable size="small" style="width:200px;margin:3px;" @dblclick.native="dialogTableVisible"/>
<el-button type="success" class="el-icon-search" size="small" style="margin-left: 10px" @click="pageCurrent=1;pageSize=20;searchTable()">查询</el-button>
<el-button type="primary" class="el-icon-circle-plus-outline" size="small" style="margin-left: 10px" @click="editType1('form');param = 0">新增</el-button>
<el-input v-model="personnelNumber" placeholder="请双击选择人员姓名" class="input-with-select" clearable size="small" style="width:170px;margin:3px;" @dblclick.native="dialogTableVisible"/>
<el-button type="success" class="el-icon-search" size="small" style="margin-left: 10px" @click="pageCurrent=1;pageSize=50;searchTable()">查询</el-button>
<el-button type="primary" class="el-icon-circle-plus-outline" size="small" style="margin-left: 10px" @click="editType1('form');param = 0">新增修补工时</el-button>
</el-card>
<el-card>
<el-table v-loading="loading0" :data="tableData" height="500" highlight-current-row size="mini" style="width: 100%;margin-top:3px" border stripe>
<el-table v-loading="loading0" :data="tableData" height="750" highlight-current-row size="mini" style="width: 100%;margin-top:3px" border stripe>
<el-table-column
label="序号"
type="index"
align="center"
width="50"/>
<el-table-column label="零件图号" align="center">
<el-table-column label="零件图号" align="center" width="150px">
<template slot-scope="scope">
{{ scope.row.零件图号_零件工艺计划 }}
</template>
</el-table-column>
<el-table-column label="修补工时" align="center">
<el-table-column label="修补工时" align="center" width="100px">
<template slot-scope="scope">
{{ scope.row.修补工时 }}
</template>
</el-table-column>
<el-table-column label="年" align="center">
<el-table-column label="年" align="center" width="50px">
<template slot-scope="scope">
{{ scope.row. }}
</template>
</el-table-column>
<el-table-column label="月" align="center">
<el-table-column label="月" align="center" width="50px">
<template slot-scope="scope">
{{ scope.row. }}
</template>
</el-table-column>
<el-table-column label="人员" align="center">
<el-table-column label="人员" align="center" width="90px">
<template slot-scope="scope">
{{ scope.row.姓名 }}
</template>
</el-table-column>
<el-table-column label="修补工艺" align="center">
<el-table-column label="修补工艺" align="center" width="100px">
<template slot-scope="scope">
{{ scope.row.修补工艺 }}
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="200px" fixed="right">
<el-table-column label="操作" align="center" width="100px">
<template slot-scope="scope">
<el-tooltip effect="dark" content="编辑" placement="top">
<div style="display: inline-block">
@@ -71,7 +70,7 @@
<el-pagination
v-if="!loading0"
:current-page="pageCurrent"
:page-sizes="[10, 20, 30, 40]"
:page-sizes="[10, 20, 30, 50]"
:page-size="pageSize"
:total="total"
layout="total, sizes, prev, pager, next, jumper"
@@ -258,10 +257,11 @@ export default {
count1: 0, // 清表单验证计数器
count2: 0, // 清表单验证计数器
tableData: [], // 表格数据
pageSize: 20,
pageSize: 50,
pageCurrent: 1,
total: 0,
dialogFormVisible: false,
bmbh: 12,
title1: '',
rules: {
零件: [{ required: true, message: '请选择零件', trigger: 'change' }],
@@ -278,6 +278,7 @@ export default {
this.searchTable()
this.fetchData2()
this.getParts()
this.handleNodeClick1()
},
methods: {
fetchData2() {
@@ -369,6 +370,11 @@ export default {
this.List1 = response.data
})
},
handleNodeClick1() { // 树节点点击
getTable8(this.bmbh).then(response => {
this.List1 = response.data
})
},
fetchData3() {
getTree().then(response => { // 获取人员信息树
const data = response.data
@@ -476,7 +482,7 @@ export default {
if (response.data[0].result === '1') {
this.$message.success('增加成功')
this.pageCurrent = 1
this.pageSize = 20
this.pageSize = 50
this.searchTable()
this.dialogFormVisible = false
} else {