Commit d8c9c10b1c683cc6987b727ec5665cfc44ae5736
1 parent
79d10fb6
出入库单打印
Showing
2 changed files
with
22 additions
and
0 deletions
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue
... | ... | @@ -91,6 +91,7 @@ |
91 | 91 | |
92 | 92 | <!-- 操作按钮区域 --> |
93 | 93 | <div class="table-operator"> |
94 | + <a-button @click="batchPrint()" type="primary" >打印</a-button> | |
94 | 95 | <a-button v-has="'receiptHeader:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
95 | 96 | <a-button type="primary" icon="download" @click="handleExportXls('入库表主表')">导出</a-button> |
96 | 97 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
... | ... | @@ -445,6 +446,16 @@ |
445 | 446 | } |
446 | 447 | }); |
447 | 448 | }, |
449 | + batchPrint() { | |
450 | + if (this.selectedRowKeys.length <= 0) { | |
451 | + this.$message.warning('请选择一条记录!'); | |
452 | + return; | |
453 | + } else { | |
454 | + var ids = ""; | |
455 | + ids = this.selectedRowKeys[0]; | |
456 | + window.open(window._CONFIG['domianURL']+"/jmreport/view/770158201506447360/?id="+ids, "newWindow", "toolbar=no,scrollbars=no,menubar=no,screenX=100,screenY=100"); | |
457 | + } | |
458 | + }, | |
448 | 459 | solutionCompany(value) { |
449 | 460 | var actions = [] |
450 | 461 | Object.keys(this.companyList).some((key) => { |
... | ... |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue
... | ... | @@ -96,6 +96,7 @@ |
96 | 96 | |
97 | 97 | <!-- 操作按钮区域 --> |
98 | 98 | <div class="table-operator"> |
99 | + <a-button @click="batchPrint()" type="primary" >打印</a-button> | |
99 | 100 | <a-button v-has="'shipmentHeader:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
100 | 101 | <a-button type="primary" icon="download" @click="handleExportXls('出库单')">导出</a-button> |
101 | 102 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
... | ... | @@ -402,6 +403,16 @@ |
402 | 403 | } |
403 | 404 | }); |
404 | 405 | }, |
406 | + batchPrint() { | |
407 | + if (this.selectedRowKeys.length <= 0) { | |
408 | + this.$message.warning('请选择一条记录!'); | |
409 | + return; | |
410 | + } else { | |
411 | + var ids = ""; | |
412 | + ids = this.selectedRowKeys[0]; | |
413 | + window.open(window._CONFIG['domianURL']+"/jmreport/view/770140222517493760/?id="+ids, "newWindow", "toolbar=no,scrollbars=no,menubar=no,screenX=100,screenY=100"); | |
414 | + } | |
415 | + }, | |
405 | 416 | solutionCompany(value) { |
406 | 417 | var actions = [] |
407 | 418 | Object.keys(this.companyList).some((key) => { |
... | ... |