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

bloodPresssWatch.vue 27KB

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