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

dialysisParametersDialog.vue 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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:140px;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:140px;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==4">阿加曲班</span>
  36. <span v-if="scope.row.anticoagulant==5">枸橼酸钠</span>
  37. <span v-if="scope.row.anticoagulant==6">低分子肝素钙</span>
  38. <span v-if="scope.row.anticoagulant==7">低分子肝素钠</span>
  39. <span v-if="scope.row.anticoagulant==8">依诺肝素</span>
  40. <span v-if="scope.row.anticoagulant==9">达肝素</span>
  41. <span v-if="scope.row.anticoagulant==10">体外抗凝</span>
  42. </template>
  43. </el-table-column>
  44. <el-table-column align="center" prop="name"label="数量">
  45. <template slot-scope="scope">
  46. {{scope.row.count}}
  47. </template>
  48. </el-table-column>
  49. </el-table>
  50. </div>
  51. <!-- <div slot="footer" class="dialog-footer">
  52. <el-button @click="hide">取 消</el-button>
  53. <el-button type="primary" @click="submitAction()">保 存</el-button>
  54. </div> -->
  55. </el-dialog>
  56. </template>
  57. <script>
  58. const moment = require('moment')
  59. import { parseTime } from '@/utils'
  60. import { GetAllZone } from "@/api/dialysis";
  61. import { GetAnticoagulantCount} from "@/api/consumable"
  62. export default {
  63. data(){
  64. return{
  65. visible: false,
  66. startTime:moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
  67. endTime:moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
  68. schedulArr: [
  69. {value: 0, label: '全部班'},
  70. {value: 1, label: '上午'},
  71. {value: 2, label: '中午'},
  72. {value: 3, label: '下午'},
  73. ],
  74. schedulType: 0,
  75. partitionArr:[],
  76. partitionType: 0,
  77. tableData: [],
  78. query:{
  79. start_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
  80. end_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD')
  81. },
  82. }
  83. },
  84. created(){
  85. this.getAllZone()
  86. this.getlist()
  87. },
  88. methods:{
  89. _close: function(done) {
  90. done();
  91. },
  92. show() {
  93. this.visible = true;
  94. },
  95. getAllZone: function() {
  96. GetAllZone().then(response => {
  97. if (response.data.state == 0) {
  98. this.$message.error(response.data.msg);
  99. return false;
  100. } else {
  101. this.partitionArr = response.data.data.zone;
  102. this.partitionArr.unshift({ id: 0, name: "全部分区" });
  103. }
  104. });
  105. },
  106. toPrint(){
  107. this.$router.push({
  108. // path: '/dialysis/dialysisParameters_print',
  109. // query: { date: date }
  110. path:"/dialysis/dialysisdrugs_print?startime="+this.query.start_time+"&endtime="+this.query.end_time
  111. })
  112. },
  113. selectStartime() {
  114. this.start_time = parseTime(this.startTime, '{y}-{m}-{d}')
  115. this.query.start_time = parseTime(this.startTime, '{y}-{m}-{d}')
  116. this.getlist()
  117. },
  118. selectEndtime() {
  119. this.end_time = parseTime(this.endTime, '{y}-{m}-{d}')
  120. this.query.end_time = parseTime(this.endTime, '{y}-{m}-{d}')
  121. this.getlist()
  122. },
  123. getlist(){
  124. GetAnticoagulantCount(this.query).then(response=>{
  125. if(response.data.state == 1){
  126. var count = response.data.data.count
  127. console.log("count22222",count)
  128. this.tableData = count
  129. }
  130. })
  131. }
  132. }
  133. }
  134. </script>