Ver código fonte

预算费用管理-打印

jbb 1 ano atrás
pai
commit
a3b7b2ee3b
1 arquivos alterados com 7 adições e 1 exclusões
  1. 7 1
      src/views/oa/BudgetCostList.vue

+ 7 - 1
src/views/oa/BudgetCostList.vue

@@ -284,7 +284,7 @@
           {
             title: '操作',
             dataIndex: 'action',
-            width:100,
+            width:150,
             align:"center",
             fixed: 'right',
             customRender: (value, row, index) => {
@@ -294,6 +294,8 @@
                   <span>
                   <a id="btn"  onClick={() => this.handleEdit(row)}>编辑   </a>
                     <a-divider type="vertical" />
+                  <a id="btn"  onClick={() => this.print(row)}>打印 </a>
+                    <a-divider type="vertical" />
                     <a-popconfirm title="确定删除吗?" onConfirm={() => this.handleDelete(row.id)} placement="topRight">
                          <a>删除</a>
                        </a-popconfirm>
@@ -329,6 +331,10 @@
           this.yearShowOne = true;
         }
       },
+      print(row){
+        var printMouldUrl = 'http://172.18.91.36:8081/jeecg-boot/jmreport/shareView/834329134622920704'+'?id='+row.id
+        window.open(printMouldUrl)
+       },
       // 得到年份选择器的值
       panelChangeOne(value) {
         this.yearShowOne = false;