28169 пре 2 година
родитељ
комит
6bdfac2680
1 измењених фајлова са 19 додато и 2 уклоњено
  1. 19 2
      src/xt_pages/management/components/RepairForm.vue

+ 19 - 2
src/xt_pages/management/components/RepairForm.vue Прегледај датотеку

726
         exclude: "",
726
         exclude: "",
727
         reason: "",
727
         reason: "",
728
         code_information: "",
728
         code_information: "",
729
-        image_name: ""
729
+        image_name: "",
730
+        admin_user_id:"",
730
       },
731
       },
731
       isIndeterminate: false,
732
       isIndeterminate: false,
732
       checkAllStatus: false,
733
       checkAllStatus: false,
754
       limit: 10,
755
       limit: 10,
755
       page: 1,
756
       page: 1,
756
       total: 0,
757
       total: 0,
758
+      hiddenShow:false,
759
+      nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
757
     };
760
     };
758
   },
761
   },
759
   methods: {
762
   methods: {
1080
       });
1083
       });
1081
     },
1084
     },
1082
     printCard(){
1085
     printCard(){
1083
-      console.log('sadfgadsf');
1086
+      this.hiddenShow = true;
1087
+      var ptime = Math.round(new Date().getTime() / 1000);
1088
+      this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
1089
+
1090
+      const style =
1091
+        "@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0;font-size:15px } .print_main_content .order_title { text-align: center; font-size: 15px; line-height: 50px;} .print_main_content table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px;font-size:15px } .print_main_content table tbody tr td { border: 1px solid; text-align: center; padding: 10px 8px;font-size:15px } .td_proj_title { font-size: 15px; line-height: 25px;} .td_proj_content { font-size: 15px; line-height: 25px; } .td_align_left { text-align: left; } .print_footnote_panel { font-size: 15px; line-height: 40px; } .print_footnote_panel .proj { display: inline-block; width: 49%; } .print_footnote_panel .proj}";
1092
+
1093
+      setTimeout(() => {
1094
+        printJS({
1095
+          printable: "print-card-info-one",
1096
+          type: "html",
1097
+          style: style,
1098
+          scanStyles: false
1099
+        });
1100
+      }, 1);
1084
     }
1101
     }
1085
   },
1102
   },
1086
   created() {
1103
   created() {