|
|
@ -271,6 +271,15 @@ |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
hasPermi: '' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '发票寄出确认', |
|
|
|
name: 'invoice_sent_out', |
|
|
|
hide: isShowMainButton(row, ['8']), |
|
|
|
type: 'danger', |
|
|
|
color: '', |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
hasPermi: '' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '财务审批通过', |
|
|
|
name: 'finance_mainPlanSub', |
|
|
@ -291,7 +300,7 @@ |
|
|
|
}, |
|
|
|
// defaultButtons.mainListPlanAppBtn({ hide: isShowMainButton(row, ['2']) }), // 审批通过 |
|
|
|
//defaultButtons.mainListPlanTurBtn({ hide: isShowMainButton(row, ['2']) }), // 驳回按钮 |
|
|
|
defaultButtons.mainListEditBtn({ hasPermi: 'wms:supplierinvoice-request-main:update' , hide: isShowMainButton(row, ['1','6'])}), // 编辑 |
|
|
|
defaultButtons.mainListEditBtn({ hasPermi: 'wms:supplierinvoice-request-main:update' , hide: isShowMainButton(row, ['1','8'])}), // 编辑 |
|
|
|
defaultButtons.mainListPurchasePlanCloBtn({ hide: isShowMainButton(row, ['1', '2','4']) }), // 关闭 |
|
|
|
// 生成记录 |
|
|
|
// { |
|
|
@ -326,6 +335,8 @@ const handleImport = () => { |
|
|
|
handleApp(row.id) |
|
|
|
} else if (val == 'purchase_mainPlanTur') { // 采购驳回按钮 |
|
|
|
handleTur(row.id) |
|
|
|
} else if (val == 'invoice_sent_out') { // 发票寄出确认 |
|
|
|
handleInvoiceSentOut(row.id) |
|
|
|
} else if(val == 'finance_mainPlanSub'){ // 财务审批通过 |
|
|
|
handleFinanceApp(row.id) |
|
|
|
} else if(val == 'finance_mainPlanTur'){ //财务审批拒绝 |
|
|
@ -478,6 +489,23 @@ const handleImport = () => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 发票寄出确认按钮操作 */ |
|
|
|
const handleInvoiceSentOut = async (id : number) => { |
|
|
|
try { |
|
|
|
// 驳回的二次确认 |
|
|
|
await message.confirm('是否确认发票寄出选中数据?') |
|
|
|
tableObject.loading = true |
|
|
|
// 发起驳回 |
|
|
|
await SupplierinvoiceRequestMainApi.invoiceSentOutSupplierinvoiceRequestMain(id) |
|
|
|
message.success(t('发票寄出成功!')) |
|
|
|
tableObject.loading = false |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
} catch { }finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 驳回按钮操作 */ |
|
|
|
const handleFinaceTur = async (id : number) => { |
|
|
|
try { |
|
|
|