Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

PatientBox.vue 34KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983
  1. <template>
  2. <!-- 透析管理患者资料 -->
  3. <div>
  4. <!-- <router-link to="/dialysis/details"> -->
  5. <div
  6. class="patient"
  7. v-for="schedule in schedules"
  8. v-if="schedule.patient"
  9. :class="borderColor(schedule)"
  10. @click.stop="detailAction(schedule)"
  11. :key="schedule.id"
  12. >
  13. <div class="kehu">
  14. <div class="tx">
  15. <img
  16. :src="
  17. schedule.patient.avatar.length > 0
  18. ? schedule.patient.avatar
  19. : '../../assets/home/analyze.png'
  20. "
  21. alt=""
  22. />
  23. <div>
  24. <div class="right">
  25. <h3 class="name">
  26. {{ schedule.patient.name
  27. }}<span class="yc" v-show="isAbnormal(schedule)">异常</span>
  28. </h3>
  29. <span class="num"
  30. >{{ genderText(schedule) }} | {{ getAge(schedule) }} 岁</span
  31. >
  32. <div
  33. style="
  34. margin-left: 10px;
  35. font-size: 12px;
  36. color: #34495e;
  37. margin-right: 5px;
  38. "
  39. v-if="
  40. schedule.assessment_before_dislysis && patientStateVal == 1
  41. "
  42. >
  43. 签到时间:{{
  44. getTime(schedule.assessment_before_dislysis.created_time)
  45. }}
  46. </div>
  47. </div>
  48. <div
  49. style="
  50. margin-top: 5px;
  51. text-align: left;
  52. height: 24px;
  53. min-width: 205px;
  54. "
  55. >
  56. <span
  57. class="tip1"
  58. v-if="
  59. schedule.prescription == null ||
  60. schedule.prescription.creater == 0
  61. "
  62. @click.stop="open(schedule)"
  63. >
  64. 开处方
  65. </span>
  66. <span
  67. class="tip2"
  68. v-if="
  69. schedule.treatment_summary == null ||
  70. schedule.treatment_summary.dialysis_summary == ''
  71. "
  72. @click.stop="open1(schedule)"
  73. >
  74. 开小结
  75. </span>
  76. <span class="online" v-show="computeState(schedule) != 4">
  77. <span :class="stateColor(schedule)">{{
  78. stateText(schedule)
  79. }}</span>
  80. </span>
  81. </div>
  82. </div>
  83. <!-- v-if="schedule.patient.troble_shoot == 1" -->
  84. <div class="difficult" v-if="schedule.patient.troble_shoot == 1">
  85. 疑难内瘘
  86. </div>
  87. <!-- <div style="height:24px;margin-right: 10px;">
  88. <div class="online" v-show="computeState(schedule) != 4">
  89. <p :class="stateColor(schedule)">{{ stateText(schedule) }}</p>
  90. </div>
  91. </div> -->
  92. <!-- <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> -->
  93. </div>
  94. </div>
  95. <div class="dislysisInfo">
  96. <p>
  97. <span v-if="$store.getters.xt_user.org.id!=9671 && $store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340 ">
  98. 体重(前/后kg):
  99. {{schedule.assessment_before_dislysis? schedule.assessment_before_dislysis.weight_before: ""}}
  100. <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>
  101. </span>
  102. <!-- <span v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
  103. 核酸检测日期:<span v-if="schedule.dialysis_order!=null">{{getTimeOne(schedule.dialysis_order.nuclein_date)}}</span>
  104. </span> -->
  105. </p>
  106. <p>
  107. <span v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
  108. 透析时长:
  109. <span v-if="schedule.prescription!=null && schedule.prescription.dialysis_duration_hour >0">{{schedule.prescription.dialysis_duration_hour}}时</span>
  110. <span v-if="schedule.prescription!=null && schedule.prescription.dialysis_duration_minute>0">{{schedule.prescription.dialysis_duration_minute}}分</span>
  111. </span>
  112. </p>
  113. <p>
  114. <span>
  115. 目标超滤量:
  116. <span v-if=" schedule.prescription && schedule.prescription.target_ultrafiltration > 0">
  117. <span v-if="$store.getters.xt_user.org.id==10340"> {{schedule.prescription? schedule.prescription.target_ultrafiltration: ""}}ml</span>
  118. <span v-if="$store.getters.xt_user.org.id!=10340"> {{schedule.prescription? schedule.prescription.target_ultrafiltration: ""}}</span>
  119. </span>
  120. </span>
  121. </p>
  122. <p>
  123. <span v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
  124. 抗凝剂:
  125. <span v-if="schedule.prescription!=null">
  126. <span v-if="schedule.prescription.anticoagulant == 1">无肝素</span>
  127. <span v-if="schedule.prescription.anticoagulant == 2">普通肝素</span>
  128. <span v-if="schedule.prescription.anticoagulant == 3">低分子肝素</span>
  129. <span v-if="schedule.prescription.anticoagulant == 4">阿加曲班</span>
  130. <span v-if="schedule.prescription.anticoagulant == 5">枸橼酸钠</span>
  131. <span v-if="schedule.prescription.anticoagulant == 6">低分子肝素钙</span>
  132. <span v-if="schedule.prescription.anticoagulant == 7">低分子肝素钠</span>
  133. <span v-if="schedule.prescription.anticoagulant == 8">依诺肝素</span>
  134. <span v-if="schedule.prescription.anticoagulant == 9">达肝素</span>
  135. <span v-if="schedule.prescription.anticoagulant == 10">体外抗凝</span>
  136. <span v-if="schedule.prescription.anticoagulant == 11">那屈肝素</span>
  137. <span v-if="schedule.prescription.anticoagulant == 12">无抗凝剂</span>
  138. <span v-if="schedule.prescription.anticoagulant == 13">那屈肝素钙</span>
  139. </span>
  140. </span>
  141. </p>
  142. <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
  143. 总量:
  144. <span v-if="schedule.prescription!=null">
  145. <span v-if="schedule.prescription.anticoagulant == 1">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
  146. <span v-if="schedule.prescription.anticoagulant == 2">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
  147. <span v-if="schedule.prescription.anticoagulant == 3">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
  148. <span v-if="schedule.prescription.anticoagulant == 4">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
  149. <span v-if="schedule.prescription.anticoagulant == 5">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
  150. <span v-if="schedule.prescription.anticoagulant == 6">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
  151. <span v-if="schedule.prescription.anticoagulant == 7">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
  152. <span v-if="schedule.prescription.anticoagulant == 8">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
  153. <span v-if="schedule.prescription.anticoagulant == 9">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
  154. <span v-if="schedule.prescription.anticoagulant == 10">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
  155. <span v-if="schedule.prescription.anticoagulant == 11">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
  156. <span v-if="schedule.prescription.anticoagulant == 12">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
  157. <span v-if="schedule.prescription.anticoagulant == 13">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
  158. </span>
  159. </p>
  160. <p v-if="$store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340">
  161. 透析器/灌流器:{{schedule.prescription? schedule.prescription.dialyzer_perfusion_apparatus: ""}}
  162. <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}</span>
  163. <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
  164. <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
  165. </p>
  166. <p v-if="$store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
  167. 透析器/灌流器:
  168. <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_dialyszers}}</span>
  169. <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_irrigation}}</span>
  170. </p>
  171. <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==10445">
  172. 滤过器:
  173. <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_strainer: ""}}</span>
  174. </p>
  175. <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
  176. 排班备注:{{schedule.dialysis_order&& schedule.dialysis_order.schedule_remark?schedule.dialysis_order.schedule_remark:schedule.patient.schedule_remark}}
  177. </p>
  178. </div>
  179. <div
  180. class="function"
  181. :class="functionColor(schedule)"
  182. :id="modeColor(schedule.mode_id)"
  183. >
  184. <ul>
  185. <li>
  186. <span class="iconfont" :id="modeColor(schedule.mode_id)"
  187. >&#xe6f5;</span
  188. >班次 :
  189. {{ timeTypeText(schedule) }}
  190. </li>
  191. <li>
  192. <span class="iconfont" :id="modeColor(schedule.mode_id)"
  193. >&#xe6de;</span
  194. >床位号 :
  195. {{ schedule.device_number.number }}
  196. </li>
  197. <li>
  198. <span class="iconfont" :id="modeColor(schedule.mode_id)"
  199. >&#xe6f6;</span
  200. >透析模式 :
  201. {{
  202. schedule.mode_id &&
  203. $store.getters.treatment_mode[schedule.mode_id]
  204. ? $store.getters.treatment_mode[schedule.mode_id].name
  205. : ""
  206. }}
  207. </li>
  208. </ul>
  209. </div>
  210. </div>
  211. <!-- </router-link> -->
  212. <dialysis-prescription-dialog
  213. title="透析处方"
  214. ref="prescription"
  215. :patient="patient"
  216. :prescription="prescription"
  217. :solution="solution"
  218. @advice="adviceFunc"
  219. :niprocart_info="niprocart_info"
  220. :jms_info="jms_info"
  221. :fistula_needle_set_info="fistula_needle_set_info"
  222. :fistula_needle_set_16_info="fistula_needle_set_16_info"
  223. :hemoperfusion_info="hemoperfusion_info"
  224. :dialyser_sterilised_info="dialyser_sterilised_info"
  225. :filtryzer_info="filtryzer_info"
  226. :dialyzers_info="dialyzers_info"
  227. :injector_info="injector_info"
  228. :bloodlines_info="bloodlines_info"
  229. :tubingHemodialysis_info="tubingHemodialysis_info"
  230. :safe_package_info="safe_package_info"
  231. :aliquid_info="aliquid_info"
  232. :config="config"
  233. :admin_users="admin_users"
  234. :targetAdvices="longAdvices"
  235. :waitUploadAdvices="waitUploadAdvices"
  236. :is_open="is_open"
  237. :predialysis="predialysis_evaluation"
  238. :last_predialysis="lastPredialysisEvaluation"
  239. :record="assessment_after_dislysis"
  240. :last_record="lastAssessmentAfterDislysis"
  241. :last_prescription="lastDialysisPrescribe"
  242. :dry_weight="lastDryWeightDislysis"
  243. :schedual="temp_schedual"
  244. :date="date"
  245. :stockType="stockType"
  246. ></dialysis-prescription-dialog>
  247. <treatment-summary-dialog
  248. title="治疗小结"
  249. ref="treatmentSummary"
  250. :patient="patient"
  251. :treatment_summary="treatment_summary"
  252. ></treatment-summary-dialog>
  253. </div>
  254. </template>
  255. <script>
  256. import { uParseTime } from '@/utils/tools'
  257. import { parseTime } from "@/utils";
  258. import { jsGetAge } from "@/utils/tools";
  259. import dialysisPrescriptionDialog from "../dialysis/details/dialog/dialysisPrescriptionDialog";
  260. import treatmentSummaryDialog from "../dialysis/details/dialog/treatmentSummaryDialog";
  261. import {
  262. getDialysisScheduleDetail,
  263. getLongAdviceOne,
  264. } from "@/api/dialysis_record";
  265. export default {
  266. name: "PatientBox",
  267. components: {
  268. dialysisPrescriptionDialog,
  269. treatmentSummaryDialog,
  270. },
  271. data() {
  272. return {
  273. patients: [
  274. {
  275. state: 2,
  276. yc: false,
  277. name: "张三",
  278. sex: "女",
  279. age: 90,
  280. },
  281. {
  282. state: 3,
  283. yc: true,
  284. name: "张三",
  285. sex: "女",
  286. age: 90,
  287. },
  288. {
  289. state: 4,
  290. yc: true,
  291. name: "张三",
  292. sex: "女",
  293. age: 90,
  294. },
  295. {
  296. state: 1,
  297. yc: true,
  298. name: "张三",
  299. sex: "女",
  300. age: 90,
  301. },
  302. ],
  303. //
  304. longAdvices: [],
  305. waitUploadAdvices: [],
  306. is_open: 0,
  307. targetAdvices: [],
  308. patient: { id: 0 }, // 患者信息
  309. schedual: { id: 0 }, // 患者排班信息
  310. prescription: { id: 0 }, // 透析处方
  311. solution: { id: 0 }, // 透析方案
  312. system_prescribe: { id: 0 },
  313. receiver_treatment_access: { id: 0 }, // 接诊评估
  314. predialysis_evaluation: { id: 0 }, // 透前评估
  315. doctor_advices: [], // 临时医嘱
  316. double_check: { id: 0 }, // 双人核对
  317. assessment_after_dislysis: { id: 0 }, // 透后评估
  318. treatment_summary: { id: 0 }, // 治疗小结
  319. monitor_records: [], // 透析监测
  320. dialysis_order: { id: 0 }, // 透析记录
  321. admin_users: [], // 系统用户列表
  322. devices: [], // 设备
  323. device_numbers: [], // 床位号
  324. admin_user_map: {}, // {user_id: admin_user object}
  325. device_map: {}, // {device_id: device}
  326. device_number_map: {}, // {device_number_id: device_number}
  327. niprocart_info: [],
  328. jms_info: [],
  329. fistula_needle_set_info: [],
  330. fistula_needle_set_16_info: [],
  331. hemoperfusion_info: [],
  332. dialyser_sterilised_info: [],
  333. filtryzer_info: [],
  334. dialyzers_info: [],
  335. injector_info: [],
  336. bloodlines_info: [],
  337. tubingHemodialysis_info: [],
  338. safe_package_info: [],
  339. aliquid_info: [],
  340. config: {},
  341. lastPredialysisEvaluation: { id: 0 },
  342. lastMonitorRecord: { id: 0 },
  343. lastAssessmentAfterDislysis: { id: 0 },
  344. lastDryWeightDislysis: { id: 0 },
  345. headNurses: [],
  346. lastDialysisPrescribe: { id: 0 },
  347. temp_schedual: null,
  348. date: "",
  349. modedata: 0,
  350. stockType: [],
  351. dryWeightList:[],
  352. };
  353. },
  354. props: {
  355. schedules: {
  356. type: Array,
  357. },
  358. patientStateVal: Number,
  359. selected_date:String,
  360. },
  361. methods: {
  362. getTimeOne(val) {
  363. if(val == ""){
  364. return ""
  365. }else {
  366. return uParseTime(val, '{y}-{m}-{d}')
  367. }
  368. },
  369. stateColor: function (schedual) {
  370. var state = this.computeState(schedual);
  371. if (state == 1) {
  372. return "blue";
  373. } else if (state == 2) {
  374. return "gray";
  375. } else if (state == 3) {
  376. return "red";
  377. } else {
  378. return "blue";
  379. }
  380. },
  381. functionColor: function (schedual) {
  382. var state = this.computeState(schedual);
  383. if (state == 1 || state == 3) {
  384. return "blue";
  385. } else if (state == 2) {
  386. return "gray";
  387. } else {
  388. return "blue";
  389. }
  390. },
  391. borderColor: function (schedual) {
  392. var yc = this.isAbnormal(schedual);
  393. if (yc == true) {
  394. return "red";
  395. } else {
  396. return "gray";
  397. }
  398. },
  399. stateText: function (schedual) {
  400. var state = this.computeState(schedual);
  401. if (state == 1) {
  402. return "已上机";
  403. } else if (state == 2) {
  404. return "已下机";
  405. } else if (state == 3) {
  406. return "监测中";
  407. } else {
  408. // return schedual.patient.gender == 1 ? "男" : "女"
  409. return "未上机";
  410. }
  411. },
  412. computeState: function (schedual) {
  413. if (schedual.dialysis_order == null) {
  414. // 未上机
  415. return 4;
  416. } else if (schedual.dialysis_order.stage == 2) {
  417. // 已下机
  418. return 2;
  419. } else if (
  420. schedual.dialysis_order.stage == 1 &&
  421. schedual.monitoring_records != null &&
  422. schedual.monitoring_records.length > 1
  423. ) {
  424. // 监测中
  425. return 3;
  426. } else {
  427. return 1;
  428. }
  429. },
  430. orderState: function (schedual) {
  431. if (schedual.dialysis_order == null) {
  432. // 未上机
  433. return 4;
  434. } else if (schedual.dialysis_order.stage == 2) {
  435. // 已下机
  436. return 2;
  437. } else if (
  438. schedual.dialysis_order.stage == 1 &&
  439. schedual.monitoring_records != null &&
  440. schedual.monitoring_records.length > 1
  441. ) {
  442. // 监测中
  443. return 3;
  444. } else {
  445. return 1;
  446. }
  447. },
  448. isAbnormal: function (schedual) {
  449. return false; // schedual.yc;
  450. },
  451. timeTypeText: function (schedual) {
  452. if (schedual.schedule_type == 1) {
  453. return "上午";
  454. } else if (schedual.schedule_type == 2) {
  455. return "下午";
  456. } else {
  457. return "晚上";
  458. }
  459. },
  460. genderText: function (schedual) {
  461. if (schedual.patient.gender == 0) {
  462. return "未知";
  463. } else if (schedual.patient.gender == 1) {
  464. return "男";
  465. } else {
  466. return "女";
  467. }
  468. },
  469. age: function (schedual) {
  470. if (schedual.patient.birthday == 0) {
  471. return "";
  472. } else {
  473. return jsGetAge(
  474. parseTime(schedual.patient.birthday, "{y}-{m}-{d}"),
  475. "-"
  476. );
  477. }
  478. // var now = new Date()
  479. // var nowYear = parseTime(now, "{y}")
  480. // var birthdayYear = parseTime(schedual.patient.birthday, "{y}")
  481. // // console.log(nowYear)
  482. // // console.log(birthdayYear)
  483. // return nowYear - birthdayYear
  484. },
  485. getAge: function (val) {
  486. var thisLen = val.patient.id_card_no.length;
  487. var birth = "";
  488. if (thisLen == 15) {
  489. birth = "19" + val.patient.id_card_no.substr(6, 6);
  490. } else {
  491. birth = val.patient.id_card_no.substr(6, 8);
  492. }
  493. var birthtwo =
  494. birth.substr(0, 4) +
  495. "-" +
  496. birth.substr(4, 2) +
  497. "-" +
  498. birth.substr(6, 2);
  499. var age = jsGetAge(birthtwo, "-");
  500. return age;
  501. },
  502. detailAction: function (schedual) {
  503. var patient_id = schedual.patient_id;
  504. var date = schedual.schedule_date;
  505. this.$router.push({
  506. path: "/dialysis/details",
  507. query: {
  508. patient_id: patient_id,
  509. date: date,
  510. patient_name: schedual.patient.name,
  511. mode_id: schedual.mode_id,
  512. },
  513. });
  514. },
  515. //
  516. getScheduleDetail: function () {
  517. var dateStr = parseTime(this.date, "{y}-{m}-{d}");
  518. this.doctor_advices = [];
  519. getDialysisScheduleDetail(this.patient_id, dateStr).then((rs) => {
  520. var resp = rs.data;
  521. if (resp.state == 1) {
  522. var patient = resp.data.patient; // 患者信息
  523. var schedual = resp.data.schedual; // 患者排班信息
  524. var prescription = resp.data.prescription; // 透析处方
  525. if (prescription != null) {
  526. if (prescription.body_fluid == -2) {
  527. prescription.body_fluid = 0;
  528. }
  529. }
  530. console.log("透析处方323332323223323223", prescription);
  531. var solution = resp.data.solution; // 透析方案
  532. var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
  533. console.log("receiver_treatment_access", receiver_treatment_access);
  534. var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
  535. console.log("透前评估", predialysis_evaluation);
  536. if (predialysis_evaluation != null) {
  537. if (predialysis_evaluation.blood_access_part_id == -2) {
  538. predialysis_evaluation.blood_access_part_id = 0;
  539. }
  540. }
  541. var doctor_advices = resp.data.doctor_advices; // 临时医嘱
  542. var double_check = resp.data.double_check; // 双人核对
  543. var assessment_after_dislysis = resp.data.assessment_after_dislysis; // 透后评估
  544. var treatment_summary = resp.data.treatment_summary; // 治疗小结
  545. var monitor_records = resp.data.monitor_records; // 透析监测
  546. var dialysis_order = resp.data.dialysis_order; // 透析记录
  547. var niprocart_info = resp.data.niprocart_info;
  548. var jms_info = resp.data.jms_info;
  549. var fistula_needle_set_info = resp.data.fistula_needle_set_info;
  550. var fistula_needle_set_16_info = resp.data.fistula_needle_set_16_info;
  551. var hemoperfusion_info = resp.data.hemoperfusion_info;
  552. var dialyser_sterilised_info = resp.data.dialyser_sterilised_info;
  553. var filtryzer_info = resp.data.filtryzer_info;
  554. var dialyzers_info = resp.data.dialyzers_info;
  555. var injector_info = resp.data.injector_info;
  556. var bloodlines_info = resp.data.bloodlines_info;
  557. var tubingHemodialysis_info = resp.data.tubingHemodialysis_info;
  558. var safe_package_info = resp.data.safe_package_info;
  559. var aliquid_info = resp.data.aliquid_info;
  560. var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation;
  561. console.log("上次透前评估", lastPredialysisEvaluation);
  562. if (lastPredialysisEvaluation != null) {
  563. if (lastPredialysisEvaluation.blood_access_part_id == -2) {
  564. lastPredialysisEvaluation.blood_access_part_id = 0;
  565. }
  566. }
  567. var lastMonitorRecord = resp.data.lastMonitorRecord;
  568. var lastAssessmentAfterDislysis =
  569. resp.data.lastAssessmentAfterDislysis;
  570. var lastDialysisPrescribe = resp.data.lastDialysisPrescribe;
  571. var lastDryWeightDislysis = resp.data.lastDryWeightDislysis;
  572. var system_prescribe = resp.data.system_prescribe;
  573. var stockType = resp.data.stockType;
  574. this.stockType = stockType;
  575. console.log("元单快乐222222", this.stockType);
  576. this.dryWeightList = resp.data.dryWeightList
  577. this.$refs.prescription.setLastRecord(
  578. schedual,
  579. lastAssessmentAfterDislysis,
  580. lastPredialysisEvaluation,
  581. lastDialysisPrescribe,
  582. lastDryWeightDislysis,
  583. system_prescribe,
  584. resp.data.doctors
  585. );
  586. var headNurses = resp.data.headNurse;
  587. var config = resp.data.config;
  588. this.lastPredialysisEvaluation = lastPredialysisEvaluation;
  589. this.lastMonitorRecord = lastMonitorRecord;
  590. this.lastAssessmentAfterDislysis = lastAssessmentAfterDislysis;
  591. this.lastDialysisPrescribe = lastDialysisPrescribe;
  592. this.lastDryWeightDislysis = lastDryWeightDislysis;
  593. this.headNurses = headNurses;
  594. this.system_prescribe = system_prescribe;
  595. this.niprocart_info = niprocart_info;
  596. this.jms_info = jms_info;
  597. this.fistula_needle_set_info = fistula_needle_set_info;
  598. this.fistula_needle_set_16_info = fistula_needle_set_16_info;
  599. this.hemoperfusion_info = hemoperfusion_info;
  600. this.dialyser_sterilised_info = dialyser_sterilised_info;
  601. this.filtryzer_info = filtryzer_info;
  602. this.dialyzers_info = dialyzers_info;
  603. this.injector_info = injector_info;
  604. this.bloodlines_info = bloodlines_info;
  605. this.tubingHemodialysis_info = tubingHemodialysis_info;
  606. this.safe_package_info = safe_package_info;
  607. this.aliquid_info = aliquid_info;
  608. this.config = config;
  609. this.patient = patient;
  610. this.schedual = schedual == null ? { id: 0 } : schedual;
  611. this.prescription = prescription == null ? { id: 0 } : prescription;
  612. console.log("this.prescription", this.prescription);
  613. this.solution = solution == null ? { id: 0 } : solution;
  614. console.log("this.solution", this.solution);
  615. this.receiver_treatment_access =
  616. receiver_treatment_access == null
  617. ? { id: 0 }
  618. : receiver_treatment_access;
  619. this.predialysis_evaluation =
  620. predialysis_evaluation == null ? { id: 0 } : predialysis_evaluation;
  621. this.doctor_advices = doctor_advices == null ? [] : doctor_advices;
  622. this.double_check = double_check == null ? { id: 0 } : double_check;
  623. this.assessment_after_dislysis =
  624. assessment_after_dislysis == null
  625. ? { id: 0 }
  626. : assessment_after_dislysis;
  627. this.treatment_summary =
  628. treatment_summary == null ? { id: 0 } : treatment_summary;
  629. this.monitor_records = monitor_records == null ? [] : monitor_records;
  630. this.dialysis_order =
  631. dialysis_order == null ? { id: 0 } : dialysis_order;
  632. // this.$refs.stat_order.setAdvices(this.doctor_advices)
  633. // this.$refs.monitoring.setRecords(this.monitor_records)
  634. this.admin_users = resp.data.doctors;
  635. this.$refs.prescription.showOne(this.prescription,this.admin_users)
  636. this.devices = resp.data.devices;
  637. this.device_numbers = resp.data.device_numbers;
  638. var device_map = {};
  639. for (let index = 0; index < this.devices.length; index++) {
  640. const device = this.devices[index];
  641. device_map[device.id] = device;
  642. }
  643. this.device_map = device_map;
  644. var admin_map = {};
  645. for (let index = 0; index < this.admin_users.length; index++) {
  646. const admin = this.admin_users[index];
  647. admin_map[admin.id] = admin;
  648. }
  649. this.admin_user_map = admin_map;
  650. var device_number_map = {};
  651. for (let index = 0; index < this.device_numbers.length; index++) {
  652. const device_number = this.device_numbers[index];
  653. device_number_map[device_number.id] = device_number;
  654. }
  655. this.device_number_map = device_number_map;
  656. this.getLongAdvice();
  657. } else {
  658. this.$message.error(resp.msg);
  659. }
  660. if (this.lastDialysisPrescribe != null) {
  661. delete this.lastDialysisPrescribe.target_ultrafiltration;
  662. }
  663. if (this.solution != null) {
  664. delete this.solution.target_ultrafiltration;
  665. }
  666. });
  667. },
  668. getLongAdvice() {
  669. let params = {
  670. patient_id: this.patient_id,
  671. schedule_date:parseTime(this.selected_date, '{y}-{m}-{d}'),
  672. };
  673. getLongAdviceOne(params).then((rs) => {
  674. var resp = rs.data;
  675. if (resp.state == 1) {
  676. var status = parseInt(resp.data.status);
  677. switch (status) {
  678. case 2:
  679. var totalAdvice = resp.data.advices;
  680. var longAdvicesTwo = resp.data.advices_two;
  681. var waitUploadAdvices = [];
  682. for (let i = 0; i < totalAdvice.length; i++) {
  683. totalAdvice[i]["isCheck"] = 1;
  684. }
  685. for (let i = 0; i < totalAdvice.length; i++) {
  686. for (let a = 0; a < longAdvicesTwo.length; a++) {
  687. if (
  688. totalAdvice[i].template_id ==
  689. longAdvicesTwo[a].template_id &&
  690. totalAdvice[i].frequency_type ==
  691. longAdvicesTwo[a].frequency_type
  692. ) {
  693. totalAdvice[i]["isCheck"] = 0;
  694. }
  695. }
  696. }
  697. for (let i = 0; i < totalAdvice.length; i++) {
  698. if (totalAdvice[i].isCheck == 1) {
  699. waitUploadAdvices.push(totalAdvice[i]);
  700. }
  701. }
  702. this.is_open = resp.data.is_open_remind;
  703. this.longAdvices = totalAdvice;
  704. console.log("长期医嘱22332323232232323",this.longAdvices)
  705. this.waitUploadAdvices = waitUploadAdvices;
  706. break;
  707. }
  708. } else {
  709. this.$message.error(resp.msg);
  710. }
  711. });
  712. },
  713. adviceFunc: function () {
  714. this.$emit("advice");
  715. },
  716. open(schedual) {
  717. this.date = schedual.schedule_date;
  718. this.patient_id = schedual.patient_id;
  719. this.modedata = 1;
  720. this.getScheduleDetail();
  721. // this.getLongAdvice()
  722. this.$refs.prescription.show(this.prescription, schedual,"","","",this.admin_users);
  723. },
  724. open1(schedual) {
  725. this.date = schedual.schedule_date;
  726. this.patient_id = schedual.patient_id;
  727. this.getScheduleDetail();
  728. this.getLongAdvice();
  729. this.$refs.treatmentSummary.show(this.treatment_summary, this.date);
  730. },
  731. getTime(date) {
  732. date = new Date(date * 1000);
  733. var Y = date.getFullYear() + "-";
  734. var M =
  735. date.getMonth() + 1 < 10
  736. ? "0" + (date.getMonth() + 1)
  737. : date.getMonth() + 1;
  738. var D = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
  739. var h = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
  740. var m =
  741. date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
  742. var s =
  743. date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
  744. let strDate = h + ":" + m;
  745. return strDate;
  746. },
  747. modeColor(id) {
  748. if (id == 1) {
  749. } else if (id == 2) {
  750. return "modeRed";
  751. } else if (id == 3) {
  752. return "modePurple";
  753. }
  754. },
  755. },
  756. };
  757. </script>
  758. <style style="stylesheet/scss" lang="scss" scoped>
  759. .patient {
  760. border: 1px #e5e5ee solid;
  761. padding: 9px 0;
  762. margin: 0 15px 15px 0;
  763. float: left;
  764. width: 360px;
  765. cursor: pointer;
  766. .function {
  767. padding: 15px 5px 0 5px;
  768. color: #7b8a97;
  769. ul {
  770. @include display-flex;
  771. @include align-items-center;
  772. @include text-align;
  773. @include justify-content-between;
  774. li {
  775. font-size: 13px;
  776. @include display-flex;
  777. @include align-items-center;
  778. .iconfont {
  779. margin: 0 5px 0 0;
  780. font-size: 18px;
  781. }
  782. }
  783. }
  784. }
  785. .blue {
  786. color: $main-color;
  787. .iconfont {
  788. color: $main-color;
  789. }
  790. }
  791. .kehu {
  792. @include display-flex;
  793. // @include align-items-center;
  794. @include text-align;
  795. @include justify-content-between;
  796. // border-bottom: 1px #e5e5e5 solid;
  797. padding: 0 0 10px 20px;
  798. .tx {
  799. @include display-flex;
  800. // @include align-items-center;
  801. width: 100%;
  802. img {
  803. width: 45px;
  804. height: 45px;
  805. border-radius: 50%;
  806. float: left;
  807. margin: 0 15px 0 0;
  808. }
  809. .right {
  810. // float: left;
  811. // text-align: left;
  812. display: flex;
  813. align-items: center;
  814. margin-top: 6px;
  815. .name {
  816. font-size: 15px;
  817. color: #34495e;
  818. font-weight: bold;
  819. height: 20px;
  820. line-height: 20px;
  821. margin-right: 10px;
  822. .yc {
  823. background: #ff7979;
  824. color: #fff;
  825. height: 19px;
  826. line-height: 19px;
  827. font-size: 12px;
  828. width: 37px;
  829. border-radius: 4px;
  830. display: inline-block;
  831. text-align: center;
  832. margin-left: 6px;
  833. }
  834. }
  835. .num {
  836. font-size: 13px;
  837. color: #7b8a97;
  838. }
  839. }
  840. .tip1 {
  841. background: #4fc7cb;
  842. border-radius: 5px;
  843. text-align: center;
  844. font-size: 12px;
  845. display: inline-block;
  846. width: 60px;
  847. color: #fff;
  848. width: 65px;
  849. height: 24px;
  850. line-height: 24px;
  851. }
  852. .tip2 {
  853. background: #7bce91;
  854. border-radius: 5px;
  855. text-align: center;
  856. font-size: 12px;
  857. display: inline-block;
  858. width: 60px;
  859. color: #fff;
  860. width: 65px;
  861. height: 24px;
  862. line-height: 24px;
  863. }
  864. }
  865. .online {
  866. text-align: center;
  867. width: 30%;
  868. // border-left: 1px #e5e5e5 solid;
  869. span {
  870. background: #c6cdd2;
  871. color: #fff;
  872. width: 65px;
  873. height: 24px;
  874. line-height: 24px;
  875. border-radius: 4px;
  876. margin: 0 auto;
  877. font-size: 12px;
  878. margin-top: 4px;
  879. display: inline-block;
  880. }
  881. .blue {
  882. background: $main-color;
  883. }
  884. .red {
  885. background: #f18f68;
  886. }
  887. .green {
  888. background: #5bd18b;
  889. }
  890. .gray {
  891. background: #a8b3ba;
  892. }
  893. .lightGray {
  894. background: #c6cdd2;
  895. }
  896. .time {
  897. font-size: 26px;
  898. color: #34495e;
  899. }
  900. }
  901. }
  902. .dislysisInfo {
  903. color: rgb(123, 138, 151);
  904. border-bottom: 1px solid rgb(229, 229, 229);
  905. padding-left: 80px;
  906. > p {
  907. margin-bottom: 5px;
  908. overflow: hidden;
  909. text-overflow: ellipsis;
  910. white-space: nowrap;
  911. }
  912. }
  913. }
  914. .red {
  915. border: 1px #ff7979 solid;
  916. }
  917. #modeRed {
  918. color: #ed5555;
  919. }
  920. #modePurple {
  921. color: #53b86e;
  922. }
  923. .difficult {
  924. width: 71px;
  925. height: 25px;
  926. font-size: 12px;
  927. border-radius: 0 0 0 30px;
  928. background: #78d660;
  929. text-align: center;
  930. line-height: 25px;
  931. position: relative;
  932. bottom: 10px;
  933. left: 3px;
  934. color: white;
  935. }
  936. </style>