Browse Source

fix[模板管理]DL016-19完善表格

ouqian
lslaiwy 1 month ago
parent
commit
da8dac342c
4 changed files with 212 additions and 203 deletions
  1. +30
    -66
      src/views/business/comps/template/comps/dl/DL016.vue
  2. +69
    -54
      src/views/business/comps/template/comps/dl/DL017.vue
  3. +57
    -41
      src/views/business/comps/template/comps/dl/DL018.vue
  4. +56
    -42
      src/views/business/comps/template/comps/dl/DL019.vue

+ 30
- 66
src/views/business/comps/template/comps/dl/DL016.vue View File

@ -21,7 +21,7 @@
fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur"
@beforeSaveRecord = "beforeSaveRecord"
:showAddRow="false" :showOperation="false"
ref="qcxjjyqkTableRef" :columns="stepColumns" :formData="qcxjjyqkFormData">
ref="qcxjjyqkTableRef" :columns="stepColumns" :formData="tableFormData">
</CustomTable>
<LineLabel label="template.dl.dl016.czbz" />
@ -62,10 +62,10 @@ export default {
},
},
computed: {
//
qcxjjyqkFormData() {
//
tableFormData() {
return {
stepTableFormData: this.formData.qcxjjyqkData || [],
stepTableFormData: this.formData.stepTableFormData || [],
headerSelectFields: {}
}
},
@ -196,42 +196,34 @@ export default {
};
},
mounted() {
console.log('mounted=============',this.formData);
},
methods: {
onRegentSubmit(e) {
debugger
const { selectInfo, key, rowIndex } = e
const { row } = selectInfo
console.log('selectInfo==============',selectInfo,key,rowIndex)
if (key === 'qxbd') {
try {
//
const bdnr = JSON.parse(row.bdnr)
console.log('前序表单数据:', bdnr)
//
const qcxjjyqkData = bdnr.jlzTableData || []
const stepTableFormData = bdnr.jlzTableData || []
// if (qcxjjyqkData.length === 0) {
// this.$message.warning('')
// return
// }
if (stepTableFormData.length === 0) {
//
this.$set(this.formData, 'stepTableFormData', [])
this.$message.warning('前序表单中没有剂量组数据')
return
}
//
const itemData = qcxjjyqkData.map(item => ({
const itemData = stepTableFormData.map(item => ({
jlzb: item.jlzb || '', //
xybh: item.xybh || '', //
hyqszqk: '', //
hyqcdjqk: '', //
hyqqtqk: '', //
qqpyy: '', //
pbsxd: '', // PBS
pyybrl: '' //
qsxjjrl: '', //
}))
debugger
// 使 $set formData CustomTable
this.$set(this.formData, 'qcxjjyqkData', itemData)
this.$set(this.formData, 'stepTableFormData', itemData)
this.$message.success(`已从前序表单加载 ${itemData.length} 条剂量组数据`)
} catch (error) {
@ -262,48 +254,6 @@ export default {
const formFields = this.$refs.swypyjInfoRef?.getFilledFormData();
this.onCommonVerifyNdException(formFields,data);
},
configComplete(val) {
const { rowData, headerSelectFields } = val;
//(+)
const { total, unit } = addTj([rowData.actStartSolutionVolume, rowData.actDiluentVolume], [headerSelectFields.actStartSolutionVolumeUnit, headerSelectFields.actDiluentVolumeUnit])
let postData = {
mc: null,
bh: rowData.targetSolutionCode + rowData.subTargetSolutionCode,
nd: rowData.actSolutionConcentration,//
nddw: headerSelectFields.actSolutionConcentrationUnit,
studySubjectId: this.formData.studySubjectId,
studyFormId:this.formData.id,
studyId:this.formData.studyId,
kc: total,
kcdw: unit,
}
this.configCompleteRequest(postData);
},
//
subPackageSubmit(data) {
const { fzsj, rowData, headerSelectFields } = data;
const { fzList = [], dw = "", mybh } = fzsj;
if (fzList && fzList.length > 0) {
const list = fzList.map((item) => {
return {
bh: mybh + item.preCode + item.subCode,
kc: item.num,
kcdw: dw,
}
})
let postData = {
studyId: this.formData.studyId,
studyFormId: this.formData.id,
bh: mybh,
nd: rowData.actSolutionConcentration || 0,
nddw: headerSelectFields.actSolutionConcentrationUnit,
studySubjectId: this.formData.studySubjectId,
studyFormId:this.formData.id,
list: list
}
this.subPackageRequest(postData);
}
},
//
getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "qcxjjyqkTableRef", "stepRef","remarkRef"])
@ -311,13 +261,27 @@ export default {
//
async getFormData() {
let content = await this.validFormFields(["baseInfoRef", "swypyjInfoRef", "qcxjjyqkTableRef", "stepRef","remarkRef"]);
return content;
console.log('获取填写完成的表单数据==============',content);
return content;
},
getResource() {
//使
const stepResource = this.$refs.stepRef.getStepResource()
const tableList = this.$refs.qcxjjyqkTableRef?.getFilledFormData()?.stepTableFormData || []
// const tableList = hyqkData?.stepTableFormData || []
//
this.resourceTmp = stepResource.sjResource || []
this.yqResourceTmp = stepResource.yqResource || []
const tableFromHyqk = tableList
.filter(item => item.xybh)
.map(item => ({
bh: item.xybh,
type: 'cell'
}))
this.resourceTmp = [...this.resourceTmp, ...tableFromHyqk]
console.log('回显填写完成的表单数据==============',this.resourceTmp);
return this.resourceTmp;
},
//

+ 69
- 54
src/views/business/comps/template/comps/dl/DL017.vue View File

@ -12,22 +12,16 @@
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<BaseInfoFormPackage fieldItemLabel="template.dl.dl017.xbxx" label="template.dl.dl017.xbxx"
ref="swypyjInfoRef" :formConfig="swypyjInfoFormConfig" :formData="formData"
ref="swypyjInfoRef" :formConfig="swypyjInfoFormConfig" :formData="formData" @onRegentSubmit="onRegentSubmit"
/>
<LineLabel label="template.dl.dl017.xbczqk" />
<CustomTable
@headerSelectChange="onHeaderSelectChange"
fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur"
@beforeSaveRecord = "beforeSaveRecord" @onRegentSubmit="(e) => onRegentSubmit"
@beforeSaveRecord = "beforeSaveRecord"
:showAddRow="false" :showOperation="false"
ref="stepTableRef" :columns="stepColumns" :formData="formData">
<!-- <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion @startConfig="startConfig" @configComplete="configComplete"
@printTag="printTag" @subPackageSubmit="subPackageSubmit" :fillType="fillType"
:row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="deleteRow">
</TableOpertaion>
</template> -->
ref="stepTableRef" :columns="stepColumns" :formData="tableFormData">
</CustomTable>
<LineLabel label="template.dl.dl017.czbz" />
@ -57,7 +51,7 @@ import TableOpertaionDelete from "@/components/Template/operation/TableOpertaion
export default {
name: "DL017",
dicts: [
'business_dl_qsxjbltj','business_tjdw','business_dl_sjqszqk','business_dl_sjqcdqk','business_dl_sjqqtqk','business_dl_xbmc'
'business_dl_qsxjbltj','business_tjdw','business_dl_sjqszqk','business_dl_sjqcdqk','business_dl_sjqqtqk','business_dl_xbmc',"business_sydd"
],
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaionDelete },
mixins: [templateMixin],
@ -68,6 +62,13 @@ export default {
},
},
computed: {
//
tableFormData() {
return {
stepTableFormData: this.formData.stepTableFormData,
headerSelectFields: {}
}
},
//
remarkConig() {
return [
@ -113,7 +114,7 @@ export default {
label: 'template.dl.dl017.sydd',
type: 'select',
fillType: 'actFill',
options: this.getDictOptions('business_dl_xbmc'),
options: this.getDictOptions('business_sydd'),
otherCode: 'xbmcOther',
showOtherLabel:false
},
@ -146,7 +147,7 @@ export default {
label: 'template.dl.dl017.qxbd',
type: 'qxbd',
fillType: 'actFill',
qxbdType:'DL017',
qxbdType:'DL014',
filledCodes:['bdmc','bdbh'],
},
bltj: {
@ -187,21 +188,21 @@ export default {
width: 180,
bodyType: "select",
bodyFillType: "actFill",
options: this.getDictOptions('business_dl_sjqszqk'),
bodyOptions: this.getDictOptions('business_dl_sjqszqk'),
},{
label: "template.dl.dl017.sjqcdqk",
prop: "sjqcdqk",
width: 180,
bodyType: "select",
bodyFillType: "actFill",
options: this.getDictOptions('business_dl_sjqcdqk'),
bodyOptions: this.getDictOptions('business_dl_sjqcdqk'),
},{
label: "template.dl.dl017.saqqtqk",
prop: "saqqtqk",
width: 180,
bodyType: "select",
bodyFillType: "actFill",
options: this.getDictOptions('business_dl_sjqqtqk'),
bodyOptions: this.getDictOptions('business_dl_sjqqtqk'),
},{
label: "template.dl.dl017.ddpyy",
prop: "ddpyy",
@ -209,7 +210,6 @@ export default {
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true,
},{
label: "template.dl.dl017.xd",
prop: "xd",
@ -217,7 +217,6 @@ export default {
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true,
},{
label: "template.dl.dl017.sj",
prop: "sj",
@ -225,7 +224,6 @@ export default {
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true,
},{
label: "template.dl.dl017.ds",
prop: "ds",
@ -233,7 +231,6 @@ export default {
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true,
},{
label: "template.dl.dl017.dy1gd",
prop: "dy1gd",
@ -241,7 +238,6 @@ export default {
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true,
},{
label: "template.dl.dl017.dy2gd",
prop: "dy2gd",
@ -249,7 +245,6 @@ export default {
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true,
},{
label: "template.dl.dl017.dy3gd",
prop: "dy3gd",
@ -257,7 +252,6 @@ export default {
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true,
},{
label: "template.dl.dl017.dy4gd",
prop: "dy4gd",
@ -265,7 +259,6 @@ export default {
bodyType: "checkbox",
bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true,
},
]
},
@ -281,13 +274,47 @@ export default {
onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e
const { row } = selectInfo
console.log('selectInfo==============',selectInfo)
if (key === 'yqbh') {
const params = {
jlzb: row.mc,
xybh: row.xh,
if (key === 'qxbd') {
try {
//
const bdnr = JSON.parse(row.bdnr)
console.log('前序表单内容============', bdnr)
//
const stepTableFormData = bdnr.jlzTableData || []
if (stepTableFormData.length === 0) {
//
this.$set(this.formData, 'stepTableFormData', [])
this.$message.warning('前序表单中没有剂量组数据')
return
}
//
const itemData = stepTableFormData.map(item => ({
jlzb: item.jlzb || '',
xybh: item.xybh || '',
sjqszqk: '',
sjqcdqk: '',
saqqtqk: '',
ddpyy: '',
xd: '',
sj: '',
ds: '',
dy1gd: '',
dy2gd: '',
dy3gd: '',
dy4gd: ''
}))
// 使 $set formData CustomTable
this.$set(this.formData, 'stepTableFormData', itemData)
this.$message.success(`已从前序表单加载 ${itemData.length} 条剂量组数据`)
} catch (error) {
this.$set(this.formData, 'stepTableFormData', [])
console.error('解析前序表单数据失败:', error)
this.$message.error('解析前序表单数据失败')
}
this.$refs.yqsyTableRef.updateDataSourceByRowIndex(rowIndex, params)
}
},
//table header
@ -329,31 +356,7 @@ export default {
}
this.configCompleteRequest(postData);
},
//
subPackageSubmit(data) {
const { fzsj, rowData, headerSelectFields } = data;
const { fzList = [], dw = "", mybh } = fzsj;
if (fzList && fzList.length > 0) {
const list = fzList.map((item) => {
return {
bh: mybh + item.preCode + item.subCode,
kc: item.num,
kcdw: dw,
}
})
let postData = {
studyId: this.formData.studyId,
studyFormId: this.formData.id,
bh: mybh,
nd: rowData.actSolutionConcentration || 0,
nddw: headerSelectFields.actSolutionConcentrationUnit,
studySubjectId: this.formData.studySubjectId,
studyFormId:this.formData.id,
list: list
}
this.subPackageRequest(postData);
}
},
//
getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "stepTableRef", "stepRef","remarkRef"])
@ -366,8 +369,20 @@ export default {
getResource() {
//使
const stepResource = this.$refs.stepRef.getStepResource()
const hyqkData = this.$refs.stepTableRef?.getFilledFormData()
const tableList = hyqkData?.stepTableFormData || []
//
this.resourceTmp = stepResource.sjResource || []
this.yqResourceTmp = stepResource.yqResource || []
const sjResourceFromHyqk = tableList
.filter(item => item.xybh)
.map(item => ({
bh: item.xybh,
type: 'cell'
}))
this.resourceTmp = [...this.resourceTmp, ...sjResourceFromHyqk]
return this.resourceTmp;
},
//

+ 57
- 41
src/views/business/comps/template/comps/dl/DL018.vue View File

@ -12,16 +12,16 @@
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<BaseInfoFormPackage fieldItemLabel="template.dl.dl018.xbxx" label="template.dl.dl018.xbxx"
ref="swypyjInfoRef" :formConfig="swypyjInfoFormConfig" :formData="formData"
ref="swypyjInfoRef" :formConfig="swypyjInfoFormConfig" :formData="formData" @onRegentSubmit="onRegentSubmit"
/>
<LineLabel label="template.dl.dl018.xbczqk" />
<CustomTable
@headerSelectChange="onHeaderSelectChange"
fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur"
@beforeSaveRecord = "beforeSaveRecord" @onRegentSubmit="(e) => onRegentSubmit"
@beforeSaveRecord = "beforeSaveRecord"
:showAddRow="false" :showOperation="false"
ref="stepTableRef" :columns="stepColumns" :formData="formData">
ref="stepTableRef" :columns="stepColumns" :formData="tableFormData">
<!-- <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion @startConfig="startConfig" @configComplete="configComplete"
@printTag="printTag" @subPackageSubmit="subPackageSubmit" :fillType="fillType"
@ -68,6 +68,13 @@ export default {
},
},
computed: {
//
tableFormData() {
return {
stepTableFormData: this.formData.stepTableFormData || [],
headerSelectFields: {}
}
},
//
remarkConig() {
return [
@ -185,7 +192,6 @@ export default {
width: 180,
bodyType: "input",
bodyFillType: "actFill",
bodyDisabled: true,
disabled: true,
subType: 'button',
subKey: 'rsks',
@ -197,7 +203,6 @@ export default {
width: 180,
bodyType: "input",
bodyFillType: "actFill",
bodyDisabled: true,
disabled: true,
subType: 'button',
subKey: 'rsjs',
@ -209,7 +214,6 @@ export default {
width: 180,
bodyType: "inputNumber",
bodyFillType: "actFill",
bodyDisabled: true,
},
{
label: "template.dl.dl018.ys",
@ -217,7 +221,6 @@ export default {
width: 180,
bodyType: "inputNumber",
bodyFillType: "actFill",
bodyDisabled: true,
},
{
label: "template.dl.dl018.zy",
@ -225,7 +228,6 @@ export default {
width: 180,
bodyType: "inputNumber",
bodyFillType: "actFill",
bodyDisabled: true,
},
{
label: "template.dl.dl018.yx",
@ -233,7 +235,6 @@ export default {
width: 180,
bodyType: "inputNumber",
bodyFillType: "actFill",
bodyDisabled: true,
},
{
label: "template.dl.dl018.tj",
@ -241,7 +242,6 @@ export default {
width: 180,
bodyType: "inputNumber",
bodyFillType: "actFill",
bodyDisabled: true,
}
]
},
@ -257,13 +257,41 @@ export default {
onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e
const { row } = selectInfo
console.log('selectInfo==============',selectInfo)
if (key === 'yqbh') {
const params = {
jlzb: row.mc,
xybh: row.xh,
if (key === 'qxbd') {
try {
//
const bdnr = JSON.parse(row.bdnr)
//
const stepTableFormData = bdnr.jlzTableData || []
if (stepTableFormData.length === 0) {
//
this.$set(this.formData, 'stepTableFormData', [])
this.$message.warning('前序表单中没有剂量组数据')
return
}
//
const itemData = stepTableFormData.map(item => ({
jlzb: item.jlzb || '', //
xybh: item.xybh || '', //
rsks: '', //
rsjs: '', //
zs: '', //
ys: '', //
zy: '', //
yx: '', //
tj: '', //
}))
// 使 $set formData CustomTable
this.$set(this.formData, 'stepTableFormData', itemData)
this.$message.success(`已从前序表单加载 ${itemData.length} 条剂量组数据`)
} catch (error) {
this.$set(this.formData, 'stepTableFormData', [])
console.error('解析前序表单数据失败:', error)
this.$message.error('解析前序表单数据失败')
}
this.$refs.stepTableRef.updateDataSourceByRowIndex(rowIndex, params)
}
},
//table header
@ -305,31 +333,7 @@ export default {
}
this.configCompleteRequest(postData);
},
//
subPackageSubmit(data) {
const { fzsj, rowData, headerSelectFields } = data;
const { fzList = [], dw = "", mybh } = fzsj;
if (fzList && fzList.length > 0) {
const list = fzList.map((item) => {
return {
bh: mybh + item.preCode + item.subCode,
kc: item.num,
kcdw: dw,
}
})
let postData = {
studyId: this.formData.studyId,
studyFormId: this.formData.id,
bh: mybh,
nd: rowData.actSolutionConcentration || 0,
nddw: headerSelectFields.actSolutionConcentrationUnit,
studySubjectId: this.formData.studySubjectId,
studyFormId:this.formData.id,
list: list
}
this.subPackageRequest(postData);
}
},
//
getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "stepTableRef", "stepRef","remarkRef"])
@ -342,8 +346,20 @@ export default {
getResource() {
//使
const stepResource = this.$refs.stepRef.getStepResource()
const tableList = this.$refs.qcxjjyqkTableRef?.getFilledFormData()?.stepTableFormData || []
//
this.resourceTmp = stepResource.sjResource || []
this.yqResourceTmp = stepResource.yqResource || []
const tableFromHyqk = tableList
.filter(item => item.xybh)
.map(item => ({
bh: item.xybh,
type: 'cell'
}))
this.resourceTmp = [...this.resourceTmp, ...tableFromHyqk]
return this.resourceTmp;
},
//

+ 56
- 42
src/views/business/comps/template/comps/dl/DL019.vue View File

@ -12,16 +12,16 @@
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<BaseInfoFormPackage fieldItemLabel="template.dl.dl019.xbxx" label="template.dl.dl019.xbxx"
ref="swypyjInfoRef" :formConfig="swypyjInfoFormConfig" :formData="formData"
ref="swypyjInfoRef" :formConfig="swypyjInfoFormConfig" :formData="formData" @onRegentSubmit="onRegentSubmit"
/>
<LineLabel label="template.dl.dl019.xbczqk" />
<CustomTable
@headerSelectChange="onHeaderSelectChange"
fieldItemLabel="template.common.operationSteps" @blur="onHandleTableBlur"
@beforeSaveRecord = "beforeSaveRecord" @onRegentSubmit="(e) => onRegentSubmit"
@beforeSaveRecord = "beforeSaveRecord"
:showAddRow="false" :showOperation="false"
ref="stepTableRef" :columns="stepColumns" :formData="formData">
ref="stepTableRef" :columns="stepColumns" :formData="tableFormData">
<!-- <template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion @startConfig="startConfig" @configComplete="configComplete"
@printTag="printTag" @subPackageSubmit="subPackageSubmit" :fillType="fillType"
@ -68,6 +68,13 @@ export default {
},
},
computed: {
//
tableFormData() {
return {
stepTableFormData: this.formData.stepTableFormData || [],
headerSelectFields: {}
}
},
//
remarkConig() {
return [
@ -167,8 +174,7 @@ export default {
width: 180,
bodyType: "input",
bodyFillType: "actFill",
disabled: true,
bodyDisabled: true,
bodyDisabled: true
},
{
label: "template.dl.dl019.xybh",
@ -176,8 +182,7 @@ export default {
width: 180,
bodyType: "input",
bodyFillType: "actFill",
disabled: true,
bodyDisabled: true,
bodyDisabled: true
},
{
label: "template.dl.dl019.bplsh1",
@ -185,8 +190,7 @@ export default {
width: 180,
bodyType: "input",
bodyFillType: "actFill",
bodyMaxlength: 50,
bodyDisabled: true,
bodyMaxlength: 50
},
{
label: "template.dl.dl019.bplsh2",
@ -194,8 +198,7 @@ export default {
width: 180,
bodyType: "input",
bodyFillType: "actFill",
bodyMaxlength: 50,
bodyDisabled: true,
bodyMaxlength: 50
}
]
},
@ -211,13 +214,35 @@ export default {
onRegentSubmit(e) {
const { selectInfo, key, rowIndex } = e
const { row } = selectInfo
console.log('selectInfo==============',selectInfo)
if (key === 'yqbh') {
const params = {
jlzb: row.mc,
xybh: row.xh,
if (key === 'qxbd') {
try {
//
const bdnr = JSON.parse(row.bdnr)
//
const stepTableFormData = bdnr.jlzTableData || []
if (stepTableFormData.length === 0) {
//
this.$set(this.formData, 'stepTableFormData', [])
this.$message.warning('前序表单中没有剂量组数据')
return
}
//
const itemData = stepTableFormData.map(item => ({
jlzb: item.jlzb || '', //
xybh: item.xybh || '', //
bplsh1: '', //
bplsh2: '', //
}))
// 使 $set formData CustomTable
this.$set(this.formData, 'stepTableFormData', itemData)
this.$message.success(`已从前序表单加载 ${itemData.length} 条剂量组数据`)
} catch (error) {
console.error('解析前序表单数据失败:', error)
this.$message.error('解析前序表单数据失败')
}
this.$refs.stepTableRef.updateDataSourceByRowIndex(rowIndex, params)
}
},
//table header
@ -259,31 +284,7 @@ export default {
}
this.configCompleteRequest(postData);
},
//
subPackageSubmit(data) {
const { fzsj, rowData, headerSelectFields } = data;
const { fzList = [], dw = "", mybh } = fzsj;
if (fzList && fzList.length > 0) {
const list = fzList.map((item) => {
return {
bh: mybh + item.preCode + item.subCode,
kc: item.num,
kcdw: dw,
}
})
let postData = {
studyId: this.formData.studyId,
studyFormId: this.formData.id,
bh: mybh,
nd: rowData.actSolutionConcentration || 0,
nddw: headerSelectFields.actSolutionConcentrationUnit,
studySubjectId: this.formData.studySubjectId,
studyFormId:this.formData.id,
list: list
}
this.subPackageRequest(postData);
}
},
//
getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef", "swypyjInfoRef", "stepTableRef", "stepRef","remarkRef"])
@ -296,8 +297,21 @@ export default {
getResource() {
//使
const stepResource = this.$refs.stepRef.getStepResource()
const tableList = this.$refs.qcxjjyqkTableRef?.getFilledFormData()?.stepTableFormData || []
// const tableList = hyqkData?.stepTableFormData || []
//
this.resourceTmp = stepResource.sjResource || []
this.yqResourceTmp = stepResource.yqResource || []
const tableFromHyqk = tableList
.filter(item => item.xybh)
.map(item => ({
bh: item.xybh,
type: 'cell'
}))
this.resourceTmp = [...this.resourceTmp, ...tableFromHyqk]
console.log('回显填写完成的表单数据==============',this.resourceTmp);
return this.resourceTmp;
},
//

Loading…
Cancel
Save