bloodPresssWatch.vue 26KB

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