diff --git a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue index eb9c20e10..b22ecaf6a 100644 --- a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue +++ b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue @@ -259,7 +259,7 @@ const butttondata = (row,$index) => { const buttonTableClick = async (val, row) => { if (val == 'mainPlanOpe') { // 打开 tableObject.loading = true - PreparetoissueMainApi.open(row.id).then(() => { + PreparetoissueMainApi.open(row.masterId).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -270,7 +270,7 @@ const buttonTableClick = async (val, row) => { } else if (val == 'mainPlanClo') { // 关闭 await message.confirm('确认要关闭吗?') tableObject.loading = true - PreparetoissueMainApi.close(row.id).then(() => { + PreparetoissueMainApi.close(row.masterId).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -282,7 +282,7 @@ const buttonTableClick = async (val, row) => { if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') await message.confirm('确认要提交审批吗?') tableObject.loading = true - PreparetoissueMainApi.submit(row.id).then(() => { + PreparetoissueMainApi.submit(row.masterId).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -293,7 +293,7 @@ const buttonTableClick = async (val, row) => { } else if (val == 'mainPlanTur') { // 驳回 await message.confirm('确认要驳回吗?') tableObject.loading = true - PreparetoissueMainApi.reject(row.id).then(() => { + PreparetoissueMainApi.reject(row.masterId).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -305,7 +305,7 @@ const buttonTableClick = async (val, row) => { if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') await message.confirm('确认要审批通过吗?') tableObject.loading = true - PreparetoissueMainApi.agree(row.id).then(() => { + PreparetoissueMainApi.agree(row.masterId).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -316,7 +316,7 @@ const buttonTableClick = async (val, row) => { } else if (val == 'mainPlanPub') { // 发布 await message.confirm('确认要发布吗?') tableObject.loading = true - PreparetoissueMainApi.publish(row.id).then(() => { + PreparetoissueMainApi.publish(row.masterId).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -327,7 +327,7 @@ const buttonTableClick = async (val, row) => { } else if (val == 'mainPlanRes') { // 重置 await message.confirm('确认要重置吗?') tableObject.loading = true - PreparetoissueMainApi.resetting(row.id).then(() => { + PreparetoissueMainApi.resetting(row.masterId).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -338,7 +338,7 @@ const buttonTableClick = async (val, row) => { } else if (val == 'edit') { // 编辑 openForm('update', row) } else if (val == 'delete') { // 删除 - handleDelete(row.id) + handleDelete(row.masterId) } } diff --git a/src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue b/src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue index 7e8d61821..c275dba64 100644 --- a/src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue +++ b/src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue @@ -302,11 +302,11 @@ const buttonTableClick = async (val, row) => { } RepleinshJobMainApi.executeRepleinshMain(aaa) } else if (val == 'mainJobAba') { // 放弃 - RepleinshJobMainApi.abandonRepleinshMain(row.id) + RepleinshJobMainApi.abandonRepleinshMain(row.masterId) } else if (val == 'mainJobClo') { // 关闭 - RepleinshJobMainApi.closeRepleinshMain(row.id) + RepleinshJobMainApi.closeRepleinshMain(row.masterId) } else if (val == 'mainJobAcc') { // 承接 - RepleinshJobMainApi.acceptRepleinshMain(row.id) + RepleinshJobMainApi.acceptRepleinshMain(row.masterId) } } diff --git a/src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue b/src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue index 87d4f4158..130fd367b 100644 --- a/src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue +++ b/src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue @@ -217,7 +217,7 @@ const buttonTableClick = async (val, row) => { if (val == 'mainClose') { // 关闭 await message.confirm('确认要关闭吗?') tableObject.loading = true - RepleinshRequestMainApi.close(row.id).then(() => { + RepleinshRequestMainApi.close(row.masterId).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -228,7 +228,7 @@ const buttonTableClick = async (val, row) => { } else if (val == 'mainReAdd') { // 重新添加 await message.confirm('确认要重新添加吗?') tableObject.loading = true - RepleinshRequestMainApi.reAdd(row.id).then(() => { + RepleinshRequestMainApi.reAdd(row.masterId).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -239,7 +239,7 @@ const buttonTableClick = async (val, row) => { } else if (val == 'mainSubmit') { // 提交审批 await message.confirm('确认要提交审批吗?') tableObject.loading = true - RepleinshRequestMainApi.submit(row.id).then(() => { + RepleinshRequestMainApi.submit(row.masterId).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -250,7 +250,7 @@ const buttonTableClick = async (val, row) => { } else if (val == 'mainTurnDown') { // 驳回 await message.confirm('确认要驳回吗?') tableObject.loading = true - RepleinshRequestMainApi.refused(row.id).then(() => { + RepleinshRequestMainApi.refused(row.masterId).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -261,7 +261,7 @@ const buttonTableClick = async (val, row) => { } else if (val == 'mainApprove') { // 审批通过 await message.confirm('确认要审批通过吗?') tableObject.loading = true - RepleinshRequestMainApi.agree(row.id).then(() => { + RepleinshRequestMainApi.agree(row.masterId).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -272,7 +272,7 @@ const buttonTableClick = async (val, row) => { } else if (val == 'mainHandle') { // 处理 await message.confirm('确认要处理吗?') tableObject.loading = true - RepleinshRequestMainApi.handle(row.id).then(() => { + RepleinshRequestMainApi.handle(row.masterId).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -283,7 +283,7 @@ const buttonTableClick = async (val, row) => { } else if (val == 'edit') { // 编辑 openForm('update', row) } else if (val == 'delete') { // 删除 - handleDelete(row.id) + handleDelete(row.masterId) } } diff --git a/src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue b/src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue index 80d2457a9..f08755651 100644 --- a/src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue @@ -222,7 +222,7 @@ const buttonTableClick = async (val, row) => { } else if (val == 'mainJobAba') { // 放弃 console.log('列表-操作按钮事件-放弃') } else if (val == 'mainJobClo') { // 关闭 - handleClose(row.id) + handleClose(row.masterId) } else if (val == 'mainJobAcc') { // 承接 console.log('列表-操作按钮事件-承接') } diff --git a/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue b/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue index 8d997878c..eba5b1239 100644 --- a/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue @@ -233,17 +233,17 @@ const butttondata = (row,$index) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { if (val == 'mainClose') { // 关闭 - handleClose(row.id) + handleClose(row.masterId) } else if (val == 'mainReAdd') { // 重新添加 - handleReAdd(row.id) + handleReAdd(row.masterId) } else if (val == 'mainSubmit') { // 提交审批 - handleSubmit(row.id) + handleSubmit(row.masterId) } else if (val == 'mainTurnDown') { // 驳回 - handleRefused(row.id) + handleRefused(row.masterId) } else if (val == 'mainApprove') { // 审批通过 - handleAgree(row.id) + handleAgree(row.masterId) } else if (val == 'mainHandle') { // 处理 - handleHandle(row.id) + handleHandle(row.masterId) } else if (val == 'edit') { // 编辑 openForm('update', row) }