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

bloodPresssWatch.vue 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. <template v-if="this.template_id == 1">
  6. <el-button
  7. size="small"
  8. icon="el-icon-printer"
  9. :disabled="selecting_schs.length == 0"
  10. @click="batchPrintAction"
  11. type="primary"
  12. >打印</el-button
  13. >
  14. </template>
  15. <template v-if="this.template_id == 2 || this.template_id == 0">
  16. <div>
  17. <el-button
  18. :loading="loading"
  19. size="small"
  20. icon="el-icon-printer"
  21. @click="batchPrintAction"
  22. type="primary"
  23. >打印全部</el-button
  24. >
  25. <el-button
  26. :loading="loading"
  27. size="small"
  28. icon="el-icon-printer"
  29. @click="batchPrintActionOne"
  30. type="primary"
  31. style=""
  32. >打印纪录单</el-button
  33. >
  34. <el-button
  35. :loading="loading"
  36. size="small"
  37. icon="el-icon-printer"
  38. @click="batchPrintActionTwo"
  39. type="primary"
  40. >打印医嘱单</el-button
  41. >
  42. </div>
  43. </template>
  44. <template v-if="this.template_id == 3">
  45. <el-button
  46. size="small"
  47. icon="el-icon-printer"
  48. :disabled="selecting_schs.length == 0"
  49. @click="batchPrintAction"
  50. type="primary"
  51. >打印</el-button
  52. >
  53. </template>
  54. <template v-if="this.template_id == 4">
  55. <el-button
  56. size="small"
  57. icon="el-icon-printer"
  58. :disabled="selecting_schs.length == 0"
  59. @click="batchPrintAction"
  60. type="primary"
  61. >打印</el-button
  62. >
  63. </template>
  64. <template v-if="this.template_id == 5">
  65. <div>
  66. <el-button
  67. :loading="loading"
  68. size="small"
  69. icon="el-icon-printer"
  70. @click="batchPrintAction"
  71. type="primary"
  72. >打印全部</el-button
  73. >
  74. <el-button
  75. :loading="loading"
  76. size="small"
  77. icon="el-icon-printer"
  78. @click="batchPrintActionOne"
  79. type="primary"
  80. style=""
  81. >打印纪录单</el-button
  82. >
  83. <el-button
  84. :loading="loading"
  85. size="small"
  86. icon="el-icon-printer"
  87. @click="batchPrintActionTwo"
  88. type="primary"
  89. >打印医嘱单</el-button
  90. >
  91. </div>
  92. </template>
  93. <template v-if="this.template_id == 6">
  94. <el-button
  95. size="small"
  96. icon="el-icon-printer"
  97. :disabled="selecting_schs.length == 0"
  98. @click="batchPrintAction"
  99. type="primary"
  100. >打印</el-button
  101. >
  102. </template>
  103. <template v-if="this.template_id == 7">
  104. <el-button
  105. size="small"
  106. icon="el-icon-printer"
  107. :disabled="selecting_schs.length == 0"
  108. @click="batchPrintAction"
  109. type="primary"
  110. >批量打印</el-button
  111. >
  112. </template>
  113. <template v-if="this.template_id == 8">
  114. <el-button
  115. size="small"
  116. icon="el-icon-printer"
  117. :disabled="selecting_schs.length == 0"
  118. @click="batchPrintAction"
  119. type="primary"
  120. >批量打印</el-button
  121. >
  122. </template>
  123. <template v-if="this.template_id == 9">
  124. <el-button
  125. size="small"
  126. icon="el-icon-printer"
  127. :disabled="selecting_schs.length == 0"
  128. @click="batchPrintAction"
  129. type="primary"
  130. >批量打印</el-button
  131. >
  132. </template>
  133. <template v-if="this.template_id == 12">
  134. <el-button
  135. size="small"
  136. icon="el-icon-printer"
  137. :disabled="selecting_schs.length == 0"
  138. @click="batchPrintAction"
  139. type="primary"
  140. >批量打印</el-button
  141. >
  142. </template>
  143. <template v-if="this.template_id == 13">
  144. <el-button
  145. size="small"
  146. icon="el-icon-printer"
  147. :disabled="selecting_schs.length == 0"
  148. @click="batchPrintAction"
  149. type="primary"
  150. >批量打印</el-button
  151. >
  152. </template>
  153. <template v-if="this.template_id == 15">
  154. <el-button
  155. size="small"
  156. icon="el-icon-printer"
  157. :disabled="selecting_schs.length == 0"
  158. @click="batchPrintAction"
  159. type="primary"
  160. >批量打印</el-button
  161. >
  162. </template>
  163. <template v-if="this.template_id == 20">
  164. <el-button
  165. size="small"
  166. icon="el-icon-printer"
  167. :disabled="selecting_schs.length == 0"
  168. @click="batchPrintAction"
  169. type="primary"
  170. >批量打印</el-button
  171. >
  172. </template>
  173. </div>
  174. <div class="app-container">
  175. <!-- <div class="filter-container">
  176. <el-input style="width: 400px;" v-model="searchKey" class="filter-item"/>
  177. <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
  178. </div>-->
  179. <div class="cell clearfix">
  180. <label class="title">
  181. <span class="name">{{
  182. search_mode == 1 ? "日期查询" : "病人查询"
  183. }}</span>
  184. :
  185. </label>
  186. <el-date-picker
  187. v-show="search_mode == 1"
  188. v-model="time"
  189. prefix-icon="el-icon-date"
  190. @change="changeTime"
  191. :editable="false"
  192. style="width: 250px;"
  193. type="date"
  194. placeholder="选择日期时间"
  195. align="right"
  196. :picker-options="pickerOptions1"
  197. format="yyyy-MM-dd"
  198. value-format="timestamp"
  199. ></el-date-picker>
  200. <el-input
  201. v-show="search_mode == 2"
  202. v-model="patient_search_keyword"
  203. style="width: 250px;"
  204. placeholder="病人名字、透析号"
  205. >
  206. <el-button
  207. slot="append"
  208. style="background-color: #409EFF; color: white; border-radius: 0;"
  209. icon="el-icon-search"
  210. @click="searchPatientAction"
  211. ></el-button>
  212. </el-input>
  213. <el-button type="primary" @click="changeSearchMode">{{
  214. search_mode == 1 ? "改为病人查询" : "改为日期查询"
  215. }}</el-button>
  216. <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
  217. </div>
  218. <div class="cell clearfix">
  219. <label class="title"> <span class="name">排班班次</span> : </label>
  220. <div class="time">
  221. <ul class>
  222. <li
  223. :class="item.value == schedulType ? 'active' : ''"
  224. @click="selectSchedulType(item.value)"
  225. v-for="item in schedulArr"
  226. :key="item.value"
  227. >
  228. {{ item.label }}
  229. </li>
  230. </ul>
  231. </div>
  232. </div>
  233. <div class="cell clearfix">
  234. <label class="title"> <span class="name">分区</span> : </label>
  235. <div class="time">
  236. <ul class>
  237. <li
  238. :class="item.id == partitionType ? 'active' : ''"
  239. @click="selectPartitionType(item.id)"
  240. v-for="item in partitionArr"
  241. :key="item.id"
  242. >
  243. {{ item.name }}
  244. </li>
  245. </ul>
  246. </div>
  247. </div>
  248. <el-table
  249. :row-style="{ color: '#303133' }"
  250. :header-cell-style="{
  251. backgroundColor: 'rgb(245, 247, 250)',
  252. color: '#606266'
  253. }"
  254. :data="SchedualPatientsTableData"
  255. style="width: 100%"
  256. v-loading="loading"
  257. @current-change="clickCurrent"
  258. @selection-change="handleSelectionChange"
  259. >
  260. <el-table-column
  261. type="selection"
  262. width="45"
  263. align="center"
  264. ></el-table-column>
  265. <el-table-column
  266. prop="number"
  267. label="机号"
  268. align="center"
  269. ></el-table-column>
  270. <el-table-column
  271. label="排班日期"
  272. prop="sch_time"
  273. align="center"
  274. width="120"
  275. ></el-table-column>
  276. <el-table-column
  277. prop="dialysis_no"
  278. label="透析号"
  279. align="center"
  280. ></el-table-column>
  281. <el-table-column prop="name" label="姓名" align="center">
  282. <template slot-scope="scope">
  283. <span style="color: #579ef8;width:100%;display:block;">{{ scope.row.name }}</span>
  284. </template>
  285. </el-table-column>
  286. <el-table-column
  287. prop="mode_name"
  288. label="透析模式"
  289. align="center"
  290. width="100"
  291. ></el-table-column>
  292. <el-table-column
  293. prop="dialysis_before_weight"
  294. label="透前称重(kg)"
  295. align="center"
  296. width="120"
  297. ></el-table-column>
  298. <el-table-column
  299. prop="dialysis_after_weight"
  300. label="透后称重(kg)"
  301. align="center"
  302. width="120"
  303. ></el-table-column>
  304. <el-table-column label="透中血压(mmHg)" align="center">
  305. <el-table-column
  306. v-for="(item, index) in labelArr"
  307. :key="index"
  308. :label="item"
  309. align="center"
  310. >
  311. <!-- 数据的遍历 scope.row就代表数据的每一个对象-->
  312. <template slot-scope="scope">
  313. <!--<span>{{scope.row.bp[index].value}}</span>-->
  314. <span>{{ getValue(scope.row.bp[index]) }}</span>
  315. </template>
  316. </el-table-column>
  317. </el-table-column>
  318. </el-table>
  319. <el-pagination
  320. align="right"
  321. @size-change="handleSizeChange"
  322. @current-change="handleCurrentChange"
  323. :page-sizes="[10, 20, 30, 50]"
  324. :page-size="10"
  325. background
  326. style="margin-top:20px;"
  327. layout="total, sizes, prev, pager, next, jumper"
  328. :total="total"
  329. ></el-pagination>
  330. </div>
  331. </div>
  332. </template>
  333. <script>
  334. import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
  335. import { parseTime } from "@/utils";
  336. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  337. import { getPrintTemplate } from "@/api/data";
  338. export default {
  339. name: "Patient",
  340. data() {
  341. return {
  342. crumbs: [
  343. { path: false, name: "透析管理" },
  344. { path: false, name: "透析监测" }
  345. ],
  346. loading: false,
  347. time: "",
  348. search_mode: 1, // 搜索模式 1.日期搜索 2.病人搜索
  349. patient_search_keyword: "",
  350. SchedualPatientsTableData: [],
  351. active: true,
  352. schedulType: 0,
  353. schedulArr: [
  354. { value: 0, label: "全部" },
  355. { value: 1, label: "上午" },
  356. { value: 2, label: "下午" },
  357. { value: 3, label: "晚上" }
  358. ],
  359. template_id: 0,
  360. partitionType: 0,
  361. labelArr: ["第1次", "第2次", "第3次", "第4次", "第5次", "第6次", "第7次"],
  362. pickerOptions1: {
  363. shortcuts: [
  364. {
  365. text: "今天",
  366. onClick(picker) {
  367. var date = new Date();
  368. var year = date.getFullYear();
  369. var month = date.getMonth() + 1;
  370. var day = date.getDate();
  371. if (month < 10) {
  372. month = "0" + month;
  373. }
  374. if (day < 10) {
  375. day = "0" + day;
  376. }
  377. var nowDate = year + "-" + month + "-" + day;
  378. var date1 = new Date(nowDate + " 00:00:00");
  379. picker.$emit("pick", date1.getTime());
  380. }
  381. },
  382. {
  383. text: "昨天",
  384. onClick(picker) {
  385. var d = new Date();
  386. d.setTime(d.getTime() - 3600 * 1000 * 24);
  387. var date = d;
  388. var year = date.getFullYear();
  389. var month = date.getMonth() + 1;
  390. var day = date.getDate();
  391. if (month < 10) {
  392. month = "0" + month;
  393. }
  394. if (day < 10) {
  395. day = "0" + day;
  396. }
  397. var nowDate = year + "-" + month + "-" + day;
  398. var date1 = new Date(nowDate + " 00:00:00");
  399. picker.$emit("pick", date1.getTime());
  400. }
  401. },
  402. {
  403. text: "一周前",
  404. onClick(picker) {
  405. var d = new Date();
  406. d.setTime(d.getTime() - 3600 * 1000 * 24 * 7);
  407. var date = d;
  408. var year = date.getFullYear();
  409. var month = date.getMonth() + 1;
  410. var day = date.getDate();
  411. if (month < 10) {
  412. month = "0" + month;
  413. }
  414. if (day < 10) {
  415. day = "0" + day;
  416. }
  417. var nowDate = year + "-" + month + "-" + day;
  418. var date1 = new Date(nowDate + " 00:00:00");
  419. picker.$emit("pick", date1.getTime());
  420. }
  421. },
  422. {
  423. text: "清空",
  424. onClick(picker) {
  425. picker.$emit("pick");
  426. }
  427. }
  428. ]
  429. },
  430. total: 0,
  431. listQuery: {
  432. page: 1,
  433. limit: 10,
  434. schedul_type: 0,
  435. partition_type: 0,
  436. schedul_time: "",
  437. keywords: ""
  438. },
  439. selecting_schs: [],
  440. partitionArr: []
  441. };
  442. },
  443. created() {
  444. var date = new Date();
  445. this.time = date;
  446. var year = date.getFullYear();
  447. var month = date.getMonth() + 1;
  448. var day = date.getDate();
  449. if (month < 10) {
  450. month = "0" + month;
  451. }
  452. if (day < 10) {
  453. day = "0" + day;
  454. }
  455. var nowDate = year + "-" + month + "-" + day;
  456. var date = new Date(nowDate + " 00:00:00");
  457. this.listQuery.schedul_time = date.getTime();
  458. this.getAllZone();
  459. this.getSchedualPatientList();
  460. this.getTemplateInfo();
  461. // this.template_id = this.$store.getters.xt_user.template_info.template_id;
  462. },
  463. methods: {
  464. getTemplateInfo() {
  465. getPrintTemplate().then(response => {
  466. if (response.data.state == 0) {
  467. this.$message.error(response.data.msg);
  468. return false;
  469. } else {
  470. var template = response.data.data.template;
  471. this.template_id = template.template_id;
  472. }
  473. });
  474. },
  475. clickCurrent(val) {
  476. console.log(val);
  477. this.$router.push({
  478. path: "/dialysis/details",
  479. query: { patient_id: val.patient_id, date: val.sch_time_int }
  480. });
  481. },
  482. handleSelectionChange(val) {
  483. this.selecting_schs = val;
  484. },
  485. selectSchedulType(scheduleType) {
  486. // alert(scheduleType);/
  487. this.schedulType = scheduleType;
  488. this.listQuery.schedul_type = scheduleType;
  489. this.getSchedualPatientList();
  490. },
  491. selectPartitionType(partitionType) {
  492. this.partitionType = partitionType;
  493. this.listQuery.partition_type = partitionType;
  494. this.getSchedualPatientList();
  495. },
  496. changeTime() {
  497. this.listQuery.schedul_time = this.time;
  498. this.getSchedualPatientList();
  499. },
  500. getAllZone: function() {
  501. GetAllZone().then(response => {
  502. if (response.data.state == 0) {
  503. this.$message.error(response.data.msg);
  504. return false;
  505. } else {
  506. this.partitionArr = response.data.data.zone;
  507. this.partitionArr.unshift({ id: 0, name: "全部" });
  508. }
  509. });
  510. },
  511. getSchedualPatientList: function() {
  512. this.loading = true;
  513. if (this.search_mode == 1) {
  514. this.listQuery.keywords = "";
  515. } else {
  516. this.listQuery.schedul_time = "";
  517. }
  518. this.SchedualPatientsTableData = [];
  519. getSchedualPatient(this.listQuery).then(response => {
  520. if (response.data.state == 0) {
  521. this.loading = false;
  522. this.$message.error(response.data.msg);
  523. return false;
  524. } else {
  525. this.loading = false;
  526. this.total = response.data.data.total;
  527. // console.log(response.data.data)
  528. for (let i = 0; i < response.data.data.schedule.length; i++) {
  529. if (response.data.data.schedule[i].patient.id > 0) {
  530. const SchedualPatientsTable = {
  531. bp: []
  532. };
  533. SchedualPatientsTable["sch_id"] =
  534. response.data.data.schedule[i].id;
  535. SchedualPatientsTable["sch_time_int"] =
  536. response.data.data.schedule[i].schedule_date;
  537. SchedualPatientsTable["sch_time"] = parseTime(
  538. response.data.data.schedule[i].schedule_date,
  539. "{y}-{m}-{d}"
  540. );
  541. SchedualPatientsTable["dialysis_no"] =
  542. response.data.data.schedule[i].patient.dialysis_no;
  543. SchedualPatientsTable["name"] =
  544. response.data.data.schedule[i].patient.name;
  545. SchedualPatientsTable["number"] =
  546. response.data.data.schedule[i].device_number.number;
  547. SchedualPatientsTable["gender"] =
  548. response.data.data.schedule[i].patient.gender;
  549. SchedualPatientsTable["source"] =
  550. response.data.data.schedule[i].patient.source;
  551. SchedualPatientsTable["patient_id"] =
  552. response.data.data.schedule[i].patient_id;
  553. SchedualPatientsTable["mode_name"] =
  554. response.data.data.schedule[i].treatment_mode.name;
  555. if (
  556. response.data.data.schedule[i].assessment_before_dislysis.id > 0
  557. ) {
  558. SchedualPatientsTable["dialysis_before_weight"] =
  559. response.data.data.schedule[
  560. i
  561. ].assessment_before_dislysis.weight_before;
  562. }
  563. if (
  564. response.data.data.schedule[i].assessment_after_dislysis.id > 0
  565. ) {
  566. SchedualPatientsTable["dialysis_after_weight"] =
  567. response.data.data.schedule[
  568. i
  569. ].assessment_after_dislysis.weight_after;
  570. }
  571. SchedualPatientsTable.bp = [];
  572. for (
  573. let a = 0;
  574. a < response.data.data.schedule[i].monitoring_record.length;
  575. a++
  576. ) {
  577. const bp = {};
  578. bp["value"] =
  579. response.data.data.schedule[i].monitoring_record[
  580. a
  581. ].systolic_blood_pressure.toString() +
  582. "/" +
  583. response.data.data.schedule[i].monitoring_record[
  584. a
  585. ].diastolic_blood_pressure.toString();
  586. SchedualPatientsTable.bp.unshift(bp);
  587. }
  588. this.SchedualPatientsTableData.push(SchedualPatientsTable);
  589. }
  590. }
  591. }
  592. });
  593. },
  594. getValue: function(val) {
  595. if (val != undefined) {
  596. return val.value;
  597. } else {
  598. return "";
  599. }
  600. },
  601. handleCurrentChange(val) {
  602. this.listQuery.page = val;
  603. this.getSchedualPatientList();
  604. },
  605. changeSearchMode: function() {
  606. if (this.search_mode == 1) {
  607. this.search_mode = 2;
  608. } else {
  609. this.search_mode = 1;
  610. }
  611. },
  612. searchPatientAction: function() {
  613. this.listQuery.keywords = this.patient_search_keyword;
  614. console.log(this.patient_search_keyword);
  615. if (this.patient_search_keyword.length == 0) {
  616. return;
  617. }
  618. this.getSchedualPatientList();
  619. },
  620. handleSizeChange(val) {
  621. this.listQuery.limit = val;
  622. this.getSchedualPatientList();
  623. },
  624. batchPrintAction: function() {
  625. if (this.selecting_schs.length === 0) {
  626. this.$message.error("请至少选择一条需要打印的内容");
  627. return false;
  628. }
  629. // 模板ID为6
  630. var sch_ids = [];
  631. for (let index = 0; index < this.selecting_schs.length; index++) {
  632. sch_ids.push(this.selecting_schs[index].sch_id);
  633. }
  634. this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
  635. if (this.template_id == 2 || this.template_id == 0) {
  636. this.$router.push({ path: "/dialysis/print/batch/other" });
  637. } else if (this.template_id == 1) {
  638. this.$router.push({ path: "/dialysis/print/batch" });
  639. } else if (this.template_id == 3) {
  640. this.$router.push({ path: "/dialysis/print/batch/three" });
  641. } else if (this.template_id == 4) {
  642. this.$router.push({ path: "/dialysis/print/batch/four" });
  643. } else if (this.template_id == 5) {
  644. this.$router.push({ path: "/dialysis/print/batch/five" });
  645. } else if (this.template_id == 6) {
  646. this.$router.push({ path: "/dialysis/print/batch/six" });
  647. } else if (this.template_id == 7) {
  648. this.$router.push({ path: "/dialysis/print/batch/seven" });
  649. } else if (this.template_id == 8) {
  650. this.$router.push({ path: "/dialysis/print/batch/eight" });
  651. } else if (this.template_id == 9) {
  652. this.$router.push({ path: "/dialysis/print/batch/nine" });
  653. } else if (this.template_id == 12) {
  654. this.$router.push({ path: "/dialysis/print/batch/twelve" });
  655. } else if (this.template_id == 13) {
  656. this.$router.push({ path: "/dialysis/print/batch/thirteen" });
  657. } else if (this.template_id == 15) {
  658. this.$router.push({ path: "/dialysis/print/batch/fifteen" });
  659. } else if (this.template_id == 20) {
  660. this.$router.push({ path: "/dialysis/print/batch/twenty" });
  661. }
  662. },
  663. batchPrintActionOne: function() {
  664. if (this.selecting_schs.length === 0) {
  665. this.$message.error("请至少选择一条需要打印的内容");
  666. return false;
  667. }
  668. var sch_ids = [];
  669. for (let index = 0; index < this.selecting_schs.length; index++) {
  670. sch_ids.push(this.selecting_schs[index].sch_id);
  671. }
  672. this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
  673. if (this.template_id == 2 || this.template_id == 0) {
  674. this.$router.push({ path: "/dialysis/print/batch/otherone" });
  675. } else if (this.template_id == 1) {
  676. this.$router.push({ path: "/dialysis/print/batch" });
  677. } else if (this.template_id == 5) {
  678. this.$router.push({ path: "/dialysis/print/batch/fiveone" });
  679. }
  680. },
  681. batchPrintActionTwo: function() {
  682. if (this.selecting_schs.length === 0) {
  683. this.$message.error("请至少选择一条需要打印的内容");
  684. return false;
  685. }
  686. var sch_ids = [];
  687. for (let index = 0; index < this.selecting_schs.length; index++) {
  688. sch_ids.push(this.selecting_schs[index].sch_id);
  689. }
  690. this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
  691. if (this.template_id == 2 || this.template_id == 0) {
  692. this.$router.push({ path: "/dialysis/print/batch/othertwo" });
  693. } else if (this.template_id == 1) {
  694. this.$router.push({ path: "/dialysis/print/batch" });
  695. } else if (this.template_id == 5) {
  696. this.$router.push({ path: "/dialysis/print/batch/fivetwo" });
  697. }
  698. }
  699. },
  700. components: {
  701. BreadCrumb
  702. }
  703. };
  704. </script>
  705. <style rel="stylesheet/scss" lang="scss" scoped>
  706. .app-container {
  707. // margin: 20px;
  708. font-size: 15px;
  709. .filter-container {
  710. padding-bottom: 5px;
  711. }
  712. .cqd-dataTitle {
  713. color: #303133;
  714. font-size: 14px;
  715. border-bottom: 2px #e4e7ed solid;
  716. height: 36px;
  717. line-height: 36px;
  718. margin: 0 0 25px 0;
  719. position: relative;
  720. }
  721. .cqd-dataTitle::before {
  722. position: absolute;
  723. left: 0;
  724. bottom: -2px;
  725. content: "";
  726. width: 42px;
  727. height: 2px;
  728. background: #409eff;
  729. }
  730. .search-component {
  731. width: 500px;
  732. .searchBox {
  733. width: 300px;
  734. height: 36px;
  735. line-height: 36px;
  736. padding-left: 15px;
  737. border: 1px #dcdfe6 solid;
  738. border-right: none;
  739. outline: none;
  740. float: left;
  741. border-radius: 6px 0 0 6px;
  742. font-size: 14px;
  743. color: #333;
  744. background: #fff;
  745. box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
  746. }
  747. .searchBtn {
  748. background-color: #409eff;
  749. color: #fff;
  750. font-size: 15px;
  751. text-align: center;
  752. height: 36px;
  753. line-height: 36px;
  754. float: left;
  755. outline: none;
  756. width: 70px;
  757. border: none;
  758. border-radius: 0 6px 6px 0;
  759. font-family: "Microsoft Yahei";
  760. cursor: pointer;
  761. }
  762. }
  763. .amount {
  764. font-weight: normal;
  765. padding: 10px 0 0 0;
  766. color: #606266;
  767. font-size: 14px;
  768. span {
  769. color: #ef2525;
  770. font-family: "Arial";
  771. padding: 0 2px;
  772. }
  773. }
  774. }
  775. .el-table td,
  776. .el-table th.is-leaf,
  777. .el-table--border,
  778. .el-table--group {
  779. border-color: #d0d3da;
  780. }
  781. .el-table--border::after,
  782. .el-table--group::after,
  783. .el-table::before {
  784. background-color: #d0d3da;
  785. }
  786. .el-checkbox__inner::after {
  787. height: 10px;
  788. left: 7px;
  789. }
  790. .el-checkbox__inner {
  791. width: 20px;
  792. height: 20px;
  793. }
  794. </style>