Browse Source

车辆费用报销管理-打印

jbb 1 year ago
parent
commit
f531b29d3d
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/views/oa/CarfareDetailList.vue

+ 8 - 0
src/views/oa/CarfareDetailList.vue

@@ -120,6 +120,8 @@
         <span slot="action" slot-scope="text, record">
           <a @click="handleEdit(record)">编辑</a>
 
+          <a-divider type="vertical" />
+          
           <a-divider type="vertical" />
           <a-dropdown>
             <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
@@ -261,6 +263,8 @@
                   (
                   <span>
                   <a id="btn"  onClick={() => this.handleEdit(row.cdCarfareId)}>编辑   </a>
+                    <a-divider type="vertical" />
+                    <a onClick={()=>this.print(row)}>打印</a>
                     <a-divider type="vertical" />
                     <a-popconfirm title="确定删除吗?" onConfirm={() => this.handleDelete(row.cdCarfareId)} placement="topRight">
                          <a>删除</a>
@@ -291,6 +295,10 @@
     methods: {
       initDictConfig(){
       },
+      print(record){
+        var printMouldUrl = 'http://172.18.91.36:8081/jeecg-boot/jmreport/shareView/834582982537072640'+'?id='+record.cdCarfareId
+        window.open(printMouldUrl)
+      },
       handleMultiAdd: function () {
         this.$refs.multiAddModalForm.add();
         this.$refs.multiAddModalForm.title = "新增";