|
|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div class="" style="width: 100%;display: flex;margin-top: 15px;"> |
|
|
|
<div style="width: 90%"> |
|
|
|
<el-table :data="tableData" style="width: 100%" class="el-table__body-wrapper tbody" |
|
|
|
<el-table :data="tableData" style="width: 100%" class="el-table__body-wrapper tbody" border |
|
|
|
:height="window.pageHeight < 600 ? 260 : window.pageHeight - 340" @row-click="rowick" highlight-current-row> |
|
|
|
<!-- |
|
|
|
<el-table-column prop="forSexId" label="性别"> |
|
|
|
@ -10,16 +10,28 @@ |
|
|
|
{{ ldddw(forSexId, "id", scope.row.forSexId, "displayName") }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
--> |
|
|
|
<el-table-column prop="ageLowerLimit" label="年龄上限" align="center"/> |
|
|
|
<el-table-column prop="ageUpperLimit" label="年龄下限" align="center"/> |
|
|
|
<el-table-column prop="sexHormoneTermId" label="激素期" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ |
|
|
|
ldddw( |
|
|
|
sexHormoneTerm, |
|
|
|
"id", |
|
|
|
scope.row.sexHormoneTermId, |
|
|
|
"displayName" |
|
|
|
) |
|
|
|
}} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
--> |
|
|
|
<el-table-column prop="ageLowerLimit" label="年龄上限" /> |
|
|
|
<el-table-column prop="ageUpperLimit" label="年龄下限" /> |
|
|
|
|
|
|
|
<el-table-column prop="sexHormoneTermId" label="激素期" /> |
|
|
|
<el-table-column prop="referenceRangeValue" label="参考范围" /> |
|
|
|
<el-table-column prop="followUpRangeValue" label="随访范围" /> |
|
|
|
<el-table-column prop="criticalRangeValue" label="危急范围" /> |
|
|
|
<el-table-column prop="lowerDiagnosisId" label="偏低诊断"> |
|
|
|
<el-table-column prop="referenceRangeValue" label="参考范围" align="center"/> |
|
|
|
<el-table-column prop="followUpRangeValue" label="随访范围" align="center"/> |
|
|
|
<el-table-column prop="criticalRangeValue" label="危急范围" align="center"/> |
|
|
|
<el-table-column prop="lowerDiagnosisId" label="偏低诊断" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ |
|
|
|
@ -33,7 +45,7 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="upperDiagnosisId" label="偏高诊断"> |
|
|
|
<el-table-column prop="upperDiagnosisId" label="偏高诊断" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ |
|
|
|
@ -110,14 +122,16 @@ |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="偏低诊断" prop=""> |
|
|
|
<el-select v-model="form.lowerDiagnosisId" placeholder="请选择" filterable :filter-method="remoteMethods" |
|
|
|
default-first-option clearable @change="quckEditdigoisce" size="small"> |
|
|
|
default-first-option clearable popper-class="diagnosisSelect" :popper-append-to-body="false" |
|
|
|
@change="quckEditdigoisce" size="small"> |
|
|
|
<el-option v-for="item in diagnosis" :key="item.id" :label="item.displayName" :value="item.id"> |
|
|
|
</el-option> |
|
|
|
</el-select> </el-form-item></el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="偏高诊断" prop=""> |
|
|
|
<el-select v-model="form.upperDiagnosisId" placeholder="请选择" filterable :filter-method="remoteMethodes" |
|
|
|
default-first-option clearable @change="quckEditdigoisces" size="small"> |
|
|
|
default-first-option clearable popper-class="diagnosisSelect" :popper-append-to-body="false" |
|
|
|
@change="quckEditdigoisces" size="small"> |
|
|
|
<el-option v-for="item in diagnosies" :key="item.id" :label="item.displayName" :value="item.id"> |
|
|
|
</el-option> |
|
|
|
</el-select> </el-form-item></el-col> |
|
|
|
@ -176,8 +190,9 @@ export default { |
|
|
|
followUpRangeValue: "", |
|
|
|
lowerDiagnosisId: "", |
|
|
|
upperDiagnosisId: "", |
|
|
|
referenceRangeTypeFlag: "1", |
|
|
|
referenceRangeTypeFlag: "3", |
|
|
|
}, |
|
|
|
|
|
|
|
sexHormoneTerm: [], |
|
|
|
id: "", //新增/编辑 或删除的记录 id |
|
|
|
forSexId: [], //性别 |
|
|
|
@ -199,25 +214,29 @@ export default { |
|
|
|
|
|
|
|
//诊断 |
|
|
|
postapi("/api/app/Diagnosis/GetSimpleList").then((res) => { |
|
|
|
this.diagnosis = res.data; |
|
|
|
this.diagnosies = res.data |
|
|
|
this.diagnosisId = res.data |
|
|
|
}); |
|
|
|
this.diagnosis = res.data; |
|
|
|
this.diagnosies = res.data |
|
|
|
this.diagnosisId = res.data |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
this.addtoedit(); |
|
|
|
this.getlist(this.itemId); |
|
|
|
if (this.$refs.form !== undefined) { |
|
|
|
this.$refs.form.resetFields() |
|
|
|
} |
|
|
|
this.getlist(this.itemId, this.ReferenceRangeTypeFlag); |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapState(["itemSet", "window"]), |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getlist(itemId) { |
|
|
|
postapi('/api/app/SexHormoneReferenceRange/GetListByItemId', { itemId }) |
|
|
|
.then(res => { |
|
|
|
this.tableData = res.data; |
|
|
|
}); |
|
|
|
|
|
|
|
getlist(itemId, ReferenceRangeTypeFlag) { |
|
|
|
getapi( |
|
|
|
`/api/app/reference-range/in-type/${itemId}?ReferenceRangeTypeFlag=${ReferenceRangeTypeFlag}` |
|
|
|
).then((res) => { |
|
|
|
this.tableData = res.data; |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
@ -314,9 +333,10 @@ export default { |
|
|
|
confirmButtonClass: "commonbutton" |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
return postapi('/api/app/SexHormoneReferenceRange/Delete', { |
|
|
|
sexHormoneReferenceRangeId: this.form.id |
|
|
|
}); |
|
|
|
return deletapi(`/api/app/reference-range/${this.id}`, this.form); |
|
|
|
// return postapi('/api/app/SexHormoneReferenceRange/Delete', { |
|
|
|
// sexHormoneReferenceRangeId: this.form.id |
|
|
|
// }); |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
@ -332,23 +352,23 @@ export default { |
|
|
|
|
|
|
|
confirmationRequest() { |
|
|
|
if (!this.id) { |
|
|
|
postapi('/api/app/SexHormoneReferenceRange/Create', this.form) |
|
|
|
postapi('/api/app/ReferenceRange/CreateSexHormoneTermReferenceRange', this.form) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
console.log("新增成功"); |
|
|
|
this.getlist(this.itemId); |
|
|
|
this.getlist(this.itemId, this.ReferenceRangeTypeFlag); |
|
|
|
this.id = this.curRowes.id; |
|
|
|
this.dialogVisible = false |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
postapi(`/api/app/SexHormoneReferenceRange/Update`, Object.assign({ sexHormoneReferenceRangeId: this.form.id }, this.form)) |
|
|
|
postapi(`/api/app/ReferenceRange/UpdateSexHormoneTermReferenceRange`, Object.assign({ referenceRangeId: this.form.id }, this.form)) |
|
|
|
.then( |
|
|
|
(res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
console.log("修改成功"); |
|
|
|
this.dialogVisible = false |
|
|
|
this.getlist(this.itemId); |
|
|
|
this.getlist(this.itemId, this.ReferenceRangeTypeFlag); |
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
@ -392,4 +412,9 @@ export default { |
|
|
|
/* :deep .el-form-item { |
|
|
|
margin-bottom: 14px; |
|
|
|
} */ |
|
|
|
::v-deep .diagnosisSelect .el-select-dropdown__wrap { |
|
|
|
background-color: #FFF; |
|
|
|
max-height: 288px; |
|
|
|
max-width: 280px; |
|
|
|
} |
|
|
|
</style> |