28169 9 månader sedan
förälder
incheckning
5c8ab9ec26
1 ändrade filer med 18 tillägg och 13 borttagningar
  1. 18 13
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyNine.vue

+ 18 - 13
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyNine.vue Visa fil

@@ -843,21 +843,26 @@ export default {
843 843
                tableAdvice.push(doctorAdevieInfo[i])
844 844
              }
845 845
           }
846
-          console.log("医嘱天天吞吞吐吐",this.tableAdvice)
847
-          if(this.tableAdvice!=null && this.tableAdvice.length >0){
848
-            if (tableAdvice.length <= 8) {
849
-              const length = 8 - tableAdvice.length
850
-              var obj = { advice_name: '', start_time: '' }
851
-              for (i = 0; i < length; i++) {
852
-                console.log(1)
853
-                tableAdvice.push(obj)
854
-              }
855
-
856
-             this.tableAdvice = tableAdvice
857
-            }else{
858
-              this.tableAdvice = tableAdvice
846
+        
847
+          if (tableAdvice!=null&&tableAdvice.length <= 8) {
848
+            console.log("hahhah1")
849
+            const length = 8 - tableAdvice.length
850
+            var obj = { advice_name: '', start_time: '' }
851
+            for (i = 0; i < length; i++) {
852
+              console.log(1)
853
+              tableAdvice.push(obj)
854
+            }
855
+            this.tableAdvice = tableAdvice
856
+          }else{
857
+            console.log("hahhah2")
858
+            const length = 8
859
+            var obj = { advice_name: '', start_time: '' }
860
+            for (i = 0; i < length; i++) {
861
+              console.log(1)
862
+              this.tableAdvice.push(obj)
859 863
             }
860 864
           }
865
+          
861 866
         
862 867
           console.log("tableAdvice", this.tableAdvice);
863 868
           this.afterdialysis = response.data.data.AssessmentAfterDislysis;