Bladeren bron

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx 4 jaren geleden
bovenliggende
commit
a8ce3e1aa8

+ 6 - 15
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Bestand weergeven

@@ -42,15 +42,15 @@
42 42
           <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">打印处置单</el-button>
43 43
           <el-button size="small" @click="open(2)" type="primary">打印治疗单</el-button>
44 44
           <el-button size="small" @click="open(3)" type="primary">打印</el-button>
45
-          <!--<el-button v-loading="loadingone" v-if="hisPatientInfo == null || hisPatientInfo.id == 0 " size="small"-->
46
-                     <!--@click="open(6)"-->
47
-                     <!--type="primary">挂号-->
48
-          <!--</el-button>-->
49
-          <el-button v-loading="loadingtwo" v-if="(curPrescriptions.advices.length >0 || curPrescriptions.project.length >0) && (this.info.prescription_status == 1)" size="small"
45
+          <el-button v-loading="loadingone"  size="small"
46
+                     @click="open(6)"
47
+                     type="primary">挂号
48
+          </el-button>
49
+          <el-button v-loading="loadingtwo" v-if="this.info.prescription_status == 1" size="small"
50 50
                      @click="open(4)"
51 51
                      type="primary">收费
52 52
           </el-button>
53
-          <el-button size="small" @click="open(5)" type="primary" v-if="this.info.prescription_status == 3">退费</el-button>
53
+          <el-button size="small" @click="open(5)" type="primary" v-if="this.info && this.info.prescription_status == 3">退费</el-button>
54 54
         </div>
55 55
 
56 56
         <div class="mainCenter">
@@ -347,15 +347,9 @@
347 347
               this.curPrescriptions = this.prescriptions[0]
348 348
               this.total = 0
349 349
               this.total = this.getTotalOne()
350
-              console.log(this.total)
351
-
352 350
             }
353 351
           }
354 352
         })
355
-
356
-        console.log(val)
357
-        console.log(patientInfo.id)
358
-
359 353
       },
360 354
       handleClick() {
361 355
 
@@ -497,9 +491,6 @@
497 491
         }
498 492
       },
499 493
 
500
-      // addCharges(){
501
-      //     this.$refs.additionalCharges.show()
502
-      // },
503 494
       choosePatient() {
504 495
         console.log(id)
505 496
         this.radioStatus = id

+ 2 - 0
src/xt_pages/outpatientCharges/summary.vue Bestand weergeven

@@ -67,6 +67,8 @@
67 67
             <div v-if="scope.row.order_status == 1">待结算</div>
68 68
             <div v-if="scope.row.order_status == 2">已结算</div>
69 69
             <div v-if="scope.row.order_status == 3">结算失败</div>
70
+            <div v-if="scope.row.order_status == 4">已退费</div>
71
+
70 72
           </template>
71 73
         </el-table-column>
72 74
         <el-table-column align="center" prop="name" label="操作">

+ 12 - 5
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Bestand weergeven

@@ -78,7 +78,7 @@
78 78
               v-for="(item,index) in doctors"
79 79
               :key="index"
80 80
               :label="item.user_name"
81
-              :value="item.user_name">
81
+              :value="item.admin_user_id">
82 82
             </el-option>
83 83
           </el-select>
84 84
           <span>科室:</span>
@@ -247,7 +247,7 @@
247 247
   import saveTemplate from './saveTemplate'
248 248
   import additionalCharges from './additionalCharges'
249 249
   import { addProjectTeam, getAllProjectTeam, getHisProject, getPojectListById } from '@/api/project/project'
250
- 
250
+
251 251
   export default {
252 252
     props: {
253 253
       patientInfo: Object,
@@ -426,7 +426,6 @@
426 426
             if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
427 427
               this.customTabIndex = this.rightTab
428 428
               this.curStatus = 0
429
-
430 429
             }
431 430
 
432 431
           }
@@ -434,7 +433,6 @@
434 433
         }
435 434
       },
436 435
       clearData() {
437
-        console.log('111111')
438 436
         this.curPrescriptions = []
439 437
         this.curStatus = 0
440 438
         this.curDrugs = []
@@ -465,7 +463,7 @@
465 463
 
466 464
         this.state1 = info.diagnosis
467 465
         this.state2 = info.sick_history
468
-        this.doctorValue = info.doctor
466
+        this.doctorValue = info.doctor_id
469 467
         this.departmentValue = info.departments
470 468
         this.register_type = info.register_type
471 469
 
@@ -555,6 +553,7 @@
555 553
         this.curStatus = 0
556 554
       },
557 555
       removeTab(targetName) {
556
+
558 557
         this.$confirm('处方删除后不可恢复,是否确认删除', '删除', {
559 558
           confirmButtonText: '确 定',
560 559
           cancelButtonText: '取 消',
@@ -713,6 +712,14 @@
713 712
         this.curDrugs = selection
714 713
       },
715 714
       comfirm() {
715
+        if(this.curPrescriptions.order_status >= 2){
716
+          this.$message.error('该处方已经结算或者退费,无法继续添加')
717
+          this.teamList = []
718
+          this.curDrugs = []
719
+          this.$refs.tables.clearSelection()
720
+          this.$refs.multipleTable.clearSelection()
721
+          return
722
+        }
716 723
 
717 724
         if (this.curStatus == 1 && this.rightTab == 2) {
718 725
           this.$message.error('改处方是药品,无法添加项目')

+ 24 - 11
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Bestand weergeven

@@ -45,10 +45,10 @@
45 45
             <el-radio-button label="病历"></el-radio-button>
46 46
           </el-radio-group>
47 47
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '处方'">
48
-            <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
49
-            <el-button size="small" @click="open(2)" type="primary">打印</el-button>
50
-            <el-button size="small" @click="open(4)" type="primary">选择模板</el-button>
51
-            <el-button size="small" @click="open(5)" type="primary">存模板</el-button>
48
+            <el-button size="small" ref="button_one"   @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
49
+            <el-button size="small" ref="button_two"   @click="open(2)" type="primary">打印</el-button>
50
+            <el-button size="small" ref="button_three" @click="open(4)" type="primary">选择模板</el-button>
51
+            <el-button size="small" ref="button_four"  @click="open(5)" type="primary">存模板</el-button>
52 52
           </div>
53 53
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '病历'">
54 54
             <el-button size="small" @click="opentwo(1)" type="primary" style="margin-left:10px;">保存</el-button>
@@ -62,9 +62,9 @@
62 62
         <desk-prescription  :diagnoses="diagnoses" :other_sick="other_sick" :record_date="record_date"
63 63
                            ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
64 64
                            :hisPatientInfo="hisPatientInfo"
65
-                           v-if="titleType == '处方'" style="flex:1;"></desk-prescription>
65
+                           v-show="titleType == '处方'" style="flex:1;"></desk-prescription>
66 66
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
67
-                     :hisPatientInfo="hisPatientInfo" v-if="titleType == '病历'"></desk-record>
67
+                     :hisPatientInfo="hisPatientInfo" v-show="titleType == '病历'"></desk-record>
68 68
         <medicalRecord ref='medicalRecord'  @func="getMsgFormSon"></medicalRecord>
69 69
        <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
70 70
       </div>
@@ -180,7 +180,6 @@
180 180
             this.$message.error(response.data.msg)
181 181
             return false
182 182
           } else {
183
-            console.log("999888811111")
184 183
 
185 184
             this.prescriptions = []
186 185
             // this.$refs.prescriptions.clearData()
@@ -276,7 +275,8 @@
276 275
                   id: prescription.id,
277 276
                   name: '处方' + index,
278 277
                   advices: tempAdvice,
279
-                  project: tempProject
278
+                  project: tempProject,
279
+                  orderStatus:prescription.order_status
280 280
                 }
281 281
                 this.prescriptions.push(obj)
282 282
               }
@@ -285,10 +285,12 @@
285 285
                 id:0,
286 286
                 name: '处方' + 1,
287 287
                 advices: [],
288
-                project: []
288
+                project: [],
289
+                orderStatus:0,
289 290
               }
290 291
               this.prescriptions.push(obj)
291 292
             }
293
+            console.log(this.prescriptions)
292 294
 
293 295
             this.$refs.prescriptions.setData(this.prescriptions,this.info)
294 296
           }
@@ -304,7 +306,18 @@
304 306
         //     psn_name:"杨美英",
305 307
         //     age:60.7
306 308
         // }
309
+      },open(index) {
310
+        if (index == 1) {
311
+          this.$refs.prescriptions.open(1)
312
+        } else if (index == 2) {
313
+          this.$refs.prescriptions.open(2)
314
+        } else if (index == 3) {
315
+          this.$refs.prescriptions.open(3)
316
+        } else if (index == 4) {
317
+          this.$refs.prescriptions.open(4)
318
+        }
307 319
       },
320
+
308 321
       opentwo(index) {
309 322
         console.log("index",index)
310 323
         if (index == 1) {
@@ -344,7 +357,7 @@
344 357
             "doctor_advice":this.doctor_advice,
345 358
             "remark":this.remark
346 359
           }
347
-        
360
+
348 361
           createCaseHistory(params).then(response => {
349 362
             if (response.data.state == 0) {
350 363
               this.$message.error("患者病历已存在")
@@ -367,7 +380,7 @@
367 380
       //   this.hisPatientInfo = val.hisPatientInfo
368 381
       //   console.log("333333",this.hisPatientInfo)
369 382
       // }
370
-    }, 
383
+    },
371 384
     created() {
372 385
       var nowDate = new Date()
373 386
       var nowYear = nowDate.getFullYear()

+ 18 - 18
src/xt_pages/upload/fast/FastCountry.vue Bestand weergeven

@@ -1,28 +1,28 @@
1 1
 <template>
2 2
   <div class="patient-container">
3
-    <!-- <fast-patients-sidebar
3
+     <fast-patients-sidebar
4 4
       :id="patientID"
5 5
       v-on:patient="patientInfoClick()"
6 6
       v-on:inspection="inspectionClick()"
7
-    ></fast-patients-sidebar> -->
7
+    ></fast-patients-sidebar>
8 8
     <!-- <fast-upload-detail v-if="isShow == 1"  :id="patientID"  :is-edit='true' :class='panelClass'></fast-upload-detail> -->
9 9
     <el-container>
10
-      <div style="width:170px">
11
-        <el-form :inline="true" :model="listQuery">
12
-          <el-form-item label style="margin-bottom:0;">
13
-            <el-input v-model.trim="searchVal" placeholder="姓名/透析号" style="width:70%"></el-input>
14
-            <el-button type="primary" style="padding: 10px 6px;" @click="onSearch">搜索</el-button>
15
-          </el-form-item>
16
-        </el-form>
17
-        <div style="width:170px">
18
-          <div class="tableTitle">患者列表</div>
19
-          <el-table :data="tableData" border style="width: 100%;" height="500">
20
-            <el-table-column prop="date" label="日期" width="80"></el-table-column>
21
-            <el-table-column prop="name" label="姓名" width="90"></el-table-column>
22
-          </el-table>
23
-        </div>
24
-      </div>
25
-      
10
+      <!--<div style="width:170px">-->
11
+        <!--<el-form :inline="true" :model="listQuery">-->
12
+          <!--<el-form-item label style="margin-bottom:0;">-->
13
+            <!--<el-input v-model.trim="searchVal" placeholder="姓名/透析号" style="width:70%"></el-input>-->
14
+            <!--<el-button type="primary" style="padding: 10px 6px;" @click="onSearch">搜索</el-button>-->
15
+          <!--</el-form-item>-->
16
+        <!--</el-form>-->
17
+        <!--<div style="width:170px">-->
18
+          <!--<div class="tableTitle">患者列表</div>-->
19
+          <!--<el-table :data="tableData" border style="width: 100%;" height="500">-->
20
+            <!--<el-table-column prop="date" label="日期" width="80"></el-table-column>-->
21
+            <!--<el-table-column prop="name" label="姓名" width="90"></el-table-column>-->
22
+          <!--</el-table>-->
23
+        <!--</div>-->
24
+      <!--</div>-->
25
+
26 26
       <div style="margin-left:20px;flex:1;" >
27 27
         <div class="cell clearfix">
28 28
           <div class="time">

+ 4 - 4
src/xt_pages/upload/fast/FastPatientsSidebar.vue Bestand weergeven

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <!-- <div> -->
3 3
   <div class="patient-menu">
4
-    <!-- <el-autocomplete
4
+    <el-autocomplete
5 5
       style="margin:16px 5px"
6 6
       popper-class="my-autocomplete"
7 7
       v-model.trim="value"
@@ -38,10 +38,10 @@
38 38
       :default-expanded-keys="[defaultActive]"
39 39
       @node-click="handleNodeClick"
40 40
     >
41
-    </el-tree> -->
41
+    </el-tree>
42 42
     <!-- </div> -->
43 43
 
44
-    
44
+
45 45
   </div>
46 46
 </template>
47 47
 <script>
@@ -83,7 +83,7 @@ export default {
83 83
           ]
84 84
         }
85 85
       ],
86
-      
86
+
87 87
     };
88 88
   },
89 89
   methods: {

+ 2 - 2
src/xt_pages/upload/fast_upload.vue Bestand weergeven

@@ -6,9 +6,9 @@
6 6
     <div class="app-container">
7 7
       <div class="service-box">
8 8
         <el-tabs v-model="activeName">
9
-          <!-- <el-tab-pane label="国家质控平台" name="first">
9
+      <el-tab-pane label="国家质控平台" name="first">
10 10
            <fast-country></fast-country>
11
-          </el-tab-pane> -->
11
+          </el-tab-pane>
12 12
           <el-tab-pane label="省级质控平台" name="first">
13 13
             <fast-province></fast-province>
14 14
           </el-tab-pane>