|
|
@ -154,15 +154,79 @@ |
|
|
|
return [] |
|
|
|
} |
|
|
|
return [ |
|
|
|
|
|
|
|
{ |
|
|
|
label: t('ts.发布'), |
|
|
|
name: 'publish', |
|
|
|
hide: row.status!=0, |
|
|
|
type: 'primary', |
|
|
|
icon: '', |
|
|
|
color: '', |
|
|
|
hasPermi: '', |
|
|
|
link: true // 文本展现按钮 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: t('ts.作废'), |
|
|
|
name: 'abrogate', |
|
|
|
hide: row.isAbrogate!=1, |
|
|
|
type: 'danger', |
|
|
|
icon: '', |
|
|
|
color: '', |
|
|
|
hasPermi: '', |
|
|
|
link: true // 文本展现按钮 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: t('ts.退回'), |
|
|
|
name: 'back', |
|
|
|
hide: row.isBack!=1, |
|
|
|
type: 'warning', |
|
|
|
icon: '', |
|
|
|
color: '', |
|
|
|
hasPermi: '', |
|
|
|
link: true // 文本展现按钮 |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if(val=='publish'){ |
|
|
|
//发布 |
|
|
|
try { |
|
|
|
// 删除的二次确认 |
|
|
|
await message.confirm('确认发布吗?') |
|
|
|
// 发起删除 |
|
|
|
await SuppliperMoldCostMainApi.publish(row.id) |
|
|
|
message.success('发布成功') |
|
|
|
// 刷新列表 |
|
|
|
buttonBaseClick('refresh') |
|
|
|
} catch {} |
|
|
|
}else if(val=='abrogate'){ |
|
|
|
//作废 |
|
|
|
try { |
|
|
|
// 删除的二次确认 |
|
|
|
await message.confirm('确认作废吗?') |
|
|
|
// 发起删除 |
|
|
|
await SuppliperMoldCostMainApi.nodeAbrogate(row.id) |
|
|
|
message.success('作废成功') |
|
|
|
// 刷新列表 |
|
|
|
buttonBaseClick('refresh') |
|
|
|
} catch {} |
|
|
|
}else if(val=='back'){ |
|
|
|
//作废 |
|
|
|
try { |
|
|
|
// 删除的二次确认 |
|
|
|
await message.confirm('确认退回吗?') |
|
|
|
// 发起删除 |
|
|
|
await SuppliperMoldCostMainApi.sendBack(row.id) |
|
|
|
message.success('退回成功') |
|
|
|
// 刷新列表 |
|
|
|
buttonBaseClick('refresh') |
|
|
|
} catch {} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
|
const detailRef = ref() |
|
|
|
const tableObjectExtend = ref([]) |
|
|
|