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

dialysisFlow.vue 26KB

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