| | |
| | | <el-table-column prop="unit" label="单位"> |
| | | </el-table-column> |
| | | <el-table-column prop="num" label="数量"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.num" |
| | | v-if="scope.row.mname != null" |
| | | @blur="updateVal(scope.row)"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | |
| | | created() {}, |
| | | mounted() {}, |
| | | methods: { |
| | | updateVal(row){ |
| | | this.$axios.post(this.$api.url.mBomWrite,{ |
| | | id : row.id, |
| | | num : row.num |
| | | }).then(res=>{ |
| | | this.$message.success(res.message); |
| | | }).catch(error=>{ |
| | | this.$message.error(error.message); |
| | | }) |
| | | }, |
| | | // 表格树全部选中配置 |
| | | // 全选/取消选操作 |
| | | selectAll(val) { |
| | |
| | | .standard .el-table__body { |
| | | height: 100%; |
| | | } |
| | | .standard .el-table .el-table__row:not([class*="el-table__row--level-"]) td:nth-child(3){ |
| | | /* .standard .el-table .el-table__row:not([class*="el-table__row--level-"]) td:nth-child(3){ |
| | | padding-left: 23px !important; |
| | | } |
| | | } */ |
| | | </style> |
| | | |