浏览代码

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

csx 5 年前
父节点
当前提交
5ca09edf26

+ 1 - 1
src/api/dialysis.js 查看文件

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

+ 5 - 3
src/api/patient.js 查看文件

62
     url: '/api/patients/dialysissolution/create?patient=' + id +"&mode="+mode,
62
     url: '/api/patients/dialysissolution/create?patient=' + id +"&mode="+mode,
63
     method: 'post',
63
     method: 'post',
64
     data: solution,
64
     data: solution,
65
-    headers:{"Permission":2},
65
+    headers:{"Permission":3},
66
 
66
 
67
 
67
 
68
   })
68
   })
73
     url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id+"&mode="+mode,
73
     url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id+"&mode="+mode,
74
     method: 'put',
74
     method: 'put',
75
     data: solution,
75
     data: solution,
76
-    headers:{"Permission":2},
76
+    headers:{"Permission":3},
77
 
77
 
78
   })
78
   })
79
 }
79
 }
317
   return request({
317
   return request({
318
     url: '/api/patient/updatedryweightdata',
318
     url: '/api/patient/updatedryweightdata',
319
     method: 'Post',
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
                    >
12
                    >
13
           新增医嘱
13
           新增医嘱
14
         </el-button>
14
         </el-button>
15
-        <el-button round @click="openGroupFrom" :loading="deleLoading"
16
-                   disabled>新增医嘱
17
-        </el-button>
18
-
19
 
15
 
20
         <el-button v-if="currentRow != null" round
16
         <el-button v-if="currentRow != null" round
21
                    @click="execAdvice" :loading="deleLoading">执行医嘱
17
                    @click="execAdvice" :loading="deleLoading">执行医嘱
1028
           cancelButtonText: '取消',
1024
           cancelButtonText: '取消',
1029
           type: 'warning'
1025
           type: 'warning'
1030
         }).then(() => {
1026
         }).then(() => {
1027
+          console.log(this.currentRow)
1031
           let mode ="4"
1028
           let mode ="4"
1032
           if(this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id){
1029
           if(this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id){
1033
             mode = "5"
1030
             mode = "5"
1065
           type: 'warning'
1062
           type: 'warning'
1066
         }).then(() => {
1063
         }).then(() => {
1067
           this.deleLoading = true
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
           DeleteDoctorAdvice(this.currentRow.id,mode).then(response => {
1072
           DeleteDoctorAdvice(this.currentRow.id,mode).then(response => {
1070
             this.deleLoading = false
1073
             this.deleLoading = false
1071
             if (response.data.state == 0) {
1074
             if (response.data.state == 0) {
1100
         }).then(() => {
1103
         }).then(() => {
1101
           this.deleLoading = true
1104
           this.deleLoading = true
1102
           let mode ="4"
1105
           let mode ="4"
1106
+          if(this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id) {
1107
+            mode = "5"
1108
+          }
1103
           DeleteDoctorAdvice(this.currentRow.id,mode).then(response => {
1109
           DeleteDoctorAdvice(this.currentRow.id,mode).then(response => {
1104
             this.deleLoading = false
1110
             this.deleLoading = false
1105
             if (response.data.state == 0) {
1111
             if (response.data.state == 0) {

+ 1 - 0
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue 查看文件

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

+ 3 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

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

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

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