李帅 hai 3 semanas
pai
achega
58f50d4a78

+ 5 - 2
.env.development

@@ -10,12 +10,15 @@ ENV = 'development'
10
 # VUE_APP_BASE_API = 'http://192.168.3.142:8080/api'
10
 # VUE_APP_BASE_API = 'http://192.168.3.142:8080/api'
11
 # VUE_APP_BASE_WSS = 'ws://192.168.3.142:8002/ws'
11
 # VUE_APP_BASE_WSS = 'ws://192.168.3.142:8002/ws'
12
 
12
 
13
+VUE_APP_BASE_API = 'http://192.168.3.242:8081/api'
14
+VUE_APP_BASE_WSS = 'ws://192.168.3.242:8081/ws'
15
+
13
 # VUE_APP_BASE_API = 'http://106.74.15.131:81/api'
16
 # VUE_APP_BASE_API = 'http://106.74.15.131:81/api'
14
 # VUE_APP_BASE_WSS = 'ws://106.74.15.131:81/ws'
17
 # VUE_APP_BASE_WSS = 'ws://106.74.15.131:81/ws'
15
 
18
 
16
 # VUE_APP_BASE_API = 'http://192.168.3.21:8080/api'
19
 # VUE_APP_BASE_API = 'http://192.168.3.21:8080/api'
17
-VUE_APP_BASE_API = 'http://39.105.121.97:8080/api'
18
-VUE_APP_BASE_WSS = 'ws://39.105.121.97:8080/ws'
20
+# VUE_APP_BASE_API = 'http://39.105.121.97:8080/api'
21
+# VUE_APP_BASE_WSS = 'ws://39.105.121.97:8080/ws'
19
 
22
 
20
 
23
 
21
 # 路由懒加载
24
 # 路由懒加载

+ 12 - 12
src/utils/request.js

@@ -18,11 +18,11 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
18
 const service = axios.create({
18
 const service = axios.create({
19
   baseURL: process.env.VUE_APP_BASE_API,
19
   baseURL: process.env.VUE_APP_BASE_API,
20
   // baseURL: "http://39.105.121.97:8080/api",
20
   // baseURL: "http://39.105.121.97:8080/api",
21
-  // baseURL: "http://106.74.15.131:81/api",
21
+  // baseURL: "http://106.74.15.131:80/api",
22
   
22
   
23
   // axios中请求配置有baseURL选项,表示请求URL公共部分
23
   // axios中请求配置有baseURL选项,表示请求URL公共部分
24
   // baseURL: "http://192.168.3.142:8080/api",
24
   // baseURL: "http://192.168.3.142:8080/api",
25
-  // baseURL: "http://192.168.3.90:8080/api",
25
+  // baseURL: "http://192.168.3.242:8081/api",
26
   // baseURL: "http://172.16.100.153:8081/api",
26
   // baseURL: "http://172.16.100.153:8081/api",
27
   // baseURL: "http://192.168.97.176:8081/api",
27
   // baseURL: "http://192.168.97.176:8081/api",
28
   // baseURL: "http://j41711d831.wicp.vip/api",
28
   // baseURL: "http://j41711d831.wicp.vip/api",
@@ -127,16 +127,16 @@ service.interceptors.response.use(res => {
127
       Notification.error({ title: msg })
127
       Notification.error({ title: msg })
128
       return Promise.reject('error')
128
       return Promise.reject('error')
129
     } else {
129
     } else {
130
-      // if(res.data.msg && res.data.msg ==="退出成功"){
131
-      //   return res.data
132
-      // } else {
133
-      //   if(JSON.parse(cyptoTool.methods.decrypt(res.data)).code === 500) {
134
-      //     JSON.parse(cyptoTool.methods.decrypt(res.data)) 
135
-      //     return Message.error(JSON.parse(cyptoTool.methods.decrypt(res.data)).msg)
136
-      //   }
137
-      //   return  JSON.parse(cyptoTool.methods.decrypt(res.data)) 
138
-      // }
139
-      return res.data
130
+      if(res.data.msg && res.data.msg ==="退出成功"){
131
+        return res.data
132
+      } else {
133
+        if(JSON.parse(cyptoTool.methods.decrypt(res.data)).code === 500) {
134
+          JSON.parse(cyptoTool.methods.decrypt(res.data)) 
135
+          return Message.error(JSON.parse(cyptoTool.methods.decrypt(res.data)).msg)
136
+        }
137
+        return  JSON.parse(cyptoTool.methods.decrypt(res.data)) 
138
+      }
139
+      // return res.data
140
     }
140
     }
141
   },
141
   },
142
   error => {
142
   error => {

+ 101 - 3
src/views/patientCenter/index.vue

@@ -895,6 +895,47 @@ export default {
895
       this.historyFlag = false
895
       this.historyFlag = false
896
       this.$refs.medicalRef.initMedicalRecordList()
896
       this.$refs.medicalRef.initMedicalRecordList()
897
       this.$refs.addMedicalDialogRef.allList = []
897
       this.$refs.addMedicalDialogRef.allList = []
898
+
899
+
900
+      this.chiefComplaintContent=""
901
+      this.chiefComplaintStr=[]
902
+      this.chiefComplaintOptions={}
903
+      this.chiefComplaintMap= new Map()
904
+
905
+      this.presentIllnessContent=""
906
+      this.presentIllnessStr=[]
907
+      this.presentIllnessOptions={}
908
+      this.presentIllnessMap= new Map()
909
+
910
+      this.inspectContent=""
911
+      this.inspectStr=[]
912
+      this.inspectOptions={}
913
+      this.inspectMap= new Map()
914
+
915
+      this.diagnosisContent=""
916
+      this.diagnosisStr=[]
917
+      this.diagnosisOptions={}
918
+      this.diagnosisMap= new Map()
919
+
920
+      this.treatmentPlanningContent=""
921
+      this.treatmentPlanningStr=[]
922
+      this.treatmentPlanningOptions={}
923
+      this.treatmentPlanningMap= new Map()
924
+
925
+      this.imageInspectContent=""
926
+      this.imageInspectStr=[]
927
+      this.imageInspectOption={}
928
+      this.imageInspectMap= new Map()
929
+
930
+      this.disposeContent=""
931
+      this.disposeStr=[]
932
+      this.disposeOptions={}
933
+      this.disposeMap= new Map()
934
+
935
+      this.noteContent=""
936
+      this.noteStr=[]
937
+      this.noteOptions={}
938
+      this.noteMap= new Map()
898
     },
939
     },
899
     handleClick(val) {
940
     handleClick(val) {
900
       this.activeName = val.value
941
       this.activeName = val.value
@@ -976,7 +1017,48 @@ export default {
976
           this.isLookObj = {}
1017
           this.isLookObj = {}
977
           this.teethList = []
1018
           this.teethList = []
978
           this.yaAllList = []
1019
           this.yaAllList = []
1020
+          this.$refs.addMedicalDialogRef.allList = []
979
           this.$refs.addMedicalTreeDialogRef.listArr = []
1021
           this.$refs.addMedicalTreeDialogRef.listArr = []
1022
+
1023
+          this.chiefComplaintContent=""
1024
+          this.chiefComplaintStr=[]
1025
+          this.chiefComplaintOptions={}
1026
+          this.chiefComplaintMap= new Map()
1027
+
1028
+          this.presentIllnessContent=""
1029
+          this.presentIllnessStr=[]
1030
+          this.presentIllnessOptions={}
1031
+          this.presentIllnessMap= new Map()
1032
+
1033
+          this.inspectContent=""
1034
+          this.inspectStr=[]
1035
+          this.inspectOptions={}
1036
+          this.inspectMap= new Map()
1037
+
1038
+          this.diagnosisContent=""
1039
+          this.diagnosisStr=[]
1040
+          this.diagnosisOptions={}
1041
+          this.diagnosisMap= new Map()
1042
+
1043
+          this.treatmentPlanningContent=""
1044
+          this.treatmentPlanningStr=[]
1045
+          this.treatmentPlanningOptions={}
1046
+          this.treatmentPlanningMap= new Map()
1047
+
1048
+          this.imageInspectContent=""
1049
+          this.imageInspectStr=[]
1050
+          this.imageInspectOption={}
1051
+          this.imageInspectMap= new Map()
1052
+
1053
+          this.disposeContent=""
1054
+          this.disposeStr=[]
1055
+          this.disposeOptions={}
1056
+          this.disposeMap= new Map()
1057
+
1058
+          this.noteContent=""
1059
+          this.noteStr=[]
1060
+          this.noteOptions={}
1061
+          this.noteMap= new Map()
980
           setTimeout(() => {
1062
           setTimeout(() => {
981
             this.$refs.medicalRef.initMedicalRecordList()
1063
             this.$refs.medicalRef.initMedicalRecordList()
982
           }, 100)
1064
           }, 100)
@@ -1134,7 +1216,6 @@ export default {
1134
         (item) => item.toothPosition != this.yaKey
1216
         (item) => item.toothPosition != this.yaKey
1135
       )
1217
       )
1136
 
1218
 
1137
-      console.log(list,123213);
1138
       this.yaAllList.push({
1219
       this.yaAllList.push({
1139
         toothPosition: this.yaKey,
1220
         toothPosition: this.yaKey,
1140
         toothStatus: 2,
1221
         toothStatus: 2,
@@ -1229,7 +1310,7 @@ export default {
1229
         this.imageInspectMap.set("_" + list.imageInspectContent,str)
1310
         this.imageInspectMap.set("_" + list.imageInspectContent,str)
1230
         this.imageInspectContent = this.imageInspectContent.replace(imageInspectOptionStr,str)
1311
         this.imageInspectContent = this.imageInspectContent.replace(imageInspectOptionStr,str)
1231
         this.imageInspectStr = this.imageInspectStr.map(item=>{
1312
         this.imageInspectStr = this.imageInspectStr.map(item=>{
1232
-          if(item.value == imageInspectOptionsStr){
1313
+          if(item.value == imageInspectOptionStr){
1233
             item.value = str
1314
             item.value = str
1234
           }
1315
           }
1235
           return item
1316
           return item
@@ -1238,7 +1319,7 @@ export default {
1238
         this.imageInspectMap.set("_" + list.imageInspectContent,this.initToothPosition(this.yaKey))
1319
         this.imageInspectMap.set("_" + list.imageInspectContent,this.initToothPosition(this.yaKey))
1239
         this.imageInspectContent = this.imageInspectContent + this.initToothPosition(this.yaKey) + list.imageInspectContent
1320
         this.imageInspectContent = this.imageInspectContent + this.initToothPosition(this.yaKey) + list.imageInspectContent
1240
         this.imageInspectStr = [...this.imageInspectStr,{type:'string',value:this.initToothPosition(this.yaKey)},...list.imageInspectOption.str]
1321
         this.imageInspectStr = [...this.imageInspectStr,{type:'string',value:this.initToothPosition(this.yaKey)},...list.imageInspectOption.str]
1241
-        this.imageInspectOptions = Object.assign(this.imageInspectOption, list.imageInspectOption.dic_data);
1322
+        this.imageInspectOption = Object.assign(this.imageInspectOption, list.imageInspectOption.dic_data);
1242
       }
1323
       }
1243
 
1324
 
1244
       // 判断是否有相同的合并内容 如果相同则直接合并如果不同加新的合并内容 //处置
1325
       // 判断是否有相同的合并内容 如果相同则直接合并如果不同加新的合并内容 //处置
@@ -1291,8 +1372,25 @@ export default {
1291
         this.diagnosisContent = this.diagnosisContent + this.initToothPosition(this.yaKey) + "主诊断:" + list.mainDiagnosis + (list.otherDiagnosis ? "其他诊断:" + list.otherDiagnosis.join() : "")
1372
         this.diagnosisContent = this.diagnosisContent + this.initToothPosition(this.yaKey) + "主诊断:" + list.mainDiagnosis + (list.otherDiagnosis ? "其他诊断:" + list.otherDiagnosis.join() : "")
1292
         this.diagnosisStr = [{type:'string',value:this.diagnosisContent}]
1373
         this.diagnosisStr = [{type:'string',value:this.diagnosisContent}]
1293
       }
1374
       }
1375
+      
1294
 
1376
 
1295
       this.$nextTick(() => {
1377
       this.$nextTick(() => {
1378
+        console.log(
1379
+          this.imageInspectContent,
1380
+          this.imageInspectStr,
1381
+          this.imageInspectOption,
1382
+          this.imageInspectMap,
1383
+          "影像检查的合并内容"
1384
+        );
1385
+        console.log(
1386
+          this.noteContent,
1387
+          this.noteStr,
1388
+          this.noteOptions,
1389
+          this.noteMap,
1390
+          "便签的map"
1391
+        );
1392
+
1393
+
1296
         this.addyaFlag = true
1394
         this.addyaFlag = true
1297
         this.historyFlag = false
1395
         this.historyFlag = false
1298
         this.isLook = true
1396
         this.isLook = true

+ 9 - 5
src/views/patientCenter/medical/yaChi.vue

@@ -3240,6 +3240,10 @@ export default {
3240
       type: String,
3240
       type: String,
3241
       default: ''
3241
       default: ''
3242
     },
3242
     },
3243
+    imageInspectContent: {
3244
+      type: String,
3245
+      default: ''
3246
+    },
3243
     noteStr: {
3247
     noteStr: {
3244
       type: Array,
3248
       type: Array,
3245
       default: []
3249
       default: []
@@ -3396,6 +3400,7 @@ export default {
3396
         }
3400
         }
3397
       })
3401
       })
3398
       text = newVal.replace(/\s/g, '')
3402
       text = newVal.replace(/\s/g, '')
3403
+      console.log(text);
3399
       this.$emit('changeImageingInspect', text)
3404
       this.$emit('changeImageingInspect', text)
3400
     },
3405
     },
3401
     changeTreatmentPlanning() {
3406
     changeTreatmentPlanning() {
@@ -3561,7 +3566,6 @@ export default {
3561
       })
3566
       })
3562
         .then(async () => {
3567
         .then(async () => {
3563
           let obj = {}
3568
           let obj = {}
3564
-          console.log(this.tagList,'this.allList');
3565
           if (this.updateId) {
3569
           if (this.updateId) {
3566
             this.tagList.forEach((item) => {
3570
             this.tagList.forEach((item) => {
3567
                 item.toothPosition = item.toothPosition
3571
                 item.toothPosition = item.toothPosition
@@ -3589,6 +3593,7 @@ export default {
3589
                 treatmentPlanningContent: this.treatmentPlanningContent,
3593
                 treatmentPlanningContent: this.treatmentPlanningContent,
3590
                 disposeContent: this.disposeContent,
3594
                 disposeContent: this.disposeContent,
3591
                 noteContent: this.noteContent,
3595
                 noteContent: this.noteContent,
3596
+                imageInspectContent: this.imageInspectContent,
3592
                 diagnosisContent: this.diagnosisContent,
3597
                 diagnosisContent: this.diagnosisContent,
3593
                 doctorPastHistory: this.allList[0].patientPastHistory,
3598
                 doctorPastHistory: this.allList[0].patientPastHistory,
3594
                 doctorFamilyHistory: this.allList[0].patientFamilyHistory,
3599
                 doctorFamilyHistory: this.allList[0].patientFamilyHistory,
@@ -3610,6 +3615,7 @@ export default {
3610
                 treatmentPlanningContent: this.treatmentPlanningContent,
3615
                 treatmentPlanningContent: this.treatmentPlanningContent,
3611
                 disposeContent: this.disposeContent,
3616
                 disposeContent: this.disposeContent,
3612
                 noteContent: this.noteContent,
3617
                 noteContent: this.noteContent,
3618
+                imageInspectContent: this.imageInspectContent,
3613
                 diagnosisContent: this.diagnosisContent,
3619
                 diagnosisContent: this.diagnosisContent,
3614
                 toothList: this.tagList,
3620
                 toothList: this.tagList,
3615
                 id: this.updateId
3621
                 id: this.updateId
@@ -3622,8 +3628,6 @@ export default {
3622
             this.allList = []
3628
             this.allList = []
3623
             this.$message.success(`${status==1?'保存':'提交'}成功!`)
3629
             this.$message.success(`${status==1?'保存':'提交'}成功!`)
3624
           } else {
3630
           } else {
3625
-            console.log(this.allList, 'this.allList')
3626
-            console.log(this.tagList, 'this.tagList')
3627
             // let arr = []
3631
             // let arr = []
3628
             // this.allList.forEach((item) => {
3632
             // this.allList.forEach((item) => {
3629
             //   arr.push({
3633
             //   arr.push({
@@ -3649,8 +3653,6 @@ export default {
3649
             })
3653
             })
3650
 
3654
 
3651
             if (this.visitType === 1) {
3655
             if (this.visitType === 1) {
3652
-              console.log(this.allList[0],"this.allList[0]");
3653
-              console.log(this.allList[0].patientPastHistory,"this.allList[0].patientPastHistory");
3654
               obj = {
3656
               obj = {
3655
                 patientId: this.ids,
3657
                 patientId: this.ids,
3656
                 status,
3658
                 status,
@@ -3664,6 +3666,7 @@ export default {
3664
                 treatmentPlanningContent: this.treatmentPlanningContent,
3666
                 treatmentPlanningContent: this.treatmentPlanningContent,
3665
                 disposeContent: this.disposeContent,
3667
                 disposeContent: this.disposeContent,
3666
                 noteContent: this.noteContent,
3668
                 noteContent: this.noteContent,
3669
+                imageInspectContent: this.imageInspectContent,
3667
                 diagnosisContent: this.diagnosisContent,
3670
                 diagnosisContent: this.diagnosisContent,
3668
                 doctorPastHistory: this.allList[0].patientPastHistory,
3671
                 doctorPastHistory: this.allList[0].patientPastHistory,
3669
                 doctorFamilyHistory: this.allList[0].patientFamilyHistory,
3672
                 doctorFamilyHistory: this.allList[0].patientFamilyHistory,
@@ -3684,6 +3687,7 @@ export default {
3684
                 treatmentPlanningContent: this.treatmentPlanningContent,
3687
                 treatmentPlanningContent: this.treatmentPlanningContent,
3685
                 disposeContent: this.disposeContent,
3688
                 disposeContent: this.disposeContent,
3686
                 noteContent: this.noteContent,
3689
                 noteContent: this.noteContent,
3690
+                imageInspectContent: this.imageInspectContent,
3687
                 diagnosisContent: this.diagnosisContent,
3691
                 diagnosisContent: this.diagnosisContent,
3688
                 toothList: this.tagList
3692
                 toothList: this.tagList
3689
               }
3693
               }