|
|
@ -534,6 +534,7 @@ |
|
|
v-if="referencerangevalue == 0" |
|
|
v-if="referencerangevalue == 0" |
|
|
style="margin-top: 20px" |
|
|
style="margin-top: 20px" |
|
|
></el-card> |
|
|
></el-card> |
|
|
|
|
|
<!-- 数字型参考范围 --> |
|
|
<div style="display: flex" v-if="referencerangevalue == 1"> |
|
|
<div style="display: flex" v-if="referencerangevalue == 1"> |
|
|
<div style="width: 95%"> |
|
|
<div style="width: 95%"> |
|
|
<el-card style="margin-top: 20px"> |
|
|
<el-card style="margin-top: 20px"> |
|
|
@ -554,17 +555,15 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="年龄>"> |
|
|
|
|
|
<template> |
|
|
|
|
|
|
|
|
<el-table-column label="年龄范围"> |
|
|
|
|
|
<template slot-scope="item"> |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="tabelform.ageLowerLimit" |
|
|
|
|
|
@blur="inputbulue" |
|
|
|
|
|
|
|
|
v-model="item.row.name" |
|
|
|
|
|
@blur="blurInput(item.row.id, 'name', item.row.name)" |
|
|
></el-input> |
|
|
></el-input> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="年龄<="> |
|
|
|
|
|
<el-input></el-input> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="参考下限"> |
|
|
<el-table-column label="参考下限"> |
|
|
<template> |
|
|
<template> |
|
|
<el-input></el-input> |
|
|
<el-input></el-input> |
|
|
@ -593,13 +592,14 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<!-- 字符型参考范围 --> |
|
|
<div v-if="referencerangevalue == 2"> |
|
|
<div v-if="referencerangevalue == 2"> |
|
|
<div style="margin: 20px 0; display: flex"> |
|
|
<div style="margin: 20px 0; display: flex"> |
|
|
<div style="width: 90%"> |
|
|
<div style="width: 90%"> |
|
|
<el-input |
|
|
<el-input |
|
|
type="textarea" |
|
|
type="textarea" |
|
|
placeholder="请输入内容" |
|
|
placeholder="请输入内容" |
|
|
v-model="form.displayName" |
|
|
|
|
|
|
|
|
v-model="fssubdex" |
|
|
maxlength="300" |
|
|
maxlength="300" |
|
|
show-word-limit |
|
|
show-word-limit |
|
|
style="height: 50px" |
|
|
style="height: 50px" |
|
|
@ -629,9 +629,7 @@ |
|
|
<el-button @click="referencerangedialogVisible = false" |
|
|
<el-button @click="referencerangedialogVisible = false" |
|
|
>取 消</el-button |
|
|
>取 消</el-button |
|
|
> |
|
|
> |
|
|
<el-button type="primary" @click="referencerangedialogVisible = false" |
|
|
|
|
|
>确 定</el-button |
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="determinetype">确 定</el-button> |
|
|
</span> |
|
|
</span> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<!-- 项目结果模板弹框 --> |
|
|
<!-- 项目结果模板弹框 --> |
|
|
@ -725,18 +723,6 @@ |
|
|
:show-all-levels="false" |
|
|
:show-all-levels="false" |
|
|
:props="props" |
|
|
:props="props" |
|
|
></el-cascader> |
|
|
></el-cascader> |
|
|
<!-- <el-select |
|
|
|
|
|
v-model="editdigoisceditingform.itemTypeId" |
|
|
|
|
|
placeholder="请选择" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in itemTypeId" |
|
|
|
|
|
:key="item.id" |
|
|
|
|
|
:label="item.displayName" |
|
|
|
|
|
:value="item.id" |
|
|
|
|
|
> |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</el-select> --> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
@ -817,6 +803,17 @@ |
|
|
<el-button type="primary" @click="diagnosticsadd">确 定</el-button> |
|
|
<el-button type="primary" @click="diagnosticsadd">确 定</el-button> |
|
|
</span> |
|
|
</span> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
<!--诊断设置弹框 --> |
|
|
|
|
|
<el-dialog title="诊断建议设置" :visible.sync="dialogVisible" width="80%"> |
|
|
|
|
|
|
|
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button> |
|
|
|
|
|
<el-button type="primary" @click="dialogVisible = false" |
|
|
|
|
|
>确 定</el-button |
|
|
|
|
|
> |
|
|
|
|
|
</span> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- --> |
|
|
<!-- --> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
@ -839,16 +836,16 @@ import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
tabelform: { |
|
|
|
|
|
ageLowerLimit: "input无法输入", |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// tabelform: { |
|
|
|
|
|
// ageLowerLimit: "input无法输入", |
|
|
|
|
|
// }, |
|
|
sexname: [], |
|
|
sexname: [], |
|
|
sexid: [], |
|
|
sexid: [], |
|
|
treeprops: { |
|
|
treeprops: { |
|
|
label: "displayName", |
|
|
label: "displayName", |
|
|
value: "id", |
|
|
value: "id", |
|
|
children: "treeChildren", |
|
|
children: "treeChildren", |
|
|
}, |
|
|
|
|
|
|
|
|
}, //左侧树形结构需要的数据 |
|
|
editdigoisceditingform: { |
|
|
editdigoisceditingform: { |
|
|
displayName: "", |
|
|
displayName: "", |
|
|
itemTypeId: "", |
|
|
itemTypeId: "", |
|
|
@ -857,7 +854,7 @@ export default { |
|
|
isSummaryTemplate: "", |
|
|
isSummaryTemplate: "", |
|
|
forSexId: "", |
|
|
forSexId: "", |
|
|
diagnosisLevelId: "", |
|
|
diagnosisLevelId: "", |
|
|
}, //诊断编辑需要绑定的对象 |
|
|
|
|
|
|
|
|
}, //诊断编辑需要绑定的对象诊断所需要的编辑 |
|
|
diagnosticediting: false, //诊断编辑 |
|
|
diagnosticediting: false, //诊断编辑 |
|
|
diagnosdialogVisible: false, //匹配诊断 |
|
|
diagnosdialogVisible: false, //匹配诊断 |
|
|
diagnosticdata: [], //匹配诊断 |
|
|
diagnosticdata: [], //匹配诊断 |
|
|
@ -1108,6 +1105,18 @@ export default { |
|
|
value: "id", |
|
|
value: "id", |
|
|
children: "treeChildren", |
|
|
children: "treeChildren", |
|
|
}, //左侧树形结构 |
|
|
}, //左侧树形结构 |
|
|
|
|
|
newssdate: [ |
|
|
|
|
|
{ |
|
|
|
|
|
id: "1", |
|
|
|
|
|
name: "", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
id: "2", |
|
|
|
|
|
name: "", |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
ssdate: [], |
|
|
|
|
|
fssubdex: "", |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
@ -1119,8 +1128,42 @@ export default { |
|
|
this.typeid(); |
|
|
this.typeid(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
inputbulue() { |
|
|
|
|
|
console.log(yzstr(this.tabelform.ageLowerLimit)); |
|
|
|
|
|
|
|
|
//参考范围确定类型 |
|
|
|
|
|
determinetype() { |
|
|
|
|
|
if (this.referencerangevalue == 2) { |
|
|
|
|
|
console.log(this.form.id); |
|
|
|
|
|
let obj = { |
|
|
|
|
|
itemId: this.form.id, |
|
|
|
|
|
referenceRangeValue: this.fssubdex, |
|
|
|
|
|
referenceRangeTypeFlag: this.referencerangevalue, |
|
|
|
|
|
}; |
|
|
|
|
|
postapi("/api/app/reference-range/text", obj).then((res) => { |
|
|
|
|
|
this.$message.success("新增成功"); |
|
|
|
|
|
this.fssubdex = res.data.referenceRangeValue; |
|
|
|
|
|
this.diagnosdialogVisible = false; |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
async blurInput(id, name, value) { |
|
|
|
|
|
var isdate = false; //是否存在 |
|
|
|
|
|
for (var i = 0; i < this.newssdate.length; i++) { |
|
|
|
|
|
if (this.newssdate[i].id == id) { |
|
|
|
|
|
isdate = true; |
|
|
|
|
|
console.log("888"); |
|
|
|
|
|
console.log(this.newssdate[i][name]); |
|
|
|
|
|
|
|
|
|
|
|
this.newssdate[i][name] = value; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!isdate) { |
|
|
|
|
|
for (var j = 0; j < this.ssdate.length; j++) { |
|
|
|
|
|
if (this.ssdate[j].id == id) { |
|
|
|
|
|
this.newssdate.push(this.ssdate[j]); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// |
|
|
}, |
|
|
}, |
|
|
treeclick(data) { |
|
|
treeclick(data) { |
|
|
getapi(`/api/app/item/in-item-type/${data.id}`).then((res) => { |
|
|
getapi(`/api/app/item/in-item-type/${data.id}`).then((res) => { |
|
|
@ -1332,6 +1375,7 @@ export default { |
|
|
this.pages.Filter = item.displayName; |
|
|
this.pages.Filter = item.displayName; |
|
|
this.item = item; |
|
|
this.item = item; |
|
|
this.formid = item.id; |
|
|
this.formid = item.id; |
|
|
|
|
|
console.log(this.item); |
|
|
//console.log(item); |
|
|
//console.log(item); |
|
|
// quersmedicalid(item.id).then((res) => { |
|
|
// quersmedicalid(item.id).then((res) => { |
|
|
// console.log(res); |
|
|
// console.log(res); |
|
|
|