|
|
|
@ -7,10 +7,10 @@ |
|
|
|
<div class="detail-content"> |
|
|
|
<div class="content"> |
|
|
|
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo" |
|
|
|
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" /> |
|
|
|
:ref="refConfig.baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" /> |
|
|
|
<LineLabel label="试验内容" /> |
|
|
|
<BaseInfoFormPackage fieldItemLabel="template.common.remark" label="template.common.remark" |
|
|
|
ref="remarkRef" :formConfig="remarkConig" :formData="formData" /> |
|
|
|
:ref="refConfig.remarkRef" :formConfig="remarkConig" :formData="formData" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -30,6 +30,12 @@ import TableOpertaionDelete from "@/components/Template/operation/TableOpertaion |
|
|
|
import { getBaseInfoFormConfig} from "../../formConfig/sp/SP0019"; |
|
|
|
import { getSynrFormConfig} from "../../formConfig/sp/SP0020"; |
|
|
|
|
|
|
|
const refConfig = { |
|
|
|
baseInfoRef: "baseInfoRef", |
|
|
|
remarkRef: "remarkRef", |
|
|
|
} |
|
|
|
|
|
|
|
const compRefs = Object.values(refConfig); |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "SP0020", |
|
|
|
@ -74,7 +80,7 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
formData: {}, |
|
|
|
compRefs:["baseInfoRef", "storageConditionRef", "spzxhRef","yqInfoTableRef","ryTableRef", "remarkRef"] |
|
|
|
refConfig |
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
@ -93,16 +99,13 @@ export default { |
|
|
|
this.$refs.ryTableRef.updateDataSourceByRowIndex(rowIndex, params); |
|
|
|
} |
|
|
|
}, |
|
|
|
onYqSubmit(data, col, rowIndex, colIndex, row){ |
|
|
|
console.log(data, col, rowIndex, colIndex, row,"onRegentSubmit") |
|
|
|
}, |
|
|
|
//获取已填写的表单数据 |
|
|
|
getFilledFormData() { |
|
|
|
return this.getFilledFormDataByRefs(this.compRefs) |
|
|
|
return this.getFilledFormDataByRefs(compRefs) |
|
|
|
}, |
|
|
|
//获取填写完成的表单数据 |
|
|
|
async getFormData() { |
|
|
|
let content = await this.validFormFields(this.compRefs); |
|
|
|
let content = await this.validFormFields(compRefs); |
|
|
|
console.log(content) |
|
|
|
return content; |
|
|
|
}, |
|
|
|
|