| | |
| | | <el-button size="mini" type="primary" @click="addTableData">添加 |
| | | </el-button> |
| | | </div> |
| | | <el-table :data="consumables" style="margin-top: 10px"> |
| | | <el-table :data="consumables" style="margin-top: 10px" :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border> |
| | | <el-table-column label="编号" type="index" width="120px"></el-table-column> |
| | | <el-table-column label="货号" prop="itemNumber"></el-table-column> |
| | | <el-table-column label="类别" prop="type"></el-table-column> |
| | |
| | | if (type === 'edit') { |
| | | this.dialogType = "update"; |
| | | selectStoreById({ id: row.id }).then(res => { |
| | | if (res.code === 201) return |
| | | this.consumables = res.data.consumables |
| | | this.form = { ...res.data.store } |
| | | }).catch(err => { |