|
@@ -56,6 +56,7 @@
|
|
|
<el-button type="info" icon="el-icon-top" size="small" :disabled="detailData.status == 1"
|
|
|
@click.stop="addRow">导入
|
|
|
</el-button>
|
|
|
+ <el-button type="info" icon="el-icon-printer" size="small" @click.stop="openReport()">报表打印</el-button>
|
|
|
</template>
|
|
|
<template slot="oneCode" slot-scope="{ row, index }">
|
|
|
<el-popover placement="right" width="160" trigger="click">
|
|
@@ -75,8 +76,8 @@
|
|
|
:disabled="disabled || detailData.status == 1">{{ row.$cellEdit ? "保存" : "修改" }}</el-button>
|
|
|
<el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)"
|
|
|
:disabled="detailData.status == 1">删除</el-button>
|
|
|
- <el-button size="small" icon="el-icon-printer" type="text" @click="rowPrint(row, index)" :disabled="!row.id">
|
|
|
- 打印</el-button>
|
|
|
+ <!-- <el-button size="small" icon="el-icon-printer" type="text" @click="rowPrint(row, index)" :disabled="!row.id">
|
|
|
+ 打印</el-button> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
@@ -491,8 +492,8 @@ export default {
|
|
|
params.parentId = this.form.id
|
|
|
callback(params)
|
|
|
},
|
|
|
- rowPrint(row){
|
|
|
- this.$router.push(`/myiframe/urlPath?name=preview-木材库-出库单.ureport.xml&src=${this.website.reportUrl}/preview?_u=blade-木材库-出库单.ureport.xml&id=${row.id}`);
|
|
|
+ openReport(){
|
|
|
+ this.$router.push(`/myiframe/urlPath?name=preview-木材库-出库单.ureport.xml&src=${this.website.reportUrl}/preview?_u=blade-木材库-出库单.ureport.xml&id=${this.form.id}`);
|
|
|
},
|
|
|
async saveColumn() {
|
|
|
const inSave = await this.saveColumnData(
|