|
|
@ -767,91 +767,91 @@ const isShowMainButton = (row, val) => { |
|
|
|
const butttondata = (row, $index) => { |
|
|
|
return [ |
|
|
|
// defaultButtons.mainListPurchasePlanOpeBtn({ hide: isShowMainButton(row, ['9']) ,hasPermi: 'wms:supplierinvoice-request-main:open'}), // 打开 |
|
|
|
defaultButtons.mainListPlanSubBtn({ |
|
|
|
hide: isShowMainButton(row, ['1', '6']), |
|
|
|
hasPermi: 'wms:supplierinvoice-request-main:sub' |
|
|
|
}), // 提交审批 |
|
|
|
{ |
|
|
|
label: t('ts.查看明细'), |
|
|
|
name: 'open_detail', |
|
|
|
type: 'primary', |
|
|
|
icon: '', |
|
|
|
color: '', |
|
|
|
hasPermi: '', |
|
|
|
link: true // 文本展现按钮 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: t('ts.采购通过'), |
|
|
|
name: 'purchase_mainPlanSub', |
|
|
|
hide: !(!isShowMainButton(row, ['2']) && row.currentIsProcurementCreator == true), |
|
|
|
type: 'primary', |
|
|
|
icon: '', |
|
|
|
color: '', |
|
|
|
hasPermi: 'wms:supplierinvoice-request-main:app', |
|
|
|
link: true // 文本展现按钮 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: t('ts.采购驳回'), |
|
|
|
name: 'purchase_mainPlanTur', |
|
|
|
hide: !(!isShowMainButton(row, ['2']) && row.currentIsProcurementCreator == true), |
|
|
|
type: 'danger', |
|
|
|
color: '', |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
hasPermi: 'wms:supplierinvoice-request-main:rej' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: t('ts.供应商确认'), |
|
|
|
name: 'invoice_sent_out', |
|
|
|
hide: isShowMainButton(row, ['3', '7']), |
|
|
|
type: 'danger', |
|
|
|
color: '', |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
hasPermi: 'wms:supplierinvoice-request-main:invoiceSentOut' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: t('ts.财务通过'), |
|
|
|
name: 'finance_mainPlanSub', |
|
|
|
hide: isShowMainButton(row, ['4']), |
|
|
|
type: 'primary', |
|
|
|
icon: '', |
|
|
|
color: '', |
|
|
|
hasPermi: 'wms:supplierinvoice-request-main:financeApp', |
|
|
|
link: true // 文本展现按钮 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: t('ts.财务驳回'), |
|
|
|
name: 'finance_mainPlanTur', |
|
|
|
hide: isShowMainButton(row, ['4']), |
|
|
|
type: 'danger', |
|
|
|
color: '', |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
hasPermi: 'wms:supplierinvoice-request-main:financeRej' |
|
|
|
}, |
|
|
|
defaultButtons.mainListEditBtn({ |
|
|
|
hasPermi: 'wms:supplierinvoice-request-main:update', |
|
|
|
hide: isShowMainButton(row, ['1', '3', '6', '7']) |
|
|
|
}), // 编辑 |
|
|
|
// defaultButtons.mainListPurchasePlanCloBtn({ hasPermi: 'wms:supplierinvoice-request-main:close' ,hide: isShowMainButton(row, ['1','3','6','7']) }), // 关闭 |
|
|
|
{ |
|
|
|
label: t('ts.作废'), |
|
|
|
name: 'repeal', |
|
|
|
hide: isShowMainButton(row, ['1', '3', '6', '7']), |
|
|
|
type: 'danger', |
|
|
|
color: '', |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
hasPermi: 'wms:supplierinvoice-request-main:repeal' |
|
|
|
}, |
|
|
|
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierinvoice-request-main:delete'}), // 删除 |
|
|
|
// defaultButtons.mainListPlanSubBtn({ |
|
|
|
// hide: isShowMainButton(row, ['1', '6']), |
|
|
|
// hasPermi: 'wms:supplierinvoice-request-main:sub' |
|
|
|
// }), // 提交审批 |
|
|
|
// { |
|
|
|
// label: t('ts.查看明细'), |
|
|
|
// name: 'open_detail', |
|
|
|
// type: 'primary', |
|
|
|
// icon: '', |
|
|
|
// color: '', |
|
|
|
// hasPermi: '', |
|
|
|
// link: true // 文本展现按钮 |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// label: t('ts.采购通过'), |
|
|
|
// name: 'purchase_mainPlanSub', |
|
|
|
// hide: !(!isShowMainButton(row, ['2']) && row.currentIsProcurementCreator == true), |
|
|
|
// type: 'primary', |
|
|
|
// icon: '', |
|
|
|
// color: '', |
|
|
|
// hasPermi: 'wms:supplierinvoice-request-main:app', |
|
|
|
// link: true // 文本展现按钮 |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// label: t('ts.采购驳回'), |
|
|
|
// name: 'purchase_mainPlanTur', |
|
|
|
// hide: !(!isShowMainButton(row, ['2']) && row.currentIsProcurementCreator == true), |
|
|
|
// type: 'danger', |
|
|
|
// color: '', |
|
|
|
// link: true, // 文本展现按钮 |
|
|
|
// hasPermi: 'wms:supplierinvoice-request-main:rej' |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// label: t('ts.供应商确认'), |
|
|
|
// name: 'invoice_sent_out', |
|
|
|
// hide: isShowMainButton(row, ['3', '7']), |
|
|
|
// type: 'danger', |
|
|
|
// color: '', |
|
|
|
// link: true, // 文本展现按钮 |
|
|
|
// hasPermi: 'wms:supplierinvoice-request-main:invoiceSentOut' |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// label: t('ts.财务通过'), |
|
|
|
// name: 'finance_mainPlanSub', |
|
|
|
// hide: isShowMainButton(row, ['4']), |
|
|
|
// type: 'primary', |
|
|
|
// icon: '', |
|
|
|
// color: '', |
|
|
|
// hasPermi: 'wms:supplierinvoice-request-main:financeApp', |
|
|
|
// link: true // 文本展现按钮 |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// label: t('ts.财务驳回'), |
|
|
|
// name: 'finance_mainPlanTur', |
|
|
|
// hide: isShowMainButton(row, ['4']), |
|
|
|
// type: 'danger', |
|
|
|
// color: '', |
|
|
|
// link: true, // 文本展现按钮 |
|
|
|
// hasPermi: 'wms:supplierinvoice-request-main:financeRej' |
|
|
|
// }, |
|
|
|
// defaultButtons.mainListEditBtn({ |
|
|
|
// hasPermi: 'wms:supplierinvoice-request-main:update', |
|
|
|
// hide: isShowMainButton(row, ['1', '3', '6', '7']) |
|
|
|
// }), // 编辑 |
|
|
|
// // defaultButtons.mainListPurchasePlanCloBtn({ hasPermi: 'wms:supplierinvoice-request-main:close' ,hide: isShowMainButton(row, ['1','3','6','7']) }), // 关闭 |
|
|
|
// { |
|
|
|
// label: t('ts.作废'), |
|
|
|
// name: 'repeal', |
|
|
|
// hide: isShowMainButton(row, ['1', '3', '6', '7']), |
|
|
|
// type: 'danger', |
|
|
|
// color: '', |
|
|
|
// link: true, // 文本展现按钮 |
|
|
|
// hasPermi: 'wms:supplierinvoice-request-main:repeal' |
|
|
|
// }, |
|
|
|
// // defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierinvoice-request-main:delete'}), // 删除 |
|
|
|
// { |
|
|
|
// label: t('打印对账单'), |
|
|
|
// name: 'mian_print', |
|
|
|
// hide: !(row.goldenTaxInvoiceNumber != null && row.goldenTaxInvoiceNumber != ''), |
|
|
|
// type: 'primary', |
|
|
|
// color: '', |
|
|
|
// link: true, // 文本展现按钮 |
|
|
|
// hasPermi: '' |
|
|
|
// }, |
|
|
|
{ |
|
|
|
label: t('打印对账单'), |
|
|
|
name: 'mian_print', |
|
|
|
hide: !(row.goldenTaxInvoiceNumber != null && row.goldenTaxInvoiceNumber != ''), |
|
|
|
type: 'primary', |
|
|
|
color: '', |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
hasPermi: '' |
|
|
|
} |
|
|
|
,{ |
|
|
|
label: t('导出对账单明细'), |
|
|
|
name: 'export_statement_detail', |
|
|
|
hide: false, |
|
|
|