Browse Source

匹配收货单的时候,最多限制999行,如果选择超过999行,立刻给我提示,不允许操作

master_hella_20240701
zhaoxuebing 7 months ago
parent
commit
5e34c5d3ec
  1. 8
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

8
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

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

Loading…
Cancel
Save