Commit fb634537 authored by 刘予佳's avatar 刘予佳

随访表单

parent a2350871
...@@ -39,9 +39,14 @@ ...@@ -39,9 +39,14 @@
v-for="(opt, optIndex) in item.dicData" v-for="(opt, optIndex) in item.dicData"
:key="optIndex" :key="optIndex"
v-show="form[item.prop]==opt.value" v-show="form[item.prop]==opt.value"
:style="{color:item.color}"
>{{ opt.label }}</span> >{{ opt.label }}</span>
<span class="ml-10">{{item.unit}}</span>
</span>
<span v-else>
<span :style="{color:item.color}">{{form[item.prop]}}</span>
<span class="ml-10">{{item.unit}}</span>
</span> </span>
<span v-else>{{form[item.prop]}}</span>
<!-- 输入框 --> <!-- 输入框 -->
<!-- <el-input <!-- <el-input
v-if="item.type === 'input'" v-if="item.type === 'input'"
......
...@@ -49,7 +49,6 @@ ...@@ -49,7 +49,6 @@
> >
<template slot="title"> <template slot="title">
{{ g.label }} {{ g.label }}
{{g.showIndex}}
<span <span
v-if="g.label == '二、排除标准'" v-if="g.label == '二、排除标准'"
class="noCol" class="noCol"
...@@ -420,4 +419,11 @@ export default { ...@@ -420,4 +419,11 @@ export default {
} }
// } // }
} }
.simple-form {
::v-deep {
.el-form-item__label {
margin-left: 20px;
}
}
}
</style> </style>
...@@ -19,9 +19,9 @@ export default { ...@@ -19,9 +19,9 @@ export default {
return { return {
followupForm:{ followupForm:{
column: [], column: [],
labelPosition: 'right', labelPosition: 'left',
labelSuffix: '', labelSuffix: '',
labelWidth: 100, labelWidth: 180,
gutter: 0, gutter: 0,
menuBtn: true, menuBtn: true,
submitBtn: true, submitBtn: true,
...@@ -32,207 +32,664 @@ export default { ...@@ -32,207 +32,664 @@ export default {
nextTabText: '下一页', nextTabText: '下一页',
menuPosition: 'center', menuPosition: 'center',
group: [ group: [
{ {
label: '个人信息', label: '第二次随访调查',
prop: '1669858228269_22763', prop: '1669858313508_15761',
arrow: true, arrow: true,
collapse: true, collapse: true,
display: true,
labelWidth: 8,
showIndex:true,
column: [{
type: 'input',
display: true,
importantField: true,
styles: {},
autoRequired: 0,
personalRequired: 0,
prop: 'name',
label: '姓名',
fieldType: 'varchar',
fieldLength: '50',
tableName: '存活情况',
tableCode: 'gas_survival_situation',
tableId: '1598137567272861697',
notFilter: false,
cType: '',
subfield: false
}, {
type: 'input',
display: true,
importantField: true,
styles: {},
autoRequired: 0,
personalRequired: 0,
prop: 'contact_phone',
label: '手机号',
fieldType: 'varchar',
fieldLength: '20',
tableName: '存活情况',
tableCode: 'gas_survival_situation',
tableId: '1598137567272861697',
notFilter: false,
cType: '',
subfield: false
}, {
type: 'input',
display: true,
importantField: true,
styles: {},
autoRequired: 0,
personalRequired: 0,
prop: 'telephone',
label: '联系电话',
fieldType: 'varchar',
fieldLength: '20',
tableName: '存活情况',
tableCode: 'gas_survival_situation',
tableId: '1598137567272861697',
notFilter: false,
cType: '',
subfield: false
}, {
type: 'input',
display: true,
importantField: true,
styles: {},
autoRequired: 0,
personalRequired: 0,
prop: 'sex',
label: '性别',
fieldType: 'tinyint',
fieldLength: '2',
tableName: '存活情况',
tableCode: 'gas_survival_situation',
tableId: '1598137567272861697',
notFilter: false,
cType: '',
subfield: false
}, {
type: 'input',
display: true, display: true,
importantField: true, labelWidth: 8,
styles: {}, column: [
autoRequired: 0, {
personalRequired: 0, type: 'date',
prop: 'birthday', display: true,
label: '出生日期', importantField: true,
fieldType: 'date', styles: {},
fieldLength: '', prop: 'first_follow_time',
tableName: '存活情况', label: '随访时间',
tableCode: 'gas_survival_situation', format: 'yyyy-MM-dd',
tableId: '1598137567272861697', valueFormat: 'yyyy-MM-dd',
notFilter: false, dicType: '',
cType: '', fieldType: 'date',
subfield: false tableName: '随访计划',
}, { tableCode: 'gas_follow',
type: 'input', tableId: '1597491580053323777',
notFilter: false,
cType: '',
subfield: false,
span: 24,
autoRequired: 0,
personalRequired: 0,
width: 12
},
{
type: 'input',
display: true,
importantField: true,
styles: {},
prop: 'follow_contents', //待改
label: '存活情况',
fieldType: 'text',
tableName: '随访计划',
tableCode: 'gas_follow',
tableId: '1597491580053323777',
notFilter: false,
cType: '',
subfield: false,
autoRequired: 0,
personalRequired: 0,
span: 24,
width: 12
}
]
},
{
label: '是否接受胃镜检查',
prop: '1669860991131_8643',
arrow: true,
collapse: true,
display: true, display: true,
importantField: true, labelWidth: 8,
styles: {}, showIndex:true,
autoRequired: 0, column: [{
personalRequired: 0, type: 'radio',
prop: 'age', display: true,
label: '年龄', importantField: true,
fieldType: 'int', styles: {},
fieldLength: '4', label: '是否接受检查',
tableName: '存活情况', prop: 'is_accept',
tableCode: 'gas_survival_situation', dicData: [{
tableId: '1598137567272861697', label: '',
notFilter: false, value: '1',
cType: '', id: '1595347527757000705',
subfield: false parentId: ''
}] }, {
}, label: '',
{ value: '0',
label: '第一次随访计划', id: '1595347502595371010',
prop: '1669858313508_15760', parentId: ''
arrow: true, }],
collapse: true, dynamicshSet: [{
display: true, value: '1',
labelWidth: 8, target: '1669861007378_67152'
column: [{ }],
type: 'radio', dicType: 'd-sf',
props: {
label: 'label',
value: 'value'
},
fieldType: 'tinyint',
fieldLength: '2',
tableName: '胃镜检查',
tableCode: 'gastroscope',
tableId: '1597468524048121858',
notFilter: false,
cType: '',
subfield: false,
autoRequired: 0,
personalRequired: 0,
span: 24,
lg: 24
}]
},
{
label: '胃镜检查结果',
prop: '1669861007378_67152',
arrow: true,
collapse: true,
display: true, display: true,
importantField: true, labelWidth: 8,
styles: {}, showIndex:true,
prop: 'is_continue_follow', column: [
label: '是否随访', {
dicData: [{ type: 'datetime',
label: '', display: true,
value: '1', importantField: true,
id: '1595347527757000705', styles: {},
parentId: '' color:"#4B65FF",
}, { label: '检查时间',
label: '', prop: 'check_time',
value: '0', dicData: [{
id: '1595347502595371010', label: '',
parentId: '' value: '1',
}], id: '1595347527757000705',
dynamicshSet: [], parentId: ''
dicType: 'd-sf', }, {
props: { label: '',
label: 'label', value: '0',
value: 'value' id: '1595347502595371010',
}, parentId: ''
fieldType: 'tinyint', }],
fieldLength: '2', dynamicshSet: [],
tableName: '随访计划', dicOption: 'static',
tableCode: 'gas_follow', dicType: '',
tableId: '1597491580053323777', props: {
notFilter: false, label: 'label',
cType: '', value: 'value'
subfield: false, },
value: '1', fieldType: 'datetime',
span: 24, fieldLength: '',
autoRequired: 0, format: 'yyyy-MM-dd HH:mm:ss',
personalRequired: 0 valueFormat: 'yyyy-MM-dd HH:mm:ss',
}, { tableName: '胃镜检查',
type: 'date', tableCode: 'gastroscope',
tableId: '1597468524048121858',
notFilter: false,
cType: '',
subfield: false,
autoRequired: 0,
personalRequired: 0,
span: 24,
width: 12
},
{
type: 'radio',
display: true,
importantField: true,
styles: {},
prop: 'check_type',
label: '胃镜检查方式',
fieldType: 'int',
fieldLength: '11',
autoRequired: 0,
personalRequired: 0,
dicData: [
{
label: '胃镜普通白光检查',
value: '1',
id: '1597475602204557314',
parentId: ''
}, {
label: '胃镜普通白光检查+LCI检查',
value: '2',
id: '1597475677853024258',
parentId: ''
}, {
label: '磁控胶囊胃镜检查',
value: '3',
id: '1597475763517489154',
parentId: ''
}
],
dynamicshSet: [],
dicType: 'gas_check_type',
props: {
label: 'label',
value: 'value'
},
tableName: '胃镜检查',
tableCode: 'gastroscope',
tableId: '1597468524048121858',
notFilter: false,
cType: '',
subfield: false,
span: 24
},
{
type: 'radio',
display: true,
importantField: true,
styles: {},
autoRequired: 0,
personalRequired: 0,
dicData: [{
label: '未见异常',
value: '1',
id: '1597476184780800001',
parentId: ''
}, {
label: '异常',
value: '2',
id: '1597476229722767361',
parentId: ''
}],
dynamicshSet: [{
value: '2',
target: 'detail_check_type'
}, {
value: '2',
target: 'diagnosis'
}],
dicType: 'check_result',
props: {
label: 'label',
value: 'value'
},
prop: 'check_result',
label: '检查结果',
fieldType: 'tinyint',
fieldLength: '2',
tableName: '胃镜检查',
tableCode: 'gastroscope',
tableId: '1597468524048121858',
notFilter: false,
cType: '',
subfield: false,
span: 24
},
{
type: 'checkbox',
display: true,
importantField: true,
styles: {},
autoRequired: 0,
personalRequired: 0,
dicData: [{
label: 'NBI',
value: '1',
id: '1597476883899973634',
parentId: ''
}, {
label: 'FICE',
value: '2',
id: '1597476919312482306',
parentId: ''
}, {
label: 'I-SC',
value: '3',
id: '1597476961561706498',
parentId: ''
}, {
label: 'BLI',
value: '4',
id: '1597476996303126529',
parentId: ''
}, {
label: '放大内镜',
value: '5',
id: '1597477029488459778',
parentId: ''
}, {
label: '激光共聚焦显微内镜',
value: '6',
id: '1597477062287917057',
parentId: ''
}, {
label: '荧光内镜',
value: '7',
id: '1597477097977249793',
parentId: ''
}, {
label: '化学染色',
value: '8',
id: '1597477133691748353',
parentId: ''
}],
dynamicshSet: [],
dicType: 'gas_detail_check_type',
props: {
label: 'label',
value: 'value'
},
prop: 'detail_check_type',
label: '胃镜精查方式',
fieldType: 'varchar',
fieldLength: '255',
tableName: '胃镜检查',
tableCode: 'gastroscope',
tableId: '1597468524048121858',
notFilter: false,
cType: '',
subfield: false,
span: 24
},
{
type: 'radio',
display: true,
importantField: true,
styles: {},
autoRequired: 0,
personalRequired: 0,
dicData: [{
label: '未见异常',
value: '1',
id: '1597476184780800001',
parentId: ''
}, {
label: '异常',
value: '2',
id: '1597476229722767361',
parentId: ''
}],
dynamicshSet: [{
value: '2',
target: 'esophagus_level'
}, {
value: '2',
target: 'esophagus_position'
}, {
value: '2',
target: 'early_esophagus_cancer'
}, {
value: '2',
target: 'period_esophagus_cancer'
}, {
value: '2',
target: 'is_barret_esophagus'
}, {
value: '2',
target: 'is_back_esophagus'
}, {
value: '2',
target: 'inogm_level'
}, {
value: '2',
target: 'inogm_position'
}, {
value: '2',
target: 'early_gastric_cancer'
}, {
value: '2',
target: 'period_gastric_cancer'
}, {
value: '2',
target: 'atrophic_gastriti'
}, {
value: '2',
target: 'gastric_ulcer'
}, {
value: '2',
target: 'gastric_polyp_type'
}, {
value: '2',
target: 'gastric_polyp'
}, {
value: '2',
target: 'non_atrophic_gastriti'
}, {
value: '2',
target: 'is_duodenal_ulcer'
}, {
value: '2',
target: 'other_pathology'
}],
dicType: 'check_result',
props: {
label: 'label',
value: 'value'
},
prop: 'diagnosis',
label: '最后诊断',
fieldType: 'tinyint',
fieldLength: '4',
tableName: '胃镜检查',
tableCode: 'gastroscope',
tableId: '1597468524048121858',
notFilter: false,
cType: '',
subfield: false,
span: 24
},
]
},
{
label: '实验室检查',
prop: '1669863751318_50013',
arrow: true,
collapse: true,
display: true, display: true,
importantField: true, labelWidth: 8,
styles: {}, showIndex:true,
prop: 'first_follow_time', column: [
label: '随访时间', {
format: 'yyyy-MM-dd', type: 'input',
valueFormat: 'yyyy-MM-dd', display: true,
dicType: '', importantField: true,
fieldType: 'date', styles: {},
tableName: '随访计划', prop: 'G_17',
tableCode: 'gas_follow', label: '胃泌素17',
tableId: '1597491580053323777', fieldType: 'varchar',
notFilter: false, fieldLength: '255',
cType: '', tableName: '实验室检查',
subfield: false, tableCode: 'gas_exam',
span: 12, tableId: '1597466741234040833',
autoRequired: 0, notFilter: false,
personalRequired: 0, cType: '',
width: 12 subfield: false,
}, { autoRequired: 0,
type: 'input', personalRequired: 0,
span: 24,
width: 12,
unit:"pmol/L",
color:"#5972FF"
},
{
type: 'input',
display: true,
importantField: true,
styles: {},
prop: 'PG_I',
label: '胃蛋白酶原I(PG I)',
fieldType: 'varchar',
fieldLength: '255',
tableName: '实验室检查',
tableCode: 'gas_exam',
tableId: '1597466741234040833',
notFilter: false,
cType: '',
subfield: false,
span: 24,
width: 12
},
{
type: 'input',
display: true,
importantField: true,
styles: {},
prop: 'PG_II',
label: '胃蛋白酶原II(PG II)',
fieldType: 'varchar',
fieldLength: '255',
tableName: '实验室检查',
tableCode: 'gas_exam',
tableId: '1597466741234040833',
notFilter: false,
cType: '',
subfield: false,
span: 24,
width: 12
},
{
type: 'radio',
display: true,
importantField: true,
styles: {},
prop: 'IgG',
label: 'Hp抗体(IgG)检测',
fieldType: 'varchar',
fieldLength: '255',
autoRequired: 0,
personalRequired: 0,
dicData: [{
label: '阴性',
value: '1',
id: '1598150963816923138',
parentId: ''
}, {
label: '阳性',
value: '2',
id: '1598150992287858689',
parentId: ''
}],
dynamicshSet: [],
dicType: 'hp_antibody',
props: {
label: 'label',
value: 'value'
},
tableName: '实验室检查',
tableCode: 'gas_exam',
tableId: '1597466741234040833',
notFilter: false,
cType: '',
subfield: false,
span: 24
},
{
type: 'input',
display: true,
importantField: true,
styles: {},
prop: 'img_path',
label: '图片资料',
fieldType: 'varchar',
fieldLength: '255',
tableName: '实验室检查',
tableCode: 'gas_exam',
tableId: '1597466741234040833',
notFilter: false,
cType: '',
subfield: false,
span: 24,
width: 12
}
]
},
{
label: '风险评估',
prop: '1669864316349_49130',
arrow: true,
collapse: true,
display: true,
labelWidth: 8,
showIndex:true,
column: [
{
type: 'input',
display: true,
importantField: true,
styles: {},
autoRequired: 0,
personalRequired: 0,
prop: 'risk_score',
label: '风险评分',
fieldType: 'varchar',
fieldLength: '255',
tableName: '风险评估',
tableCode: 'gas_risk_assessment',
tableId: '1598151898370768898',
notFilter: false,
cType: '',
subfield: false,
span: 24,
width: 12
},
{
type: 'input',
display: true,
importantField: true,
styles: {},
prop: 'risk_rank',
label: '风险等级',
fieldType: 'varchar',
fieldLength: '20',
tableName: '风险评估',
tableCode: 'gas_risk_assessment',
tableId: '1598151898370768898',
notFilter: false,
cType: '',
subfield: false,
span: 24,
width: 12
},
]
},
{
label: '第一次随访计划',
prop: '1669858313508_15760',
arrow: true,
collapse: true,
display: true, display: true,
importantField: true, labelWidth: 8,
styles: {}, column: [
prop: 'follow_contents', {
label: '随访内容', type: 'radio',
fieldType: 'text', display: true,
tableName: '随访计划', importantField: true,
tableCode: 'gas_follow', styles: {},
tableId: '1597491580053323777', prop: 'is_continue_follow',
notFilter: false, label: '是否随访',
cType: '', dicData: [{
subfield: false, label: '',
autoRequired: 0, value: '1',
personalRequired: 0, id: '1595347527757000705',
span: 12, parentId: ''
width: 12 }, {
}] label: '',
}, value: '0',
id: '1595347502595371010',
parentId: ''
}],
dynamicshSet: [],
dicType: 'd-sf',
props: {
label: 'label',
value: 'value'
},
fieldType: 'tinyint',
fieldLength: '2',
tableName: '随访计划',
tableCode: 'gas_follow',
tableId: '1597491580053323777',
notFilter: false,
cType: '',
subfield: false,
value: '1',
span: 24,
autoRequired: 0,
personalRequired: 0
},
{
type: 'date',
display: true,
importantField: true,
styles: {},
prop: 'first_follow_time',
label: '随访时间',
format: 'yyyy-MM-dd',
valueFormat: 'yyyy-MM-dd',
dicType: '',
fieldType: 'date',
tableName: '随访计划',
tableCode: 'gas_follow',
tableId: '1597491580053323777',
notFilter: false,
cType: '',
subfield: false,
span: 12,
autoRequired: 0,
personalRequired: 0,
width: 12
},
{
type: 'input',
display: true,
importantField: true,
styles: {},
prop: 'follow_contents',
label: '随访内容',
fieldType: 'text',
tableName: '随访计划',
tableCode: 'gas_follow',
tableId: '1597491580053323777',
notFilter: false,
cType: '',
subfield: false,
autoRequired: 0,
personalRequired: 0,
span: 12,
width: 12
}
]
},
] ]
}, },
formEdit:{ formEdit:{
name:"djksh", name:"djksh",
contact_phone:"12345678" contact_phone:"12345678",
is_accept:"0",
gas_exam:"15",
G_17:"1"
} }
} }
}, },
......
...@@ -14,218 +14,6 @@ export default { ...@@ -14,218 +14,6 @@ export default {
}, },
data() { data() {
return { return {
form:{
column: [],
labelPosition: 'right',
labelSuffix: '',
labelWidth: 100,
gutter: 0,
menuBtn: true,
submitBtn: true,
submitText: '提交',
emptyBtn: true,
emptyText: '清空',
nextTabBtn: true,
nextTabText: '下一页',
menuPosition: 'center',
group: [
{
label: '个人信息',
prop: '1669858228269_22763',
arrow: true,
collapse: true,
display: true,
labelWidth: 8,
column: [{
type: 'input',
display: true,
importantField: true,
styles: {},
autoRequired: 0,
personalRequired: 0,
prop: 'name',
label: '姓名',
fieldType: 'varchar',
fieldLength: '50',
tableName: '存活情况',
tableCode: 'gas_survival_situation',
tableId: '1598137567272861697',
notFilter: false,
cType: '',
subfield: false
}, {
type: 'input',
display: true,
importantField: true,
styles: {},
autoRequired: 0,
personalRequired: 0,
prop: 'contact_phone',
label: '手机号',
fieldType: 'varchar',
fieldLength: '20',
tableName: '存活情况',
tableCode: 'gas_survival_situation',
tableId: '1598137567272861697',
notFilter: false,
cType: '',
subfield: false
}, {
type: 'input',
display: true,
importantField: true,
styles: {},
autoRequired: 0,
personalRequired: 0,
prop: 'telephone',
label: '联系电话',
fieldType: 'varchar',
fieldLength: '20',
tableName: '存活情况',
tableCode: 'gas_survival_situation',
tableId: '1598137567272861697',
notFilter: false,
cType: '',
subfield: false
}, {
type: 'input',
display: true,
importantField: true,
styles: {},
autoRequired: 0,
personalRequired: 0,
prop: 'sex',
label: '性别',
fieldType: 'tinyint',
fieldLength: '2',
tableName: '存活情况',
tableCode: 'gas_survival_situation',
tableId: '1598137567272861697',
notFilter: false,
cType: '',
subfield: false
}, {
type: 'input',
display: true,
importantField: true,
styles: {},
autoRequired: 0,
personalRequired: 0,
prop: 'birthday',
label: '出生日期',
fieldType: 'date',
fieldLength: '',
tableName: '存活情况',
tableCode: 'gas_survival_situation',
tableId: '1598137567272861697',
notFilter: false,
cType: '',
subfield: false
}, {
type: 'input',
display: true,
importantField: true,
styles: {},
autoRequired: 0,
personalRequired: 0,
prop: 'age',
label: '年龄',
fieldType: 'int',
fieldLength: '4',
tableName: '存活情况',
tableCode: 'gas_survival_situation',
tableId: '1598137567272861697',
notFilter: false,
cType: '',
subfield: false
}]
},
{
label: '第一次随访计划',
prop: '1669858313508_15760',
arrow: true,
collapse: true,
display: true,
labelWidth: 8,
column: [{
type: 'radio',
display: true,
importantField: true,
styles: {},
prop: 'is_continue_follow',
label: '是否随访',
dicData: [{
label: '',
value: '1',
id: '1595347527757000705',
parentId: ''
}, {
label: '',
value: '0',
id: '1595347502595371010',
parentId: ''
}],
dynamicshSet: [],
dicType: 'd-sf',
props: {
label: 'label',
value: 'value'
},
fieldType: 'tinyint',
fieldLength: '2',
tableName: '随访计划',
tableCode: 'gas_follow',
tableId: '1597491580053323777',
notFilter: false,
cType: '',
subfield: false,
value: '1',
span: 24,
autoRequired: 0,
personalRequired: 0
}, {
type: 'date',
display: true,
importantField: true,
styles: {},
prop: 'first_follow_time',
label: '随访时间',
format: 'yyyy-MM-dd',
valueFormat: 'yyyy-MM-dd',
dicType: '',
fieldType: 'date',
tableName: '随访计划',
tableCode: 'gas_follow',
tableId: '1597491580053323777',
notFilter: false,
cType: '',
subfield: false,
span: 12,
autoRequired: 0,
personalRequired: 0,
width: 12
}, {
type: 'input',
display: true,
importantField: true,
styles: {},
prop: 'follow_contents',
label: '随访内容',
fieldType: 'text',
tableName: '随访计划',
tableCode: 'gas_follow',
tableId: '1597491580053323777',
notFilter: false,
cType: '',
subfield: false,
autoRequired: 0,
personalRequired: 0,
span: 12,
width: 12
}]
},
]
}
} }
}, },
created() {}, created() {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment