ソースを参照

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

28169 1 年間 前
コミット
95285519d0

BIN
src/assets/img/biaoge.png ファイルの表示


BIN
src/assets/img/bingzhuantua.png ファイルの表示


BIN
src/assets/img/zhuzhuantu.png ファイルの表示


+ 37 - 1
src/router/modules/Dialysisanalysis.js ファイルの表示

@@ -107,7 +107,43 @@ export default {
107 107
         title: 'print',
108 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 148
     //   path: '/Dialysisanalysis/hemoglobin',
113 149
     //   component: () => import('@/xt_pages/Dialysisanalysis/hemoglobin/index'),

+ 139 - 0
src/xt_pages/Dialysisanalysis/otherIndicators/components/CakeshapeTotal.vue ファイルの表示

@@ -0,0 +1,139 @@
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 ファイルの表示

@@ -0,0 +1,109 @@
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 ファイルの表示

@@ -0,0 +1,165 @@
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 ファイルの表示

@@ -6,9 +6,24 @@
6 6
       </div>
7 7
       <div class="app-container">
8 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 25
           </div>
26
+
12 27
         </div>
13 28
       </div>
14 29
     </div>
@@ -58,6 +73,18 @@ export default {
58 73
       },
59 74
       handleClick(tab, event) {
60 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 90
     created(){
@@ -68,6 +95,65 @@ export default {
68 95
 </script>
69 96
 
70 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 157
 // .page_patientControlAnalysis {
72 158
 
73 159
 // .pointTitle {

+ 7 - 7
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue ファイルの表示

@@ -221,13 +221,13 @@
221 221
                                   type="primary"
222 222
                                 >读电子凭证
223 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 232
                                 <el-button
233 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 ファイルの表示

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

+ 18 - 3
src/xt_pages/outpatientDoctorStation/checkTemplate/printThree.vue ファイルの表示

@@ -88,7 +88,7 @@
88 88
             padding: 0 10px;
89 89
           "
90 90
         >
91
-          <div>开单医生:{{ doctor ? doctor : "" }}</div>
91
+          <div>开单医生: {{ getAdminUser(item.creator) }}</div>
92 92
           <div>
93 93
             开单日期:
94 94
             {{ getTime(pre_time) ? getTime(pre_time).split(" ")[0] : "" }}
@@ -145,6 +145,7 @@ export default {
145 145
       org_id: "",
146 146
       singleProjectPrint: [],
147 147
       operatorMaps: {},
148
+      adminUser:[],
148 149
     };
149 150
   },
150 151
   methods: {
@@ -198,7 +199,7 @@ export default {
198 199
       }
199 200
       return "";
200 201
     },
201
-
202
+    // 数据源
202 203
     getPrescriptionPrint() {
203 204
       var params = {
204 205
         // patient_id:this.patient_id,
@@ -217,8 +218,9 @@ export default {
217 218
           console.log("adviceprint9999", advicePrint);
218 219
           this.advicePrint = advicePrint;
219 220
           this.prescriptions = advicePrint;
220
-          // console.log("处方222222", this.prescriptions);
221
+          console.log("处方222222", response.data.data);
221 222
           var hisPatient = response.data.data.hisPatient;
223
+          this.adminUser = response.data.data.roles
222 224
           // console.log("hisPatient", hisPatient);
223 225
           this.hisPatient = hisPatient;
224 226
           let projectPrint = [];
@@ -292,6 +294,19 @@ export default {
292 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 310
     getHisPatientDetail() {
296 311
       const params = {
297 312
         patient_id: this.patient_id,

+ 39 - 14
src/xt_pages/outpatientDoctorStation/template/prinSeven.vue ファイルの表示

@@ -289,7 +289,9 @@
289 289
               <template v-if="index==yi&&item.advices.length>5">
290 290
                 <div style="margin: 20px 0px;">
291 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 295
                   </div>
294 296
 
295 297
                   <div class="actionBar" >
@@ -404,7 +406,10 @@
404 406
             <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
405 407
           </div> -->
406 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 413
           </div>
409 414
           <!-- <div style="display: flex;justify-content: space-around;border-bottom: 2px solid #000;">
410 415
             <p style="width:300px;">大额处方患者意见:
@@ -488,26 +493,49 @@ export default{
488 493
       operatorMaps: {},
489 494
       operators: [],
490 495
       doctorList_1: [],
496
+      adminUser:[],
491 497
     };
492 498
   },
493 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 517
       if (id == 0) {
502 518
         return "";
503 519
       }
504 520
       if (id in this.operatorMaps) {
505 521
         return this.operatorMaps[id].url;
506 522
       } else {
507
-        this.doc_name = name
508 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 539
     getAge(patient) {
512 540
       if(patient.id_card_no == "TWN001836483"){
513 541
         return patient.age
@@ -556,6 +584,7 @@ export default{
556 584
       }
557 585
       return "";
558 586
     },
587
+    //数据源
559 588
     getPrescriptionPrint() {
560 589
       var params = {
561 590
         patient_id: this.patient_id,
@@ -571,7 +600,7 @@ export default{
571 600
           console.log("response.data.data", response.data.data);
572 601
           this.advicePrint = advicePrint;
573 602
           this.prescriptions = advicePrint;
574
-
603
+          this.adminUser = response.data.data.roles
575 604
           this.doctorList_1 = response.data.data.eles;
576 605
          for(let i=0;i<this.advicePrint.length;i++){
577 606
           const arr = new Array()
@@ -586,10 +615,6 @@ export default{
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 618
           for(let x in arr){
594 619
             for(let j in this.advicePrint[i].advices){
595 620
               if(arr[x][0].groupno==this.advicePrint[i].advices[j].groupno){

+ 20 - 4
src/xt_pages/outpatientDoctorStation/treatTemplate/printThree.vue ファイルの表示

@@ -77,7 +77,7 @@
77 77
           </div>
78 78
 
79 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 81
               <div style="width: 300px;">签章:</div>
82 82
               <div style="width: 300px;">费用:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}元</div>
83 83
           </div>
@@ -250,7 +250,8 @@ export default {
250 250
 
251 251
         ],
252 252
       hisPatient: {},
253
-      diagnoses: []
253
+      diagnoses: [],
254
+      adminUser:[]
254 255
     }
255 256
   },
256 257
   methods: {
@@ -293,7 +294,20 @@ export default {
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 311
     getDoctor(id) {
298 312
       var name = ''
299 313
       for (let i = 0; i < this.doctorList.length; i++) {
@@ -309,6 +323,7 @@ export default {
309 323
       }
310 324
       return ''
311 325
     },
326
+    // 数据源
312 327
     getPrescriptionPrint() {
313 328
       var params = {
314 329
         patient_id: this.patient_id,
@@ -317,14 +332,15 @@ export default {
317 332
         ids: this.ids,
318 333
         p_type:2,
319 334
       }
320
-      console.log('999999', params)
321 335
       getPrescriptionPrint(params).then(response => {
322 336
         if (response.data.state == 1) {
323 337
           var advicePrint = response.data.data.advicePrint
338
+          console.log('ttttttt',response.data.data);
324 339
           console.log('adviceprint', advicePrint)
325 340
           this.advicePrint = advicePrint
326 341
           this.prescriptions = advicePrint
327 342
           var projectlist = response.data.data.projectlist
343
+          this.adminUser = response.data.data.roles
328 344
           console.log('所有项目列表', projectlist)
329 345
           this.projectList = projectlist
330 346
           this.hisPatient = response.data.data.hisPatient