Просмотр исходного кода

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

csx 5 лет назад
Родитель
Сommit
5ca09edf26

+ 1 - 1
src/api/dialysis.js Просмотреть файл

@@ -158,7 +158,7 @@ export function postSoulution(params) {
158 158
     url: '/api/dialysis/soulution',
159 159
     method: 'Post',
160 160
     params: params,
161
-    headers:{"Permission":3},
161
+    headers:{"Permission":2},
162 162
 
163 163
   })
164 164
 }

+ 5 - 3
src/api/patient.js Просмотреть файл

@@ -62,7 +62,7 @@ export function createPatientDialysisSolution(id, solution,mode) {
62 62
     url: '/api/patients/dialysissolution/create?patient=' + id +"&mode="+mode,
63 63
     method: 'post',
64 64
     data: solution,
65
-    headers:{"Permission":2},
65
+    headers:{"Permission":3},
66 66
 
67 67
 
68 68
   })
@@ -73,7 +73,7 @@ export function editPatientDialysisSolution(patient, id, solution,mode) {
73 73
     url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id+"&mode="+mode,
74 74
     method: 'put',
75 75
     data: solution,
76
-    headers:{"Permission":2},
76
+    headers:{"Permission":3},
77 77
 
78 78
   })
79 79
 }
@@ -317,7 +317,9 @@ export function UpdateDryWeightData(params) {
317 317
   return request({
318 318
     url: '/api/patient/updatedryweightdata',
319 319
     method: 'Post',
320
-    params: params
320
+    params: params,
321
+    headers:{"Permission":3},
322
+
321 323
   })
322 324
 }
323 325
 

+ 11 - 5
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Просмотреть файл

@@ -12,10 +12,6 @@
12 12
                    >
13 13
           新增医嘱
14 14
         </el-button>
15
-        <el-button round @click="openGroupFrom" :loading="deleLoading"
16
-                   disabled>新增医嘱
17
-        </el-button>
18
-
19 15
 
20 16
         <el-button v-if="currentRow != null" round
21 17
                    @click="execAdvice" :loading="deleLoading">执行医嘱
@@ -1028,6 +1024,7 @@
1028 1024
           cancelButtonText: '取消',
1029 1025
           type: 'warning'
1030 1026
         }).then(() => {
1027
+          console.log(this.currentRow)
1031 1028
           let mode ="4"
1032 1029
           if(this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id){
1033 1030
             mode = "5"
@@ -1065,7 +1062,13 @@
1065 1062
           type: 'warning'
1066 1063
         }).then(() => {
1067 1064
           this.deleLoading = true
1068
-          let mode = "4"
1065
+
1066
+
1067
+          let mode ="4"
1068
+          if(this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id) {
1069
+            mode = "5"
1070
+          }
1071
+
1069 1072
           DeleteDoctorAdvice(this.currentRow.id,mode).then(response => {
1070 1073
             this.deleLoading = false
1071 1074
             if (response.data.state == 0) {
@@ -1100,6 +1103,9 @@
1100 1103
         }).then(() => {
1101 1104
           this.deleLoading = true
1102 1105
           let mode ="4"
1106
+          if(this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id) {
1107
+            mode = "5"
1108
+          }
1103 1109
           DeleteDoctorAdvice(this.currentRow.id,mode).then(response => {
1104 1110
             this.deleLoading = false
1105 1111
             if (response.data.state == 0) {

+ 1 - 0
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue Просмотреть файл

@@ -1706,6 +1706,7 @@ export default {
1706 1706
           return false
1707 1707
         }
1708 1708
 
1709
+        console.log(groups[0].advice_doctor)
1709 1710
         this.adminusername = this.getXuserName(groups[0].advice_doctor)
1710 1711
         this.groupForm = {
1711 1712
           advice_type: groups[0].advice_type,

+ 3 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Просмотреть файл

@@ -1058,6 +1058,7 @@
1058 1058
             const ParamsQuery = this.dialysisPrescription
1059 1059
             ParamsQuery['patient'] = this.patient.id
1060 1060
             ParamsQuery['record_date'] = this.record_date
1061
+            ParamsQuery['mode'] = 1
1061 1062
             postSoulution(ParamsQuery).then(response => {
1062 1063
               if (response.data.state == 0) {
1063 1064
                 this.$message.error(response.data.msg)
@@ -1160,6 +1161,8 @@
1160 1161
             const ParamsQuery = this.dialysisPrescription
1161 1162
             ParamsQuery['patient'] = this.patient.id
1162 1163
             ParamsQuery['record_date'] = this.record_date
1164
+            ParamsQuery['mode'] = 1
1165
+
1163 1166
             postSoulution(ParamsQuery).then(response => {
1164 1167
               if (response.data.state == 0) {
1165 1168
                 this.$message.error(response.data.msg)

+ 5 - 1
src/xt_pages/user/dryWeight.vue Просмотреть файл

@@ -159,7 +159,8 @@
159 159
           doctors: this.dryWeightForm.doctors,
160 160
           remarks: this.dryWeightForm.remarks,
161 161
           patient_id: this.patientID,
162
-          dryweight: this.dryweight
162
+          dryweight: this.dryweight,
163
+          mode : "1"
163 164
         }
164 165
 
165 166
         this.$refs[formName].validate((valid) => {
@@ -172,6 +173,9 @@
172 173
                 const id = this.$route.params && this.$route.params.id
173 174
                 this.getAllData(id)
174 175
                 this.getDryWeightData(id)
176
+              }else{
177
+                this.$message.error(response.data.msg)
178
+                return false
175 179
               }
176 180
             })
177 181
           }