|
|
@ -60,7 +60,7 @@ |
|
|
|
<!-- 导入 --> |
|
|
|
<ImportForm |
|
|
|
ref="importFormRef" |
|
|
|
url="/basic/cut-item/import" |
|
|
|
url="/wms/cut-item/import" |
|
|
|
:importTemplateData="importTemplateData" |
|
|
|
@success="importSuccess" |
|
|
|
/> |
|
|
@ -202,6 +202,10 @@ const formsSuccess = async (formType, data) => { |
|
|
|
if (data.activeTime == 0) data.activeTime = null |
|
|
|
if (data.expireTime == 0) data.expireTime = null |
|
|
|
if (formType === 'create') { |
|
|
|
if(data.cutoverQty==0){ |
|
|
|
message.error('打切数量不能是0!') |
|
|
|
return |
|
|
|
} |
|
|
|
await CutItemApi.createCutItem(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
@ -209,7 +213,6 @@ const formsSuccess = async (formType, data) => { |
|
|
|
message.error('打切数量不可小于已要货数量!') |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
await CutItemApi.updateCutItem(data) |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
} |
|
|
|