|
@ -128,7 +128,7 @@ |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
// 头部按钮事件 |
|
|
// 头部按钮事件 |
|
|
const buttonBaseClick = (val, item) => { |
|
|
const buttonBaseClick = (val, item) => { |
|
|
if (val == 'import') { |
|
|
if (val == 'import') { |
|
|
// 导入 |
|
|
// 导入 |
|
|
handleImport() |
|
|
handleImport() |
|
@ -143,7 +143,7 @@ |
|
|
// 其他按钮 |
|
|
// 其他按钮 |
|
|
console.log('其他按钮', item) |
|
|
console.log('其他按钮', item) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row, $index) => { |
|
|
const butttondata = (row, $index) => { |
|
@ -154,15 +154,79 @@ |
|
|
return [] |
|
|
return [] |
|
|
} |
|
|
} |
|
|
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) => { |
|
|
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 detailRef = ref() |
|
|
const tableObjectExtend = ref([]) |
|
|
const tableObjectExtend = ref([]) |
|
|