Browse Source

hah阿凡达

28169 3 weeks ago
parent
commit
e42380c283

+ 12 - 6
src/api/advice.js View File

@@ -377,6 +377,12 @@ export function CreateNewDoctorAdvice(id, advice, mode) {
377 377
 
378 378
 export function CreateNewGroupAdvice(id, groupno, advices, mode) {
379 379
   console.log("advices2332332233w",advices)
380
+  if(advices.advice_type == "长期"){
381
+    advices.advice_type =1
382
+  }
383
+  if(advices.advice_type == "临时"){
384
+    advices.advice_type =2
385
+  }
380 386
   if (advices.remind > 0) {
381 387
     return request({
382 388
       url:
@@ -388,9 +394,9 @@ export function CreateNewGroupAdvice(id, groupno, advices, mode) {
388 394
         mode,
389 395
       method: 'post',
390 396
       data: advices,
391
-      headers: {
392
-        Permission: 3
393
-      }
397
+      // headers: {
398
+      //   Permission: 3
399
+      // }
394 400
     })
395 401
   } else {
396 402
     return request({
@@ -403,9 +409,9 @@ export function CreateNewGroupAdvice(id, groupno, advices, mode) {
403 409
         mode,
404 410
       method: 'post',
405 411
       data: advices,
406
-      headers: {
407
-        Permission: 3
408
-      }
412
+      // headers: {
413
+      //   Permission: 3
414
+      // }
409 415
     })
410 416
   }
411 417
 }

+ 1 - 1
src/xt_pages/dialysis/bloodPresssWatch.vue View File

@@ -1728,7 +1728,7 @@
1728 1728
         align="right"
1729 1729
         @size-change="handleSizeChange"
1730 1730
         @current-change="handleCurrentChange"
1731
-        :page-sizes="[20, 40, 60, 80,100,300,500]"
1731
+        :page-sizes="[20, 40, 60, 80,100,300,500,600]"
1732 1732
         :page-size="10"
1733 1733
         background
1734 1734
         style="margin-top:20px;"

+ 2 - 1
src/xt_pages/dialysis/details/assessmentAfter.vue View File

@@ -221,7 +221,8 @@
221 221
 
222 222
         <li v-if="isShow('体重减少')">
223 223
           <label>体重减少 : </label>
224
-          <span class="content" v-if="weight_loss != '0'">{{
224
+          <span class="content" v-if="weight_loss != '0'">
225
+           {{
225 226
             weight_loss
226 227
           }}</span>
227 228
           <span class="unit" v-if="weight_loss != '0'">kg</span>

+ 0 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

@@ -1311,7 +1311,6 @@ export default {
1311 1311
             data["last_after_weight"] = ""
1312 1312
           }
1313 1313
           if(ParamsQuery.weight_loss == 0){
1314
-
1315 1314
              ParamsQuery.weight_loss = (this.predialysis_evaluation.weight_before - this.form.weight_after).toFixed(1)
1316 1315
           }
1317 1316
 

+ 2 - 2
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -392,14 +392,14 @@
392 392
             "
393 393
           >
394 394
             <template slot-scope="scope">
395
-             <span v-if="org_id == 10440 || org_id == 9671 || org_id ==10206 || org_id ==10612 || org_id ==10617 || org_id ==10702 || org_id == 10644">
395
+             <span v-if="org_id == 10440 || org_id == 9671 || org_id ==10206 || org_id ==10612 || org_id ==10617 || org_id ==10702 || org_id == 10644 || org_id == 10744">
396 396
               {{
397 397
                 scope.row.ultrafiltration_volume
398 398
                   ? scope.row.ultrafiltration_volume
399 399
                   : "0"
400 400
               }}
401 401
               </span>
402
-               <span v-if="org_id != 10440 && org_id!=9671 && org_id!=10206 && org_id!=10612 && org_id!=10617 && org_id!=10702 && org_id!=10644">
402
+               <span v-if="org_id != 10440 && org_id!=9671 && org_id!=10206 && org_id!=10612 && org_id!=10617 && org_id!=10702 && org_id!=10644&& org_id!=10744">
403 403
               {{
404 404
                 scope.row.ultrafiltration_volume
405 405
                   ? scope.row.ultrafiltration_volume

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

@@ -94,8 +94,8 @@
94 94
           <td v-if="isShow('跨膜压')"> {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }} </td>
95 95
           <td v-if="isShow('跨膜压1')"> {{ monitor.transmembrane_pressure_one ? monitor.transmembrane_pressure_one : "/" }} </td>
96 96
           <td v-if="isShow('超滤量')"> 
97
-            <span v-if="org_id!=9671 && org_id!=10440 && org_id!=10702 && org_id!=10644">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}  </span> 
98
-            <span v-if="org_id ==9671 || org_id==10440 || org_id == 10702 || org_id == 10644">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "0" }}  </span> 
97
+            <span v-if="org_id!=9671 && org_id!=10440 && org_id!=10702 && org_id!=10644 && org_id!=10744">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}  </span> 
98
+            <span v-if="org_id ==9671 || org_id==10440 || org_id == 10702 || org_id == 10644 || org_id == 10744">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "0" }}  </span> 
99 99
           </td>
100 100
           <td v-if="isShow('超滤量1')"> 
101 101
             {{ monitor.ultrafiltration_volume_one ? monitor.ultrafiltration_volume_one : "/" }}

+ 6 - 1
src/xt_pages/dialysis/details/index.vue View File

@@ -3231,7 +3231,7 @@ export default {
3231 3231
            if(list!=null && list.length>0){
3232 3232
              for(let i=0;i<list.length;i++){
3233 3233
                list[i].order_date =""
3234
-               if(this.org_id ==9538 || this.org_id ==10101||this.org_id ==10353 ){
3234
+               if(this.org_id ==9538 || this.org_id ==10101 || this.org_id ==10353 ){
3235 3235
                   list[i].order_date = this.getOrderTime(list[i].dialysis_date)
3236 3236
                   list[i].schedual_type_name= list[i].schedual_type
3237 3237
                }else{
@@ -3269,10 +3269,15 @@ export default {
3269 3269
       }
3270 3270
     },
3271 3271
     viewDayWork(val){
3272
+
3273
+      console.log("val00000000000000000",val)
3272 3274
       const starttime = moment(this.time_value).format('YYYY-MM-DD')
3273 3275
       console.log('eeeeeeee',starttime);
3274 3276
       const len = (val.target.innerText).split(' ')
3275 3277
       console.log("val33333333333333444",len)
3278
+
3279
+    
3280
+
3276 3281
       if(val.target.innerText == '下个月'){
3277 3282
         this.start_time = moment(this.time_value).startOf('month').format('YYYY-MM-DD')
3278 3283
         this.end_time = moment(this.time_value).endOf('month').format('YYYY-MM-DD')

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -72,9 +72,9 @@
72 72
                 <span v-if="receiverTreatmentAccess.condition != 1">{{
73 73
                   patientInfo.DialysisSchedule.device_zone.name
74 74
                     ? patientInfo.DialysisSchedule.device_zone.name
75
-                    : ""
75
+                    : "/"
76 76
                 }}</span>
77
-                <span>{{ "/" }}</span>
77
+                <span></span>
78 78
               </div>
79 79
             </div>
80 80
             <div class="inline_block" v-if="org_id != 10460 && org_id != 10624">
@@ -100,7 +100,7 @@
100 100
                     }}
101 101
                   </span>
102 102
                 </span>
103
-                <span>{{ "/" }}</span>
103
+                <span></span>
104 104
               </div>
105 105
             </div>
106 106
             <div class="inline_block" v-if="org_id != 10683">

+ 52 - 1
src/xt_pages/user/components/EditGroupAdvice.vue View File

@@ -1003,6 +1003,12 @@ export default {
1003 1003
               }
1004 1004
             }
1005 1005
             console.log("编辑",submitForm)
1006
+            if(_this.groupForm.advice_type=="临时"){
1007
+                 _this.groupForm.advice_type = 2
1008
+              }
1009
+            if(_this.groupForm.advice_type=="长期"){
1010
+                 _this.groupForm.advice_type = 1
1011
+            }
1006 1012
             EditNewDoctorAdvice(
1007 1013
               this.patientID,
1008 1014
               this.groupSelectRow.id,
@@ -1151,6 +1157,13 @@ export default {
1151 1157
                 remark:_this.groupForm.push_start_time,
1152 1158
               };
1153 1159
 
1160
+              if(_this.groupForm.advice_type=="临时"){
1161
+                 _this.groupForm.advice_type = 2
1162
+              }
1163
+              if(_this.groupForm.advice_type=="长期"){
1164
+                 _this.groupForm.advice_type = 1
1165
+              }
1166
+
1154 1167
               let mode = "";
1155 1168
               if (_this.groupForm.advice_type == 1) {
1156 1169
                 mode = "1-2";
@@ -1158,12 +1171,15 @@ export default {
1158 1171
                 mode = "1-1";
1159 1172
               }
1160 1173
               console.log("submitFort",submitForm)
1174
+
1175
+
1161 1176
               CreateNewDoctorAdvice(this.patientID, submitForm, mode).then(
1162 1177
                 response => {
1163 1178
                   if (response.data.state == 0) {
1164 1179
                     this.$message.error(response.data.msg);
1165 1180
                     return false;
1166 1181
                   } else {
1182
+                    this.nameFormVisible = false
1167 1183
                     this.$notify({
1168 1184
                       title: "成功",
1169 1185
                       message: "新增医嘱成功",
@@ -1281,6 +1297,12 @@ export default {
1281 1297
                 mode = "1-1";
1282 1298
               }
1283 1299
               console.log("触发了吗",_this.patientID,_this.submitGroupForm)
1300
+              if(_this.submitNameForm.advice_type == "临时"){
1301
+                 _this.submitNameForm.advice_type =2
1302
+              }
1303
+              if(_this.submitNameForm.advice_type == "长期"){
1304
+                 _this.submitNameForm.advice_type =1
1305
+              }
1284 1306
               CreateNewGroupAdvice(_this.patientID, _this.groupForm.groupno,_this.submitGroupForm, mode).then(response => {
1285 1307
 
1286 1308
                 if (response.data.state == 0) {
@@ -1910,6 +1932,15 @@ export default {
1910 1932
         mode = "1-1";
1911 1933
       }
1912 1934
 
1935
+      if(this.groupForm.advice_type == "临时"){
1936
+          this.groupForm.advice_type =2
1937
+        }
1938
+      if(this.groupForm.advice_type == "长期"){
1939
+        this.groupForm.advice_type =1
1940
+      }
1941
+
1942
+      
1943
+
1913 1944
       CreateNewGroupAdvice(
1914 1945
         this.patientID,
1915 1946
         this.groupForm.groupno,
@@ -2123,6 +2154,13 @@ export default {
2123 2154
               mode = "1-1";
2124 2155
             }
2125 2156
 
2157
+            if(this.groupForm.advice_type == "临时"){
2158
+              this.groupForm.advice_type =2
2159
+            }
2160
+            if(this.groupForm.advice_type == "长期"){
2161
+              this.groupForm.advice_type =1
2162
+            }
2163
+
2126 2164
             CreateNewGroupAdvice(
2127 2165
               _this.patientID,
2128 2166
               _this.groupForm.groupno,
@@ -2516,6 +2554,16 @@ export default {
2516 2554
       },
2517 2555
       handleSelect(val){
2518 2556
          console.log("val233333333333",val)
2557
+         console.log("advice_type ====",this.groupForm.advice_type)
2558
+       if(this.groupForm.advice_type == "临时"){
2559
+         this.nameForm.advice_type = 2
2560
+       } 
2561
+       if(this.groupForm.advice_type == "长期"){
2562
+         this.nameForm.advice_type = 1
2563
+       } 
2564
+       if(this.groupForm.advice_type == "普通"){
2565
+         this.nameForm.advice_type = 4
2566
+       } 
2519 2567
        this.drug_id = val.drug_id
2520 2568
         this.nameForm.drug_id = val.drug_id
2521 2569
         this.nameForm.way = 1
@@ -2527,10 +2575,13 @@ export default {
2527 2575
         this.nameForm.prescribing_number = tmp.prescribing_number//开药数量
2528 2576
         this.nameForm.prescribing_number_unit = tmp.prescribing_number_unit
2529 2577
         this.nameForm.single_dose = tmp.single_dose//单次用量
2530
-        this.nameForm.single_dose_unit = tmp.drug_dose_unit
2578
+        this.nameForm.single_dose_unit = tmp.min_unit
2531 2579
         this.nameForm.delivery_way = tmp.delivery_way//给药途径
2532 2580
         this.nameForm.execution_frequency = tmp.execution_frequency//执行频率
2533 2581
         this.nameForm.drug_id = tmp.id
2582
+        this.nameForm.drug_name_id = tmp.id
2583
+       
2584
+
2534 2585
       },
2535 2586
 
2536 2587
        querySearch(queryString, cb) {

+ 38 - 1
src/xt_pages/user/dialysisRecordPrint.vue View File

@@ -140,6 +140,27 @@
140 140
           }
141 141
           return symptom
142 142
         },
143
+        getMonitorSymptomOne(val){
144
+           
145
+           var symptom = ""
146
+           var is_total = 9
147
+           if(val!=null && val.length>0){
148
+              
149
+             for(let i=0;i<val.length;i++){
150
+                if(val[i].symptom!=""){
151
+                  symptom +=val[i].symptom +","
152
+                  is_total = 8
153
+                }
154
+                
155
+             }
156
+           }
157
+           if(symptom!=""){
158
+             return 1
159
+           }else{
160
+             return 0
161
+           }
162
+           
163
+         },
143 164
         getMonitorSymptomResult(val){
144 165
             var result = ""
145 166
           if(val!=null && val.length>0){
@@ -177,7 +198,23 @@
177 198
            getSchedualPatient(params).then(response=>{
178 199
              if(response.data.state == 1){
179 200
                 var schedule =  response.data.data.schedule
180
-                this.tableDataList = schedule
201
+                 var newArr = []
202
+                 if(schedule!=null && schedule.length >0){
203
+                    for(let i=0;i<schedule.length;i++){
204
+                      schedule[i].symp_str = 0
205
+                      var str = this.getMonitorSymptomOne(schedule[i].monitoring_record)
206
+                      schedule[i].symp_str = str
207
+                    }
208
+                 }
209
+                 console.log("schedule_=====",schedule)
210
+                 for(let i=0;i<schedule.length;i++){
211
+                  console.log("schedule[i].symp_str",schedule[i].symp_str)
212
+                   if(schedule[i].symp_str==1){
213
+                     newArr.push(schedule[i])
214
+                   }
215
+                 }
216
+                console.log("newArr======",newArr)
217
+                this.tableDataList = newArr
181 218
              }
182 219
            })
183 220
         },

+ 13 - 13
src/xt_permission.js View File

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28 28
  // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))