Browse Source

HIS 系统提交

XMLWAN 4 years ago
parent
commit
6b0b068497

+ 163 - 0
src/api/project/project.js View File

@@ -0,0 +1,163 @@
1
+import request from "@/utils/request";
2
+
3
+export function saveProject(params){
4
+
5
+    return request({
6
+        url:"/api/his/saveproject",
7
+        methods:"get",
8
+        params:params,
9
+    })
10
+}
11
+
12
+
13
+export function getProjectList(params){
14
+   
15
+    return request({
16
+       url:"/api/his/getprojectlist",
17
+       methods:"get",
18
+       params:params
19
+    })
20
+}
21
+
22
+export function getProjectDetail(id,params){
23
+  
24
+    return request({
25
+       url:"/api/his/getprojectdetail?id="+id,
26
+       methods:"get",
27
+       params:params
28
+    })
29
+}
30
+
31
+export function updatedProject(params){
32
+   
33
+   return request({
34
+      url:"/api/his/updatedproject",
35
+      methods:"get",
36
+      params:params
37
+   })
38
+}
39
+
40
+export function deleteHisProject(id,params){
41
+   
42
+    return request({
43
+      url:"/api/his/deletehisproject?id="+id,
44
+      methods:"get",
45
+      params:params
46
+    })
47
+}
48
+
49
+export function saveProjectTeam(params){
50
+  
51
+   return request({
52
+     url:"/api/his/saveprojectteam",
53
+     methods:"Get",
54
+     params:params
55
+   })
56
+}
57
+
58
+export function getProjectTeamList(params){
59
+  
60
+    return request({
61
+       url:"/api/his/getprojectteamlist",
62
+       methods:"get",
63
+       params:params
64
+    })
65
+}
66
+
67
+export function getProjectTeamDetail(id,params){
68
+   
69
+    return request({
70
+       url:"/api/his/getprojectteamdetail?id="+id,
71
+       methods:"get",
72
+       params:params
73
+    })
74
+}
75
+
76
+export function updatedProjectTeam(params){
77
+  
78
+    return request({
79
+       url:"/api/his/updateprojectteam",
80
+       methods:"get",
81
+       params:params
82
+    })
83
+}
84
+
85
+export function DeleteProjectTeam(id,params){
86
+   
87
+  return request({
88
+      url:"/api/his/deleteprojectteam?id="+id,
89
+      methods:"get",
90
+      params:params
91
+  })
92
+}
93
+
94
+export function SaveDepartment(params){
95
+  
96
+    return request({
97
+       url:"/api/his/savedepartment",
98
+       methods:"get",
99
+       params:params
100
+    })
101
+}
102
+
103
+export function getDePartmentList(params){
104
+  
105
+    return request({
106
+       url:"/api/his/getdepartmentlist",
107
+       methods:"Get",
108
+       params:params
109
+    })
110
+}
111
+
112
+export function getDepartMentDetail(id,params){
113
+  
114
+    return request({
115
+        url:"/api/his/getdepartmentdetail?id="+id,
116
+        methods:"get",
117
+        params:params
118
+    })
119
+}
120
+
121
+export function UpdatedDepartment(params){
122
+   
123
+    return request({
124
+        url:"/api/his/updagtedepartment",
125
+        methods:"get",
126
+        params:params
127
+    })
128
+}
129
+
130
+export function DeleteDepartment(id,params){
131
+    return request({
132
+       url:"/api/his/deletedeparment?id="+id,
133
+       methods:"get",
134
+       params:params
135
+    })
136
+}
137
+
138
+
139
+export function getPatientList(params){
140
+   return request({
141
+       url:"/api/his/getbloodpatient",
142
+       methods:"get",
143
+       params:params
144
+   })
145
+}
146
+
147
+export function getHisPrescription(id,params){
148
+   
149
+    return request({
150
+       url:"/api/his/gethisprescription?id="+id,
151
+       methods:"get",
152
+       params:params
153
+    })
154
+}
155
+
156
+export function saveCharges(data){
157
+    
158
+    return request({
159
+       url:"/api/his/additionalcharge",
160
+       method:"post",
161
+       data:data
162
+    })
163
+}

+ 42 - 11
src/xt_pages/outpatientCharges/components/additionalCharges.vue View File

@@ -5,37 +5,49 @@
5 5
         :visible.sync="visible"
6 6
         :before-close="_close"
7 7
     >
8
-        <el-table :data="tableData" border style="width: 100%;" height="300" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
8
+        <el-table :data="tableData" border style="width: 100%;" height="300" 
9
+         :row-style="{ color: '#303133' }" 
10
+         :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" 
11
+          highlight-current-row
12
+          @selection-change="handleSelectionChange"
13
+          >
9 14
             <el-table-column align="center" type="selection" width="40"></el-table-column>
10 15
             <el-table-column align="center" prop="name" label="名称" width="100">
11
-                <template slot-scope="scope">{{ scope.row.date }}</template>
16
+                <template slot-scope="scope">{{ scope.row.name }}</template>
12 17
             </el-table-column>
13 18
             <el-table-column align="center" prop="name" label="金额(元)">
14 19
                 <template slot-scope="scope">
15
-                    <el-input v-model="input" placeholder=""></el-input>
20
+                    <el-input v-model="scope.row.money"></el-input>
16 21
                 </template>
17 22
             </el-table-column>
18 23
         </el-table>
19 24
         <div slot="footer" class="dialog-footer">
20 25
             <el-button @click="hide">取 消</el-button>
21
-            <el-button type="primary" :loading="submitLoading" @click="submitAction()">保 存</el-button>
26
+            <el-button type="primary"  @click="submitAction()">保 存</el-button>
22 27
         </div>
23 28
     </el-dialog>         
24 29
 </template>
25 30
 
26 31
 <script>
32
+import { saveCharges } from "@/api/project/project"
27 33
 export default {
34
+ 
28 35
     data(){
29 36
         return{
30 37
             visible:false,
31 38
             form:{
32 39
                 name:''
33 40
             },
41
+            tableData:[
42
+              {id:1,name:"zs",money:50},
43
+              {id:2,name:"ls",money:60}  
44
+            ],
45
+            patient_id:0,
46
+            chargeTable:[]
34 47
         }
35 48
     },
36 49
     methods:{
37 50
         _close: function(done) {
38
-            // this.clear()
39 51
             done()
40 52
         },
41 53
         clear: function() {
@@ -43,15 +55,34 @@ export default {
43 55
             this.form.name = "";
44 56
             this.form.intro = "";
45 57
         },
46
-        show() {
47
-            // this.clear()
48
-            this.visible = true
58
+        show(id) {
59
+           this.patient_id = id
60
+           this.visible = true
49 61
         },
50 62
         hide() {
51
-            // this.clear()
52
-            this.visible = false
63
+           this.visible = false
53 64
         },
54
-    }
65
+        handleSelectionChange(val){
66
+          console.log("val",val)
67
+          this.chargeTable = val
68
+        },
69
+        submitAction(){
70
+           var params = {
71
+             patient_id:this.patient_id,
72
+             medicineData:this.chargeTable
73
+           }
74
+           console.log("params",params)
75
+          saveCharges(params).then(response=>{
76
+             if(response.data.state == 1){
77
+               var additionalCharge =  response.data.data.additionalCharge
78
+               console.log("additionalchar",additionalCharge)
79
+               this.visible = false
80
+               this.$message.success("保存成功")
81
+             }
82
+          })  
83
+        }
84
+    },
85
+   
55 86
 }
56 87
 </script>
57 88
 

+ 9 - 2
src/xt_pages/outpatientCharges/components/prescriptionTable.vue View File

@@ -152,9 +152,16 @@ export default {
152 152
             value: '5',
153 153
             label: '5'
154 154
             }],
155
-            value:''
155
+            value:'',
156
+            input:"",
157
+            state1:""
156 158
         }
157
-    }
159
+    },
160
+     methods:{
161
+       handleSelect(){
162
+
163
+       }
164
+     }
158 165
 }
159 166
 </script>
160 167
 

+ 79 - 70
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -10,20 +10,21 @@
10 10
                     <p>已就诊:<span>0</span>人</p>
11 11
                 </div>
12 12
                 <div class="mainCell">
13
-                    <el-radio-group v-model="radio">
14
-                        <el-radio :label="1">未就诊</el-radio>
15
-                        <el-radio :label="2">已就诊</el-radio>
16
-                        <el-radio :label="3">全部</el-radio>
13
+                    <el-radio-group v-model="radio" @change="chageRadio">
14
+                        <el-radio :label=1>未就诊</el-radio>
15
+                        <el-radio :label=2>已就诊</el-radio>
16
+                        <el-radio :label=3>全部</el-radio>
17 17
                     </el-radio-group>
18 18
                 </div>
19 19
                 <div class="mainCell" style="margin-bottom:10px;">
20
-                    <el-input size="small" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
20
+                    <el-input size="small"  v-model.trim="search_input" class="filter-item"/>
21 21
                     <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
22 22
                 </div>
23 23
                 <div style="flex:1;overflow-y:auto;">
24
-                    <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
24
+                    <el-table :data="tableData"  ref="tab" border style="width: 100%;" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" 
25
+                     highlight-current-row @current-change="changePatient">
25 26
                         <el-table-column align="center" prop="name" label="患者姓名">
26
-                            <template slot-scope="scope">{{ scope.row.date }}</template>
27
+                            <template slot-scope="scope">{{ scope.row.name }}</template>
27 28
                         </el-table-column>
28 29
                         <el-table-column align="center" prop="name" label="就诊号" width="90">
29 30
                             <template slot-scope="scope">{{ scope.row.date }}</template>
@@ -106,6 +107,7 @@ import charged from './components/charged'
106 107
 import medicalInsuranceRefund from './components/medicalInsuranceRefund'
107 108
 import prescriptionTable from './components/prescriptionTable'
108 109
 import additionalCharges from './components/additionalCharges'
110
+import {getPatientList,getHisPrescription } from "@/api/project/project"
109 111
 export default {
110 112
     components:{
111 113
         BreadCrumb,
@@ -121,73 +123,18 @@ export default {
121 123
                 { path: false, name: '门诊收费' },
122 124
                 { path: false, name: '门诊收费管理' }
123 125
             ],
124
-            tableData: [{
125
-            date: '2016-05-02',
126
-            name: '王小虎',
127
-            address: '上海市普陀区金沙江路 1518 弄'
128
-            }, {
129
-            date: '2016-05-04',
130
-            name: '王小虎',
131
-            address: '上海市普陀区金沙江路 1517 弄'
132
-            }, {
133
-            date: '2016-05-01',
134
-            name: '王小虎',
135
-            address: '上海市普陀区金沙江路 1519 弄'
136
-            }, {
137
-            date: '2016-05-03',
138
-            name: '王小虎',
139
-            address: '上海市普陀区金沙江路 1516 弄'
140
-            },{
141
-            date: '2016-05-02',
142
-            name: '王小虎',
143
-            address: '上海市普陀区金沙江路 1518 弄'
144
-            }, {
145
-            date: '2016-05-04',
146
-            name: '王小虎',
147
-            address: '上海市普陀区金沙江路 1517 弄'
148
-            }, {
149
-            date: '2016-05-01',
150
-            name: '王小虎',
151
-            address: '上海市普陀区金沙江路 1519 弄'
152
-            }, {
153
-            date: '2016-05-03',
154
-            name: '王小虎',
155
-            address: '上海市普陀区金沙江路 1516 弄'
156
-            },{
157
-            date: '2016-05-02',
158
-            name: '王小虎',
159
-            address: '上海市普陀区金沙江路 1518 弄'
160
-            }, {
161
-            date: '2016-05-04',
162
-            name: '王小虎',
163
-            address: '上海市普陀区金沙江路 1517 弄'
164
-            }, {
165
-            date: '2016-05-01',
166
-            name: '王小虎',
167
-            address: '上海市普陀区金沙江路 1519 弄'
168
-            }, {
169
-            date: '2016-05-03',
170
-            name: '王小虎',
171
-            address: '上海市普陀区金沙江路 1516 弄'
172
-            }, {
173
-            date: '2016-05-04',
174
-            name: '王小虎',
175
-            address: '上海市普陀区金沙江路 1517 弄'
176
-            }, {
177
-            date: '2016-05-01',
178
-            name: '王小虎',
179
-            address: '上海市普陀区金沙江路 1519 弄'
180
-            }, {
181
-            date: '2016-05-03',
182
-            name: '王小虎',
183
-            address: '上海市普陀区金沙江路 1516 弄'
184
-            }],
126
+            tableData: [],
185 127
             editableTabsValue: '1',
186 128
             editableTabs: [{
187 129
             title: '处方1',
188 130
             name: '1',
189 131
             }],
190 132
             tabIndex: 1,
133
+            radio:1,
134
+            search_input:"",
135
+            radio_status:1,
136
+            patient_id:0
137
+
191 138
         }
192 139
     },
193 140
     methods:{
@@ -231,8 +178,70 @@ export default {
231 178
             this.editableTabs = tabs.filter(tab => tab.name !== targetName);
232 179
         },
233 180
         addCharges(){
234
-            this.$refs.additionalCharges.show()
235
-        }
181
+            var patient_id = this.patient_id
182
+            console.log("patient_id",patient_id)
183
+            this.$refs.additionalCharges.show(patient_id)
184
+        },
185
+        chageRadio(id){
186
+          this.radio_status = id
187
+          this.getPatientList()
188
+        },
189
+        getPatientList(){
190
+           getPatientList().then(response=>{
191
+              if(response.data.state == 1){
192
+                var hisPatient = response.data.data.hisPatient
193
+                 for(let i=0;i<hisPatient.length;i++){
194
+                    hisPatient[i].id_card_no = hisPatient[i].id_number
195
+                 }
196
+                 var scheduleList = response.data.data.scheduleList 
197
+                 hisPatient.push(...scheduleList)
198
+                 //去除身份相同的患者
199
+                 var tabArr = this.unique(hisPatient)
200
+                 console.log("222",tabArr)
201
+                 this.patient_id = tabArr[0].id
202
+                 this.$refs.tab.setCurrentRow(tabArr[0])
203
+                 if(this.radio_status == 1){
204
+                    this.tableData = []
205
+                    this.tableData = tabArr  
206
+                 }
207
+                 var prescription =  response.data.data.prescription
208
+                  console.log("prescription",prescription)
209
+                if(this.radio_status == 2){
210
+                    this.tableData = []
211
+                    this.tableData = prescription
212
+                    this.patient_id = prescription[0].his_patient_id
213
+                 }
214
+                
215
+                
216
+              }
217
+           }) 
218
+        },
219
+       searchAction(){
220
+
221
+       },
222
+       unique(arr) {
223
+        console.log("arr22222",arr)
224
+        const res = new Map();
225
+        return arr.filter((arr) => !res.has(arr.id_card_no) && res.set(arr.id_card_no, 1))
226
+       },
227
+       changePatient(val){
228
+        this.currentRow = val
229
+        this.patient_id = val.id
230
+        this.getHisPrescription(val.id)
231
+       },
232
+      getHisPrescription(id){
233
+         getHisPrescription(id).then(response=>{
234
+            if(response.data.state == 1){
235
+              var prescription =  response.data.data.prescriptionList
236
+              console.log("prescription",prescription)
237
+            }
238
+         })
239
+      }
240
+    },
241
+    created(){
242
+        //统计患者列表
243
+       this.getPatientList()   
244
+
236 245
     }
237 246
 }
238 247
 </script>

+ 12 - 68
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -11,9 +11,9 @@
11 11
                 </div>
12 12
                 <div class="mainCell">
13 13
                     <el-radio-group v-model="radio">
14
-                        <el-radio :label="1">未就诊</el-radio>
15
-                        <el-radio :label="2">已就诊</el-radio>
16
-                        <el-radio :label="3">全部</el-radio>
14
+                        <el-radio :label=1>未就诊</el-radio>
15
+                        <el-radio :label=2>已就诊</el-radio>
16
+                        <el-radio :label=3>全部</el-radio>
17 17
                     </el-radio-group>
18 18
                 </div>
19 19
                 <div class="mainCell" style="margin-bottom:10px;">
@@ -23,10 +23,10 @@
23 23
                 <div style="flex:1;overflow-y:auto;">
24 24
                     <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
25 25
                         <el-table-column align="center" prop="name" label="患者姓名">
26
-                            <template slot-scope="scope">{{ scope.row.date }}</template>
26
+                            <template slot-scope="scope">{{ scope.row.name }}</template>
27 27
                         </el-table-column>
28 28
                         <el-table-column align="center" prop="name" label="就诊号" width="90">
29
-                            <template slot-scope="scope">{{ scope.row.date }}</template>
29
+                            <template slot-scope="scope"></template>
30 30
                         </el-table-column>
31 31
                     </el-table>
32 32
                 </div>
@@ -50,6 +50,7 @@
50 50
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
51 51
 import deskPrescription from './components/deskPrescription'
52 52
 import deskRecord from './components/deskRecord'
53
+
53 54
 export default {
54 55
     components:{
55 56
         BreadCrumb,
@@ -62,74 +63,17 @@ export default {
62 63
                 { path: false, name: '门诊医生站' },
63 64
                 { path: false, name: '医生工作台' }
64 65
             ],
66
+            radio:1,
65 67
             titleType:'处方',
66
-            tableData: [{
67
-            date: '2016-05-02',
68
-            name: '王小虎',
69
-            address: '上海市普陀区金沙江路 1518 弄'
70
-            }, {
71
-            date: '2016-05-04',
72
-            name: '王小虎',
73
-            address: '上海市普陀区金沙江路 1517 弄'
74
-            }, {
75
-            date: '2016-05-01',
76
-            name: '王小虎',
77
-            address: '上海市普陀区金沙江路 1519 弄'
78
-            }, {
79
-            date: '2016-05-03',
80
-            name: '王小虎',
81
-            address: '上海市普陀区金沙江路 1516 弄'
82
-            },{
83
-            date: '2016-05-02',
84
-            name: '王小虎',
85
-            address: '上海市普陀区金沙江路 1518 弄'
86
-            }, {
87
-            date: '2016-05-04',
88
-            name: '王小虎',
89
-            address: '上海市普陀区金沙江路 1517 弄'
90
-            }, {
91
-            date: '2016-05-01',
92
-            name: '王小虎',
93
-            address: '上海市普陀区金沙江路 1519 弄'
94
-            }, {
95
-            date: '2016-05-03',
96
-            name: '王小虎',
97
-            address: '上海市普陀区金沙江路 1516 弄'
98
-            },{
99
-            date: '2016-05-02',
100
-            name: '王小虎',
101
-            address: '上海市普陀区金沙江路 1518 弄'
102
-            }, {
103
-            date: '2016-05-04',
104
-            name: '王小虎',
105
-            address: '上海市普陀区金沙江路 1517 弄'
106
-            }, {
107
-            date: '2016-05-01',
108
-            name: '王小虎',
109
-            address: '上海市普陀区金沙江路 1519 弄'
110
-            }, {
111
-            date: '2016-05-03',
112
-            name: '王小虎',
113
-            address: '上海市普陀区金沙江路 1516 弄'
114
-            }, {
115
-            date: '2016-05-04',
116
-            name: '王小虎',
117
-            address: '上海市普陀区金沙江路 1517 弄'
118
-            }, {
119
-            date: '2016-05-01',
120
-            name: '王小虎',
121
-            address: '上海市普陀区金沙江路 1519 弄'
122
-            }, {
123
-            date: '2016-05-03',
124
-            name: '王小虎',
125
-            address: '上海市普陀区金沙江路 1516 弄'
126
-            }],
68
+            tableData: [],
127 69
             
128 70
         }
129 71
     },
130 72
     methods:{
131
-        
132
-    }
73
+       
74
+    
75
+    },
76
+   
133 77
 }
134 78
 </script>
135 79