nextTableWeeks.vue 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  1. <template>
  2. <div>
  3. <div class="cell clearfix" style="float: right">
  4. <el-button
  5. style="float: right"
  6. size="small"
  7. icon="el-icon-printer"
  8. @click="signPrint()"
  9. type="primary"
  10. >标签打印
  11. </el-button>
  12. <el-button
  13. style="float: right"
  14. size="small"
  15. icon="el-icon-printer"
  16. @click="printAction()"
  17. type="primary"
  18. >打印
  19. </el-button>
  20. </div>
  21. <div class="cell clearfix">
  22. <label class="title"> <span class="name">时间</span> : </label>
  23. <div class="time">
  24. <ul class>
  25. <li
  26. :class="item.id == week_type ? 'active' : ''"
  27. @click="selectWeekType(item.id)"
  28. v-for="item in weekArr"
  29. :key="item.id"
  30. >
  31. {{ item.name }}
  32. </li>
  33. </ul>
  34. </div>
  35. </div>
  36. <div class="cell clearfix">
  37. <div class="title"><span class="name">班 次</span> :</div>
  38. <div class="time">
  39. <ul class>
  40. <li
  41. :class="item.id == week_time ? 'active' : ''"
  42. @click="selectWeekTime(item.id)"
  43. v-for="item in weekTimes"
  44. :key="item.id"
  45. >
  46. {{ item.name }}
  47. </li>
  48. </ul>
  49. </div>
  50. </div>
  51. <div class="cell clearfix">
  52. <div class="title"><span class="name">处方状态</span> :</div>
  53. <div class="time">
  54. <ul class>
  55. <li
  56. :class="item.id == pre_status ? 'active' : ''"
  57. @click="selectPreList(item.id)"
  58. v-for="item in preStatusList"
  59. :key="item.id"
  60. >
  61. {{ item.name }}
  62. </li>
  63. </ul>
  64. </div>
  65. </div>
  66. <div class="cell clearfix">
  67. <div class="title"><span class="name">分区</span> :</div>
  68. <!-- <div class="time">
  69. <ul class>
  70. <li
  71. :class="item.id == zone ? 'active' : ''"
  72. @click="selectZoneList(item.id)"
  73. v-for="item in zoneList"
  74. :key="item.id"
  75. >
  76. {{ item.name }}
  77. </li>
  78. </ul>
  79. </div> -->
  80. <el-select v-model="zone" multiple placeholder="请选择" @change="changeZone">
  81. <el-option
  82. v-for="item in zoneList"
  83. :key="item.id"
  84. :label="item.name"
  85. :value="item.id">
  86. </el-option>
  87. </el-select>
  88. </div>
  89. <el-table
  90. v-loading="loading"
  91. :row-style="{ color: '#303133' }"
  92. :data="scheduleData"
  93. border
  94. :header-cell-style="{
  95. backgroundColor: 'rgb(245, 247, 250)',
  96. color: '#606266'
  97. }"
  98. style="width: 100%"
  99. >
  100. <el-table-column label="透析处方" min-width="100" align="center">
  101. <template slot-scope="scope">
  102. <span v-if="scope.row.prescription.id > 0">已确认</span>
  103. <span v-if="scope.row.prescription.id == 0">未确认</span>
  104. </template>
  105. </el-table-column>
  106. <el-table-column label="星期" min-width="100" align="center">
  107. <template slot-scope="scope">
  108. <span v-if="scope.row.schedule_week == 0">周日</span>
  109. <span v-if="scope.row.schedule_week == 1">周一</span>
  110. <span v-if="scope.row.schedule_week == 2">周二</span>
  111. <span v-if="scope.row.schedule_week == 3">周三</span>
  112. <span v-if="scope.row.schedule_week == 4">周四</span>
  113. <span v-if="scope.row.schedule_week == 5">周五</span>
  114. <span v-if="scope.row.schedule_week == 6">周六</span>
  115. </template>
  116. </el-table-column>
  117. <el-table-column label="姓名" min-width="100" align="center">
  118. <template slot-scope="scope">
  119. {{ scope.row.patient }}
  120. </template>
  121. </el-table-column>
  122. <el-table-column label="分区" min-width="70" align="center">
  123. <template slot-scope="scope">
  124. {{ scope.row.zone.name }}
  125. </template>
  126. </el-table-column>
  127. <el-table-column label="班次" min-width="70" align="center">
  128. <template slot-scope="scope">
  129. {{ getSchedulesType(scope.row.schedule_type) }}
  130. </template>
  131. </el-table-column>
  132. <el-table-column label="机号" min-width="70" align="center">
  133. <template slot-scope="scope">
  134. {{ scope.row.number.number }}
  135. </template>
  136. </el-table-column>
  137. <el-table-column label="透析模式" min-width="100" align="center">
  138. <template slot-scope="scope">
  139. {{
  140. scope.row.mode_id && modeOptions[scope.row.mode_id]
  141. ? modeOptions[scope.row.mode_id].name
  142. : ""
  143. }}
  144. </template>
  145. </el-table-column>
  146. <el-table-column label="透析器/灌流器" min-width="100" align="center">
  147. <template slot-scope="scope">
  148. <span v-if="org_id!=9987" >
  149. <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus!=''">
  150. <span v-if="org_id!=10131&& org_id !=10215">{{ scope.row.dialysissolution.dialyzer_perfusion_apparatus }}</span>
  151. <span v-if="org_id==10131 || org_id == 10215">{{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}</span>
  152. </span>
  153. <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus =='' && scope.row.dialysissolution.length>0 ">{{ scope.row.dialysissolution.dialysis_dialyszers}}</span>
  154. </span>
  155. {{scope.row.dialysissolution.dialysis_dialyszers}}
  156. <span v-if="scope.row.dialysissolution.dialysis_dialyszers!='' && scope.row.dialysissolution.dialysis_irrigation!=''">/</span>
  157. <span v-if="scope.row.dialysissolution.dialysis_irrigation!=''">{{scope.row.dialysissolution.dialysis_irrigation}}</span>
  158. </template>
  159. </el-table-column>
  160. <el-table-column label="抗凝剂(商品名称)" min-width="100" align="center">
  161. <template slot-scope="scope">
  162. <span v-if="scope.row.dialysissolution.anticoagulant === 1">无肝素</span>
  163. <span v-if="scope.row.dialysissolution.anticoagulant === 2">普通肝素</span>
  164. <span v-if="scope.row.dialysissolution.anticoagulant === 3" >低分子肝素</span>
  165. <span v-if="scope.row.dialysissolution.anticoagulant === 4">阿加曲班</span>
  166. <span v-if="scope.row.dialysissolution.anticoagulant === 5">枸橼酸钠</span>
  167. <span v-if="scope.row.dialysissolution.anticoagulant === 6">低分子肝素钙</span>
  168. <span v-if="scope.row.dialysissolution.anticoagulant === 7">低分子肝素钠</span>
  169. <span v-if="scope.row.dialysissolution.anticoagulant === 8">伊诺肝素</span>
  170. <span v-if="scope.row.dialysissolution.anticoagulant === 9">达肝素</span>
  171. <span v-if="scope.row.dialysissolution.anticoagulant === 10">体外抗凝</span>
  172. <span v-if="scope.row.dialysissolution.anticoagulant === 11">那屈肝素</span>
  173. <span v-if="scope.row.prescription.antioxidant_commodity_name!=''">
  174. (<span>{{scope.row.prescription.antioxidant_commodity_name}}</span>)
  175. </span>
  176. </template>
  177. </el-table-column>
  178. <el-table-column label="总量" min-width="100" align="center">
  179. <template slot-scope="scope">
  180. <span v-if="scope.row.prescription.anticoagulant == 1">{{
  181. scope.row.prescription.anticoagulant_zongliang
  182. ? scope.row.prescription.anticoagulant_zongliang + "mg"
  183. : ""
  184. }}</span>
  185. <span v-if="scope.row.prescription.anticoagulant == 2">{{
  186. scope.row.prescription.anticoagulant_zongliang
  187. ? scope.row.prescription.anticoagulant_zongliang + "iu"
  188. : ""
  189. }}</span>
  190. <span v-if="scope.row.prescription.anticoagulant == 3">{{
  191. scope.row.prescription.anticoagulant_zongliang
  192. ? scope.row.prescription.anticoagulant_zongliang + "iu"
  193. : ""
  194. }}</span>
  195. <span v-if="scope.row.prescription.anticoagulant == 4">{{
  196. scope.row.prescription.anticoagulant_zongliang
  197. ? scope.row.prescription.anticoagulant_zongliang + "mg"
  198. : ""
  199. }}</span>
  200. <span v-if="scope.row.prescription.anticoagulant == 5">{{
  201. scope.row.prescription.anticoagulant_zongliang
  202. ? scope.row.prescription.anticoagulant_zongliang + "mg"
  203. : ""
  204. }}</span>
  205. <span v-if="scope.row.prescription.anticoagulant == 6">{{
  206. scope.row.prescription.anticoagulant_zongliang
  207. ? scope.row.prescription.anticoagulant_zongliang + "iu"
  208. : ""
  209. }}</span>
  210. <span v-if="scope.row.prescription.anticoagulant == 7">{{
  211. scope.row.prescription.anticoagulant_zongliang
  212. ? scope.row.prescription.anticoagulant_zongliang + "iu"
  213. : ""
  214. }}</span>
  215. <span v-if="scope.row.prescription.anticoagulant == 8">{{
  216. scope.row.prescription.anticoagulant_zongliang
  217. ? scope.row.prescription.anticoagulant_zongliang + "iu"
  218. : ""
  219. }}</span>
  220. <span v-if="scope.row.prescription.anticoagulant == 9">{{
  221. scope.row.prescription.anticoagulant_zongliang
  222. ? scope.row.prescription.anticoagulant_zongliang + "iu"
  223. : ""
  224. }}</span>
  225. <span v-if="scope.row.prescription.anticoagulant == 10">{{
  226. scope.row.prescription.anticoagulant_zongliang
  227. ? scope.row.prescription.anticoagulant_zongliang + "iu"
  228. : ""
  229. }}</span>
  230. <span v-if="scope.row.prescription.anticoagulant == 11">{{
  231. scope.row.prescription.anticoagulant_zongliang
  232. ? scope.row.prescription.anticoagulant_zongliang + "iu"
  233. : ""
  234. }}</span>
  235. </template>
  236. </el-table-column>
  237. <el-table-column label="长期医嘱" min-width="440" align="center">
  238. <template slot-scope="scope">
  239. <span style="white-space: pre" v-if="scope.row.doctoradvice.length>0">{{getAdvice(scope.row.doctoradvice)}}</span>
  240. <span style="white-space: pre" v-if="scope.row.hisdoctoradviceinfo.length>0">{{getAdviceOne(scope.row.hisdoctoradviceinfo)}}</span>
  241. </template>
  242. </el-table-column>
  243. </el-table>
  244. </div>
  245. </template>
  246. <script>
  247. import { uParseTime } from '@/utils/tools'
  248. import { getNextScheduleWeekDay,getAllZoneList } from "@/api/schedule";
  249. import WeekItem from "./WeekItem";
  250. const moment = require('moment')
  251. export default {
  252. name: "tableWeeks",
  253. props: {
  254. weekTime: {
  255. type: String,
  256. default: "thisWeek"
  257. }
  258. },
  259. data() {
  260. return {
  261. weekArr: [
  262. { id: 0, name: "全部" },
  263. { id: 1, name: "周一" },
  264. { id: 2, name: "周二" },
  265. { id: 3, name: "周三" },
  266. { id: 4, name: "周四" },
  267. { id: 5, name: "周五" },
  268. { id: 6, name: "周六" },
  269. { id: 7, name: "周日" }
  270. ],
  271. anticoagulants_confit: null,
  272. week_type: "1",
  273. week_time:0,
  274. weekTimes:[
  275. {id:0,name:"全部"},
  276. {id:1,name:"上午"},
  277. {id:2,name:"下午"},
  278. {id:3,name:"晚上"},
  279. ],
  280. weekTitle: ["", "", "", "", "", "", ""],
  281. weekData: {
  282. Monday: [],
  283. Tuesday: [],
  284. Wednesday: [],
  285. Thursday: [],
  286. Friday: [],
  287. Saturday: [],
  288. Sunday: []
  289. },
  290. scheduleData: [],
  291. modeOptions: null,
  292. org_id:0,
  293. pre_status:0,
  294. preStatusList:[
  295. {id:0,name:"全部"},
  296. {id:1,name:"已确认"},
  297. {id:2,name:"未确认"},
  298. ],
  299. zone:"",
  300. // zoneList:[{id:0,name:"全部"}],
  301. zoneList:[],
  302. start_time:moment().week(moment().week() + 1).startOf('week').unix(),
  303. loading:false,
  304. };
  305. },
  306. watch: {
  307. weekTime: function() {
  308. var theType = this.weekType(this.weekTime);
  309. this.getSchedules(theType);
  310. }
  311. },
  312. methods: {
  313. printAction() {
  314. var zone = this.zone
  315. var newArr = []
  316. for(let i=0;i<this.zoneList.length;i++){
  317. newArr.push(this.zoneList[i].id)
  318. }
  319. var arr = newArr.join(",")
  320. var str = ""
  321. if(this.zone == 0){
  322. str = arr
  323. }
  324. if(zone != 0){
  325. str = zone.join(",")
  326. }
  327. this.$router.push({
  328. path: "/schedule/remind/print/next?week_type=" + this.week_type+"&week_time="+this.week_time+"&zone="+str+"&prestatus="+this.pre_status
  329. });
  330. },
  331. compare(property) {
  332. return function (a, b) {
  333. var value1 = a[property];
  334. var value2 = b[property];
  335. return value1 - value2;
  336. }
  337. },
  338. getNextScheduleWeekDay() {
  339. this.loading = true
  340. const start = moment().weekday(1).format('YYYY-MM-DD'); //本周一
  341. const end = moment().weekday(7).format('YYYY-MM-DD')
  342. // console.log("start",moment(start).unix())
  343. var zone = this.zone
  344. var newArr = []
  345. for(let i=0;i<this.zoneList.length;i++){
  346. newArr.push(this.zoneList[i].id)
  347. }
  348. var arr = newArr.join(",")
  349. var str = ""
  350. if(this.zone == 0){
  351. str = arr
  352. }
  353. if(zone != 0){
  354. str = zone.join(",")
  355. }
  356. var now_time = parseInt(this.week_type) * 86400 + this.start_time
  357. let weekOfDay = parseInt(moment().format('E'))
  358. let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
  359. console.log("卡 is h2323233232",new Date(next_monday))
  360. let next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
  361. console.log("下周日",next_sunday.valueOf())
  362. // const params = {
  363. // start_time:moment().week(moment().week() + 1).startOf('week').unix(),
  364. // end_time:moment().week(moment().week() + 1).endOf('week').unix(),
  365. // week_type:this.week_type,
  366. // week_time:this.week_time,
  367. // zone:str,
  368. // record_date:this.getTime(now_time)
  369. // }
  370. const params = {
  371. start_time:next_monday,
  372. end_time:next_sunday,
  373. week_type:this.week_type,
  374. week_time:this.week_time,
  375. zone:str,
  376. record_date:this.getTime(now_time)
  377. }
  378. console.log("params0000000000",params)
  379. getNextScheduleWeekDay(params).then(response => {
  380. this.scheduleData = [];
  381. if (response.data.state == 1) {
  382. this.loading = false
  383. var scheduleData = response.data.data.schedule;
  384. if(this.pre_status == 0){
  385. for(let i=0;i<scheduleData.length;i++){
  386. scheduleData[i].sort = scheduleData[i].number.sort
  387. }
  388. var arr = scheduleData.sort(this.compare('sort'))
  389. console.log("元旦快乐",arr)
  390. this.scheduleData = arr
  391. }
  392. if(this.pre_status == 1){
  393. var newList = []
  394. for(let i=0;i<scheduleData.length;i++){
  395. if(scheduleData.prescription.id > 0){
  396. newList.push(scheduleData[i])
  397. }
  398. }
  399. var arr = newList.sort(this.compare('sort'))
  400. console.log("元旦快乐",arr)
  401. this.scheduleData = arr
  402. }
  403. if(this.pre_status == 2){
  404. var newList = []
  405. for(let i=0;i<scheduleData.length;i++){
  406. if(scheduleData.prescription.id == 0){
  407. newList.push(scheduleData[i])
  408. }
  409. }
  410. var arr = newList.sort(this.compare('sort'))
  411. console.log("元旦快乐",arr)
  412. this.scheduleData = arr
  413. }
  414. } else {
  415. this.$message.error("网络错误");
  416. return false;
  417. }
  418. });
  419. },
  420. weekType(weekTime) {
  421. var theType = 2;
  422. switch (weekTime) {
  423. case "lastWeek":
  424. theType = 1;
  425. break;
  426. case "thisWeek":
  427. theType = 2;
  428. break;
  429. case "nextWeek":
  430. theType = 3;
  431. break;
  432. case "nextTwoWeek":
  433. theType = 4;
  434. break;
  435. default:
  436. theType = 2;
  437. break;
  438. }
  439. return theType;
  440. },
  441. weekPath(week) {
  442. var weekArr = {
  443. 1: "Monday",
  444. 2: "Tuesday",
  445. 3: "Wednesday",
  446. 4: "Thursday",
  447. 5: "Friday",
  448. 6: "Saturday",
  449. 7: "Sunday"
  450. };
  451. if (typeof weekArr[week] == "undefined") {
  452. return "";
  453. }
  454. return weekArr[week];
  455. },
  456. selectWeekType(type) {
  457. this.week_type = type;
  458. this.getNextScheduleWeekDay();
  459. },
  460. selectWeekTime(type){
  461. this.week_time = type
  462. this.getNextScheduleWeekDay()
  463. },
  464. selectPreList(type){
  465. this.pre_status = type
  466. this.getNextScheduleWeekDay()
  467. },
  468. selectZoneList(type){
  469. this.zone = type
  470. this.getNextScheduleWeekDay()
  471. },
  472. getSchedulesType: function(type) {
  473. let type_name = "";
  474. switch (type) {
  475. case 1:
  476. type_name = "上午";
  477. break;
  478. case 2:
  479. type_name = "下午";
  480. break;
  481. case 3:
  482. type_name = "晚上";
  483. break;
  484. }
  485. return type_name;
  486. },
  487. getAdvice: function(doctor_advice) {
  488. if (doctor_advice != null) {
  489. let name = "";
  490. for (let i = 0; i < doctor_advice.length; i++) {
  491. let prescribing_number = "";
  492. let single_dose = "";
  493. let drug_spec = "";
  494. if (doctor_advice[i].prescribing_number > 0) {
  495. prescribing_number =
  496. doctor_advice[i].prescribing_number +
  497. doctor_advice[i].prescribing_number_unit;
  498. }
  499. if (doctor_advice[i].single_dose > 0) {
  500. single_dose =
  501. " 单次用量 " +
  502. doctor_advice[i].single_dose +
  503. doctor_advice[i].single_dose_unit;
  504. }
  505. if (doctor_advice[i].drug_spec > 0) {
  506. drug_spec =
  507. doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit;
  508. }
  509. name =
  510. name +
  511. doctor_advice[i].advice_name +
  512. " " +
  513. drug_spec +
  514. " " +
  515. prescribing_number +
  516. " " +
  517. single_dose +
  518. " " +
  519. doctor_advice[i].delivery_way +
  520. " " +
  521. doctor_advice[i].execution_frequency +
  522. " " +
  523. doctor_advice[i].remark +
  524. "\n";
  525. if (doctor_advice[i].child.length > 0) {
  526. for (let a = 0; a < doctor_advice[i].child.length; a++) {
  527. if (doctor_advice[i].child[a].prescribing_number > 0) {
  528. doctor_advice[i].child[a]["presc"] =
  529. doctor_advice[i].child[a].prescribing_number +
  530. doctor_advice[i].child[a].prescribing_number_unit;
  531. } else {
  532. doctor_advice[i].child[a]["presc"] = "";
  533. }
  534. if (doctor_advice[i].child[a].single_dose > 0) {
  535. doctor_advice[i].child[a]["single"] =
  536. " " +
  537. " 单次用量 " +
  538. " " +
  539. doctor_advice[i].child[a].single_dose +
  540. doctor_advice[i].child[a].single_dose_unit;
  541. } else {
  542. doctor_advice[i].child[a]["single"] = "";
  543. }
  544. name =
  545. name +
  546. "▲" +
  547. doctor_advice[i].child[a].advice_name +
  548. "" +
  549. doctor_advice[i].child[a].advice_desc +
  550. doctor_advice[i].child[a].drug_spec_unit +
  551. doctor_advice[i].child[a].presc +
  552. doctor_advice[i].child[a].single +
  553. "\n";
  554. }
  555. }
  556. }
  557. return name;
  558. }
  559. },
  560. getAdviceOne: function(doctor_advice) {
  561. if (doctor_advice != null) {
  562. let name = "";
  563. for (let i = 0; i < doctor_advice.length; i++) {
  564. let prescribing_number = "";
  565. let single_dose = "";
  566. let drug_spec = "";
  567. if (doctor_advice[i].prescribing_number > 0) {
  568. prescribing_number =
  569. doctor_advice[i].prescribing_number +
  570. doctor_advice[i].prescribing_number_unit;
  571. }
  572. if (doctor_advice[i].single_dose > 0) {
  573. single_dose =
  574. " 单次用量 " +
  575. doctor_advice[i].single_dose +
  576. doctor_advice[i].single_dose_unit;
  577. }
  578. if (doctor_advice[i].drug_spec > 0) {
  579. drug_spec =
  580. doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit;
  581. }
  582. name =
  583. name +
  584. doctor_advice[i].advice_name +
  585. " " +
  586. drug_spec +
  587. " " +
  588. prescribing_number +
  589. " " +
  590. single_dose +
  591. " " +
  592. doctor_advice[i].delivery_way +
  593. " " +
  594. doctor_advice[i].execution_frequency +
  595. " " +
  596. doctor_advice[i].remark +
  597. "\n";
  598. }
  599. return name;
  600. }
  601. },
  602. getAllZoneList(){
  603. getAllZoneList().then(response=>{
  604. if(response.data.state == 1){
  605. var zonelist = response.data.data.zoneList
  606. this.zoneList.push(...zonelist)
  607. this.getNextScheduleWeekDay()
  608. }
  609. })
  610. },
  611. getDialysisDialyszerPerfusion(patient_id){
  612. var name = ""
  613. for(let i=0;i<this.scheduleData.length;i++){
  614. if(patient_id == this.scheduleData[i].patient_id){
  615. var arrLength = this.scheduleData[i].dialysissolution.length
  616. if(arrLength > 0){
  617. name = this.scheduleData[i].dialysissolution[arrLength - 1].dialysis_dialyszers
  618. }
  619. }
  620. }
  621. return name
  622. },
  623. getDialysisDialyszerPerfusionOne(patient_id,mode_id,solution) {
  624. var name = ''
  625. for (let i = 0; i < solution.length; i++) {
  626. if (mode_id == solution[i].mode_id) {
  627. name = solution[i].dialyzer_perfusion_apparatus
  628. }
  629. }
  630. console.log('name', name)
  631. return name
  632. },
  633. changeZone(val){
  634. this.zone = val
  635. this.getNextScheduleWeekDay()
  636. },
  637. signPrint() {
  638. if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
  639. var zone = this.zone
  640. var newArr = []
  641. for(let i=0;i<this.zoneList.length;i++){
  642. newArr.push(this.zoneList[i].id)
  643. }
  644. var arr = newArr.join(",")
  645. var str = ""
  646. if(this.zone == 0){
  647. str = arr
  648. }
  649. if(zone != 0){
  650. str = zone.join(",")
  651. }
  652. this.$router.push({
  653. path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
  654. })
  655. }
  656. if(this.org_id!=9671 && this.org_id!=9675 && this.org_id!=10340){
  657. var zone = this.zone
  658. var newArr = []
  659. for(let i=0;i<this.zoneList.length;i++){
  660. newArr.push(this.zoneList[i].id)
  661. }
  662. var arr = newArr.join(",")
  663. var str = ""
  664. if(this.zone == 0){
  665. str = arr
  666. }
  667. if(zone != 0){
  668. str = zone.join(",")
  669. }
  670. this.$router.push({
  671. path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
  672. })
  673. }
  674. },
  675. getTime(val) {
  676. if(val == ""){
  677. return ""
  678. }else {
  679. return uParseTime(val, '{y}-{m}-{d}')
  680. }
  681. },
  682. },
  683. components: {
  684. WeekItem
  685. },
  686. created() {
  687. this.modeOptions = this.$store.getters.treatment_mode;
  688. this.anticoagulants_confit = this.$store.getters.anticoagulants_confit;
  689. this.getAllZoneList()
  690. this.org_id = this.$store.getters.xt_user.org.id
  691. }
  692. };
  693. </script>
  694. <style rel="stylesheet/css" lang="scss">
  695. .el-table td,
  696. .el-table th.is-leaf,
  697. .el-table--border,
  698. .el-table--group {
  699. border-color: #d0d3da;
  700. }
  701. .el-table--border::after,
  702. .el-table--group::after,
  703. .el-table::before {
  704. background-color: #d0d3da;
  705. }
  706. </style>