瀏覽代碼

HIS 系统提交

XMLWAN 4 年之前
父節點
當前提交
194608c18e

+ 3 - 2
src/xt_pages/outpatientCharges/components/additionalCharges.vue 查看文件

@@ -39,8 +39,9 @@ export default {
39 39
                 name:''
40 40
             },
41 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 46
             patient_id:0,
46 47
             chargeTable:[]

+ 31 - 3
src/xt_pages/outpatientDoctorStation/components/additionalCharges.vue 查看文件

@@ -5,14 +5,16 @@
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" :row-style="{ color: '#303133' }" 
9
+        :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row
10
+          @selection-change="handleSelectionChange">
9 11
             <el-table-column align="center" type="selection" width="40"></el-table-column>
10 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 14
             </el-table-column>
13 15
             <el-table-column align="center" prop="name" label="金额(元)">
14 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 18
                 </template>
17 19
             </el-table-column>
18 20
         </el-table>
@@ -24,6 +26,7 @@
24 26
 </template>
25 27
 
26 28
 <script>
29
+ import { saveCharges } from "@/api/project/project"
27 30
 export default {
28 31
     data(){
29 32
         return{
@@ -31,6 +34,12 @@ export default {
31 34
             form:{
32 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 45
     methods:{
@@ -51,6 +60,25 @@ export default {
51 60
             // this.clear()
52 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 84
 </script>

+ 11 - 3
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

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

+ 6 - 1
src/xt_pages/outpatientRegistration/registrationHistory.vue 查看文件

@@ -197,7 +197,12 @@ export default {
197 197
             }
198 198
            console.log("params",params)
199 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
         }