Commit c062b7a1e59f313dab675f99b000ea03b9e7082a

Authored by 肖超群
1 parent 2da642fa

打印功能增加权限

ant-design-vue-jeecg/src/views/system/config/ContainerList.vue
... ... @@ -53,16 +53,16 @@
53 53  
54 54 <!-- 操作按钮区域 -->
55 55 <div class="table-operator">
56   - <a-button @click="batchPrint()" type="primary">打印</a-button>
57 56 <a-button @click="handleAdd" v-has="'container:add'" type="primary" icon="plus">新增</a-button>
58 57 <a-button type="primary" icon="download" @click="handleExportXls('容器管理')">导出</a-button>
59 58 <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
60 59 @change="handleImportExcel">
61 60 <a-button type="primary" icon="import">导入</a-button>
  61 + <a-button v-has="'container:print'" @click="batchPrint()" type="primary">打印</a-button>
62 62 </a-upload>
63 63 <!-- 高级查询区域 -->
64   - <j-super-query :fieldList="superFieldList" ref="superQueryModal"
65   - @handleSuperQuery="handleSuperQuery"></j-super-query>
  64 +<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal"-->
  65 +<!-- @handleSuperQuery="handleSuperQuery"></j-super-query>-->
66 66 <a-dropdown v-if="selectedRowKeys.length > 0">
67 67 <a-menu slot="overlay" v-has="'container:deleteBatch'">
68 68 <a-menu-item key="1" @click="batchDel">
... ...
ant-design-vue-jeecg/src/views/system/config/LocationList.vue
... ... @@ -105,17 +105,17 @@
105 105  
106 106 <!-- 操作按钮区域 -->
107 107 <div class="table-operator">
108   - <a-button @click="batchPrint()" type="primary">打印</a-button>
109 108 <a-button @click="batchAdd()" v-has="'location:batchAdd'" type="primary" icon="plus">批量新增</a-button>
110 109 <a-button v-has="'location:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
111 110 <a-button type="primary" icon="download" @click="handleExportXls('库位管理')">导出</a-button>
112 111 <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
113 112 @change="handleImportExcel">
114 113 <a-button type="primary" icon="import">导入</a-button>
  114 + <a-button v-has="'material:print'" @click="batchPrint()" type="primary">打印</a-button>
115 115 </a-upload>
116 116 <!-- 高级查询区域 -->
117   - <j-super-query :fieldList="superFieldList" ref="superQueryModal"
118   - @handleSuperQuery="handleSuperQuery"></j-super-query>
  117 +<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal"-->
  118 +<!-- @handleSuperQuery="handleSuperQuery"></j-super-query>-->
119 119 <a-dropdown v-if="selectedRowKeys.length > 0">
120 120 <a-menu slot="overlay" v-has="'location:deleteBatch'">
121 121 <a-menu-item key="1" @click="batchDel">
... ...
ant-design-vue-jeecg/src/views/system/config/MaterialList.vue
... ... @@ -38,16 +38,16 @@
38 38  
39 39 <!-- 操作按钮区域 -->
40 40 <div class="table-operator">
41   - <a-button @click="batchPrint()" type="primary">打印</a-button>
42 41 <a-button v-has="'material:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
43 42 <a-button type="primary" icon="download" @click="handleExportXls('物料管理')">导出</a-button>
44 43 <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
45 44 @change="handleImportExcel">
46 45 <a-button type="primary" icon="import">导入</a-button>
  46 + <a-button v-has="'material:print'" @click="batchPrint()" type="primary">打印</a-button>
47 47 </a-upload>
48 48 <!-- 高级查询区域 -->
49   - <j-super-query :fieldList="superFieldList" ref="superQueryModal"
50   - @handleSuperQuery="handleSuperQuery"></j-super-query>
  49 +<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal"-->
  50 +<!-- @handleSuperQuery="handleSuperQuery"></j-super-query>-->
51 51 <a-dropdown v-if="selectedRowKeys.length > 0">
52 52 <a-menu slot="overlay" v-has="'material:deleteBatch'">
53 53 <a-menu-item key="1" @click="batchDel">
... ...
ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue
... ... @@ -99,16 +99,16 @@
99 99  
100 100 <!-- 操作按钮区域 -->
101 101 <div class="table-operator">
102   - <a-button @click="batchPrint()" type="primary">打印</a-button>
103 102 <a-button v-has="'receiptHeader:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button>
104 103 <a-button type="primary" icon="download" @click="handleExportXls('入库表主表')">导出</a-button>
105 104 <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
106 105 @change="handleImportExcel">
107 106 <a-button type="primary" icon="import">导入</a-button>
  107 + <a-button v-has="'receiptHeader:print'"@click="batchPrint()" type="primary">打印</a-button>
108 108 </a-upload>
109 109 <!-- 高级查询区域 -->
110   - <j-super-query :fieldList="superFieldList" ref="superQueryModal"
111   - @handleSuperQuery="handleSuperQuery"></j-super-query>
  110 +<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal"-->
  111 +<!-- @handleSuperQuery="handleSuperQuery"></j-super-query>-->
112 112 </div>
113 113  
114 114 <!-- table区域-begin -->
... ...
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiving/controller/ReceiveController.java
1 1 package org.jeecg.modules.wms.receipt.receiving.controller;
2 2  
3   -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4   -import io.swagger.annotations.Api;
5   -import io.swagger.annotations.ApiOperation;
6   -import lombok.extern.slf4j.Slf4j;
  3 +import java.math.BigDecimal;
  4 +import java.util.ArrayList;
  5 +import java.util.List;
  6 +
  7 +import javax.annotation.Resource;
  8 +import javax.servlet.http.HttpServletRequest;
  9 +
7 10 import org.jeecg.common.api.vo.Result;
8 11 import org.jeecg.common.aspect.annotation.AutoLog;
9 12 import org.jeecg.common.system.query.QueryGenerator;
10   -import org.jeecg.utils.HuahengJwtUtil;
11   -import org.jeecg.modules.wms.config.container.entity.Container;
12 13 import org.jeecg.modules.wms.receipt.receiptHeader.entity.ReceiptDetail;
13 14 import org.jeecg.modules.wms.receipt.receiptHeader.service.IReceiptDetailService;
14 15 import org.jeecg.modules.wms.receipt.receiving.domain.Receive;
15 16 import org.jeecg.modules.wms.receipt.receiving.service.IReceiveService;
16 17 import org.jeecg.modules.wms.task.taskHeader.entity.TaskHeader;
17   -import org.jeecg.utils.StringUtils;
  18 +import org.jeecg.utils.HuahengJwtUtil;
18 19 import org.springframework.web.bind.annotation.*;
19 20  
20   -import javax.annotation.Resource;
21   -import javax.servlet.http.HttpServletRequest;
22   -import java.math.BigDecimal;
23   -import java.util.ArrayList;
24   -import java.util.List;
  21 +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
  22 +
  23 +import io.swagger.annotations.Api;
  24 +import io.swagger.annotations.ApiOperation;
  25 +import lombok.extern.slf4j.Slf4j;
25 26  
26 27 /**
27 28 * @author 游杰
... ... @@ -71,11 +72,11 @@ public class ReceiveController {
71 72 }
72 73  
73 74 /**
74   - * 收货
  75 + * 组盘
75 76 * @return
76 77 */
77   - @AutoLog("入库单-收货")
78   - @ApiOperation(value = "入库单-收货", notes = "入库单-收货组盘")
  78 + @AutoLog("入库单-组盘")
  79 + @ApiOperation(value = "入库单-组盘", notes = "入库单-组盘")
79 80 @PostMapping("/receiving")
80 81 @ResponseBody
81 82 public Result receiving(@RequestBody List<Receive> receiveList, HttpServletRequest req) {
... ... @@ -87,8 +88,8 @@ public class ReceiveController {
87 88 * 收货
88 89 * @return
89 90 */
90   - @AutoLog("入库单-收货-生成任务")
91   - @ApiOperation(value = "入库单-收货-生成任务", notes = "收货组盘后,自动生成任务")
  91 + @AutoLog("入库单-生成任务")
  92 + @ApiOperation(value = "入库单-生成任务", notes = "入库单-生成任务")
92 93 @PostMapping("/receivingAndCreateTask")
93 94 @ResponseBody
94 95 public Result<TaskHeader> receivingAndCreateTask(@RequestBody List<Receive> receiveList, HttpServletRequest req) {
... ...