XMLWAN 4 年前
父节点
当前提交
bab7818552

+ 1 - 1
src/xt_pages/outpatientCharges/costComparison.vue 查看文件

435
             clr_type: '11'
435
             clr_type: '11'
436
           }
436
           }
437
           var that = this
437
           var that = this
438
-          if (this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
438
+          if (this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
439
             axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
439
             axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
440
               params: params
440
               params: params
441
             })
441
             })

+ 1 - 1
src/xt_pages/outpatientCharges/newStatementPrint.vue 查看文件

152
 
152
 
153
       },
153
       },
154
       getInfo(order_id) {
154
       getInfo(order_id) {
155
-        if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106) {
155
+        if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
156
 
156
 
157
           var that = this
157
           var that = this
158
 
158
 

+ 9 - 9
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

133
                         </el-button>
133
                         </el-button>
134
 
134
 
135
                         <el-button
135
                         <el-button
136
-                                v-if="this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106"
136
+                                v-if="this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990"
137
                                 size="small" @click="open(10)" type="primary"
137
                                 size="small" @click="open(10)" type="primary"
138
                         >退号
138
                         >退号
139
                         </el-button>
139
                         </el-button>
140
 
140
 
141
                         <el-button
141
                         <el-button
142
-                        v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919  || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674   || this.$store.getters.xt_user.org_id == 10106"
142
+                        v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919  || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674   || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990"
143
                         size="small" @click="open(11)" type="primary"
143
                         size="small" @click="open(11)" type="primary"
144
                         >撤销明细
144
                         >撤销明细
145
                         </el-button>
145
                         </el-button>
525
     },
525
     },
526
     methods: {
526
     methods: {
527
       query() {
527
       query() {
528
-        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 10106) {
528
+        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
529
           var that = this
529
           var that = this
530
           axios.get('http://127.0.0.1:9532/api/org/info', {
530
           axios.get('http://127.0.0.1:9532/api/org/info', {
531
             params: {}
531
             params: {}
643
 
643
 
644
             })
644
             })
645
 
645
 
646
-        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106) {
646
+        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990  ) {
647
           var that = this
647
           var that = this
648
           axios.get('http://127.0.0.1:9532/api/upload/get', {
648
           axios.get('http://127.0.0.1:9532/api/upload/get', {
649
             params: form,
649
             params: form,
870
 
870
 
871
             })
871
             })
872
 
872
 
873
-        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671  || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106) {
873
+        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671  || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
874
 
874
 
875
           axios.get('http://127.0.0.1:9532/api/register/get', {
875
           axios.get('http://127.0.0.1:9532/api/register/get', {
876
             params: forms,
876
             params: forms,
1495
           }
1495
           }
1496
 
1496
 
1497
         } else if (index == 5) {
1497
         } else if (index == 5) {
1498
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106) {
1498
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
1499
 
1499
 
1500
             var that = this
1500
             var that = this
1501
             this.$confirm('是否退费', '退费', {
1501
             this.$confirm('是否退费', '退费', {
1594
 
1594
 
1595
           var that = this
1595
           var that = this
1596
 
1596
 
1597
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
1597
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
1598
             axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
1598
             axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
1599
               params: params
1599
               params: params
1600
             })
1600
             })
1745
             })
1745
             })
1746
         } else if (index == 15) {
1746
         } else if (index == 15) {
1747
           var that = this
1747
           var that = this
1748
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 10106) {
1748
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 10106 ||   this.$store.getters.xt_user.org_id == 9990) {
1749
 
1749
 
1750
             if (this.diagnosis.length || this.diagnosis == 0) {
1750
             if (this.diagnosis.length || this.diagnosis == 0) {
1751
               that.$message.error('诊断不能为空,请选择诊断内容')
1751
               that.$message.error('诊断不能为空,请选择诊断内容')
1854
 
1854
 
1855
           }
1855
           }
1856
           this.loadingtwo = true
1856
           this.loadingtwo = true
1857
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
1857
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
1858
             var that = this
1858
             var that = this
1859
             axios.get('http://127.0.0.1:9532/api/pre_upload/get', {
1859
             axios.get('http://127.0.0.1:9532/api/pre_upload/get', {
1860
               params: form
1860
               params: form

+ 1 - 1
src/xt_pages/outpatientCharges/statementPrint.vue 查看文件

150
 
150
 
151
     },
151
     },
152
     getInfo(order_id) {
152
     getInfo(order_id) {
153
-      if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 ||  this.$store.getters.xt_user.org_id == 10106  ||  this.$store.getters.xt_user.org_id == 4) {
153
+      if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 ||  this.$store.getters.xt_user.org_id == 10106  ||  this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9990) {
154
 
154
 
155
         var that = this
155
         var that = this
156
 
156
 

+ 3 - 3
src/xt_pages/outpatientCharges/summary.vue 查看文件

100
                     <template slot-scope="scope">
100
                     <template slot-scope="scope">
101
                         <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
101
                         <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
102
                         <el-button size="mini" type="primary" @click="toPrint(scope.row)"
102
                         <el-button size="mini" type="primary" @click="toPrint(scope.row)"
103
-                                   v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) ||  ($store.getters.xt_user.org_id == 10106) ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4)">
103
+                                   v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) ||  ($store.getters.xt_user.org_id == 10106) ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4) || ($store.getters.xt_user.org_id == 9990) ">
104
                             结算单
104
                             结算单
105
                         </el-button>
105
                         </el-button>
106
-                        <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106)">
106
+                        <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106  || $store.getters.xt_user.org_id== 9990)">
107
                             退费
107
                             退费
108
                         </el-button>
108
                         </el-button>
109
                         <!-- <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button> -->
109
                         <!-- <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button> -->
236
         }
236
         }
237
 
237
 
238
       },toRefund(row){
238
       },toRefund(row){
239
-        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106) {
239
+        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
240
           var that = this
240
           var that = this
241
           this.$confirm('是否退费', '退费', {
241
           this.$confirm('是否退费', '退费', {
242
             confirmButtonText: '确 定',
242
             confirmButtonText: '确 定',

+ 2 - 2
src/xt_pages/outpatientRegistration/index.vue 查看文件

1000
                 .catch(function(error) {
1000
                 .catch(function(error) {
1001
 
1001
 
1002
                 })
1002
                 })
1003
-            } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538) {
1003
+            } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9990) {
1004
               var that = this
1004
               var that = this
1005
 
1005
 
1006
               axios.get('http://127.0.0.1:9532/api/register/get', {
1006
               axios.get('http://127.0.0.1:9532/api/register/get', {
1259
                 .catch(function(error) {
1259
                 .catch(function(error) {
1260
 
1260
 
1261
                 })
1261
                 })
1262
-            } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538) {
1262
+            } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9990) {
1263
               var that = this
1263
               var that = this
1264
 
1264
 
1265
               axios.get('http://127.0.0.1:9532/api/register/get', {
1265
               axios.get('http://127.0.0.1:9532/api/register/get', {

+ 56 - 51
src/xt_pages/qcd/basicInformationAnalysis.vue 查看文件

63
           :picker-options="pickerOptions"
63
           :picker-options="pickerOptions"
64
         ></el-date-picker>
64
         ></el-date-picker>
65
       </div>
65
       </div>
66
-       <div class="cell clearfix">
66
+       <!-- <div class="cell clearfix">
67
         <label class="title"><span class="name">转归情况</span> : </label>
67
         <label class="title"><span class="name">转归情况</span> : </label>
68
         <div class="time ">
68
         <div class="time ">
69
           <ul class="">
69
           <ul class="">
70
             <li
70
             <li
71
               :class="item.lapseto == lapsetoType ? 'active' : ''"
71
               :class="item.lapseto == lapsetoType ? 'active' : ''"
72
-              @click="selectLapseOne(item.lapseto)"
72
+              @click="selectLapseTo(item.lapseto)"
73
               v-for="item in lapsetoArr"
73
               v-for="item in lapsetoArr"
74
               :key="item.value"
74
               :key="item.value"
75
             >
75
             >
77
             </li>
77
             </li>
78
           </ul>
78
           </ul>
79
         </div>
79
         </div>
80
-      </div>
81
-      <div class="cell clearfix">
80
+      </div> -->
81
+      <!-- <div class="cell clearfix">
82
         <label class="title"><span class="name">病人来源</span> : </label>
82
         <label class="title"><span class="name">病人来源</span> : </label>
83
         <div class="time ">
83
         <div class="time ">
84
           <ul class="">
84
           <ul class="">
92
             </li>
92
             </li>
93
           </ul>
93
           </ul>
94
         </div>
94
         </div>
95
-      </div>
95
+      </div> -->
96
 
96
 
97
        <div class="cell clearfix" v-show="treatShow">
97
        <div class="cell clearfix" v-show="treatShow">
98
         <label class="title">
98
         <label class="title">
243
                 <p class="infoTitle">转归统计(总人数{{patientCount}}人)</p>
243
                 <p class="infoTitle">转归统计(总人数{{patientCount}}人)</p>
244
               </div>
244
               </div>
245
               <div class="borderBox1">
245
               <div class="borderBox1">
246
-                 <span v-if="lapsetoType == 0 || lapsetoType == 1"><p>留治:{{rollOutTotal}}人({{(rollOutTotal/patientCount*100).toFixed(1)}}%)</p>
247
-                  <el-progress :percentage="(rollOutTotal/patientCount*100).toFixed(1)"></el-progress>
248
-                </span>
249
-                <span v-if="lapsetoType == 0 || lapsetoType == 2"><p>转出:{{outTotal}}人({{(outTotal/patientCount*100).toFixed(1)}}%)</p>
250
-                 <el-progress :percentage="(outTotal/patientCount*100).toFixed(1)"></el-progress>
251
-                </span> 
246
+                <p>留治:{{rollOutTotal}}人({{(rollOutTotal/patientCount*100).toFixed(1)}}%)</p>
247
+                <el-progress :percentage="(rollOutTotal/patientCount*100).toFixed(1)"></el-progress>
248
+                <p>转出:{{outTotal}}人({{(outTotal/patientCount*100).toFixed(1)}}%)</p>
249
+                <el-progress :percentage="(outTotal/patientCount*100).toFixed(1)"></el-progress>
252
               </div>
250
               </div>
253
             </div>
251
             </div>
254
             <div class="infoOne">
252
             <div class="infoOne">
329
         </div>
327
         </div>
330
         <div>
328
         <div>
331
 
329
 
332
-        <!-- <div class="cell clearfix" v-show="treatShow">
330
+        <div class="cell clearfix" v-show="treatShow">
333
         <label class="title">
331
         <label class="title">
334
           <span class="name">转归状态</span> :
332
           <span class="name">转归状态</span> :
335
         </label>
333
         </label>
343
             >{{ item.label }}</li>
341
             >{{ item.label }}</li>
344
           </ul>
342
           </ul>
345
         </div>
343
         </div>
346
-       </div> -->
344
+       </div>
347
 
345
 
348
           <p style="font-size: 16px;font-weight: bold;color: #000;">转归统计</p>
346
           <p style="font-size: 16px;font-weight: bold;color: #000;">转归统计</p>
349
           <line-chart :options="bar"></line-chart>
347
           <line-chart :options="bar"></line-chart>
423
         { value: 0, label: '全部', source: 0, lapseto: 0 },
421
         { value: 0, label: '全部', source: 0, lapseto: 0 },
424
         { value: 1, label: '转出', source: 0, lapseto: 2 },
422
         { value: 1, label: '转出', source: 0, lapseto: 2 },
425
         { value: 2, label: '留治', source: 0, lapseto: 1 },
423
         { value: 2, label: '留治', source: 0, lapseto: 1 },
426
-        // { value: 3, label: '死亡', source:0,  lapseto: 3 },
424
+        { value: 3, label: '死亡', source:0,  lapseto: 3 },
427
       ],
425
       ],
428
       sourceType: 0,
426
       sourceType: 0,
429
       sourceArr: [
427
       sourceArr: [
654
         //统计转归状态
652
         //统计转归状态
655
         this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
653
         this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
656
         //统计男女比例
654
         //统计男女比例
657
-        this.getTotalSexCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
655
+        this.getTotalSexCount(timeStar,timeEnd)
658
         //统计传染病
656
         //统计传染病
659
         this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
657
         this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
660
         //统计年龄
658
         //统计年龄
664
         this.start = timeStar
662
         this.start = timeStar
665
         this.end =timeEnd
663
         this.end =timeEnd
666
         this.getCountModeId()
664
         this.getCountModeId()
667
-        this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
665
+        this.getRolloutCount(timeStar,timeEnd)
668
       }
666
       }
669
     },
667
     },
670
     changeEndTime(val) {
668
     changeEndTime(val) {
692
         this.start = timeStar
690
         this.start = timeStar
693
         this.end =timeEnd
691
         this.end =timeEnd
694
         this.getCountModeId()
692
         this.getCountModeId()
695
-        this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
693
+        this.getRolloutCount(timeStar,timeEnd)
696
       }
694
       }
697
     },
695
     },
698
     selectLapseTo(state) {
696
     selectLapseTo(state) {
701
       //获取本月当前机构的透析模式
699
       //获取本月当前机构的透析模式
702
       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
700
       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
703
       const endDate = moment(new Date()).format('YYYY-MM-DD')
701
       const endDate = moment(new Date()).format('YYYY-MM-DD')
704
-     
702
+
705
       var now = new Date()
703
       var now = new Date()
706
       var nowMonth = now.getMonth(); //当前月
704
       var nowMonth = now.getMonth(); //当前月
707
       var nowYear = now.getFullYear(); //当前年
705
       var nowYear = now.getFullYear(); //当前年
730
         this.start = timeStar
728
         this.start = timeStar
731
         this.end = timeEnd
729
         this.end = timeEnd
732
         this.getCountModeId()
730
         this.getCountModeId()
733
-        this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
731
+        this.getRolloutCount(timeStar,timeEnd)
734
       }
732
       }
735
       //近三月
733
       //近三月
736
       if(state == 1){
734
       if(state == 1){
737
         this.listQuery.start_time = ""
735
         this.listQuery.start_time = ""
738
         this.listQuery.end_time = ""
736
         this.listQuery.end_time = ""
739
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
737
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
740
-       
738
+
741
         var startunitx = Date.parse(startDate)/1000
739
         var startunitx = Date.parse(startDate)/1000
742
         // console.log("开始时间搓",startunitx)
740
         // console.log("开始时间搓",startunitx)
743
         const endDate = moment(new Date()).format('YYYY-MM-DD')
741
         const endDate = moment(new Date()).format('YYYY-MM-DD')
759
         this.start = startunitx
757
         this.start = startunitx
760
         this.end = endunitx
758
         this.end = endunitx
761
         this.getCountModeId()
759
         this.getCountModeId()
762
-        this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
760
+        this.getRolloutCount(startunitx,endunitx)
763
       }
761
       }
764
 
762
 
765
      //近半年
763
      //近半年
790
         this.start = startunitx
788
         this.start = startunitx
791
         this.end = endunitx
789
         this.end = endunitx
792
         this.getCountModeId()
790
         this.getCountModeId()
793
-        this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
791
+        this.getRolloutCount(startunitx,endunitx)
794
      }
792
      }
795
 
793
 
796
      //近一年
794
      //近一年
817
         this.getTotalAgeCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
815
         this.getTotalAgeCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
818
         //统计透析年龄
816
         //统计透析年龄
819
         this.getTotalDialysisCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
817
         this.getTotalDialysisCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
818
+
820
         this.start = startunitx
819
         this.start = startunitx
821
         this.end = endunitx
820
         this.end = endunitx
822
         this.getCountModeId()
821
         this.getCountModeId()
823
-        this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
822
+        this.getRolloutCount(startunitx,endunitx)
824
      }
823
      }
825
 
824
 
826
 
825
 
843
          if(response.data.state == 1){
842
          if(response.data.state == 1){
844
 
843
 
845
           var modetype =  response.data.data.modetype
844
           var modetype =  response.data.data.modetype
846
-         
845
+
847
           this.modetype = modetype
846
           this.modetype = modetype
848
           var total =  response.data.data.total
847
           var total =  response.data.data.total
849
-          
850
-          this.total = total.count
851
-          // this.total = total
848
+
849
+          // this.total = total.count
850
+          this.total = total
852
           // console.log("数据",this.modetype)
851
           // console.log("数据",this.modetype)
853
           var modedate = response.data.data.modetype
852
           var modedate = response.data.data.modetype
854
           for(let i=0;i<modedate.length;i++){
853
           for(let i=0;i<modedate.length;i++){
920
       })
919
       })
921
     },
920
     },
922
     //统计转归
921
     //统计转归
923
-    getTotalLapseCount(startDate,endDate,lapsetoType,sourceType ){
924
-   
922
+    getTotalLapseCount(startDate,endDate){
925
        this.modesDataTwo.series = []
923
        this.modesDataTwo.series = []
926
        this.modesDataTwo.xAxis = []
924
        this.modesDataTwo.xAxis = []
927
-      getTotalLapseCount(startDate,endDate,lapsetoType,sourceType).then(response=>{
925
+      getTotalLapseCount(startDate,endDate).then(response=>{
928
          if(response.data.state == 1){
926
          if(response.data.state == 1){
929
            var arr = [
927
            var arr = [
930
              {name:"留治",count:0},
928
              {name:"留治",count:0},
931
              {name:"转出",count:0}
929
              {name:"转出",count:0}
932
            ]
930
            ]
933
           var patients =  response.data.data.patients
931
           var patients =  response.data.data.patients
934
-      
935
-          this.rollOutTotal = patients.length
936
 
932
 
933
+          this.rollOutTotal = patients.length
937
           var patienttwo = response.data.data.patienttwo
934
           var patienttwo = response.data.data.patienttwo
935
+
938
           this.outTotal = patienttwo.length
936
           this.outTotal = patienttwo.length
939
           var count = response.data.data.count
937
           var count = response.data.data.count
940
           this.patientCount = count
938
           this.patientCount = count
941
 
939
 
942
           var rollout = response.data.data.rollout
940
           var rollout = response.data.data.rollout
943
-        
941
+          console.log("rollout",rollout)
944
 
942
 
945
           for(let i=0;i<arr.length;i++){
943
           for(let i=0;i<arr.length;i++){
946
             arr[0].count = this.rollOutTotal
944
             arr[0].count = this.rollOutTotal
947
             arr[1].count = this.outTotal
945
             arr[1].count = this.outTotal
948
           }
946
           }
947
+
948
+          // for(let j=0;j<arr.length;j++){
949
+          //   this.modesDataTwo.xAxis.push(arr[j].name)
950
+          //   this.modesDataTwo.series.push(((arr[j].count/count)*100).toFixed(1))
951
+          // }
952
+          // this.bar.series[0].data = this.modesDataTwo.series
953
+          // this.bar.xAxis.data = this.modesDataTwo.xAxis
954
+          // this.getArrLength(this.bar.xAxis.data)
955
+
949
          }
956
          }
950
       })
957
       })
951
     },
958
     },
952
     //统计男女比例
959
     //统计男女比例
953
-    getTotalSexCount(timeStar,timeEnd,lapsetoType,sourceType){
954
-      getTotalSexCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
960
+    getTotalSexCount(timeStar,timeEnd){
961
+      getTotalSexCount(timeStar,timeEnd).then(response=>{
955
         if(response.data.state === 1){
962
         if(response.data.state === 1){
956
-          console.log("resp2222",response.data.data.totalWoman)
957
           var total = response.data.data.total
963
           var total = response.data.data.total
964
+        //  console.log("总人数",total)
958
           this.totalGender = total
965
           this.totalGender = total
959
           var totalMan = response.data.data.totalSex
966
           var totalMan = response.data.data.totalSex
967
+       //  console.log("男人",totalMan)
960
           this.totalMan = totalMan
968
           this.totalMan = totalMan
961
-          var totalWoman = response.data.data.totalWoman
969
+          var totalWoman = total - totalMan
962
           this.totalWoman = totalWoman
970
           this.totalWoman = totalWoman
963
         }
971
         }
964
       })
972
       })
965
     },
973
     },
966
     //统计传染病
974
     //统计传染病
967
-    getTotalInfectiousCount(timeStar,timeEnd,lapsetoType,sourceType){
968
-       getTotalInfectiousCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
975
+    getTotalInfectiousCount(timeStar,timeEnd){
976
+       getTotalInfectiousCount(timeStar,timeEnd).then(response=>{
969
            if(response.data.state === 1){
977
            if(response.data.state === 1){
970
              this.InfectiousTotal = response.data.data.total
978
              this.InfectiousTotal = response.data.data.total
971
              var infectious = response.data.data.count
979
              var infectious = response.data.data.count
988
            }
996
            }
989
        })
997
        })
990
     },
998
     },
991
-    getTotalAgeCount(timeStar,timeEnd,lapsetoType,sourceType){
992
-      getTotalAgeCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
999
+    getTotalAgeCount(timeStar,timeEnd){
1000
+      getTotalAgeCount(timeStar,timeEnd).then(response=>{
993
          if(response.data.state == 1){
1001
          if(response.data.state == 1){
994
           var ageCount =  response.data.data.ageCount
1002
           var ageCount =  response.data.data.ageCount
1003
+          // console.log("ageCount",ageCount)
995
           var arr = []
1004
           var arr = []
996
           arr =  ageCount.sort(this.compare('age'))
1005
           arr =  ageCount.sort(this.compare('age'))
997
           this.ageCount = arr
1006
           this.ageCount = arr
1009
           }
1018
           }
1010
       },
1019
       },
1011
     //统计透析年龄
1020
     //统计透析年龄
1012
-    getTotalDialysisCount(timeStar,timeEnd,lapsetoType,sourceType){
1013
-      getTotalDialysisCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
1021
+    getTotalDialysisCount(timeStar,timeEnd){
1022
+      getTotalDialysisCount(timeStar,timeEnd).then(response=>{
1014
          if(response.data.state == 1){
1023
          if(response.data.state == 1){
1015
            var dataage =  response.data.data.dataage
1024
            var dataage =  response.data.data.dataage
1016
           //  console.log("dataage",dataage)
1025
           //  console.log("dataage",dataage)
1167
        this.modesDataTwo.xAxis = []
1176
        this.modesDataTwo.xAxis = []
1168
         const params = {
1177
         const params = {
1169
           start_time:this.start,
1178
           start_time:this.start,
1170
-          end_time:this.end,
1171
-          lapsetotype:this.lapsetoType,
1172
-          sourcetype:this.sourceType,
1179
+          end_time:this.end
1173
         }
1180
         }
1174
       getRolloutCount(params).then(response=>{
1181
       getRolloutCount(params).then(response=>{
1175
          if(response.data.state == 1){
1182
          if(response.data.state == 1){
1218
       this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1225
       this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1219
       this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1226
       this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1220
       this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1227
       this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1221
-      this.getRolloutCount(this.lapsetoType,this.sourceType)
1222
     },
1228
     },
1223
-    selectLapseOne(lapseto) {
1224
-      console.log("lapseto22222",lapseto)
1229
+    selectLapseTo(lapseto) {
1225
       this.lapsetoType = lapseto
1230
       this.lapsetoType = lapseto
1226
       this.getDialysisModeType(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1231
       this.getDialysisModeType(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1227
       this.getTotalLapseCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1232
       this.getTotalLapseCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1229
       this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1234
       this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1230
       this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1235
       this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1231
       this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1236
       this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1232
-      this.getRolloutCount(this.lapsetoType,this.sourceType)
1233
     },
1237
     },
1234
   },
1238
   },
1235
   created() {
1239
   created() {
1266
       this.start = timeStar
1270
       this.start = timeStar
1267
       this.end = timeEnd
1271
       this.end = timeEnd
1268
 
1272
 
1269
-     this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
1273
+     this.getRolloutCount(timeStar,timeEnd)
1270
 
1274
 
1271
 
1275
 
1272
   },
1276
   },
1417
 </style>
1421
 </style>
1418
 
1422
 
1419
 
1423
 
1424
+

+ 1 - 1
src/xt_pages/upload/fast/One.vue 查看文件

5
       <div class="information">
5
       <div class="information">
6
         <div class="row">
6
         <div class="row">
7
           <div class="rowOne">
7
           <div class="rowOne">
8
-            <p class="rowName">首次诊治时间:</p>
8
+            <p class="rowName">首次透析时间:</p>
9
             <el-input
9
             <el-input
10
               placeholder="请输入内容"
10
               placeholder="请输入内容"
11
               v-model="form.first_treatment_date"
11
               v-model="form.first_treatment_date"

+ 1 - 1
src/xt_pages/user/components/PatientForm.vue 查看文件

785
             </el-col>
785
             </el-col>
786
 
786
 
787
             <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
787
             <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
788
-              <el-form-item label="首次诊治时间 : ">
788
+              <el-form-item label="首次透析时间 : ">
789
                 <el-date-picker
789
                 <el-date-picker
790
                   v-model="form.first_treatment_date"
790
                   v-model="form.first_treatment_date"
791
                   type="date"
791
                   type="date"