Browse Source

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

28169 1 year ago
parent
commit
95285519d0

BIN
src/assets/img/biaoge.png View File


BIN
src/assets/img/bingzhuantua.png View File


BIN
src/assets/img/zhuzhuantu.png View File


+ 37 - 1
src/router/modules/Dialysisanalysis.js View File

107
         title: 'print',
107
         title: 'print',
108
         noCache: true
108
         noCache: true
109
       }
109
       }
110
-    }
110
+    },
111
+    // 新
112
+    {
113
+      path: '/Dialysisanalysis/qualitycontrol/otherIndicators/components/columnarTotal',
114
+      component: () => import('@/xt_pages/Dialysisanalysis/otherIndicators/components/columnarTotal'),
115
+      name: 'print',
116
+      hidden: true,
117
+      is_menu: false,
118
+      meta: {
119
+        title: 'print',
120
+        noCache: true
121
+      }
122
+    },
123
+    {
124
+      path: '/Dialysisanalysis/qualitycontrol/otherIndicators/components/CakeshapeTotal',
125
+      component: () => import('@/xt_pages/Dialysisanalysis/otherIndicators/components/CakeshapeTotal'),
126
+      name: 'print',
127
+      hidden: true,
128
+      is_menu: false,
129
+      meta: {
130
+        title: 'print',
131
+        noCache: true
132
+      }
133
+    },
134
+    {
135
+      path: '/Dialysisanalysis/qualitycontrol/otherIndicators/components/tableTotal',
136
+      component: () => import('@/xt_pages/Dialysisanalysis/otherIndicators/components/tableTotal'),
137
+      name: 'print',
138
+      hidden: true,
139
+      is_menu: false,
140
+      meta: {
141
+        title: 'print',
142
+        noCache: true
143
+      }
144
+    },
145
+
146
+
111
     // {
147
     // {
112
     //   path: '/Dialysisanalysis/hemoglobin',
148
     //   path: '/Dialysisanalysis/hemoglobin',
113
     //   component: () => import('@/xt_pages/Dialysisanalysis/hemoglobin/index'),
149
     //   component: () => import('@/xt_pages/Dialysisanalysis/hemoglobin/index'),

+ 139 - 0
src/xt_pages/Dialysisanalysis/otherIndicators/components/CakeshapeTotal.vue View File

1
+<template>
2
+  <div class="main-contain">
3
+      <div class="position">
4
+        <div>
5
+          <el-button type="text" style="font-size: 18px;" @click="return_click">
6
+            <i class="el-icon-arrow-left"></i>返回
7
+          </el-button>
8
+        </div>
9
+      </div>
10
+      <div class="app-container">
11
+        <div class="page_patientControlAnalysis">
12
+          <div style="display: flex;margin-bottom: 20px;">
13
+            <div style="flex: 6;">
14
+              <div style="display: inline-block;">
15
+                日期
16
+                <el-select v-model="value" placeholder="请选择" style="width: 130px;">
17
+                  <el-option
18
+                    v-for="item in options"
19
+                    :key="item.value"
20
+                    :label="item.label"
21
+                    :value="item.value">
22
+                  </el-option>
23
+                </el-select>
24
+              </div>
25
+              <div style="display: inline-block;margin: 0 20px;">
26
+                <el-date-picker
27
+                  v-model="value1"
28
+                  type="daterange"
29
+                  range-separator="-"
30
+                  start-placeholder="开始日期"
31
+                  end-placeholder="结束日期">
32
+                </el-date-picker>
33
+              </div>
34
+              <div style="display: inline-block;">
35
+                <el-button type="primary">查询</el-button>
36
+              </div>
37
+            </div>
38
+            <div style="flex: 1;">
39
+              <el-button type="primary" icon="el-icon-download">下载</el-button>
40
+            </div>
41
+          </div>
42
+          <div class="echart" id="mychart" style='width: 100%;height: 76vh;background: gainsboro;'></div>
43
+        </div>
44
+      </div>
45
+    </div>
46
+
47
+</template>
48
+<script>
49
+import * as echarts from 'echarts';
50
+  export default{
51
+    data(){
52
+      return{
53
+        value:'1',
54
+        value1:'',
55
+        options:[{value:'1',label:'本月'},{value:'2',label:'上月'},{value:'3',label:'今年一季度'},
56
+                  {value:'4',label:'今年上半年'},{value:'5',label:'上一年'},{value:'6',label:'自定义'}],
57
+        option : {
58
+          tooltip: {
59
+            trigger: 'item'
60
+          },
61
+          legend: {
62
+            selectedMode:true,
63
+            orient: 'vertical',
64
+            left: '5%',
65
+            top:'center',
66
+            textStyle: {                      // 图例的公用文本样式。
67
+	            fontSize: 14,
68
+	            color: '#000'
69
+            },
70
+            data: ['0-17岁','18-45岁','46-65岁','66-79岁','≥80岁','其它']
71
+          },
72
+          series: [
73
+            {
74
+              name: 'Access From',
75
+              type: 'pie',
76
+              radius: ['40%', '70%'],
77
+              avoidLabelOverlap: false,
78
+              itemStyle: {
79
+                borderRadius: 50,
80
+                borderColor: '#fff',
81
+                borderWidth: 2
82
+              },
83
+              label: {
84
+                show: false,
85
+                position: 'center',
86
+                normal:{
87
+                  show:true,
88
+                  formatter:'{b}({c}人:{d}%)'
89
+                }
90
+              },
91
+              emphasis: {
92
+                label: {
93
+                  show: true,
94
+                  fontSize: 40,
95
+                  fontWeight: 'bold'
96
+                }
97
+              },
98
+              labelLine: {
99
+                show: false
100
+              },
101
+              data: [
102
+                { value: 14, name: '0-17岁' },
103
+                { value: 26, name: '18-45岁' },
104
+                { value: 45, name: '46-65岁' },
105
+                { value: 33, name: '66-79岁' },
106
+                { value: 21, name: '≥80岁' },
107
+                { value: 24, name: '其它' }
108
+              ]
109
+            }
110
+          ],
111
+          title :{
112
+            x: "5%",     //X坐标   
113
+            y: "95%",    //Y坐标
114
+            text: "总人数: "+288+'人',
115
+            textStyle:{
116
+              fontSize: 18,
117
+              color:'#409eff'
118
+            },
119
+          }
120
+        },
121
+        myChart:{},
122
+      }
123
+    },
124
+    created(){
125
+      
126
+      
127
+    },
128
+    mounted(){
129
+      this.myChart = echarts.init(document.getElementById('mychart'));
130
+      this.myChart.setOption(this.option)
131
+    },
132
+    methods:{
133
+      // 返回
134
+      return_click(){
135
+        this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators')
136
+      }
137
+    }
138
+  }
139
+</script>

+ 109 - 0
src/xt_pages/Dialysisanalysis/otherIndicators/components/columnarTotal.vue View File

1
+<template>
2
+  <div class="main-contain">
3
+      <div class="position">
4
+        <div>
5
+          <el-button type="text" style="font-size: 18px;" @click="return_click">
6
+            <i class="el-icon-arrow-left"></i>返回
7
+          </el-button>
8
+        </div>
9
+      </div>
10
+      <div class="app-container">
11
+        <div class="page_patientControlAnalysis">
12
+          <div style="display: flex;margin-bottom: 20px;">
13
+            <div style="flex: 6;">
14
+              <div style="display: inline-block;">
15
+                日期
16
+                <el-select v-model="value" placeholder="请选择" style="width: 130px;">
17
+                  <el-option
18
+                    v-for="item in options"
19
+                    :key="item.value"
20
+                    :label="item.label"
21
+                    :value="item.value">
22
+                  </el-option>
23
+                </el-select>
24
+              </div>
25
+              <div style="display: inline-block;margin: 0 20px;">
26
+                <el-date-picker
27
+                  v-model="value1"
28
+                  type="daterange"
29
+                  range-separator="-"
30
+                  start-placeholder="开始日期"
31
+                  end-placeholder="结束日期">
32
+                </el-date-picker>
33
+              </div>
34
+              <div style="display: inline-block;">
35
+                <el-button type="primary">查询</el-button>
36
+              </div>
37
+            </div>
38
+            <div style="flex: 1;">
39
+              <el-button type="primary" icon="el-icon-download">下载</el-button>
40
+            </div>
41
+          </div>
42
+          <div class="echart" id="mychart" style='width: 100%;height: 76vh;background: gainsboro;'></div>
43
+        </div>
44
+      </div>
45
+    </div>
46
+
47
+</template>
48
+<script>
49
+import * as echarts from 'echarts';
50
+  export default{
51
+    data(){
52
+      return{
53
+        value:'1',
54
+        value1:'',
55
+        options:[{value:'1',label:'本月'},{value:'2',label:'上月'},{value:'3',label:'今年一季度'},
56
+                  {value:'4',label:'今年上半年'},{value:'5',label:'上一年'},{value:'6',label:'自定义'}],
57
+        option : {
58
+          xAxis: {
59
+            type: 'category',
60
+            data: ['收治患者', '留治患者', '住院患者', '新入患者', '转出患者', '肾功能恢复', '肾移植', '放弃治疗', '死亡患者', '转腹透']
61
+          },
62
+          yAxis: {
63
+            type: 'value',
64
+          },
65
+          series: [
66
+            {
67
+              data: [120, 200, 150, 80, 70, 110, 130,0,0,0],
68
+              type: 'bar',
69
+              itemStyle: {
70
+                normal: {
71
+                  //这里是重点
72
+                  color: function(params) {
73
+                    //注意,如果颜色太少的话,后面颜色不会自动循环,最好多定义几个颜色
74
+                      var colorList = ['#dd6b66','#759aa0','#e69d87','#8dc1a9','#ea7e53','#eedd78','#73a373','#73b9bc','#7289ab','#91ca8c'];
75
+                      return colorList[params.dataIndex]
76
+                  },
77
+                  label: {
78
+                    show: true, //开启显示
79
+                    position: 'top', //在上方显示
80
+                    textStyle: { //数值样式
81
+                      color: 'black',
82
+                      fontSize: 14
83
+                    }
84
+                  }
85
+                }
86
+              },
87
+              barWidth: '25%',
88
+            }
89
+          ]
90
+        },
91
+        myChart:{},
92
+      }
93
+    },
94
+    created(){
95
+      
96
+      
97
+    },
98
+    mounted(){
99
+      this.myChart = echarts.init(document.getElementById('mychart'));
100
+      this.myChart.setOption(this.option)
101
+    },
102
+    methods:{
103
+      // 返回
104
+      return_click(){
105
+        this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators')
106
+      }
107
+    }
108
+  }
109
+</script>

+ 165 - 0
src/xt_pages/Dialysisanalysis/otherIndicators/components/tableTotal.vue View File

1
+<template>
2
+  <div class="main-contain">
3
+      <div class="position">
4
+        <div>
5
+          <el-button type="text" style="font-size: 18px;" @click="return_click">
6
+            <i class="el-icon-arrow-left"></i>返回
7
+          </el-button>
8
+        </div>
9
+      </div>
10
+      <div class="app-container">
11
+        <div class="page_patientControlAnalysis">
12
+          <div style="display: flex;margin-bottom: 20px;">
13
+            
14
+            <div style="display: inline-block;">
15
+              日期
16
+              <el-select v-model="value" placeholder="请选择" style="width: 130px;">
17
+                <el-option
18
+                  v-for="item in options"
19
+                  :key="item.value"
20
+                  :label="item.label"
21
+                  :value="item.value">
22
+                </el-option>
23
+              </el-select>
24
+            </div>
25
+
26
+            <div style="display: inline-block;margin: 0 15px;">
27
+              <el-date-picker
28
+                v-model="value1"
29
+                type="daterange"
30
+                range-separator="-"
31
+                start-placeholder="开始日期"
32
+                end-placeholder="结束日期">
33
+              </el-date-picker>
34
+            </div>
35
+
36
+            <div style="display: inline-block;">
37
+              患者状态:
38
+              <el-select v-model="value2" placeholder="请选择" style="width: 130px;">
39
+                <el-option
40
+                  v-for="item in options2"
41
+                  :key="item.value"
42
+                  :label="item.label"
43
+                  :value="item.value">
44
+                </el-option>
45
+              </el-select>
46
+            </div>
47
+            
48
+            <div style="display: inline-block;margin: 0 15px;">
49
+              <el-input v-model="input" placeholder="搜索患者姓名" style="border-radius: 25px;"></el-input>
50
+            </div>
51
+
52
+            <div style="display: inline-block;">
53
+              <el-button type="primary" @click="search">查询</el-button>
54
+            </div>
55
+
56
+            <div style="display: inline-block;margin-left:15px;">
57
+              <el-button type="primary">导出</el-button>
58
+            </div>
59
+          </div>
60
+          <div style='width: 100%;height: 70vh;'>
61
+            <el-table
62
+              :data="tableData"
63
+              style="width: 100%"
64
+              :header-cell-style="{'text-align':'center'}"
65
+              :cell-style="{'text-align':'center'}"
66
+            >
67
+              <el-table-column
68
+                prop="number"
69
+                label="序号"
70
+                width="50">
71
+              </el-table-column>
72
+              <el-table-column
73
+                prop="dialysis"
74
+                label="透析号"
75
+                width="140">
76
+              </el-table-column>
77
+              <el-table-column
78
+                prop="name"
79
+                label="患者姓名"
80
+                width="100">
81
+              </el-table-column>
82
+              <el-table-column
83
+                prop="vesting_date"
84
+                label="转归日期"
85
+                width="100">
86
+              </el-table-column>
87
+              <el-table-column
88
+                prop="outcome_type"
89
+                label="转归类型"
90
+                width="100">
91
+              </el-table-column>
92
+              <el-table-column
93
+                prop="sort"
94
+                label="转归分类"
95
+               >
96
+              </el-table-column>
97
+              <el-table-column
98
+                prop="reason"
99
+                label="转归原因"
100
+                >
101
+              </el-table-column>
102
+            </el-table>
103
+          </div>
104
+          <div style="float: right;">
105
+            <el-pagination
106
+              background
107
+              layout="total, prev, pager, next"
108
+              :page-size="10"
109
+              :total="1000">
110
+            </el-pagination>
111
+          </div>
112
+         
113
+        </div>
114
+      </div>
115
+    </div>
116
+
117
+</template>
118
+<script>
119
+import * as echarts from 'echarts';
120
+  export default{
121
+    data(){
122
+      return{
123
+        value:'1',
124
+        value1:'',
125
+        input:'',
126
+        value2:'1',
127
+        options:[{value:'1',label:'本月'},{value:'2',label:'上月'},{value:'3',label:'今年一季度'},
128
+                  {value:'4',label:'今年上半年'},{value:'5',label:'上一年'},{value:'6',label:'自定义'}],
129
+        tableData:[{number:'1',dialysis:'20001',name:'小明',vesting_date:'2021-08-01',outcome_type:'转入',sort:'',reason:''},
130
+                    {number:'2',dialysis:'20002',name:'小洪',vesting_date:'2021-08-02',outcome_type:'转入',sort:'',reason:''}],
131
+
132
+        options2:[{value:'1',label:'不限'},{value:'2',label:'留治'},{value:'3',label:'住院'},
133
+                  {value:'4',label:'新入'},{value:'5',label:'转出'},{value:'6',label:'肾功能恢复'},
134
+                  {value:'7',label:'肾移植'},{value:'8',label:'放弃治疗'},{value:'9',label:'死亡患者'},{value:'10',label:'转腹透'}],
135
+      }
136
+    },
137
+    created(){
138
+      
139
+      
140
+    },
141
+    mounted(){
142
+  
143
+    },
144
+    methods:{
145
+      // 返回
146
+      return_click(){
147
+        this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators')
148
+      },
149
+      search(){
150
+        var arr =[]
151
+        if(this.input.length==0){
152
+         arr=this.tableData
153
+        }else{
154
+          for(let i in this.tableData){
155
+            if(this.tableData[i].name.indexOf(this.input) !=-1){
156
+              arr.push(this.tableData[i])
157
+            }
158
+          }
159
+        }
160
+        this.tableData=arr
161
+        return this.tableData
162
+      }
163
+    }
164
+  }
165
+</script>

+ 88 - 2
src/xt_pages/Dialysisanalysis/otherIndicators/index.vue View File

6
       </div>
6
       </div>
7
       <div class="app-container">
7
       <div class="app-container">
8
         <div class="page_patientControlAnalysis">
8
         <div class="page_patientControlAnalysis">
9
-          <div v-for="item in indicators">
10
-            <el-button @click="jump(item.inspection_major,item.inspection_minor,item.id)">{{item.item_name}}</el-button>
9
+          <div class="photos">
10
+            <div v-for="(item,index) in 3" :key="index"  @click="echart_click(index)"
11
+              style="width: 280px;height: 360px;border:1px solid gainsboro;border-radius: 8px;margin: 0 0 30px 28px"
12
+            >
13
+              <div v-if="index+1==1" class="background date_type1" style="background-repeat: no-repeat;"></div>
14
+              <div v-if="index+1==2" class="background date_type2" style="background-repeat: no-repeat;"></div>
15
+              <div v-if="index+1==3" class="background date_type3" style="background-repeat: no-repeat;"></div>
16
+              <p class="title">留治患者透析龄分析</p>
17
+              <div class="tag">
18
+                <span class="tags">留治患者</span>
19
+                <span class="tags">转归</span>
20
+                <span class="tags">死亡</span>
21
+              </div>
22
+              <span class="use">已使用14次</span>
23
+              <!-- <span class="shoucang" style="background-repeat: no-repeat;"></span> -->
24
+            </div>
11
           </div>
25
           </div>
26
+
12
         </div>
27
         </div>
13
       </div>
28
       </div>
14
     </div>
29
     </div>
58
       },
73
       },
59
       handleClick(tab, event) {
74
       handleClick(tab, event) {
60
         console.log(tab, event);
75
         console.log(tab, event);
76
+      },
77
+      echart_click(num){
78
+        console.log(num)
79
+        if(num==0){
80
+          this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators/components/columnarTotal')
81
+        }else if(num==1){
82
+          this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators/components/CakeshapeTotal')
83
+        }else{
84
+          this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators/components/tableTotal')
85
+        }
86
+        
87
+        
61
       }
88
       }
62
     },
89
     },
63
     created(){
90
     created(){
68
 </script>
95
 </script>
69
 
96
 
70
 <style lang="scss" scoped>
97
 <style lang="scss" scoped>
98
+
99
+.page_patientControlAnalysis{
100
+  .background{
101
+    height: 180px;
102
+    width: 100%;
103
+    background-repeat:no-repeat;
104
+  }
105
+  .date_type1{
106
+    background: url('../../../assets/img/zhuzhuantu.png');
107
+  }
108
+  .date_type2{
109
+    background: url('../../../assets/img/bingzhuantua.png');
110
+  }
111
+  .date_type3{
112
+    background: url('../../../assets/img/biaoge.png');
113
+  }
114
+  
115
+  .title{
116
+    font-size: 18px;
117
+    margin: 15px 10px;
118
+    color: #333333;
119
+    text-overflow: ellipsis;
120
+    overflow: hidden;
121
+    white-space: nowrap;
122
+  }
123
+  .tag {
124
+    margin-left: 10px;
125
+    height: 82px;
126
+    overflow: auto;
127
+  }
128
+  .use {
129
+    font-size: 14px;
130
+    color: #999;
131
+    margin-left: 10px;
132
+  }
133
+  // .shoucang{
134
+  //   width: 20px;
135
+  //   height: 20px;
136
+  //   margin-right: 15px;
137
+  //   float: right;
138
+  //   background:url('../../../assets/img/xingixnghuise.png')
139
+  // }
140
+  .tags{
141
+    font-size: 14px;
142
+    font-family: Microsoft YaHei;
143
+    color: #477ac5;
144
+    background: #edf4ff;
145
+    margin-right: 3px;
146
+    margin-top: 3px;
147
+    padding: 1px 6px;
148
+    border-radius: 5px;
149
+  }
150
+  .photos{
151
+    display: flex;
152
+    justify-content: flex-start;
153
+    flex-wrap: wrap;
154
+  }
155
+
156
+}
71
 // .page_patientControlAnalysis {
157
 // .page_patientControlAnalysis {
72
 
158
 
73
 // .pointTitle {
159
 // .pointTitle {

+ 7 - 7
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

221
                                   type="primary"
221
                                   type="primary"
222
                                 >读电子凭证
222
                                 >读电子凭证
223
                                 </el-button>
223
                                 </el-button>
224
-                                <el-button
225
-                                  v-if="(hisPatientInfo.id_card_type != 3  && hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0 && org_id == 10480)"
226
-                                  size="small"
227
-                                  @click="open(28,items.med_type,items.prescriptions[0].order,items.prescriptions)"
228
-                                  type="primary"
229
-                                >就医特殊属性上传
230
-                                </el-button>
224
+<!--                                <el-button-->
225
+<!--                                  v-if="(hisPatientInfo.id_card_type != 3  && hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0 && org_id == 10480)"-->
226
+<!--                                  size="small"-->
227
+<!--                                  @click="open(28,items.med_type,items.prescriptions[0].order,items.prescriptions)"-->
228
+<!--                                  type="primary"-->
229
+<!--                                >就医特殊属性上传-->
230
+<!--                                </el-button>-->
231
 
231
 
232
                                 <el-button
232
                                 <el-button
233
                                   v-if="(hisPatientInfo.id_card_type != 3  && hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0 && org_id != 10340)"
233
                                   v-if="(hisPatientInfo.id_card_type != 3  && hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0 && org_id != 10340)"

+ 3 - 8
src/xt_pages/outpatientCharges/statementPrint.vue View File

709
     searchAction() {
709
     searchAction() {
710
     },
710
     },
711
     getInfo(order_id, obj) {
711
     getInfo(order_id, obj) {
712
-
713
       if (obj.balance_accounts_type == 2) {
712
       if (obj.balance_accounts_type == 2) {
714
         let params = {
713
         let params = {
715
           his_patient_id: obj.his_patient_id,
714
           his_patient_id: obj.his_patient_id,
842
             }
841
             }
843
           })
842
           })
844
         } else {
843
         } else {
845
-          console.log("------==========`````")
846
           getPrivateExpensesOrder(params).then((response) => {
844
           getPrivateExpensesOrder(params).then((response) => {
847
             if (response.data.state == 0) {
845
             if (response.data.state == 0) {
848
               // this.$message.error(response.data.msg)
846
               // this.$message.error(response.data.msg)
1220
             }
1218
             }
1221
           })
1219
           })
1222
         } else {
1220
         } else {
1223
-          if(this.org_id == 10480 || this.org_id == 0){
1221
+          if(this.org_id == 10480){
1224
             let params = {
1222
             let params = {
1225
               order_id: obj.order_id,
1223
               order_id: obj.order_id,
1226
               admin_user_id: this.$store.getters.xt_user.user.id
1224
               admin_user_id: this.$store.getters.xt_user.user.id
1779
   },
1777
   },
1780
 
1778
 
1781
   created() {
1779
   created() {
1782
-    console.log(this.paramsObj)
1783
-    this.getInfo(this.paramsObj.order_id, this.paramsObj)
1784
     this.org_id = this.$store.getters.xt_user.org_id
1780
     this.org_id = this.$store.getters.xt_user.org_id
1785
-    console.log('this.org_id', this.org_id)
1781
+    this.getInfo(this.paramsObj.order_id, this.paramsObj)
1786
   },
1782
   },
1787
   watch: {
1783
   watch: {
1788
     paramsObj: {
1784
     paramsObj: {
1789
       //深度监听,可监听到对象、数组的变化
1785
       //深度监听,可监听到对象、数组的变化
1790
       handler(val, oldVal) {
1786
       handler(val, oldVal) {
1791
         this.paramsObj = val
1787
         this.paramsObj = val
1792
-        console.log(this.paramsObj)
1793
-
1788
+        this.org_id = this.$store.getters.xt_user.org_id
1794
         this.getInfo(this.paramsObj.order_id, this.paramsObj)
1789
         this.getInfo(this.paramsObj.order_id, this.paramsObj)
1795
       },
1790
       },
1796
       deep: true,
1791
       deep: true,

+ 18 - 3
src/xt_pages/outpatientDoctorStation/checkTemplate/printThree.vue View File

88
             padding: 0 10px;
88
             padding: 0 10px;
89
           "
89
           "
90
         >
90
         >
91
-          <div>开单医生:{{ doctor ? doctor : "" }}</div>
91
+          <div>开单医生: {{ getAdminUser(item.creator) }}</div>
92
           <div>
92
           <div>
93
             开单日期:
93
             开单日期:
94
             {{ getTime(pre_time) ? getTime(pre_time).split(" ")[0] : "" }}
94
             {{ getTime(pre_time) ? getTime(pre_time).split(" ")[0] : "" }}
145
       org_id: "",
145
       org_id: "",
146
       singleProjectPrint: [],
146
       singleProjectPrint: [],
147
       operatorMaps: {},
147
       operatorMaps: {},
148
+      adminUser:[],
148
     };
149
     };
149
   },
150
   },
150
   methods: {
151
   methods: {
198
       }
199
       }
199
       return "";
200
       return "";
200
     },
201
     },
201
-
202
+    // 数据源
202
     getPrescriptionPrint() {
203
     getPrescriptionPrint() {
203
       var params = {
204
       var params = {
204
         // patient_id:this.patient_id,
205
         // patient_id:this.patient_id,
217
           console.log("adviceprint9999", advicePrint);
218
           console.log("adviceprint9999", advicePrint);
218
           this.advicePrint = advicePrint;
219
           this.advicePrint = advicePrint;
219
           this.prescriptions = advicePrint;
220
           this.prescriptions = advicePrint;
220
-          // console.log("处方222222", this.prescriptions);
221
+          console.log("处方222222", response.data.data);
221
           var hisPatient = response.data.data.hisPatient;
222
           var hisPatient = response.data.data.hisPatient;
223
+          this.adminUser = response.data.data.roles
222
           // console.log("hisPatient", hisPatient);
224
           // console.log("hisPatient", hisPatient);
223
           this.hisPatient = hisPatient;
225
           this.hisPatient = hisPatient;
224
           let projectPrint = [];
226
           let projectPrint = [];
292
         return "";
294
         return "";
293
       }
295
       }
294
     },
296
     },
297
+    getAdminUser(id) {
298
+      if (id == 0) {
299
+        return "";
300
+      }
301
+      if (id == undefined) {
302
+        return "";
303
+      }
304
+      for (let i = 0; i < this.adminUser.length; i++) {
305
+        if (this.adminUser[i].admin_user_id == id) {
306
+          return this.adminUser[i].user_name;
307
+        }
308
+      }
309
+    },
295
     getHisPatientDetail() {
310
     getHisPatientDetail() {
296
       const params = {
311
       const params = {
297
         patient_id: this.patient_id,
312
         patient_id: this.patient_id,

+ 39 - 14
src/xt_pages/outpatientDoctorStation/template/prinSeven.vue View File

289
               <template v-if="index==yi&&item.advices.length>5">
289
               <template v-if="index==yi&&item.advices.length>5">
290
                 <div style="margin: 20px 0px;">
290
                 <div style="margin: 20px 0px;">
291
                   <div  style="border-bottom: 2px solid #000; width: 100%;margin-right: 30px;padding: 0 10px;line-height: 24px;" >
291
                   <div  style="border-bottom: 2px solid #000; width: 100%;margin-right: 30px;padding: 0 10px;line-height: 24px;" >
292
-                    <p style="text-align: right;">医师:{{ item.doctor ? item.doctor : "" }}</p>
292
+                    <p style="text-align: right;">医师:{{ getAdminUser(item.creator)}}</p>
293
+                    <!-- <span v-if="setAdminUserES(item.creator)==''" ></span>{{ item.doctor ? item.doctor : "" }} -->
294
+                    <!-- <img style="height:30px;" :src="setAdminUserES(item.creator)" alt srcset /> -->
293
                   </div>
295
                   </div>
294
 
296
 
295
                   <div class="actionBar" >
297
                   <div class="actionBar" >
404
             <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
406
             <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
405
           </div> -->
407
           </div> -->
406
           <div  style="border-bottom: 2px solid #000; width: 100%;margin-right: 30px;padding: 0 10px;line-height: 24px;" >
408
           <div  style="border-bottom: 2px solid #000; width: 100%;margin-right: 30px;padding: 0 10px;line-height: 24px;" >
407
-            <p style="text-align: right;">医师:{{ item.doctor ? item.doctor : "" }}</p>
409
+            <!-- <p style="text-align: right;">医师:{{ item.doctor ? item.doctor : "" }}</p> -->
410
+            <p style="text-align: right;">医师:{{ getAdminUser(item.creator)}}</p>
411
+            <!-- <span ></span>  -->
412
+            <!-- <img style="height:30px;" :src="setAdminUserES(item.creator)" alt srcset /> -->
408
           </div>
413
           </div>
409
           <!-- <div style="display: flex;justify-content: space-around;border-bottom: 2px solid #000;">
414
           <!-- <div style="display: flex;justify-content: space-around;border-bottom: 2px solid #000;">
410
             <p style="width:300px;">大额处方患者意见:
415
             <p style="width:300px;">大额处方患者意见:
488
       operatorMaps: {},
493
       operatorMaps: {},
489
       operators: [],
494
       operators: [],
490
       doctorList_1: [],
495
       doctorList_1: [],
496
+      adminUser:[],
491
     };
497
     };
492
   },
498
   },
493
   methods: {
499
   methods: {
494
     // 电子签名
500
     // 电子签名
495
-    setAdminUserES(id,name) {
496
-      console.log(id)
497
-      console.log(name)
498
-      console.log(this.operatorMaps)
499
-
500
-
501
+    // setAdminUserES(id,name) {
502
+    //   console.log(id)
503
+    //   console.log(name)
504
+    //   console.log(this.operatorMaps)
505
+    //   if (id == 0) {
506
+    //     return "";
507
+    //   }
508
+    //   if (id in this.operatorMaps) {
509
+    //     return this.operatorMaps[id].url;
510
+    //   } else {
511
+    //     this.doc_name = name
512
+    //     return "";
513
+    //   }
514
+    // },
515
+    setAdminUserES(id) {
516
+      console.log('5555555555',this.operatorMaps);
501
       if (id == 0) {
517
       if (id == 0) {
502
         return "";
518
         return "";
503
       }
519
       }
504
       if (id in this.operatorMaps) {
520
       if (id in this.operatorMaps) {
505
         return this.operatorMaps[id].url;
521
         return this.operatorMaps[id].url;
506
       } else {
522
       } else {
507
-        this.doc_name = name
508
         return "";
523
         return "";
509
       }
524
       }
510
     },
525
     },
526
+    getAdminUser(id) {
527
+      if (id == 0) {
528
+        return "";
529
+      }
530
+      if (id == undefined) {
531
+        return "";
532
+      }
533
+      for (let i = 0; i < this.adminUser.length; i++) {
534
+        if (this.adminUser[i].admin_user_id == id) {
535
+          return this.adminUser[i].user_name;
536
+        }
537
+      }
538
+    },
511
     getAge(patient) {
539
     getAge(patient) {
512
       if(patient.id_card_no == "TWN001836483"){
540
       if(patient.id_card_no == "TWN001836483"){
513
         return patient.age
541
         return patient.age
556
       }
584
       }
557
       return "";
585
       return "";
558
     },
586
     },
587
+    //数据源
559
     getPrescriptionPrint() {
588
     getPrescriptionPrint() {
560
       var params = {
589
       var params = {
561
         patient_id: this.patient_id,
590
         patient_id: this.patient_id,
571
           console.log("response.data.data", response.data.data);
600
           console.log("response.data.data", response.data.data);
572
           this.advicePrint = advicePrint;
601
           this.advicePrint = advicePrint;
573
           this.prescriptions = advicePrint;
602
           this.prescriptions = advicePrint;
574
-
603
+          this.adminUser = response.data.data.roles
575
           this.doctorList_1 = response.data.data.eles;
604
           this.doctorList_1 = response.data.data.eles;
576
          for(let i=0;i<this.advicePrint.length;i++){
605
          for(let i=0;i<this.advicePrint.length;i++){
577
           const arr = new Array()
606
           const arr = new Array()
586
             }
615
             }
587
           }
616
           }
588
 
617
 
589
-        //   this.advicePrint[i]['advices'][0]['arr'] = arr
590
-        //  this.advicePrint[i]["arr"]    = arr
591
-        //  console.log('55555',arr);
592
-        //   console.log('ttttt',arr);
593
           for(let x in arr){
618
           for(let x in arr){
594
             for(let j in this.advicePrint[i].advices){
619
             for(let j in this.advicePrint[i].advices){
595
               if(arr[x][0].groupno==this.advicePrint[i].advices[j].groupno){
620
               if(arr[x][0].groupno==this.advicePrint[i].advices[j].groupno){

+ 20 - 4
src/xt_pages/outpatientDoctorStation/treatTemplate/printThree.vue View File

77
           </div>
77
           </div>
78
 
78
 
79
           <div style="display: flex; margin-top: 10px; line-height: 24px;padding: 0 10px;">
79
           <div style="display: flex; margin-top: 10px; line-height: 24px;padding: 0 10px;">
80
-              <div style="width: 300px;">开单医生:{{item.doctor?item.doctor:''}}</div>
80
+              <div style="width: 300px;">开单医生:{{getAdminUser(item.creator)}}</div>
81
               <div style="width: 300px;">签章:</div>
81
               <div style="width: 300px;">签章:</div>
82
               <div style="width: 300px;">费用:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}元</div>
82
               <div style="width: 300px;">费用:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}元</div>
83
           </div>
83
           </div>
250
 
250
 
251
         ],
251
         ],
252
       hisPatient: {},
252
       hisPatient: {},
253
-      diagnoses: []
253
+      diagnoses: [],
254
+      adminUser:[]
254
     }
255
     }
255
   },
256
   },
256
   methods: {
257
   methods: {
293
         }
294
         }
294
       })
295
       })
295
     },
296
     },
296
-
297
+    // 医生签名
298
+    getAdminUser(id) {
299
+      if (id == 0) {
300
+        return "";
301
+      }
302
+      if (id == undefined) {
303
+        return "";
304
+      }
305
+      for (let i = 0; i < this.adminUser.length; i++) {
306
+        if (this.adminUser[i].admin_user_id == id) {
307
+          return this.adminUser[i].user_name;
308
+        }
309
+      }
310
+    },
297
     getDoctor(id) {
311
     getDoctor(id) {
298
       var name = ''
312
       var name = ''
299
       for (let i = 0; i < this.doctorList.length; i++) {
313
       for (let i = 0; i < this.doctorList.length; i++) {
309
       }
323
       }
310
       return ''
324
       return ''
311
     },
325
     },
326
+    // 数据源
312
     getPrescriptionPrint() {
327
     getPrescriptionPrint() {
313
       var params = {
328
       var params = {
314
         patient_id: this.patient_id,
329
         patient_id: this.patient_id,
317
         ids: this.ids,
332
         ids: this.ids,
318
         p_type:2,
333
         p_type:2,
319
       }
334
       }
320
-      console.log('999999', params)
321
       getPrescriptionPrint(params).then(response => {
335
       getPrescriptionPrint(params).then(response => {
322
         if (response.data.state == 1) {
336
         if (response.data.state == 1) {
323
           var advicePrint = response.data.data.advicePrint
337
           var advicePrint = response.data.data.advicePrint
338
+          console.log('ttttttt',response.data.data);
324
           console.log('adviceprint', advicePrint)
339
           console.log('adviceprint', advicePrint)
325
           this.advicePrint = advicePrint
340
           this.advicePrint = advicePrint
326
           this.prescriptions = advicePrint
341
           this.prescriptions = advicePrint
327
           var projectlist = response.data.data.projectlist
342
           var projectlist = response.data.data.projectlist
343
+          this.adminUser = response.data.data.roles
328
           console.log('所有项目列表', projectlist)
344
           console.log('所有项目列表', projectlist)
329
           this.projectList = projectlist
345
           this.projectList = projectlist
330
           this.hisPatient = response.data.data.hisPatient
346
           this.hisPatient = response.data.data.hisPatient