Kaynağa Gözat

hah阿凡达

28169 1 ay önce
ebeveyn
işleme
e42380c283

+ 12 - 6
src/api/advice.js Dosyayı Görüntüle

377
 
377
 
378
 export function CreateNewGroupAdvice(id, groupno, advices, mode) {
378
 export function CreateNewGroupAdvice(id, groupno, advices, mode) {
379
   console.log("advices2332332233w",advices)
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
   if (advices.remind > 0) {
386
   if (advices.remind > 0) {
381
     return request({
387
     return request({
382
       url:
388
       url:
388
         mode,
394
         mode,
389
       method: 'post',
395
       method: 'post',
390
       data: advices,
396
       data: advices,
391
-      headers: {
392
-        Permission: 3
393
-      }
397
+      // headers: {
398
+      //   Permission: 3
399
+      // }
394
     })
400
     })
395
   } else {
401
   } else {
396
     return request({
402
     return request({
403
         mode,
409
         mode,
404
       method: 'post',
410
       method: 'post',
405
       data: advices,
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 Dosyayı Görüntüle

1728
         align="right"
1728
         align="right"
1729
         @size-change="handleSizeChange"
1729
         @size-change="handleSizeChange"
1730
         @current-change="handleCurrentChange"
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
         :page-size="10"
1732
         :page-size="10"
1733
         background
1733
         background
1734
         style="margin-top:20px;"
1734
         style="margin-top:20px;"

+ 2 - 1
src/xt_pages/dialysis/details/assessmentAfter.vue Dosyayı Görüntüle

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

+ 0 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Dosyayı Görüntüle

1311
             data["last_after_weight"] = ""
1311
             data["last_after_weight"] = ""
1312
           }
1312
           }
1313
           if(ParamsQuery.weight_loss == 0){
1313
           if(ParamsQuery.weight_loss == 0){
1314
-
1315
              ParamsQuery.weight_loss = (this.predialysis_evaluation.weight_before - this.form.weight_after).toFixed(1)
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 Dosyayı Görüntüle

392
             "
392
             "
393
           >
393
           >
394
             <template slot-scope="scope">
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
                 scope.row.ultrafiltration_volume
397
                 scope.row.ultrafiltration_volume
398
                   ? scope.row.ultrafiltration_volume
398
                   ? scope.row.ultrafiltration_volume
399
                   : "0"
399
                   : "0"
400
               }}
400
               }}
401
               </span>
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
                 scope.row.ultrafiltration_volume
404
                 scope.row.ultrafiltration_volume
405
                   ? scope.row.ultrafiltration_volume
405
                   ? scope.row.ultrafiltration_volume

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue Dosyayı Görüntüle

94
           <td v-if="isShow('跨膜压')"> {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }} </td>
94
           <td v-if="isShow('跨膜压')"> {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }} </td>
95
           <td v-if="isShow('跨膜压1')"> {{ monitor.transmembrane_pressure_one ? monitor.transmembrane_pressure_one : "/" }} </td>
95
           <td v-if="isShow('跨膜压1')"> {{ monitor.transmembrane_pressure_one ? monitor.transmembrane_pressure_one : "/" }} </td>
96
           <td v-if="isShow('超滤量')"> 
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
           </td>
99
           </td>
100
           <td v-if="isShow('超滤量1')"> 
100
           <td v-if="isShow('超滤量1')"> 
101
             {{ monitor.ultrafiltration_volume_one ? monitor.ultrafiltration_volume_one : "/" }}
101
             {{ monitor.ultrafiltration_volume_one ? monitor.ultrafiltration_volume_one : "/" }}

+ 6 - 1
src/xt_pages/dialysis/details/index.vue Dosyayı Görüntüle

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

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Dosyayı Görüntüle

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

+ 52 - 1
src/xt_pages/user/components/EditGroupAdvice.vue Dosyayı Görüntüle

1003
               }
1003
               }
1004
             }
1004
             }
1005
             console.log("编辑",submitForm)
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
             EditNewDoctorAdvice(
1012
             EditNewDoctorAdvice(
1007
               this.patientID,
1013
               this.patientID,
1008
               this.groupSelectRow.id,
1014
               this.groupSelectRow.id,
1151
                 remark:_this.groupForm.push_start_time,
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
               let mode = "";
1167
               let mode = "";
1155
               if (_this.groupForm.advice_type == 1) {
1168
               if (_this.groupForm.advice_type == 1) {
1156
                 mode = "1-2";
1169
                 mode = "1-2";
1158
                 mode = "1-1";
1171
                 mode = "1-1";
1159
               }
1172
               }
1160
               console.log("submitFort",submitForm)
1173
               console.log("submitFort",submitForm)
1174
+
1175
+
1161
               CreateNewDoctorAdvice(this.patientID, submitForm, mode).then(
1176
               CreateNewDoctorAdvice(this.patientID, submitForm, mode).then(
1162
                 response => {
1177
                 response => {
1163
                   if (response.data.state == 0) {
1178
                   if (response.data.state == 0) {
1164
                     this.$message.error(response.data.msg);
1179
                     this.$message.error(response.data.msg);
1165
                     return false;
1180
                     return false;
1166
                   } else {
1181
                   } else {
1182
+                    this.nameFormVisible = false
1167
                     this.$notify({
1183
                     this.$notify({
1168
                       title: "成功",
1184
                       title: "成功",
1169
                       message: "新增医嘱成功",
1185
                       message: "新增医嘱成功",
1281
                 mode = "1-1";
1297
                 mode = "1-1";
1282
               }
1298
               }
1283
               console.log("触发了吗",_this.patientID,_this.submitGroupForm)
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
               CreateNewGroupAdvice(_this.patientID, _this.groupForm.groupno,_this.submitGroupForm, mode).then(response => {
1306
               CreateNewGroupAdvice(_this.patientID, _this.groupForm.groupno,_this.submitGroupForm, mode).then(response => {
1285
 
1307
 
1286
                 if (response.data.state == 0) {
1308
                 if (response.data.state == 0) {
1910
         mode = "1-1";
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
       CreateNewGroupAdvice(
1944
       CreateNewGroupAdvice(
1914
         this.patientID,
1945
         this.patientID,
1915
         this.groupForm.groupno,
1946
         this.groupForm.groupno,
2123
               mode = "1-1";
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
             CreateNewGroupAdvice(
2164
             CreateNewGroupAdvice(
2127
               _this.patientID,
2165
               _this.patientID,
2128
               _this.groupForm.groupno,
2166
               _this.groupForm.groupno,
2516
       },
2554
       },
2517
       handleSelect(val){
2555
       handleSelect(val){
2518
          console.log("val233333333333",val)
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
        this.drug_id = val.drug_id
2567
        this.drug_id = val.drug_id
2520
         this.nameForm.drug_id = val.drug_id
2568
         this.nameForm.drug_id = val.drug_id
2521
         this.nameForm.way = 1
2569
         this.nameForm.way = 1
2527
         this.nameForm.prescribing_number = tmp.prescribing_number//开药数量
2575
         this.nameForm.prescribing_number = tmp.prescribing_number//开药数量
2528
         this.nameForm.prescribing_number_unit = tmp.prescribing_number_unit
2576
         this.nameForm.prescribing_number_unit = tmp.prescribing_number_unit
2529
         this.nameForm.single_dose = tmp.single_dose//单次用量
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
         this.nameForm.delivery_way = tmp.delivery_way//给药途径
2579
         this.nameForm.delivery_way = tmp.delivery_way//给药途径
2532
         this.nameForm.execution_frequency = tmp.execution_frequency//执行频率
2580
         this.nameForm.execution_frequency = tmp.execution_frequency//执行频率
2533
         this.nameForm.drug_id = tmp.id
2581
         this.nameForm.drug_id = tmp.id
2582
+        this.nameForm.drug_name_id = tmp.id
2583
+       
2584
+
2534
       },
2585
       },
2535
 
2586
 
2536
        querySearch(queryString, cb) {
2587
        querySearch(queryString, cb) {

+ 38 - 1
src/xt_pages/user/dialysisRecordPrint.vue Dosyayı Görüntüle

140
           }
140
           }
141
           return symptom
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
         getMonitorSymptomResult(val){
164
         getMonitorSymptomResult(val){
144
             var result = ""
165
             var result = ""
145
           if(val!=null && val.length>0){
166
           if(val!=null && val.length>0){
177
            getSchedualPatient(params).then(response=>{
198
            getSchedualPatient(params).then(response=>{
178
              if(response.data.state == 1){
199
              if(response.data.state == 1){
179
                 var schedule =  response.data.data.schedule
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 Dosyayı Görüntüle

12
 
12
 
13
 router.beforeEach((to, from, next) => {
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
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))