项目计划管理查询

This commit is contained in:
Vergil
2020-04-15 16:22:03 +08:00
parent f60464250a
commit 7d98b7edd0
3 changed files with 14 additions and 4 deletions

View File

@@ -133,7 +133,7 @@ export function Delete(num1) {
} }
}) })
} }
export function addTable(num1, num2) { export function addTable(num1, num2, num3) {
return request({ return request({
url: '', url: '',
method: 'post', method: 'post',
@@ -142,7 +142,7 @@ export function addTable(num1, num2) {
ModularID: router.currentRoute.path, ModularID: router.currentRoute.path,
type: '2', type: '2',
name: '项目计划管理_项目详细计划_增加数据', name: '项目计划管理_项目详细计划_增加数据',
param: `机床流水号=` + num1 + '&计划类型=' + num2 param: `机床流水号=` + num1 + '&计划类型=' + num2 + '&计划人=' + num3
} }
}) })
} }

View File

@@ -47,7 +47,7 @@
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="项目名称" align="center" min-width="120px" fixed="left"> <el-table-column label="项目名称" align="center" min-width="160px" fixed="left">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.项目名称 }} {{ scope.row.项目名称 }}
</template> </template>
@@ -641,7 +641,7 @@ export default {
if (this.radio === '') { if (this.radio === '') {
this.$message.error('请先选择一个类别') this.$message.error('请先选择一个类别')
} else { } else {
addTable(this.机床流水号, this.radio).then(response => { addTable(this.机床流水号, this.radio, this.id).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
this.$message({ this.$message({
type: 'success', type: 'success',

View File

@@ -271,6 +271,16 @@
{{ scope.row.实际完成时间 ? scope.row.实际工期 : '-' }} {{ scope.row.实际完成时间 ? scope.row.实际工期 : '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="140px" label="计划人" align="center">
<template slot-scope="scope">
{{ scope.row.姓名 }}
</template>
</el-table-column>
<el-table-column width="140px" label="计划时间" align="center">
<template slot-scope="scope">
{{ scope.row.计划时间1 }}
</template>
</el-table-column>
</el-table> </el-table>
</el-card> </el-card>
</el-row> </el-row>