Ver código fonte

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

csx 4 anos atrás
pai
commit
4034e41bb4

+ 1 - 1
src/xt_pages/outpatientCharges/costComparison.vue Ver arquivo

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 Ver arquivo

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
 

+ 7 - 6
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver arquivo

644
 
644
 
645
             })
645
             })
646
 
646
 
647
-        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
647
+        } else if (this.$store.getters.xt_user.org_id == 9919 ||  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  ) {
648
           var that = this
648
           var that = this
649
           axios.get('http://127.0.0.1:9532/api/upload/get', {
649
           axios.get('http://127.0.0.1:9532/api/upload/get', {
650
             params: form,
650
             params: form,
981
 
981
 
982
             })
982
             })
983
 
983
 
984
-        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
984
+        } else if (this.$store.getters.xt_user.org_id == 9919 || 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) {
985
 
985
 
986
           axios.get('http://127.0.0.1:9532/api/register/get', {
986
           axios.get('http://127.0.0.1:9532/api/register/get', {
987
             params: forms,
987
             params: forms,
1757
           }
1757
           }
1758
 
1758
 
1759
         } else if (index == 5) {
1759
         } else if (index == 5) {
1760
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
1760
+
1761
+          if (this.$store.getters.xt_user.org_id == 9919 || 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 ) {
1761
 
1762
 
1762
             var that = this
1763
             var that = this
1763
             this.$confirm('是否退费', '退费', {
1764
             this.$confirm('是否退费', '退费', {
1856
 
1857
 
1857
           var that = this
1858
           var that = this
1858
 
1859
 
1859
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
1860
+          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) {
1860
             axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
1861
             axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
1861
               params: params
1862
               params: params
1862
             })
1863
             })
2008
             })
2009
             })
2009
         } else if (index == 15) {
2010
         } else if (index == 15) {
2010
           var that = this
2011
           var that = this
2011
-          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) {
2012
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 10106 ||   this.$store.getters.xt_user.org_id == 9990) {
2012
 
2013
 
2013
             if (this.diagnosis.length || this.diagnosis == 0) {
2014
             if (this.diagnosis.length || this.diagnosis == 0) {
2014
               that.$message.error('诊断不能为空,请选择诊断内容')
2015
               that.$message.error('诊断不能为空,请选择诊断内容')
2117
 
2118
 
2118
           }
2119
           }
2119
           this.loadingtwo = true
2120
           this.loadingtwo = true
2120
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
2121
+          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) {
2121
             var that = this
2122
             var that = this
2122
             axios.get('http://127.0.0.1:9532/api/pre_upload/get', {
2123
             axios.get('http://127.0.0.1:9532/api/pre_upload/get', {
2123
               params: form
2124
               params: form

+ 1 - 1
src/xt_pages/outpatientCharges/statementPrint.vue Ver arquivo

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 Ver arquivo

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) || ($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: '确 定',

+ 3 - 3
src/xt_pages/outpatientRegistration/index.vue Ver arquivo

688
             cb([])
688
             cb([])
689
           }
689
           }
690
         })
690
         })
691
-      }, 
691
+      },
692
       readingSZ() {
692
       readingSZ() {
693
         var that = this
693
         var that = this
694
         if (this.form.id_card_type.length == 0 || this.form.id_card_type == 0) {
694
         if (this.form.id_card_type.length == 0 || this.form.id_card_type == 0) {
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 == 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 == 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 Ver arquivo

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
+

+ 48 - 17
src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue Ver arquivo

15
           <table class="print-table" border="1">
15
           <table class="print-table" border="1">
16
             <tbody>
16
             <tbody>
17
             <tr>
17
             <tr>
18
-              <td style="line-height: 50px" width="50">序号</td>
19
-              <td style="line-height: 50px" width="250">药品名称</td>
20
-              <td style="line-height: 50px" width="250">规格型号</td>
21
-              <td style="line-height: 50px" width="50">单位</td>
22
-              <td style="line-height: 50px" width="80">数量</td>
23
-              <td style="line-height:50px" width="80">单价</td>
24
-              <td style="line-height:50px" width="80">总价</td>
18
+              <td width="80">药品名称</td>
19
+              <td width="80">注册证号/批准文号/备案凭证号</td>
20
+              <td width="80">规格型号</td>
21
+              <td width="80">生产厂商</td>
22
+              <td width="80">单位</td>
23
+              <td width="80">进货价</td>
24
+              <td width="80">入库数量</td> 
25
+              <td width="80">总价</td>
26
+              <td width="80">批号</td>
27
+              <td width="80">生产日期</td>
28
+              <td width="80">有效日期</td>
29
+              <td width="80">质检意见</td>
30
+              <td width="80">验收结论</td>
25
             </tr>
31
             </tr>
26
 
32
 
27
             <tr v-for="(item,index) in WarehouseInfo.warehouseInfoDate" :key="item.id">
33
             <tr v-for="(item,index) in WarehouseInfo.warehouseInfoDate" :key="item.id">
28
-              <td style="line-height: 50px">&nbsp;
29
-                {{index+1}}
30
-              </td>
31
               <td style="line-height: 50px">
34
               <td style="line-height: 50px">
32
                  <span v-if="item.drug_id != 0">{{item.drug.drug_name}}</span>
35
                  <span v-if="item.drug_id != 0">{{item.drug.drug_name}}</span>
33
               </td>
36
               </td>
37
+              <td>{{ item.remark }}</td>
34
               <td style="line-height: 50px">
38
               <td style="line-height: 50px">
35
                  <span v-if="item.drug_id != 0">{{item.drug?item.drug.drug_spec:''}}</span>
39
                  <span v-if="item.drug_id != 0">{{item.drug?item.drug.drug_spec:''}}</span>
36
               </td>
40
               </td>
41
+              <td>{{ getManufacturer(item.manufacturer) }}</td>
37
               <td style="line-height: 50px">
42
               <td style="line-height: 50px">
38
                 <span>{{getUnit(item.drug_id)}}</span>
43
                 <span>{{getUnit(item.drug_id)}}</span>
39
               </td>
44
               </td>
40
-            
45
+              <td style="line-height:50px">
46
+                  {{item.price}}
47
+              </td>
41
               <td style="line-height: 50px">
48
               <td style="line-height: 50px">
42
                    <span>{{ item.warehousing_count }}</span>
49
                    <span>{{ item.warehousing_count }}</span>
43
               </td>
50
               </td>
51
+              
44
               <td style="line-height:50px">
52
               <td style="line-height:50px">
45
-                  {{item.price}}
53
+                  <span>{{(item.warehousing_count * item.price).toFixed(2)}}</span>
46
               </td>
54
               </td>
47
-             <td style="line-height:50px">
48
-                <span>{{(item.warehousing_count * item.price).toFixed(2)}}</span>
49
-             </td>
55
+              <td>{{ item.number }}</td>
56
+              <td>{{ item.product_date | parseTime("{y}-{m}-{d}") }}</td>
57
+              <td>{{ item.expiry_date | parseTime("{y}-{m}-{d}") }}</td>
58
+              <td>正常入库</td>
59
+              <td>合格</td>
50
             </tr>
60
             </tr>
51
             <tr>
61
             <tr>
52
               <td>合计</td>
62
               <td>合计</td>
53
-              <td colspan="5"></td>
63
+              <td colspan="11"></td>
54
               <td>{{allPrice.toFixed(2)}}</td>
64
               <td>{{allPrice.toFixed(2)}}</td>
55
             </tr>
65
             </tr>
56
             </tbody>
66
             </tbody>
74
 </template>
84
 </template>
75
 
85
 
76
 <script>
86
 <script>
77
-  import { getPrintStockGood } from '@/api/stock'
87
+  import { GetAllConfig,getPrintStockGood } from '@/api/stock'
78
   import { getDataConfig } from '@/utils/data'
88
   import { getDataConfig } from '@/utils/data'
79
   import { jsGetAge, uParseTime } from '@/utils/tools'
89
   import { jsGetAge, uParseTime } from '@/utils/tools'
80
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
90
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
217
         }
227
         }
218
         return name
228
         return name
219
       },
229
       },
230
+      getManufacturer(id){
231
+        let name = ''
232
+        this.manufacturer.map(item => {
233
+          if(item.id == id){
234
+            name = item.manufacturer_name
235
+          }
236
+        })
237
+        return name
238
+      },
239
+      GetConfigInfo: function() {
240
+        GetAllConfig().then(response => {
241
+            if (response.data.state == 0) {
242
+            this.$message.error(response.data.msg);
243
+            return false;
244
+            } else {
245
+            this.manufacturer = response.data.data.manufacturer;
246
+            }
247
+        });
248
+      },
220
     },
249
     },
221
     created() {
250
     created() {
251
+      this.GetConfigInfo()
222
       const order_id = this.$route.query.id;
252
       const order_id = this.$route.query.id;
223
       this.GetOrderDetail(order_id);
253
       this.GetOrderDetail(order_id);
224
       this.getList()
254
       this.getList()
255
+      
225
     }
256
     }
226
 
257
 
227
   }
258
   }

+ 4 - 4
src/xt_pages/stock/stockInOrderDetailPrint.vue Ver arquivo

26
                                     <td width="80">规格型号</td>
26
                                     <td width="80">规格型号</td>
27
                                     <td width="80">生产厂商</td>
27
                                     <td width="80">生产厂商</td>
28
                                     <td width="80">单位</td>
28
                                     <td width="80">单位</td>
29
-                                     <td width="80">进货价</td>
29
+                                    <td width="80">进货价</td>
30
                                     <td width="80">入库数量</td> 
30
                                     <td width="80">入库数量</td> 
31
                                     <td width="80">总价</td>
31
                                     <td width="80">总价</td>
32
                                     <td width="80">批号</td>
32
                                     <td width="80">批号</td>
39
                             <tbody>
39
                             <tbody>
40
                                 <tr v-for='(item,index) in WarehouseInfo.warehouseInfoDate' :key="index">
40
                                 <tr v-for='(item,index) in WarehouseInfo.warehouseInfoDate' :key="index">
41
                                     <td><span v-if="item.good_id != 0">{{getTypeNameOne(item.good_id)}}</span></td>
41
                                     <td><span v-if="item.good_id != 0">{{getTypeNameOne(item.good_id)}}</span></td>
42
-                                    <td></td>
42
+                                    <td>{{ item.remark }}</td>
43
                                     <td><span v-if="item.good_id != 0">{{getSpecificationName(item.good_id)}}</span></td>
43
                                     <td><span v-if="item.good_id != 0">{{getSpecificationName(item.good_id)}}</span></td>
44
                                     <td>{{ getManufacturer(item.manufacturer) }}</td>
44
                                     <td>{{ getManufacturer(item.manufacturer) }}</td>
45
                                     <td><span v-if="item.good_id!=0">{{getUnit(item.good_id)}}</span></td>
45
                                     <td><span v-if="item.good_id!=0">{{getUnit(item.good_id)}}</span></td>
49
                                     <td>{{ item.number }}</td>
49
                                     <td>{{ item.number }}</td>
50
                                     <td>{{ item.product_date | parseTime("{y}-{m}-{d}") }}</td>
50
                                     <td>{{ item.product_date | parseTime("{y}-{m}-{d}") }}</td>
51
                                     <td>{{ item.expiry_date | parseTime("{y}-{m}-{d}") }}</td>
51
                                     <td>{{ item.expiry_date | parseTime("{y}-{m}-{d}") }}</td>
52
-                                    <td></td>
53
-                                    <td></td>
52
+                                    <td>正常入库</td>
53
+                                    <td>合格</td>
54
                                 </tr>
54
                                 </tr>
55
                                 <tr>
55
                                 <tr>
56
                                   <td>合计</td>
56
                                   <td>合计</td>

+ 1 - 1
src/xt_pages/upload/fast/One.vue Ver arquivo

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 Ver arquivo

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"