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

dialysisParametersDialog.vue 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <template>
  2. <el-dialog
  3. title="透析参数统计"
  4. width="800px"
  5. :visible.sync="visible"
  6. :before-close="_close"
  7. >
  8. <div>
  9. <el-date-picker
  10. style="width:150px;margin-right:10px"
  11. v-model="startTime"
  12. type="date"
  13. placeholder="选择日期"
  14. @change="selectStartime">
  15. </el-date-picker>
  16. <el-date-picker
  17. style="width:150px;margin-right:10px"
  18. v-model="endTime"
  19. type="date"
  20. placeholder="选择日期">
  21. </el-date-picker>
  22. <el-button icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button>
  23. </div>
  24. <div style="margin-top:10px;">
  25. <el-table :data="tableData" border style="width: 100%" height="300">
  26. <el-table-column align="center" prop="address" label="商品类型">
  27. <template slot-scope="scope">
  28. 抗凝剂
  29. </template>
  30. </el-table-column>
  31. <el-table-column align="center" prop="name" label="规格名称">
  32. <template slot-scope="scope">
  33. <span v-if="scope.row.anticoagulant==1">无肝素</span>
  34. <span v-if="scope.row.anticoagulant==2">普通肝素</span>
  35. <span v-if="scope.row.anticoagulant==3">低分子肝素</span>
  36. <span v-if="scope.row.anticoagulant==4">阿加曲班</span>
  37. <span v-if="scope.row.anticoagulant==5">枸橼酸钠</span>
  38. <span v-if="scope.row.anticoagulant==6">低分子肝素钙</span>
  39. <span v-if="scope.row.anticoagulant==7">低分子肝素钠</span>
  40. <span v-if="scope.row.anticoagulant==8">依诺肝素</span>
  41. <span v-if="scope.row.anticoagulant==9">达肝素</span>
  42. <span v-if="scope.row.anticoagulant==10">体外抗凝</span>
  43. <span v-if="scope.row.anticoagulant==11">那曲肝素</span>
  44. </template>
  45. </el-table-column>
  46. <el-table-column align="center" prop="name"label="数量">
  47. <template slot-scope="scope">
  48. {{scope.row.count}}
  49. </template>
  50. </el-table-column>
  51. </el-table>
  52. </div>
  53. <!-- <div slot="footer" class="dialog-footer">
  54. <el-button @click="hide">取 消</el-button>
  55. <el-button type="primary" @click="submitAction()">保 存</el-button>
  56. </div> -->
  57. </el-dialog>
  58. </template>
  59. <script>
  60. const moment = require('moment')
  61. import { parseTime } from '@/utils'
  62. import { GetAllZone } from "@/api/dialysis";
  63. import { GetAnticoagulantCount} from "@/api/consumable"
  64. export default {
  65. data(){
  66. return{
  67. visible: false,
  68. startTime:moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
  69. endTime:moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
  70. schedulArr: [
  71. {value: 0, label: '全部班'},
  72. {value: 1, label: '上午'},
  73. {value: 2, label: '中午'},
  74. {value: 3, label: '下午'},
  75. ],
  76. schedulType: 0,
  77. partitionArr:[],
  78. partitionType: 0,
  79. tableData: [],
  80. query:{
  81. start_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
  82. end_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD')
  83. },
  84. }
  85. },
  86. created(){
  87. this.getAllZone()
  88. this.getlist()
  89. },
  90. methods:{
  91. _close: function(done) {
  92. done();
  93. },
  94. show() {
  95. this.visible = true;
  96. },
  97. getAllZone: function() {
  98. GetAllZone().then(response => {
  99. if (response.data.state == 0) {
  100. this.$message.error(response.data.msg);
  101. return false;
  102. } else {
  103. this.partitionArr = response.data.data.zone;
  104. this.partitionArr.unshift({ id: 0, name: "全部分区" });
  105. }
  106. });
  107. },
  108. toPrint(){
  109. this.$router.push({
  110. // path: '/dialysis/dialysisParameters_print',
  111. // query: { date: date }
  112. path:"/dialysis/dialysisdrugs_print?startime="+this.query.start_time+"&endtime="+this.query.end_time + "&type=2"
  113. })
  114. },
  115. selectStartime() {
  116. this.start_time = parseTime(this.startTime, '{y}-{m}-{d}')
  117. this.query.start_time = parseTime(this.startTime, '{y}-{m}-{d}')
  118. this.getlist()
  119. },
  120. selectEndtime() {
  121. this.end_time = parseTime(this.endTime, '{y}-{m}-{d}')
  122. this.query.end_time = parseTime(this.endTime, '{y}-{m}-{d}')
  123. this.getlist()
  124. },
  125. getlist(){
  126. GetAnticoagulantCount(this.query).then(response=>{
  127. if(response.data.state == 1){
  128. var count = response.data.data.count
  129. console.log("count22222",count)
  130. this.tableData = count
  131. }
  132. })
  133. }
  134. }
  135. }
  136. </script>