Browse Source

更换主子表id为masterId(叶)

master_hella_20240701
yufei0306 7 months ago
parent
commit
63d780aaf9
  1. 16
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  2. 6
      src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue
  3. 14
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue
  4. 2
      src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue
  5. 12
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

16
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)
}
}

6
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)
}
}

14
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)
}
}

2
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('列表-操作按钮事件-承接')
}

12
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)
}

Loading…
Cancel
Save