See999 5 years ago
parent
commit
8dcc56e92e

File diff suppressed because it is too large
+ 2231 - 2194
src/xt_pages/dialysis/batch_print/batch_print_order_nine.vue


+ 29 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue View File

@@ -2700,6 +2700,35 @@ export default {
2700 2700
           for (let index = 0; index < this.doctor_advices.length; index++) {
2701 2701
             this.doctor_advices[index]["isShow"] = 2;
2702 2702
           }
2703
+          if (this.doctor_advices.length === 0) {
2704
+            var obj = { advice_name: "", start_time: "" };
2705
+            var obj1 = { advice_name: "", start_time: "" };
2706
+            var obj2 = { advice_name: "", start_time: "" };
2707
+            var obj3 = { advice_name: "", start_time: "" };
2708
+            this.doctor_advices.push(obj);
2709
+            this.doctor_advices.push(obj1);
2710
+            this.doctor_advices.push(obj2);
2711
+            this.doctor_advices.push(obj3);
2712
+          }
2713
+          if (this.doctor_advices.length === 1) {
2714
+            var obj = { advice_name: "", start_time: "" };
2715
+            var obj1 = { advice_name: "", start_time: "" };
2716
+            var obj2 = { advice_name: "", start_time: "" };
2717
+            this.doctor_advices.push(obj);
2718
+            this.doctor_advices.push(obj1);
2719
+            this.doctor_advices.push(obj2);
2720
+          }
2721
+          if (this.doctor_advices.length === 2) {
2722
+            var obj = { advice_name: "", start_time: "" };
2723
+            var obj1 = { advice_name: "", start_time: "" };
2724
+            this.doctor_advices.push(obj);
2725
+            this.doctor_advices.push(obj1);
2726
+          }
2727
+          if (this.doctor_advices.length === 3) {
2728
+            // eslint-disable-next-line no-redeclare
2729
+            var obj = { advice_name: "", start_time: "" };
2730
+            this.doctor_advices.push(obj);
2731
+          }
2703 2732
 
2704 2733
           if (this.doctor_advices.length > 0) {
2705 2734
             var group = this.newAdviceGroupObject();

+ 29 - 0
src/xt_pages/dialysis/template/dialysisPrintOrderNine.vue View File

@@ -2700,6 +2700,35 @@ export default {
2700 2700
           for (let index = 0; index < this.doctor_advices.length; index++) {
2701 2701
             this.doctor_advices[index]["isShow"] = 2;
2702 2702
           }
2703
+          if (this.doctor_advices.length === 0) {
2704
+            var obj = { advice_name: "", start_time: "" };
2705
+            var obj1 = { advice_name: "", start_time: "" };
2706
+            var obj2 = { advice_name: "", start_time: "" };
2707
+            var obj3 = { advice_name: "", start_time: "" };
2708
+            this.doctor_advices.push(obj);
2709
+            this.doctor_advices.push(obj1);
2710
+            this.doctor_advices.push(obj2);
2711
+            this.doctor_advices.push(obj3);
2712
+          }
2713
+          if (this.doctor_advices.length === 1) {
2714
+            var obj = { advice_name: "", start_time: "" };
2715
+            var obj1 = { advice_name: "", start_time: "" };
2716
+            var obj2 = { advice_name: "", start_time: "" };
2717
+            this.doctor_advices.push(obj);
2718
+            this.doctor_advices.push(obj1);
2719
+            this.doctor_advices.push(obj2);
2720
+          }
2721
+          if (this.doctor_advices.length === 2) {
2722
+            var obj = { advice_name: "", start_time: "" };
2723
+            var obj1 = { advice_name: "", start_time: "" };
2724
+            this.doctor_advices.push(obj);
2725
+            this.doctor_advices.push(obj1);
2726
+          }
2727
+          if (this.doctor_advices.length === 3) {
2728
+            // eslint-disable-next-line no-redeclare
2729
+            var obj = { advice_name: "", start_time: "" };
2730
+            this.doctor_advices.push(obj);
2731
+          }
2703 2732
 
2704 2733
           if (this.doctor_advices.length > 0) {
2705 2734
             var group = this.newAdviceGroupObject();