Просмотр исходного кода

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 10 месяцев назад
Родитель
Сommit
3ad9b82c5c

+ 105 - 0
src/xt_pages/Dialysisanalysis/otherIndicators/otherIndicators.vue Просмотреть файл

@@ -0,0 +1,105 @@
1
+<!-- 甲状旁腺激素分析 -->
2
+<template>
3
+  <div class="main-contain">
4
+    <div class="position">
5
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
6
+    </div>
7
+    <div class="app-container">
8
+      <div class="page_patientControlAnalysis">
9
+        <el-tabs v-model="activeName" @tab-click="handleClick" >
10
+          <el-tab-pane label="统计全部" name="first">
11
+            <keep-alive>
12
+              <otherIndicatorsall :project_id="project_id" :item_id="item_id" v-if="activeName == 'first'"></otherIndicatorsall>
13
+            </keep-alive>
14
+          </el-tab-pane>
15
+
16
+          <el-tab-pane label="统计个人" name="second">
17
+            <keep-alive>
18
+              <otherIndicatorsone  :project_id="project_id" :item_id="item_id"  v-if="activeName == 'second'"></otherIndicatorsone>
19
+            </keep-alive>
20
+          </el-tab-pane>
21
+
22
+        </el-tabs>
23
+      </div>
24
+    </div>
25
+  </div>
26
+</template>
27
+
28
+<script>
29
+// import echarts from 'echarts'
30
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
31
+import otherIndicatorsall from './otherIndicatorsall.vue'
32
+import otherIndicatorsone from './otherIndicatorsone.vue'
33
+export default {
34
+  name:'otherIndicators',
35
+  components: {
36
+    BreadCrumb,
37
+    otherIndicatorsall,
38
+    otherIndicatorsone
39
+  },
40
+  data() {
41
+    return {
42
+      activeName: 'first',
43
+      project_id:this.$route.query.project_id,
44
+      item_id:this.$route.query.item_id,
45
+
46
+    }
47
+  },
48
+  methods:{
49
+    handleClick(tab, event) {
50
+      console.log(tab, event);
51
+    }
52
+  }
53
+}
54
+</script>
55
+
56
+<style lang="scss" scoped>
57
+// .page_patientControlAnalysis {
58
+
59
+// .pointTitle {
60
+   //   font-size: 13px;
61
+   // }
62
+
63
+// .chartTitle {
64
+   //   font-size: 16px;
65
+   //   font-weight: bold;
66
+   //   color: #000000;
67
+   // }
68
+
69
+// .point {
70
+   //   width: 13px;
71
+   //   height: 13px;
72
+   //   background: linear-gradient(
73
+   //       0deg,
74
+   //       rgba(169, 224, 243, 1),
75
+   //       rgba(159, 189, 252, 1)
76
+   //   );
77
+   //   border-radius: 7px;
78
+   //   margin-right: 8px;
79
+   // }
80
+
81
+// .pointTitle {
82
+   //   font-size: 13px;
83
+   // }
84
+
85
+// }
86
+
87
+</style>
88
+
89
+<style lang="scss">
90
+// .page_patientControlAnalysis {
91
+
92
+// .el-form-item {
93
+   //   margin-bottom: 0;
94
+   // }
95
+
96
+// .cell {
97
+   //   text-align: center;
98
+   // }
99
+
100
+// ::-webkit-scrollbar {
101
+   //   height: 15px !important;
102
+   // }
103
+
104
+// }
105
+</style>

+ 697 - 0
src/xt_pages/Dialysisanalysis/otherIndicators/otherIndicatorsall.vue Просмотреть файл

@@ -0,0 +1,697 @@
1
+<template>
2
+  <div>
3
+    <el-row :gutter="25">
4
+      <el-col :span="5">
5
+        <div class="block">
6
+          <span>查询时间:</span>
7
+          <el-select size="small" v-model="time_type" placeholder="请选择"
8
+                     style="width:150px;margin-left:10px;" @change="changeItem">
9
+            <el-option
10
+              v-for="item,index in times"
11
+              :key="index"
12
+              :label="item.label"
13
+              :value="item.value">
14
+            </el-option>
15
+          </el-select>
16
+        </div>
17
+      </el-col>
18
+      <el-col :span="8">
19
+        <div>
20
+          <el-date-picker
21
+            style="width: 200px"
22
+
23
+            v-model="start_time"
24
+            format="yyyy-MM-dd"
25
+            value-format="yyyy-MM-dd"
26
+            type="date"
27
+
28
+            placeholder="选择日期">
29
+          </el-date-picker>
30
+          <span>-</span>
31
+          <el-date-picker
32
+            style="width: 200px"
33
+            v-model="end_time"
34
+            format="yyyy-MM-dd"
35
+            value-format="yyyy-MM-dd"
36
+            type="date"
37
+            placeholder="选择日期">
38
+          </el-date-picker>
39
+        </div>
40
+      </el-col>
41
+      <el-col :span="5">
42
+        <div >
43
+          <el-input disabled v-model="input" placeholder="请输入内容"></el-input>
44
+        </div>
45
+      </el-col>
46
+      <el-col :span="3">
47
+        <el-button type="primary" @click="getData()">查询</el-button>
48
+      </el-col>
49
+    </el-row>
50
+    <div class="cell clearfix" style="margin: 20px; font-weight: bold;">
51
+      <p class="chartTitle">统计图</p>
52
+    </div>
53
+    <div class="echart" id="mychart" :style={width:width,height:height}></div>
54
+    <div style="width: 80%;margin: auto;">
55
+      <el-table
56
+        :data="tableData"
57
+        border
58
+        :header-cell-style="{
59
+          backgroundColor: 'rgb(245, 247, 250)',
60
+          color: '#606266'
61
+        }"
62
+        style="width: 100%;">
63
+        <el-table-column
64
+          prop="name"
65
+          align="center"
66
+          label="血红蛋白"
67
+
68
+
69
+        >
70
+        </el-table-column>
71
+        <el-table-column
72
+          prop="count"
73
+          label="人数"
74
+        >
75
+        </el-table-column>
76
+        <el-table-column
77
+          prop="address"
78
+          align="center"
79
+          label="操作">
80
+          <template slot-scope="scope">
81
+            <el-button @click="handleClick(scope.row)" style="font-size:16px;"
82
+                       type="text">查看详情
83
+            </el-button>
84
+          </template>
85
+        </el-table-column>
86
+      </el-table>
87
+    </div>
88
+    <el-dialog
89
+      width="1000px" class="registerDialog" :visible.sync="detailVisibility"
90
+      :close-on-click-modal="isClose"
91
+      :close-on-press-escape="isClose"
92
+    >
93
+      <el-row :gutter="25">
94
+        <el-col :span="5">
95
+          <div class="block">
96
+            <span>查询时间:</span>
97
+            <el-select size="small" v-model="time_type_two" placeholder="请选择"
98
+                       style="width:100px;margin-left:5px;" @change="changeItemTwo">
99
+              <el-option
100
+                v-for="item,index in times"
101
+                :key="index"
102
+                :label="item.label"
103
+                :value="item.value">
104
+              </el-option>
105
+            </el-select>
106
+          </div>
107
+        </el-col>
108
+        <el-col :span="10">
109
+          <div>
110
+            <el-date-picker
111
+              style="width: 120px"
112
+              v-model="start_time_one"
113
+              format="yyyy-MM-dd"
114
+              value-format="yyyy-MM-dd"
115
+              type="date"
116
+
117
+              placeholder="选择日期">
118
+            </el-date-picker>
119
+            <span>-</span>
120
+            <el-date-picker
121
+              style="width: 120px"
122
+              v-model="end_time_one"
123
+              format="yyyy-MM-dd"
124
+              value-format="yyyy-MM-dd"
125
+              type="date"
126
+              placeholder="选择日期">
127
+            </el-date-picker>
128
+          </div>
129
+        </el-col>
130
+
131
+        <el-col :span="4">
132
+          <div>
133
+
134
+            <el-select size="small" v-model="statistics_type" placeholder="请选择"
135
+                       style="width:100px;margin-left:5px;">
136
+              <el-option
137
+                v-for="item,index in statistics_types"
138
+                :key="index"
139
+                :label="item.label"
140
+                :value="item.value">
141
+              </el-option>
142
+            </el-select>
143
+
144
+          </div>
145
+        </el-col>
146
+
147
+        <!--        <el-col :span="4">-->
148
+        <!--          <div>-->
149
+        <!--            <el-select size="small" v-model="sort_type" placeholder="请选择"-->
150
+        <!--                       style="width:100px;margin-left:5px;">-->
151
+        <!--              <el-option-->
152
+        <!--                v-for="item,index in sort_types"-->
153
+        <!--                :key="index"-->
154
+        <!--                :label="item.label"-->
155
+        <!--                :value="item.value">-->
156
+        <!--              </el-option>-->
157
+        <!--            </el-select>-->
158
+        <!--          </div>-->
159
+        <!--        </el-col>-->
160
+
161
+        <el-col :span="4">
162
+          <div >
163
+            <el-input v-model="keyword" placeholder="请输入患者姓名或透析号"></el-input>
164
+          </div>
165
+        </el-col>
166
+
167
+        <el-col :span="2">
168
+          <div>
169
+            <el-button @click="getDataTwo()">查询</el-button>
170
+          </div>
171
+        </el-col>
172
+
173
+        <el-col :span="2">
174
+          <div>
175
+            <el-button @click="exportAction()">导出</el-button>
176
+          </div>
177
+        </el-col>
178
+
179
+        <!--        <el-col :span="2">-->
180
+        <!--          <div>-->
181
+        <!--            <el-button @click="getDataTwo()">打印</el-button>-->
182
+        <!--          </div>-->
183
+        <!--        </el-col>-->
184
+
185
+
186
+
187
+
188
+
189
+      </el-row>
190
+
191
+      <el-table
192
+        :data="patientTableData"
193
+        border
194
+        ref="table"
195
+        max-height="500px"
196
+        style="width: 100%">
197
+        <el-table-column
198
+          prop="dialysis_no"
199
+          align="center"
200
+          label="透析号"
201
+        >
202
+        </el-table-column>
203
+        <el-table-column
204
+          prop="name"
205
+          label="患者姓名"
206
+        >
207
+        </el-table-column>
208
+        <el-table-column
209
+          prop="date"
210
+          label="检查日期"
211
+        >
212
+        </el-table-column>
213
+
214
+        <el-table-column
215
+          prop="inspect_value"
216
+          label="结果"
217
+        >
218
+        </el-table-column>
219
+
220
+      </el-table>
221
+
222
+      <div slot="footer" class="dialog-footer">
223
+        <el-button @click="detailVisibility = false">取消</el-button>
224
+        <el-button type="primary" @click="detailVisibility = false">确定</el-button>
225
+      </div>
226
+    </el-dialog>
227
+
228
+  </div>
229
+</template>
230
+<script>
231
+import * as echarts from 'echarts'
232
+import { GetAllQCStatistisData, GetQCStatistisData } from '../../../api/qcd'
233
+import { number } from 'echarts/lib/export'
234
+
235
+const moment = require('moment')
236
+
237
+export default {
238
+  props: {
239
+    project_id:{
240
+      type: number,
241
+    }, item_id:{
242
+      type: number,
243
+    },
244
+    width: {
245
+      type: String,
246
+      default: '100%'
247
+    },
248
+    height: {
249
+      type: String,
250
+      default: '400px'
251
+    }
252
+
253
+  },
254
+  data() {
255
+    return {
256
+      statistics_types:[
257
+        { value: 1, label: '不达标患者' },
258
+        { value: 2, label: '未检查患者' },
259
+        { value: 3, label: '达标患者' },
260
+      ],
261
+      sort_types:[
262
+        { value: 1, label: '时间' },
263
+        { value: 2, label: '患者' },
264
+      ],
265
+      detailVisibility:false,
266
+      isClose:true,
267
+      time_type: 1,
268
+      time_type_two:1,
269
+      times: [
270
+        { value: 1, label: '本月' },
271
+        { value: 2, label: '上月' },
272
+        { value: 3, label: '今年' },
273
+        { value: 4, label: '上一年' },
274
+        { value: 5, label: '第一季度' },
275
+        { value: 6, label: '第二季度' },
276
+        { value: 7, label: '第三季度' },
277
+        { value: 8, label: '第四季度' },
278
+        { value: 9, label: '自定义' }
279
+
280
+      ],
281
+      reference:{},
282
+      time_month: '',
283
+      start_time: new Date(new Date().getFullYear(), new Date().getMonth(), 1).toLocaleDateString('en-CA'),
284
+      end_time: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0).toLocaleDateString('en-CA'),
285
+      start_time_one: new Date(new Date().getFullYear(), new Date().getMonth(), 1).toLocaleDateString('en-CA'),
286
+      end_time_one: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0).toLocaleDateString('en-CA'),
287
+      input: '',
288
+      myChart: {},
289
+      pieData: [],
290
+      pieName: [],
291
+      // myChartStyle:{float: "right", width: "100%", height: "400px"},
292
+      tableData: [],
293
+      statistics_type:1,
294
+      sort_type:"",
295
+      keyword:"",
296
+      patientTableData:[],
297
+    }
298
+  },
299
+  mounted() {
300
+    this.getData()
301
+  },
302
+  methods: {
303
+    exportAction(){
304
+      let list = []
305
+      for (let i = 0; i < this.patientTableData.length; i++) {
306
+        let order = this.patientTableData[i]
307
+        let name = order.name
308
+        let value = order.inspect_value
309
+        let inspect_date = order.date
310
+
311
+        let obj = {
312
+          '姓名': name,
313
+          '数值': value,
314
+          '日期': inspect_date,
315
+        }
316
+        list.push(obj)
317
+      }
318
+      import('@/vendor/Export2Excel').then(excel => {
319
+        const tHeader = ['姓名', '数值', '日期']
320
+        const filterVal = ['姓名', '数值', '日期']
321
+        const data = this.formatJson(filterVal, list)
322
+        excel.export_json_to_excel1({
323
+          header: tHeader,
324
+          data,
325
+          filename: '明细',
326
+          ref: this.$refs['table'].$el
327
+        })
328
+      })
329
+    },
330
+
331
+    formatJson(filterVal, jsonData) {
332
+      return jsonData.map(v => filterVal.map(j => v[j]))
333
+    },
334
+    changeItemTwo(val) {
335
+      const currentDate = new Date()
336
+      switch (val) {
337
+        case 1:
338
+          const startOfMonth = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1).toLocaleDateString('en-CA')
339
+          const endOfMonth = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 0).toLocaleDateString('en-CA')
340
+          this.start_time_one = startOfMonth
341
+          this.end_time_one = endOfMonth
342
+          // this.getDataTwo()
343
+          break
344
+        case 2:
345
+          // 上月的起始日期和结束日期
346
+          const startOfLastMonth = new Date(currentDate.getFullYear(), currentDate.getMonth() - 1, 1).toLocaleDateString('en-CA')
347
+          const endOfLastMonth = new Date(currentDate.getFullYear(), currentDate.getMonth(), 0).toLocaleDateString('en-CA')
348
+          this.start_time_one = startOfLastMonth
349
+          this.end_time_one = endOfLastMonth
350
+          // this.getDataTwo()
351
+          break
352
+        case 3:
353
+          // 今年的起始日期和结束日期
354
+          const startOfYear = new Date(currentDate.getFullYear(), 0, 1).toLocaleDateString('en-CA')
355
+          const endOfYear = new Date(currentDate.getFullYear(), 11, 31).toLocaleDateString('en-CA')
356
+
357
+          this.start_time_one = startOfYear
358
+          this.end_time_one = endOfYear
359
+          // this.getDataTwo()
360
+
361
+          break
362
+        case 4:
363
+          // 上一年的起始日期和结束日期
364
+          const startOfLastYear = new Date(currentDate.getFullYear() - 1, 0, 1).toLocaleDateString('en-CA')
365
+          const endOfLastYear = new Date(currentDate.getFullYear() - 1, 11, 31).toLocaleDateString('en-CA')
366
+
367
+          this.start_time_one = startOfLastYear
368
+          this.end_time_one = endOfLastYear
369
+          // this.getDataTwo()
370
+
371
+          break
372
+        case 5:
373
+          // 第一季度的起始日期和结束日期
374
+          const startOfFirstQuarter = new Date(currentDate.getFullYear(), 0, 1).toLocaleDateString('en-CA')
375
+          const endOfFirstQuarter = new Date(currentDate.getFullYear(), 2, 31).toLocaleDateString('en-CA')
376
+          this.start_time_one = startOfFirstQuarter
377
+          this.end_time_one = endOfFirstQuarter
378
+          // this.getDataTwo()
379
+          break
380
+        case 6:
381
+          // 第二季度的起始日期和结束日期
382
+          const startOfSecondQuarter = new Date(currentDate.getFullYear(), 3, 1).toLocaleDateString('en-CA')
383
+          const endOfSecondQuarter = new Date(currentDate.getFullYear(), 5, 30).toLocaleDateString('en-CA')
384
+          this.start_time_one = startOfSecondQuarter
385
+          this.end_time_one = endOfSecondQuarter
386
+          // this.getDataTwo()
387
+          break
388
+        case 7:
389
+          // 第三季度的起始日期和结束日期
390
+          const startOfThirdQuarter = new Date(currentDate.getFullYear(), 6, 1).toLocaleDateString('en-CA')
391
+          const endOfThirdQuarter = new Date(currentDate.getFullYear(), 8, 30).toLocaleDateString('en-CA')
392
+
393
+          this.start_time_one = startOfThirdQuarter
394
+          this.end_time_one = endOfThirdQuarter
395
+          // this.getDataTwo()
396
+
397
+          break
398
+        case 8:
399
+          // 第四季度的起始日期和结束日期
400
+          const startOfFourthQuarter = new Date(currentDate.getFullYear(), 9, 1).toLocaleDateString('en-CA')
401
+          const endOfFourthQuarter = new Date(currentDate.getFullYear(), 11, 31).toLocaleDateString('en-CA')
402
+
403
+          this.start_time_one = startOfFourthQuarter
404
+          this.end_time_one = endOfFourthQuarter
405
+          // this.getDataTwo()
406
+          break
407
+        case 9:
408
+          this.start_time_one = ''
409
+          this.end_time_one = ''
410
+          break
411
+      }
412
+    },
413
+
414
+    getDataTwo() {
415
+      if(this.start_time_one.length == 0){
416
+        this.$message.error("请选择开始时间")
417
+      }
418
+      if(this.end_time_one.length == 0){
419
+        this.$message.error("请选择结束时间")
420
+      }
421
+      let params = {
422
+        start_date: this.start_time_one,
423
+        end_date: this.end_time_one,
424
+        project_id: this.project_id,
425
+        item_id: this.item_id,
426
+        item_type:this.statistics_type,
427
+        order_type:this.sort_type,
428
+        keyword: this.keyword,
429
+      }
430
+      this.patientTableData = []
431
+      GetAllQCStatistisData(params).then(response => {
432
+        if (response.data.state == 1) {
433
+          this.detailVisibility = true
434
+          this.patientTableData  =  this.patientTableData.concat(response.data.data.list)
435
+        } else {
436
+          this.$message.error(response.data.msg)
437
+        }
438
+      })
439
+
440
+    },
441
+    getData() {
442
+      if(this.start_time.length == 0){
443
+        this.$message.error("请选择开始时间")
444
+      }
445
+      if(this.end_time.length == 0){
446
+        this.$message.error("请选择结束时间")
447
+      }
448
+      let params = {
449
+        start_date: this.start_time,
450
+        end_date: this.end_time,
451
+        project_id: this.project_id,
452
+        item_id: this.item_id
453
+      }
454
+      this.pieData = []
455
+      this.tableData = []
456
+      console.log("~~~~~~~~~~")
457
+      GetQCStatistisData(params).then(response => {
458
+        if (response.data.state == 1) {
459
+          this.reference = response.data.data.reference
460
+          this.input = response.data.data.reference.range_min + "<=" + response.data.data.reference.item_name + "<=" + response.data.data.reference.range_max
461
+          let objone = {
462
+            value:  response.data.data.unusual_total ,
463
+            name: '不达标值患者',
464
+            count:response.data.data.unusual_total,
465
+          }
466
+          this.pieData.push(objone)
467
+          this.tableData.push(objone)
468
+
469
+          let objtwo = {
470
+            value:   response.data.data.normal_total ,
471
+            name: '达标值患者',
472
+            count:response.data.data.normal_total,
473
+
474
+          }
475
+          this.pieData.push(objtwo)
476
+          this.tableData.push(objtwo)
477
+
478
+          let objthree = {
479
+            value: response.data.data.no_check_total ,
480
+            name: '未检查患者',
481
+            count:response.data.data.no_check_total,
482
+
483
+          }
484
+          this.pieData.push(objthree)
485
+          this.tableData.push(objthree)
486
+
487
+          let objfour = {
488
+            value: response.data.data.patient_count,
489
+            name: '合计',
490
+            count:response.data.data.patient_count,
491
+          }
492
+          this.tableData.push(objfour)
493
+          for (let i = 0; i < this.pieData.length; i++) {
494
+            this.pieName[i] = this.pieData[i].name
495
+          }
496
+          this.myChart = echarts.init(document.getElementById('mychart'))
497
+          window.addEventListener('resize', () => {
498
+            this.myChart.resize()
499
+          })
500
+          const option = {
501
+            legend: {
502
+              // 图例
503
+              data: this.pieName,
504
+              left: '10%',
505
+              top: '30%',
506
+              orient: 'vertical'
507
+            },
508
+            color: ['#F74587', '#32D79B', '#6590FF'],
509
+
510
+
511
+            title: {
512
+              // 设置饼图标题,位置设为顶部居中
513
+              //   text: "国内院士前五省份图示",
514
+              top: '0%',
515
+              left: 'center'
516
+            },
517
+            series: [
518
+              {
519
+                type: 'pie',
520
+                label: {
521
+                  normal : {
522
+                    formatter: '{b}:{c}: ({d}%)',
523
+                    textStyle : {
524
+                        fontWeight : 'normal',
525
+                        fontSize : 15,
526
+                        color : "black"
527
+                    }
528
+                  }
529
+                  // b代表名称,c代表对应值,d代表百分比"{b} : {d}% ({c})"
530
+                },
531
+                radius: '65%', //饼图半径
532
+                data: this.pieData,
533
+                itemStyle : {
534
+                  emphasis: {
535
+                      shadowBlur: 10,
536
+                      shadowOffsetX: 0,
537
+                      shadowColor: 'rgba(0, 0, 0, 0.5)'
538
+                  }
539
+                }
540
+              }
541
+            ]
542
+          }
543
+          //   console.log(this.seriesData);
544
+          const optionFree = {
545
+            series: [
546
+              {
547
+                data: this.seriesData,
548
+                type: 'line',
549
+                smooth: true
550
+              }
551
+            ]
552
+          }
553
+          this.myChart = echarts.init(document.getElementById('mychart'))
554
+          this.myChart.setOption(option)
555
+        } else {
556
+          this.$message.error(response.data.msg)
557
+        }
558
+      })
559
+
560
+    },
561
+    changeItem(val) {
562
+      const currentDate = new Date()
563
+      switch (val) {
564
+        case 1:
565
+
566
+          const startOfMonth = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1).toLocaleDateString('en-CA')
567
+          const endOfMonth = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 0).toLocaleDateString('en-CA')
568
+
569
+          this.start_time = startOfMonth
570
+          this.end_time = endOfMonth
571
+          this.getData()
572
+
573
+          break
574
+        case 2:
575
+          // 上月的起始日期和结束日期
576
+          const startOfLastMonth = new Date(currentDate.getFullYear(), currentDate.getMonth() - 1, 1).toLocaleDateString('en-CA')
577
+          const endOfLastMonth = new Date(currentDate.getFullYear(), currentDate.getMonth(), 0).toLocaleDateString('en-CA')
578
+
579
+          this.start_time = startOfLastMonth
580
+          this.end_time = endOfLastMonth
581
+          this.getData()
582
+
583
+          break
584
+        case 3:
585
+          // 今年的起始日期和结束日期
586
+          const startOfYear = new Date(currentDate.getFullYear(), 0, 1).toLocaleDateString('en-CA')
587
+          const endOfYear = new Date(currentDate.getFullYear(), 11, 31).toLocaleDateString('en-CA')
588
+
589
+          this.start_time = startOfYear
590
+          this.end_time = endOfYear
591
+          this.getData()
592
+
593
+          break
594
+        case 4:
595
+          // 上一年的起始日期和结束日期
596
+          const startOfLastYear = new Date(currentDate.getFullYear() - 1, 0, 1).toLocaleDateString('en-CA')
597
+          const endOfLastYear = new Date(currentDate.getFullYear() - 1, 11, 31).toLocaleDateString('en-CA')
598
+
599
+          this.start_time = startOfLastYear
600
+          this.end_time = endOfLastYear
601
+          this.getData()
602
+
603
+          break
604
+        case 5:
605
+          // 第一季度的起始日期和结束日期
606
+          const startOfFirstQuarter = new Date(currentDate.getFullYear(), 0, 1).toLocaleDateString('en-CA')
607
+          const endOfFirstQuarter = new Date(currentDate.getFullYear(), 2, 31).toLocaleDateString('en-CA')
608
+
609
+          this.start_time = startOfFirstQuarter
610
+          this.end_time = endOfFirstQuarter
611
+          this.getData()
612
+
613
+          break
614
+        case 6:
615
+          // 第二季度的起始日期和结束日期
616
+          const startOfSecondQuarter = new Date(currentDate.getFullYear(), 3, 1).toLocaleDateString('en-CA')
617
+          const endOfSecondQuarter = new Date(currentDate.getFullYear(), 5, 30).toLocaleDateString('en-CA')
618
+
619
+          this.start_time = startOfSecondQuarter
620
+          this.end_time = endOfSecondQuarter
621
+          this.getData()
622
+
623
+          break
624
+        case 7:
625
+          // 第三季度的起始日期和结束日期
626
+          const startOfThirdQuarter = new Date(currentDate.getFullYear(), 6, 1).toLocaleDateString('en-CA')
627
+          const endOfThirdQuarter = new Date(currentDate.getFullYear(), 8, 30).toLocaleDateString('en-CA')
628
+
629
+          this.start_time = startOfThirdQuarter
630
+          this.end_time = endOfThirdQuarter
631
+          this.getData()
632
+
633
+          break
634
+        case 8:
635
+          // 第四季度的起始日期和结束日期
636
+          const startOfFourthQuarter = new Date(currentDate.getFullYear(), 9, 1).toLocaleDateString('en-CA')
637
+          const endOfFourthQuarter = new Date(currentDate.getFullYear(), 11, 31).toLocaleDateString('en-CA')
638
+
639
+          this.start_time = startOfFourthQuarter
640
+          this.end_time = endOfFourthQuarter
641
+          this.getData()
642
+          break
643
+        case 9:
644
+          this.start_time = ''
645
+          this.end_time = ''
646
+          break
647
+      }
648
+    },
649
+
650
+
651
+    getSummaries(param) {
652
+      const { columns, data } = param
653
+      const sums = []
654
+      columns.forEach((column, index) => {
655
+        if (index === 0) {
656
+          sums[index] = '总价'
657
+          return
658
+        }
659
+        const values = data.map(item => Number(item[column.property]))
660
+        if (!values.every(value => isNaN(value))) {
661
+          sums[index] = values.reduce((prev, curr) => {
662
+            const value = Number(curr)
663
+            if (!isNaN(value)) {
664
+              return prev + curr
665
+            } else {
666
+              return prev
667
+            }
668
+          }, 0)
669
+          sums[index] += ' 元'
670
+        } else {
671
+          sums[index] = 'N/A'
672
+        }
673
+      })
674
+
675
+      return sums
676
+    },
677
+    handleClick(row) {
678
+      if(row.name == "不达标值患者"){
679
+        this.statistics_type = 1
680
+      }else if(row.name == "达标值患者"){
681
+        this.statistics_type = 3
682
+      }else {
683
+        this.statistics_type = 2
684
+      }
685
+      this.getDataTwo()
686
+    }
687
+  }
688
+
689
+}
690
+</script>
691
+<style lang="scss" scoped>
692
+.content_top {
693
+  display: flex;
694
+  justify-content: space-around;
695
+  color: #1e5feb;
696
+}
697
+</style>

src/xt_pages/Dialysisanalysis/otherIndicators/otheralone.vue → src/xt_pages/Dialysisanalysis/otherIndicators/otherIndicatorsone.vue Просмотреть файл

@@ -83,9 +83,9 @@
83 83
           <div style="padding-left:10px;flex:1;width:0;">
84 84
             <div class="tableTitle">指标趋势<span style="font-weight:normal">&nbsp;&nbsp;(当前患者: {{patient_name}})</span></div>
85 85
             <div>
86
-              <line-chart :options="chart"
87
-                          v-if="query.statistics_type != 9 && query.statistics_type != 10"></line-chart>
88
-              <line-chart :options="bar" v-if="query.statistics_type == 9 || query.statistics_type == 10"></line-chart>
86
+              <line-chart :options="chart"></line-chart>
87
+              <!--              <line-chart :options="bar" v-if="query.statistics_type == 9 || query.statistics_type == 10"></line-chart>-->
88
+              <!--              <line-chart></line-chart>-->
89 89
 
90 90
             </div>
91 91
             <div class="tableTitle">统计表</div>
@@ -93,32 +93,25 @@
93 93
               <el-table ref="table" :data="tableData" v-loading="loading" border :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
94 94
                 <el-table-column label="姓名" align="center">
95 95
                   <template slot-scope="scope">
96
+                    {{scope.row.name}}
96 97
                   </template>
97 98
                 </el-table-column>
98 99
 
99 100
                 <el-table-column width="100" label="检查日期" align="center">
100 101
                   <template slot-scope="scope">
102
+                    {{getTime(scope.row.inspect_date)}}
103
+
101 104
                   </template>
102 105
                 </el-table-column>
103 106
 
104
-                <el-table-column width="100" label="甲状旁腺激素分析" align="center">
107
+                <el-table-column width="100" label="血红蛋白" align="center">
105 108
                   <template slot-scope="scope">
109
+                    {{scope.row.value}}
106 110
                   </template>
107 111
                 </el-table-column>
108 112
               </el-table>
109 113
 
110
-              <el-pagination
111
-                align="right"
112
-                @size-change="handleSizeChange"
113
-                @current-change="handleCurrentChange"
114
-                :current-page="query.page"
115
-                :page-sizes="[10, 20, 50, 100]"
116
-                :page-size="10"
117
-                background
118
-                style="margin-top:20px;"
119
-                layout="total, sizes, prev, pager, next, jumper"
120
-                :total="total"
121
-              ></el-pagination>
114
+
122 115
             </div>
123 116
           </div>
124 117
         </el-container>
@@ -130,7 +123,6 @@
130 123
 
131 124
 <script>
132 125
 import echarts from 'echarts'
133
-// import LineChart from '../../qcd/components/LineChart'
134 126
 import {  uParseTime } from '@/utils/tools'
135 127
 import { getCurrentOrgPatients } from '@/api/common/common'
136 128
 import {
@@ -139,9 +131,11 @@ import {
139 131
 import { PostSearch } from '@/api/patient'
140 132
 import { getDataConfig } from '@/utils/data'
141 133
 import { GetPersonQCStatistisData } from '../../../api/qcd'
134
+import LineChart from '../../qcd/components/LineChart.vue'
142 135
 
143 136
 export default {
144 137
   components: {
138
+    LineChart
145 139
   },
146 140
   data() {
147 141
     return {
@@ -365,25 +359,19 @@ export default {
365 359
       for (let i = 0; i < this.tableData.length; i++) {
366 360
         let order = this.tableData[i]
367 361
         let name = order.name
368
-        let item_name = order.item_name
369
-        let count = order.count
370
-        let price = order.price.toFixed(2)
371
-        let pay_sumamt = (order.price.toFixed(2) * order.count).toFixed(2)
372
-        let total = order.total.toFixed(2)
362
+        let value = order.value
363
+        let inspect_date = order.inspect_date
373 364
 
374 365
         let obj = {
375
-          '患者姓名': name,
376
-          '项目名称': item_name,
377
-          '数量': count,
378
-          '单价': price,
379
-          '费用': pay_sumamt,
380
-          '费用总额': total
366
+          '姓名': name,
367
+          '数值': value,
368
+          '日期': inspect_date,
381 369
         }
382 370
         list.push(obj)
383 371
       }
384 372
       import('@/vendor/Export2Excel').then(excel => {
385
-        const tHeader = ['患者姓名', '项目名称', '数量', '单价', '费用', '费用总额']
386
-        const filterVal = ['患者姓名', '项目名称', '数量', '单价', '费用', '费用总额']
373
+        const tHeader = ['姓名', '数值', '日期']
374
+        const filterVal = ['姓名', '数值', '日期']
387 375
         const data = this.formatJson(filterVal, list)
388 376
         excel.export_json_to_excel1({
389 377
           header: tHeader,
@@ -480,7 +468,7 @@ export default {
480 468
       if(val == "" || val == undefined){
481 469
         return ""
482 470
       }else {
483
-        return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
471
+        return uParseTime(val, '{y}-{m}-{d}')
484 472
       }
485 473
     },
486 474
     GetInspectionCheckIndexTableData(params) {
@@ -493,7 +481,12 @@ export default {
493 481
             this.loading = false
494 482
             this.tableData = []
495 483
             for (let i = 0; i < resp.data.inspections.length; i++) {
496
-              this.tableData.push(resp.data.inspections[i])
484
+              let obj = {
485
+                name:resp.data.patient.name,
486
+                value:resp.data.inspections[i].inspect_value,
487
+                inspect_date:resp.data.inspections[i].inspect_date
488
+              }
489
+              this.tableData.push(obj)
497 490
             }
498 491
             this.total = resp.data.total
499 492
 
@@ -515,10 +508,14 @@ export default {
515 508
         .then(rs => {
516 509
           var resp = rs.data
517 510
           if (resp.state == 1) {
511
+            console.log(resp.data.inspections)
518 512
             for (let i = 0; i < resp.data.inspections.length; i++) {
519 513
               this.chart.xAxis.data.push(this.getTime(resp.data.inspections[i].inspect_date))
520 514
               this.chart.series[0].data.push(resp.data.inspections[i].inspect_value)
521 515
             }
516
+            console.log(this.chart.xAxis.data)
517
+            console.log( this.chart.series[0].data)
518
+
522 519
             this.getArrLength(this.chart.xAxis.data,1)
523 520
           } else {
524 521
 
@@ -610,8 +607,8 @@ export default {
610 607
     this.query.patient_id = 0
611 608
     this.query.end_time = year + '-' + month + '-' + day
612 609
     this.query.start_time = year + '-' + last_month + '-' + day
613
-    this.query.project_id = 20
614
-    this.query.item_id = 171
610
+    this.query.project_id = 1
611
+    this.query.item_id = 17
615 612
     this.getCurrentOrgPatients()
616 613
 
617 614
     // this.GetPersonQCStatistisData()

+ 0 - 265
src/xt_pages/Dialysisanalysis/otherIndicators/otherall.vue Просмотреть файл

@@ -1,265 +0,0 @@
1
-<template>
2
-    <div>
3
-        <!-- <div class="content_top">
4
-            <div class="block">
5
-                <span>查询时间:</span>
6
-                <el-date-picker
7
-                v-model="time_month"
8
-                type="month"
9
-                placeholder="选择月">
10
-                </el-date-picker>
11
-            </div>
12
-            <div>
13
-                <el-date-picker
14
-                v-model="stat_time"
15
-                type="date"
16
-                placeholder="选择日期">
17
-                </el-date-picker>
18
-                <span>-</span>
19
-                <el-date-picker
20
-                v-model="end_time"
21
-                type="date"
22
-                placeholder="选择日期">
23
-                </el-date-picker>
24
-            </div>
25
-            <div style="width: 200px;">
26
-                <el-input v-model="input" placeholder="请输入内容"></el-input>
27
-            </div>
28
-            <el-button type="primary">查询</el-button>
29
-        </div> -->
30
-
31
-        <el-row :gutter="20">
32
-        <el-col :span="5">
33
-          <div class="block">
34
-            <span>查询时间:</span>
35
-            <el-date-picker
36
-            v-model="time_month"
37
-            type="month"
38
-            placeholder="选择月">
39
-            </el-date-picker>
40
-          </div>
41
-        </el-col>
42
-        <el-col :span="8">
43
-          <div>
44
-            <el-date-picker
45
-            v-model="stat_time"
46
-            type="date"
47
-            placeholder="选择日期">
48
-            </el-date-picker>
49
-            <span>-</span>
50
-            <el-date-picker
51
-            v-model="end_time"
52
-            type="date"
53
-            placeholder="选择日期">
54
-            </el-date-picker>
55
-          </div>
56
-        </el-col>
57
-        <el-col :span="3">
58
-          <div style="width: 200px;">
59
-            <el-input v-model="input" placeholder="请输入内容"></el-input>
60
-          </div>
61
-        </el-col>
62
-        <el-col :span="2">
63
-            <el-button type="primary">查询</el-button>
64
-        </el-col>
65
-        </el-row>
66
-
67
-        <div class="cell clearfix" style="margin: 20px; font-weight: bold;">
68
-          <p class="chartTitle">统计图</p>
69
-        </div>
70
-        <div class="echart" id="mychart" :style={width:width,height:height}></div>
71
-        <div style="width: 80%;margin: auto;">
72
-            <el-table
73
-            :data="tableData"
74
-            :show-summary = true
75
-            border
76
-            :header-cell-style="{
77
-              backgroundColor: 'rgb(245, 247, 250)',
78
-              color: '#606266'
79
-            }"
80
-            style="width: 100%;">
81
-                <el-table-column
82
-                    prop="date"
83
-                    align="center"
84
-                    label="白蛋白"
85
-                    >
86
-                </el-table-column>
87
-                <el-table-column
88
-                    prop="name"
89
-                    label="人数"
90
-                    >
91
-                </el-table-column>
92
-<!--                <el-table-column-->
93
-<!--                    prop="address"-->
94
-<!--                    align="center"-->
95
-<!--                    label="操作">-->
96
-<!--                    <template slot-scope="scope">-->
97
-<!--                        <el-button @click="handleClick(scope.row)" style="font-size:16px;"-->
98
-<!--                                type="text" >查看详情-->
99
-<!--                        </el-button>-->
100
-<!--                    </template>-->
101
-<!--                </el-table-column>-->
102
-            </el-table>
103
-        </div>
104
-    </div>
105
-</template>
106
-<script>
107
-import * as echarts from "echarts";
108
-export default{
109
-    props: {
110
-
111
-    width: {
112
-      type: String,
113
-      default: "100%"
114
-    },
115
-    height: {
116
-      type: String,
117
-      default: "400px"
118
-    },
119
-
120
-  },
121
-    data() {
122
-        return {
123
-            time_month:'',
124
-            stat_time:'',
125
-            end_time:'',
126
-            input:'',
127
-            myChart: {},
128
-            pieData : [
129
-            {
130
-          value: 463,
131
-          name: "不达标值患者"
132
-        },
133
-        {
134
-          value: 395,
135
-          name: "未检查患者"
136
-        },
137
-        {
138
-          value: 157,
139
-          name: "达标值患者"
140
-        },
141
-        // {
142
-        //   value: 149,
143
-        //   name: "广东"
144
-        // },
145
-        // {
146
-        //   value: 147,
147
-        //   name: "湖南"
148
-        // }
149
-
150
-            ],
151
-            pieName: [],
152
-            // myChartStyle:{float: "right", width: "100%", height: "400px"},
153
-            tableData:[],
154
-        }
155
-    },
156
-    mounted() {
157
-    this.initDate(); //数据初始化
158
-    this.initEcharts();
159
-  },
160
-  methods: {
161
-    initDate() {
162
-      for (let i = 0; i < this.pieData.length; i++) {
163
-        this.pieName[i] = this.pieData[i].name;
164
-      }
165
-    },
166
-    initEcharts() {
167
-      // 饼图
168
-      const option = {
169
-        legend: {
170
-          // 图例
171
-          data: this.pieName,
172
-          left: "10%",
173
-          top: "30%",
174
-          orient: "vertical"
175
-        },
176
-        color:['#ff7f9f','#fff67f','#1e5feb'],
177
-        title: {
178
-          // 设置饼图标题,位置设为顶部居中
179
-        //   text: "国内院士前五省份图示",
180
-          top: "0%",
181
-          left: "center"
182
-        },
183
-        series: [
184
-          {
185
-            type: "pie",
186
-            label: {
187
-              normal : {
188
-                formatter: '{b}:{c}: ({d}%)',
189
-                textStyle : {
190
-                    fontWeight : 'normal',
191
-                    fontSize : 15,
192
-                    color : "black"
193
-                }
194
-              }
195
-              // b代表名称,c代表对应值,d代表百分比"{b} : {d}% ({c})"
196
-            },
197
-            radius: "65%", //饼图半径
198
-            data: this.pieData,
199
-            itemStyle : {
200
-              emphasis: {
201
-                  shadowBlur: 10,
202
-                  shadowOffsetX: 0,
203
-                  shadowColor: 'rgba(0, 0, 0, 0.5)'
204
-              }
205
-            }
206
-          }
207
-        ]
208
-      };
209
-    //   console.log(this.seriesData);
210
-      const optionFree = {
211
-        series: [
212
-          {
213
-            data: this.seriesData,
214
-            type: "line",
215
-            smooth: true
216
-          }
217
-        ]
218
-      };
219
-      this.myChart = echarts.init(document.getElementById("mychart"));
220
-      this.myChart.setOption(option);
221
-      //随着屏幕大小调节图表
222
-      window.addEventListener("resize", () => {
223
-        this.myChart.resize();
224
-      });
225
-    },
226
-    getSummaries(param) {
227
-        const { columns, data } = param;
228
-        const sums = [];
229
-        columns.forEach((column, index) => {
230
-          if (index === 0) {
231
-            sums[index] = '总价';
232
-            return;
233
-          }
234
-          const values = data.map(item => Number(item[column.property]));
235
-          if (!values.every(value => isNaN(value))) {
236
-            sums[index] = values.reduce((prev, curr) => {
237
-              const value = Number(curr);
238
-              if (!isNaN(value)) {
239
-                return prev + curr;
240
-              } else {
241
-                return prev;
242
-              }
243
-            }, 0);
244
-            sums[index] += ' 元';
245
-          } else {
246
-            sums[index] = 'N/A';
247
-          }
248
-        });
249
-
250
-        return sums;
251
-    },
252
-    handleClick(id){
253
-        console.log(id);
254
-    }
255
-  }
256
-
257
-}
258
-</script>
259
-<style lang="scss" scoped>
260
-.content_top{
261
-    display: flex;
262
-    justify-content: space-around;
263
-    color: #1e5feb;
264
-}
265
-</style>

+ 64 - 4
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Просмотреть файл

@@ -89,7 +89,7 @@
89 89
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
90 90
 
91 91
 
92
-          <div v-if="org_id == 10206  || org_id == 0">
92
+          <div v-if="org_id == 10206  ">
93 93
             <el-button  size="small"
94 94
                         @click="openZb(1)"
95 95
                         v-if=" this.order.id == 0"
@@ -101,7 +101,7 @@
101 101
             </el-button>
102 102
           </div>
103 103
 
104
-          <div  v-if="org_id != 10206 && org_id != 10340 && org_id != 0">
104
+          <div  v-if="org_id != 10206 && org_id != 10340 ">
105 105
             <!--            <el-button size="small"-->
106 106
             <!--                       @click="openZb(1)"-->
107 107
             <!--                       type="primary">登记-->
@@ -114,7 +114,7 @@
114 114
 
115 115
             <el-button v-loading="loadingone" size="small"
116 116
                        @click="open(40)"
117
-                       v-if="org_id == 10191 || org_id == 10318 || org_id == 10567  || org_id == 10375"
117
+                       v-if="org_id == 10191 || org_id == 10318 || org_id == 10567  || org_id == 10375 || org_id == 10480"
118 118
                        type="primary">登陆
119 119
             </el-button>
120 120
 
@@ -913,6 +913,8 @@
913 913
     <register-dialog ref='register' :doctors="doctors" :departments="department" :sick="sick" :diagnoses="diagnoses"
914 914
                      v-on:confirm="confirm" v-on:cancel="cancel"></register-dialog>
915 915
 
916
+    <call-un-association-prescription ref='call_prescription' v-on:call="call" v-on:call-cancel="callCancel"></call-un-association-prescription>
917
+
916 918
     <register-dialog9504 ref='register9504' :doctors="doctors" :departments="department" :sick="sick"
917 919
                          :diagnoses="diagnoses"
918 920
                          v-on:confirm="registerConfirm" v-on:cancel="registerCancel"></register-dialog9504>
@@ -1012,10 +1014,13 @@ import NewStatementPrintTwo from './newStatementPrintTwo'
1012 1014
 import RegisterDialog9504 from './components/registerDialog9504'
1013 1015
 import cryptoJs from 'crypto-js'
1014 1016
 import NewStatementPrintThree from './newStatementPrintThree.vue'
1017
+import CallUnAssociationPrescription from './components/callUnAssociationPrescription.vue'
1018
+import { associationprescription, checkHISPatient } from '../../api/his/his_tools'
1015 1019
 
1016 1020
 const moment = require('moment')
1017 1021
 export default {
1018 1022
   components: {
1023
+    CallUnAssociationPrescription,
1019 1024
     NewStatementPrintThree,
1020 1025
     RegisterDialog9504,
1021 1026
     NewStatementPrintTwo,
@@ -1162,6 +1167,8 @@ export default {
1162 1167
       info: {},
1163 1168
       curPrescriptions: {},
1164 1169
       prescriptions: [],
1170
+      association_prescriptions: [],
1171
+
1165 1172
       big_prescriptions: [],
1166 1173
       big_prescriptions_two: [],
1167 1174
       check: 11,
@@ -1260,6 +1267,35 @@ export default {
1260 1267
     this.getPatientList()
1261 1268
   },
1262 1269
   methods: {
1270
+    call(val,his_patient_id,patient_id) {
1271
+      this.association_prescriptions = []
1272
+      this.association_prescriptions = val
1273
+      var ids  = []
1274
+      for (let i = 0; i < this.prescriptions.length; i++) {
1275
+        ids.push(this.prescriptions[i].id)
1276
+      }
1277
+      //上传关联数据
1278
+      let params = {
1279
+        'record_date': this.record_date,
1280
+        'his_patient_id':his_patient_id,
1281
+        'patient_id':patient_id,
1282
+        'p_ids': ids.join(","),
1283
+      }
1284
+      associationprescription(params).then(response => {
1285
+        if (response.data.state == 0) {
1286
+          this.$message.error(response.data.msg)
1287
+          this.loadingone = false
1288
+          return false
1289
+        } else {
1290
+          this.$message.success("关联成功")
1291
+        }
1292
+      })
1293
+      this.getPatientList()
1294
+      this.$refs.call_prescription.close()
1295
+    },
1296
+    callCancel() {
1297
+      this.$refs.call_prescription.close()
1298
+    },
1263 1299
     comfirmFaPiaoCode(){
1264 1300
       var  that = this
1265 1301
       let params = {
@@ -1723,6 +1759,22 @@ export default {
1723 1759
     registerCancel() {
1724 1760
       this.$refs.register9504.hide()
1725 1761
 
1762
+    },CheckHISPatient(){
1763
+      let params ={
1764
+        record_date:this.record_date,
1765
+        patient_id:this.patientInfo.id
1766
+      }
1767
+      checkHISPatient(params).then(response => {
1768
+        if (response.data.state == 0) {
1769
+          this.$message.error(response.data.msg)
1770
+          this.loadingone = false
1771
+          return false
1772
+        } else {
1773
+          if(response.data.data.status = 1){
1774
+            this.$refs.call_prescription.show(this.patientInfo.name, this.patientInfo.id,  this.record_date, this.record_date,response.data.data.ps,response.data.data.his_patient_id,response.data.data.patient_id)
1775
+          }
1776
+        }
1777
+      })
1726 1778
     },
1727 1779
     registerConfirm(forms) {
1728 1780
       forms['record_time'] = this.record_date
@@ -1745,6 +1797,9 @@ export default {
1745 1797
             this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1746 1798
             this.$refs.register9504.hide()
1747 1799
             this.loadingone = false
1800
+
1801
+            this.CheckHISPatient()
1802
+
1748 1803
           }
1749 1804
         })
1750 1805
       } else {
@@ -1776,6 +1831,8 @@ export default {
1776 1831
                   that.changeRadio(1)
1777 1832
                   that.$refs.register9504.hide()
1778 1833
                   that.$message({ message: '挂号成功', type: 'success' })
1834
+                  that.CheckHISPatient()
1835
+
1779 1836
                 }
1780 1837
               }
1781 1838
             })
@@ -1804,6 +1861,9 @@ export default {
1804 1861
             this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1805 1862
             this.$refs.register.hide()
1806 1863
             this.loadingone = false
1864
+
1865
+            this.CheckHISPatient(this.record_date,this.patientInfo.id)
1866
+
1807 1867
           }
1808 1868
         })
1809 1869
       } else {
@@ -3215,7 +3275,7 @@ export default {
3215 3275
         }
3216 3276
 
3217 3277
         if (this.hisPatientInfo.id_card_type == 1) {
3218
-          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10510 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id !=  10318 && this.$store.getters.xt_user.org_id !=  10210) {
3278
+          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10510 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id !=  10318 && this.$store.getters.xt_user.org_id !=  10210 && this.$store.getters.xt_user.org_id !=  10375 &&  this.$store.getters.xt_user.org_id !=  10480) {
3219 3279
             this.pwdFormVisible = true
3220 3280
             this.pwd = ''
3221 3281
           } else {