treatmentSummaryDialog.vue 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845
  1. <template>
  2. <div>
  3. <el-dialog
  4. class="newDialog"
  5. title="治疗小结"
  6. width="854px"
  7. :visible.sync="isVisibility"
  8. :modal-append-to-body="false"
  9. >
  10. <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
  11. <el-form :model="treatmentSummary" ref="treatmentSummary">
  12. <el-row :gutter="20">
  13. <el-col :span="24" v-if="isShow('宣教知识')">
  14. <el-form-item
  15. label="宣教知识:"
  16. :prop="isName('宣教知识')"
  17. :rules="isCheckmust('宣教知识')"
  18. >
  19. <el-select @change="dialysisAfterTeachSelectChange" v-model="value">
  20. <el-option
  21. v-for="(item, index) in education"
  22. :label="item.text"
  23. :value="item.value"
  24. :key="index"
  25. ></el-option>
  26. </el-select>
  27. </el-form-item>
  28. </el-col>
  29. </el-row>
  30. <el-row :gutter="20">
  31. <el-col v-if="isShow('宣教知识')">
  32. <el-form-item
  33. :prop="isName('宣教知识')"
  34. :rules="isCheckmust('宣教知识')"
  35. >
  36. <el-input
  37. type="textarea"
  38. v-model="treatmentSummary.mission"
  39. :rows="4"
  40. ></el-input>
  41. </el-form-item>
  42. </el-col>
  43. </el-row>
  44. <el-row :gutter="20">
  45. <el-col :span="24" v-if="isShow('透析小结')">
  46. <el-form-item
  47. label="透析小结:"
  48. :prop="isName('透析小结')"
  49. :rules="isCheckmust('透析小结')"
  50. >
  51. <el-select @change="dialysisSummarySelectChange" v-model="value2">
  52. <el-option
  53. v-for="(item, index) in summary"
  54. :label="item.text"
  55. :value="item.value"
  56. :key="index"
  57. ></el-option>
  58. </el-select>
  59. </el-form-item>
  60. </el-col>
  61. </el-row>
  62. <el-button type="primary" size="small" @click="autoClick" style="margin-top: 5px;margin-bottom: 5px;" v-if="org_id ==9671 || org_id==10440 || org_id == 10495">自动生成</el-button>
  63. <el-row :gutter="20">
  64. <el-col v-if="isShow('透析小结')">
  65. <el-form-item
  66. :prop="isName('透析小结')"
  67. :rules="isCheckmust('透析小结')"
  68. >
  69. <el-input
  70. type="textarea"
  71. v-model="treatmentSummary.dialysis_summary"
  72. :rows="4"
  73. ></el-input>
  74. </el-form-item>
  75. </el-col>
  76. </el-row>
  77. <el-row :gutter="20">
  78. <el-col :span="24" v-if="isShow('透析护理记录')">
  79. <el-form-item
  80. label="透析护理记录:"
  81. :prop="isName('透析护理记录')"
  82. :rules="isCheckmust('透析护理记录')"
  83. >
  84. <el-select
  85. @change="dialysisNusingRecordSelectChange"
  86. v-model="value3"
  87. >
  88. <el-option
  89. v-for="(item, index) in nursingRecord"
  90. :label="item.text"
  91. :value="item.value"
  92. :key="index"
  93. ></el-option>
  94. </el-select>
  95. </el-form-item>
  96. </el-col>
  97. </el-row>
  98. <el-row :gutter="20">
  99. <el-col v-if="isShow('透析护理记录')">
  100. <el-form-item
  101. :prop="isName('透析护理记录')"
  102. :rules="isCheckmust('透析护理记录')"
  103. >
  104. <el-input
  105. type="textarea"
  106. v-model="treatmentSummary.nursing_record"
  107. :rows="4"
  108. ></el-input>
  109. </el-form-item>
  110. </el-col>
  111. </el-row>
  112. <el-row :gutter="20">
  113. <el-col :span="24" v-if="isShow('特殊记录')">
  114. <el-form-item
  115. label="特殊记录:"
  116. :prop="isName('特殊记录')"
  117. :rules="isCheckmust('特殊记录')"
  118. >
  119. <el-select
  120. @change="dialysisSpecialRecordSelectChange"
  121. v-model="value4"
  122. >
  123. <el-option
  124. v-for="(item, index) in specialRecord"
  125. :label="item.text"
  126. :value="item.value"
  127. :key="index"
  128. ></el-option>
  129. </el-select>
  130. </el-form-item>
  131. </el-col>
  132. </el-row>
  133. <el-row :gutter="20">
  134. <el-col v-if="isShow('特殊记录')">
  135. <el-form-item
  136. :prop="isName('特殊记录')"
  137. :rules="isCheckmust('特殊记录')"
  138. >
  139. <el-input
  140. type="textarea"
  141. v-model="treatmentSummary.special_record"
  142. :rows="4"
  143. ></el-input>
  144. </el-form-item>
  145. </el-col>
  146. </el-row>
  147. </el-form>
  148. <div slot="footer" class="dialog-footer">
  149. <el-button @click="handleCancle">取 消</el-button>
  150. <el-button
  151. type="primary"
  152. @click="handleComfirm('treatmentSummary')"
  153. v-if="hasPermission"
  154. >保 存</el-button> <!-- -->
  155. </div>
  156. </el-dialog>
  157. <el-dialog
  158. title="提示"
  159. :visible.sync="infoDialogVisible"
  160. width="30%">
  161. <span>
  162. <el-form>
  163. <el-row>
  164. <span>申请日期:</span>
  165. <span>
  166. <el-date-picker
  167. type="datetime"
  168. format="yyyy-MM-dd HH:mm"
  169. value-format="yyyy-MM-dd HH:mm"
  170. placeholder="选择时间"
  171. v-model="selected_date"
  172. ></el-date-picker>
  173. </span>
  174. </el-row>
  175. <el-row>
  176. <span>备注:</span>
  177. <span>
  178. <el-input v-model="remark" style="width:200px"></el-input>
  179. </span>
  180. </el-row>
  181. </el-form>
  182. </span>
  183. <span slot="footer" class="dialog-footer">
  184. <el-button @click="infoDialogVisible = false">取 消</el-button>
  185. <el-button type="primary" @click="saveInformation">确 定</el-button>
  186. </span>
  187. </el-dialog>
  188. </div>
  189. </template>
  190. <script>
  191. import { getDataConfig } from "@/utils/data";
  192. import { postTreatmentsummary,saveInformation } from "@/api/dialysis";
  193. import { uParseTime } from "@/utils/tools";
  194. import store from "@/store";
  195. import request from "@/utils/request";
  196. import { parseTime } from "@/utils";
  197. export default {
  198. name: "treatmentSummaryDialog",
  199. props: {
  200. treatment_summary: {
  201. // 治疗小结
  202. type: Object,
  203. default: () => {
  204. return { id: 0 };
  205. },
  206. },
  207. patient: {
  208. // 患者信息
  209. type: Object,
  210. default: () => {
  211. return { id: 0 };
  212. },
  213. },
  214. prescription:{
  215. type:Object,
  216. default: () => {
  217. return { id: 0 };
  218. },
  219. },
  220. predialysis_evaluation:{
  221. type:Object,
  222. default: () => {
  223. return { id: 0 };
  224. },
  225. },
  226. doctor_advices:{
  227. type:Array,
  228. default: () => {
  229. return { id: 0 };
  230. },
  231. },
  232. dialysis_order:{
  233. type:Object,
  234. default: () => {
  235. return { id: 0 };
  236. },
  237. },
  238. monitors:{
  239. type:Array,
  240. default: () => {
  241. return { id: 0 };
  242. },
  243. },
  244. assessment_after_dislysis:{
  245. type:Object,
  246. default: () => {
  247. return { id: 0 };
  248. },
  249. }
  250. },
  251. data() {
  252. return {
  253. showTxt: "",
  254. hasPermission: true,
  255. value: "",
  256. value2: "",
  257. value3: "",
  258. value4: "",
  259. isVisibility: false,
  260. record_date: "",
  261. education: [],
  262. summary: [],
  263. nursingRecord: [],
  264. specialRecord: [],
  265. treatmentSummary: {
  266. mission: "",
  267. dialysis_summary: "",
  268. sj_nurse: "",
  269. zl_nurse: "",
  270. hd_nurse: "",
  271. xj_nurse: "",
  272. zl_doctor: "",
  273. nursing_record: "",
  274. special_record: "",
  275. },
  276. //
  277. date: "",
  278. infoDialogVisible:false,
  279. selected_date:"",
  280. pickerOptions: {
  281. disabledDate(time) {
  282. return time.getTime() > Date.now()
  283. }
  284. },
  285. remark:"",
  286. org_id:0,
  287. };
  288. },
  289. methods: {
  290. isName(name) {
  291. let filedList = store.getters.xt_user.fileds;
  292. for (let i = 0; i < filedList.length; i++) {
  293. if (filedList[i].module == 6 && filedList[i].filed_name_cn == name) {
  294. return filedList[i].filed_name;
  295. }
  296. }
  297. },
  298. isCheckmust(name) {
  299. let filedList = store.getters.xt_user.fileds;
  300. for (let i = 0; i < filedList.length; i++) {
  301. if (
  302. filedList[i].module == 6 &&
  303. filedList[i].filed_name_cn == name &&
  304. filedList[i].is_write == 1
  305. ) {
  306. return [{ required: true, message: `请输入${name}` }];
  307. }
  308. }
  309. },
  310. show(record, date) {
  311. this.isVisibility = true;
  312. this.record = record;
  313. if (date) {
  314. this.date = date;
  315. this.record_date = uParseTime(this.date, "{y}-{m}-{d}");
  316. }
  317. console.log("治疗小结", record);
  318. this.getPermission();
  319. },
  320. hide() {
  321. this.isVisibility = false;
  322. },
  323. dialysisAfterTeachSelectChange: function (values) {
  324. if (this.treatmentSummary.mission == "") {
  325. this.treatmentSummary.mission = values;
  326. } else {
  327. if (this.treatmentSummary.mission.indexOf(values) == -1) {
  328. if (
  329. this.treatmentSummary.mission
  330. .charAt(this.treatmentSummary.mission.length - 1)
  331. .indexOf("。") == -1
  332. ) {
  333. this.treatmentSummary.mission =
  334. this.treatmentSummary.mission + "," + values;
  335. } else {
  336. this.treatmentSummary.mission =
  337. this.treatmentSummary.mission + values;
  338. }
  339. }
  340. }
  341. },
  342. dialysisSummarySelectChange: function (values) {
  343. if (this.treatmentSummary.dialysis_summary == "") {
  344. this.treatmentSummary.dialysis_summary = values;
  345. } else {
  346. if (this.treatmentSummary.dialysis_summary.indexOf(values) == -1) {
  347. if (
  348. this.treatmentSummary.dialysis_summary
  349. .charAt(this.treatmentSummary.dialysis_summary.length - 1)
  350. .indexOf("。") == -1
  351. ) {
  352. this.treatmentSummary.dialysis_summary =
  353. this.treatmentSummary.dialysis_summary + "," + values;
  354. } else {
  355. this.treatmentSummary.dialysis_summary =
  356. this.treatmentSummary.dialysis_summary + "," + values;
  357. this.treatmentSummary.dialysis_summary =
  358. this.treatmentSummary.dialysis_summary + values;
  359. }
  360. }
  361. }
  362. },
  363. dialysisNusingRecordSelectChange: function (values) {
  364. if (this.treatmentSummary.nursing_record == "") {
  365. this.treatmentSummary.nursing_record = values;
  366. } else {
  367. if (this.treatmentSummary.nursing_record.indexOf(values) == -1) {
  368. if (
  369. this.treatmentSummary.nursing_record
  370. .charAt(this.treatmentSummary.nursing_record.length - 1)
  371. .indexOf("。") == -1
  372. ) {
  373. this.treatmentSummary.nursing_record =
  374. this.treatmentSummary.nursing_record + "," + values;
  375. } else {
  376. this.treatmentSummary.nursing_record =
  377. this.treatmentSummary.nursing_record + "," + values;
  378. this.treatmentSummary.nursing_record =
  379. this.treatmentSummary.nursing_record + values;
  380. }
  381. }
  382. }
  383. },
  384. dialysisSpecialRecordSelectChange(values) {
  385. if (this.treatmentSummary.special_record == "") {
  386. this.treatmentSummary.special_record = values;
  387. } else {
  388. if (this.treatmentSummary.special_record.indexOf(values) == -1) {
  389. if (
  390. this.treatmentSummary.special_record
  391. .charAt(this.treatmentSummary.special_record.length - 1)
  392. .indexOf("。") == -1
  393. ) {
  394. this.treatmentSummary.special_record =
  395. this.treatmentSummary.special_record + "," + values;
  396. } else {
  397. this.treatmentSummary.special_record =
  398. this.treatmentSummary.special_record + "," + values;
  399. this.treatmentSummary.special_record =
  400. this.treatmentSummary.special_record + values;
  401. }
  402. }
  403. }
  404. },
  405. handleCancle: function () {
  406. this.isVisibility = false;
  407. },
  408. handleComfirm(formName) {
  409. this.$refs[formName].validate((valid) => {
  410. if (valid) {
  411. const ParamsQuery = this.treatmentSummary;
  412. ParamsQuery["patient"] = this.patient.id;
  413. ParamsQuery["record_date"] = this.record_date;
  414. ParamsQuery["mode"] = "1";
  415. if (this.treatment_summary.id > 0) {
  416. ParamsQuery["mode"] = "2";
  417. if (
  418. this.treatment_summary.creater !=
  419. this.$store.getters.xt_user.user.id
  420. ) {
  421. ParamsQuery["mode"] = "3";
  422. }
  423. }
  424. postTreatmentsummary(ParamsQuery).then((response) => {
  425. if (response.data.state == 0) {
  426. this.$message.error(response.data.msg);
  427. if(response.data.code == 600000008){
  428. this.infoDialogVisible = true
  429. }
  430. return false;
  431. } else {
  432. this.$notify({
  433. title: "成功",
  434. message: "提交成功",
  435. type: "success",
  436. duration: 2000,
  437. });
  438. const summary_resp = response.data.data.summary;
  439. // prop
  440. var treatment_summary = this.treatment_summary;
  441. for (var index in summary_resp) {
  442. // treatment_summary[index] = summary_resp[index];
  443. this.$set(treatment_summary, index, summary_resp[index]);
  444. }
  445. this.hide();
  446. }
  447. });
  448. } else {
  449. console.log("error submit!!");
  450. return false;
  451. }
  452. });
  453. },
  454. getPermission() {
  455. request
  456. .get("/api/func_per/get", {
  457. params: {
  458. create_url: "/api/dialysis/treatmentsummary?mode=1",
  459. modify_url: "/api/dialysis/treatmentsummary?mode=2",
  460. modify_other_url: "/api/dialysis/treatmentsummary?mode=3",
  461. module: 9,
  462. },
  463. })
  464. .then((res) => {
  465. if (res.data.state == 0) {
  466. this.hasPermission = false;
  467. } else if (res.data.state == 1) {
  468. if (this.record.id != "" && this.record.creater != 0) {
  469. // 有数据
  470. if (this.record.creater == this.$store.getters.user.admin.id) {
  471. // 创建人是自己
  472. if (res.data.data.is_has_modify == false) {
  473. this.hasPermission = false;
  474. this.showTxt = "你没有修改治疗小结权限";
  475. }
  476. } else {
  477. // 创建人不是自己
  478. if (res.data.data.is_has_modify_other == false) {
  479. this.hasPermission = false;
  480. this.showTxt = "你没有修改他人治疗小结权限";
  481. }
  482. }
  483. } else if (this.record.id == "" || this.record.creater == 0) {
  484. if (res.data.data.is_has_create == false) {
  485. this.hasPermission = false;
  486. this.showTxt = "你没有新增治疗小结权限";
  487. }
  488. }
  489. }
  490. });
  491. },
  492. isShow(name) {
  493. var filedList = store.getters.xt_user.fileds;
  494. for (let i = 0; i < filedList.length; i++) {
  495. if (
  496. filedList[i].module == 6 &&
  497. filedList[i].filed_name_cn == name &&
  498. filedList[i].is_show == 1
  499. ) {
  500. return true;
  501. }
  502. }
  503. return false;
  504. },
  505. saveInformation(){
  506. var params = {
  507. selected_date:this.selected_date,
  508. patient_id:this.$route.query.patient_id,
  509. record_date:this.$route.query.date,
  510. module:10,
  511. remark:this.remark,
  512. }
  513. saveInformation(params).then(response=>{
  514. if(response.data.state == 1){
  515. var information = response.data.data.information
  516. this.$message.success("审核成功!")
  517. this.infoDialogVisible = false
  518. }
  519. })
  520. },
  521. autoClick(){
  522. var str_one = ""
  523. if(this.dialysis_order!=null){
  524. if(this.dialysis_order.puncture_nurse_id >0){
  525. str_one = "护士穿刺成功!"
  526. }
  527. }
  528. var total =0
  529. if(this.predialysis_evaluation!=null){
  530. total = (this.predialysis_evaluation.weight_before - this.predialysis_evaluation.dry_weight).toFixed(1)
  531. }
  532. var monitor_one =[]
  533. var monitor_two = []
  534. var monitor_three = []
  535. if(this.monitors!=null && this.monitors.length > 0){
  536. var monitor_one = this.monitors.sort(function (a,b) {
  537. return b.systolic_bp - a.systolic_bp
  538. })
  539. var monitor_two = this.monitors.sort(function (a,b) {
  540. return b.diastolic_bp - a.diastolic_bp
  541. })
  542. var monitor_three = this.monitors.sort(function (a,b) {
  543. return b.pulse_frequency - a.pulse_frequency
  544. })
  545. }
  546. var doc_str = ""
  547. console.log("医嘱2333333333333",this.predialysis_evaluation)
  548. if(this.doctor_advices!=null && this.doctor_advices.length > 0){
  549. for(let i=0;i<this.doctor_advices.length;i++){
  550. doc_str +=this.doctor_advices[i].advice_name +" "+this.doctor_advices[i].prescribing_number+this.doctor_advices[i].prescribing_number_unit+" "+this.doctor_advices[i].delivery_way
  551. }
  552. }
  553. if(this.predialysis_evaluation.blood_access_part_id == -2){
  554. this.predialysis_evaluation.blood_access_part_id = ""
  555. }
  556. var str = " 患者今日来我科行血液透析治疗,血管通路选择:"+this.predialysis_evaluation.blood_access_part_id+ " "+this.QueryOperaById(this.predialysis_evaluation.blood_access_part_opera_id) +",透析模式:"+this.getModeId(this.prescription.mode_id)+
  557. ",透前检查:"+this.predialysis_evaluation.internal_fistula +this.predialysis_evaluation.catheter + str_one +" "+ ",透析器:"+this.prescription.dialyzer_perfusion_apparatus + ",抗凝剂:"+this.GetAnticoagulant(this.prescription.anticoagulant) +",总量:"+this.prescription.anticoagulant_zongliang+"iu"+
  558. ",透前体重:"+this.predialysis_evaluation.weight_before+"kg"+",间期体重增长:"+total +"kg"+",目标脱水量:"+this.prescription.target_ultrafiltration +"ml" +",血流量:"+this.prescription.blood_flow_volume+"ml/min" + ",透析开始时间:"+this.getTime(this.dialysis_order.start_time) +",透析过程中血压波动,"+"最大收缩压:"+monitor_one[0].systolic_blood_pressure+"mmHg"+",最小收缩压:"+monitor_one[monitor_one.length-1].systolic_blood_pressure
  559. +"mmHg" +",最小舒张压:" +monitor_two[0].diastolic_blood_pressure+"mmHg" + ",最大舒张压:" + monitor_two[monitor_two.length-1].diastolic_blood_pressure +"mmHg" + ",最大脉搏:"+monitor_three[0].pulse_frequency+"次/分"+",最小脉搏:"+monitor_three[monitor_three.length-1].pulse_frequency+"次/分"+",透析结束时间:"+this.getTime(this.dialysis_order.end_time) +
  560. ",实际治疗时长:"+ this.assessment_after_dislysis.actual_treatment_hour +"时"+this.assessment_after_dislysis.actual_treatment_minute+"分" +",实际超滤量:"+this.assessment_after_dislysis.actual_ultrafiltration+"ml"+",透后体重:"+this.assessment_after_dislysis.weight_after+"kg"+",透析过程顺利,安全下机" + " "
  561. +",今日使用药品:"+doc_str +",患者下机后测血压,"+"收缩压:"+this.assessment_after_dislysis.systolic_blood_pressure+"mmHg"+",舒张压:"+this.assessment_after_dislysis.diastolic_blood_pressure+"mmHg"+",脉搏:"+this.assessment_after_dislysis.pulse_frequency +"次/分"
  562. console.log("str000000000000000000222o2o2",str)
  563. this.treatmentSummary.dialysis_summary = ""
  564. this.treatmentSummary.dialysis_summary = str
  565. },
  566. QueryOperaById(val){
  567. var blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
  568. var name = ""
  569. for(let i=0;i<blood_access_part_opera.length;i++){
  570. if(val == blood_access_part_opera[i].id){
  571. name = blood_access_part_opera[i].name
  572. }
  573. }
  574. return name
  575. },
  576. getModeId(mode_id){
  577. var mode_name = ""
  578. if(mode_id == 1){
  579. mode_name ="HD"
  580. }
  581. if(mode_id == 2){
  582. mode_name ="HDF"
  583. }
  584. if(mode_id == 3){
  585. mode_name ="HD+HP"
  586. }
  587. if(mode_id == 4){
  588. mode_name ="HP"
  589. }
  590. if(mode_id == 5){
  591. mode_name ="HF"
  592. }
  593. if(mode_id == 6){
  594. mode_name ="SCUF"
  595. }
  596. if(mode_id == 7){
  597. mode_name ="IUF"
  598. }
  599. if(mode_id == 8){
  600. mode_name ="HFHD"
  601. }
  602. if(mode_id == 9){
  603. mode_name ="HFHD+HP"
  604. }
  605. if(mode_id == 10){
  606. mode_name ="PHF"
  607. }
  608. if(mode_id == 11){
  609. mode_name ="HFR"
  610. }
  611. if(mode_id == 12){
  612. mode_name ="HDF+HP"
  613. }
  614. if(mode_id == 13){
  615. mode_name ="CRRT"
  616. }
  617. if(mode_id == 14){
  618. mode_name ="腹水回输"
  619. }
  620. if(mode_id == 19){
  621. mode_name ="IUF+HD"
  622. }
  623. if(mode_id == 20){
  624. mode_name ="UF"
  625. }
  626. if(mode_id == 21){
  627. mode_name ="HD+"
  628. }
  629. if(mode_id == 22){
  630. mode_name ="血浆胆红素吸附+HDF"
  631. }
  632. if(mode_id == 23){
  633. mode_name ="血浆胆红素吸附"
  634. }
  635. if(mode_id == 24){
  636. mode_name ="I-HDF"
  637. }
  638. if(mode_id == 25){
  639. mode_name ="HD高通"
  640. }
  641. if(mode_id == 26){
  642. mode_name ="CVVH"
  643. }
  644. if(mode_id == 27){
  645. mode_name ="CVVHD"
  646. }
  647. if(mode_id == 28){
  648. mode_name ="CVVHDF"
  649. }
  650. if(mode_id == 29){
  651. mode_name ="PE"
  652. }
  653. if(mode_id == 30){
  654. mode_name ="血浆胆红素吸附+HP"
  655. }
  656. if(mode_id == 31){
  657. mode_name ="HPD"
  658. }
  659. if(mode_id == 32){
  660. mode_name ="HDP"
  661. }
  662. return mode_name
  663. },
  664. GetAnticoagulant(id){
  665. var anticoagulant_name = ""
  666. if(id == 1){
  667. anticoagulant_name = "无肝素"
  668. }
  669. if(id == 2){
  670. anticoagulant_name = "普通肝素"
  671. }
  672. if(id == 3){
  673. anticoagulant_name = "低分子肝素"
  674. }
  675. if(id == 4){
  676. anticoagulant_name = "阿加曲班"
  677. }
  678. if(id == 5){
  679. anticoagulant_name = "枸橼酸钠"
  680. }
  681. if(id == 6){
  682. anticoagulant_name = "低分子肝素钙"
  683. }
  684. if(id == 7){
  685. anticoagulant_name = "低分子肝素钠"
  686. }
  687. if(id == 8){
  688. anticoagulant_name = "依诺肝素"
  689. }
  690. if(id == 9){
  691. anticoagulant_name = "达肝素"
  692. }
  693. if(id == 10){
  694. anticoagulant_name = "体外抗凝"
  695. }
  696. if(id == 11){
  697. anticoagulant_name = "那屈肝素"
  698. }
  699. if(id == 12){
  700. anticoagulant_name = "无抗凝剂"
  701. }
  702. if(id == 13){
  703. anticoagulant_name = "那屈肝素钙"
  704. }
  705. if(id == 14){
  706. anticoagulant_name = "肝素钙注射液"
  707. }
  708. if(id == 15){
  709. anticoagulant_name = "甲磺酸萘莫司他"
  710. }
  711. return anticoagulant_name
  712. },
  713. getTime (time) {
  714. return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
  715. },
  716. },
  717. watch: {
  718. isVisibility(val) {},
  719. "treatment_summary.id": {
  720. immediate: true,
  721. deep: true,
  722. handler(oldVal, newVal) {
  723. if (oldVal == newVal) {
  724. for (var index in this.treatmentSummary) {
  725. this.treatmentSummary[index] = this.treatment_summary[index];
  726. }
  727. }
  728. if (this.treatment_summary.id > 0) {
  729. for (var index in this.treatmentSummary) {
  730. this.value = "";
  731. this.value2 = "";
  732. this.value3 = "";
  733. this.value4 = "";
  734. this.treatmentSummary[index] = this.treatment_summary[index];
  735. }
  736. } else if (this.treatment_summary.id == 0) {
  737. for (var index in this.treatmentSummary) {
  738. // this.treatmentSummary[index] = this.treatment_summary[index]
  739. this.value = "";
  740. this.value2 = "";
  741. this.value3 = "";
  742. this.value4 = "";
  743. this.treatmentSummary = {
  744. mission: "",
  745. dialysis_summary: "",
  746. sj_nurse: "",
  747. zl_nurse: "",
  748. hd_nurse: "",
  749. xj_nurse: "",
  750. zl_doctor: "",
  751. nursing_record: "",
  752. special_record: "",
  753. };
  754. }
  755. if(this.$store.getters.xt_user.org.id == 0 || this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 10340){
  756. this.treatmentSummary.dialysis_summary = "安全下机"
  757. }
  758. }
  759. },
  760. },
  761. },
  762. created() {
  763. this.education = getDataConfig("education", "education");
  764. this.summary = getDataConfig("summary", "summary");
  765. this.nursingRecord = getDataConfig("nursing_record", "nursing_record");
  766. this.specialRecord = getDataConfig("special_record", "special_record");
  767. // var date = this.$route.query && this.$route.query.date
  768. // this.record_date = uParseTime(date, '{y}-{m}-{d}')
  769. if (this.$route.query && this.$route.query.date) {
  770. var date = this.$route.query && this.$route.query.date;
  771. this.record_date = uParseTime(date, "{y}-{m}-{d}");
  772. }
  773. this.org_id = this.$store.getters.xt_user.template_info.org_id
  774. },
  775. };
  776. </script>
  777. <style scoped>
  778. .warnTxt {
  779. text-align: center;
  780. margin: 0 auto;
  781. background: #faa331;
  782. max-width: 240px;
  783. padding: 10px 20px;
  784. border-radius: 4px;
  785. margin-bottom: 10px;
  786. color: #fff;
  787. }
  788. </style>
  789. <style lang="scss">
  790. .newDialog {
  791. .el-dialog__body {
  792. padding: 10px 20px 30px;
  793. }
  794. }
  795. </style>