Browse Source

备料计划 数据不可用状态不能提交审批

master
陈薪名 10 months ago
parent
commit
1867df764c
  1. 2
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

2
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -262,6 +262,7 @@ const buttonTableClick = async (val, row) => {
console.log(err)
})
} else if (val == 'mainPlanSub') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要提交审批吗?')
PreparetoissueMainApi.submit(row.id).then(() => {
message.success(t('common.updateSuccess'))
@ -278,6 +279,7 @@ const buttonTableClick = async (val, row) => {
console.log(err)
})
} else if (val == 'mainPlanApp') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要审批通过吗?')
PreparetoissueMainApi.agree(row.id).then(() => {
message.success(t('common.updateSuccess'))

Loading…
Cancel
Save