|
@ -58,6 +58,7 @@ |
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@submitForm="submitForm" |
|
|
@submitForm="submitForm" |
|
|
|
|
|
@formFormDateChange="formFormDateChange" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
@ -73,7 +74,6 @@ |
|
|
:apiDelete="SupplierdeliverRequestDetailApi.deleteSupplierdeliverRequestDetail" |
|
|
:apiDelete="SupplierdeliverRequestDetailApi.deleteSupplierdeliverRequestDetail" |
|
|
:Echo="Echo" |
|
|
:Echo="Echo" |
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
@formFormDateChange="formFormDateChange" |
|
|
|
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
@ -599,7 +599,12 @@ const handleDeleteTable = (item, index) => { |
|
|
// 主子数据 提交 |
|
|
// 主子数据 提交 |
|
|
const submitForm = async (formType, data) => { |
|
|
const submitForm = async (formType, data) => { |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
let isHave = data.subList.some((item) => item.produceDate > item.expireDate) |
|
|
let isHave = data.subList.some((item) => { |
|
|
|
|
|
console.log("CCCCC",item.expireDate) |
|
|
|
|
|
if(item.expireDate != null){ |
|
|
|
|
|
item.produceDate > item.expireDate |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
if (isHave) { |
|
|
if (isHave) { |
|
|
message.error('生产日期不可以大于过期日期') |
|
|
message.error('生产日期不可以大于过期日期') |
|
|
formRef.value.formLoading = false |
|
|
formRef.value.formLoading = false |
|
@ -670,10 +675,10 @@ const searchFormClick = (searchData) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const formFormDateChange = (field, val,row, index) => { |
|
|
const formFormDateChange = (field, val,row, index) => { |
|
|
console.log("AAAAA",field) |
|
|
if(field == 'produceDate'){ |
|
|
console.log("BBBBB",row) |
|
|
let produceDateStr = formatDate(val,'YYYYMMDD'); |
|
|
console.log("CCCCC",val) |
|
|
row.batch = produceDateStr |
|
|
console.log("DDDDD",index) |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|