|
|
@ -298,7 +298,7 @@ |
|
|
|
defaultButtons.mainListPurchasePlanOpeBtn({ hide: isShowMainButton(row, ['1','6']) ,hasPermi: 'wms:supplierinvoice-request-main:open'}), // 打开 |
|
|
|
defaultButtons.mainListPlanSubBtn({ hide: isShowMainButton(row, ['1','6']),hasPermi: 'wms:supplierinvoice-request-main:sub' }), // 提交审批 |
|
|
|
{ |
|
|
|
label: '采购通过', |
|
|
|
label: t('ts.采购通过'), |
|
|
|
name: 'purchase_mainPlanSub', |
|
|
|
hide: isShowMainButton(row, ['2','7']), |
|
|
|
type: 'primary', |
|
|
@ -307,7 +307,7 @@ |
|
|
|
hasPermi: 'wms:supplierinvoice-request-main:app', |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
},{ |
|
|
|
label: '采购驳回', |
|
|
|
label: t('ts.采购驳回'), |
|
|
|
name: 'purchase_mainPlanTur', |
|
|
|
hide: isShowMainButton(row, ['2','7']), |
|
|
|
type: 'danger', |
|
|
@ -316,7 +316,7 @@ |
|
|
|
hasPermi: 'wms:supplierinvoice-request-main:rej' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商确认', |
|
|
|
label: t('ts.供应商确认'), |
|
|
|
name: 'invoice_sent_out', |
|
|
|
hide: isShowMainButton(row, ['8']), |
|
|
|
type: 'danger', |
|
|
@ -325,7 +325,7 @@ |
|
|
|
hasPermi: 'wms:supplierinvoice-request-main:invoiceSentOut' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '财务通过', |
|
|
|
label: t('ts.财务通过'), |
|
|
|
name: 'finance_mainPlanSub', |
|
|
|
hide: isShowMainButton(row, ['4']), |
|
|
|
type: 'primary', |
|
|
@ -334,7 +334,7 @@ |
|
|
|
hasPermi: 'wms:supplierinvoice-request-main:financeApp', |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
},{ |
|
|
|
label: '财务驳回', |
|
|
|
label: t('ts.财务驳回'), |
|
|
|
name: 'finance_mainPlanTur', |
|
|
|
hide: isShowMainButton(row, ['4']), |
|
|
|
type: 'danger', |
|
|
@ -346,7 +346,7 @@ |
|
|
|
defaultButtons.mainListPurchasePlanCloBtn({ hasPermi: 'wms:supplierinvoice-request-main:close' ,hide: isShowMainButton(row, ['1','8','6']) }), // 关闭 |
|
|
|
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierinvoice-request-main:delete'}), // 删除 |
|
|
|
{ |
|
|
|
label: '打印', |
|
|
|
label: t('ts.打印'), |
|
|
|
name: 'mian_print', |
|
|
|
hide: null, |
|
|
|
type: 'primary', |
|
|
@ -634,11 +634,11 @@ const handleImport = () => { |
|
|
|
try { |
|
|
|
if (formType === 'create') { |
|
|
|
if(data.subList.length == 0){ |
|
|
|
message.warning("请添明细数据") |
|
|
|
message.warning(t('ts.请添明细数据')) |
|
|
|
return; |
|
|
|
} |
|
|
|
if(data.subList.length > 999){ |
|
|
|
message.warning("明细数据条数已超过最大数量限制【999条】") |
|
|
|
message.warning(t('ts.明细数据条数已超过最大数量限制【999条】')) |
|
|
|
return; |
|
|
|
} |
|
|
|
await SupplierinvoiceRequestMainApi.createSupplierinvoiceRequestMain(data) |
|
|
|