项目编号

This commit is contained in:
Vergil
2020-04-02 15:56:55 +08:00
parent a05b31d2fb
commit e774a30e7c

View File

@@ -36,7 +36,7 @@
<el-col style="width: 1325px;"> <el-col style="width: 1325px;">
<el-card> <el-card>
<!--<h2 style="display: inline-block;margin: 0 0 10px 0">总计划:</h2>--> <!--<h2 style="display: inline-block;margin: 0 0 10px 0">总计划:</h2>-->
<el-table v-loading="loading" :data="tableData" height="320" highlight-current-row style="margin-top: 5px;width: 100%;" border element-loading-text="拼命加载中" @row-click="rowClick"> <el-table v-loading="loading" :data="tableData" height="355" highlight-current-row style="margin-top: 5px;width: 100%;" border element-loading-text="拼命加载中" @row-click="rowClick">
<el-table-column label="项目编号" align="center" width="170px" fixed="left"> <el-table-column label="项目编号" align="center" width="170px" fixed="left">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.edit"> <template v-if="scope.row.edit">
@@ -122,6 +122,16 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col style="width: 20px">
<!--<el-radio v-model="radio" label="1">{{ empty }}</el-radio>-->
</el-col>
<el-col style="width: 180px;margin-left: 20px">
<el-form-item label="项目编号" prop="项目编号" >
<el-input v-model="项目编号" placeholder="项目编号" clearable size="small" style="width: 180px"/>
</el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col style="width: 20px"> <el-col style="width: 20px">
<!--<el-radio v-model="radio" label="2">{{ empty }}</el-radio>--> <!--<el-radio v-model="radio" label="2">{{ empty }}</el-radio>-->
@@ -527,7 +537,11 @@ export default {
this.装配完成 ? this.装配完成 : this.装配完成 = null this.装配完成 ? this.装配完成 : this.装配完成 = null
editTable(this.项目流水号, this.机床流水号, this.项目编号, this.设计者, this.审图开始, this.审图结束, '', this.发图完成, this.采购完成, this.备料完成, this.制造完成, this.装配完成, '', this.更新时间).then(response => { editTable(this.项目流水号, this.机床流水号, this.项目编号, this.设计者, this.审图开始, this.审图结束, '', this.发图完成, this.采购完成, this.备料完成, this.制造完成, this.装配完成, '', this.更新时间).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
console.log(response.data) this.tableData.map(v => {
if (v.项目流水号 === this.项目流水号) {
v.项目编号 = this.项目编号
}
})
this.$message.success('保存成功') this.$message.success('保存成功')
} else { } else {
this.$message.error('信息修改失败') this.$message.error('信息修改失败')