123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692 |
- <template>
- <div class="plate-box">
- <h2 class="title">
- <span class="line"></span>
- <p>{{ title }}</p>
- <span class="line"></span>
- </h2>
- <div class="plate ">
- <ul>
- <li v-if="isShow('透前称重')">
- <label>透前称重 : </label>
- <span class="content">{{ weight_before ? weight_before : "" }}</span>
- <span class="unit">{{ weight_before ? "kg" : "" }}</span>
- </li>
- <li v-if="this.$store.getters.user.template_info.template_id == 6">
- <label>透前净体重 : </label>
- <span
- class="content">{{ weight_before ? parseFloat(weight_before - additional_weight).toFixed(1) : "" }}</span>
- <span class="unit">{{ weight_before ? "kg" : "" }}</span>
- </li>
- <li v-if="isShow('收缩压')">
- <label>收缩压 : </label>
- <span class="content">{{
- systolic_blood_pressure ? systolic_blood_pressure : ""
- }}</span>
- <span class="unit">{{ systolic_blood_pressure ? "mmHg" : "" }}</span>
- </li>
-
- <li v-if="isShow('舒张压')">
- <label>舒张压 : </label>
- <span class="content">{{
- diastolic_blood_pressure ? diastolic_blood_pressure : ""
- }}</span>
- <span class="unit">{{ diastolic_blood_pressure ? "mmHg" : "" }}</span>
- </li>
-
- <li v-if="isShow('前次透析后')">
- <label>前次透析后: </label>
- <span class="content">{{ last_post_dialysis }}</span>
- <span class="unit"></span>
- </li>
- <li v-if="isShow('导管打折')">
- <label>导管打折 : </label>
- <span class="content" v-if="this.record.catheter_bend == 1">{{ '有' }}</span>
- <span class="content" v-if="this.record.catheter_bend == 2">{{ '无' }}</span>
-
- <span class="unit"></span>
- </li>
-
- <li v-if="isShow('导管')">
- <label>导管 : </label>
- <span class="content">{{ catheter }}</span>
- <span class="unit"></span>
- </li>
- <li v-if="isShow('衣物重')">
- <label>衣物重 : </label>
- <span class="content">{{
- additional_weight ? additional_weight : ""
- }}</span>
- <span class="unit">{{ additional_weight ? "kg" : "" }}</span>
- </li>
- <li v-if="isShow('干体重')">
- <label>干体重 : </label>
- <span class="content">{{ dry_weight ? dry_weight : "" }}</span>
- <span class="unit">{{ dry_weight ? "kg" : "" }}</span>
- </li>
- <li v-if="isShow('透析期间')">
- <label>透析期间 : </label>
- <span class="content">{{ dialysis_interphase }}</span>
- <span class="unit"></span>
- </li>
-
- <!-- </ul>
- <ul> -->
- <li v-if="isShow('体温')">
- <label>体温 : </label>
- <span class="content">{{ temperature ? temperature : "" }}</span>
- <span class="unit">{{ temperature ? "℃" : "" }}</span>
- </li>
- <li v-if="isShow('脉搏')">
- <label>脉搏 : </label>
- <span class="content">{{
- pulse_frequency ? pulse_frequency : ""
- }}</span>
- <span class="unit">{{ pulse_frequency ? "次/分" : "" }}</span>
- </li>
-
- <li v-if="isShow('呼吸频率')">
- <label>呼吸频率 : </label>
- <span class="content">{{
- breathing_rate ? breathing_rate : ""
- }}</span>
- <span class="unit">{{ breathing_rate ? "次/分" : "" }}</span>
- </li>
- <li v-if="isShow('透析前症状')">
- <label>透析前症状 : </label>
- <span class="content">{{ symptom_before_dialysis }}</span>
- <span class="unit"></span>
- </li>
- <li v-if="isShow('出血')">
- <label>出血:</label>
- <span class="content">{{
- is_hemorrhage ? hemorrhage + ";" + hemorrhage_other : "无"
- }}</span>
- <span class="unit"> </span>
- </li>
-
- <li v-if="isShow('并发症')">
- <label>并发症: </label>
- <span class="content">{{ complication }}</span>
- <span class="unit"></span>
- </li>
-
- <li v-if="isShow('内瘘')">
- <label>内瘘: </label>
- <span class="content">{{ internal_fistula }}</span>
- <span class="unit"></span>
- </li>
-
- <!-- </ul>
-
- <ul> -->
-
- <li v-if="isShow('透析机型号')">
- <label>透析机型号: </label>
- <span class="content">{{ machine_type ? machine_type : "" }}</span>
- <span class="unit"></span>
- </li>
-
- <li v-if="isShow('透析频次')">
- <label>透析频次: </label>
- <span class="content">{{
- dialysis_count ? dialysis_count : ""
- }}</span>
- <span class="unit">{{ dialysis_count ? "次/周" : "" }}</span>
- </li>
- <li v-if="isShow('血管通路(内瘘)')">
- <label>血管通路(内瘘) : </label>
- <span class="content">{{ blood_access_internal_fistula }}</span>
- </li>
- <li v-if="isShow('血管杂音')">
- <label>血管杂音 : </label>
- <span class="content">{{
- getBloodAccessNoise(this.record.blood_access_noise)
- }}</span>
- </li>
-
- <li v-if="isShow('穿刺针')">
- <label>穿刺针 : </label>
- <span class="content">{{ this.record.puncture_needle }}</span>
- </li>
-
- <li v-if="isShow('穿刺方式')">
- <label>穿刺方式 : </label>
- <span class="content">{{ getWay(this.record.puncture_way) }}</span>
- </li>
- <li v-if="isShow('中心静脉置管')">
- <label>中心静脉置管:</label>
- <span class="content">{{
- getVenousCatheterization(this.record.venous_catheterization)
- }}</span>
- <span class="unit"> </span>
- </li>
- <!--
- </ul>
-
- <ul > -->
- <li v-if="isShow('位置')">
- <label>位置:</label>
- <span class="content">{{
- getVenousCatheterizationPart(
- this.record.venous_catheterization_part
- )
- }}</span>
- <span class="content">{{ venous_catheterization_part_other }}</span>
- </li>
-
- <li v-if="isShow('中心静脉导管')">
- <label>中心静脉导管: </label>
- <span class="content">{{ this.record.ductus_arantii }}</span>
- </li>
-
- <li v-if="isShow('导管其他')">
- <label>导管其他:</label>
- <span class="content">{{ ductus_arantii_other }}</span>
- <span class="unit"> </span>
- </li>
-
- <li v-if="isShow('急诊')">
- <label>急诊: </label>
- <span class="content">{{
- getEmergencyTreatment(this.record.emergency_treatment)
- }}</span>
- <span class="content">{{ emergency_treatment_other }}</span>
- </li>
-
- <li v-if="isShow('感染')">
- <label>感染:</label>
- <span class="content">{{
- this.record.is_infect == 1 ? "无" : "有"
- }}</span>
- <span class="unit"> </span>
- </li>
-
- <li v-if="isShow('其他感染情况')">
- <label>其他感染情况:</label>
- <span class="content">{{ infect_other }}</span>
- <span class="unit"> </span>
- </li>
-
- <li v-if="isShow('外露')">
- <label>外露:</label>
- <span class="content">{{
- this.record.exposed ? this.record.exposed : ""
- }}</span>
- <span class="unit">cm</span>
- </li>
-
- <li v-if="isShow('皮肤')">
- <label>皮肤:</label>
- <span class="content">{{ getSkin(this.record.skin) }}</span>
- <span class="unit"></span>
- </li>
-
- <li v-if="isShow('其他皮肤情况')">
- <label>其他皮肤情况:</label>
- <span class="content">{{ skin_other }}</span>
- <span class="unit"> </span>
- </li>
-
- <li v-if="isShow('血管通路操作')">
- <label>血管通路操作:</label>
- <span class="content">{{ getBloodAccessOpera(this.record.blood_access_part_opera_id) }}</span>
- <span class="unit"> </span>
- </li>
-
- <li v-if="isShow('体液过多症状')">
- <label>体液过多症状:</label>
- <span class="content">{{ getHumorExcessiv(this.record.humor_excessive_symptom) }}</span>
- <span class="unit"> </span>
- </li>
-
- <li v-if="isShow('血管通路操作')">
- <label>血管通路操作:</label>
- <span class="content">{{ getBloodAccessOpera(this.record.blood_access_part_opera_id) }}</span>
- <span class="unit"> </span>
- </li>
-
- <li v-if="isShow('血管通路皮肤情况')">
- <label>血管通路皮肤情况: </label>
- <span class="content">{{ internal_fistula_skin }}</span>
- <span class="unit"></span>
- </li>
-
- </ul>
- </div>
- <div class="note">
- 备注 : <span>{{ remark }}</span>
- </div>
- </div>
- </template>
-
- <script>
- import { getDataConfig } from '@/utils/data'
-
- export default {
- name: 'assessmentBefore',
-
- data () {
- return {
- title: '透前评估 ',
- template_id: 0
- }
- },
- props: {
- record: {
- type: Object
- },
- dry_weights: {
- type: Object
- }
- },
- created () {
- this.template_id = this.$store.getters.user.template_info.template_id
- },
- computed: {
- internal_fistula_skin: function () {
- if (this.record.id == 0) {
- return '-'
- }
-
- return this.record.internal_fistula_skin
- },
-
- machine_type: function () {
- if (this.record == null || this.record.id == '') {
- return ''
- }
- return this.record.machine_type
- },
- weight_before: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.weight_before
- },
- additional_weight: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.additional_weight
- },
- systolic_blood_pressure: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.systolic_blood_pressure
- },
- last_post_dialysis: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.last_post_dialysis
- },
-
- dry_weight: function () {
- if (this.$store.getters.user.template_info.template_id == 6) {
- if (this.dry_weights != null && this.dry_weights.id > 0) {
- return this.dry_weights.dry_weight
- } else {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.dry_weight
- }
- } else {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
-
- return this.record.dry_weight
- }
- },
- diastolic_blood_pressure: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.diastolic_blood_pressure
- },
- dialysis_interphase: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.dialysis_interphase
- },
- catheter: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.catheter
- },
-
- temperature: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.temperature
- },
- pulse_frequency: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.pulse_frequency
- },
- breathing_rate: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.breathing_rate
- },
- symptom_before_dialysis: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.symptom_before_dialysis
- },
- complication: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.complication
- },
- internal_fistula: function () {
- console.log(this.record)
- if (this.record == null || this.record.id == '') {
- return '-'
- } else {
- return this.record.internal_fistula
- // if (this.record != null && this.record.id != undefined && this.record.id > 0) {
- // var internal_fistula_list = getDataConfig(
- // "hemodialysis",
- // "internal_fistula"
- // );
- // var value = ""
- // if (this.record.internal_fistula.length > 0) {
- // var internal_fistula_value_arr = this.record.internal_fistula.split(",")
- // for (let a = 0; a < internal_fistula_value_arr.length; a++) {
- // for (let i = 0; i < internal_fistula_list.length; i++) {
- // console.log(internal_fistula_list[i].name)
- // if (internal_fistula_value_arr[a] == internal_fistula_list[i].name) {
- // if (value.length == 0) {
- // value = internal_fistula_value_arr[a]
- // } else {
- // value = value + "," + internal_fistula_value_arr[a]
- // }
- // }
- // }
- // }
- // }
- // return value;
- // }else{
- // return "-";
- //
- // }
- }
- },
- is_hemorrhage: function () {
- if (this.record == null || this.record.id == '') {
- return false
- }
- return this.record.is_hemorrhage == 1
- },
- hemorrhage: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.hemorrhage
- },
- hemorrhage_other: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.hemorrhage_other
- },
-
- remark: function () {
- if (this.record == null || this.record.id == '') {
- return ''
- }
- return this.record.remark
- },
- dialysis_count: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.dialysis_count
- },
- internal_fistula_other: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.internal_fistula_other
- },
- venous_catheterization_part_other: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.venous_catheterization_part_other
- },
- emergency_treatment_other: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.emergency_treatment_other
- },
- blood_access_internal_fistula: function () {
- var name1 = ''
- var name2 = ''
-
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- if (this.record.blood_access_internal_fistula == undefined) {
- name1 = ''
- } else {
- name1 = this.record.blood_access_internal_fistula + ','
- }
- if (this.record.internal_fistula_other == undefined) {
- name2 = ''
- } else {
- name2 = this.record.internal_fistula_other
- }
-
- return name1 + name2
- },
- infect_other: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.infect_other
- },
- skin_other: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.skin_other
- },
- ductus_arantii_other: function () {
- if (this.record == null || this.record.id == '') {
- return '-'
- }
- return this.record.ductus_arantii_other
- }
- },
- methods: {
- getBloodAccessPart: function (id) {
- var BloodAccessPart = getDataConfig('hemodialysis', 'vascular_access')
- var BloodAccessPartName = ''
- for (let i = 0; i < BloodAccessPart.length; i++) {
- if (BloodAccessPart[i].id == id) {
- BloodAccessPartName = BloodAccessPart[i].name
- }
- }
- return BloodAccessPartName
- },
- getHumorExcessiv: function (id) {
- var humor_excessive_symptom_array = getDataConfig('hemodialysis', 'humor_excessive_symptom')
- var humor_excessive_symptom_Name = ''
- for (let i = 0; i < humor_excessive_symptom_array.length; i++) {
- if (humor_excessive_symptom_array[i].id == id) {
- humor_excessive_symptom_Name = humor_excessive_symptom_array[i].name
- }
- }
- return humor_excessive_symptom_Name
- },
- getBloodAccessOpera: function (id) {
- var BloodAccessOpera = getDataConfig(
- 'hemodialysis',
- 'vascular_access_desc'
- )
- var BloodAccessOperaName = ''
- for (let i = 0; i < BloodAccessOpera.length; i++) {
- if (BloodAccessOpera[i].id == id) {
- BloodAccessOperaName = BloodAccessOpera[i].name
- }
- }
- return BloodAccessOperaName
- },
- isShow (name) {
- var filedList = this.$store.getters.user.fileds
-
- for (let i = 0; i < filedList.length; i++) {
- if (
- filedList[i].module == 3 &&
- filedList[i].filed_name_cn == name &&
- filedList[i].is_show == 1
- ) {
- return true
- }
- }
- return false
- },
- getBloodAccessInternalFistula: function (id) {
- var BloodAccessInternalFistulaOptions = this.$store.getters
- .blood_access_internal_fistula
- var BloodAccessInternalFistulaName = ''
- for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++) {
- if (BloodAccessInternalFistulaOptions[i].id == id) {
- BloodAccessInternalFistulaName =
- BloodAccessInternalFistulaOptions[i].name
- }
- }
- return BloodAccessInternalFistulaName
- },
- getBloodAccessNoise: function (id) {
- var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise
- var BloodAccessNoiseName = ''
- for (let i = 0; i < BloodAccessNoiseOptions.length; i++) {
- if (BloodAccessNoiseOptions[i].id == id) {
- BloodAccessNoiseName = BloodAccessNoiseOptions[i].name
- }
- }
- return BloodAccessNoiseName
- },
- getVenousCatheterization: function (id) {
- var VenousCatheterizationOptions = this.$store.getters
- .venous_catheterization
- var VenousCatheterizationName = ''
- for (let i = 0; i < VenousCatheterizationOptions.length; i++) {
- if (VenousCatheterizationOptions[i].id == id) {
- VenousCatheterizationName = VenousCatheterizationOptions[i].name
- }
- }
- return VenousCatheterizationName
- },
- getWay: function (id) {
- var PunctureWayOptions = getDataConfig('hemodialysis', 'puncture_method')
- var PunctureWayOptionsName = ''
- for (let i = 0; i < PunctureWayOptions.length; i++) {
- if (PunctureWayOptions[i].id == id) {
- PunctureWayOptionsName = PunctureWayOptions[i].name
- }
- }
- return PunctureWayOptionsName
- },
- getVenousCatheterizationPart: function (id) {
- var venousCatheterizationPartOptions = this.$store.getters
- .venous_catheterization_part
- var venousCatheterizationPartName = ''
- for (let i = 0; i < venousCatheterizationPartOptions.length; i++) {
- if (venousCatheterizationPartOptions[i].id == id) {
- venousCatheterizationPartName =
- venousCatheterizationPartOptions[i].name
- }
- }
- return venousCatheterizationPartName
- },
- getDuctusArantii: function (id) {
- var ductusArantiiOptions = this.$store.getters.ductus_arantii
- var ductusArantiiOptionsName = ''
- for (let i = 0; i < ductusArantiiOptions.length; i++) {
- if (ductusArantiiOptions[i].id == id) {
- ductusArantiiOptionsName = ductusArantiiOptions[i].name
- }
- }
- return ductusArantiiOptionsName
- },
- getEmergencyTreatment: function (id) {
- var emergencyTreatmentOptions = this.$store.getters.emergency_treatment
- var emergencyTreatmentName = ''
- for (let i = 0; i < emergencyTreatmentOptions.length; i++) {
- if (emergencyTreatmentOptions[i].id == id) {
- emergencyTreatmentName = emergencyTreatmentOptions[i].name
- }
- }
- return emergencyTreatmentName
- },
- getSkin: function (id) {
- var skinOptions = this.$store.getters.skin
- var skinName = ''
- for (let i = 0; i < skinOptions.length; i++) {
- if (skinOptions[i].id == id) {
- skinName = skinOptions[i].name
- }
- }
- return skinName
- }
- // setRecord(record) {
- // if (record == null) {
- // this.info1[0].content = "0"
- // this.info1[1].content = "0"
- // this.info1[2].content = "0"
- // // this.info1[3].content = ""
-
- // this.info2[0].content = "0"
- // this.info2[1].content = "0"
- // this.info2[2].content = ""
- // this.info2[3].content = ""
-
- // this.info3[0].content = "0"
- // this.info3[1].content = "0"
- // this.info3[2].content = ""
- // this.info3[3].content = ""
-
- // this.note = ""
-
- // } else {
- // this.info1[0].content = record.weight_before
- // this.info1[1].content = record.systolic_blood_pressure
- // this.info1[2].content = record.last_post_dialysis
- // // this.info1[3].content = ""
-
- // this.info2[0].content = record.additional_weight
- // this.info2[1].content = record.diastolic_blood_pressure
- // this.info2[2].content = record.dialysis_interphase
- // this.info2[3].content = record.catheter
-
- // this.info3[0].content = record.temperature
- // this.info3[1].content = record.breathing_rate
- // this.info3[2].content = record.symptom_before_dialysis
- // this.info3[3].content = record.complication
-
- // this.note = record.remark
- // }
- // }
- }
- }
- </script>
-
- <style rel="stylesheet/scss" lang="scss" scoped>
- </style>
|