|
|
@ -887,12 +887,15 @@ const handlePublish = async (id: number) => { |
|
|
|
const res = await PurchasePlanMainApi.validation(id) |
|
|
|
if (res) { |
|
|
|
await message.confirm(t('要货数量超过打切数量,是否确认发布?')) |
|
|
|
// 发起发布 |
|
|
|
const isPublish=`1`; |
|
|
|
await PurchasePlanMainApi.publishPurchasePlanMain(id,isPublish) |
|
|
|
} else { |
|
|
|
// 发布的二次确认 |
|
|
|
await message.confirm(t('ts.是否发布所选中数据?')) |
|
|
|
} |
|
|
|
// 发起发布 |
|
|
|
// 发起发布 |
|
|
|
await PurchasePlanMainApi.publishPurchasePlanMain(id) |
|
|
|
} |
|
|
|
message.success(t('ts.发布成功!')) |
|
|
|
tableObject.loading = false |
|
|
|
// 刷新列表 |
|
|
|