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

bloodPresssWatch.vue 24KB

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