瀏覽代碼

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx 4 年之前
父節點
當前提交
a8ce3e1aa8

+ 6 - 15
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

42
           <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">打印处置单</el-button>
42
           <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">打印处置单</el-button>
43
           <el-button size="small" @click="open(2)" type="primary">打印治疗单</el-button>
43
           <el-button size="small" @click="open(2)" type="primary">打印治疗单</el-button>
44
           <el-button size="small" @click="open(3)" type="primary">打印</el-button>
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
                      @click="open(4)"
50
                      @click="open(4)"
51
                      type="primary">收费
51
                      type="primary">收费
52
           </el-button>
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
         </div>
54
         </div>
55
 
55
 
56
         <div class="mainCenter">
56
         <div class="mainCenter">
347
               this.curPrescriptions = this.prescriptions[0]
347
               this.curPrescriptions = this.prescriptions[0]
348
               this.total = 0
348
               this.total = 0
349
               this.total = this.getTotalOne()
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
       handleClick() {
354
       handleClick() {
361
 
355
 
497
         }
491
         }
498
       },
492
       },
499
 
493
 
500
-      // addCharges(){
501
-      //     this.$refs.additionalCharges.show()
502
-      // },
503
       choosePatient() {
494
       choosePatient() {
504
         console.log(id)
495
         console.log(id)
505
         this.radioStatus = id
496
         this.radioStatus = id

+ 2 - 0
src/xt_pages/outpatientCharges/summary.vue 查看文件

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

+ 12 - 5
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

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

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

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

+ 18 - 18
src/xt_pages/upload/fast/FastCountry.vue 查看文件

1
 <template>
1
 <template>
2
   <div class="patient-container">
2
   <div class="patient-container">
3
-    <!-- <fast-patients-sidebar
3
+     <fast-patients-sidebar
4
       :id="patientID"
4
       :id="patientID"
5
       v-on:patient="patientInfoClick()"
5
       v-on:patient="patientInfoClick()"
6
       v-on:inspection="inspectionClick()"
6
       v-on:inspection="inspectionClick()"
7
-    ></fast-patients-sidebar> -->
7
+    ></fast-patients-sidebar>
8
     <!-- <fast-upload-detail v-if="isShow == 1"  :id="patientID"  :is-edit='true' :class='panelClass'></fast-upload-detail> -->
8
     <!-- <fast-upload-detail v-if="isShow == 1"  :id="patientID"  :is-edit='true' :class='panelClass'></fast-upload-detail> -->
9
     <el-container>
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
       <div style="margin-left:20px;flex:1;" >
26
       <div style="margin-left:20px;flex:1;" >
27
         <div class="cell clearfix">
27
         <div class="cell clearfix">
28
           <div class="time">
28
           <div class="time">

+ 4 - 4
src/xt_pages/upload/fast/FastPatientsSidebar.vue 查看文件

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

+ 2 - 2
src/xt_pages/upload/fast_upload.vue 查看文件

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