28169 2 vuotta sitten
vanhempi
commit
6bdfac2680
1 muutettua tiedostoa jossa 19 lisäystä ja 2 poistoa
  1. 19 2
      src/xt_pages/management/components/RepairForm.vue

+ 19 - 2
src/xt_pages/management/components/RepairForm.vue Näytä tiedosto

@@ -726,7 +726,8 @@ export default {
726 726
         exclude: "",
727 727
         reason: "",
728 728
         code_information: "",
729
-        image_name: ""
729
+        image_name: "",
730
+        admin_user_id:"",
730 731
       },
731 732
       isIndeterminate: false,
732 733
       checkAllStatus: false,
@@ -754,6 +755,8 @@ export default {
754 755
       limit: 10,
755 756
       page: 1,
756 757
       total: 0,
758
+      hiddenShow:false,
759
+      nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
757 760
     };
758 761
   },
759 762
   methods: {
@@ -1080,7 +1083,21 @@ export default {
1080 1083
       });
1081 1084
     },
1082 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 1103
   created() {