Browse Source

修改提交按钮

intex_online20250224
叶佳兴 2 months ago
parent
commit
6f366cc221
  1. 4
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  2. 4
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

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

@ -338,7 +338,7 @@ const buttonTableClick = async (val, row) => {
}) })
} else if (val == 'mainPlanSub') { // } else if (val == 'mainPlanSub') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要提交审批吗?') // await message.confirm('')
tableObject.loading = true tableObject.loading = true
await ProductionMainApi.submit(row.masterId).then((res) => { await ProductionMainApi.submit(row.masterId).then((res) => {
if (res.status == '6') { if (res.status == '6') {
@ -499,7 +499,7 @@ const autoCreatePlanRequest = async (row)=>{
await ProductionMainApi.generateProductreceiptRequest(row.number) await ProductionMainApi.generateProductreceiptRequest(row.number)
} }
} finally { } finally {
message.success(t('common.updateSuccess')) message.success(t('common.submitSuccess'))
tableObject.loading = false tableObject.loading = false
buttonBaseClick('refresh',null) buttonBaseClick('refresh',null)
} }

4
src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

@ -338,7 +338,7 @@ const buttonTableClick = async (val, row) => {
// //
await getSwitch() await getSwitch()
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要提交审批吗?') // await message.confirm('')
tableObject.loading = true tableObject.loading = true
await ProductionMainApi.submit(row.masterId).then((res) => { await ProductionMainApi.submit(row.masterId).then((res) => {
if (res.status == '6') { if (res.status == '6') {
@ -630,7 +630,7 @@ const autoCreatePlanRequest = async (row)=>{
await ProductionMainApi.generateProductreceiptRequest(row.number) await ProductionMainApi.generateProductreceiptRequest(row.number)
} }
} finally { } finally {
message.success(t('common.updateSuccess')) message.success(t('common.submitSuccess'))
tableObject.loading = false tableObject.loading = false
buttonBaseClick('refresh',null) buttonBaseClick('refresh',null)
} }

Loading…
Cancel
Save