浏览代码

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx 4 年前
父节点
当前提交
65f8953d08

+ 0 - 3
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

@@ -234,9 +234,6 @@ export default {
234 234
                if(response.data.state == 1){
235 235
                  var hisPatient = response.data.data.hisPatient
236 236
                  console.log("his",hisPatient)
237
-                 for(let i=0;i<hisPatient.length;i++){
238
-                    hisPatient[i].id_card_no = hisPatient[i].id_number
239
-                 }
240 237
                  var scheduleList = response.data.data.scheduleList
241 238
                  hisPatient.push(...scheduleList)
242 239
                  console.log("arrr",hisPatient)

+ 11 - 1
src/xt_pages/outpatientDoctorStation/components/additionalCharges.vue 查看文件

@@ -28,6 +28,10 @@
28 28
 <script>
29 29
  import { saveCharges } from "@/api/project/project"
30 30
 export default {
31
+   props: {
32
+      hisPatientInfo: Object,
33
+      patientInfo:Object,
34
+    },
31 35
     data(){
32 36
         return{
33 37
             visible:false,
@@ -66,7 +70,8 @@ export default {
66 70
         },
67 71
         submitAction(){
68 72
           var params = {
69
-             patient_id:this.patient_id,
73
+             his_patient_id:this.hisPatientInfo.id,
74
+             patient_id:this.patientInfo.id,
70 75
              medicineData:this.chargeTable
71 76
            }
72 77
            console.log("params",params)
@@ -79,6 +84,11 @@ export default {
79 84
              }
80 85
           })      
81 86
         }
87
+    },
88
+    watch:{
89
+       hisPatientInfo:function(val){
90
+         console.log("患者ID",this)  
91
+       }
82 92
     }
83 93
 }
84 94
 </script>

+ 9 - 8
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

@@ -196,7 +196,7 @@
196 196
         </template>
197 197
       </div>
198 198
     </div>
199
-    <additionalCharges ref='additionalCharges'></additionalCharges>
199
+    <additionalCharges ref='additionalCharges' :hisPatientInfo="hisPatientInfo" :patientInfo="patientInfo"></additionalCharges>
200 200
     <select-template ref='selectTemplate'></select-template>
201 201
     <save-template ref='saveTemplate'></save-template>
202 202
   </div>
@@ -336,15 +336,15 @@
336 336
               this.curPrescriptions = this.prescriptions[i]
337 337
 
338 338
               //用来区分处方属于项目还是药品
339
-              if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.projects.length == 0){
339
+              if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0){
340 340
                 this.customTabIndex = 1
341 341
               }
342
-              if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.projects.length > 0){
342
+              if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length > 0){
343 343
 
344 344
                 this.customTabIndex = 2
345 345
               }
346 346
 
347
-              if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.projects.length == 0){
347
+              if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0){
348 348
                 this.customTabIndex = this.rightTab
349 349
               }
350 350
 
@@ -416,7 +416,8 @@
416 416
         this.prescriptions.push({
417 417
           name: newTabName,
418 418
           advices: [],
419
-          projects: []
419
+          project:[],
420
+          projects:[]
420 421
 
421 422
         })
422 423
         this.editableTabsValue = newTabName
@@ -462,15 +463,15 @@
462 463
 
463 464
 
464 465
         //用来区分处方属于项目还是药品
465
-        if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.projects.length == 0){
466
+        if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0){
466 467
 
467 468
           this.customTabIndex = 1
468 469
         }
469
-        if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.projects.length > 0){
470
+        if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length > 0){
470 471
 
471 472
           this.customTabIndex = 2
472 473
         }
473
-        if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.projects.length == 0){
474
+        if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0){
474 475
           // this.customTabIndex = this.rightTab
475 476
           this.customTabIndex = index
476 477
         }

+ 17 - 2
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue 查看文件

@@ -117,7 +117,7 @@
117 117
       </el-table-column>
118 118
       <el-table-column align="center" width="40" prop="name" label="操作">
119 119
         <template slot-scope="scope">
120
-          <i class="el-icon-delete"></i>
120
+          <i class="el-icon-delete" @click="deleteProject(scope.row)"></i>
121 121
         </template>
122 122
       </el-table-column>
123 123
     </el-table>
@@ -192,6 +192,7 @@
192 192
           }
193 193
         }
194 194
       },
195
+    
195 196
       setNewData:function(data){
196 197
 
197 198
         // this.prescription.advices = data.advices
@@ -209,10 +210,24 @@
209 210
              }
210 211
           }
211 212
          return name
212
-      }
213
+      },
214
+      deleteProject(row){
215
+       
216
+        for (let i = 0; i < this.prescription.project.length; i++){
217
+          if(this.prescription.project[i].id == row.id){
218
+              this.prescription.project.splice(i, 1)
219
+          }
220
+        }
221
+      },
213 222
     },mounted(){
214 223
       this.getInitData()
215 224
     },
225
+    watch:{
226
+      prescription:function(){
227
+        console.log("8888888",this)
228
+        console.log("9999999",this.prescription)
229
+      }
230
+    }
216 231
   }
217 232
 </script>
218 233
 

+ 9 - 6
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

@@ -28,7 +28,7 @@
28 28
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
29 29
                      highlight-current-row
30 30
                     ref="tab"
31
-                    @current-change="changePatient">
31
+                   >
32 32
             <el-table-column align="center" prop="name" label="患者姓名">
33 33
               <template slot-scope="scope">{{ scope.row.patients.name }}</template>
34 34
             </el-table-column>
@@ -45,6 +45,8 @@
45 45
             <el-radio-button label="病历"></el-radio-button>
46 46
           </el-radio-group>
47 47
         </div>
48
+        <!--<desk-prescription ref="prescriptions"   :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"-->
49
+                   <!--v-if="titleType == '处方'" style="flex:1;"></desk-prescription>-->
48 50
         <desk-prescription :record_date="record_date" ref="prescriptions"  :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"
49 51
                            v-if="titleType == '处方'" style="flex:1;"></desk-prescription>
50 52
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
@@ -117,7 +119,7 @@
117 119
             return false
118 120
           } else {
119 121
             this.patientTableData = response.data.data.list
120
-            this.$refs.tab.setCurrentRow(this.patientTableData[0])
122
+            // this.$refs.tab.setCurrentRow(this.patientTableData[0])
121 123
             let cal_one = 0
122 124
             let cal_two = 0
123 125
             for (let i = 0; i < response.data.data.list.length; i++) {
@@ -214,10 +216,11 @@
214 216
         //     age:60.7
215 217
         // }
216 218
       },
217
-      changePatient(val){
218
-        console.log("患者val",val)
219
-        this.patient_id = val.id
220
-      }
219
+      // changePatient(val){
220
+      //   console.log("患者val",val)
221
+      //   this.hisPatientInfo = val.hisPatientInfo
222
+      //   console.log("333333",this.hisPatientInfo)
223
+      // }
221 224
     }, created() {
222 225
       var nowDate = new Date()
223 226
       var nowYear = nowDate.getFullYear()

+ 24 - 15
src/xt_pages/outpatientRegistration/registrationHistory.vue 查看文件

@@ -38,45 +38,50 @@
38 38
             </div>
39 39
             <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>
40 40
                 <el-table-column align="center" type="index" label="序号" width="60">
41
+                    <template slot-scope="scope">
42
+                        {{scope.$index+1}}
43
+                    </template>
41 44
                 </el-table-column>
42 45
                 <el-table-column align="center" prop="name" label="时间" width="100">
43
-                    <template slot-scope="scope">{{ scope.row.create_time }}</template>
46
+                    <template slot-scope="scope">{{ scope.row.record_date }}</template>
44 47
                 </el-table-column>
45 48
                 <el-table-column align="center" prop="dialysis_no" label="姓名" width="80">
46 49
                     <template slot-scope="scope">{{scope.row.name }}</template>
47 50
                 </el-table-column>
48 51
                 <el-table-column align="center" prop="name" label="科室" width="80">
49
-                    <template slot-scope="scope">{{ scope.row.department }}</template>
52
+                    <template slot-scope="scope">{{ scope.row.departments }}</template>
50 53
                 </el-table-column>
51 54
                 <el-table-column align="center" prop="name" label="挂号类型" width="90">
52 55
                     <template slot-scope="scope">
53
-                        <span v-if="scope.row.register == 1">普通</span>
54
-                        <span v-if="scope.row.register == 2">主治</span>
55
-                        <span v-if="scope.row.register == 3">主任</span>
56
-                        <span v-if="scope.row.register == 4">免收诊金</span>
57
-                        <span v-if="scope.row.register == 5">专家</span>
56
+                        <span v-if="scope.row.register_type == 1">普通</span>
57
+                        <span v-if="scope.row.register_type == 2">主治</span>
58
+                        <span v-if="scope.row.register_type == 3">主任</span>
59
+                        <span v-if="scope.row.register_type == 4">免收诊金</span>
60
+                        <span v-if="scope.row.register_type == 5">专家</span>
58 61
                     </template>
59 62
                 </el-table-column>
60 63
                 <el-table-column align="center" prop="name" label="就诊号" width="80">
61
-                    <template slot-scope="scope"></template>
64
+                    <template slot-scope="scope">
65
+                        {{scope.row.number}}
66
+                    </template>
62 67
                 </el-table-column>
63 68
                 <el-table-column align="center" prop="name" label="证件号">
64
-                    <template slot-scope="scope">{{ scope.row.idCard }}</template>
69
+                    <template slot-scope="scope">{{ scope.row.id_card_no }}</template>
65 70
                 </el-table-column>
66 71
                 <el-table-column align="center" label="患者保险类型" width="80">
67
-                    <!-- <template slot-scope="scope">{{ scope.row.name }}</template> -->
72
+                    <template slot-scope="scope">{{ scope.row.id_type }}</template>
68 73
                 </el-table-column>
69 74
                 <el-table-column align="center" prop="name" label="医生" width="80">
70
-                    <template slot-scope="scope">{{ scope.row.doctor }}</template>
75
+                    <template slot-scope="scope">{{ scope.row.admin_user_id }}</template>
71 76
                 </el-table-column>
72 77
                 <el-table-column align="center" prop="name" label="挂号费" width="70">
73
-                    <template slot-scope="scope">{{ scope.row.registrationFee }}</template>
78
+                    <template slot-scope="scope">{{ scope.row.register_cost }}</template>
74 79
                 </el-table-column>
75 80
                 <el-table-column align="center" prop="name" label="诊疗费" width="70">
76
-                    <template slot-scope="scope">{{ scope.row.medicalExpenses }}</template>
81
+                    <template slot-scope="scope">{{ scope.row.treatment_cost }}</template>
77 82
                 </el-table-column>
78 83
                 <el-table-column align="center" prop="name" label="工本费" width="70">
79
-                    <template slot-scope="scope">{{ scope.row.cost }}</template>
84
+                    <template slot-scope="scope">{{ scope.row.cost_of_production }}</template>
80 85
                 </el-table-column>
81 86
                 <el-table-column align="center" prop="name" label="操作人" width="70">
82 87
                     <template slot-scope="scope">{{ $store.getters.xt_user.org.org_name }}</template>
@@ -187,7 +192,7 @@ export default {
187 192
 
188 193
         },
189 194
         getlist(){
190
-            var params = {
195
+          var params = {
191 196
                keyword:this.search_input,
192 197
                start_time:this.start_time,
193 198
                end_time:this.end_time,
@@ -200,8 +205,12 @@ export default {
200 205
              if(response.data.state == 1){
201 206
                 var history = response.data.data.history
202 207
                 console.log("history",history)
208
+                this.tableData = history
203 209
                 var total =  response.data.data.total
204 210
                 console.log("total",total)
211
+                var department =  response.data.data.department
212
+                console.log("department",department)
213
+               
205 214
              }
206 215
           })
207 216