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

nextTableWeeks.vue 23KB

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