|
@@ -75,6 +75,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>
|
|
|
</div>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
@@ -344,6 +346,14 @@ export default {
|
|
|
this.pageLoading = false;
|
|
|
});
|
|
|
},
|
|
|
+ rowPrint(row){
|
|
|
+ this.$router.push({
|
|
|
+ path: `/myiframe/urlPath?name=preview-木材管理-入库垛卡.ureport.xml&src=${this.website.reportUrl}/preview?_u=blade-木材管理-入库垛卡`,
|
|
|
+ query: {
|
|
|
+ id:row.id,
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
//修改提交触发
|
|
|
editCustomer(status) {
|
|
|
this.$refs["form"].validate((valid, done) => {
|