See999 4 anni fa
parent
commit
1e08e6bcd7

+ 14 - 7
src/api/his/his.js Vedi File

@@ -63,16 +63,23 @@ export function createHisPrescription(data, params) {
63 63
 
64 64
 
65 65
 
66
+export function register(params) {
67
+  return request({
68
+    url: "/api/register/get",
69
+    method: "get",
70
+    params:params,
71
+  });
72
+}
66 73
 
74
+export function upload(params) {
75
+  return request({
76
+    url: "/api/upload/get",
77
+    method: "get",
78
+    params:params,
79
+  });
80
+}
67 81
 
68 82
 
69
-// export function createCaseHistory(params) {
70
-//   return request({
71
-//     url: "/api/doctorworkstation/casehistory/create",
72
-//     method: "post",
73
-//     params:params
74
-//   });
75
-// }
76 83
 
77 84
 
78 85
 

+ 206 - 188
src/xt_pages/outpatientCharges/components/prescriptionTable.vue Vedi File

@@ -1,198 +1,216 @@
1 1
 <template>
2
-    <div class="prescriptionTable">
3
-        <el-table :data="tableData" border style="width: 99%;" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
4
-            <el-table-column align="center" type="selection" width="40"></el-table-column>
5
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
6
-            <el-table-column align="center" prop="name" label="名称">
7
-                <template slot-scope="scope">{{ scope.row.name }}</template>
8
-            </el-table-column>
9
-            <el-table-column align="center" prop="name" width="50" label="组套">
10
-                <template slot-scope="scope">
11
-                    <!-- <el-select v-model="value" placeholder="">
12
-                        <el-option
13
-                        v-for="item in newoptions"
14
-                        :key="item.value"
15
-                        :label="item.label"
16
-                        :value="item.value">
17
-                        </el-option>
18
-                    </el-select> -->
19
-                    <el-input v-model="input" placeholder=""></el-input>
20
-                </template>
21
-            </el-table-column>
22
-            <el-table-column align="center" prop="name" width="50" :label="'单次\n用量'">
23
-                <template slot-scope="scope">
24
-                    <el-input v-model="input" placeholder=""></el-input>
25
-                </template>
26
-            </el-table-column>
27
-            <el-table-column align="center" prop="name" width="50" label="用法">
28
-                <template slot-scope="scope">
29
-                    <!-- <el-select v-model="value" placeholder="">
30
-                        <el-option
31
-                        v-for="item in newoptions"
32
-                        :key="item.value"
33
-                        :label="item.label"
34
-                        :value="item.value">
35
-                        </el-option>
36
-                    </el-select> -->
37
-                    <el-input v-model="input" placeholder=""></el-input>
38
-                </template>
39
-            </el-table-column>
40
-            <el-table-column align="center" prop="name" width="50" label="频率">
41
-                <template slot-scope="scope">
42
-                    <!-- <el-select v-model="value" placeholder="">
43
-                        <el-option
44
-                        v-for="item in newoptions"
45
-                        :key="item.value"
46
-                        :label="item.label"
47
-                        :value="item.value">
48
-                        </el-option>
49
-                    </el-select> -->
50
-                    <el-input v-model="input" placeholder=""></el-input>
51
-                </template>
52
-            </el-table-column>
53
-            <el-table-column align="center" prop="name" width="50" label="天数">
54
-                <template slot-scope="scope">
55
-                    <!-- <el-select v-model="value" placeholder="">
56
-                        <el-option
57
-                        v-for="item in newoptions"
58
-                        :key="item.value"
59
-                        :label="item.label"
60
-                        :value="item.value">
61
-                        </el-option>
62
-                    </el-select> -->
63
-                    <el-input v-model="input" placeholder=""></el-input>
64
-                </template>
65
-            </el-table-column>
66
-            <el-table-column align="center" prop="name" width="100" label="总量">
67
-                <template slot-scope="scope">
68
-                    <div style="display:flex;">
69
-                        <el-input v-model="input" style="width:50%" placeholder=""></el-input>
70
-                        <!-- <el-select v-model="value" style="width:50%" placeholder="">
71
-                            <el-option
72
-                            v-for="item in newoptions"
73
-                            :key="item.value"
74
-                            :label="item.label"
75
-                            :value="item.value">
76
-                            </el-option>
77
-                        </el-select> -->
78
-                        <el-input v-model="input" style="width:50%" placeholder=""></el-input>
79
-                    </div>
80
-                </template>
81
-            </el-table-column>
82
-            <el-table-column align="center" prop="name" width="50" label="单价">
83
-                <template slot-scope="scope">
84
-                    <el-input v-model="scope.row.unitPrice" placeholder=""></el-input>
85
-                </template>
86
-            </el-table-column>
87
-            <el-table-column align="center" prop="name" width="50" label="备注">
88
-                <template slot-scope="scope">
89
-                    <!-- <el-autocomplete
90
-                    class="inline-input"
91
-                    v-model="state1"
92
-                    :fetch-suggestions="querySearch"
93
-                    placeholder=""
94
-                    @select="handleSelect"
95
-                    ></el-autocomplete> -->
96
-                </template>
97
-            </el-table-column>
98
-            <el-table-column align="center" width="40" prop="name" label="操作">
99
-                <template slot-scope="scope">
100
-                    <i class="el-icon-delete"></i>
101
-                </template>
102
-            </el-table-column>
103
-        </el-table>
104
-
105
-        <div class="additionalBox">
106
-            <div class="additionalOne" v-for="(item,index) in 8" :key="index">
107
-                <span>治疗费</span>
108
-                <el-input v-model="input" placeholder="" style="width:50px;"></el-input>
109
-    
110
-                <el-input v-model="input" placeholder="" style="width:50px;"></el-input>
111
-
112
-                <i class="el-icon-delete deleteIcon"></i>
113
-            </div>
114
-        </div>
115
-    </div>
2
+  <div class="prescriptionTable">
3
+    <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
4
+              :row-style="{ color: '#303133' }"
5
+              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
6
+      <el-table-column align="center" prop="name" label="名称">
7
+        <template slot-scope="scope">{{ scope.row.advice_name }}</template>
8
+      </el-table-column>
9
+
10
+      <el-table-column align="center" prop="name" width="50" :label="'单次\n用量'">
11
+        <template slot-scope="scope">
12
+          <el-input v-model="scope.row.single_dose" readonly></el-input>
13
+          <div> {{scope.row.min_unit}}</div>
14
+        </template>
15
+      </el-table-column>
16
+      <el-table-column align="center" prop="name" width="50" label="用法">
17
+        <template slot-scope="scope">
18
+          <el-select v-model="scope.row.delivery_way" readonly placeholder="请选择">
19
+            <el-option
20
+              v-for="item,index in drugways"
21
+              :key="index"
22
+              :label="item.name"
23
+              :value="item.name">
24
+            </el-option>
25
+          </el-select>
26
+        </template>
27
+      </el-table-column>
28
+      <el-table-column align="center" prop="name" width="50" label="频率">
29
+        <template slot-scope="scope">
30
+          <el-select v-model="scope.row.execution_frequency" readonly placeholder="请选择">
31
+            <el-option
32
+              v-for="item in efs"
33
+              :key="index"
34
+              :label="item.name"
35
+              :value="item.name">
36
+            </el-option>
37
+          </el-select>
38
+        </template>
39
+      </el-table-column>
40
+
41
+      <el-table-column align="center" prop="name" width="100" label="总量">
42
+        <template slot-scope="scope">
43
+          <div style="display:flex;">
44
+            <el-input v-model="scope.row.prescribing_number" style="width:50%" readonly placeholder=""></el-input>
45
+            <div> {{scope.row.min_unit}}</div>
46
+          </div>
47
+        </template>
48
+      </el-table-column>
49
+      <el-table-column align="center" prop="name" width="50" label="单价">
50
+        <template slot-scope="scope">
51
+          <el-input v-model="scope.row.price" placeholder="" readonly></el-input>
52
+        </template>
53
+      </el-table-column>
54
+      <el-table-column align="center" prop="name" width="50" label="备注">
55
+        <template slot-scope="scope">
56
+          <el-input v-model="scope.row.remark" style="width:50%" placeholder="" readonly></el-input>
57
+        </template>
58
+      </el-table-column>
59
+    </el-table>
60
+    <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
61
+              :row-style="{ color: '#303133' }"
62
+              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
63
+
64
+      <el-table-column align="center" prop="project_name" label="名称">
65
+        <template slot-scope="scope">{{ scope.row.project.project_name }}</template>
66
+      </el-table-column>
67
+      <el-table-column align="center" prop="statistical_classification" width="50" label="组">
68
+        <template slot-scope="scope">
69
+          {{getGroup(scope.row.project.statistical_classification)}}
70
+        </template>
71
+      </el-table-column>
72
+      <el-table-column align="center" prop="single_dose" width="130" :label="'单次\n用量'">
73
+        <!--<template slot-scope="scope">-->
74
+          <!--&lt;!&ndash;<el-input v-model="scope.row.project.single_dose" placeholder="" readonly></el-input>&ndash;&gt;-->
75
+        <!--</template>-->
76
+      </el-table-column>
77
+      <el-table-column align="center" prop="delivery_way" width="130" label="用法">
78
+        <!--<template slot-scope="scope">-->
79
+          <!--<el-input v-model="scope.row.project.delivery_way" placeholder="" readonly></el-input>-->
80
+        <!--</template>-->
81
+      </el-table-column>
82
+      <el-table-column align="center" prop="execution_frequency" width="130" label="频率">
83
+        <!--<template slot-scope="scope">-->
84
+          <!--<el-input v-model="scope.row.project.execution_frequency" placeholder="" readonly></el-input>-->
85
+        <!--</template>-->
86
+      </el-table-column>
87
+      <el-table-column align="center" prop="number_days" width="130" label="天数">
88
+        <!--<template slot-scope="scope">-->
89
+          <!--<el-input v-model="scope.row.project.number_days" placeholder="" readonly></el-input>-->
90
+        <!--</template>-->
91
+      </el-table-column>
92
+      <el-table-column align="center" prop="total" width="100" label="总量">
93
+        <template slot-scope="scope">
94
+          <div style="display:flex;">
95
+            <el-input v-model="scope.row.project.total" style="width:50" placeholder="" readonly></el-input>
96
+          </div>
97
+        </template>
98
+      </el-table-column>
99
+      <el-table-column align="center" prop="name" width="50" label="单价">
100
+        <template slot-scope="scope">
101
+          <el-input v-model="scope.row.project.price" placeholder="" readonly></el-input>
102
+        </template>
103
+      </el-table-column>
104
+      <el-table-column align="center" prop="name" width="120" label="备注">
105
+        <!--<template slot-scope="scope">-->
106
+          <!--<el-input v-model="scope.row.project.remark" readonly></el-input>-->
107
+        <!--</template>-->
108
+      </el-table-column>
109
+    </el-table>
110
+  </div>
111
+
112
+
113
+
114
+
115
+
116 116
 </template>
117 117
 
118 118
 <script>
119
-export default {
120
-    props:{
121
-        preTableData:Array
119
+  import { getInitData } from '@/api/his/his'
120
+  import { getDictionaryDataConfig} from "@/utils/data";
121
+
122
+  export default {
123
+    props: {
124
+      prescription: Object
122 125
     },
123
-    data(){
124
-        return{
125
-            // tableData: [],
126
-            tableData: [{
127
-            date: '2016-05-02',
128
-            name: '王小虎',
129
-            address: '上海市普陀区金沙江路 1518 弄'
130
-          }, {
131
-            date: '2016-05-04',
132
-            name: '王小虎',
133
-            address: '上海市普陀区金沙江路 1517 弄'
134
-          }, {
135
-            date: '2016-05-01',
136
-            name: '王小虎',
137
-            address: '上海市普陀区金沙江路 1519 弄'
138
-          }, {
139
-            date: '2016-05-03',
140
-            name: '王小虎',
141
-            address: '上海市普陀区金沙江路 1516 弄'
142
-          },{
143
-            date: '2016-05-02',
144
-            name: '王小虎',
145
-            address: '上海市普陀区金沙江路 1518 弄'
146
-          }, {
147
-            date: '2016-05-04',
148
-            name: '王小虎',
149
-            address: '上海市普陀区金沙江路 1517 弄'
150
-          }, {
151
-            date: '2016-05-01',
152
-            name: '王小虎',
153
-            address: '上海市普陀区金沙江路 1519 弄'
154
-          }, {
155
-            date: '2016-05-03',
156
-            name: '王小虎',
157
-            address: '上海市普陀区金沙江路 1516 弄'
158
-          },{
159
-            date: '2016-05-02',
160
-            name: '王小虎',
161
-            address: '上海市普陀区金沙江路 1518 弄'
162
-          }, {
163
-            date: '2016-05-04',
164
-            name: '王小虎',
165
-            address: '上海市普陀区金沙江路 1517 弄'
166
-          }, {
167
-            date: '2016-05-01',
168
-            name: '王小虎',
169
-            address: '上海市普陀区金沙江路 1519 弄'
170
-          }, {
171
-            date: '2016-05-03',
172
-            name: '王小虎',
173
-            address: '上海市普陀区金沙江路 1516 弄'
174
-          }],
175
-            newoptions: [{
176
-            value: '1',
177
-            label: '1'
178
-            }, {
179
-            value: '2',
180
-            label: '2'
181
-            }, {
182
-            value: '3',
183
-            label: '3'
184
-            }, {
185
-            value: '4',
186
-            label: '4'
187
-            }, {
188
-            value: '5',
189
-            label: '5'
190
-            }],
191
-            value:'1',
192
-            input:1
126
+    data() {
127
+      return {
128
+        drugways: [],
129
+        efs: []
130
+      }
131
+    }, mounted() {
132
+      getInitData().then(response => {
133
+        if (response.data.state == 0) {
134
+          this.$message.error(response.data.msg)
135
+          return false
136
+        } else {
137
+          this.drugways = response.data.data.drugways
138
+          this.efs = response.data.data.efs
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
193 196
         }
197
+      })
198
+    }, methods:  {
199
+      getGroup(id){
200
+        var name = ""
201
+        var statistics_category =  getDictionaryDataConfig('system','statistics_category')
202
+        console.log("2235",statistics_category)
203
+        for(let i=0;i<statistics_category.length;i++){
204
+          if(id == statistics_category[i].id){
205
+            name = statistics_category[i].name
206
+          }
207
+        }
208
+        return name
209
+      },
210
+
211
+
194 212
     }
195
-}
213
+  }
196 214
 </script>
197 215
 
198 216
 <style lang="scss">

+ 10 - 10
src/xt_pages/outpatientCharges/summaryDetail.vue Vedi File

@@ -7,7 +7,7 @@
7 7
             <div class="mainCenter">
8 8
                 <div class="centerLeft">
9 9
                     <div class="tabsBox">
10
-                        <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>
10
+                        <!--<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>-->
11 11
                         <el-tabs class="preTabs" v-model="editableTabsValue" type="card" closable @tab-remove="removeTab" :before-leave="moreState">
12 12
                             <el-tab-pane
13 13
                                 v-for="(item, index) in editableTabs"
@@ -23,48 +23,48 @@
23 23
                                     </el-table-column>
24 24
                                     <el-table-column align="center" prop="name" width="50" label="组套">
25 25
                                         <template slot-scope="scope">
26
-                                            
26
+
27 27
                                         </template>
28 28
                                     </el-table-column>
29 29
                                     <el-table-column align="center" prop="name" width="50" :label="'单次\n用量'">
30 30
                                         <template slot-scope="scope">
31
-                                            
31
+
32 32
                                         </template>
33 33
                                     </el-table-column>
34 34
                                     <el-table-column align="center" prop="name" width="50" label="用法">
35 35
                                         <template slot-scope="scope">
36
-                                            
36
+
37 37
                                         </template>
38 38
                                     </el-table-column>
39 39
                                     <el-table-column align="center" prop="name" width="50" label="频率">
40 40
                                         <template slot-scope="scope">
41
-                                            
41
+
42 42
                                         </template>
43 43
                                     </el-table-column>
44 44
                                     <el-table-column align="center" prop="name" width="50" label="天数">
45 45
                                         <template slot-scope="scope">
46
-                                            
46
+
47 47
                                         </template>
48 48
                                     </el-table-column>
49 49
                                     <el-table-column align="center" prop="name" width="100" label="总量">
50 50
                                         <template slot-scope="scope">
51
-                                            
51
+
52 52
                                         </template>
53 53
                                     </el-table-column>
54 54
                                     <el-table-column align="center" prop="name" width="50" label="单价">
55 55
                                         <template slot-scope="scope">
56
-                                            
56
+
57 57
                                         </template>
58 58
                                     </el-table-column>
59 59
                                     <el-table-column align="center" prop="name" width="50" label="备注">
60 60
                                         <template slot-scope="scope">
61
-                                            
61
+
62 62
                                         </template>
63 63
                                     </el-table-column>
64 64
                                 </el-table>
65 65
                             </el-tab-pane>
66 66
                         </el-tabs>
67
-                        
67
+
68 68
                     </div>
69 69
                     <div class="costBox">
70 70
                         <span>处方编号:2134348971237883</span>

+ 3 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Vedi File

@@ -52,7 +52,7 @@
52 52
         </el-form>
53 53
         <div class="tabsBox">
54 54
 
55
-          <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>
55
+          <!--<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>-->
56 56
           <el-tabs class="preTabs" v-model="editableTabsValue" type="card" closable @tab-remove="removeTab"
57 57
                    :before-leave="moreState" @tab-click="tabclickEvent">
58 58
             <el-tab-pane
@@ -221,7 +221,6 @@
221 221
   import saveTemplate from './saveTemplate'
222 222
   import additionalCharges from './additionalCharges'
223 223
   import { getHisProject,addProjectTeam,getAllProjectTeam,getPojectListById } from '@/api/project/project'
224
-  // import { getPatientInfo, getSchedulePatientList,createHisPrescription } from '@/api/his/his'
225 224
 
226 225
   export default {
227 226
     props: {
@@ -336,7 +335,7 @@
336 335
             this.advices_template = response.data.data.advices_template
337 336
             this.doctors = response.data.data.doctors
338 337
             this.departMent =  response.data.data.department
339
-           
338
+
340 339
           }
341 340
         })
342 341
 
@@ -388,7 +387,7 @@
388 387
             record_date: this.record_date,
389 388
             his_patient_id: this.hisPatientInfo.id
390 389
           }
391
-         
390
+
392 391
           for (let i = 0; i < this.prescriptions.length; i++){
393 392
             if(this.prescriptions[i].advices.length > 0 && this.prescriptions[i].project.length == 0){
394 393
               this.prescriptions[i]['type'] = 1

+ 1 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Vedi File

@@ -201,7 +201,7 @@
201 201
               }
202 202
               this.prescriptions.push(obj)
203 203
             }
204
-           
204
+
205 205
             this.$refs.prescriptions.setData(this.prescriptions)
206 206
           }
207 207
         })