From d8c9c10b1c683cc6987b727ec5665cfc44ae5736 Mon Sep 17 00:00:00 2001 From: lty <1179749281@qq.com> Date: Wed, 4 Jan 2023 13:45:06 +0800 Subject: [PATCH] 出入库单打印 --- jeecg-boot-master/ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue | 11 +++++++++++ jeecg-boot-master/ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue | 11 +++++++++++ 2 files changed, 22 insertions(+), 0 deletions(-) diff --git a/jeecg-boot-master/ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue b/jeecg-boot-master/ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue index 23745b2..b2295a8 100644 --- a/jeecg-boot-master/ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue +++ b/jeecg-boot-master/ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue @@ -91,6 +91,7 @@ <!-- 操作按钮区域 --> <div class="table-operator"> + <a-button @click="batchPrint()" type="primary" >打印</a-button> <a-button v-has="'receiptHeader:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> <a-button type="primary" icon="download" @click="handleExportXls('入库表主表')">导出</a-button> <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> @@ -445,6 +446,16 @@ } }); }, + batchPrint() { + if (this.selectedRowKeys.length <= 0) { + this.$message.warning('请选择一条记录!'); + return; + } else { + var ids = ""; + ids = this.selectedRowKeys[0]; + window.open(window._CONFIG['domianURL']+"/jmreport/view/770158201506447360/?id="+ids, "newWindow", "toolbar=no,scrollbars=no,menubar=no,screenX=100,screenY=100"); + } + }, solutionCompany(value) { var actions = [] Object.keys(this.companyList).some((key) => { diff --git a/jeecg-boot-master/ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue b/jeecg-boot-master/ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue index 9932d27..a7c556a 100644 --- a/jeecg-boot-master/ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue +++ b/jeecg-boot-master/ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue @@ -96,6 +96,7 @@ <!-- 操作按钮区域 --> <div class="table-operator"> + <a-button @click="batchPrint()" type="primary" >打印</a-button> <a-button v-has="'shipmentHeader:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> <a-button type="primary" icon="download" @click="handleExportXls('出库单')">导出</a-button> <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> @@ -402,6 +403,16 @@ } }); }, + batchPrint() { + if (this.selectedRowKeys.length <= 0) { + this.$message.warning('请选择一条记录!'); + return; + } else { + var ids = ""; + ids = this.selectedRowKeys[0]; + window.open(window._CONFIG['domianURL']+"/jmreport/view/770140222517493760/?id="+ids, "newWindow", "toolbar=no,scrollbars=no,menubar=no,screenX=100,screenY=100"); + } + }, solutionCompany(value) { var actions = [] Object.keys(this.companyList).some((key) => { -- libgit2 0.22.2