|
|
@ -294,7 +294,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'mainClose') { // 关闭 |
|
|
|
await message.confirm('确认要关闭吗?') |
|
|
|
tableObject.loading = true |
|
|
|
ProductreceiptRequestMainApi.close(row.id).then(() => { |
|
|
|
ProductreceiptRequestMainApi.close(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
@ -305,7 +305,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'mainReAdd') { // 重新添加 |
|
|
|
await message.confirm('确认要重新添加吗?') |
|
|
|
tableObject.loading = true |
|
|
|
ProductreceiptRequestMainApi.reAdd(row.id).then(() => { |
|
|
|
ProductreceiptRequestMainApi.reAdd(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
@ -316,7 +316,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'mainSubmit') { // 提交审批 |
|
|
|
await message.confirm('确认要提交审批吗?') |
|
|
|
tableObject.loading = true |
|
|
|
ProductreceiptRequestMainApi.submit(row.id).then(() => { |
|
|
|
ProductreceiptRequestMainApi.submit(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
@ -327,7 +327,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'mainTurnDown') { // 驳回 |
|
|
|
await message.confirm('确认要驳回吗?') |
|
|
|
tableObject.loading = true |
|
|
|
ProductreceiptRequestMainApi.refused(row.id).then(() => { |
|
|
|
ProductreceiptRequestMainApi.refused(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
@ -338,7 +338,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'mainApprove') { // 审批通过 |
|
|
|
await message.confirm('确认要审批通过吗?') |
|
|
|
tableObject.loading = true |
|
|
|
ProductreceiptRequestMainApi.agree(row.id).then(() => { |
|
|
|
ProductreceiptRequestMainApi.agree(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
@ -362,7 +362,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
return |
|
|
|
} |
|
|
|
detatableData.params = { |
|
|
|
masterId:row.id |
|
|
|
masterId:row.masterId |
|
|
|
} |
|
|
|
await getDetailList() |
|
|
|
// 打开创建标签页面 |
|
|
@ -431,7 +431,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
return |
|
|
|
} |
|
|
|
tableObject.loading = true |
|
|
|
ProductreceiptRequestMainApi.handle(row.id).then(() => { |
|
|
|
ProductreceiptRequestMainApi.handle(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
@ -441,7 +441,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'edit') { // 编辑 |
|
|
|
openForm('update', row) |
|
|
|
} else if (val == 'delete') { // 删除 |
|
|
|
handleDelete(row.id) |
|
|
|
handleDelete(row.masterId) |
|
|
|
} else if (val == 'point') { // 标签打印 |
|
|
|
handlePoint(row) |
|
|
|
} |
|
|
@ -614,7 +614,7 @@ const tableFormButton = async (val , row) => { |
|
|
|
bomModelVisible.value = true |
|
|
|
DialogTitle.value = '物料代码【' + row.itemCode + '】——Bom信息' |
|
|
|
detatableDataBom.params = { |
|
|
|
masterId: row.id |
|
|
|
masterId: row.masterId |
|
|
|
} |
|
|
|
await getDetailListBom() |
|
|
|
} |
|
|
|