|
|
@ -615,6 +615,14 @@ const handleImport = () => { |
|
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
|
try { |
|
|
|
if (formType === 'create') { |
|
|
|
if(data.subList.length == 0){ |
|
|
|
message.warning("请添明细数据") |
|
|
|
return; |
|
|
|
} |
|
|
|
if(data.subList.length > 999){ |
|
|
|
message.warning("明细数据条数已超过最大数量限制【999条】") |
|
|
|
return; |
|
|
|
} |
|
|
|
await SupplierinvoiceRequestMainApi.createSupplierinvoiceRequestMain(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
|