| | |
| | | AddUpdateTBomUnitGroup, |
| | | BomMainData, |
| | | AddUpdateTBomParentData, |
| | | AddUpdateTBomDetailsData, AddUpdateTBomMaxVsion, AddUpdateTBomDetailsBomData, TBomAddUpdate |
| | | AddUpdateTBomDetailsData, AddUpdateTBomMaxVsion, AddUpdateTBomDetailsBomData, TBomAddUpdate, TBomDelete |
| | | } from '@/api/ProductModel' |
| | | |
| | | export default { |
| | |
| | | }, |
| | | // 删除按钮 |
| | | async del(row) { |
| | | // this.$confirm('是否确认删除?', '提示', { |
| | | // confirmButtonText: '确定', |
| | | // cancelButtonText: '取消', |
| | | // type: 'warning' |
| | | // }).then(() => { |
| | | // DeleteBoIventory({ bomid: row.id }).then(res => { |
| | | // if (res.code === '200') { |
| | | // this.$message.success('删除成功!') |
| | | // if (this.form.page > 1 && this.tableData.length === 1) { |
| | | // this.form.page-- |
| | | // } |
| | | // this.getBomMainData() |
| | | // } |
| | | // }) |
| | | // }).catch(() => { |
| | | // this.$message.info('已取消删除') |
| | | // }) |
| | | this.$confirm('是否确认删除?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | TBomDelete(row).then(res => { |
| | | if (res.code === '200') { |
| | | this.$message.success('删除成功!') |
| | | if (this.form.page > 1 && this.tableData.length === 1) { |
| | | this.form.page-- |
| | | } |
| | | this.getBomMainData() |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | | this.$message.info('已取消删除') |
| | | }) |
| | | }, |
| | | // 对话框关闭事件 |
| | | handleClose() { |
| | |
| | | 'base_quantity': i.BASE_QUANTITY, |
| | | 'loss_quantity': i.LOSS_QUANTITY, |
| | | 'total_quantity': i.TOTAL_QUANTITY, |
| | | 'idchildbom': i.tableData2.find(j => j.version === i.idchildbom).id |
| | | 'idchildbom': i.idchildbom === '' ? '' : i.tableData2.find(j => j.version === i.idchildbom).id |
| | | }) |
| | | }) |
| | | |