| | |
| | | { |
| | | name: '编辑', |
| | | type: 'text', |
| | | icon: 'el-icon-edit', |
| | | clickFun: (row) => { |
| | | this.editForm(row); |
| | | }, |
| | |
| | | { |
| | | name: '删除', |
| | | type: 'text', |
| | | icon: 'el-icon-delete', |
| | | clickFun: (row) => { |
| | | this.delete(row); |
| | | }, |
| | |
| | | { |
| | | name: '编辑', |
| | | type: 'text', |
| | | icon: 'el-icon-edit', |
| | | clickFun: (row) => { |
| | | this.editTestObjectForm(row); |
| | | }, |
| | |
| | | { |
| | | name: '删除', |
| | | type: 'text', |
| | | icon: 'el-icon-delete', |
| | | clickFun: (row) => { |
| | | this.deleteTest(row); |
| | | }, |
| | |
| | | this.objectId = row.id |
| | | this.getProductList(row) |
| | | }, |
| | | getProductList (row) { |
| | | getProductList () { |
| | | const params = { |
| | | objectId: 0, |
| | | partNo: row.partNo |
| | | id: this.objectId, |
| | | } |
| | | this.productableLoading = true |
| | | selectProductListByObjectId({...params, ...this.productPage}).then(res => { |
| | |
| | | if (res.code === 200) { |
| | | this.$message.success('新增成功') |
| | | this.productEditDia = false |
| | | this.refreshTable(); |
| | | this.getProductList(); |
| | | } |
| | | }) |
| | | } else { |
| | |
| | | if (res.code === 200) { |
| | | this.$message.success('新增成功') |
| | | this.productEditDia = false |
| | | this.refreshTable(); |
| | | this.getProductList(); |
| | | } |
| | | }) |
| | | } |