Browse Source

生产计划 是否使用校验

master
陈薪名 10 months ago
parent
commit
0530b41fcc
  1. 3
      src/views/wms/productionManage/productionplan/productionMain/index.vue

3
src/views/wms/productionManage/productionplan/productionMain/index.vue

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

Loading…
Cancel
Save