Bläddra i källkod

HIS 系统提交

XMLWAN 4 år sedan
förälder
incheckning
194608c18e

+ 3 - 2
src/xt_pages/outpatientCharges/components/additionalCharges.vue Visa fil

39
                 name:''
39
                 name:''
40
             },
40
             },
41
             tableData:[
41
             tableData:[
42
-              {id:1,name:"zs",money:50},
43
-              {id:2,name:"ls",money:60}  
42
+              {id:1,name:"工本费",money:""},
43
+              {id:2,name:"挂号费",money:""},
44
+              {id:3,name:"诊疗费",money:""}  
44
             ],
45
             ],
45
             patient_id:0,
46
             patient_id:0,
46
             chargeTable:[]
47
             chargeTable:[]

+ 31 - 3
src/xt_pages/outpatientDoctorStation/components/additionalCharges.vue Visa fil

5
         :visible.sync="visible"
5
         :visible.sync="visible"
6
         :before-close="_close"
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" :row-style="{ color: '#303133' }" 
9
+        :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row
10
+          @selection-change="handleSelectionChange">
9
             <el-table-column align="center" type="selection" width="40"></el-table-column>
11
             <el-table-column align="center" type="selection" width="40"></el-table-column>
10
             <el-table-column align="center" prop="name" label="名称" width="100">
12
             <el-table-column align="center" prop="name" label="名称" width="100">
11
-                <template slot-scope="scope">{{ scope.row.date }}</template>
13
+                <template slot-scope="scope">{{ scope.row.name }}</template>
12
             </el-table-column>
14
             </el-table-column>
13
             <el-table-column align="center" prop="name" label="金额(元)">
15
             <el-table-column align="center" prop="name" label="金额(元)">
14
                 <template slot-scope="scope">
16
                 <template slot-scope="scope">
15
-                    <el-input v-model="input" placeholder=""></el-input>
17
+                    <el-input v-model="scope.row.money" placeholder=""></el-input>
16
                 </template>
18
                 </template>
17
             </el-table-column>
19
             </el-table-column>
18
         </el-table>
20
         </el-table>
24
 </template>
26
 </template>
25
 
27
 
26
 <script>
28
 <script>
29
+ import { saveCharges } from "@/api/project/project"
27
 export default {
30
 export default {
28
     data(){
31
     data(){
29
         return{
32
         return{
31
             form:{
34
             form:{
32
                 name:''
35
                 name:''
33
             },
36
             },
37
+            tableData:[
38
+              {id:1,name:"工本费",money:""},
39
+              {id:2,name:"挂号费",money:""},
40
+              {id:3,name:"诊疗费",money:""}  
41
+            ],
42
+            chargeTable:[]
34
         }
43
         }
35
     },
44
     },
36
     methods:{
45
     methods:{
51
             // this.clear()
60
             // this.clear()
52
             this.visible = false
61
             this.visible = false
53
         },
62
         },
63
+        handleSelectionChange(val){
64
+          console.log("val",val)
65
+          this.chargeTable = val
66
+        },
67
+        submitAction(){
68
+          var params = {
69
+             patient_id:this.patient_id,
70
+             medicineData:this.chargeTable
71
+           }
72
+           console.log("params",params)
73
+          saveCharges(params).then(response=>{
74
+             if(response.data.state == 1){
75
+               var additionalCharge =  response.data.data.additionalCharge
76
+               console.log("additionalchar",additionalCharge)
77
+               this.visible = false
78
+               this.$message.success("保存成功")
79
+             }
80
+          })      
81
+        }
54
     }
82
     }
55
 }
83
 }
56
 </script>
84
 </script>

+ 11 - 3
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Visa fil

25
         <div style="flex:1;overflow-y:auto;">
25
         <div style="flex:1;overflow-y:auto;">
26
           <el-table :data="patientTableData" @row-click='choosePatient' border style="width: 100%;"
26
           <el-table :data="patientTableData" @row-click='choosePatient' border style="width: 100%;"
27
                     :row-style="{ color: '#303133' }"
27
                     :row-style="{ color: '#303133' }"
28
-                    :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
28
+                    :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
29
+                     highlight-current-row
30
+                    ref="tab"
31
+                    @current-change="changePatient">
29
             <el-table-column align="center" prop="name" label="患者姓名">
32
             <el-table-column align="center" prop="name" label="患者姓名">
30
               <template slot-scope="scope">{{ scope.row.patients.name }}</template>
33
               <template slot-scope="scope">{{ scope.row.patients.name }}</template>
31
             </el-table-column>
34
             </el-table-column>
88
         patientTableData: [{}],
91
         patientTableData: [{}],
89
         patientInfo: {},
92
         patientInfo: {},
90
         hisPatientInfo: {},
93
         hisPatientInfo: {},
91
-        case_history: {}
94
+        case_history: {},
95
+        patient_id:0,
92
       }
96
       }
93
     },
97
     },
94
     methods: {
98
     methods: {
113
             return false
117
             return false
114
           } else {
118
           } else {
115
             this.patientTableData = response.data.data.list
119
             this.patientTableData = response.data.data.list
116
-
120
+            this.$refs.tab.setCurrentRow(this.patientTableData[0])
117
             let cal_one = 0
121
             let cal_one = 0
118
             let cal_two = 0
122
             let cal_two = 0
119
             for (let i = 0; i < response.data.data.list.length; i++) {
123
             for (let i = 0; i < response.data.data.list.length; i++) {
209
         //     psn_name:"杨美英",
213
         //     psn_name:"杨美英",
210
         //     age:60.7
214
         //     age:60.7
211
         // }
215
         // }
216
+      },
217
+      changePatient(val){
218
+        console.log("患者val",val)
219
+        this.patient_id = val.id
212
       }
220
       }
213
     }, created() {
221
     }, created() {
214
       var nowDate = new Date()
222
       var nowDate = new Date()

+ 6 - 1
src/xt_pages/outpatientRegistration/registrationHistory.vue Visa fil

197
             }
197
             }
198
            console.log("params",params)
198
            console.log("params",params)
199
           getHisPatientHistory(params).then(response=>{
199
           getHisPatientHistory(params).then(response=>{
200
-
200
+             if(response.data.state == 1){
201
+                var history = response.data.data.history
202
+                console.log("history",history)
203
+                var total =  response.data.data.total
204
+                console.log("total",total)
205
+             }
201
           })
206
           })
202
  
207
  
203
         }
208
         }