|
|
@ -639,7 +639,10 @@ const tableSelectionDelete = (selection) => { |
|
|
|
tableData.value = tableData.value.filter(item => !selection.includes(item)) |
|
|
|
} |
|
|
|
// 主子数据 提交 |
|
|
|
const submitForm = async (formType, data) => { |
|
|
|
const submitForm = async (formType, submitData) => { |
|
|
|
|
|
|
|
let data = {...submitData} |
|
|
|
data.id = data.masterId |
|
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
|
data.subList.forEach(row=>{ |
|
|
|
row['expireDate'] = row['validityDays']?addDay(row['produceDate'],row['validityDays']).valueOf():'' |
|
|
|