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