csx 6 年之前
父節點
當前提交
881a625a62
共有 1 個文件被更改,包括 3 次插入21 次删除
  1. 3 21
      src/pages/main/Print.vue

+ 3 - 21
src/pages/main/Print.vue 查看文件

9
 
9
 
10
     <!--<el-button  style="margin-top: 10px;margin-right:100px;float: right" type="primary" icon="el-icon-printer" @click="printThisPage">打印</el-button>-->
10
     <!--<el-button  style="margin-top: 10px;margin-right:100px;float: right" type="primary" icon="el-icon-printer" @click="printThisPage">打印</el-button>-->
11
 
11
 
12
-    <side-bar :active_index="0" v-if="isShow == true"></side-bar>
13
-    <div class="mainContent">
14
 
12
 
15
-      <div class="navigation" v-if="isShow == true">
16
-        <div class="goBack">
17
-          <span class="back" @click="backAction()"><span class="iconfont">&#xe720;</span>返回</span>
18
-
19
-        </div>
20
-
21
-        <div class="print" style="float: right">
22
-          <el-button size="mini" type="primary" icon="el-icon-printer" @click="printThisPage">打印</el-button>
23
-        </div>
24
-
25
-      </div>
26
-
27
-
28
-      <div ref='cvs' id="dialysis-print-box" style="padding-top: 60px">
29
         <div class="dialysis-print-order">
13
         <div class="dialysis-print-order">
30
           <div class="order-yy-name">{{orgname}}</div>
14
           <div class="order-yy-name">{{orgname}}</div>
31
           <div class="order-title">血液净化治疗记录单</div>
15
           <div class="order-title">血液净化治疗记录单</div>
1756
           </table>
1740
           </table>
1757
         </div>
1741
         </div>
1758
 
1742
 
1759
-
1760
       </div>
1743
       </div>
1761
 
1744
 
1762
-    </div>
1763
-  </div>
1764
 </template>
1745
 </template>
1765
 
1746
 
1766
 
1747
 
1863
       };
1844
       };
1864
     },
1845
     },
1865
     methods: {
1846
     methods: {
1847
+      jumpPrint:function(){window.control.gologin("print")},
1866
       getUser() {
1848
       getUser() {
1867
         fetchAllAdminUsers().then(response => {
1849
         fetchAllAdminUsers().then(response => {
1868
           if (response.data.state == 1) {
1850
           if (response.data.state == 1) {
2137
             return false;
2119
             return false;
2138
           }
2120
           }
2139
 
2121
 
2140
-          console.log(this.advices);
2122
+          this.jumpPrint()
2141
         });
2123
         });
2142
       },
2124
       },
2143
 
2125
 
2265
 
2247
 
2266
 <style style="stylesheet/scss" lang="scss" scoped>
2248
 <style style="stylesheet/scss" lang="scss" scoped>
2267
   .dialysis-print-order {
2249
   .dialysis-print-order {
2268
-  width: 960px;
2250
+  width: 100%;
2269
   margin: 0 auto;
2251
   margin: 0 auto;
2270
   .order-yy-name {
2252
   .order-yy-name {
2271
   margin:10px auto 0 auto;
2253
   margin:10px auto 0 auto;