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

tableWeeks.vue 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893
  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. <el-button
  21. style="float: right"
  22. size="small"
  23. icon="el-icon-printer"
  24. @click="printActionSetting()"
  25. type="primary">
  26. 打印设置
  27. </el-button>
  28. </div>
  29. <div class="cell clearfix">
  30. <label class="title"> <span class="name">时间</span> : </label>
  31. <div class="time">
  32. <ul class>
  33. <li
  34. :class="item.id == week_type ? 'active' : ''"
  35. @click="selectWeekType(item.id)"
  36. v-for="item in weekArr"
  37. :key="item.id"
  38. >
  39. {{ item.name }}
  40. </li>
  41. </ul>
  42. </div>
  43. </div>
  44. <div class="cell clearfix">
  45. <div class="title"><span class="name">班 次</span> :</div>
  46. <div class="time">
  47. <ul class>
  48. <li
  49. :class="item.id == week_time ? 'active' : ''"
  50. @click="selectWeekTime(item.id)"
  51. v-for="item in weekTimes"
  52. :key="item.id"
  53. >
  54. {{ item.name }}
  55. </li>
  56. </ul>
  57. </div>
  58. </div>
  59. <div class="cell clearfix">
  60. <div class="title"><span class="name">处方状态</span> :</div>
  61. <div class="time">
  62. <ul class>
  63. <li
  64. :class="item.id == pre_status ? 'active' : ''"
  65. @click="selectPreStatus(item.id)"
  66. v-for="item in preStatus"
  67. :key="item.id"
  68. >
  69. {{ item.name }}
  70. </li>
  71. </ul>
  72. </div>
  73. </div>
  74. <div class="cell clearfix">
  75. <div class="title"><span class="name">分区</span> :</div>
  76. <div class="time">
  77. <ul class>
  78. <li
  79. :class="item.id == zone ? 'active' : ''"
  80. @click="selectZoneList(item.id)"
  81. v-for="item in zoneList"
  82. :key="item.id"
  83. >
  84. {{ item.name }}
  85. </li>
  86. </ul>
  87. </div>
  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.name }}
  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.prescription.dialyzer_perfusion_apparatus!=''">{{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
  149. <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus==''&& scope.row.dialysissolution.length>0 ">{{scope.row.dialysissolution[0].dialyzer_perfusion_apparatus}}</span>
  150. </span>
  151. {{scope.row.prescription.dialysis_dialyszers}}
  152. <span v-if="scope.row.prescription.dialysis_dialyszers!='' && scope.row.prescription.dialysis_irrigation!=''">/</span>
  153. <span v-if="scope.row.prescription.dialysis_irrigation!=''">{{scope.row.prescription.dialysis_irrigation}}</span>
  154. </template>
  155. </el-table-column>
  156. <el-table-column label="抗凝剂(商品名称)" min-width="70" align="center">
  157. <template slot-scope="scope">
  158. <span v-if="scope.row.prescription.anticoagulant === 1">无肝素</span>
  159. <span v-if="scope.row.prescription.anticoagulant === 2">普通肝素</span>
  160. <span v-if="scope.row.prescription.anticoagulant === 3">低分子肝素</span>
  161. <span v-if="scope.row.prescription.anticoagulant === 4">阿加曲班</span>
  162. <span v-if="scope.row.prescription.anticoagulant === 5">枸橼酸钠</span>
  163. <span v-if="scope.row.prescription.anticoagulant === 6">低分子肝素钙</span>
  164. <span v-if="scope.row.prescription.anticoagulant === 7">低分子肝素钠</span>
  165. <span v-if="scope.row.prescription.antioxidant_commodity_name!=''">
  166. (<span>{{scope.row.prescription.antioxidant_commodity_name}}</span>)
  167. </span>
  168. </template>
  169. </el-table-column>
  170. <el-table-column label="总量" min-width="100" align="center">
  171. <template slot-scope="scope">
  172. <span v-if="scope.row.prescription.anticoagulant == 1">{{
  173. scope.row.prescription.anticoagulant_zongliang
  174. ? scope.row.prescription.anticoagulant_zongliang + "mg"
  175. : ""
  176. }}</span>
  177. <span v-if="scope.row.prescription.anticoagulant == 2">{{
  178. scope.row.prescription.anticoagulant_zongliang
  179. ? scope.row.prescription.anticoagulant_zongliang + "iu"
  180. : ""
  181. }}</span>
  182. <span v-if="scope.row.prescription.anticoagulant == 3">{{
  183. scope.row.prescription.anticoagulant_zongliang
  184. ? scope.row.prescription.anticoagulant_zongliang + "iu"
  185. : ""
  186. }}</span>
  187. <span v-if="scope.row.prescription.anticoagulant == 4">{{
  188. scope.row.prescription.anticoagulant_zongliang
  189. ? scope.row.prescription.anticoagulant_zongliang + "mg"
  190. : ""
  191. }}</span>
  192. <span v-if="scope.row.prescription.anticoagulant == 5">{{
  193. scope.row.prescription.anticoagulant_zongliang
  194. ? scope.row.prescription.anticoagulant_zongliang + "mg"
  195. : ""
  196. }}</span>
  197. <span v-if="scope.row.prescription.anticoagulant == 6">{{
  198. scope.row.prescription.anticoagulant_zongliang
  199. ? scope.row.prescription.anticoagulant_zongliang + "iu"
  200. : ""
  201. }}</span>
  202. <span v-if="scope.row.prescription.anticoagulant == 7">{{
  203. scope.row.prescription.anticoagulant_zongliang
  204. ? scope.row.prescription.anticoagulant_zongliang + "iu"
  205. : ""
  206. }}</span>
  207. </template>
  208. </el-table-column>
  209. <el-table-column label="长期医嘱" min-width="440" align="center">
  210. <template slot-scope="scope">
  211. <span style="white-space: pre">
  212. <span v-if="scope.row.doctoradvice.length >0">{{ getAdvice(scope.row.doctoradvice)}}</span>
  213. <span v-if="scope.row.hisdoctoradviceinfo.length>0">{{ getAdviceOne(scope.row.hisdoctoradviceinfo)}}</span>
  214. </span>
  215. </template>
  216. </el-table-column>
  217. </el-table>
  218. <el-dialog
  219. title="打印设置"
  220. :visible.sync="dialogVisible"
  221. width="30%"
  222. >
  223. <span>
  224. <ul>
  225. <li>
  226. <el-checkbox v-model="prescription_status">透析处方状态</el-checkbox>
  227. </li>
  228. <li>
  229. <el-checkbox v-model="week">星期</el-checkbox>
  230. </li>
  231. <li>
  232. <el-checkbox v-model="name">姓名</el-checkbox>
  233. </li>
  234. <li>
  235. <el-checkbox v-model="zone">分区</el-checkbox>
  236. </li>
  237. <li>
  238. <el-checkbox v-model="classes">班次</el-checkbox>
  239. </li>
  240. <li>
  241. <el-checkbox v-model="number">机号</el-checkbox>
  242. </li>
  243. <li>
  244. <el-checkbox v-model="mode">透析模式</el-checkbox>
  245. </li>
  246. <li>
  247. <el-checkbox v-model="dialyzers">透析器</el-checkbox>
  248. </li>
  249. <li>
  250. <el-checkbox v-model="perfusion_apparatus">灌流器</el-checkbox>
  251. </li>
  252. <li>
  253. <el-checkbox v-model="anticoagulant">抗凝剂(商品名称)</el-checkbox>
  254. </li>
  255. <li>
  256. <el-checkbox v-model="anticoagulant_zongliang">总量</el-checkbox>
  257. </li>
  258. <li>
  259. <el-checkbox v-model="doctor_advice">长期医嘱</el-checkbox>
  260. </li>
  261. </ul>
  262. </span>
  263. <span slot="footer" class="dialog-footer">
  264. <el-button @click="dialogVisible = false">取 消</el-button>
  265. <el-button type="primary" @click="saveRemindPrint">保 存</el-button>
  266. </span>
  267. </el-dialog>
  268. </div>
  269. </template>
  270. <script>
  271. import { getSchedules, getScheduleWeekDay,saveRemindPrint,getRemindPrintList,getScheduleList,getAllZoneList } from "@/api/schedule";
  272. import WeekItem from "./WeekItem";
  273. export default {
  274. name: "tableWeeks",
  275. props: {
  276. weekTime: {
  277. type: String,
  278. default: "thisWeek"
  279. }
  280. },
  281. data() {
  282. return {
  283. weekArr: [
  284. { id: 0, name: "全部" },
  285. { id: 1, name: "周一" },
  286. { id: 2, name: "周二" },
  287. { id: 3, name: "周三" },
  288. { id: 4, name: "周四" },
  289. { id: 5, name: "周五" },
  290. { id: 6, name: "周六" },
  291. { id: 7, name: "周日" }
  292. ],
  293. anticoagulants_confit: null,
  294. week_type: "1",
  295. week_time:0,
  296. pre_status:0,
  297. weekTimes:[
  298. {id:0,name:"全部"},
  299. {id:1,name:"上午"},
  300. {id:2,name:"下午"},
  301. {id:3,name:"晚上"},
  302. ],
  303. preStatus:[
  304. {id:0,name:"全部"},
  305. {id:1,name:"已确认"},
  306. {id:2,name:"未确认"}
  307. ],
  308. weekTitle: ["", "", "", "", "", "", ""],
  309. weekData: {
  310. Monday: [],
  311. Tuesday: [],
  312. Wednesday: [],
  313. Thursday: [],
  314. Friday: [],
  315. Saturday: [],
  316. Sunday: []
  317. },
  318. scheduleData: [],
  319. modeOptions: null,
  320. org_id:0,
  321. dialogVisible:false,
  322. prescription_status:false,
  323. week:false,
  324. name:false,
  325. zone:false,
  326. classes:false,
  327. number:false,
  328. mode:false,
  329. dialyzers:false,
  330. perfusion_apparatus:false,
  331. anticoagulant:false,
  332. anticoagulant_zongliang:false,
  333. doctor_advice:false,
  334. form:{
  335. id:0,
  336. prescription_status:"",
  337. week:"",
  338. name:"",
  339. zone:"",
  340. classes:"",
  341. number:"",
  342. mode:"",
  343. dialyzers:"",
  344. perfusion_apparatus:"",
  345. anticoagulant:"",
  346. anticoagulant_zongliang:"",
  347. doctor_advice:"",
  348. },
  349. zone:0,
  350. zoneList:[{id:0,name:"全部"}]
  351. };
  352. },
  353. watch: {
  354. weekTime: function() {
  355. var theType = this.weekType(this.weekTime);
  356. this.getSchedules(theType);
  357. }
  358. },
  359. methods: {
  360. printAction() {
  361. this.$router.push({
  362. path: "/schedule/remind/print?week_type=" + this.week_type+"&week_time="+this.week_time+"&zone="+this.zone
  363. });
  364. },
  365. signPrint(){
  366. this.$router.push({
  367. path:"/schedule/remind/print/setting?week_type=" + this.week_type+"&week_time="+this.week_time+"&zone="+this.zone+"&prestatus="+this.pre_status
  368. })
  369. },
  370. compare(property) {
  371. return function (a, b) {
  372. var value1 = a[property];
  373. var value2 = b[property];
  374. return value1 - value2;
  375. }
  376. },
  377. getScheduleWeekDay() {
  378. const params = {
  379. week_type:this.week_type,
  380. week_time:this.week_time,
  381. }
  382. getScheduleWeekDay(params).then(response => {
  383. this.scheduleData = [];
  384. if (response.data.state == 1) {
  385. var scheduleData = response.data.data.schdules;
  386. for(let i=0;i<scheduleData.length;i++){
  387. scheduleData[i].sort = scheduleData[i].number.sort
  388. }
  389. var arr = scheduleData.sort(this.compare('sort'))
  390. var arr = scheduleData.sort(this.compare('sort'))
  391. this.scheduleData = arr
  392. } else {
  393. this.$message.error("网络错误");
  394. return false;
  395. }
  396. });
  397. },
  398. getScheduleList(){
  399. const params = {
  400. week_type:this.week_type,
  401. week_time:this.week_time,
  402. zone:this.zone,
  403. }
  404. getScheduleList(params).then(response=>{
  405. if(response.data.state ==1){
  406. console.log("22333333333",this.pre_status)
  407. var list = response.data.data.list
  408. if(this.pre_status == 0){
  409. for(let i=0;i<list.length;i++){
  410. list[i].sort = list[i].number.sort
  411. }
  412. var arr = list.sort(this.compare('sort'))
  413. console.log("list2222999999999",list)
  414. this.scheduleData = arr
  415. }
  416. if(this.pre_status == 1){
  417. var newList = []
  418. for(let i=0;i<list.length;i++){
  419. if(list[i].prescription.id > 0){
  420. newList.push(list[i])
  421. }
  422. }
  423. var arr = newList.sort(this.compare('sort'))
  424. this.scheduleData = arr
  425. }
  426. if(this.pre_status == 2){
  427. var newList = []
  428. for(let i=0;i<list.length;i++){
  429. if(list[i].prescription.id ==0){
  430. newList.push(list[i])
  431. }
  432. }
  433. var arr = newList.sort(this.compare('sort'))
  434. this.scheduleData = arr
  435. }
  436. }
  437. })
  438. },
  439. weekType(weekTime) {
  440. var theType = 2;
  441. switch (weekTime) {
  442. case "lastWeek":
  443. theType = 1;
  444. break;
  445. case "thisWeek":
  446. theType = 2;
  447. break;
  448. case "nextWeek":
  449. theType = 3;
  450. break;
  451. case "nextTwoWeek":
  452. theType = 4;
  453. break;
  454. default:
  455. theType = 2;
  456. break;
  457. }
  458. return theType;
  459. },
  460. weekPath(week) {
  461. var weekArr = {
  462. 1: "Monday",
  463. 2: "Tuesday",
  464. 3: "Wednesday",
  465. 4: "Thursday",
  466. 5: "Friday",
  467. 6: "Saturday",
  468. 7: "Sunday"
  469. };
  470. if (typeof weekArr[week] == "undefined") {
  471. return "";
  472. }
  473. return weekArr[week];
  474. },
  475. selectWeekType(type) {
  476. this.week_type = type;
  477. this.getScheduleList()
  478. },
  479. selectWeekTime(type){
  480. this.week_time = type
  481. this.getScheduleList()
  482. },
  483. selectPreStatus(type){
  484. this.pre_status = type
  485. this.getScheduleList()
  486. },
  487. selectZoneList(type){
  488. this.zone = type
  489. this.getScheduleList()
  490. },
  491. getSchedulesType: function(type) {
  492. let type_name = "";
  493. switch (type) {
  494. case 1:
  495. type_name = "上午";
  496. break;
  497. case 2:
  498. type_name = "下午";
  499. break;
  500. case 3:
  501. type_name = "晚上";
  502. break;
  503. }
  504. return type_name;
  505. },
  506. getAdvice: function(doctor_advice) {
  507. if (doctor_advice.length > 0) {
  508. let name = "";
  509. for (let i = 0; i < doctor_advice.length; i++) {
  510. let prescribing_number = "";
  511. let single_dose = "";
  512. let drug_spec = "";
  513. if (doctor_advice[i].prescribing_number > 0) {
  514. prescribing_number =
  515. doctor_advice[i].prescribing_number +
  516. doctor_advice[i].prescribing_number_unit;
  517. }
  518. if (doctor_advice[i].single_dose > 0) {
  519. single_dose =
  520. " 单次用量 " +
  521. doctor_advice[i].single_dose +
  522. doctor_advice[i].single_dose_unit;
  523. }
  524. if (doctor_advice[i].drug_spec > 0) {
  525. drug_spec =
  526. doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit;
  527. }
  528. name =
  529. name +
  530. doctor_advice[i].advice_name +
  531. " " +
  532. drug_spec +
  533. " " +
  534. prescribing_number +
  535. " " +
  536. single_dose +
  537. " " +
  538. doctor_advice[i].delivery_way +
  539. " " +
  540. doctor_advice[i].execution_frequency +
  541. " " +
  542. doctor_advice[i].remark +
  543. "\n";
  544. if (doctor_advice[i].child.length > 0) {
  545. for (let a = 0; a < doctor_advice[i].child.length; a++) {
  546. if (doctor_advice[i].child[a].prescribing_number > 0) {
  547. doctor_advice[i].child[a]["presc"] =
  548. doctor_advice[i].child[a].prescribing_number +
  549. doctor_advice[i].child[a].prescribing_number_unit;
  550. } else {
  551. doctor_advice[i].child[a]["presc"] = "";
  552. }
  553. if (doctor_advice[i].child[a].single_dose > 0) {
  554. doctor_advice[i].child[a]["single"] =
  555. " " +
  556. " 单次用量 " +
  557. " " +
  558. doctor_advice[i].child[a].single_dose +
  559. doctor_advice[i].child[a].single_dose_unit;
  560. } else {
  561. doctor_advice[i].child[a]["single"] = "";
  562. }
  563. name =
  564. name +
  565. "▲" +
  566. doctor_advice[i].child[a].advice_name +
  567. "" +
  568. doctor_advice[i].child[a].advice_desc +
  569. doctor_advice[i].child[a].drug_spec_unit +
  570. doctor_advice[i].child[a].presc +
  571. doctor_advice[i].child[a].single +
  572. "\n";
  573. }
  574. }
  575. }
  576. return name;
  577. }else{
  578. return ""
  579. }
  580. },
  581. getAdviceOne: function(doctor_advice) {
  582. if (doctor_advice.length > 0) {
  583. let name = "";
  584. for (let i = 0; i < doctor_advice.length; i++) {
  585. let prescribing_number = "";
  586. let single_dose = "";
  587. let drug_spec = "";
  588. if (doctor_advice[i].prescribing_number > 0) {
  589. prescribing_number =
  590. doctor_advice[i].prescribing_number +
  591. doctor_advice[i].prescribing_number_unit;
  592. }
  593. if (doctor_advice[i].single_dose > 0) {
  594. single_dose =
  595. " 单次用量 " +
  596. doctor_advice[i].single_dose +
  597. doctor_advice[i].single_dose_unit;
  598. }
  599. if (doctor_advice[i].drug_spec > 0) {
  600. drug_spec =
  601. doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit;
  602. }
  603. name =
  604. name +
  605. doctor_advice[i].advice_name +
  606. " " +
  607. drug_spec +
  608. " " +
  609. prescribing_number +
  610. " " +
  611. single_dose +
  612. " " +
  613. doctor_advice[i].delivery_way +
  614. " " +
  615. doctor_advice[i].execution_frequency +
  616. " " +
  617. doctor_advice[i].remark +
  618. "\n";
  619. }
  620. return name;
  621. }else{
  622. return ""
  623. }
  624. },
  625. printActionSetting(){
  626. this.getlist()
  627. this.dialogVisible = true
  628. },
  629. saveRemindPrint(){
  630. console.log("455555555",this.perfusion_apparatus)
  631. if(this.perfusion_apparatus == true){
  632. console.log("3333")
  633. this.form.perfusion_apparatus = 1
  634. }
  635. if(this.perfusion_apparatus == false){
  636. this.form.perfusion_apparatus = 2
  637. }
  638. if(this.prescription_status == true){
  639. this.form.prescription_status = 1
  640. }
  641. if(this.prescription_status == false){
  642. this.form.prescription_status = 2
  643. }
  644. if(this.week == true){
  645. this.form.week = 1
  646. }
  647. if(this.week == false){
  648. this.form.week = 2
  649. }
  650. if(this.name == true){
  651. this.form.name = 1
  652. }
  653. if(this.name == false){
  654. this.form.name = 2
  655. }
  656. if(this.zone == true){
  657. this.form.zone = 1
  658. }
  659. if(this.zone == false){
  660. this.form.zone = 2
  661. }
  662. if(this.classes == true){
  663. this.form.classes = 1
  664. }
  665. if(this.classes == false){
  666. this.form.classes = 2
  667. }
  668. if(this.number == true){
  669. this.form.number = 1
  670. }
  671. if(this.number == false){
  672. this.form.number = 2
  673. }
  674. if(this.mode == true){
  675. this.form.mode = 1
  676. }
  677. if(this.mode == false){
  678. this.form.mode = 2
  679. }
  680. if(this.dialyzers == true){
  681. this.form.dialyzers = 1
  682. }
  683. if(this.dialyzers == false){
  684. this.form.dialyzers = 2
  685. }
  686. if(this.anticoagulant == true){
  687. this.form.anticoagulant = 1
  688. }
  689. if(this.anticoagulant == false){
  690. this.form.anticoagulant = 2
  691. }
  692. if(this.anticoagulant_zongliang == true){
  693. this.form.anticoagulant_zongliang = 1
  694. }
  695. if(this.anticoagulant_zongliang == false){
  696. this.form.anticoagulant_zongliang = 2
  697. }
  698. if(this.doctor_advice == true){
  699. this.form.doctor_advice =1
  700. }
  701. if(this.doctor_advice == false){
  702. this.form.doctor_advice = 2
  703. }
  704. console.log("555555555",this.form.prescription_status)
  705. var params = {
  706. id:this.form.id,
  707. prescription_status:this.form.prescription_status,
  708. week:this.form.week,
  709. name:this.form.name,
  710. zone:this.form.zone,
  711. classes:this.form.classes,
  712. number:this.form.number,
  713. mode:this.form.mode,
  714. dialyzers:this.form.dialyzers,
  715. perfusion_apparatus:this.form.perfusion_apparatus,
  716. anticoagulant:this.form.anticoagulant,
  717. anticoagulant_zongliang:this.form.anticoagulant_zongliang,
  718. doctor_advice:this.form.doctor_advice,
  719. }
  720. console.log("params",params)
  721. saveRemindPrint(params).then(response=>{
  722. if(response.data.state == 1){
  723. var settting = response.data.data.setting
  724. this.$message.success("保存成功")
  725. this.dialogVisible = false
  726. this.getlist()
  727. }
  728. })
  729. },
  730. getlist(){
  731. getRemindPrintList().then(response=>{
  732. if(response.data.state == 1){
  733. var list = response.data.data.list
  734. console.log("list222332",list)
  735. if(list.anticoagulant == 1){
  736. console.log("进来22222")
  737. this.anticoagulant = true
  738. }
  739. if(list.anticoagulant == 2){
  740. this.anticoagulant = false
  741. }
  742. if(list.anticoagulant_zongliang == 1){
  743. this.anticoagulant_zongliang = true
  744. }
  745. if(list.anticoagulant_zongliang == 2){
  746. this.anticoagulant_zongliang = false
  747. }
  748. if(list.classes == 1 ){
  749. this.classes = true
  750. }
  751. if(list.classes == 2){
  752. this.classes = false
  753. }
  754. if(list.dialyzers == 1){
  755. this.dialyzers = true
  756. }
  757. if(list.dialyzers == 2){
  758. this.dialyzers = false
  759. }
  760. if(list.doctor_advice == 1){
  761. this.doctor_advice = true
  762. }
  763. if(list.doctor_advice == 2){
  764. this.doctor_advice = false
  765. }
  766. if(list.name == 1){
  767. this.name = true
  768. }
  769. if(list.name == 2){
  770. this.name = false
  771. }
  772. if(list.number == 1){
  773. this.number = true
  774. }
  775. if(list.number == 2){
  776. this.number = false
  777. }
  778. if(list.perfusion_apparatus == 1){
  779. this.perfusion_apparatus = true
  780. }
  781. if(list.perfusion_apparatus == 2){
  782. this.perfusion_apparatus = false
  783. }
  784. if(list.prescription_status == 1){
  785. this.prescription_status = true
  786. }
  787. if(list.prescription_status == 2){
  788. this.prescription_status = false
  789. }
  790. if(list.week == 1){
  791. this.week = true
  792. }
  793. if(list.week == 2){
  794. this.week = false
  795. }
  796. if(list.zone == 1){
  797. this.zone = true
  798. }
  799. if(list.zone == 2){
  800. this.zone = false
  801. }
  802. if(list.mode ==1){
  803. this.mode = true
  804. }
  805. if(list.mode == 2){
  806. this.mode = false
  807. }
  808. this.form.id = list.id
  809. }
  810. })
  811. },
  812. getAllZoneList(){
  813. getAllZoneList().then(response=>{
  814. if(response.data.state == 1){
  815. var zonelist = response.data.data.zoneList
  816. this.zoneList.push(...zonelist)
  817. }
  818. })
  819. }
  820. },
  821. components: {
  822. WeekItem
  823. },
  824. created() {
  825. this.modeOptions = this.$store.getters.treatment_mode;
  826. this.anticoagulants_confit = this.$store.getters.anticoagulants_confit;
  827. this.week_type = new Date().getDay();
  828. if (this.week_type == 0) {
  829. this.week_type = 7;
  830. }
  831. this.org_id = this.$store.getters.xt_user.org.id
  832. this.getScheduleList()
  833. this.getAllZoneList()
  834. }
  835. };
  836. </script>
  837. <style rel="stylesheet/css" lang="scss">
  838. .el-table td,
  839. .el-table th.is-leaf,
  840. .el-table--border,
  841. .el-table--group {
  842. border-color: #d0d3da;
  843. }
  844. .el-table--border::after,
  845. .el-table--group::after,
  846. .el-table::before {
  847. background-color: #d0d3da;
  848. }
  849. </style>