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

dialysisParametersDialog.vue 5.3KB

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