|
@ -238,7 +238,7 @@ const butttondata = (row,$index) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
if (val == 'mainPlanOpe') { // 打开 |
|
|
if (val == 'mainPlanOpe') { // 打开 |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
await ProductionMainApi.open(row.id).then(() => { |
|
|
await ProductionMainApi.open(row.masterId).then(() => { |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
getList() |
|
|
getList() |
|
@ -249,7 +249,7 @@ const buttonTableClick = async (val, row) => { |
|
|
} else if (val == 'mainPlanClo') { // 关闭 |
|
|
} else if (val == 'mainPlanClo') { // 关闭 |
|
|
await message.confirm('确认要关闭吗?') |
|
|
await message.confirm('确认要关闭吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
await ProductionMainApi.close(row.id).then(() => { |
|
|
await ProductionMainApi.close(row.masterId).then(() => { |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
getList() |
|
|
getList() |
|
@ -261,7 +261,7 @@ const buttonTableClick = async (val, row) => { |
|
|
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.id).then(() => { |
|
|
await ProductionMainApi.submit(row.masterId).then(() => { |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
getList() |
|
|
getList() |
|
@ -272,7 +272,7 @@ const buttonTableClick = async (val, row) => { |
|
|
} else if (val == 'mainPlanTur') { // 驳回 |
|
|
} else if (val == 'mainPlanTur') { // 驳回 |
|
|
await message.confirm('确认要驳回吗?') |
|
|
await message.confirm('确认要驳回吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
await ProductionMainApi.reject(row.id).then(() => { |
|
|
await ProductionMainApi.reject(row.masterId).then(() => { |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
getList() |
|
|
getList() |
|
@ -284,7 +284,7 @@ const buttonTableClick = async (val, row) => { |
|
|
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.agree(row.id).then(() => { |
|
|
await ProductionMainApi.agree(row.masterId).then(() => { |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
getList() |
|
|
getList() |
|
@ -297,7 +297,7 @@ const buttonTableClick = async (val, row) => { |
|
|
await message.confirm('确认要发布吗?') |
|
|
await message.confirm('确认要发布吗?') |
|
|
// 物料含有不可用时 是否继续执行 |
|
|
// 物料含有不可用时 是否继续执行 |
|
|
let isAvailable = true |
|
|
let isAvailable = true |
|
|
await ProductionMainApi.getProductionDetail(row.id).then(async res =>{ |
|
|
await ProductionMainApi.getProductionDetail(row.masterId).then(async res =>{ |
|
|
if (res.length > 0) { |
|
|
if (res.length > 0) { |
|
|
let rs = '' |
|
|
let rs = '' |
|
|
res.forEach(item => { |
|
|
res.forEach(item => { |
|
@ -312,7 +312,7 @@ const buttonTableClick = async (val, row) => { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
await ProductionMainApi.publish(row.id).then(() => { |
|
|
await ProductionMainApi.publish(row.masterId).then(() => { |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
getList() |
|
|
getList() |
|
@ -323,7 +323,7 @@ const buttonTableClick = async (val, row) => { |
|
|
} else if (val == 'mainPlanRes') { // 重置 |
|
|
} else if (val == 'mainPlanRes') { // 重置 |
|
|
await message.confirm('确认要重置吗?') |
|
|
await message.confirm('确认要重置吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
await ProductionMainApi.resetting(row.id).then(() => { |
|
|
await ProductionMainApi.resetting(row.masterId).then(() => { |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
getList() |
|
|
getList() |
|
@ -346,7 +346,7 @@ const buttonTableClick = async (val, row) => { |
|
|
} else if (val == 'edit') { // 编辑 |
|
|
} else if (val == 'edit') { // 编辑 |
|
|
openForm('update', row) |
|
|
openForm('update', row) |
|
|
} else if (val == 'delete') { // 删除 |
|
|
} else if (val == 'delete') { // 删除 |
|
|
handleDelete(row.id) |
|
|
handleDelete(row.masterId) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|