浏览代码

25 3月19 打印单

yq1 3 周前
父节点
当前提交
6a9164757b

+ 21 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_eightyTwo.vue 查看文件

@@ -999,13 +999,32 @@ export default {
999 999
               this.records[recordIndex].advices.push(item);
1000 1000
             }
1001 1001
           }
1002
-          console.log(this.records, "this.records");
1002
+          
1003 1003
           // this.records.forEach(o => {
1004 1004
           //   console.log(o,'jj')
1005 1005
           //   this.blood_access_part_opera_name = this.bloodAccessParOperaName(
1006 1006
           //   o.assessment_before_dislysis.blood_access_part_opera_id)
1007 1007
           // })
1008
-
1008
+          // const advice = []
1009
+          if(this.records.length>0){
1010
+            console.log(this.records, "this.records");
1011
+            for(let x in this.records){
1012
+              
1013
+              if(this.records[x].his_advices.length>0){
1014
+                console.log(this.records, "this.records");
1015
+                const arr = this.records[x].his_advices
1016
+                for(let i in arr ){
1017
+                  if(arr[i].delivery_way == '口服' || 
1018
+                    arr[i].delivery_way == '中药口服' ||
1019
+                    arr[i].delivery_way == '舌下含服'
1020
+                  ){
1021
+                    arr.splice(i,1)
1022
+                  }
1023
+                }
1024
+              }
1025
+              // this.records[x].his_advices =advice
1026
+            }
1027
+          }
1009 1028
           this.operators = resp.data.medical_staffs;
1010 1029
           if (this.operators.length > 0) {
1011 1030
             var operatorsLen = this.operators.length;

+ 10 - 1
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue 查看文件

@@ -1162,7 +1162,16 @@ export default {
1162 1162
           this.assessmentafter = response.data.data.assessmentAfterDislysis
1163 1163
           console.log('上次透后体重', this.assessmentafter)
1164 1164
           var doctorAdevieInfo = response.data.data.advices
1165
-          var tableAdvice = doctorAdevieInfo
1165
+          console.log('var tableAdvice',tableAdvice);
1166
+          var tableAdvice = []
1167
+          for(let i in doctorAdevieInfo){
1168
+            if(doctorAdevieInfo[i].delivery_way != '口服' && 
1169
+            doctorAdevieInfo[i].delivery_way != '中药口服' &&
1170
+            doctorAdevieInfo[i].delivery_way != '舌下含服'){
1171
+              tableAdvice.push(doctorAdevieInfo[i]) 
1172
+            }
1173
+          }
1174
+          
1166 1175
           if (tableAdvice.length === 0) {
1167 1176
             var obj = { advice_name: '', start_time: '' }
1168 1177
             var obj1 = { advice_name: '', start_time: '' }