|
|
@ -420,7 +420,11 @@ const { tableObject: detatableData, tableMethods: detatableMethods } =useTable({ |
|
|
|
const { getList:getDetailList } = detatableMethods |
|
|
|
|
|
|
|
// 生成标签按钮操作 |
|
|
|
const submitFormLabel = async (formType, data) => { |
|
|
|
const submitFormLabel = async (formType, submitData) => { |
|
|
|
let data = {...submitData} |
|
|
|
if(data.masterId){ |
|
|
|
data.id = data.masterId |
|
|
|
} |
|
|
|
try { |
|
|
|
console.log("formType==",formType) |
|
|
|
console.log("data==",data) |
|
|
@ -714,7 +718,11 @@ const onEnter = async (field,value)=>{ |
|
|
|
getSearchTableData(value,true) |
|
|
|
} |
|
|
|
// 主子数据 提交 |
|
|
|
const submitForm = async (formType, data) => { |
|
|
|
const submitForm = async (formType, submitData) => { |
|
|
|
let data = {...submitData} |
|
|
|
if(data.masterId){ |
|
|
|
data.id = data.masterId |
|
|
|
} |
|
|
|
tableData.value.forEach((row, index) => { |
|
|
|
row['expireDate'] = row['expireTime']?addDay(row['produceDate'],row['expireTime']).valueOf():dayjs('2099-12-31').valueOf() |
|
|
|
}) |
|
|
|