|
@ -98,7 +98,7 @@ |
|
|
:mainSubmitCreateApi="true" |
|
|
:mainSubmitCreateApi="true" |
|
|
fieldTableColumn="poLine" |
|
|
fieldTableColumn="poLine" |
|
|
@detailOpenForm="detailOpenForm" |
|
|
@detailOpenForm="detailOpenForm" |
|
|
@handleSubmitForm="handleSubmitForm" |
|
|
@handleSubmitForm="handleDetailSubmitForm" |
|
|
|
|
|
|
|
|
/> |
|
|
/> |
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
@ -527,7 +527,7 @@ const getSearchTableData = async (number,formField,searchField)=>{ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
const handleSubmitForm = async (formType, data)=>{ |
|
|
const handleDetailSubmitForm = async (formType, data)=>{ |
|
|
if(formType == 'update'){ |
|
|
if(formType == 'update'){ |
|
|
if(Number(data.planQty)<=0){ |
|
|
if(Number(data.planQty)<=0){ |
|
|
message.error(t('ts.计划数量必须大于0')) |
|
|
message.error(t('ts.计划数量必须大于0')) |
|
@ -536,7 +536,7 @@ const getSearchTableData = async (number,formField,searchField)=>{ |
|
|
await PurchasePlanDetailApi.updatePurchasePlanDetail(data) |
|
|
await PurchasePlanDetailApi.updatePurchasePlanDetail(data) |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
} |
|
|
} |
|
|
|
|
|
detailRef.value.submitUpdateList() |
|
|
} |
|
|
} |
|
|
/** 删除按钮操作 */ |
|
|
/** 删除按钮操作 */ |
|
|
const handleDelete = async (id : number) => { |
|
|
const handleDelete = async (id : number) => { |
|
|