123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983 |
- <template>
- <!-- 透析管理患者资料 -->
- <div>
- <!-- <router-link to="/dialysis/details"> -->
- <div
- class="patient"
- v-for="schedule in schedules"
- v-if="schedule.patient"
- :class="borderColor(schedule)"
- @click.stop="detailAction(schedule)"
- :key="schedule.id"
- >
- <div class="kehu">
- <div class="tx">
- <img
- :src="
- schedule.patient.avatar.length > 0
- ? schedule.patient.avatar
- : '../../assets/home/analyze.png'
- "
- alt=""
- />
- <div>
- <div class="right">
- <h3 class="name">
- {{ schedule.patient.name
- }}<span class="yc" v-show="isAbnormal(schedule)">异常</span>
- </h3>
- <span class="num"
- >{{ genderText(schedule) }} | {{ getAge(schedule) }} 岁</span
- >
- <div
- style="
- margin-left: 10px;
- font-size: 12px;
- color: #34495e;
- margin-right: 5px;
- "
- v-if="
- schedule.assessment_before_dislysis && patientStateVal == 1
- "
- >
- 签到时间:{{
- getTime(schedule.assessment_before_dislysis.created_time)
- }}
- </div>
- </div>
- <div
- style="
- margin-top: 5px;
- text-align: left;
- height: 24px;
- min-width: 205px;
- "
- >
- <span
- class="tip1"
- v-if="
- schedule.prescription == null ||
- schedule.prescription.creater == 0
- "
- @click.stop="open(schedule)"
- >
- 开处方
- </span>
- <span
- class="tip2"
- v-if="
- schedule.treatment_summary == null ||
- schedule.treatment_summary.dialysis_summary == ''
- "
- @click.stop="open1(schedule)"
- >
- 开小结
- </span>
- <span class="online" v-show="computeState(schedule) != 4">
- <span :class="stateColor(schedule)">{{
- stateText(schedule)
- }}</span>
- </span>
- </div>
- </div>
- <!-- v-if="schedule.patient.troble_shoot == 1" -->
- <div class="difficult" v-if="schedule.patient.troble_shoot == 1">
- 疑难内瘘
- </div>
- <!-- <div style="height:24px;margin-right: 10px;">
- <div class="online" v-show="computeState(schedule) != 4">
- <p :class="stateColor(schedule)">{{ stateText(schedule) }}</p>
- </div>
- </div> -->
- <!-- <div style="margin-top:13px;font-size:12px;color:#34495e;margin-right: 5px;" v-if="schedule.assessment_before_dislysis && patientStateVal == 1">签到时间:{{ getTime(schedule.assessment_before_dislysis.created_time) }}</div> -->
- </div>
- </div>
- <div class="dislysisInfo">
- <p>
- <span v-if="$store.getters.xt_user.org.id!=9671 && $store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340 ">
- 体重(前/后kg):
- {{schedule.assessment_before_dislysis? schedule.assessment_before_dislysis.weight_before: ""}}
- <span v-if="schedule.assessment_after_dislysis &&schedule.assessment_after_dislysis.weight_after > 0">/{{schedule.assessment_after_dislysis? schedule.assessment_after_dislysis.weight_after: ""}}</span>
- </span>
- <!-- <span v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
- 核酸检测日期:<span v-if="schedule.dialysis_order!=null">{{getTimeOne(schedule.dialysis_order.nuclein_date)}}</span>
- </span> -->
- </p>
- <p>
- <span v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
- 透析时长:
- <span v-if="schedule.prescription!=null && schedule.prescription.dialysis_duration_hour >0">{{schedule.prescription.dialysis_duration_hour}}时</span>
- <span v-if="schedule.prescription!=null && schedule.prescription.dialysis_duration_minute>0">{{schedule.prescription.dialysis_duration_minute}}分</span>
- </span>
- </p>
- <p>
- <span>
- 目标超滤量:
- <span v-if=" schedule.prescription && schedule.prescription.target_ultrafiltration > 0">
- <span v-if="$store.getters.xt_user.org.id==10340"> {{schedule.prescription? schedule.prescription.target_ultrafiltration: ""}}ml</span>
- <span v-if="$store.getters.xt_user.org.id!=10340"> {{schedule.prescription? schedule.prescription.target_ultrafiltration: ""}}</span>
- </span>
- </span>
- </p>
- <p>
- <span v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
- 抗凝剂:
- <span v-if="schedule.prescription!=null">
- <span v-if="schedule.prescription.anticoagulant == 1">无肝素</span>
- <span v-if="schedule.prescription.anticoagulant == 2">普通肝素</span>
- <span v-if="schedule.prescription.anticoagulant == 3">低分子肝素</span>
- <span v-if="schedule.prescription.anticoagulant == 4">阿加曲班</span>
- <span v-if="schedule.prescription.anticoagulant == 5">枸橼酸钠</span>
- <span v-if="schedule.prescription.anticoagulant == 6">低分子肝素钙</span>
- <span v-if="schedule.prescription.anticoagulant == 7">低分子肝素钠</span>
- <span v-if="schedule.prescription.anticoagulant == 8">依诺肝素</span>
- <span v-if="schedule.prescription.anticoagulant == 9">达肝素</span>
- <span v-if="schedule.prescription.anticoagulant == 10">体外抗凝</span>
- <span v-if="schedule.prescription.anticoagulant == 11">那屈肝素</span>
- <span v-if="schedule.prescription.anticoagulant == 12">无抗凝剂</span>
- <span v-if="schedule.prescription.anticoagulant == 13">那屈肝素钙</span>
- </span>
- </span>
- </p>
- <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
- 总量:
- <span v-if="schedule.prescription!=null">
- <span v-if="schedule.prescription.anticoagulant == 1">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
- <span v-if="schedule.prescription.anticoagulant == 2">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
- <span v-if="schedule.prescription.anticoagulant == 3">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
- <span v-if="schedule.prescription.anticoagulant == 4">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
- <span v-if="schedule.prescription.anticoagulant == 5">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
- <span v-if="schedule.prescription.anticoagulant == 6">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
- <span v-if="schedule.prescription.anticoagulant == 7">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
- <span v-if="schedule.prescription.anticoagulant == 8">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
- <span v-if="schedule.prescription.anticoagulant == 9">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
- <span v-if="schedule.prescription.anticoagulant == 10">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
- <span v-if="schedule.prescription.anticoagulant == 11">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
- <span v-if="schedule.prescription.anticoagulant == 12">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
- <span v-if="schedule.prescription.anticoagulant == 13">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
- </span>
- </p>
-
-
- <p v-if="$store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340">
- 透析器/灌流器:{{schedule.prescription? schedule.prescription.dialyzer_perfusion_apparatus: ""}}
- <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}</span>
- <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
- <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
- </p>
- <p v-if="$store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
- 透析器/灌流器:
- <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_dialyszers}}</span>
- <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_irrigation}}</span>
-
- </p>
- <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==10445">
- 滤过器:
- <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_strainer: ""}}</span>
- </p>
-
- <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
- 排班备注:{{schedule.dialysis_order&& schedule.dialysis_order.schedule_remark?schedule.dialysis_order.schedule_remark:schedule.patient.schedule_remark}}
- </p>
- </div>
- <div
- class="function"
- :class="functionColor(schedule)"
- :id="modeColor(schedule.mode_id)"
- >
- <ul>
- <li>
- <span class="iconfont" :id="modeColor(schedule.mode_id)"
- ></span
- >班次 :
- {{ timeTypeText(schedule) }}
- </li>
- <li>
- <span class="iconfont" :id="modeColor(schedule.mode_id)"
- ></span
- >床位号 :
- {{ schedule.device_number.number }}
- </li>
- <li>
- <span class="iconfont" :id="modeColor(schedule.mode_id)"
- ></span
- >透析模式 :
- {{
- schedule.mode_id &&
- $store.getters.treatment_mode[schedule.mode_id]
- ? $store.getters.treatment_mode[schedule.mode_id].name
- : ""
- }}
- </li>
- </ul>
- </div>
- </div>
- <!-- </router-link> -->
- <dialysis-prescription-dialog
- title="透析处方"
- ref="prescription"
- :patient="patient"
- :prescription="prescription"
- :solution="solution"
- @advice="adviceFunc"
- :niprocart_info="niprocart_info"
- :jms_info="jms_info"
- :fistula_needle_set_info="fistula_needle_set_info"
- :fistula_needle_set_16_info="fistula_needle_set_16_info"
- :hemoperfusion_info="hemoperfusion_info"
- :dialyser_sterilised_info="dialyser_sterilised_info"
- :filtryzer_info="filtryzer_info"
- :dialyzers_info="dialyzers_info"
- :injector_info="injector_info"
- :bloodlines_info="bloodlines_info"
- :tubingHemodialysis_info="tubingHemodialysis_info"
- :safe_package_info="safe_package_info"
- :aliquid_info="aliquid_info"
- :config="config"
- :admin_users="admin_users"
- :targetAdvices="longAdvices"
- :waitUploadAdvices="waitUploadAdvices"
- :is_open="is_open"
- :predialysis="predialysis_evaluation"
- :last_predialysis="lastPredialysisEvaluation"
- :record="assessment_after_dislysis"
- :last_record="lastAssessmentAfterDislysis"
- :last_prescription="lastDialysisPrescribe"
- :dry_weight="lastDryWeightDislysis"
- :schedual="temp_schedual"
- :date="date"
- :stockType="stockType"
- ></dialysis-prescription-dialog>
- <treatment-summary-dialog
- title="治疗小结"
- ref="treatmentSummary"
- :patient="patient"
- :treatment_summary="treatment_summary"
- ></treatment-summary-dialog>
- </div>
- </template>
-
- <script>
- import { uParseTime } from '@/utils/tools'
- import { parseTime } from "@/utils";
- import { jsGetAge } from "@/utils/tools";
- import dialysisPrescriptionDialog from "../dialysis/details/dialog/dialysisPrescriptionDialog";
- import treatmentSummaryDialog from "../dialysis/details/dialog/treatmentSummaryDialog";
- import {
- getDialysisScheduleDetail,
- getLongAdviceOne,
- } from "@/api/dialysis_record";
-
- export default {
- name: "PatientBox",
- components: {
- dialysisPrescriptionDialog,
- treatmentSummaryDialog,
- },
- data() {
- return {
- patients: [
- {
- state: 2,
- yc: false,
- name: "张三",
- sex: "女",
- age: 90,
- },
- {
- state: 3,
- yc: true,
- name: "张三",
- sex: "女",
- age: 90,
- },
- {
- state: 4,
- yc: true,
- name: "张三",
- sex: "女",
- age: 90,
- },
- {
- state: 1,
- yc: true,
- name: "张三",
- sex: "女",
- age: 90,
- },
- ],
- //
- longAdvices: [],
- waitUploadAdvices: [],
- is_open: 0,
- targetAdvices: [],
-
- patient: { id: 0 }, // 患者信息
- schedual: { id: 0 }, // 患者排班信息
- prescription: { id: 0 }, // 透析处方
- solution: { id: 0 }, // 透析方案
- system_prescribe: { id: 0 },
- receiver_treatment_access: { id: 0 }, // 接诊评估
- predialysis_evaluation: { id: 0 }, // 透前评估
- doctor_advices: [], // 临时医嘱
- double_check: { id: 0 }, // 双人核对
- assessment_after_dislysis: { id: 0 }, // 透后评估
- treatment_summary: { id: 0 }, // 治疗小结
- monitor_records: [], // 透析监测
- dialysis_order: { id: 0 }, // 透析记录
- admin_users: [], // 系统用户列表
- devices: [], // 设备
- device_numbers: [], // 床位号
-
- admin_user_map: {}, // {user_id: admin_user object}
- device_map: {}, // {device_id: device}
- device_number_map: {}, // {device_number_id: device_number}
-
- niprocart_info: [],
- jms_info: [],
- fistula_needle_set_info: [],
- fistula_needle_set_16_info: [],
- hemoperfusion_info: [],
- dialyser_sterilised_info: [],
- filtryzer_info: [],
- dialyzers_info: [],
- injector_info: [],
- bloodlines_info: [],
- tubingHemodialysis_info: [],
- safe_package_info: [],
- aliquid_info: [],
- config: {},
-
- lastPredialysisEvaluation: { id: 0 },
- lastMonitorRecord: { id: 0 },
- lastAssessmentAfterDislysis: { id: 0 },
- lastDryWeightDislysis: { id: 0 },
- headNurses: [],
- lastDialysisPrescribe: { id: 0 },
- temp_schedual: null,
- date: "",
- modedata: 0,
- stockType: [],
- dryWeightList:[],
- };
- },
- props: {
- schedules: {
- type: Array,
- },
- patientStateVal: Number,
- selected_date:String,
- },
-
- methods: {
- getTimeOne(val) {
- if(val == ""){
- return ""
- }else {
- return uParseTime(val, '{y}-{m}-{d}')
- }
- },
- stateColor: function (schedual) {
- var state = this.computeState(schedual);
- if (state == 1) {
- return "blue";
- } else if (state == 2) {
- return "gray";
- } else if (state == 3) {
- return "red";
- } else {
- return "blue";
- }
- },
- functionColor: function (schedual) {
- var state = this.computeState(schedual);
- if (state == 1 || state == 3) {
- return "blue";
- } else if (state == 2) {
- return "gray";
- } else {
- return "blue";
- }
- },
- borderColor: function (schedual) {
- var yc = this.isAbnormal(schedual);
- if (yc == true) {
- return "red";
- } else {
- return "gray";
- }
- },
- stateText: function (schedual) {
- var state = this.computeState(schedual);
- if (state == 1) {
- return "已上机";
- } else if (state == 2) {
- return "已下机";
- } else if (state == 3) {
- return "监测中";
- } else {
- // return schedual.patient.gender == 1 ? "男" : "女"
- return "未上机";
- }
- },
- computeState: function (schedual) {
- if (schedual.dialysis_order == null) {
- // 未上机
- return 4;
- } else if (schedual.dialysis_order.stage == 2) {
- // 已下机
- return 2;
- } else if (
- schedual.dialysis_order.stage == 1 &&
- schedual.monitoring_records != null &&
- schedual.monitoring_records.length > 1
- ) {
- // 监测中
- return 3;
- } else {
- return 1;
- }
- },
-
- orderState: function (schedual) {
- if (schedual.dialysis_order == null) {
- // 未上机
- return 4;
- } else if (schedual.dialysis_order.stage == 2) {
- // 已下机
- return 2;
- } else if (
- schedual.dialysis_order.stage == 1 &&
- schedual.monitoring_records != null &&
- schedual.monitoring_records.length > 1
- ) {
- // 监测中
- return 3;
- } else {
- return 1;
- }
- },
- isAbnormal: function (schedual) {
- return false; // schedual.yc;
- },
- timeTypeText: function (schedual) {
- if (schedual.schedule_type == 1) {
- return "上午";
- } else if (schedual.schedule_type == 2) {
- return "下午";
- } else {
- return "晚上";
- }
- },
- genderText: function (schedual) {
- if (schedual.patient.gender == 0) {
- return "未知";
- } else if (schedual.patient.gender == 1) {
- return "男";
- } else {
- return "女";
- }
- },
- age: function (schedual) {
- if (schedual.patient.birthday == 0) {
- return "";
- } else {
- return jsGetAge(
- parseTime(schedual.patient.birthday, "{y}-{m}-{d}"),
- "-"
- );
- }
-
- // var now = new Date()
- // var nowYear = parseTime(now, "{y}")
- // var birthdayYear = parseTime(schedual.patient.birthday, "{y}")
- // // console.log(nowYear)
- // // console.log(birthdayYear)
- // return nowYear - birthdayYear
- },
- getAge: function (val) {
- var thisLen = val.patient.id_card_no.length;
- var birth = "";
- if (thisLen == 15) {
- birth = "19" + val.patient.id_card_no.substr(6, 6);
- } else {
- birth = val.patient.id_card_no.substr(6, 8);
- }
- var birthtwo =
- birth.substr(0, 4) +
- "-" +
- birth.substr(4, 2) +
- "-" +
- birth.substr(6, 2);
-
- var age = jsGetAge(birthtwo, "-");
- return age;
- },
- detailAction: function (schedual) {
- var patient_id = schedual.patient_id;
- var date = schedual.schedule_date;
- this.$router.push({
- path: "/dialysis/details",
- query: {
- patient_id: patient_id,
- date: date,
- patient_name: schedual.patient.name,
- mode_id: schedual.mode_id,
- },
- });
- },
- //
- getScheduleDetail: function () {
- var dateStr = parseTime(this.date, "{y}-{m}-{d}");
- this.doctor_advices = [];
- getDialysisScheduleDetail(this.patient_id, dateStr).then((rs) => {
- var resp = rs.data;
- if (resp.state == 1) {
- var patient = resp.data.patient; // 患者信息
-
- var schedual = resp.data.schedual; // 患者排班信息
- var prescription = resp.data.prescription; // 透析处方
- if (prescription != null) {
- if (prescription.body_fluid == -2) {
- prescription.body_fluid = 0;
- }
- }
- console.log("透析处方323332323223323223", prescription);
- var solution = resp.data.solution; // 透析方案
- var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
- console.log("receiver_treatment_access", receiver_treatment_access);
- var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
- console.log("透前评估", predialysis_evaluation);
- if (predialysis_evaluation != null) {
- if (predialysis_evaluation.blood_access_part_id == -2) {
- predialysis_evaluation.blood_access_part_id = 0;
- }
- }
- var doctor_advices = resp.data.doctor_advices; // 临时医嘱
-
- var double_check = resp.data.double_check; // 双人核对
- var assessment_after_dislysis = resp.data.assessment_after_dislysis; // 透后评估
-
- var treatment_summary = resp.data.treatment_summary; // 治疗小结
- var monitor_records = resp.data.monitor_records; // 透析监测
- var dialysis_order = resp.data.dialysis_order; // 透析记录
-
- var niprocart_info = resp.data.niprocart_info;
- var jms_info = resp.data.jms_info;
- var fistula_needle_set_info = resp.data.fistula_needle_set_info;
- var fistula_needle_set_16_info = resp.data.fistula_needle_set_16_info;
- var hemoperfusion_info = resp.data.hemoperfusion_info;
- var dialyser_sterilised_info = resp.data.dialyser_sterilised_info;
- var filtryzer_info = resp.data.filtryzer_info;
- var dialyzers_info = resp.data.dialyzers_info;
- var injector_info = resp.data.injector_info;
- var bloodlines_info = resp.data.bloodlines_info;
- var tubingHemodialysis_info = resp.data.tubingHemodialysis_info;
- var safe_package_info = resp.data.safe_package_info;
- var aliquid_info = resp.data.aliquid_info;
-
- var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation;
- console.log("上次透前评估", lastPredialysisEvaluation);
- if (lastPredialysisEvaluation != null) {
- if (lastPredialysisEvaluation.blood_access_part_id == -2) {
- lastPredialysisEvaluation.blood_access_part_id = 0;
- }
- }
- var lastMonitorRecord = resp.data.lastMonitorRecord;
- var lastAssessmentAfterDislysis =
- resp.data.lastAssessmentAfterDislysis;
- var lastDialysisPrescribe = resp.data.lastDialysisPrescribe;
- var lastDryWeightDislysis = resp.data.lastDryWeightDislysis;
-
- var system_prescribe = resp.data.system_prescribe;
-
- var stockType = resp.data.stockType;
- this.stockType = stockType;
- console.log("元单快乐222222", this.stockType);
-
- this.dryWeightList = resp.data.dryWeightList
-
- this.$refs.prescription.setLastRecord(
- schedual,
- lastAssessmentAfterDislysis,
- lastPredialysisEvaluation,
- lastDialysisPrescribe,
- lastDryWeightDislysis,
- system_prescribe,
- resp.data.doctors
- );
-
- var headNurses = resp.data.headNurse;
-
- var config = resp.data.config;
- this.lastPredialysisEvaluation = lastPredialysisEvaluation;
- this.lastMonitorRecord = lastMonitorRecord;
- this.lastAssessmentAfterDislysis = lastAssessmentAfterDislysis;
- this.lastDialysisPrescribe = lastDialysisPrescribe;
- this.lastDryWeightDislysis = lastDryWeightDislysis;
- this.headNurses = headNurses;
- this.system_prescribe = system_prescribe;
-
- this.niprocart_info = niprocart_info;
- this.jms_info = jms_info;
- this.fistula_needle_set_info = fistula_needle_set_info;
- this.fistula_needle_set_16_info = fistula_needle_set_16_info;
- this.hemoperfusion_info = hemoperfusion_info;
- this.dialyser_sterilised_info = dialyser_sterilised_info;
- this.filtryzer_info = filtryzer_info;
- this.dialyzers_info = dialyzers_info;
- this.injector_info = injector_info;
- this.bloodlines_info = bloodlines_info;
- this.tubingHemodialysis_info = tubingHemodialysis_info;
- this.safe_package_info = safe_package_info;
- this.aliquid_info = aliquid_info;
- this.config = config;
-
- this.patient = patient;
- this.schedual = schedual == null ? { id: 0 } : schedual;
- this.prescription = prescription == null ? { id: 0 } : prescription;
- console.log("this.prescription", this.prescription);
- this.solution = solution == null ? { id: 0 } : solution;
- console.log("this.solution", this.solution);
- this.receiver_treatment_access =
- receiver_treatment_access == null
- ? { id: 0 }
- : receiver_treatment_access;
- this.predialysis_evaluation =
- predialysis_evaluation == null ? { id: 0 } : predialysis_evaluation;
- this.doctor_advices = doctor_advices == null ? [] : doctor_advices;
- this.double_check = double_check == null ? { id: 0 } : double_check;
- this.assessment_after_dislysis =
- assessment_after_dislysis == null
- ? { id: 0 }
- : assessment_after_dislysis;
- this.treatment_summary =
- treatment_summary == null ? { id: 0 } : treatment_summary;
- this.monitor_records = monitor_records == null ? [] : monitor_records;
- this.dialysis_order =
- dialysis_order == null ? { id: 0 } : dialysis_order;
-
- // this.$refs.stat_order.setAdvices(this.doctor_advices)
- // this.$refs.monitoring.setRecords(this.monitor_records)
-
- this.admin_users = resp.data.doctors;
- this.$refs.prescription.showOne(this.prescription,this.admin_users)
- this.devices = resp.data.devices;
- this.device_numbers = resp.data.device_numbers;
-
- var device_map = {};
- for (let index = 0; index < this.devices.length; index++) {
- const device = this.devices[index];
- device_map[device.id] = device;
- }
- this.device_map = device_map;
-
- var admin_map = {};
- for (let index = 0; index < this.admin_users.length; index++) {
- const admin = this.admin_users[index];
- admin_map[admin.id] = admin;
- }
- this.admin_user_map = admin_map;
-
- var device_number_map = {};
- for (let index = 0; index < this.device_numbers.length; index++) {
- const device_number = this.device_numbers[index];
- device_number_map[device_number.id] = device_number;
- }
- this.device_number_map = device_number_map;
- this.getLongAdvice();
- } else {
- this.$message.error(resp.msg);
- }
-
- if (this.lastDialysisPrescribe != null) {
- delete this.lastDialysisPrescribe.target_ultrafiltration;
- }
- if (this.solution != null) {
- delete this.solution.target_ultrafiltration;
- }
- });
- },
- getLongAdvice() {
-
- let params = {
- patient_id: this.patient_id,
- schedule_date:parseTime(this.selected_date, '{y}-{m}-{d}'),
- };
- getLongAdviceOne(params).then((rs) => {
- var resp = rs.data;
- if (resp.state == 1) {
- var status = parseInt(resp.data.status);
-
- switch (status) {
- case 2:
- var totalAdvice = resp.data.advices;
- var longAdvicesTwo = resp.data.advices_two;
- var waitUploadAdvices = [];
- for (let i = 0; i < totalAdvice.length; i++) {
- totalAdvice[i]["isCheck"] = 1;
- }
-
- for (let i = 0; i < totalAdvice.length; i++) {
- for (let a = 0; a < longAdvicesTwo.length; a++) {
- if (
- totalAdvice[i].template_id ==
- longAdvicesTwo[a].template_id &&
- totalAdvice[i].frequency_type ==
- longAdvicesTwo[a].frequency_type
- ) {
- totalAdvice[i]["isCheck"] = 0;
- }
- }
- }
-
- for (let i = 0; i < totalAdvice.length; i++) {
- if (totalAdvice[i].isCheck == 1) {
- waitUploadAdvices.push(totalAdvice[i]);
- }
- }
-
- this.is_open = resp.data.is_open_remind;
-
- this.longAdvices = totalAdvice;
- console.log("长期医嘱22332323232232323",this.longAdvices)
- this.waitUploadAdvices = waitUploadAdvices;
- break;
- }
- } else {
- this.$message.error(resp.msg);
- }
- });
- },
- adviceFunc: function () {
- this.$emit("advice");
- },
- open(schedual) {
-
- this.date = schedual.schedule_date;
- this.patient_id = schedual.patient_id;
- this.modedata = 1;
- this.getScheduleDetail();
- // this.getLongAdvice()
- this.$refs.prescription.show(this.prescription, schedual,"","","",this.admin_users);
-
- },
- open1(schedual) {
- this.date = schedual.schedule_date;
- this.patient_id = schedual.patient_id;
- this.getScheduleDetail();
- this.getLongAdvice();
- this.$refs.treatmentSummary.show(this.treatment_summary, this.date);
- },
- getTime(date) {
- date = new Date(date * 1000);
- var Y = date.getFullYear() + "-";
- var M =
- date.getMonth() + 1 < 10
- ? "0" + (date.getMonth() + 1)
- : date.getMonth() + 1;
- var D = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
- var h = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
- var m =
- date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
- var s =
- date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
-
- let strDate = h + ":" + m;
- return strDate;
- },
- modeColor(id) {
- if (id == 1) {
- } else if (id == 2) {
- return "modeRed";
- } else if (id == 3) {
- return "modePurple";
- }
- },
-
- },
- };
- </script>
-
- <style style="stylesheet/scss" lang="scss" scoped>
- .patient {
- border: 1px #e5e5ee solid;
- padding: 9px 0;
- margin: 0 15px 15px 0;
- float: left;
- width: 360px;
- cursor: pointer;
- .function {
- padding: 15px 5px 0 5px;
- color: #7b8a97;
- ul {
- @include display-flex;
- @include align-items-center;
- @include text-align;
- @include justify-content-between;
- li {
- font-size: 13px;
- @include display-flex;
- @include align-items-center;
- .iconfont {
- margin: 0 5px 0 0;
- font-size: 18px;
- }
- }
- }
- }
- .blue {
- color: $main-color;
- .iconfont {
- color: $main-color;
- }
- }
- .kehu {
- @include display-flex;
- // @include align-items-center;
- @include text-align;
- @include justify-content-between;
- // border-bottom: 1px #e5e5e5 solid;
- padding: 0 0 10px 20px;
- .tx {
- @include display-flex;
- // @include align-items-center;
- width: 100%;
- img {
- width: 45px;
- height: 45px;
- border-radius: 50%;
- float: left;
- margin: 0 15px 0 0;
- }
- .right {
- // float: left;
- // text-align: left;
- display: flex;
- align-items: center;
- margin-top: 6px;
- .name {
- font-size: 15px;
- color: #34495e;
- font-weight: bold;
- height: 20px;
- line-height: 20px;
- margin-right: 10px;
- .yc {
- background: #ff7979;
- color: #fff;
- height: 19px;
- line-height: 19px;
- font-size: 12px;
- width: 37px;
- border-radius: 4px;
- display: inline-block;
- text-align: center;
- margin-left: 6px;
- }
- }
- .num {
- font-size: 13px;
- color: #7b8a97;
- }
- }
- .tip1 {
- background: #4fc7cb;
- border-radius: 5px;
- text-align: center;
- font-size: 12px;
- display: inline-block;
- width: 60px;
- color: #fff;
- width: 65px;
- height: 24px;
- line-height: 24px;
- }
- .tip2 {
- background: #7bce91;
- border-radius: 5px;
- text-align: center;
- font-size: 12px;
- display: inline-block;
- width: 60px;
- color: #fff;
- width: 65px;
- height: 24px;
- line-height: 24px;
- }
- }
-
- .online {
- text-align: center;
- width: 30%;
- // border-left: 1px #e5e5e5 solid;
- span {
- background: #c6cdd2;
- color: #fff;
- width: 65px;
- height: 24px;
- line-height: 24px;
- border-radius: 4px;
- margin: 0 auto;
- font-size: 12px;
- margin-top: 4px;
- display: inline-block;
- }
- .blue {
- background: $main-color;
- }
- .red {
- background: #f18f68;
- }
- .green {
- background: #5bd18b;
- }
- .gray {
- background: #a8b3ba;
- }
- .lightGray {
- background: #c6cdd2;
- }
- .time {
- font-size: 26px;
- color: #34495e;
- }
- }
- }
- .dislysisInfo {
- color: rgb(123, 138, 151);
- border-bottom: 1px solid rgb(229, 229, 229);
- padding-left: 80px;
- > p {
- margin-bottom: 5px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- }
- }
- .red {
- border: 1px #ff7979 solid;
- }
- #modeRed {
- color: #ed5555;
- }
- #modePurple {
- color: #53b86e;
- }
-
- .difficult {
- width: 71px;
- height: 25px;
- font-size: 12px;
- border-radius: 0 0 0 30px;
- background: #78d660;
- text-align: center;
- line-height: 25px;
- position: relative;
- bottom: 10px;
- left: 3px;
- color: white;
- }
- </style>
|