浏览代码

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

csx 4 年前
父节点
当前提交
cdd4ab032f

+ 1 - 1
src/lang/zh.js 查看文件

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

+ 0 - 1
src/router/index.js 查看文件

28
 import outpatientCharges from './modules/outpatientCharges'
28
 import outpatientCharges from './modules/outpatientCharges'
29
 import outpatientPharmacy from './modules/outpatientPharmacy'
29
 import outpatientPharmacy from './modules/outpatientPharmacy'
30
 import outpatientRecord from './modules/outpatientRecord'
30
 import outpatientRecord from './modules/outpatientRecord'
31
-
32
 import kuyiShopping from './modules/kuyiShopping'
31
 import kuyiShopping from './modules/kuyiShopping'
33
 import createPatient from './modules/createPatient'
32
 import createPatient from './modules/createPatient'
34
 import dialysisRecord from './modules/dialysisRecord'
33
 import dialysisRecord from './modules/dialysisRecord'

+ 4 - 4
src/router/modules/outpatientRecord.js 查看文件

13
   },
13
   },
14
   children: [
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 查看文件

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

+ 1 - 1
src/views/layout/components/Sidebar/index.vue 查看文件

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

+ 17 - 5
src/xt_pages/data/components/consumables.vue 查看文件

872
             var that = this
872
             var that = this
873
             axios.get('http://127.0.0.1:9532/sz/api/goods/get',{ params: params }).then(function(response) {
873
             axios.get('http://127.0.0.1:9532/sz/api/goods/get',{ params: params }).then(function(response) {
874
             if (response.data.state == 0) {
874
             if (response.data.state == 0) {
875
-                  that.$message.error(response.data.msg)
875
+                  that.$message.error(response.data.data.msg)
876
                   return false
876
                   return false
877
                 } else {
877
                 } else {
878
-                  that.$message({ message: '备案成功', type: 'success' })
878
+                 if(response.data.data.msg == ""){
879
+                  that.$message.success("备案成功!")
879
                   that.getList()
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
               }).catch(function(error) {
887
               }).catch(function(error) {
882
             })
888
             })
893
           }
899
           }
894
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
900
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
895
           if (response.data.state == 0) {
901
           if (response.data.state == 0) {
896
-               that.$message.error(response.data.msg)
902
+               that.$message.error(response.data.data.msg)
897
                return false
903
                return false
898
             } else {
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
            }).catch(function(error) {
914
            }).catch(function(error) {
903
         })
915
         })

+ 119 - 25
src/xt_pages/data/components/drugs.vue 查看文件

57
       <div>
57
       <div>
58
         <el-button type="primary" @click="openForm(0)">新增</el-button>
58
         <el-button type="primary" @click="openForm(0)">新增</el-button>
59
         <el-button type="primary" @click="BatchDelete()">批量备案</el-button>
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
       </div>
63
       </div>
61
     </div>
64
     </div>
62
     <el-table :data="list" border style="width: 100%" :row-style="{ color: '#303133' }"
65
     <el-table :data="list" border style="width: 100%" :row-style="{ color: '#303133' }"
66
           align="center"
69
           align="center"
67
           type="selection"
70
           type="selection"
68
           width="55"
71
           width="55"
69
-       ></el-table-column>        
72
+       ></el-table-column>
70
       <el-table-column type="index" label="序号" width="60px" align="center"></el-table-column>
73
       <el-table-column type="index" label="序号" width="60px" align="center"></el-table-column>
71
 
74
 
72
       <el-table-column prop="date" label="药品名称" align="center" width="100">
75
       <el-table-column prop="date" label="药品名称" align="center" width="100">
138
         <template slot-scope="scope">
141
         <template slot-scope="scope">
139
           <el-button @click="openForm(scope.row.id)" type="primary" size="small">编辑</el-button>
142
           <el-button @click="openForm(scope.row.id)" type="primary" size="small">编辑</el-button>
140
           <el-button type="danger" size="small" @click="deleteDurg(scope.row.id,scope.$index)">删除</el-button>
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
           <span v-if="scope.row.is_mark == 0">备案</span>
146
           <span v-if="scope.row.is_mark == 0">备案</span>
143
           <span v-if="scope.row.is_mark == 1">撤消</span>
147
           <span v-if="scope.row.is_mark == 1">撤消</span>
144
         </el-button>
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
         </template>
155
         </template>
146
       </el-table-column>
156
       </el-table-column>
147
     </el-table>
157
     </el-table>
207
         is_record:"",
217
         is_record:"",
208
         is_inject: '',
218
         is_inject: '',
209
         list: [],
219
         list: [],
210
-    
220
+
211
         isCreated: 1,
221
         isCreated: 1,
212
         manufacturers: [],
222
         manufacturers: [],
213
         title: '',
223
         title: '',
327
             label: '未备案'
337
             label: '未备案'
328
           }],
338
           }],
329
         value: '',
339
         value: '',
330
-       
340
+
331
         dealer:[],
341
         dealer:[],
332
         selectDrug:[],
342
         selectDrug:[],
333
       }
343
       }
334
     },
344
     },
335
     methods: {
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
       handleSizeChange(val) {
368
       handleSizeChange(val) {
337
         this.limit = val
369
         this.limit = val
338
         this.getList()
370
         this.getList()
401
         } else if (val.id == 0) {
433
         } else if (val.id == 0) {
402
           //新增
434
           //新增
403
           console.log("vale222222",val)
435
           console.log("vale222222",val)
404
-         
436
+
405
           createBaseDrugLib(val).then(response => {
437
           createBaseDrugLib(val).then(response => {
406
             if (response.data.state == 0) {
438
             if (response.data.state == 0) {
407
               this.$message.error(response.data.msg)
439
               this.$message.error(response.data.msg)
426
           } else {
458
           } else {
427
               var obj = {id:0,manufacturer_name:"全部"}
459
               var obj = {id:0,manufacturer_name:"全部"}
428
               this.manufacturers.push(obj)
460
               this.manufacturers.push(obj)
429
-          
461
+
430
             for (let i = 0; i < response.data.data.manufacturer.length; i++) {
462
             for (let i = 0; i < response.data.data.manufacturer.length; i++) {
431
               this.manufacturers.push(response.data.data.manufacturer[i])
463
               this.manufacturers.push(response.data.data.manufacturer[i])
432
             }
464
             }
433
-          
465
+
434
           }
466
           }
435
         })
467
         })
436
       },
468
       },
531
               }
563
               }
532
 
564
 
533
               this.formValue.record_date = this.getTime(this.formValue.record_date)
565
               this.formValue.record_date = this.getTime(this.formValue.record_date)
534
-               
566
+
535
               if(this.formValue.drug_category == 0){
567
               if(this.formValue.drug_category == 0){
536
                   this.formValue.drug_category = ""
568
                   this.formValue.drug_category = ""
537
-              } 
569
+              }
538
               if(this.formValue.drug_control == 0){
570
               if(this.formValue.drug_control == 0){
539
                   this.formValue.drug_control = ""
571
                   this.formValue.drug_control = ""
540
               }
572
               }
561
               }
593
               }
562
               if(this.formValue.is_mark == 0){
594
               if(this.formValue.is_mark == 0){
563
                  this.formValue.is_mark = ""
595
                  this.formValue.is_mark = ""
564
-              }  
596
+              }
565
               if(this.formValue.prescription_mark == 0){
597
               if(this.formValue.prescription_mark == 0){
566
                   this.formValue.prescription_mark = ""
598
                   this.formValue.prescription_mark = ""
567
               }
599
               }
627
       },
659
       },
628
      getDataConfig(module, filed_name){
660
      getDataConfig(module, filed_name){
629
         return getDataConfig(module, filed_name)
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
       // toRecord(){
716
       // toRecord(){
632
       //    var that = this
717
       //    var that = this
652
           }
737
           }
653
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
738
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
654
           if (response.data.state == 0) {
739
           if (response.data.state == 0) {
655
-               that.$message.error(response.data.msg)
740
+               that.$message.error(response.data.data.msg)
656
                return false
741
                return false
657
             } else {
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
            }).catch(function(error) {
753
            }).catch(function(error) {
662
         })
754
         })
668
           return false;
760
           return false;
669
         } else {
761
         } else {
670
           this.dealer = response.data.data.dealer;
762
           this.dealer = response.data.data.dealer;
671
-         
763
+
672
         }
764
         }
673
        });
765
        });
674
       },
766
       },
708
           ids.push(this.selectDrug[index].id);
800
           ids.push(this.selectDrug[index].id);
709
           idMap[this.selectDrug[index].id] = this.selectDrug[index].id;
801
           idMap[this.selectDrug[index].id] = this.selectDrug[index].id;
710
         }
802
         }
711
-      
803
+
712
         var idss = ids.join(',')
804
         var idss = ids.join(',')
713
         let params = {
805
         let params = {
714
           ids:idss,
806
           ids:idss,
715
           admin_user_id:this.$store.getters.xt_user.user.id
807
           admin_user_id:this.$store.getters.xt_user.user.id
716
         }
808
         }
717
-       
809
+
718
         var that = this
810
         var that = this
719
         axios.get('http://127.0.0.1:9532/sz/api/drug/get',{ params: params }).then(function(response) {
811
         axios.get('http://127.0.0.1:9532/sz/api/drug/get',{ params: params }).then(function(response) {
720
          if (response.data.state == 0) {
812
          if (response.data.state == 0) {
721
-               that.$message.error(response.data.msg)
813
+
814
+               that.$message.error(response.data.data.msg)
722
                return false
815
                return false
723
             } else {
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
            }).catch(function(error) {
826
            }).catch(function(error) {
733
         })
827
         })
734
        });
828
        });
735
      },
829
      },
736
-    }, 
830
+    },
737
     created() {
831
     created() {
738
       this.getList()
832
       this.getList()
739
       this.getAllManufacturer()
833
       this.getAllManufacturer()

+ 7 - 1
src/xt_pages/data/components/editInspection.vue 查看文件

30
                         </el-option>
30
                         </el-option>
31
                   </el-select>
31
                   </el-select>
32
                 </el-form-item>
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
                     <el-select v-model="form.team_type" style="width:100%;" placeholder="请选择">
34
                     <el-select v-model="form.team_type" style="width:100%;" placeholder="请选择">
35
                         <el-option
35
                         <el-option
36
                         v-for="item in options"
36
                         v-for="item in options"
211
                  this.form.pinyin = projectTeamDetail.pinyin
211
                  this.form.pinyin = projectTeamDetail.pinyin
212
                  this.form.wubi  = projectTeamDetail.wubi
212
                  this.form.wubi  = projectTeamDetail.wubi
213
                  this.form.tube_color = projectTeamDetail.tube_color
213
                  this.form.tube_color = projectTeamDetail.tube_color
214
+                 if(projectTeamDetail.tube_color == 0){
215
+                    this.form.tube_color = ""
216
+                 }
214
                  this.form.team_type = projectTeamDetail.team_type
217
                  this.form.team_type = projectTeamDetail.team_type
218
+                 if(projectTeamDetail.team_type == 0){
219
+                    this.form.team_type = ""
220
+                 }     
215
                  this.form.remark = projectTeamDetail.remark
221
                  this.form.remark = projectTeamDetail.remark
216
                  this.form.item_id = projectTeamDetail.item_id
222
                  this.form.item_id = projectTeamDetail.item_id
217
                 //  console.log("project",projectTeamDetail)
223
                 //  console.log("project",projectTeamDetail)

+ 18 - 6
src/xt_pages/data/components/project.vue 查看文件

278
          
278
          
279
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
279
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
280
           if (response.data.state == 0) {
280
           if (response.data.state == 0) {
281
-               that.$message.error(response.data.msg)
281
+               that.$message.error(response.data.data.msg)
282
                return false
282
                return false
283
             } else {
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
            }).catch(function(error) {
293
            }).catch(function(error) {
288
         })
294
         })
325
         var that = this
331
         var that = this
326
         axios.get('http://127.0.0.1:9532/sz/api/treatment/get',{ params: params }).then(function(response) {
332
         axios.get('http://127.0.0.1:9532/sz/api/treatment/get',{ params: params }).then(function(response) {
327
          if (response.data.state == 0) {
333
          if (response.data.state == 0) {
328
-               that.$message.error(response.data.msg)
334
+               that.$message.error(response.data.data.msg)
329
                return false
335
                return false
330
             } else {
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
            }).catch(function(error) {
346
            }).catch(function(error) {
335
         })
347
         })

+ 8 - 3
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue 查看文件

314
         diagnoses:[],
314
         diagnoses:[],
315
         sick:[],
315
         sick:[],
316
         allergic_history:"",
316
         allergic_history:"",
317
+        form:{
318
+          id:0,
319
+        }
317
       }
320
       }
318
     },
321
     },
319
     methods: {
322
     methods: {
365
             "remark":this.case_history.remark,
368
             "remark":this.case_history.remark,
366
             "sick":this.case_history.sick,
369
             "sick":this.case_history.sick,
367
             "diagnose":this.case_history.diagnose,
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
           console.log("prams222",params)
374
           console.log("prams222",params)
371
           createCaseHistory(params).then(response => {
375
           createCaseHistory(params).then(response => {
402
                 this.case_history.remark = templatedetail.remark
406
                 this.case_history.remark = templatedetail.remark
403
                 this.case_history.sick = templatedetail.sick
407
                 this.case_history.sick = templatedetail.sick
404
                 this.case_history.diagnose = templatedetail.diagnose
408
                 this.case_history.diagnose = templatedetail.diagnose
405
-                // this.allergic_history = templatedetail.allergic_history
409
+                
406
               }
410
               }
407
           })
411
           })
408
         },
412
         },
569
         if(this.case_history.diagnose == 0){
573
         if(this.case_history.diagnose == 0){
570
            this.case_history.diagnose = ""
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 查看文件

743
             this.patientInfo = response.data.data.xt_info
743
             this.patientInfo = response.data.data.xt_info
744
             this.hisPatientInfo = response.data.data.his_info
744
             this.hisPatientInfo = response.data.data.his_info
745
             this.case_history = response.data.data.case_history
745
             this.case_history = response.data.data.case_history
746
+            console.log("病历222222",this.case_history)
746
             this.info = response.data.data.info
747
             this.info = response.data.data.info
747
             this.doctors = response.data.data.doctors
748
             this.doctors = response.data.data.doctors
748
             this.department = response.data.data.department
749
             this.department = response.data.data.department
970
                 this.patientInfo = response.data.data.xt_info
971
                 this.patientInfo = response.data.data.xt_info
971
                 this.hisPatientInfo = response.data.data.his_info
972
                 this.hisPatientInfo = response.data.data.his_info
972
                 this.case_history = response.data.data.case_history
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
                 var month_prescriptions = response.data.data.month_prescriptions
975
                 var month_prescriptions = response.data.data.month_prescriptions
976
                 this.setMonthPrescription(month_prescriptions)
976
                 this.setMonthPrescription(month_prescriptions)
977
                 this.doctors = response.data.data.doctors
977
                 this.doctors = response.data.data.doctors
1144
               this.patientInfo = response.data.data.xt_info
1144
               this.patientInfo = response.data.data.xt_info
1145
               this.hisPatientInfo = response.data.data.his_info
1145
               this.hisPatientInfo = response.data.data.his_info
1146
               this.case_history = response.data.data.case_history
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
               this.info = response.data.data.info
1148
               this.info = response.data.data.info
1151
               this.doctors = response.data.data.doctors
1149
               this.doctors = response.data.data.doctors
1152
               this.department = response.data.data.department
1150
               this.department = response.data.data.department

+ 16 - 3
src/xt_pages/outpatientDoctorStation/template/printOne.vue 查看文件

17
               <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
17
               <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
18
               <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
18
               <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
19
               <div>地址:{{item.patient.home_address}}</div>
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
           </div>
21
           </div>
22
           <div class="prescriptionBox">
22
           <div class="prescriptionBox">
23
               <div class="Rp">Rp:</div>
23
               <div class="Rp">Rp:</div>
85
         department:[],
85
         department:[],
86
         prescriptions:[],
86
         prescriptions:[],
87
         projectList:[],
87
         projectList:[],
88
-        orgname:""
88
+        orgname:"",
89
+        diagnoses:[],
89
       }
90
       }
90
     },
91
     },
91
    methods:{
92
    methods:{
132
             console.log("adviceprint9999",advicePrint)
133
             console.log("adviceprint9999",advicePrint)
133
             this.advicePrint = advicePrint
134
             this.advicePrint = advicePrint
134
             this.prescriptions = advicePrint
135
             this.prescriptions = advicePrint
136
+            console.log("处方222222",this.prescriptions)
135
             var hisPatient = response.data.data.hisPatient
137
             var hisPatient = response.data.data.hisPatient
136
             console.log("hisPatient",hisPatient)
138
             console.log("hisPatient",hisPatient)
137
             this.hisPatient = hisPatient
139
             this.hisPatient = hisPatient
157
        getInitData().then(response=>{
159
        getInitData().then(response=>{
158
           if(response.data.state == 1){
160
           if(response.data.state == 1){
159
             this.department = response.data.data.department
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
         return project_name
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
    created(){
239
    created(){
227
       this.getAllDoctorList()
240
       this.getAllDoctorList()

+ 23 - 2
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue 查看文件

33
             <div style="margin-bottom: 10px;width:25%">参保类型:{{hisPatient.social_type?hisPatient.social_type:''}}</div>
33
             <div style="margin-bottom: 10px;width:25%">参保类型:{{hisPatient.social_type?hisPatient.social_type:''}}</div>
34
             <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
34
             <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
35
             <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
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
         </div>
37
         </div>
38
 
38
 
39
         <div class="prescriptionBox">
39
         <div class="prescriptionBox">
221
 <script>
221
 <script>
222
 import { jsGetAge, uParseTime } from '@/utils/tools'
222
 import { jsGetAge, uParseTime } from '@/utils/tools'
223
 import {getAllDoctorList,getPrescriptionPrint} from "@/api/project/project"
223
 import {getAllDoctorList,getPrescriptionPrint} from "@/api/project/project"
224
+import {getInitData} from "@/api/his/his"
224
 export default {
225
 export default {
225
     props:{
226
     props:{
226
       patient_id:Number,
227
       patient_id:Number,
247
           {value: 6,label:'职工'},
248
           {value: 6,label:'职工'},
248
           {value: 7,label:'合同'}
249
           {value: 7,label:'合同'}
249
          ],
250
          ],
250
-         hisPatient:{}
251
+         hisPatient:{},
252
+         diagnoses:[]
251
       }
253
       }
252
     },
254
     },
253
    methods:{
255
    methods:{
371
 
373
 
372
         return total + addtotal
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
    created(){
394
    created(){
395
+      this.getInitData()
376
       this.getAllDoctorList()
396
       this.getAllDoctorList()
377
       this.getPrescriptionPrint()
397
       this.getPrescriptionPrint()
378
       var xtuser = this.$store.getters.xt_user
398
       var xtuser = this.$store.getters.xt_user
379
       this.orgname = xtuser.org.org_name
399
       this.orgname = xtuser.org.org_name
400
+
380
    },
401
    },
381
    watch:{
402
    watch:{
382
      patient_id:function(val){
403
      patient_id:function(val){

+ 134 - 74
src/xt_pages/outpatientRecord/outpatientRecord.vue 查看文件

17
             </div>
17
             </div>
18
             <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
18
             <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
19
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
19
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
20
+                      v-loading="patientLoading"
20
                       highlight-current-row>
21
                       highlight-current-row>
21
                 <el-table-column
22
                 <el-table-column
22
                         prop="date"
23
                         prop="date"
30
                     <template slot-scope="scope">{{scope.row.trt_dcla_detl_sn}}</template>
31
                     <template slot-scope="scope">{{scope.row.trt_dcla_detl_sn}}</template>
31
                 </el-table-column>
32
                 </el-table-column>
32
                 <el-table-column align="center" prop="name" label="时间">
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
                 </el-table-column>
35
                 </el-table-column>
35
                 <el-table-column align="center" prop="name" label="姓名">
36
                 <el-table-column align="center" prop="name" label="姓名">
36
                     <template slot-scope="scope">{{scope.row.name}}</template>
37
                     <template slot-scope="scope">{{scope.row.name}}</template>
50
                 </el-table-column>
51
                 </el-table-column>
51
                 <el-table-column align="center" prop="name" width="160" label="鉴定定点医药机构">
52
                 <el-table-column align="center" prop="name" width="160" label="鉴定定点医药机构">
52
                     <template slot-scope="scope">
53
                     <template slot-scope="scope">
53
-                        {{scope.row.org_name}}
54
+                        {{$store.getters.xt_user.org.org_name}}
54
                     </template>
55
                     </template>
55
                 </el-table-column>
56
                 </el-table-column>
56
                 <el-table-column align="center" prop="name" label="医生">
57
                 <el-table-column align="center" prop="name" label="医生">
57
                     <template slot-scope="scope">
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
                             <el-option
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
                                     :label="item.user_name"
64
                                     :label="item.user_name"
63
                                     :value="item.admin_user_id">
65
                                     :value="item.admin_user_id">
64
                             </el-option>
66
                             </el-option>
67
                 </el-table-column>
69
                 </el-table-column>
68
                 <el-table-column align="center" prop="name" label="科室">
70
                 <el-table-column align="center" prop="name" label="科室">
69
                     <template slot-scope="scope">
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
                             <el-option
74
                             <el-option
72
                                     v-for="(item,index) in department"
75
                                     v-for="(item,index) in department"
73
                                     :key="index"
76
                                     :key="index"
79
                 </el-table-column>
82
                 </el-table-column>
80
 
83
 
81
 
84
 
82
-
83
                 <el-table-column align="center" prop="name" label="险种类型">
85
                 <el-table-column align="center" prop="name" label="险种类型">
84
                     <template slot-scope="scope">
86
                     <template slot-scope="scope">
85
                         <div v-if="scope.row.insutype == '310'">职工基本医疗保险</div>
87
                         <div v-if="scope.row.insutype == '310'">职工基本医疗保险</div>
105
                     </template>
107
                     </template>
106
                 </el-table-column>
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
                     <template slot-scope="scope">
111
                     <template slot-scope="scope">
110
                         <el-button type="primary" size="small" icon="el-icon-refresh-left">
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
                         </el-button>
115
                         </el-button>
114
                     </template>
116
                     </template>
115
                 </el-table-column>
117
                 </el-table-column>
118
             <el-dialog title="备案" :visible.sync="dialogFormVisible">
120
             <el-dialog title="备案" :visible.sync="dialogFormVisible">
119
                 <el-form :model="form" label-width="100px">
121
                 <el-form :model="form" label-width="100px">
120
                     <el-form-item label="险种类型" :label-width="formLabelWidth">
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
                             <el-option
124
                             <el-option
123
                                     v-for="item in insutypes"
125
                                     v-for="item in insutypes"
124
                                     :key="item.value"
126
                                     :key="item.value"
135
             </el-dialog>
137
             </el-dialog>
136
         </div>
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
     </div>
152
     </div>
140
 </template>
153
 </template>
141
 
154
 
142
 
155
 
143
 <script>
156
 <script>
144
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
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
   import { uParseTime } from '@/utils/tools'
159
   import { uParseTime } from '@/utils/tools'
147
   import { fetchAllAdminUsers } from '@/api/doctor'
160
   import { fetchAllAdminUsers } from '@/api/doctor'
148
   import axios from 'axios'
161
   import axios from 'axios'
153
     },
166
     },
154
     data() {
167
     data() {
155
       return {
168
       return {
169
+        currentObject: null,
156
         crumbs: [
170
         crumbs: [
157
           { path: false, name: '门诊收费' },
171
           { path: false, name: '门诊收费' },
158
           { path: false, name: '医保费用对照' }
172
           { path: false, name: '医保费用对照' }
159
         ],
173
         ],
160
         tableData: [],
174
         tableData: [],
161
-        doctorList:[],
162
-        department:[],
163
-        sick:[],
175
+        doctorList: [],
176
+        department: [],
177
+        patientLoading: false,
178
+        sick: [],
164
         limit: 10,
179
         limit: 10,
165
         page: 1,
180
         page: 1,
166
         dialogFormVisible: false,
181
         dialogFormVisible: false,
170
         end_time: '',
185
         end_time: '',
171
         insutype: '',
186
         insutype: '',
172
         check_type: '',
187
         check_type: '',
173
-
188
+        keywords: '',
174
         options: [
189
         options: [
175
           {
190
           {
176
             value: 1,
191
             value: 1,
211
       }
226
       }
212
     },
227
     },
213
     methods: {
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
       getInitData() {
284
       getInitData() {
215
         getInitData().then(response => {
285
         getInitData().then(response => {
216
           if (response.data.state == 0) {
286
           if (response.data.state == 0) {
225
         })
295
         })
226
 
296
 
227
       },
297
       },
228
-      getSickName(id){
229
-
298
+      getSickName(id) {
230
 
299
 
231
       },
300
       },
232
       confirm() {
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
       getInsutype(type) {
333
       getInsutype(type) {
293
 
334
 
316
           'page': this.page,
357
           'page': this.page,
317
           'limit': this.limit,
358
           'limit': this.limit,
318
           'keywords': this.keywords
359
           'keywords': this.keywords
319
-
320
         }
360
         }
321
         this.tableData = []
361
         this.tableData = []
322
-        getList(params).then(response => {
362
+        this.patientLoading = true
363
+        getRecordList(params).then(response => {
323
           if (response.data.state == 0) {
364
           if (response.data.state == 0) {
365
+            this.patientLoading = false
366
+
324
             this.$message.error(response.data.msg)
367
             this.$message.error(response.data.msg)
325
             return false
368
             return false
326
           } else {
369
           } else {
370
+            this.patientLoading = false
327
             this.tableData = response.data.data.list
371
             this.tableData = response.data.data.list
328
             this.total = response.data.data.total
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
         this.page = page
395
         this.page = page
339
         this.getList()
396
         this.getList()
340
 
397
 
398
+      }, searchAction() {
399
+        this.getList()
341
       }
400
       }
342
     },
401
     },
343
     created() {
402
     created() {
344
       this.getList()
403
       this.getList()
404
+      this.getInitData()
345
       this.fetchAllAdminUsers()
405
       this.fetchAllAdminUsers()
346
 
406
 
347
     }
407
     }

+ 5 - 3
src/xt_pages/qcd/indicatorControlAnalysis/components/office.vue 查看文件

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

+ 22 - 9
src/xt_pages/role/admin.vue 查看文件

396
           ids.push(this.selectDrug[index].user_id);
396
           ids.push(this.selectDrug[index].user_id);
397
           idMap[this.selectDrug[index].user_id] = this.selectDrug[index].user_id;
397
           idMap[this.selectDrug[index].user_id] = this.selectDrug[index].user_id;
398
         }
398
         }
399
-        console.log('ids222222222',ids)
399
+        
400
         var idss = ids.join(',')
400
         var idss = ids.join(',')
401
         let params = {
401
         let params = {
402
           ids:idss,
402
           ids:idss,
406
         var that = this
406
         var that = this
407
         axios.get('http://127.0.0.1:9532/sz/api/doctor/get',{ params: params }).then(function(response) {
407
         axios.get('http://127.0.0.1:9532/sz/api/doctor/get',{ params: params }).then(function(response) {
408
          if (response.data.state == 0) {
408
          if (response.data.state == 0) {
409
-               that.$message.error(response.data.msg)
409
+               that.$message.error(response.data.data.msg)
410
                return false
410
                return false
411
             } else {
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
            }).catch(function(error) {
422
            }).catch(function(error) {
416
         })
423
         })
423
            "is_mark":is_mark,
430
            "is_mark":is_mark,
424
            "admin_user_id":this.$store.getters.xt_user.user.id
431
            "admin_user_id":this.$store.getters.xt_user.user.id
425
         }
432
         }
426
-        console.log("params222222222",params)
433
+        
427
          axios.get('http://127.0.0.1:9532/sz/api/medical/get',{params:params}).then(function(response) {
434
          axios.get('http://127.0.0.1:9532/sz/api/medical/get',{params:params}).then(function(response) {
428
           if (response.data.state == 0) {
435
           if (response.data.state == 0) {
429
-               that.$message.error(response.data.msg)
436
+               that.$message.error(response.data.data.msg)
430
                return false
437
                return false
431
             } else {
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
            }).catch(function(error) {
449
            }).catch(function(error) {
437
         })
450
         })

+ 1 - 1
src/xt_pages/user/patients.vue 查看文件

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