Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 4 years ago
parent
commit
cdd4ab032f

+ 1 - 1
src/lang/zh.js View File

@@ -237,7 +237,7 @@ export default {
237 237
     basicConfig:'基础配置',
238 238
 
239 239
     histemplate:'处方模版',
240
-
240
+    outpatientSickRecord:"人员定点病种备案",
241 241
     airDisinfect:'空气消毒',
242 242
     objectTableDisinfect:'物表消毒'
243 243
 

+ 0 - 1
src/router/index.js View File

@@ -28,7 +28,6 @@ import outpatientDoctorStation from './modules/outpatientDoctorStation'
28 28
 import outpatientCharges from './modules/outpatientCharges'
29 29
 import outpatientPharmacy from './modules/outpatientPharmacy'
30 30
 import outpatientRecord from './modules/outpatientRecord'
31
-
32 31
 import kuyiShopping from './modules/kuyiShopping'
33 32
 import createPatient from './modules/createPatient'
34 33
 import dialysisRecord from './modules/dialysisRecord'

+ 4 - 4
src/router/modules/outpatientRecord.js View File

@@ -13,10 +13,10 @@ export default {
13 13
   },
14 14
   children: [
15 15
     {
16
-      path: '/outpatientRecord/outpatientRecord',
17
-      component: () => import('@/xt_pages/outpatientRecord/outpatientRecord'),
18
-      name: 'outpatientRecord',
19
-      meta: { title: 'outpatientRecord', noCache: true }
16
+        path: '/outpatientRecord/outpatientRecord',
17
+        component: () => import('@/xt_pages/outpatientRecord/outpatientRecord'),
18
+        name: 'outpatientSickRecord',
19
+        meta: { title: 'outpatientSickRecord', noCache: true }
20 20
     },
21 21
   ]
22 22
 }

+ 1 - 1
src/views/layout/Layout.vue View File

@@ -123,7 +123,7 @@ export default {
123 123
   },
124 124
   created(){
125 125
     console.log('permission_routers',this.permission_routers)
126
-    let menzhen = ['outpatientRegistration','outpatientDoctorStation','outpatientCharges','outpatientPharmacy']
126
+    let menzhen = ['outpatientRegistration','outpatientDoctorStation','outpatientCharges','outpatientPharmacy','outpatientRecord']
127 127
     let bingli = ['User','createPatient']
128 128
     let touxi = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control']
129 129
     let kucun = ['stockManage','stockDrugs','selfPreparedMedicine','otherManagement']

+ 1 - 1
src/views/layout/components/Sidebar/index.vue View File

@@ -69,7 +69,7 @@ export default {
69 69
     navTitle:{
70 70
       handler(newVal,oldVal){
71 71
         if(newVal == '门诊管理'){
72
-          let nameArr = ['outpatientRegistration','outpatientDoctorStation','outpatientCharges','outpatientPharmacy']
72
+          let nameArr = ['outpatientRegistration','outpatientDoctorStation','outpatientCharges','outpatientPharmacy','outpatientRecord']
73 73
           // console.log('permission_routers',this.permission_routers)
74 74
           let routerArr = []
75 75
           this.permission_routers.map(item => {

+ 17 - 5
src/xt_pages/data/components/consumables.vue View File

@@ -872,11 +872,17 @@
872 872
             var that = this
873 873
             axios.get('http://127.0.0.1:9532/sz/api/goods/get',{ params: params }).then(function(response) {
874 874
             if (response.data.state == 0) {
875
-                  that.$message.error(response.data.msg)
875
+                  that.$message.error(response.data.data.msg)
876 876
                   return false
877 877
                 } else {
878
-                  that.$message({ message: '备案成功', type: 'success' })
878
+                 if(response.data.data.msg == ""){
879
+                  that.$message.success("备案成功!")
879 880
                   that.getList()
881
+               }
882
+               if(response.data.data.msg!=""){
883
+                  that.$message.error(response.data.data.msg)
884
+                  that.getList()
885
+                }
880 886
                 }
881 887
               }).catch(function(error) {
882 888
             })
@@ -893,11 +899,17 @@
893 899
           }
894 900
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
895 901
           if (response.data.state == 0) {
896
-               that.$message.error(response.data.msg)
902
+               that.$message.error(response.data.data.msg)
897 903
                return false
898 904
             } else {
899
-              that.$message({ message: '操作成功', type: 'success' })
900
-              that.getList()
905
+              if(response.data.data.msg == ""){
906
+                  that.$message.success("备案成功!")
907
+                  that.getList()
908
+               }
909
+               if(response.data.data.msg!=""){
910
+                  that.$message.error(response.data.data.msg)
911
+                  that.getList()
912
+               }
901 913
              }
902 914
            }).catch(function(error) {
903 915
         })

+ 119 - 25
src/xt_pages/data/components/drugs.vue View File

@@ -57,6 +57,9 @@
57 57
       <div>
58 58
         <el-button type="primary" @click="openForm(0)">新增</el-button>
59 59
         <el-button type="primary" @click="BatchDelete()">批量备案</el-button>
60
+
61
+        <el-button type="primary" v-if="$store.getters.xt_user.org_id != 9504" @click="GDYBBatchPutOnRecord()">批量备案</el-button>
62
+
60 63
       </div>
61 64
     </div>
62 65
     <el-table :data="list" border style="width: 100%" :row-style="{ color: '#303133' }"
@@ -66,7 +69,7 @@
66 69
           align="center"
67 70
           type="selection"
68 71
           width="55"
69
-       ></el-table-column>        
72
+       ></el-table-column>
70 73
       <el-table-column type="index" label="序号" width="60px" align="center"></el-table-column>
71 74
 
72 75
       <el-table-column prop="date" label="药品名称" align="center" width="100">
@@ -138,10 +141,17 @@
138 141
         <template slot-scope="scope">
139 142
           <el-button @click="openForm(scope.row.id)" type="primary" size="small">编辑</el-button>
140 143
           <el-button type="danger" size="small" @click="deleteDurg(scope.row.id,scope.$index)">删除</el-button>
141
-        <el-button type="primary" size="small" icon="el-icon-refresh-left" @click="toReturn(scope.row.id,scope.row.is_mark)">
144
+
145
+        <el-button type="primary" size="small" icon="el-icon-refresh-left" @click="toReturn(scope.row.id,scope.row.is_mark)" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028" >
142 146
           <span v-if="scope.row.is_mark == 0">备案</span>
143 147
           <span v-if="scope.row.is_mark == 1">撤消</span>
144 148
         </el-button>
149
+
150
+
151
+          <el-button type="primary" size="small" icon="el-icon-refresh-left" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028">
152
+            <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
153
+            <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
154
+          </el-button>
145 155
         </template>
146 156
       </el-table-column>
147 157
     </el-table>
@@ -207,7 +217,7 @@
207 217
         is_record:"",
208 218
         is_inject: '',
209 219
         list: [],
210
-    
220
+
211 221
         isCreated: 1,
212 222
         manufacturers: [],
213 223
         title: '',
@@ -327,12 +337,34 @@
327 337
             label: '未备案'
328 338
           }],
329 339
         value: '',
330
-       
340
+
331 341
         dealer:[],
332 342
         selectDrug:[],
333 343
       }
334 344
     },
335 345
     methods: {
346
+      GDYBBatchPutOnRecord(){
347
+        var that = this
348
+        let params = {
349
+          'type':1,
350
+          'admin_user_id':this.$store.getters.xt_user.user.id
351
+        }
352
+        axios.get('http://127.0.0.1:9532/api/checkcode/get',{params:params}).then(function(response) {
353
+          if (response.data.state == 0) {
354
+            that.$message.error(response.data.data.msg)
355
+            return false
356
+          } else {
357
+            if(response.data.data.failed_code == -10){
358
+              that.$message.error(response.data.data.msg)
359
+            }else{
360
+
361
+
362
+            }
363
+          }
364
+        }).catch(function(error) {
365
+        })
366
+
367
+      },
336 368
       handleSizeChange(val) {
337 369
         this.limit = val
338 370
         this.getList()
@@ -401,7 +433,7 @@
401 433
         } else if (val.id == 0) {
402 434
           //新增
403 435
           console.log("vale222222",val)
404
-         
436
+
405 437
           createBaseDrugLib(val).then(response => {
406 438
             if (response.data.state == 0) {
407 439
               this.$message.error(response.data.msg)
@@ -426,11 +458,11 @@
426 458
           } else {
427 459
               var obj = {id:0,manufacturer_name:"全部"}
428 460
               this.manufacturers.push(obj)
429
-          
461
+
430 462
             for (let i = 0; i < response.data.data.manufacturer.length; i++) {
431 463
               this.manufacturers.push(response.data.data.manufacturer[i])
432 464
             }
433
-          
465
+
434 466
           }
435 467
         })
436 468
       },
@@ -531,10 +563,10 @@
531 563
               }
532 564
 
533 565
               this.formValue.record_date = this.getTime(this.formValue.record_date)
534
-               
566
+
535 567
               if(this.formValue.drug_category == 0){
536 568
                   this.formValue.drug_category = ""
537
-              } 
569
+              }
538 570
               if(this.formValue.drug_control == 0){
539 571
                   this.formValue.drug_control = ""
540 572
               }
@@ -561,7 +593,7 @@
561 593
               }
562 594
               if(this.formValue.is_mark == 0){
563 595
                  this.formValue.is_mark = ""
564
-              }  
596
+              }
565 597
               if(this.formValue.prescription_mark == 0){
566 598
                   this.formValue.prescription_mark = ""
567 599
               }
@@ -627,6 +659,59 @@
627 659
       },
628 660
      getDataConfig(module, filed_name){
629 661
         return getDataConfig(module, filed_name)
662
+      },putOnUnRecord(id){
663
+        var that = this
664
+        let params = {
665
+          'id':id,
666
+          'type':0,
667
+          'admin_user_id':this.$store.getters.xt_user.user.id
668
+        }
669
+        axios.get('http://127.0.0.1:9532/api/uncheckcode/get',{params:params}).then(function(response) {
670
+          if (response.data.state == 0) {
671
+            that.$message.error(response.data.data.msg)
672
+            return false
673
+          } else {
674
+            if(response.data.data.failed_code == -10){
675
+              that.$message.error(response.data.data.msg)
676
+            }else{
677
+              // for (let i = 0; i < that.tableData.length; i++) {
678
+              //   if (that.tableData[i].id == that.currentObject.id) {
679
+              //     that.tableData[i].record.is_cancel == 1
680
+              //   }
681
+              // }
682
+            }
683
+
684
+          }
685
+        }).catch(function(error) {
686
+        })
687
+      },putOnRecord(id){
688
+        var that = this
689
+        let params = {
690
+          'id':id,
691
+          'type':0,
692
+          'admin_user_id':this.$store.getters.xt_user.user.id
693
+        }
694
+        axios.get('http://127.0.0.1:9532/api/checkcode/get',{params:params}).then(function(response) {
695
+          if (response.data.state == 0) {
696
+            that.$message.error(response.data.data.msg)
697
+            return false
698
+          } else {
699
+            if(response.data.data.failed_code == -10){
700
+              that.$message.error(response.data.data.msg)
701
+            }else{
702
+
703
+              // for (let i = 0; i < that.tableData.length; i++) {
704
+              //   if (that.tableData[i].id == that.currentObject.id) {
705
+              //     that.tableData[i].record.is_cancel == 1
706
+              //   }
707
+              // }
708
+            }
709
+
710
+
711
+
712
+          }
713
+        }).catch(function(error) {
714
+        })
630 715
       },
631 716
       // toRecord(){
632 717
       //    var that = this
@@ -652,11 +737,18 @@
652 737
           }
653 738
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
654 739
           if (response.data.state == 0) {
655
-               that.$message.error(response.data.msg)
740
+               that.$message.error(response.data.data.msg)
656 741
                return false
657 742
             } else {
658
-              that.$message({ message: '操作成功', type: 'success' })
659
-              that.getList()
743
+              if(response.data.data.msg == ""){
744
+                  that.$message.success("备案成功!")
745
+                  that.getList()
746
+               }
747
+               if(response.data.data.msg!=""){
748
+                  that.$message.error(response.data.data.msg)
749
+                  that.getList()
750
+               }
751
+
660 752
              }
661 753
            }).catch(function(error) {
662 754
         })
@@ -668,7 +760,7 @@
668 760
           return false;
669 761
         } else {
670 762
           this.dealer = response.data.data.dealer;
671
-         
763
+
672 764
         }
673 765
        });
674 766
       },
@@ -708,32 +800,34 @@
708 800
           ids.push(this.selectDrug[index].id);
709 801
           idMap[this.selectDrug[index].id] = this.selectDrug[index].id;
710 802
         }
711
-      
803
+
712 804
         var idss = ids.join(',')
713 805
         let params = {
714 806
           ids:idss,
715 807
           admin_user_id:this.$store.getters.xt_user.user.id
716 808
         }
717
-       
809
+
718 810
         var that = this
719 811
         axios.get('http://127.0.0.1:9532/sz/api/drug/get',{ params: params }).then(function(response) {
720 812
          if (response.data.state == 0) {
721
-               that.$message.error(response.data.msg)
813
+
814
+               that.$message.error(response.data.data.msg)
722 815
                return false
723 816
             } else {
724
-              if(response.data.msg != ""){
725
-                that.$message.success(response.data.msg)
726
-              }
727
-              if(response.data.msg == ""){
728
-               that.$message.success("备案成功")
729
-              }
730
-              that.getList()
817
+               if(response.data.data.msg == ""){
818
+                  that.$message.success("备案成功!")
819
+                  that.getList()
820
+               }
821
+               if(response.data.data.msg!=""){
822
+                  that.$message.error(response.data.data.msg)
823
+                   that.getList()
824
+               }
731 825
              }
732 826
            }).catch(function(error) {
733 827
         })
734 828
        });
735 829
      },
736
-    }, 
830
+    },
737 831
     created() {
738 832
       this.getList()
739 833
       this.getAllManufacturer()

+ 7 - 1
src/xt_pages/data/components/editInspection.vue View File

@@ -30,7 +30,7 @@
30 30
                         </el-option>
31 31
                   </el-select>
32 32
                 </el-form-item>
33
-                <el-form-item label="组套类型 : " prop="name" style="width:50%">
33
+                <el-form-item label="组套类型 : " prop="team_type" style="width:50%">
34 34
                     <el-select v-model="form.team_type" style="width:100%;" placeholder="请选择">
35 35
                         <el-option
36 36
                         v-for="item in options"
@@ -211,7 +211,13 @@ export default {
211 211
                  this.form.pinyin = projectTeamDetail.pinyin
212 212
                  this.form.wubi  = projectTeamDetail.wubi
213 213
                  this.form.tube_color = projectTeamDetail.tube_color
214
+                 if(projectTeamDetail.tube_color == 0){
215
+                    this.form.tube_color = ""
216
+                 }
214 217
                  this.form.team_type = projectTeamDetail.team_type
218
+                 if(projectTeamDetail.team_type == 0){
219
+                    this.form.team_type = ""
220
+                 }     
215 221
                  this.form.remark = projectTeamDetail.remark
216 222
                  this.form.item_id = projectTeamDetail.item_id
217 223
                 //  console.log("project",projectTeamDetail)

+ 18 - 6
src/xt_pages/data/components/project.vue View File

@@ -278,11 +278,17 @@ export default {
278 278
          
279 279
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
280 280
           if (response.data.state == 0) {
281
-               that.$message.error(response.data.msg)
281
+               that.$message.error(response.data.data.msg)
282 282
                return false
283 283
             } else {
284
-              that.$message({ message: '操作成功', type: 'success' })
285
-              that.getlist()
284
+              if(response.data.data.msg == ""){
285
+                  that.$message.success("备案成功!")
286
+                  that.getlist()
287
+               }
288
+               if(response.data.data.msg!=""){
289
+                  that.$message.error(response.data.data.msg)
290
+                  that.getlist()
291
+               }
286 292
              }
287 293
            }).catch(function(error) {
288 294
         })
@@ -325,11 +331,17 @@ export default {
325 331
         var that = this
326 332
         axios.get('http://127.0.0.1:9532/sz/api/treatment/get',{ params: params }).then(function(response) {
327 333
          if (response.data.state == 0) {
328
-               that.$message.error(response.data.msg)
334
+               that.$message.error(response.data.data.msg)
329 335
                return false
330 336
             } else {
331
-              that.$message({ message: '备案成功', type: 'success' })
332
-              that.getList()
337
+              if(response.data.data.msg == ""){
338
+                  that.$message.success("备案成功!")
339
+                  that.getlist()
340
+               }
341
+               if(response.data.data.msg!=""){
342
+                  that.$message.error(response.data.data.msg)
343
+                  that.getlist()
344
+               }
333 345
              }
334 346
            }).catch(function(error) {
335 347
         })

+ 8 - 3
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue View File

@@ -314,6 +314,9 @@
314 314
         diagnoses:[],
315 315
         sick:[],
316 316
         allergic_history:"",
317
+        form:{
318
+          id:0,
319
+        }
317 320
       }
318 321
     },
319 322
     methods: {
@@ -365,7 +368,8 @@
365 368
             "remark":this.case_history.remark,
366 369
             "sick":this.case_history.sick,
367 370
             "diagnose":this.case_history.diagnose,
368
-            "allergic_history":this.allergic_history
371
+            "allergic_history":this.allergic_history,
372
+            "id":this.form.id,
369 373
           }
370 374
           console.log("prams222",params)
371 375
           createCaseHistory(params).then(response => {
@@ -402,7 +406,7 @@
402 406
                 this.case_history.remark = templatedetail.remark
403 407
                 this.case_history.sick = templatedetail.sick
404 408
                 this.case_history.diagnose = templatedetail.diagnose
405
-                // this.allergic_history = templatedetail.allergic_history
409
+                
406 410
               }
407 411
           })
408 412
         },
@@ -569,7 +573,8 @@
569 573
         if(this.case_history.diagnose == 0){
570 574
            this.case_history.diagnose = ""
571 575
         }
572
-        // this.allergic_history = this.case_history.allergic_history
576
+        this.form.id = this.case_history.id
577
+        this.allergic_history = this.case_history.allergic_history
573 578
         
574 579
       }
575 580
     }

+ 3 - 5
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -743,6 +743,7 @@
743 743
             this.patientInfo = response.data.data.xt_info
744 744
             this.hisPatientInfo = response.data.data.his_info
745 745
             this.case_history = response.data.data.case_history
746
+            console.log("病历222222",this.case_history)
746 747
             this.info = response.data.data.info
747 748
             this.doctors = response.data.data.doctors
748 749
             this.department = response.data.data.department
@@ -970,8 +971,7 @@
970 971
                 this.patientInfo = response.data.data.xt_info
971 972
                 this.hisPatientInfo = response.data.data.his_info
972 973
                 this.case_history = response.data.data.case_history
973
-                // var case_history = response.data.data.case_history
974
-                // console.log("礼拜2222222222",this.case_history)
974
+                console.log("数据列表是多少",this.case_history)
975 975
                 var month_prescriptions = response.data.data.month_prescriptions
976 976
                 this.setMonthPrescription(month_prescriptions)
977 977
                 this.doctors = response.data.data.doctors
@@ -1144,9 +1144,7 @@
1144 1144
               this.patientInfo = response.data.data.xt_info
1145 1145
               this.hisPatientInfo = response.data.data.his_info
1146 1146
               this.case_history = response.data.data.case_history
1147
-              // var case_history = response.data.data.case_history
1148
-              // console.log("礼拜2223332222222",this.case_history)
1149
-              // this.case_history = case_history
1147
+              console.log("数据是22222多少",this.case_history)
1150 1148
               this.info = response.data.data.info
1151 1149
               this.doctors = response.data.data.doctors
1152 1150
               this.department = response.data.data.department

+ 16 - 3
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

@@ -17,7 +17,7 @@
17 17
               <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
18 18
               <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
19 19
               <div>地址:{{item.patient.home_address}}</div>
20
-              <div style="display:flex;width:50%;">临床诊断:{{item.patient.diagnose}}</div>
20
+              <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
21 21
           </div>
22 22
           <div class="prescriptionBox">
23 23
               <div class="Rp">Rp:</div>
@@ -85,7 +85,8 @@ export default {
85 85
         department:[],
86 86
         prescriptions:[],
87 87
         projectList:[],
88
-        orgname:""
88
+        orgname:"",
89
+        diagnoses:[],
89 90
       }
90 91
     },
91 92
    methods:{
@@ -132,6 +133,7 @@ export default {
132 133
             console.log("adviceprint9999",advicePrint)
133 134
             this.advicePrint = advicePrint
134 135
             this.prescriptions = advicePrint
136
+            console.log("处方222222",this.prescriptions)
135 137
             var hisPatient = response.data.data.hisPatient
136 138
             console.log("hisPatient",hisPatient)
137 139
             this.hisPatient = hisPatient
@@ -157,7 +159,8 @@ export default {
157 159
        getInitData().then(response=>{
158 160
           if(response.data.state == 1){
159 161
             this.department = response.data.data.department
160
-           
162
+            this.diagnoses = response.data.data.diagnose
163
+            console.log("争端",this.diagnoses)
161 164
           }
162 165
        })
163 166
      },
@@ -222,6 +225,16 @@ export default {
222 225
         return project_name
223 226
      },
224 227
 
228
+     getDiagnosis(id){
229
+        var name = ""
230
+        for(let i=0;i<this.diagnoses.length;i++){
231
+          if(id == this.diagnoses[i].id){
232
+             name = this.diagnoses[i].class_name
233
+          }
234
+        }
235
+        return name
236
+     }
237
+
225 238
    },
226 239
    created(){
227 240
       this.getAllDoctorList()

+ 23 - 2
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue View File

@@ -33,7 +33,7 @@
33 33
             <div style="margin-bottom: 10px;width:25%">参保类型:{{hisPatient.social_type?hisPatient.social_type:''}}</div>
34 34
             <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
35 35
             <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
36
-            <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
36
+            <div style="width:100%;">诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
37 37
         </div>
38 38
 
39 39
         <div class="prescriptionBox">
@@ -221,6 +221,7 @@
221 221
 <script>
222 222
 import { jsGetAge, uParseTime } from '@/utils/tools'
223 223
 import {getAllDoctorList,getPrescriptionPrint} from "@/api/project/project"
224
+import {getInitData} from "@/api/his/his"
224 225
 export default {
225 226
     props:{
226 227
       patient_id:Number,
@@ -247,7 +248,8 @@ export default {
247 248
           {value: 6,label:'职工'},
248 249
           {value: 7,label:'合同'}
249 250
          ],
250
-         hisPatient:{}
251
+         hisPatient:{},
252
+         diagnoses:[]
251 253
       }
252 254
     },
253 255
    methods:{
@@ -371,12 +373,31 @@ export default {
371 373
 
372 374
         return total + addtotal
373 375
       },
376
+     getInitData(){
377
+       getInitData().then(response=>{
378
+          if(response.data.state == 1){
379
+            this.diagnoses = response.data.data.diagnose
380
+            console.log("争端",this.diagnoses)
381
+          }
382
+       })
383
+     },
384
+     getDiagnosis(id){
385
+        var name = ""
386
+        for(let i=0;i<this.diagnoses.length;i++){
387
+          if(id == this.diagnoses[i].id){
388
+             name = this.diagnoses[i].class_name
389
+          }
390
+        }
391
+        return name
392
+     }
374 393
    },
375 394
    created(){
395
+      this.getInitData()
376 396
       this.getAllDoctorList()
377 397
       this.getPrescriptionPrint()
378 398
       var xtuser = this.$store.getters.xt_user
379 399
       this.orgname = xtuser.org.org_name
400
+
380 401
    },
381 402
    watch:{
382 403
      patient_id:function(val){

+ 134 - 74
src/xt_pages/outpatientRecord/outpatientRecord.vue View File

@@ -17,6 +17,7 @@
17 17
             </div>
18 18
             <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
19 19
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
20
+                      v-loading="patientLoading"
20 21
                       highlight-current-row>
21 22
                 <el-table-column
22 23
                         prop="date"
@@ -30,7 +31,7 @@
30 31
                     <template slot-scope="scope">{{scope.row.trt_dcla_detl_sn}}</template>
31 32
                 </el-table-column>
32 33
                 <el-table-column align="center" prop="name" label="时间">
33
-                    <template slot-scope="scope">{{getTimes(scope.row.ctime)}}</template>
34
+                    <template slot-scope="scope" v-if="scope.row.ctime > 0">{{getTimes(scope.row.ctime)}}</template>
34 35
                 </el-table-column>
35 36
                 <el-table-column align="center" prop="name" label="姓名">
36 37
                     <template slot-scope="scope">{{scope.row.name}}</template>
@@ -50,15 +51,16 @@
50 51
                 </el-table-column>
51 52
                 <el-table-column align="center" prop="name" width="160" label="鉴定定点医药机构">
52 53
                     <template slot-scope="scope">
53
-                        {{scope.row.org_name}}
54
+                        {{$store.getters.xt_user.org.org_name}}
54 55
                     </template>
55 56
                 </el-table-column>
56 57
                 <el-table-column align="center" prop="name" label="医生">
57 58
                     <template slot-scope="scope">
58
-                        <el-select v-model="scope.row.doctor_id" placeholder="请选择">
59
+                        <el-select v-model="scope.row.record.doctor_id" placeholder="请选择"
60
+                                   @change="changeDoctor(scope.row,scope.row.record.doctor_id)">
59 61
                             <el-option
60
-                                    v-for="item in doctorList"
61
-                                    :key="item.admin_user_id"
62
+                                    v-for="(item,index) in doctorList"
63
+                                    :key="index"
62 64
                                     :label="item.user_name"
63 65
                                     :value="item.admin_user_id">
64 66
                             </el-option>
@@ -67,7 +69,8 @@
67 69
                 </el-table-column>
68 70
                 <el-table-column align="center" prop="name" label="科室">
69 71
                     <template slot-scope="scope">
70
-                        <el-select style="margin-right:5px;width:140px;" v-model="scope.row.department_id" placeholder="请选择">
72
+                        <el-select style="margin-right:5px;width:140px;" v-model="scope.row.record.department_id"
73
+                                   placeholder="请选择">
71 74
                             <el-option
72 75
                                     v-for="(item,index) in department"
73 76
                                     :key="index"
@@ -79,7 +82,6 @@
79 82
                 </el-table-column>
80 83
 
81 84
 
82
-
83 85
                 <el-table-column align="center" prop="name" label="险种类型">
84 86
                     <template slot-scope="scope">
85 87
                         <div v-if="scope.row.insutype == '310'">职工基本医疗保险</div>
@@ -105,11 +107,11 @@
105 107
                     </template>
106 108
                 </el-table-column>
107 109
 
108
-                <el-table-column prop="date" label="操作" width="250" align="center" fixed="right">
110
+                <el-table-column prop="date" label="操作" width="80" align="center" fixed="right">
109 111
                     <template slot-scope="scope">
110 112
                         <el-button type="primary" size="small" icon="el-icon-refresh-left">
111
-                            <span v-if="scope.row.is_cancel == 0">备案</span>
112
-                            <span v-if="scope.row.is_cancel == 2">撤消</span>
113
+                            <span v-if="scope.row.record.is_cancel == 0 ||scope.row.record.is_cancel == 2" @click="putOnRecord(1,scope.row)">备案</span>
114
+                            <span v-if="scope.row.record.is_cancel == 1" @click="putOnRecord(2,scope.row)">撤消</span>
113 115
                         </el-button>
114 116
                     </template>
115 117
                 </el-table-column>
@@ -118,7 +120,7 @@
118 120
             <el-dialog title="备案" :visible.sync="dialogFormVisible">
119 121
                 <el-form :model="form" label-width="100px">
120 122
                     <el-form-item label="险种类型" :label-width="formLabelWidth">
121
-                        <el-select v-model=" insutype" placeholder="请选择" style="width: 200px;">
123
+                        <el-select v-model="insutype" placeholder="请选择" style="width: 200px;">
122 124
                             <el-option
123 125
                                     v-for="item in insutypes"
124 126
                                     :key="item.value"
@@ -135,14 +137,25 @@
135 137
             </el-dialog>
136 138
         </div>
137 139
 
138
-
140
+        <el-pagination
141
+                @size-change="handleSizeChange"
142
+                @current-change="handleCurrentChange"
143
+                :page-sizes="[10, 50, 100]"
144
+                :page-size="10"
145
+                background
146
+                style="margin-top:20px;float: right"
147
+                layout="total, sizes, prev, pager, next, jumper"
148
+                :total="total"
149
+
150
+        >
151
+        </el-pagination>
139 152
     </div>
140 153
 </template>
141 154
 
142 155
 
143 156
 <script>
144 157
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
145
-  import { getRecordList,getAllDoctorList,getInitData } from '@/api/his/his'
158
+  import { getAllDoctorList, getInitData, getRecordList } from '@/api/his/his'
146 159
   import { uParseTime } from '@/utils/tools'
147 160
   import { fetchAllAdminUsers } from '@/api/doctor'
148 161
   import axios from 'axios'
@@ -153,14 +166,16 @@
153 166
     },
154 167
     data() {
155 168
       return {
169
+        currentObject: null,
156 170
         crumbs: [
157 171
           { path: false, name: '门诊收费' },
158 172
           { path: false, name: '医保费用对照' }
159 173
         ],
160 174
         tableData: [],
161
-        doctorList:[],
162
-        department:[],
163
-        sick:[],
175
+        doctorList: [],
176
+        department: [],
177
+        patientLoading: false,
178
+        sick: [],
164 179
         limit: 10,
165 180
         page: 1,
166 181
         dialogFormVisible: false,
@@ -170,7 +185,7 @@
170 185
         end_time: '',
171 186
         insutype: '',
172 187
         check_type: '',
173
-
188
+        keywords: '',
174 189
         options: [
175 190
           {
176 191
             value: 1,
@@ -211,6 +226,61 @@
211 226
       }
212 227
     },
213 228
     methods: {
229
+      putOnRecord(type, row) {
230
+        if (type == 1) {
231
+          this.dialogFormVisible = true
232
+          this.currentObject = row
233
+        } else {
234
+          this.$confirm('是否撤销备案', '撤销备案', {
235
+            confirmButtonText: '确 定',
236
+            cancelButtonText: '取 消',
237
+            type: 'warning'
238
+          }).then(() => {
239
+            let params = {
240
+              'id': row.id,
241
+              'admin_user_id': this.$store.getters.xt_user.user.id
242
+
243
+            }
244
+            var that = this
245
+            axios.get('http://127.0.0.1:9532/api/psn/ncds/unputonrecord', {
246
+              params: params
247
+            })
248
+              .then(function(response) {
249
+                if (response.data.state == 0) {
250
+                  that.$message.error(response.data.msg)
251
+                  return false
252
+                } else {
253
+
254
+                  if(response.data.data.failed_code == -10){
255
+                    that.$message.error(response.data.data.msg)
256
+                  }else{
257
+                    row.record.is_cancel = 2
258
+                    that.$message({ message: '撤销成功', type: 'success' })
259
+                  }
260
+                }
261
+              })
262
+              .catch(function(error) {
263
+
264
+              })
265
+
266
+          }).catch(() => {
267
+
268
+          })
269
+
270
+        }
271
+
272
+      },
273
+      changeDoctor(row, id) {
274
+        for (let i = 0; i < this.doctorList.length; i++) {
275
+          if (id == this.doctorList[i].admin_user_id) {
276
+            if (this.doctorList[i].department_id == 0) {
277
+              row.record.department_id = ''
278
+            } else {
279
+              row.record.department_id = this.doctorList[i].department_id
280
+            }
281
+          }
282
+        }
283
+      },
214 284
       getInitData() {
215 285
         getInitData().then(response => {
216 286
           if (response.data.state == 0) {
@@ -225,69 +295,40 @@
225 295
         })
226 296
 
227 297
       },
228
-      getSickName(id){
229
-
298
+      getSickName(id) {
230 299
 
231 300
       },
232 301
       confirm() {
233
-        if (this.check_type == 1) {
234
-          let params = {
235
-            start_time: this.start_time,
236
-            end_time: this.end_time,
237
-            insutype: this.insutype,
238
-            clr_type: '11'
239
-          }
240
-
241
-          var that = this
242
-
243
-          if (this.$store.getters.xt_user.org_id == 9919) {
244
-            axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
245
-              params: params
246
-            })
247
-              .then(function(response) {
248
-                if (response.data.state == 0) {
249
-                  that.$message.error(response.data.msg)
250
-                  return false
251
-                } else {
252
-                  this.page = 1
253
-                  this.limit = 10
254
-                  this.keywords = ''
255
-                  this.getList()
302
+        let params = {
303
+          record_type: 0,
304
+          patient_id: this.currentObject.id,
305
+          admin_user_id: this.$store.getters.xt_user.user.id
306
+        }
256 307
 
308
+        var that = this
309
+        axios.get('http://127.0.0.1:9532/api/psn/ncds/putonrecord', {
310
+          params: params
311
+        })
312
+          .then(function(response) {
313
+            if (response.data.state == 0) {
314
+              that.$message.error(response.data.msg)
315
+              return false
316
+            } else {
317
+              if(response.data.data.failed_code == -10){
318
+                that.$message.error(response.data.data.msg)
319
+              }else{
320
+                for (let i = 0; i < that.tableData.length; i++) {
321
+                  if (that.tableData[i].id == that.currentObject.id) {
322
+                    that.tableData[i].record.is_cancel == 1
323
+                  }
257 324
                 }
258
-              })
259
-              .catch(function(error) {
260
-
261
-              })
262
-
263
-          }
264
-
265
-        } else {
266
-          let params = {
267
-            start_time: this.start_time,
268
-            end_time: this.end_time
269
-          }
270
-          var that = this
271
-          axios.get('http://127.0.0.1:9532/api/checkdetailaccount/get', {
272
-            params: params
273
-          })
274
-            .then(function(response) {
275
-              if (response.data.state == 0) {
276
-                that.$message.error(response.data.msg)
277
-                return false
278
-              } else {
279
-                this.page = 1
280
-                this.limit = 10
281
-                this.keywords = ''
282
-                this.getList()
283 325
               }
284
-            })
285
-            .catch(function(error) {
286 326
 
287
-            })
288
-
289
-        }
327
+            }
328
+          })
329
+          .catch(function(error) {
290 330
 
331
+          })
291 332
       },
292 333
       getInsutype(type) {
293 334
 
@@ -316,16 +357,32 @@
316 357
           'page': this.page,
317 358
           'limit': this.limit,
318 359
           'keywords': this.keywords
319
-
320 360
         }
321 361
         this.tableData = []
322
-        getList(params).then(response => {
362
+        this.patientLoading = true
363
+        getRecordList(params).then(response => {
323 364
           if (response.data.state == 0) {
365
+            this.patientLoading = false
366
+
324 367
             this.$message.error(response.data.msg)
325 368
             return false
326 369
           } else {
370
+            this.patientLoading = false
327 371
             this.tableData = response.data.data.list
328 372
             this.total = response.data.data.total
373
+
374
+            for (let i = 0; i < this.tableData.length; i++) {
375
+
376
+              if (this.tableData[i].record.doctor_id == 0) {
377
+                this.tableData[i].record.doctor_id = ''
378
+
379
+              }
380
+              if (this.tableData[i].record.department_id == 0) {
381
+                this.tableData[i].record.department_id = ''
382
+              }
383
+
384
+            }
385
+
329 386
           }
330 387
         })
331 388
 
@@ -338,10 +395,13 @@
338 395
         this.page = page
339 396
         this.getList()
340 397
 
398
+      }, searchAction() {
399
+        this.getList()
341 400
       }
342 401
     },
343 402
     created() {
344 403
       this.getList()
404
+      this.getInitData()
345 405
       this.fetchAllAdminUsers()
346 406
 
347 407
     }

+ 5 - 3
src/xt_pages/qcd/indicatorControlAnalysis/components/office.vue View File

@@ -299,6 +299,7 @@
299 299
 
300 300
       },
301 301
       changeProject(val) {
302
+        console.log("Val222222",val)
302 303
         this.query.page = 1
303 304
         let item_inspection_reference = []
304 305
         for (let i = 0; i < this.all_inspection_reference.length; i++) {
@@ -307,6 +308,7 @@
307 308
           }
308 309
         }
309 310
         this.item_columns = item_inspection_reference
311
+        
310 312
         var projectInfo = this.getPojectInfo(this.item_columns[0].project_id, this.item_columns[0].id)
311 313
         console.log("projectInfo",projectInfo)
312 314
         this.query.project_id = projectInfo.project_id
@@ -338,7 +340,7 @@
338 340
               let project = []
339 341
               let item = []
340 342
               this.all_inspection_reference = resp.data.references
341
-               console.log("====",this.all_inspection_reference)
343
+               console.log("====hhh",this.all_inspection_reference)
342 344
               for (let i = 0; i < this.all_inspection_reference.length; i++) {
343 345
                 project.push(this.all_inspection_reference[i])
344 346
               }
@@ -356,7 +358,7 @@
356 358
                   item.push(this.all_inspection_reference[i])
357 359
                 }
358 360
               }
359
-             console.log("item",item)
361
+             console.log("item9999888888",item)
360 362
               this.item_columns = item
361 363
               this.item_name = item[0].item_name
362 364
 
@@ -475,7 +477,7 @@
475 477
         GetInspectionIndexTable(params)
476 478
           .then(rs => {
477 479
             var resp = rs.data
478
-            console.log("resp",resp)
480
+            console.log("resp22222",resp)
479 481
             if (resp.state == 1) {
480 482
               this.tableData = []
481 483
               for (let i = 0; i < resp.data.data.length; i++) {

+ 22 - 9
src/xt_pages/role/admin.vue View File

@@ -396,7 +396,7 @@ export default {
396 396
           ids.push(this.selectDrug[index].user_id);
397 397
           idMap[this.selectDrug[index].user_id] = this.selectDrug[index].user_id;
398 398
         }
399
-        console.log('ids222222222',ids)
399
+        
400 400
         var idss = ids.join(',')
401 401
         let params = {
402 402
           ids:idss,
@@ -406,11 +406,18 @@ export default {
406 406
         var that = this
407 407
         axios.get('http://127.0.0.1:9532/sz/api/doctor/get',{ params: params }).then(function(response) {
408 408
          if (response.data.state == 0) {
409
-               that.$message.error(response.data.msg)
409
+               that.$message.error(response.data.data.msg)
410 410
                return false
411 411
             } else {
412
-              that.$message({ message: '操作成功', type: 'success' })
413
-              that.adminMainView()
412
+              that.$message.error(response.data.data.msg)
413
+              if(response.data.data.msg == ""){
414
+                  that.$message.success("登记成功!")
415
+                  that.adminMainView()
416
+               }
417
+               if(response.data.data.msg!=""){
418
+                  that.$message.error(response.data.data.msg)
419
+                  that.adminMainView()
420
+               }
414 421
              }
415 422
            }).catch(function(error) {
416 423
         })
@@ -423,15 +430,21 @@ export default {
423 430
            "is_mark":is_mark,
424 431
            "admin_user_id":this.$store.getters.xt_user.user.id
425 432
         }
426
-        console.log("params222222222",params)
433
+        
427 434
          axios.get('http://127.0.0.1:9532/sz/api/medical/get',{params:params}).then(function(response) {
428 435
           if (response.data.state == 0) {
429
-               that.$message.error(response.data.msg)
436
+               that.$message.error(response.data.data.msg)
430 437
                return false
431 438
             } else {
432
-              // that.$message({ message: '操作成功', type: 'success' })
433
-              this.$message.error(response.data.msg)
434
-              that.adminMainView()
439
+             
440
+              if(response.data.data.msg == ""){
441
+                  that.$message.success("登记成功!")
442
+                  that.adminMainView()
443
+               }
444
+               if(response.data.data.msg!=""){
445
+                  that.$message.error(response.data.data.msg)
446
+                  that.adminMainView()
447
+               }
435 448
              }
436 449
            }).catch(function(error) {
437 450
         })

+ 1 - 1
src/xt_pages/user/patients.vue View File

@@ -655,7 +655,7 @@
655 655
         ],
656 656
         lapsetoRules: {
657 657
           lapseto_type: [{ required: true, message: '请选择治疗状态' }],
658
-          lapseto_time: [{ required: true, message: '请选择转归时间' }]
658
+          lapseto_time: [{ required: true, message: '请选择时间' }]
659 659
         },
660 660
         currentIndex: -1,
661 661
         LapsetoDialogVisible: false,