Commit 23b8c002eaac3704d6cf2920fd45acc576463339
Merge branch 'develop' of http://www.huahengrobot.com:90/wms/wms4 into develop
# Conflicts: # jeecg-boot-master/ant-design-vue-jeecg/src/views/system/shipment/ShipmentDetailList.vue # jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/shipment/shipmentCombination/service/impl/ShipmentCombinationServiceImpl.java
Showing
69 changed files
with
346 additions
and
227 deletions
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/DepartListSync.vue
@@ -5,14 +5,14 @@ | @@ -5,14 +5,14 @@ | ||
5 | 5 | ||
6 | <!-- 按钮操作区域 --> | 6 | <!-- 按钮操作区域 --> |
7 | <a-row style="margin: 0 0 0 14px" class="table-operator"> | 7 | <a-row style="margin: 0 0 0 14px" class="table-operator"> |
8 | - <a-button @click="handleAdd(1)" type="primary">添加部门</a-button> | ||
9 | - <a-button @click="handleAdd(2)" type="primary">添加下级</a-button> | 8 | + <a-button v-has="'depart:addDepart'" @click="handleAdd(1)" type="primary">添加部门</a-button> |
9 | + <a-button v-has="'depart:addChildren'" @click="handleAdd(2)" type="primary">添加下级</a-button> | ||
10 | <a-button type="primary" icon="download" @click="handleExportXls('部门信息')">导出</a-button> | 10 | <a-button type="primary" icon="download" @click="handleExportXls('部门信息')">导出</a-button> |
11 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 11 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
12 | <a-button type="primary" icon="import">导入</a-button> | 12 | <a-button type="primary" icon="import">导入</a-button> |
13 | </a-upload> | 13 | </a-upload> |
14 | <j-third-app-button biz-type="depart" :selected-row-keys="selectedRowKeys" syncToApp @sync-finally="onSyncFinally"/> | 14 | <j-third-app-button biz-type="depart" :selected-row-keys="selectedRowKeys" syncToApp @sync-finally="onSyncFinally"/> |
15 | - <a-button title="删除多条数据" @click="batchDel" type="default">批量删除</a-button> | 15 | + <a-button v-has="'depart:deleteBatch'" title="删除多条数据" @click="batchDel" type="default">批量删除</a-button> |
16 | </a-row> | 16 | </a-row> |
17 | <div style="background: #fff;padding-left:16px;height: 100%; margin-top: 5px"> | 17 | <div style="background: #fff;padding-left:16px;height: 100%; margin-top: 5px"> |
18 | <a-alert type="info" :showIcon="true"> | 18 | <a-alert type="info" :showIcon="true"> |
@@ -270,7 +270,7 @@ | @@ -270,7 +270,7 @@ | ||
270 | that.departTree = [] | 270 | that.departTree = [] |
271 | //所有的树节点key信息 | 271 | //所有的树节点key信息 |
272 | that.allIds = [] | 272 | that.allIds = [] |
273 | - | 273 | + |
274 | that.iExpandedKeys = [] | 274 | that.iExpandedKeys = [] |
275 | //update-begin---author:wangshuai ---date:20220105 for:[JTC-364]sqlserver 部门导入导入失败,部门树数据丢失------------ | 275 | //update-begin---author:wangshuai ---date:20220105 for:[JTC-364]sqlserver 部门导入导入失败,部门树数据丢失------------ |
276 | //部门树v-if用到了loading,和上传loading冲突了,换一个名称 | 276 | //部门树v-if用到了loading,和上传loading冲突了,换一个名称 |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/DictList.vue
@@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
25 | </a-form> | 25 | </a-form> |
26 | 26 | ||
27 | <div class="table-operator" style="border-top: 5px"> | 27 | <div class="table-operator" style="border-top: 5px"> |
28 | - <a-button @click="handleAdd" type="primary" icon="plus">添加</a-button> | 28 | + <a-button v-has="'dict:add'" @click="handleAdd" type="primary" icon="plus">添加</a-button> |
29 | <a-button type="primary" icon="download" @click="handleExportXls('字典信息')">导出</a-button> | 29 | <a-button type="primary" icon="download" @click="handleExportXls('字典信息')">导出</a-button> |
30 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 30 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
31 | <a-button type="primary" icon="import">导入</a-button> | 31 | <a-button type="primary" icon="import">导入</a-button> |
@@ -45,15 +45,15 @@ | @@ -45,15 +45,15 @@ | ||
45 | :loading="loading" | 45 | :loading="loading" |
46 | @change="handleTableChange"> | 46 | @change="handleTableChange"> |
47 | <span slot="action" slot-scope="text, record"> | 47 | <span slot="action" slot-scope="text, record"> |
48 | - <a @click="handleEdit(record)"> | 48 | + <a @click="handleEdit(record)" v-has="'dict:edit'"> |
49 | <a-icon type="edit"/> | 49 | <a-icon type="edit"/> |
50 | 编辑 | 50 | 编辑 |
51 | </a> | 51 | </a> |
52 | <a-divider type="vertical"/> | 52 | <a-divider type="vertical"/> |
53 | - <a @click="editDictItem(record)"><a-icon type="setting"/> 字典配置</a> | 53 | + <a v-has="'dict:config'" @click="editDictItem(record)"><a-icon type="setting"/> 字典配置</a> |
54 | <a-divider type="vertical"/> | 54 | <a-divider type="vertical"/> |
55 | <a-popconfirm title="确定删除吗?" @confirm="() =>handleDelete(record.id)"> | 55 | <a-popconfirm title="确定删除吗?" @confirm="() =>handleDelete(record.id)"> |
56 | - <a>删除</a> | 56 | + <a v-has="'dict:delete'">删除</a> |
57 | </a-popconfirm> | 57 | </a-popconfirm> |
58 | </span> | 58 | </span> |
59 | </a-table> | 59 | </a-table> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/PermissionList.vue
@@ -3,8 +3,9 @@ | @@ -3,8 +3,9 @@ | ||
3 | 3 | ||
4 | <!-- 操作按钮区域 --> | 4 | <!-- 操作按钮区域 --> |
5 | <div class="table-operator"> | 5 | <div class="table-operator"> |
6 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 6 | + <a-button v-has="'permission:edit'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
7 | <a-button | 7 | <a-button |
8 | + v-has="'permission:deleteBatch'" | ||
8 | @click="batchDel" | 9 | @click="batchDel" |
9 | v-if="selectedRowKeys.length > 0" | 10 | v-if="selectedRowKeys.length > 0" |
10 | ghost | 11 | ghost |
@@ -34,7 +35,7 @@ | @@ -34,7 +35,7 @@ | ||
34 | @expandedRowsChange="handleExpandedRowsChange"> | 35 | @expandedRowsChange="handleExpandedRowsChange"> |
35 | 36 | ||
36 | <span slot="action" slot-scope="text, record"> | 37 | <span slot="action" slot-scope="text, record"> |
37 | - <a @click="handleEdit(record)">编辑</a> | 38 | + <a v-has="'permission:edit'" @click="handleEdit(record)">编辑</a> |
38 | 39 | ||
39 | <a-divider type="vertical"/> | 40 | <a-divider type="vertical"/> |
40 | <a-dropdown> | 41 | <a-dropdown> |
@@ -45,14 +46,14 @@ | @@ -45,14 +46,14 @@ | ||
45 | <a-menu-item> | 46 | <a-menu-item> |
46 | <a href="javascript:;" @click="handleDetail(record)">详情</a> | 47 | <a href="javascript:;" @click="handleDetail(record)">详情</a> |
47 | </a-menu-item> | 48 | </a-menu-item> |
48 | - <a-menu-item> | 49 | + <a-menu-item v-has="'permission:addChildren'"> |
49 | <a href="javascript:;" @click="handleAddSub(record)">添加下级</a> | 50 | <a href="javascript:;" @click="handleAddSub(record)">添加下级</a> |
50 | </a-menu-item> | 51 | </a-menu-item> |
51 | <a-menu-item> | 52 | <a-menu-item> |
52 | <a href="javascript:;" @click="handleDataRule(record)">数据规则</a> | 53 | <a href="javascript:;" @click="handleDataRule(record)">数据规则</a> |
53 | </a-menu-item> | 54 | </a-menu-item> |
54 | 55 | ||
55 | - <a-menu-item> | 56 | + <a-menu-item v-has="'permission:delete'"> |
56 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 57 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
57 | <a>删除</a> | 58 | <a>删除</a> |
58 | </a-popconfirm> | 59 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/RoleUserList.vue
@@ -32,7 +32,7 @@ | @@ -32,7 +32,7 @@ | ||
32 | </div> | 32 | </div> |
33 | <!-- 操作按钮区域 --> | 33 | <!-- 操作按钮区域 --> |
34 | <div class="table-operator" style="margin: 5px 0 10px 2px"> | 34 | <div class="table-operator" style="margin: 5px 0 10px 2px"> |
35 | - <a-button @click="handleAdd" type="primary" icon="plus">新建角色</a-button> | 35 | + <a-button @click="handleAdd" v-has="'role:add'" type="primary" icon="plus">新建角色</a-button> |
36 | <!--<a-button @click="handleEdit(model1)" type="primary" icon="plus">角色编辑</a-button>--> | 36 | <!--<a-button @click="handleEdit(model1)" type="primary" icon="plus">角色编辑</a-button>--> |
37 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 37 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
38 | <a-button type="primary" icon="import">导入</a-button> | 38 | <a-button type="primary" icon="import">导入</a-button> |
@@ -70,14 +70,14 @@ | @@ -70,14 +70,14 @@ | ||
70 | </a> | 70 | </a> |
71 | <a-menu slot="overlay"> | 71 | <a-menu slot="overlay"> |
72 | <a-menu-item> | 72 | <a-menu-item> |
73 | - <a @click="handlePerssion(record.id)">授权</a> | 73 | + <a v-has="'role:authorize'" @click="handlePerssion(record.id)">授权</a> |
74 | </a-menu-item> | 74 | </a-menu-item> |
75 | <a-menu-item> | 75 | <a-menu-item> |
76 | - <a @click="handleEdit(record)">编辑</a> | 76 | + <a v-has="'role:edit'" @click="handleEdit(record)">编辑</a> |
77 | </a-menu-item> | 77 | </a-menu-item> |
78 | <a-menu-item> | 78 | <a-menu-item> |
79 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete1(record.id)"> | 79 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete1(record.id)"> |
80 | - <a>删除</a> | 80 | + <a v-has="'role:delete'">删除</a> |
81 | </a-popconfirm> | 81 | </a-popconfirm> |
82 | </a-menu-item> | 82 | </a-menu-item> |
83 | </a-menu> | 83 | </a-menu> |
@@ -117,13 +117,13 @@ | @@ -117,13 +117,13 @@ | ||
117 | </div> | 117 | </div> |
118 | <!-- 操作按钮区域 --> | 118 | <!-- 操作按钮区域 --> |
119 | <div class="table-operator" :md="24" :sm="24"> | 119 | <div class="table-operator" :md="24" :sm="24"> |
120 | - <a-button @click="handleAdd2" type="primary" icon="plus" style="margin-top: 16px">新增用户</a-button> | 120 | + <a-button @click="handleAdd2" v-has="'role:addUserWithRole'" type="primary" icon="plus" style="margin-top: 16px">新增用户</a-button> |
121 | <!--<a-button @click="handleEdit2" type="primary" icon="edit" style="margin-top: 16px">用户编辑</a-button>--> | 121 | <!--<a-button @click="handleEdit2" type="primary" icon="edit" style="margin-top: 16px">用户编辑</a-button>--> |
122 | - <a-button @click="handleAddUserRole" type="primary" icon="plus" style="margin-top: 16px">已有用户</a-button> | 122 | + <a-button @click="handleAddUserRole" v-has="'role:addUserExistingRole'" type="primary" icon="plus" style="margin-top: 16px">已有用户</a-button> |
123 | 123 | ||
124 | <a-dropdown v-if="selectedRowKeys2.length > 0"> | 124 | <a-dropdown v-if="selectedRowKeys2.length > 0"> |
125 | <a-menu slot="overlay"> | 125 | <a-menu slot="overlay"> |
126 | - <a-menu-item key="1" @click="batchDel2"> | 126 | + <a-menu-item key="1" @click="batchDel2" v-has="'role:deleteBatchExistingRoleUser'"> |
127 | <a-icon type="delete"/> | 127 | <a-icon type="delete"/> |
128 | 删除 | 128 | 删除 |
129 | </a-menu-item> | 129 | </a-menu-item> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/SysAnnouncementList.vue
@@ -30,13 +30,13 @@ | @@ -30,13 +30,13 @@ | ||
30 | 30 | ||
31 | <!-- 操作按钮区域 --> | 31 | <!-- 操作按钮区域 --> |
32 | <div class="table-operator"> | 32 | <div class="table-operator"> |
33 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 33 | + <a-button v-has="'announcement:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
34 | <a-button type="primary" icon="download" @click="handleExportXls('系统通告')">导出</a-button> | 34 | <a-button type="primary" icon="download" @click="handleExportXls('系统通告')">导出</a-button> |
35 | <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">--> | 35 | <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">--> |
36 | <!-- <a-button type="primary" icon="import">导入</a-button>--> | 36 | <!-- <a-button type="primary" icon="import">导入</a-button>--> |
37 | <!-- </a-upload>--> | 37 | <!-- </a-upload>--> |
38 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 38 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
39 | - <a-menu slot="overlay"> | 39 | + <a-menu slot="overlay" v-has="'announcement:deleteBatch'"> |
40 | <a-menu-item key="1" @click="batchDel"> | 40 | <a-menu-item key="1" @click="batchDel"> |
41 | <a-icon type="delete"/> | 41 | <a-icon type="delete"/> |
42 | 删除 | 42 | 删除 |
@@ -68,13 +68,13 @@ | @@ -68,13 +68,13 @@ | ||
68 | @change="handleTableChange"> | 68 | @change="handleTableChange"> |
69 | 69 | ||
70 | <span slot="action" slot-scope="text, record"> | 70 | <span slot="action" slot-scope="text, record"> |
71 | - <a v-if="record.sendStatus == 0" @click="handleEdit(record)">编辑</a> | 71 | + <a v-has="'announcement:edit'" v-if="record.sendStatus == 0" @click="handleEdit(record)">编辑</a> |
72 | 72 | ||
73 | <a-divider type="vertical" v-if="record.sendStatus == 0"/> | 73 | <a-divider type="vertical" v-if="record.sendStatus == 0"/> |
74 | <a-dropdown> | 74 | <a-dropdown> |
75 | <a class="ant-dropdown-link">更多 <a-icon type="down"/></a> | 75 | <a class="ant-dropdown-link">更多 <a-icon type="down"/></a> |
76 | <a-menu slot="overlay"> | 76 | <a-menu slot="overlay"> |
77 | - <a-menu-item v-if="record.sendStatus != 1"> | 77 | + <a-menu-item v-if="record.sendStatus != 1" v-has="'announcement:delete'"> |
78 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 78 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
79 | <a>删除</a> | 79 | <a>删除</a> |
80 | </a-popconfirm> | 80 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/UserList.vue
@@ -65,7 +65,7 @@ | @@ -65,7 +65,7 @@ | ||
65 | 65 | ||
66 | <!-- 操作按钮区域 --> | 66 | <!-- 操作按钮区域 --> |
67 | <div class="table-operator" style="border-top: 5px"> | 67 | <div class="table-operator" style="border-top: 5px"> |
68 | - <a-button @click="handleAdd" type="primary" icon="plus" >添加用户</a-button> | 68 | + <a-button v-has="'user:add'" @click="handleAdd" type="primary" icon="plus" >添加用户</a-button> |
69 | <a-button type="primary" icon="download" @click="handleExportXls('用户信息')">导出</a-button> | 69 | <a-button type="primary" icon="download" @click="handleExportXls('用户信息')">导出</a-button> |
70 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 70 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
71 | <a-button type="primary" icon="import">导入</a-button> | 71 | <a-button type="primary" icon="import">导入</a-button> |
@@ -75,15 +75,15 @@ | @@ -75,15 +75,15 @@ | ||
75 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 75 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
76 | <a-menu slot="overlay" @click="handleMenuClick"> | 76 | <a-menu slot="overlay" @click="handleMenuClick"> |
77 | <a-menu-item key="1"> | 77 | <a-menu-item key="1"> |
78 | - <a-icon type="delete" @click="batchDel"/> | 78 | + <a-icon type="delete" v-has="'user:deleteBatch'" @click="batchDel"/> |
79 | 删除 | 79 | 删除 |
80 | </a-menu-item> | 80 | </a-menu-item> |
81 | <a-menu-item key="2"> | 81 | <a-menu-item key="2"> |
82 | - <a-icon type="lock" @click="batchFrozen('2')"/> | 82 | + <a-icon type="lock" v-has="'user:frozenBatch'" @click="batchFrozen('2')"/> |
83 | 冻结 | 83 | 冻结 |
84 | </a-menu-item> | 84 | </a-menu-item> |
85 | <a-menu-item key="3"> | 85 | <a-menu-item key="3"> |
86 | - <a-icon type="unlock" @click="batchFrozen('1')"/> | 86 | + <a-icon v-has="'user:thawBatch'" type="unlock" @click="batchFrozen('1')"/> |
87 | 解冻 | 87 | 解冻 |
88 | </a-menu-item> | 88 | </a-menu-item> |
89 | </a-menu> | 89 | </a-menu> |
@@ -121,7 +121,7 @@ | @@ -121,7 +121,7 @@ | ||
121 | </template> | 121 | </template> |
122 | 122 | ||
123 | <span slot="action" slot-scope="text, record"> | 123 | <span slot="action" slot-scope="text, record"> |
124 | - <a @click="handleEdit(record)" >编辑</a> | 124 | + <a v-has="'user:edit'" @click="handleEdit(record)" >编辑</a> |
125 | 125 | ||
126 | <a-divider type="vertical" /> | 126 | <a-divider type="vertical" /> |
127 | 127 | ||
@@ -138,7 +138,7 @@ | @@ -138,7 +138,7 @@ | ||
138 | <a href="javascript:;" @click="handleChangePassword(record.username)">密码</a> | 138 | <a href="javascript:;" @click="handleChangePassword(record.username)">密码</a> |
139 | </a-menu-item> | 139 | </a-menu-item> |
140 | 140 | ||
141 | - <a-menu-item> | 141 | + <a-menu-item v-has="'user:delete'"> |
142 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 142 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
143 | <a>删除</a> | 143 | <a>删除</a> |
144 | </a-popconfirm> | 144 | </a-popconfirm> |
@@ -146,13 +146,13 @@ | @@ -146,13 +146,13 @@ | ||
146 | 146 | ||
147 | <a-menu-item v-if="record.status==1"> | 147 | <a-menu-item v-if="record.status==1"> |
148 | <a-popconfirm title="确定冻结吗?" @confirm="() => handleFrozen(record.id,2,record.username)"> | 148 | <a-popconfirm title="确定冻结吗?" @confirm="() => handleFrozen(record.id,2,record.username)"> |
149 | - <a>冻结</a> | 149 | + <a v-has="'user:frozen'">冻结</a> |
150 | </a-popconfirm> | 150 | </a-popconfirm> |
151 | </a-menu-item> | 151 | </a-menu-item> |
152 | 152 | ||
153 | <a-menu-item v-if="record.status==2"> | 153 | <a-menu-item v-if="record.status==2"> |
154 | <a-popconfirm title="确定解冻吗?" @confirm="() => handleFrozen(record.id,1,record.username)"> | 154 | <a-popconfirm title="确定解冻吗?" @confirm="() => handleFrozen(record.id,1,record.username)"> |
155 | - <a>解冻</a> | 155 | + <a v-has="'user:thaw'">解冻</a> |
156 | </a-popconfirm> | 156 | </a-popconfirm> |
157 | </a-menu-item> | 157 | </a-menu-item> |
158 | 158 |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/AddressList.vue
@@ -26,7 +26,7 @@ | @@ -26,7 +26,7 @@ | ||
26 | 26 | ||
27 | <!-- 操作按钮区域 --> | 27 | <!-- 操作按钮区域 --> |
28 | <div class="table-operator"> | 28 | <div class="table-operator"> |
29 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 29 | + <a-button @click="handleAdd" v-has="'address:add'" type="primary" icon="plus">新增</a-button> |
30 | <a-button type="primary" icon="download" @click="handleExportXls('接口地址')">导出</a-button> | 30 | <a-button type="primary" icon="download" @click="handleExportXls('接口地址')">导出</a-button> |
31 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 31 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
32 | <a-button type="primary" icon="import">导入</a-button> | 32 | <a-button type="primary" icon="import">导入</a-button> |
@@ -34,7 +34,7 @@ | @@ -34,7 +34,7 @@ | ||
34 | <!-- 高级查询区域 --> | 34 | <!-- 高级查询区域 --> |
35 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 35 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
36 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 36 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
37 | - <a-menu slot="overlay"> | 37 | + <a-menu slot="overlay" v-has="'address:deleteBatch'"> |
38 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 38 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
39 | </a-menu> | 39 | </a-menu> |
40 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 40 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -83,7 +83,7 @@ | @@ -83,7 +83,7 @@ | ||
83 | </template> | 83 | </template> |
84 | 84 | ||
85 | <span slot="action" slot-scope="text, record"> | 85 | <span slot="action" slot-scope="text, record"> |
86 | - <a @click="handleEdit(record)">编辑</a> | 86 | + <a v-has="'address:edit'" @click="handleEdit(record)">编辑</a> |
87 | 87 | ||
88 | <a-divider type="vertical" /> | 88 | <a-divider type="vertical" /> |
89 | <a-dropdown> | 89 | <a-dropdown> |
@@ -93,7 +93,7 @@ | @@ -93,7 +93,7 @@ | ||
93 | <a @click="handleDetail(record)">详情</a> | 93 | <a @click="handleDetail(record)">详情</a> |
94 | </a-menu-item> | 94 | </a-menu-item> |
95 | <a-menu-item> | 95 | <a-menu-item> |
96 | - <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 96 | + <a-popconfirm title="确定删除吗?" v-has="'address:delete'" @confirm="() => handleDelete(record.id)"> |
97 | <a>删除</a> | 97 | <a>删除</a> |
98 | </a-popconfirm> | 98 | </a-popconfirm> |
99 | </a-menu-item> | 99 | </a-menu-item> |
@@ -186,7 +186,7 @@ | @@ -186,7 +186,7 @@ | ||
186 | deleteBatch: "/config/address/deleteBatch", | 186 | deleteBatch: "/config/address/deleteBatch", |
187 | exportXlsUrl: "/config/address/exportXls", | 187 | exportXlsUrl: "/config/address/exportXls", |
188 | importExcelUrl: "config/address/importExcel", | 188 | importExcelUrl: "config/address/importExcel", |
189 | - | 189 | + |
190 | }, | 190 | }, |
191 | dictOptions:{}, | 191 | dictOptions:{}, |
192 | superFieldList:[], | 192 | superFieldList:[], |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/BomDetailList.vue
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <a-card :bordered="false" :class="'cust-erp-sub-tab'"> | 2 | <a-card :bordered="false" :class="'cust-erp-sub-tab'"> |
3 | <!-- 操作按钮区域 --> | 3 | <!-- 操作按钮区域 --> |
4 | <div class="table-operator" v-if="mainId"> | 4 | <div class="table-operator" v-if="mainId"> |
5 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 5 | + <a-button @click="handleAdd" v-has="'bomDetail:add'" type="primary" icon="plus">新增</a-button> |
6 | <a-button type="primary" icon="download" @click="handleExportXls('bom子表')">导出</a-button> | 6 | <a-button type="primary" icon="download" @click="handleExportXls('bom子表')">导出</a-button> |
7 | <a-upload | 7 | <a-upload |
8 | name="file" | 8 | name="file" |
@@ -14,8 +14,8 @@ | @@ -14,8 +14,8 @@ | ||
14 | <a-button type="primary" icon="import">导入</a-button> | 14 | <a-button type="primary" icon="import">导入</a-button> |
15 | </a-upload> | 15 | </a-upload> |
16 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 16 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
17 | - <a-menu slot="overlay"> | ||
18 | - <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 17 | + <a-menu slot="overlay" v-has="'bomDetail:deleteBatch'" > |
18 | + <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | ||
19 | </a-menu> | 19 | </a-menu> |
20 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 20 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
21 | </a-dropdown> | 21 | </a-dropdown> |
@@ -62,10 +62,10 @@ | @@ -62,10 +62,10 @@ | ||
62 | </template> | 62 | </template> |
63 | 63 | ||
64 | <span slot="action" slot-scope="text, record"> | 64 | <span slot="action" slot-scope="text, record"> |
65 | - <a @click="handleEdit(record)">编辑</a> | 65 | + <a v-has="'bomDetail:edit'" @click="handleEdit(record)">编辑</a> |
66 | <a-divider type="vertical" /> | 66 | <a-divider type="vertical" /> |
67 | - <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | ||
68 | - <a>删除</a> | 67 | + <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
68 | + <a v-has="'bomDetail:delete'">删除</a> | ||
69 | </a-popconfirm> | 69 | </a-popconfirm> |
70 | </span> | 70 | </span> |
71 | 71 |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/BomHeaderList.vue
@@ -28,10 +28,10 @@ | @@ -28,10 +28,10 @@ | ||
28 | </a-form> | 28 | </a-form> |
29 | </div> | 29 | </div> |
30 | <!-- 查询区域-END --> | 30 | <!-- 查询区域-END --> |
31 | - | 31 | + |
32 | <!-- 操作按钮区域 --> | 32 | <!-- 操作按钮区域 --> |
33 | <div class="table-operator"> | 33 | <div class="table-operator"> |
34 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 34 | + <a-button @click="handleAdd" v-has="'bomHeader:add'" type="primary" icon="plus">新增</a-button> |
35 | <a-button type="primary" icon="download" @click="handleExportXls('bom主表')">导出</a-button> | 35 | <a-button type="primary" icon="download" @click="handleExportXls('bom主表')">导出</a-button> |
36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
37 | <a-button type="primary" icon="import">导入</a-button> | 37 | <a-button type="primary" icon="import">导入</a-button> |
@@ -83,14 +83,14 @@ | @@ -83,14 +83,14 @@ | ||
83 | </template> | 83 | </template> |
84 | 84 | ||
85 | <span slot="action" slot-scope="text, record"> | 85 | <span slot="action" slot-scope="text, record"> |
86 | - <a @click="handleEdit(record)">编辑</a> | 86 | + <a v-has="'bomHeader:edit'" @click="handleEdit(record)">编辑</a> |
87 | 87 | ||
88 | <a-divider type="vertical" /> | 88 | <a-divider type="vertical" /> |
89 | <a-dropdown> | 89 | <a-dropdown> |
90 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> | 90 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
91 | <a-menu slot="overlay"> | 91 | <a-menu slot="overlay"> |
92 | <a-menu-item> | 92 | <a-menu-item> |
93 | - <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 93 | + <a-popconfirm v-has="'bomHeader:delete'" title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
94 | <a>删除</a> | 94 | <a>删除</a> |
95 | </a-popconfirm> | 95 | </a-popconfirm> |
96 | </a-menu-item> | 96 | </a-menu-item> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/CarrierList.vue
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | 11 | ||
12 | <!-- 操作按钮区域 --> | 12 | <!-- 操作按钮区域 --> |
13 | <div class="table-operator"> | 13 | <div class="table-operator"> |
14 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 14 | + <a-button @click="handleAdd" v-has="'carrier:add'" type="primary" icon="plus">新增</a-button> |
15 | <a-button type="primary" icon="download" @click="handleExportXls('承运商管理')">导出</a-button> | 15 | <a-button type="primary" icon="download" @click="handleExportXls('承运商管理')">导出</a-button> |
16 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 16 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
17 | <a-button type="primary" icon="import">导入</a-button> | 17 | <a-button type="primary" icon="import">导入</a-button> |
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | <!-- 高级查询区域 --> | 19 | <!-- 高级查询区域 --> |
20 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 20 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
21 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 21 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
22 | - <a-menu slot="overlay"> | 22 | + <a-menu slot="overlay" v-has="'carrier:deleteBatch'"> |
23 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 23 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
24 | </a-menu> | 24 | </a-menu> |
25 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 25 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -68,7 +68,7 @@ | @@ -68,7 +68,7 @@ | ||
68 | </template> | 68 | </template> |
69 | 69 | ||
70 | <span slot="action" slot-scope="text, record"> | 70 | <span slot="action" slot-scope="text, record"> |
71 | - <a @click="handleEdit(record)">编辑</a> | 71 | + <a v-has="'carrier:edit'" @click="handleEdit(record)">编辑</a> |
72 | 72 | ||
73 | <a-divider type="vertical" /> | 73 | <a-divider type="vertical" /> |
74 | <a-dropdown> | 74 | <a-dropdown> |
@@ -77,7 +77,7 @@ | @@ -77,7 +77,7 @@ | ||
77 | <a-menu-item> | 77 | <a-menu-item> |
78 | <a @click="handleDetail(record)">详情</a> | 78 | <a @click="handleDetail(record)">详情</a> |
79 | </a-menu-item> | 79 | </a-menu-item> |
80 | - <a-menu-item> | 80 | + <a-menu-item v-has="'carrier:delete'"> |
81 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 81 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
82 | <a>删除</a> | 82 | <a>删除</a> |
83 | </a-popconfirm> | 83 | </a-popconfirm> |
@@ -177,7 +177,7 @@ | @@ -177,7 +177,7 @@ | ||
177 | deleteBatch: "/config/carrier/deleteBatch", | 177 | deleteBatch: "/config/carrier/deleteBatch", |
178 | exportXlsUrl: "/config/carrier/exportXls", | 178 | exportXlsUrl: "/config/carrier/exportXls", |
179 | importExcelUrl: "config/carrier/importExcel", | 179 | importExcelUrl: "config/carrier/importExcel", |
180 | - | 180 | + |
181 | }, | 181 | }, |
182 | dictOptions:{}, | 182 | dictOptions:{}, |
183 | superFieldList:[], | 183 | superFieldList:[], |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/CompanyList.vue
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | 31 | ||
32 | <!-- 操作按钮区域 --> | 32 | <!-- 操作按钮区域 --> |
33 | <div class="table-operator"> | 33 | <div class="table-operator"> |
34 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 34 | + <a-button @click="handleAdd" v-has="'company:add'" type="primary" icon="plus">新增</a-button> |
35 | <a-button type="primary" icon="download" @click="handleExportXls('货主')">导出</a-button> | 35 | <a-button type="primary" icon="download" @click="handleExportXls('货主')">导出</a-button> |
36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
37 | <a-button type="primary" icon="import">导入</a-button> | 37 | <a-button type="primary" icon="import">导入</a-button> |
@@ -39,8 +39,8 @@ | @@ -39,8 +39,8 @@ | ||
39 | <!-- 高级查询区域 --> | 39 | <!-- 高级查询区域 --> |
40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
41 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 41 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
42 | - <a-menu slot="overlay"> | ||
43 | - <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 42 | + <a-menu slot="overlay" v-has="'company:deleteBatch'"> |
43 | + <a-menu-item key="1" @click="batchDel"><a-icon type="deleteBatch"/>删除</a-menu-item> | ||
44 | </a-menu> | 44 | </a-menu> |
45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
46 | </a-dropdown> | 46 | </a-dropdown> |
@@ -88,8 +88,7 @@ | @@ -88,8 +88,7 @@ | ||
88 | </template> | 88 | </template> |
89 | 89 | ||
90 | <span slot="action" slot-scope="text, record"> | 90 | <span slot="action" slot-scope="text, record"> |
91 | - <a @click="handleEdit(record)">编辑</a> | ||
92 | - | 91 | + <a v-has="'company:edit'" @click="handleEdit(record)">编辑</a> |
93 | <a-divider type="vertical" /> | 92 | <a-divider type="vertical" /> |
94 | <a-dropdown> | 93 | <a-dropdown> |
95 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> | 94 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
@@ -97,7 +96,7 @@ | @@ -97,7 +96,7 @@ | ||
97 | <a-menu-item> | 96 | <a-menu-item> |
98 | <a @click="handleDetail(record)">详情</a> | 97 | <a @click="handleDetail(record)">详情</a> |
99 | </a-menu-item> | 98 | </a-menu-item> |
100 | - <a-menu-item> | 99 | + <a-menu-item v-has="'company:delete'"> |
101 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 100 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
102 | <a>删除</a> | 101 | <a>删除</a> |
103 | </a-popconfirm> | 102 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/ContainerCapacityList.vue
@@ -38,7 +38,7 @@ | @@ -38,7 +38,7 @@ | ||
38 | 38 | ||
39 | <!-- 操作按钮区域 --> | 39 | <!-- 操作按钮区域 --> |
40 | <div class="table-operator"> | 40 | <div class="table-operator"> |
41 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 41 | + <a-button @click="handleAdd" v-has="'containerCapacity:add'" type="primary" icon="plus">新增</a-button> |
42 | <a-button type="primary" icon="download" @click="handleExportXls('容器容量管理')">导出</a-button> | 42 | <a-button type="primary" icon="download" @click="handleExportXls('容器容量管理')">导出</a-button> |
43 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 43 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
44 | <a-button type="primary" icon="import">导入</a-button> | 44 | <a-button type="primary" icon="import">导入</a-button> |
@@ -46,7 +46,7 @@ | @@ -46,7 +46,7 @@ | ||
46 | <!-- 高级查询区域 --> | 46 | <!-- 高级查询区域 --> |
47 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 47 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
48 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 48 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
49 | - <a-menu slot="overlay"> | 49 | + <a-menu slot="overlay" v-has="'containerCapacity:deleteBatch'"> |
50 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 50 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
51 | </a-menu> | 51 | </a-menu> |
52 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 52 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -95,7 +95,7 @@ | @@ -95,7 +95,7 @@ | ||
95 | </template> | 95 | </template> |
96 | 96 | ||
97 | <span slot="action" slot-scope="text, record"> | 97 | <span slot="action" slot-scope="text, record"> |
98 | - <a @click="handleEdit(record)">编辑</a> | 98 | + <a v-has="'containerCapacity:edit'" @click="handleEdit(record)">编辑</a> |
99 | 99 | ||
100 | <a-divider type="vertical" /> | 100 | <a-divider type="vertical" /> |
101 | <a-dropdown> | 101 | <a-dropdown> |
@@ -104,7 +104,7 @@ | @@ -104,7 +104,7 @@ | ||
104 | <a-menu-item> | 104 | <a-menu-item> |
105 | <a @click="handleDetail(record)">详情</a> | 105 | <a @click="handleDetail(record)">详情</a> |
106 | </a-menu-item> | 106 | </a-menu-item> |
107 | - <a-menu-item> | 107 | + <a-menu-item v-has="'containerCapacity:delete'"> |
108 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 108 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
109 | <a>删除</a> | 109 | <a>删除</a> |
110 | </a-popconfirm> | 110 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/ContainerList.vue
@@ -51,7 +51,7 @@ | @@ -51,7 +51,7 @@ | ||
51 | <!-- 操作按钮区域 --> | 51 | <!-- 操作按钮区域 --> |
52 | <div class="table-operator"> | 52 | <div class="table-operator"> |
53 | <a-button @click="batchPrint()" type="primary">打印</a-button> | 53 | <a-button @click="batchPrint()" type="primary">打印</a-button> |
54 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 54 | + <a-button @click="handleAdd" v-has="'container:add'" type="primary" icon="plus">新增</a-button> |
55 | <a-button type="primary" icon="download" @click="handleExportXls('容器管理')">导出</a-button> | 55 | <a-button type="primary" icon="download" @click="handleExportXls('容器管理')">导出</a-button> |
56 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 56 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
57 | <a-button type="primary" icon="import">导入</a-button> | 57 | <a-button type="primary" icon="import">导入</a-button> |
@@ -59,7 +59,7 @@ | @@ -59,7 +59,7 @@ | ||
59 | <!-- 高级查询区域 --> | 59 | <!-- 高级查询区域 --> |
60 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 60 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
61 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 61 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
62 | - <a-menu slot="overlay"> | 62 | + <a-menu slot="overlay" v-has="'container:deleteBatch'" > |
63 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 63 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
64 | </a-menu> | 64 | </a-menu> |
65 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 65 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -120,7 +120,7 @@ | @@ -120,7 +120,7 @@ | ||
120 | </template> | 120 | </template> |
121 | 121 | ||
122 | <span slot="action" slot-scope="text, record"> | 122 | <span slot="action" slot-scope="text, record"> |
123 | - <a @click="editForm(record)">编辑</a> | 123 | + <a v-has="'container:add'" @click="editForm(record)">编辑</a> |
124 | 124 | ||
125 | <a-divider type="vertical" /> | 125 | <a-divider type="vertical" /> |
126 | <a-dropdown> | 126 | <a-dropdown> |
@@ -129,7 +129,7 @@ | @@ -129,7 +129,7 @@ | ||
129 | <a-menu-item> | 129 | <a-menu-item> |
130 | <a @click="handleDetail(record)">详情</a> | 130 | <a @click="handleDetail(record)">详情</a> |
131 | </a-menu-item> | 131 | </a-menu-item> |
132 | - <a-menu-item> | 132 | + <a-menu-item v-has="'container:delete'" > |
133 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 133 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
134 | <a>删除</a> | 134 | <a>删除</a> |
135 | </a-popconfirm> | 135 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/ContainerTypeList.vue
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | 31 | ||
32 | <!-- 操作按钮区域 --> | 32 | <!-- 操作按钮区域 --> |
33 | <div class="table-operator"> | 33 | <div class="table-operator"> |
34 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 34 | + <a-button @click="handleAdd" v-has="'containerType:add'" type="primary" icon="plus">新增</a-button> |
35 | <a-button type="primary" icon="download" @click="handleExportXls('容器类型')">导出</a-button> | 35 | <a-button type="primary" icon="download" @click="handleExportXls('容器类型')">导出</a-button> |
36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
37 | <a-button type="primary" icon="import">导入</a-button> | 37 | <a-button type="primary" icon="import">导入</a-button> |
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | <!-- 高级查询区域 --> | 39 | <!-- 高级查询区域 --> |
40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
41 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 41 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
42 | - <a-menu slot="overlay"> | 42 | + <a-menu slot="overlay" v-has="'containerType:deleteBatch'"> |
43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
44 | </a-menu> | 44 | </a-menu> |
45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -88,7 +88,7 @@ | @@ -88,7 +88,7 @@ | ||
88 | </template> | 88 | </template> |
89 | 89 | ||
90 | <span slot="action" slot-scope="text, record"> | 90 | <span slot="action" slot-scope="text, record"> |
91 | - <a @click="handleEdit(record)">编辑</a> | 91 | + <a v-has="'containerType:edit'" @click="handleEdit(record)">编辑</a> |
92 | 92 | ||
93 | <a-divider type="vertical" /> | 93 | <a-divider type="vertical" /> |
94 | <a-dropdown> | 94 | <a-dropdown> |
@@ -97,7 +97,7 @@ | @@ -97,7 +97,7 @@ | ||
97 | <a-menu-item> | 97 | <a-menu-item> |
98 | <a @click="handleDetail(record)">详情</a> | 98 | <a @click="handleDetail(record)">详情</a> |
99 | </a-menu-item> | 99 | </a-menu-item> |
100 | - <a-menu-item> | 100 | + <a-menu-item v-has="'containerType:delete'"> |
101 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 101 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
102 | <a>删除</a> | 102 | <a>删除</a> |
103 | </a-popconfirm> | 103 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/CustomerList.vue
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | 11 | ||
12 | <!-- 操作按钮区域 --> | 12 | <!-- 操作按钮区域 --> |
13 | <div class="table-operator"> | 13 | <div class="table-operator"> |
14 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 14 | + <a-button @click="handleAdd" v-has="'customer:add'" type="primary" icon="plus">新增</a-button> |
15 | <a-button type="primary" icon="download" @click="handleExportXls('客户管理')">导出</a-button> | 15 | <a-button type="primary" icon="download" @click="handleExportXls('客户管理')">导出</a-button> |
16 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 16 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
17 | <a-button type="primary" icon="import">导入</a-button> | 17 | <a-button type="primary" icon="import">导入</a-button> |
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | <!-- 高级查询区域 --> | 19 | <!-- 高级查询区域 --> |
20 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 20 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
21 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 21 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
22 | - <a-menu slot="overlay"> | 22 | + <a-menu slot="overlay" v-has="'customer:deleteBatch'"> |
23 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 23 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
24 | </a-menu> | 24 | </a-menu> |
25 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 25 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -68,7 +68,7 @@ | @@ -68,7 +68,7 @@ | ||
68 | </template> | 68 | </template> |
69 | 69 | ||
70 | <span slot="action" slot-scope="text, record"> | 70 | <span slot="action" slot-scope="text, record"> |
71 | - <a @click="handleEdit(record)">编辑</a> | 71 | + <a v-has="'customer:edit'" @click="handleEdit(record)">编辑</a> |
72 | 72 | ||
73 | <a-divider type="vertical" /> | 73 | <a-divider type="vertical" /> |
74 | <a-dropdown> | 74 | <a-dropdown> |
@@ -77,7 +77,7 @@ | @@ -77,7 +77,7 @@ | ||
77 | <a-menu-item> | 77 | <a-menu-item> |
78 | <a @click="handleDetail(record)">详情</a> | 78 | <a @click="handleDetail(record)">详情</a> |
79 | </a-menu-item> | 79 | </a-menu-item> |
80 | - <a-menu-item> | 80 | + <a-menu-item v-has="'customer:delete'"> |
81 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 81 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
82 | <a>删除</a> | 82 | <a>删除</a> |
83 | </a-popconfirm> | 83 | </a-popconfirm> |
@@ -192,7 +192,7 @@ | @@ -192,7 +192,7 @@ | ||
192 | deleteBatch: "/config/customer/deleteBatch", | 192 | deleteBatch: "/config/customer/deleteBatch", |
193 | exportXlsUrl: "/config/customer/exportXls", | 193 | exportXlsUrl: "/config/customer/exportXls", |
194 | importExcelUrl: "config/customer/importExcel", | 194 | importExcelUrl: "config/customer/importExcel", |
195 | - | 195 | + |
196 | }, | 196 | }, |
197 | dictOptions:{}, | 197 | dictOptions:{}, |
198 | superFieldList:[], | 198 | superFieldList:[], |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/CycleCountPreferenceList.vue
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | 11 | ||
12 | <!-- 操作按钮区域 --> | 12 | <!-- 操作按钮区域 --> |
13 | <div class="table-operator"> | 13 | <div class="table-operator"> |
14 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 14 | + <a-button @click="handleAdd" v-has="'cycleCountPreference:add'" type="primary" icon="plus">新增</a-button> |
15 | <a-button type="primary" icon="download" @click="handleExportXls('盘点首选项')">导出</a-button> | 15 | <a-button type="primary" icon="download" @click="handleExportXls('盘点首选项')">导出</a-button> |
16 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 16 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
17 | <a-button type="primary" icon="import">导入</a-button> | 17 | <a-button type="primary" icon="import">导入</a-button> |
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | <!-- 高级查询区域 --> | 19 | <!-- 高级查询区域 --> |
20 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 20 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
21 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 21 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
22 | - <a-menu slot="overlay"> | 22 | + <a-menu slot="overlay" v-has="'cycleCountPreference:deleteBatch'" > |
23 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 23 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
24 | </a-menu> | 24 | </a-menu> |
25 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 25 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -68,7 +68,7 @@ | @@ -68,7 +68,7 @@ | ||
68 | </template> | 68 | </template> |
69 | 69 | ||
70 | <span slot="action" slot-scope="text, record"> | 70 | <span slot="action" slot-scope="text, record"> |
71 | - <a @click="handleEdit(record)">编辑</a> | 71 | + <a v-has="'cycleCountPreference:edit'" @click="handleEdit(record)">编辑</a> |
72 | 72 | ||
73 | <a-divider type="vertical" /> | 73 | <a-divider type="vertical" /> |
74 | <a-dropdown> | 74 | <a-dropdown> |
@@ -77,7 +77,7 @@ | @@ -77,7 +77,7 @@ | ||
77 | <a-menu-item> | 77 | <a-menu-item> |
78 | <a @click="handleDetail(record)">详情</a> | 78 | <a @click="handleDetail(record)">详情</a> |
79 | </a-menu-item> | 79 | </a-menu-item> |
80 | - <a-menu-item> | 80 | + <a-menu-item v-has="'cycleCountPreference:delete'" > |
81 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 81 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
82 | <a>删除</a> | 82 | <a>删除</a> |
83 | </a-popconfirm> | 83 | </a-popconfirm> |
@@ -192,7 +192,7 @@ | @@ -192,7 +192,7 @@ | ||
192 | deleteBatch: "/config/cycleCountPreference/deleteBatch", | 192 | deleteBatch: "/config/cycleCountPreference/deleteBatch", |
193 | exportXlsUrl: "/config/cycleCountPreference/exportXls", | 193 | exportXlsUrl: "/config/cycleCountPreference/exportXls", |
194 | importExcelUrl: "config/cycleCountPreference/importExcel", | 194 | importExcelUrl: "config/cycleCountPreference/importExcel", |
195 | - | 195 | + |
196 | }, | 196 | }, |
197 | dictOptions:{}, | 197 | dictOptions:{}, |
198 | superFieldList:[], | 198 | superFieldList:[], |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/LocationHighList.vue
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | 31 | ||
32 | <!-- 操作按钮区域 --> | 32 | <!-- 操作按钮区域 --> |
33 | <div class="table-operator"> | 33 | <div class="table-operator"> |
34 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 34 | + <a-button @click="handleAdd" v-has="'locationHigh:add'" type="primary" icon="plus">新增</a-button> |
35 | <a-button type="primary" icon="download" @click="handleExportXls('库位高度管理')">导出</a-button> | 35 | <a-button type="primary" icon="download" @click="handleExportXls('库位高度管理')">导出</a-button> |
36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
37 | <a-button type="primary" icon="import">导入</a-button> | 37 | <a-button type="primary" icon="import">导入</a-button> |
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | <!-- 高级查询区域 --> | 39 | <!-- 高级查询区域 --> |
40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
41 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 41 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
42 | - <a-menu slot="overlay"> | 42 | + <a-menu slot="overlay" v-has="'locationHigh:deleteBatch'"> |
43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
44 | </a-menu> | 44 | </a-menu> |
45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -94,7 +94,7 @@ | @@ -94,7 +94,7 @@ | ||
94 | </template> | 94 | </template> |
95 | 95 | ||
96 | <span slot="action" slot-scope="text, record"> | 96 | <span slot="action" slot-scope="text, record"> |
97 | - <a @click="handleEdit(record)">编辑</a> | 97 | + <a v-has="'locationHigh:edit'" @click="handleEdit(record)">编辑</a> |
98 | 98 | ||
99 | <a-divider type="vertical" /> | 99 | <a-divider type="vertical" /> |
100 | <a-dropdown> | 100 | <a-dropdown> |
@@ -103,7 +103,7 @@ | @@ -103,7 +103,7 @@ | ||
103 | <a-menu-item> | 103 | <a-menu-item> |
104 | <a @click="handleDetail(record)">详情</a> | 104 | <a @click="handleDetail(record)">详情</a> |
105 | </a-menu-item> | 105 | </a-menu-item> |
106 | - <a-menu-item> | 106 | + <a-menu-item v-has="'locationHigh:delete'"> |
107 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 107 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
108 | <a>删除</a> | 108 | <a>删除</a> |
109 | </a-popconfirm> | 109 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/LocationList.vue
@@ -100,8 +100,8 @@ | @@ -100,8 +100,8 @@ | ||
100 | <!-- 操作按钮区域 --> | 100 | <!-- 操作按钮区域 --> |
101 | <div class="table-operator"> | 101 | <div class="table-operator"> |
102 | <a-button @click="batchPrint()" type="primary" >打印</a-button> | 102 | <a-button @click="batchPrint()" type="primary" >打印</a-button> |
103 | - <a-button @click="batchAdd()" type="primary" icon="plus">批量新增</a-button> | ||
104 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 103 | + <a-button @click="batchAdd()" v-has="'location:batchAdd'" type="primary" icon="plus">批量新增</a-button> |
104 | + <a-button v-has="'location:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> | ||
105 | <a-button type="primary" icon="download" @click="handleExportXls('库位管理')">导出</a-button> | 105 | <a-button type="primary" icon="download" @click="handleExportXls('库位管理')">导出</a-button> |
106 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 106 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
107 | <a-button type="primary" icon="import">导入</a-button> | 107 | <a-button type="primary" icon="import">导入</a-button> |
@@ -109,7 +109,7 @@ | @@ -109,7 +109,7 @@ | ||
109 | <!-- 高级查询区域 --> | 109 | <!-- 高级查询区域 --> |
110 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 110 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
111 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 111 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
112 | - <a-menu slot="overlay"> | 112 | + <a-menu slot="overlay" v-has="'location:deleteBatch'"> |
113 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 113 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
114 | </a-menu> | 114 | </a-menu> |
115 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 115 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -170,7 +170,7 @@ | @@ -170,7 +170,7 @@ | ||
170 | </template> | 170 | </template> |
171 | 171 | ||
172 | <span slot="action" slot-scope="text, record"> | 172 | <span slot="action" slot-scope="text, record"> |
173 | - <a @click="handleEdit(record)">编辑</a> | 173 | + <a v-has="'location:edit'" @click="handleEdit(record)">编辑</a> |
174 | 174 | ||
175 | <a-divider type="vertical" /> | 175 | <a-divider type="vertical" /> |
176 | <a-dropdown> | 176 | <a-dropdown> |
@@ -179,7 +179,7 @@ | @@ -179,7 +179,7 @@ | ||
179 | <a-menu-item> | 179 | <a-menu-item> |
180 | <a @click="handleDetail(record)">详情</a> | 180 | <a @click="handleDetail(record)">详情</a> |
181 | </a-menu-item> | 181 | </a-menu-item> |
182 | - <a-menu-item> | 182 | + <a-menu-item v-has="'location:delete'"> |
183 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 183 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
184 | <a>删除</a> | 184 | <a>删除</a> |
185 | </a-popconfirm> | 185 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/LocationTypeList.vue
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | 31 | ||
32 | <!-- 操作按钮区域 --> | 32 | <!-- 操作按钮区域 --> |
33 | <div class="table-operator"> | 33 | <div class="table-operator"> |
34 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 34 | + <a-button v-has="'locationType:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
35 | <a-button type="primary" icon="download" @click="handleExportXls('库位类型')">导出</a-button> | 35 | <a-button type="primary" icon="download" @click="handleExportXls('库位类型')">导出</a-button> |
36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
37 | <a-button type="primary" icon="import">导入</a-button> | 37 | <a-button type="primary" icon="import">导入</a-button> |
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | <!-- 高级查询区域 --> | 39 | <!-- 高级查询区域 --> |
40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
41 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 41 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
42 | - <a-menu slot="overlay"> | 42 | + <a-menu slot="overlay" v-has="'locationType:deleteBatch'"> |
43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
44 | </a-menu> | 44 | </a-menu> |
45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -88,7 +88,7 @@ | @@ -88,7 +88,7 @@ | ||
88 | </template> | 88 | </template> |
89 | 89 | ||
90 | <span slot="action" slot-scope="text, record"> | 90 | <span slot="action" slot-scope="text, record"> |
91 | - <a @click="handleEdit(record)">编辑</a> | 91 | + <a v-has="'locationType:edit'" @click="handleEdit(record)">编辑</a> |
92 | 92 | ||
93 | <a-divider type="vertical" /> | 93 | <a-divider type="vertical" /> |
94 | <a-dropdown> | 94 | <a-dropdown> |
@@ -97,7 +97,7 @@ | @@ -97,7 +97,7 @@ | ||
97 | <a-menu-item> | 97 | <a-menu-item> |
98 | <a @click="handleDetail(record)">详情</a> | 98 | <a @click="handleDetail(record)">详情</a> |
99 | </a-menu-item> | 99 | </a-menu-item> |
100 | - <a-menu-item> | 100 | + <a-menu-item v-has="'locationType:delete'"> |
101 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 101 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
102 | <a>删除</a> | 102 | <a>删除</a> |
103 | </a-popconfirm> | 103 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/MaterialAreaList.vue
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | 11 | ||
12 | <!-- 操作按钮区域 --> | 12 | <!-- 操作按钮区域 --> |
13 | <div class="table-operator"> | 13 | <div class="table-operator"> |
14 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 14 | + <a-button @click="handleAdd" v-has="'materialArea:add'" type="primary" icon="plus">新增</a-button> |
15 | <a-button type="primary" icon="download" @click="handleExportXls('物料分区')">导出</a-button> | 15 | <a-button type="primary" icon="download" @click="handleExportXls('物料分区')">导出</a-button> |
16 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 16 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
17 | <a-button type="primary" icon="import">导入</a-button> | 17 | <a-button type="primary" icon="import">导入</a-button> |
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | <!-- 高级查询区域 --> | 19 | <!-- 高级查询区域 --> |
20 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 20 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
21 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 21 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
22 | - <a-menu slot="overlay"> | 22 | + <a-menu slot="overlay" v-has="'materialArea:deleteBatch'"> |
23 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 23 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
24 | </a-menu> | 24 | </a-menu> |
25 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 25 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -68,7 +68,7 @@ | @@ -68,7 +68,7 @@ | ||
68 | </template> | 68 | </template> |
69 | 69 | ||
70 | <span slot="action" slot-scope="text, record"> | 70 | <span slot="action" slot-scope="text, record"> |
71 | - <a @click="handleEdit(record)">编辑</a> | 71 | + <a v-has="'materialArea:edit'" @click="handleEdit(record)">编辑</a> |
72 | 72 | ||
73 | <a-divider type="vertical" /> | 73 | <a-divider type="vertical" /> |
74 | <a-dropdown> | 74 | <a-dropdown> |
@@ -77,7 +77,7 @@ | @@ -77,7 +77,7 @@ | ||
77 | <a-menu-item> | 77 | <a-menu-item> |
78 | <a @click="handleDetail(record)">详情</a> | 78 | <a @click="handleDetail(record)">详情</a> |
79 | </a-menu-item> | 79 | </a-menu-item> |
80 | - <a-menu-item> | 80 | + <a-menu-item v-has="'materialArea:delete'"> |
81 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 81 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
82 | <a>删除</a> | 82 | <a>删除</a> |
83 | </a-popconfirm> | 83 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/MaterialList.vue
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | <!-- 操作按钮区域 --> | 39 | <!-- 操作按钮区域 --> |
40 | <div class="table-operator"> | 40 | <div class="table-operator"> |
41 | <a-button @click="batchPrint()" type="primary" >打印</a-button> | 41 | <a-button @click="batchPrint()" type="primary" >打印</a-button> |
42 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 42 | + <a-button v-has="'material:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
43 | <a-button type="primary" icon="download" @click="handleExportXls('物料管理')">导出</a-button> | 43 | <a-button type="primary" icon="download" @click="handleExportXls('物料管理')">导出</a-button> |
44 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 44 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
45 | <a-button type="primary" icon="import">导入</a-button> | 45 | <a-button type="primary" icon="import">导入</a-button> |
@@ -47,7 +47,7 @@ | @@ -47,7 +47,7 @@ | ||
47 | <!-- 高级查询区域 --> | 47 | <!-- 高级查询区域 --> |
48 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 48 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
49 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 49 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
50 | - <a-menu slot="overlay"> | 50 | + <a-menu slot="overlay" v-has="'material:deleteBatch'"> |
51 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 51 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
52 | </a-menu> | 52 | </a-menu> |
53 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 53 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -96,7 +96,7 @@ | @@ -96,7 +96,7 @@ | ||
96 | </template> | 96 | </template> |
97 | 97 | ||
98 | <span slot="action" slot-scope="text, record"> | 98 | <span slot="action" slot-scope="text, record"> |
99 | - <a @click="handleEdit(record)">编辑</a> | 99 | + <a v-has="'material:edit'" @click="handleEdit(record)">编辑</a> |
100 | 100 | ||
101 | <a-divider type="vertical" /> | 101 | <a-divider type="vertical" /> |
102 | <a-dropdown> | 102 | <a-dropdown> |
@@ -105,7 +105,7 @@ | @@ -105,7 +105,7 @@ | ||
105 | <a-menu-item> | 105 | <a-menu-item> |
106 | <a @click="handleDetail(record)">详情</a> | 106 | <a @click="handleDetail(record)">详情</a> |
107 | </a-menu-item> | 107 | </a-menu-item> |
108 | - <a-menu-item> | 108 | + <a-menu-item v-has="'material:delete'"> |
109 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 109 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
110 | <a>删除</a> | 110 | <a>删除</a> |
111 | </a-popconfirm> | 111 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/MaterialMultipleList.vue
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | 11 | ||
12 | <!-- 操作按钮区域 --> | 12 | <!-- 操作按钮区域 --> |
13 | <div class="table-operator"> | 13 | <div class="table-operator"> |
14 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 14 | + <a-button v-has="'materialMultiple:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
15 | <a-button type="primary" icon="download" @click="handleExportXls('物料单位换算')">导出</a-button> | 15 | <a-button type="primary" icon="download" @click="handleExportXls('物料单位换算')">导出</a-button> |
16 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 16 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
17 | <a-button type="primary" icon="import">导入</a-button> | 17 | <a-button type="primary" icon="import">导入</a-button> |
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | <!-- 高级查询区域 --> | 19 | <!-- 高级查询区域 --> |
20 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 20 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
21 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 21 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
22 | - <a-menu slot="overlay"> | 22 | + <a-menu slot="overlay" v-has="'materialMultiple:deleteBatch'"> |
23 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 23 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
24 | </a-menu> | 24 | </a-menu> |
25 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 25 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -68,7 +68,7 @@ | @@ -68,7 +68,7 @@ | ||
68 | </template> | 68 | </template> |
69 | 69 | ||
70 | <span slot="action" slot-scope="text, record"> | 70 | <span slot="action" slot-scope="text, record"> |
71 | - <a @click="handleEdit(record)">编辑</a> | 71 | + <a v-has="'materialMultiple:edit'" @click="handleEdit(record)">编辑</a> |
72 | 72 | ||
73 | <a-divider type="vertical" /> | 73 | <a-divider type="vertical" /> |
74 | <a-dropdown> | 74 | <a-dropdown> |
@@ -77,7 +77,7 @@ | @@ -77,7 +77,7 @@ | ||
77 | <a-menu-item> | 77 | <a-menu-item> |
78 | <a @click="handleDetail(record)">详情</a> | 78 | <a @click="handleDetail(record)">详情</a> |
79 | </a-menu-item> | 79 | </a-menu-item> |
80 | - <a-menu-item> | 80 | + <a-menu-item v-has="'materialMultiple:delete'"> |
81 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 81 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
82 | <a>删除</a> | 82 | <a>删除</a> |
83 | </a-popconfirm> | 83 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/MaterialTypeList.vue
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | 31 | ||
32 | <!-- 操作按钮区域 --> | 32 | <!-- 操作按钮区域 --> |
33 | <div class="table-operator"> | 33 | <div class="table-operator"> |
34 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 34 | + <a-button v-has="'materialType:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
35 | <a-button type="primary" icon="download" @click="handleExportXls('物料类别')">导出</a-button> | 35 | <a-button type="primary" icon="download" @click="handleExportXls('物料类别')">导出</a-button> |
36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
37 | <a-button type="primary" icon="import">导入</a-button> | 37 | <a-button type="primary" icon="import">导入</a-button> |
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | <!-- 高级查询区域 --> | 39 | <!-- 高级查询区域 --> |
40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
41 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 41 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
42 | - <a-menu slot="overlay"> | 42 | + <a-menu slot="overlay" v-has="'materialType:deleteBatch'"> |
43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
44 | </a-menu> | 44 | </a-menu> |
45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -88,7 +88,7 @@ | @@ -88,7 +88,7 @@ | ||
88 | </template> | 88 | </template> |
89 | 89 | ||
90 | <span slot="action" slot-scope="text, record"> | 90 | <span slot="action" slot-scope="text, record"> |
91 | - <a @click="handleEdit(record)">编辑</a> | 91 | + <a v-has="'materialType:edit'" @click="handleEdit(record)">编辑</a> |
92 | 92 | ||
93 | <a-divider type="vertical" /> | 93 | <a-divider type="vertical" /> |
94 | <a-dropdown> | 94 | <a-dropdown> |
@@ -97,7 +97,7 @@ | @@ -97,7 +97,7 @@ | ||
97 | <a-menu-item> | 97 | <a-menu-item> |
98 | <a @click="handleDetail(record)">详情</a> | 98 | <a @click="handleDetail(record)">详情</a> |
99 | </a-menu-item> | 99 | </a-menu-item> |
100 | - <a-menu-item> | 100 | + <a-menu-item v-has="'materialType:delete'"> |
101 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 101 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
102 | <a>删除</a> | 102 | <a>删除</a> |
103 | </a-popconfirm> | 103 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/MaterialUnitList.vue
@@ -38,7 +38,7 @@ | @@ -38,7 +38,7 @@ | ||
38 | 38 | ||
39 | <!-- 操作按钮区域 --> | 39 | <!-- 操作按钮区域 --> |
40 | <div class="table-operator"> | 40 | <div class="table-operator"> |
41 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 41 | + <a-button v-has="'materialUnit:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
42 | <a-button type="primary" icon="download" @click="handleExportXls('物料单位')">导出</a-button> | 42 | <a-button type="primary" icon="download" @click="handleExportXls('物料单位')">导出</a-button> |
43 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 43 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
44 | <a-button type="primary" icon="import">导入</a-button> | 44 | <a-button type="primary" icon="import">导入</a-button> |
@@ -46,7 +46,7 @@ | @@ -46,7 +46,7 @@ | ||
46 | <!-- 高级查询区域 --> | 46 | <!-- 高级查询区域 --> |
47 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 47 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
48 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 48 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
49 | - <a-menu slot="overlay"> | 49 | + <a-menu slot="overlay" v-has="'materialUnit:deleteBatch'"> |
50 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 50 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
51 | </a-menu> | 51 | </a-menu> |
52 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 52 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -95,7 +95,7 @@ | @@ -95,7 +95,7 @@ | ||
95 | </template> | 95 | </template> |
96 | 96 | ||
97 | <span slot="action" slot-scope="text, record"> | 97 | <span slot="action" slot-scope="text, record"> |
98 | - <a @click="handleEdit(record)">编辑</a> | 98 | + <a v-has="'materialUnit:edit'" @click="handleEdit(record)">编辑</a> |
99 | 99 | ||
100 | <a-divider type="vertical" /> | 100 | <a-divider type="vertical" /> |
101 | <a-dropdown> | 101 | <a-dropdown> |
@@ -104,7 +104,7 @@ | @@ -104,7 +104,7 @@ | ||
104 | <a-menu-item> | 104 | <a-menu-item> |
105 | <a @click="handleDetail(record)">详情</a> | 105 | <a @click="handleDetail(record)">详情</a> |
106 | </a-menu-item> | 106 | </a-menu-item> |
107 | - <a-menu-item> | 107 | + <a-menu-item v-has="'materialUnit:delete'"> |
108 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 108 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
109 | <a>删除</a> | 109 | <a>删除</a> |
110 | </a-popconfirm> | 110 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/MaterialWarningList.vue
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | 31 | ||
32 | <!-- 操作按钮区域 --> | 32 | <!-- 操作按钮区域 --> |
33 | <div class="table-operator"> | 33 | <div class="table-operator"> |
34 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 34 | + <a-button v-has="'materialWarning:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
35 | <a-button type="primary" icon="download" @click="handleExportXls('物料预警')">导出</a-button> | 35 | <a-button type="primary" icon="download" @click="handleExportXls('物料预警')">导出</a-button> |
36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
37 | <a-button type="primary" icon="import">导入</a-button> | 37 | <a-button type="primary" icon="import">导入</a-button> |
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | <!-- 高级查询区域 --> | 39 | <!-- 高级查询区域 --> |
40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
41 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 41 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
42 | - <a-menu slot="overlay"> | 42 | + <a-menu slot="overlay" v-has="'materialWarning:deleteBatch'"> |
43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
44 | </a-menu> | 44 | </a-menu> |
45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -88,7 +88,7 @@ | @@ -88,7 +88,7 @@ | ||
88 | </template> | 88 | </template> |
89 | 89 | ||
90 | <span slot="action" slot-scope="text, record"> | 90 | <span slot="action" slot-scope="text, record"> |
91 | - <a @click="handleEdit(record)">编辑</a> | 91 | + <a v-has="'materialWarning:edit'" @click="handleEdit(record)">编辑</a> |
92 | 92 | ||
93 | <a-divider type="vertical" /> | 93 | <a-divider type="vertical" /> |
94 | <a-dropdown> | 94 | <a-dropdown> |
@@ -97,7 +97,7 @@ | @@ -97,7 +97,7 @@ | ||
97 | <a-menu-item> | 97 | <a-menu-item> |
98 | <a @click="handleDetail(record)">详情</a> | 98 | <a @click="handleDetail(record)">详情</a> |
99 | </a-menu-item> | 99 | </a-menu-item> |
100 | - <a-menu-item> | 100 | + <a-menu-item v-has="'materialWarning:delete'"> |
101 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 101 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
102 | <a>删除</a> | 102 | <a>删除</a> |
103 | </a-popconfirm> | 103 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/ParameterConfigurationList.vue
@@ -38,7 +38,7 @@ | @@ -38,7 +38,7 @@ | ||
38 | 38 | ||
39 | <!-- 操作按钮区域 --> | 39 | <!-- 操作按钮区域 --> |
40 | <div class="table-operator"> | 40 | <div class="table-operator"> |
41 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 41 | + <a-button @click="handleAdd" v-has="'ParameterConfiguration:add'" type="primary" icon="plus">新增</a-button> |
42 | <a-button type="primary" icon="download" @click="handleExportXls('参数配置')">导出</a-button> | 42 | <a-button type="primary" icon="download" @click="handleExportXls('参数配置')">导出</a-button> |
43 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 43 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
44 | <a-button type="primary" icon="import">导入</a-button> | 44 | <a-button type="primary" icon="import">导入</a-button> |
@@ -46,7 +46,7 @@ | @@ -46,7 +46,7 @@ | ||
46 | <!-- 高级查询区域 --> | 46 | <!-- 高级查询区域 --> |
47 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 47 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
48 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 48 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
49 | - <a-menu slot="overlay"> | 49 | + <a-menu slot="overlay" v-has="'ParameterConfiguration:deleteBatch'"> |
50 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 50 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
51 | </a-menu> | 51 | </a-menu> |
52 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 52 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -95,7 +95,7 @@ | @@ -95,7 +95,7 @@ | ||
95 | </template> | 95 | </template> |
96 | 96 | ||
97 | <span slot="action" slot-scope="text, record"> | 97 | <span slot="action" slot-scope="text, record"> |
98 | - <a @click="handleEdit(record)">编辑</a> | 98 | + <a v-has="'ParameterConfiguration:edit'" @click="handleEdit(record)">编辑</a> |
99 | 99 | ||
100 | <a-divider type="vertical" /> | 100 | <a-divider type="vertical" /> |
101 | <a-dropdown> | 101 | <a-dropdown> |
@@ -104,7 +104,7 @@ | @@ -104,7 +104,7 @@ | ||
104 | <a-menu-item> | 104 | <a-menu-item> |
105 | <a @click="handleDetail(record)">详情</a> | 105 | <a @click="handleDetail(record)">详情</a> |
106 | </a-menu-item> | 106 | </a-menu-item> |
107 | - <a-menu-item> | 107 | + <a-menu-item v-has="'ParameterConfiguration:delete'"> |
108 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 108 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
109 | <a>删除</a> | 109 | <a>删除</a> |
110 | </a-popconfirm> | 110 | </a-popconfirm> |
@@ -203,7 +203,7 @@ | @@ -203,7 +203,7 @@ | ||
203 | deleteBatch: "/config/parameterConfiguration/deleteBatch", | 203 | deleteBatch: "/config/parameterConfiguration/deleteBatch", |
204 | exportXlsUrl: "/config/parameterConfiguration/exportXls", | 204 | exportXlsUrl: "/config/parameterConfiguration/exportXls", |
205 | importExcelUrl: "config/parameterConfiguration/importExcel", | 205 | importExcelUrl: "config/parameterConfiguration/importExcel", |
206 | - | 206 | + |
207 | }, | 207 | }, |
208 | dictOptions:{}, | 208 | dictOptions:{}, |
209 | superFieldList:[], | 209 | superFieldList:[], |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/PortList.vue
@@ -38,7 +38,7 @@ | @@ -38,7 +38,7 @@ | ||
38 | 38 | ||
39 | <!-- 操作按钮区域 --> | 39 | <!-- 操作按钮区域 --> |
40 | <div class="table-operator"> | 40 | <div class="table-operator"> |
41 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 41 | + <a-button v-has="'port:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
42 | <a-button type="primary" icon="download" @click="handleExportXls('出入口')">导出</a-button> | 42 | <a-button type="primary" icon="download" @click="handleExportXls('出入口')">导出</a-button> |
43 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 43 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
44 | <a-button type="primary" icon="import">导入</a-button> | 44 | <a-button type="primary" icon="import">导入</a-button> |
@@ -46,7 +46,7 @@ | @@ -46,7 +46,7 @@ | ||
46 | <!-- 高级查询区域 --> | 46 | <!-- 高级查询区域 --> |
47 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 47 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
48 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 48 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
49 | - <a-menu slot="overlay"> | 49 | + <a-menu slot="overlay" v-has="'port:deleteBatch'"> |
50 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 50 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
51 | </a-menu> | 51 | </a-menu> |
52 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 52 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -101,7 +101,7 @@ | @@ -101,7 +101,7 @@ | ||
101 | </template> | 101 | </template> |
102 | 102 | ||
103 | <span slot="action" slot-scope="text, record"> | 103 | <span slot="action" slot-scope="text, record"> |
104 | - <a @click="handleEdit(record)">编辑</a> | 104 | + <a v-has="'port:edit'" @click="handleEdit(record)">编辑</a> |
105 | 105 | ||
106 | <a-divider type="vertical" /> | 106 | <a-divider type="vertical" /> |
107 | <a-dropdown> | 107 | <a-dropdown> |
@@ -110,7 +110,7 @@ | @@ -110,7 +110,7 @@ | ||
110 | <a-menu-item> | 110 | <a-menu-item> |
111 | <a @click="handleDetail(record)">详情</a> | 111 | <a @click="handleDetail(record)">详情</a> |
112 | </a-menu-item> | 112 | </a-menu-item> |
113 | - <a-menu-item> | 113 | + <a-menu-item v-has="'port:delete'"> |
114 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 114 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
115 | <a>删除</a> | 115 | <a>删除</a> |
116 | </a-popconfirm> | 116 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/ReceiptTypeList.vue
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | 31 | ||
32 | <!-- 操作按钮区域 --> | 32 | <!-- 操作按钮区域 --> |
33 | <div class="table-operator"> | 33 | <div class="table-operator"> |
34 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 34 | + <a-button v-has="'receiptType:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
35 | <a-button type="primary" icon="download" @click="handleExportXls('入库单类型')">导出</a-button> | 35 | <a-button type="primary" icon="download" @click="handleExportXls('入库单类型')">导出</a-button> |
36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
37 | <a-button type="primary" icon="import">导入</a-button> | 37 | <a-button type="primary" icon="import">导入</a-button> |
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | <!-- 高级查询区域 --> | 39 | <!-- 高级查询区域 --> |
40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
41 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 41 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
42 | - <a-menu slot="overlay"> | 42 | + <a-menu slot="overlay" v-has="'receiptType:deleteBatch'"> |
43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
44 | </a-menu> | 44 | </a-menu> |
45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -88,7 +88,7 @@ | @@ -88,7 +88,7 @@ | ||
88 | </template> | 88 | </template> |
89 | 89 | ||
90 | <span slot="action" slot-scope="text, record"> | 90 | <span slot="action" slot-scope="text, record"> |
91 | - <a @click="handleEdit(record)">编辑</a> | 91 | + <a v-has="'receiptType:edit'" @click="handleEdit(record)">编辑</a> |
92 | 92 | ||
93 | <a-divider type="vertical" /> | 93 | <a-divider type="vertical" /> |
94 | <a-dropdown> | 94 | <a-dropdown> |
@@ -97,7 +97,7 @@ | @@ -97,7 +97,7 @@ | ||
97 | <a-menu-item> | 97 | <a-menu-item> |
98 | <a @click="handleDetail(record)">详情</a> | 98 | <a @click="handleDetail(record)">详情</a> |
99 | </a-menu-item> | 99 | </a-menu-item> |
100 | - <a-menu-item> | 100 | + <a-menu-item v-has="'receiptType:delete'"> |
101 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 101 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
102 | <a>删除</a> | 102 | <a>删除</a> |
103 | </a-popconfirm> | 103 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/ShipmentTypeList.vue
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | 31 | ||
32 | <!-- 操作按钮区域 --> | 32 | <!-- 操作按钮区域 --> |
33 | <div class="table-operator"> | 33 | <div class="table-operator"> |
34 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 34 | + <a-button @click="handleAdd" v-has="'shipmentType:add'" type="primary" icon="plus">新增</a-button> |
35 | <a-button type="primary" icon="download" @click="handleExportXls('出库单类型')">导出</a-button> | 35 | <a-button type="primary" icon="download" @click="handleExportXls('出库单类型')">导出</a-button> |
36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
37 | <a-button type="primary" icon="import">导入</a-button> | 37 | <a-button type="primary" icon="import">导入</a-button> |
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | <!-- 高级查询区域 --> | 39 | <!-- 高级查询区域 --> |
40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
41 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 41 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
42 | - <a-menu slot="overlay"> | 42 | + <a-menu slot="overlay" v-has="'shipmentType:deleteBatch'"> |
43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
44 | </a-menu> | 44 | </a-menu> |
45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -88,7 +88,7 @@ | @@ -88,7 +88,7 @@ | ||
88 | </template> | 88 | </template> |
89 | 89 | ||
90 | <span slot="action" slot-scope="text, record"> | 90 | <span slot="action" slot-scope="text, record"> |
91 | - <a @click="handleEdit(record)">编辑</a> | 91 | + <a v-has="'shipmentType:edit'" @click="handleEdit(record)">编辑</a> |
92 | 92 | ||
93 | <a-divider type="vertical" /> | 93 | <a-divider type="vertical" /> |
94 | <a-dropdown> | 94 | <a-dropdown> |
@@ -97,7 +97,7 @@ | @@ -97,7 +97,7 @@ | ||
97 | <a-menu-item> | 97 | <a-menu-item> |
98 | <a @click="handleDetail(record)">详情</a> | 98 | <a @click="handleDetail(record)">详情</a> |
99 | </a-menu-item> | 99 | </a-menu-item> |
100 | - <a-menu-item> | 100 | + <a-menu-item v-has="'shipmentType:delete'"> |
101 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 101 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
102 | <a>删除</a> | 102 | <a>删除</a> |
103 | </a-popconfirm> | 103 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/SupplierList.vue
@@ -38,7 +38,7 @@ | @@ -38,7 +38,7 @@ | ||
38 | 38 | ||
39 | <!-- 操作按钮区域 --> | 39 | <!-- 操作按钮区域 --> |
40 | <div class="table-operator"> | 40 | <div class="table-operator"> |
41 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 41 | + <a-button v-has="'supplier:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
42 | <a-button type="primary" icon="download" @click="handleExportXls('供应商管理')">导出</a-button> | 42 | <a-button type="primary" icon="download" @click="handleExportXls('供应商管理')">导出</a-button> |
43 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 43 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
44 | <a-button type="primary" icon="import">导入</a-button> | 44 | <a-button type="primary" icon="import">导入</a-button> |
@@ -46,7 +46,7 @@ | @@ -46,7 +46,7 @@ | ||
46 | <!-- 高级查询区域 --> | 46 | <!-- 高级查询区域 --> |
47 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 47 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
48 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 48 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
49 | - <a-menu slot="overlay"> | 49 | + <a-menu slot="overlay" v-has="'supplier:deleteBatch'"> |
50 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 50 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
51 | </a-menu> | 51 | </a-menu> |
52 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 52 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -95,7 +95,7 @@ | @@ -95,7 +95,7 @@ | ||
95 | </template> | 95 | </template> |
96 | 96 | ||
97 | <span slot="action" slot-scope="text, record"> | 97 | <span slot="action" slot-scope="text, record"> |
98 | - <a @click="handleEdit(record)">编辑</a> | 98 | + <a v-has="'supplier:edit'" @click="handleEdit(record)">编辑</a> |
99 | 99 | ||
100 | <a-divider type="vertical" /> | 100 | <a-divider type="vertical" /> |
101 | <a-dropdown> | 101 | <a-dropdown> |
@@ -104,7 +104,7 @@ | @@ -104,7 +104,7 @@ | ||
104 | <a-menu-item> | 104 | <a-menu-item> |
105 | <a @click="handleDetail(record)">详情</a> | 105 | <a @click="handleDetail(record)">详情</a> |
106 | </a-menu-item> | 106 | </a-menu-item> |
107 | - <a-menu-item> | 107 | + <a-menu-item v-has="'supplier:delete'"> |
108 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 108 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
109 | <a>删除</a> | 109 | <a>删除</a> |
110 | </a-popconfirm> | 110 | </a-popconfirm> |
@@ -219,7 +219,7 @@ | @@ -219,7 +219,7 @@ | ||
219 | deleteBatch: "/config/supplier/deleteBatch", | 219 | deleteBatch: "/config/supplier/deleteBatch", |
220 | exportXlsUrl: "/config/supplier/exportXls", | 220 | exportXlsUrl: "/config/supplier/exportXls", |
221 | importExcelUrl: "config/supplier/importExcel", | 221 | importExcelUrl: "config/supplier/importExcel", |
222 | - | 222 | + |
223 | }, | 223 | }, |
224 | dictOptions:{}, | 224 | dictOptions:{}, |
225 | superFieldList:[], | 225 | superFieldList:[], |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/SysUserWarehouseList.vue
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | 11 | ||
12 | <!-- 操作按钮区域 --> | 12 | <!-- 操作按钮区域 --> |
13 | <div class="table-operator"> | 13 | <div class="table-operator"> |
14 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 14 | + <a-button v-has="'sysUserWarehouse:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
15 | <a-button type="primary" icon="download" @click="handleExportXls('用户仓库关系表')">导出</a-button> | 15 | <a-button type="primary" icon="download" @click="handleExportXls('用户仓库关系表')">导出</a-button> |
16 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 16 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
17 | <a-button type="primary" icon="import">导入</a-button> | 17 | <a-button type="primary" icon="import">导入</a-button> |
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | <!-- 高级查询区域 --> | 19 | <!-- 高级查询区域 --> |
20 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 20 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
21 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 21 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
22 | - <a-menu slot="overlay"> | 22 | + <a-menu slot="overlay" v-has="'sysUserWarehouse:deleteBatch'"> |
23 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 23 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
24 | </a-menu> | 24 | </a-menu> |
25 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 25 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -68,7 +68,7 @@ | @@ -68,7 +68,7 @@ | ||
68 | </template> | 68 | </template> |
69 | 69 | ||
70 | <span slot="action" slot-scope="text, record"> | 70 | <span slot="action" slot-scope="text, record"> |
71 | - <a @click="handleEdit(record)">编辑</a> | 71 | + <a v-has="'sysUserWarehouse:edit'" @click="handleEdit(record)">编辑</a> |
72 | 72 | ||
73 | <a-divider type="vertical" /> | 73 | <a-divider type="vertical" /> |
74 | <a-dropdown> | 74 | <a-dropdown> |
@@ -77,7 +77,7 @@ | @@ -77,7 +77,7 @@ | ||
77 | <a-menu-item> | 77 | <a-menu-item> |
78 | <a @click="handleDetail(record)">详情</a> | 78 | <a @click="handleDetail(record)">详情</a> |
79 | </a-menu-item> | 79 | </a-menu-item> |
80 | - <a-menu-item> | 80 | + <a-menu-item v-has="'sysUserWarehouse:delete'"> |
81 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 81 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
82 | <a>删除</a> | 82 | <a>删除</a> |
83 | </a-popconfirm> | 83 | </a-popconfirm> |
@@ -151,7 +151,7 @@ | @@ -151,7 +151,7 @@ | ||
151 | deleteBatch: "/config/sysUserWarehouse/deleteBatch", | 151 | deleteBatch: "/config/sysUserWarehouse/deleteBatch", |
152 | exportXlsUrl: "/config/sysUserWarehouse/exportXls", | 152 | exportXlsUrl: "/config/sysUserWarehouse/exportXls", |
153 | importExcelUrl: "config/sysUserWarehouse/importExcel", | 153 | importExcelUrl: "config/sysUserWarehouse/importExcel", |
154 | - | 154 | + |
155 | }, | 155 | }, |
156 | dictOptions:{}, | 156 | dictOptions:{}, |
157 | superFieldList:[], | 157 | superFieldList:[], |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/WarehouseList.vue
@@ -95,7 +95,7 @@ | @@ -95,7 +95,7 @@ | ||
95 | </template> | 95 | </template> |
96 | 96 | ||
97 | <span slot="action" slot-scope="text, record"> | 97 | <span slot="action" slot-scope="text, record"> |
98 | - <a @click="handleEdit(record)">编辑</a> | 98 | + <a v-has="'warehouse:edit'" @click="handleEdit(record)">编辑</a> |
99 | 99 | ||
100 | <a-divider type="vertical" /> | 100 | <a-divider type="vertical" /> |
101 | <a-dropdown> | 101 | <a-dropdown> |
@@ -104,7 +104,7 @@ | @@ -104,7 +104,7 @@ | ||
104 | <a-menu-item> | 104 | <a-menu-item> |
105 | <a @click="handleDetail(record)">详情</a> | 105 | <a @click="handleDetail(record)">详情</a> |
106 | </a-menu-item> | 106 | </a-menu-item> |
107 | - <a-menu-item> | 107 | + <a-menu-item v-has="'warehouse:delete'"> |
108 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 108 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
109 | <a>删除</a> | 109 | <a>删除</a> |
110 | </a-popconfirm> | 110 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/config/ZoneList.vue
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | 31 | ||
32 | <!-- 操作按钮区域 --> | 32 | <!-- 操作按钮区域 --> |
33 | <div class="table-operator"> | 33 | <div class="table-operator"> |
34 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 34 | + <a-button v-has="'zone:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
35 | <a-button type="primary" icon="download" @click="handleExportXls('库区管理')">导出</a-button> | 35 | <a-button type="primary" icon="download" @click="handleExportXls('库区管理')">导出</a-button> |
36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 36 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
37 | <a-button type="primary" icon="import">导入</a-button> | 37 | <a-button type="primary" icon="import">导入</a-button> |
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | <!-- 高级查询区域 --> | 39 | <!-- 高级查询区域 --> |
40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 40 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
41 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 41 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
42 | - <a-menu slot="overlay"> | 42 | + <a-menu slot="overlay" v-has="'zone:deleteBatch'"> |
43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 43 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
44 | </a-menu> | 44 | </a-menu> |
45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 45 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -94,7 +94,7 @@ | @@ -94,7 +94,7 @@ | ||
94 | </template> | 94 | </template> |
95 | 95 | ||
96 | <span slot="action" slot-scope="text, record"> | 96 | <span slot="action" slot-scope="text, record"> |
97 | - <a @click="handleEdit(record)">编辑</a> | 97 | + <a v-has="'zone:edit'" @click="handleEdit(record)">编辑</a> |
98 | 98 | ||
99 | <a-divider type="vertical" /> | 99 | <a-divider type="vertical" /> |
100 | <a-dropdown> | 100 | <a-dropdown> |
@@ -103,7 +103,7 @@ | @@ -103,7 +103,7 @@ | ||
103 | <a-menu-item> | 103 | <a-menu-item> |
104 | <a @click="handleDetail(record)">详情</a> | 104 | <a @click="handleDetail(record)">详情</a> |
105 | </a-menu-item> | 105 | </a-menu-item> |
106 | - <a-menu-item> | 106 | + <a-menu-item v-has="'zone:delete'"> |
107 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 107 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
108 | <a>删除</a> | 108 | <a>删除</a> |
109 | </a-popconfirm> | 109 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/inventory/InventoryDetailList.vue
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <a-card :bordered="false" :class="'cust-erp-sub-tab'"> | 2 | <a-card :bordered="false" :class="'cust-erp-sub-tab'"> |
3 | <!-- 操作按钮区域 --> | 3 | <!-- 操作按钮区域 --> |
4 | <div class="table-operator" v-if="mainId"> | 4 | <div class="table-operator" v-if="mainId"> |
5 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 5 | + <a-button v-has="'inventoryDetail:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
6 | <a-button type="primary" icon="download" @click="handleExportXls('库存详情')">导出</a-button> | 6 | <a-button type="primary" icon="download" @click="handleExportXls('库存详情')">导出</a-button> |
7 | <a-upload | 7 | <a-upload |
8 | name="file" | 8 | name="file" |
@@ -14,7 +14,7 @@ | @@ -14,7 +14,7 @@ | ||
14 | <a-button type="primary" icon="import">导入</a-button> | 14 | <a-button type="primary" icon="import">导入</a-button> |
15 | </a-upload> | 15 | </a-upload> |
16 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 16 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
17 | - <a-menu slot="overlay"> | 17 | + <a-menu slot="overlay" v-has="'inventoryDetail:deleteBatch'"> |
18 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 18 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
19 | </a-menu> | 19 | </a-menu> |
20 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 20 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -68,10 +68,11 @@ | @@ -68,10 +68,11 @@ | ||
68 | </template> | 68 | </template> |
69 | 69 | ||
70 | <span slot="action" slot-scope="text, record"> | 70 | <span slot="action" slot-scope="text, record"> |
71 | - <a @click="handleEdit(record)">编辑</a> | 71 | + <a v-has="'inventoryDetail:edit'" @click="handleEdit(record)">编辑</a> |
72 | <a-divider type="vertical" /> | 72 | <a-divider type="vertical" /> |
73 | + | ||
73 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 74 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
74 | - <a>删除</a> | 75 | + <a v-has="'inventoryDetail:add'" >删除</a> |
75 | </a-popconfirm> | 76 | </a-popconfirm> |
76 | </span> | 77 | </span> |
77 | 78 |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/inventory/InventoryHeaderList.vue
@@ -55,7 +55,7 @@ | @@ -55,7 +55,7 @@ | ||
55 | 55 | ||
56 | <!-- 操作按钮区域 --> | 56 | <!-- 操作按钮区域 --> |
57 | <div class="table-operator"> | 57 | <div class="table-operator"> |
58 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 58 | + <a-button v-has="'inventoryHeader:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
59 | <a-button type="primary" icon="download" @click="handleExportXls('库存表')">导出</a-button> | 59 | <a-button type="primary" icon="download" @click="handleExportXls('库存表')">导出</a-button> |
60 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 60 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
61 | <a-button type="primary" icon="import">导入</a-button> | 61 | <a-button type="primary" icon="import">导入</a-button> |
@@ -107,12 +107,12 @@ | @@ -107,12 +107,12 @@ | ||
107 | </template> | 107 | </template> |
108 | 108 | ||
109 | <span slot="action" slot-scope="text, record"> | 109 | <span slot="action" slot-scope="text, record"> |
110 | - <a @click="handleEdit(record)">编辑</a> | 110 | + <a v-has="'inventoryHeader:edit'" @click="handleEdit(record)">编辑</a> |
111 | 111 | ||
112 | <a-divider type="vertical" /> | 112 | <a-divider type="vertical" /> |
113 | <a-dropdown> | 113 | <a-dropdown> |
114 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> | 114 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
115 | - <a-menu slot="overlay"> | 115 | + <a-menu slot="overlay" v-has="'inventoryHeader:delete'"> |
116 | <a-menu-item> | 116 | <a-menu-item> |
117 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 117 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
118 | <a>删除</a> | 118 | <a>删除</a> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/inventory/InventoryTransactionList.vue
@@ -92,7 +92,7 @@ | @@ -92,7 +92,7 @@ | ||
92 | 92 | ||
93 | <!-- 操作按钮区域 --> | 93 | <!-- 操作按钮区域 --> |
94 | <div class="table-operator"> | 94 | <div class="table-operator"> |
95 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 95 | + <a-button @click="handleAdd" v-has="'inventoryTransaction:add'" type="primary" icon="plus">新增</a-button> |
96 | <a-button type="primary" icon="download" @click="handleExportXls('库存交易记录')">导出</a-button> | 96 | <a-button type="primary" icon="download" @click="handleExportXls('库存交易记录')">导出</a-button> |
97 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 97 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
98 | <a-button type="primary" icon="import">导入</a-button> | 98 | <a-button type="primary" icon="import">导入</a-button> |
@@ -100,7 +100,7 @@ | @@ -100,7 +100,7 @@ | ||
100 | <!-- 高级查询区域 --> | 100 | <!-- 高级查询区域 --> |
101 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 101 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
102 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 102 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
103 | - <a-menu slot="overlay"> | 103 | + <a-menu slot="overlay" v-has="'inventoryTransaction:deleteBatch'"> |
104 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 104 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
105 | </a-menu> | 105 | </a-menu> |
106 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 106 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -155,7 +155,7 @@ | @@ -155,7 +155,7 @@ | ||
155 | </template> | 155 | </template> |
156 | 156 | ||
157 | <span slot="action" slot-scope="text, record"> | 157 | <span slot="action" slot-scope="text, record"> |
158 | - <a @click="handleEdit(record)">编辑</a> | 158 | + <a v-has="'inventoryTransaction:edit'" @click="handleEdit(record)">编辑</a> |
159 | 159 | ||
160 | <a-divider type="vertical" /> | 160 | <a-divider type="vertical" /> |
161 | <a-dropdown> | 161 | <a-dropdown> |
@@ -164,7 +164,7 @@ | @@ -164,7 +164,7 @@ | ||
164 | <a-menu-item> | 164 | <a-menu-item> |
165 | <a @click="handleDetail(record)">详情</a> | 165 | <a @click="handleDetail(record)">详情</a> |
166 | </a-menu-item> | 166 | </a-menu-item> |
167 | - <a-menu-item> | 167 | + <a-menu-item v-has="'inventoryTransaction:delete'"> |
168 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 168 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
169 | <a>删除</a> | 169 | <a>删除</a> |
170 | </a-popconfirm> | 170 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/monitor/ApiLogList.vue
@@ -70,7 +70,7 @@ | @@ -70,7 +70,7 @@ | ||
70 | 70 | ||
71 | <!-- 操作按钮区域 --> | 71 | <!-- 操作按钮区域 --> |
72 | <div class="table-operator"> | 72 | <div class="table-operator"> |
73 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 73 | + <a-button v-has="'apiLog:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
74 | <a-button type="primary" icon="download" @click="handleExportXls('接口日志')">导出</a-button> | 74 | <a-button type="primary" icon="download" @click="handleExportXls('接口日志')">导出</a-button> |
75 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 75 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
76 | <a-button type="primary" icon="import">导入</a-button> | 76 | <a-button type="primary" icon="import">导入</a-button> |
@@ -78,8 +78,8 @@ | @@ -78,8 +78,8 @@ | ||
78 | <!-- 高级查询区域 --> | 78 | <!-- 高级查询区域 --> |
79 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> | 79 | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
80 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 80 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
81 | - <a-menu slot="overlay"> | ||
82 | - <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 81 | + <a-menu slot="overlay" v-has="'apiLog:deleteBatch'"> |
82 | + <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | ||
83 | </a-menu> | 83 | </a-menu> |
84 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 84 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
85 | </a-dropdown> | 85 | </a-dropdown> |
@@ -127,7 +127,7 @@ | @@ -127,7 +127,7 @@ | ||
127 | </template> | 127 | </template> |
128 | 128 | ||
129 | <span slot="action" slot-scope="text, record"> | 129 | <span slot="action" slot-scope="text, record"> |
130 | - <a @click="handleEdit(record)">编辑</a> | 130 | + <a v-has="'apiLog:edit'" @click="handleEdit(record)">编辑</a> |
131 | 131 | ||
132 | <a-divider type="vertical" /> | 132 | <a-divider type="vertical" /> |
133 | <a-dropdown> | 133 | <a-dropdown> |
@@ -136,7 +136,7 @@ | @@ -136,7 +136,7 @@ | ||
136 | <a-menu-item> | 136 | <a-menu-item> |
137 | <a @click="handleDetail(record)">详情</a> | 137 | <a @click="handleDetail(record)">详情</a> |
138 | </a-menu-item> | 138 | </a-menu-item> |
139 | - <a-menu-item> | 139 | + <a-menu-item v-has="'apiLog:delete'"> |
140 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 140 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
141 | <a>删除</a> | 141 | <a>删除</a> |
142 | </a-popconfirm> | 142 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/monitor/modules/ApiLogForm.vue
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/receipt/ReceiptContainerDetailList.vue
@@ -56,7 +56,7 @@ | @@ -56,7 +56,7 @@ | ||
56 | 56 | ||
57 | <!-- 操作按钮区域 --> | 57 | <!-- 操作按钮区域 --> |
58 | <div class="table-operator" v-if="mainId"> | 58 | <div class="table-operator" v-if="mainId"> |
59 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 59 | + <a-button @click="handleAdd" v-has="'receiptContainerDetail:add'" type="primary" icon="plus">新增</a-button> |
60 | <a-button type="primary" icon="download" @click="handleExportXls('入库组盘详情')">导出</a-button> | 60 | <a-button type="primary" icon="download" @click="handleExportXls('入库组盘详情')">导出</a-button> |
61 | <a-upload | 61 | <a-upload |
62 | name="file" | 62 | name="file" |
@@ -68,7 +68,7 @@ | @@ -68,7 +68,7 @@ | ||
68 | <a-button type="primary" icon="import">导入</a-button> | 68 | <a-button type="primary" icon="import">导入</a-button> |
69 | </a-upload> | 69 | </a-upload> |
70 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 70 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
71 | - <a-menu slot="overlay"> | 71 | + <a-menu slot="overlay" v-has="'receiptContainerDetail:deleteBatch'"> |
72 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 72 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
73 | </a-menu> | 73 | </a-menu> |
74 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 74 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -121,10 +121,10 @@ | @@ -121,10 +121,10 @@ | ||
121 | </template> | 121 | </template> |
122 | 122 | ||
123 | <span slot="action" slot-scope="text, record"> | 123 | <span slot="action" slot-scope="text, record"> |
124 | - <a @click="handleEdit(record)">编辑</a> | 124 | + <a v-has="'receiptContainerDetail:edit'" @click="handleEdit(record)">编辑</a> |
125 | <a-divider type="vertical" /> | 125 | <a-divider type="vertical" /> |
126 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 126 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
127 | - <a>删除</a> | 127 | + <a v-has="'receiptContainerDetail:delete'">删除</a> |
128 | </a-popconfirm> | 128 | </a-popconfirm> |
129 | </span> | 129 | </span> |
130 | 130 |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/receipt/ReceiptContainerHeaderList.vue
@@ -60,7 +60,7 @@ | @@ -60,7 +60,7 @@ | ||
60 | 60 | ||
61 | <!-- 操作按钮区域 --> | 61 | <!-- 操作按钮区域 --> |
62 | <div class="table-operator"> | 62 | <div class="table-operator"> |
63 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 63 | + <a-button v-has="'receiptContainerHeader:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
64 | <a-button type="primary" icon="download" @click="handleExportXls('入库组盘')">导出</a-button> | 64 | <a-button type="primary" icon="download" @click="handleExportXls('入库组盘')">导出</a-button> |
65 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 65 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
66 | <a-button type="primary" icon="import">导入</a-button> | 66 | <a-button type="primary" icon="import">导入</a-button> |
@@ -112,7 +112,7 @@ | @@ -112,7 +112,7 @@ | ||
112 | </template> | 112 | </template> |
113 | 113 | ||
114 | <span slot="action" slot-scope="text, record"> | 114 | <span slot="action" slot-scope="text, record"> |
115 | - <a @click="handleEdit(record)">编辑</a> | 115 | + <a v-has="'receiptContainerHeader:edit'" @click="handleEdit(record)">编辑</a> |
116 | <a-divider type="vertical" /> | 116 | <a-divider type="vertical" /> |
117 | <a v-if="record.status == 0 && record.taskType == 200" @click="selectPort(record)" >生成任务</a> | 117 | <a v-if="record.status == 0 && record.taskType == 200" @click="selectPort(record)" >生成任务</a> |
118 | <a v-else-if="record.status == 0" @click="createTask(record)">生成任务</a> | 118 | <a v-else-if="record.status == 0" @click="createTask(record)">生成任务</a> |
@@ -120,7 +120,7 @@ | @@ -120,7 +120,7 @@ | ||
120 | <a-dropdown> | 120 | <a-dropdown> |
121 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> | 121 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
122 | <a-menu slot="overlay"> | 122 | <a-menu slot="overlay"> |
123 | - <a-menu-item> | 123 | + <a-menu-item v-has="'receiptContainerHeader:delete'"> |
124 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 124 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
125 | <a>删除</a> | 125 | <a>删除</a> |
126 | </a-popconfirm> | 126 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/receipt/ReceiptDetailList.vue
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <a-card :bordered="false" :class="'cust-erp-sub-tab'"> | 2 | <a-card :bordered="false" :class="'cust-erp-sub-tab'"> |
3 | <!-- 操作按钮区域 --> | 3 | <!-- 操作按钮区域 --> |
4 | <div class="table-operator" v-if="mainId"> | 4 | <div class="table-operator" v-if="mainId"> |
5 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 5 | + <a-button v-has="'receiptDetail:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
6 | <a-button type="primary" icon="download" @click="handleExportXls('入库单详情')">导出</a-button> | 6 | <a-button type="primary" icon="download" @click="handleExportXls('入库单详情')">导出</a-button> |
7 | <a-upload | 7 | <a-upload |
8 | name="file" | 8 | name="file" |
@@ -14,7 +14,7 @@ | @@ -14,7 +14,7 @@ | ||
14 | <a-button type="primary" icon="import">导入</a-button> | 14 | <a-button type="primary" icon="import">导入</a-button> |
15 | </a-upload> | 15 | </a-upload> |
16 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 16 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
17 | - <a-menu slot="overlay"> | 17 | + <a-menu slot="overlay" v-has="'receiptDetail:deleteBatch'" > |
18 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 18 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
19 | </a-menu> | 19 | </a-menu> |
20 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 20 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -62,10 +62,10 @@ | @@ -62,10 +62,10 @@ | ||
62 | </template> | 62 | </template> |
63 | 63 | ||
64 | <span slot="action" slot-scope="text, record"> | 64 | <span slot="action" slot-scope="text, record"> |
65 | - <a @click="edit(record)">编辑</a> | 65 | + <a v-has="'receiptDetail:edit'" @click="edit(record)">编辑</a> |
66 | <a-divider type="vertical" /> | 66 | <a-divider type="vertical" /> |
67 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 67 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
68 | - <a>删除</a> | 68 | + <a v-has="'receiptDetail:delete'" >删除</a> |
69 | </a-popconfirm> | 69 | </a-popconfirm> |
70 | </span> | 70 | </span> |
71 | 71 |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue
@@ -91,7 +91,7 @@ | @@ -91,7 +91,7 @@ | ||
91 | 91 | ||
92 | <!-- 操作按钮区域 --> | 92 | <!-- 操作按钮区域 --> |
93 | <div class="table-operator"> | 93 | <div class="table-operator"> |
94 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 94 | + <a-button v-has="'receiptHeader:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
95 | <a-button type="primary" icon="download" @click="handleExportXls('入库表主表')">导出</a-button> | 95 | <a-button type="primary" icon="download" @click="handleExportXls('入库表主表')">导出</a-button> |
96 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 96 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
97 | <a-button type="primary" icon="import">导入</a-button> | 97 | <a-button type="primary" icon="import">导入</a-button> |
@@ -161,14 +161,14 @@ | @@ -161,14 +161,14 @@ | ||
161 | </template> | 161 | </template> |
162 | 162 | ||
163 | <span slot="action" slot-scope="text, record"> | 163 | <span slot="action" slot-scope="text, record"> |
164 | - <a @click="handleEdit(record)">编辑</a> | 164 | + <a v-has="'receiptHeader:edit'" @click="handleEdit(record)">编辑</a> |
165 | <a-divider type="vertical" /> | 165 | <a-divider type="vertical" /> |
166 | <a v-if="record.lastStatus < 800" @click="receive(record)">组盘</a> | 166 | <a v-if="record.lastStatus < 800" @click="receive(record)">组盘</a> |
167 | <a-divider type="vertical" /> | 167 | <a-divider type="vertical" /> |
168 | <a-dropdown> | 168 | <a-dropdown> |
169 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> | 169 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
170 | <a-menu slot="overlay"> | 170 | <a-menu slot="overlay"> |
171 | - <a-menu-item> | 171 | + <a-menu-item v-has="'receiptHeader:delete'"> |
172 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 172 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
173 | <a>删除</a> | 173 | <a>删除</a> |
174 | </a-popconfirm> | 174 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/shipment/ShipmentContainerDetailList.vue
@@ -56,7 +56,7 @@ | @@ -56,7 +56,7 @@ | ||
56 | 56 | ||
57 | <!-- 操作按钮区域 --> | 57 | <!-- 操作按钮区域 --> |
58 | <div class="table-operator" v-if="mainId"> | 58 | <div class="table-operator" v-if="mainId"> |
59 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 59 | + <a-button v-has="'shipmentContainerDetail:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
60 | <a-button type="primary" icon="download" @click="handleExportXls('出库组盘详情')">导出</a-button> | 60 | <a-button type="primary" icon="download" @click="handleExportXls('出库组盘详情')">导出</a-button> |
61 | <a-upload | 61 | <a-upload |
62 | name="file" | 62 | name="file" |
@@ -68,7 +68,7 @@ | @@ -68,7 +68,7 @@ | ||
68 | <a-button type="primary" icon="import">导入</a-button> | 68 | <a-button type="primary" icon="import">导入</a-button> |
69 | </a-upload> | 69 | </a-upload> |
70 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 70 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
71 | - <a-menu slot="overlay"> | 71 | + <a-menu slot="overlay" v-has="'shipmentContainerDetail:deleteBatch'" > |
72 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 72 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
73 | </a-menu> | 73 | </a-menu> |
74 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 74 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -122,10 +122,10 @@ | @@ -122,10 +122,10 @@ | ||
122 | </template> | 122 | </template> |
123 | 123 | ||
124 | <span slot="action" slot-scope="text, record"> | 124 | <span slot="action" slot-scope="text, record"> |
125 | - <a @click="handleEdit(record)">编辑</a> | 125 | + <a v-has="'shipmentContainerDetail:edit'" @click="handleEdit(record)">编辑</a> |
126 | <a-divider type="vertical" /> | 126 | <a-divider type="vertical" /> |
127 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 127 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
128 | - <a>删除</a> | 128 | + <a v-has="'shipmentContainerDetail:delete'" >删除</a> |
129 | </a-popconfirm> | 129 | </a-popconfirm> |
130 | </span> | 130 | </span> |
131 | 131 |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/shipment/ShipmentContainerHeaderList.vue
@@ -65,7 +65,7 @@ | @@ -65,7 +65,7 @@ | ||
65 | 65 | ||
66 | <!-- 操作按钮区域 --> | 66 | <!-- 操作按钮区域 --> |
67 | <div class="table-operator"> | 67 | <div class="table-operator"> |
68 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 68 | + <a-button @click="handleAdd" v-has="'shipmentContainerHeader:add'" type="primary" icon="plus">新增</a-button> |
69 | <a-button type="primary" icon="download" @click="handleExportXls('出库组盘')">导出</a-button> | 69 | <a-button type="primary" icon="download" @click="handleExportXls('出库组盘')">导出</a-button> |
70 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 70 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
71 | <a-button type="primary" icon="import">导入</a-button> | 71 | <a-button type="primary" icon="import">导入</a-button> |
@@ -117,13 +117,13 @@ | @@ -117,13 +117,13 @@ | ||
117 | </template> | 117 | </template> |
118 | 118 | ||
119 | <span slot="action" slot-scope="text, record"> | 119 | <span slot="action" slot-scope="text, record"> |
120 | - <a @click="handleEdit(record)">编辑</a> | 120 | + <a v-has="'shipmentContainerHeader:edit'" @click="handleEdit(record)">编辑</a> |
121 | <a-divider type="vertical" /> | 121 | <a-divider type="vertical" /> |
122 | <a v-if="record.status == 0" @click="selectPort(record)">生成任务</a> | 122 | <a v-if="record.status == 0" @click="selectPort(record)">生成任务</a> |
123 | <a-divider type="vertical" /> | 123 | <a-divider type="vertical" /> |
124 | <a-dropdown> | 124 | <a-dropdown> |
125 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> | 125 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
126 | - <a-menu slot="overlay"> | 126 | + <a-menu slot="overlay" v-has="'shipmentContainerHeader:delete'" > |
127 | <a-menu-item> | 127 | <a-menu-item> |
128 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 128 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
129 | <a>删除</a> | 129 | <a>删除</a> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/shipment/ShipmentDetailList.vue
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <a-card :bordered="false" :class="'cust-erp-sub-tab'"> | 2 | <a-card :bordered="false" :class="'cust-erp-sub-tab'"> |
3 | <!-- 操作按钮区域 --> | 3 | <!-- 操作按钮区域 --> |
4 | <div class="table-operator" v-if="mainId"> | 4 | <div class="table-operator" v-if="mainId"> |
5 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 5 | + <a-button @click="handleAdd" v-has="'shipmentDetail:add'" type="primary" icon="plus">新增</a-button> |
6 | <a-button type="primary" icon="download" @click="handleExportXls('出库单详情')">导出</a-button> | 6 | <a-button type="primary" icon="download" @click="handleExportXls('出库单详情')">导出</a-button> |
7 | <a-upload | 7 | <a-upload |
8 | name="file" | 8 | name="file" |
@@ -14,7 +14,7 @@ | @@ -14,7 +14,7 @@ | ||
14 | <a-button type="primary" icon="import">导入</a-button> | 14 | <a-button type="primary" icon="import">导入</a-button> |
15 | </a-upload> | 15 | </a-upload> |
16 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 16 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
17 | - <a-menu slot="overlay"> | 17 | + <a-menu slot="overlay" v-has="'shipmentDetail:deleteBatch'"> |
18 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 18 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
19 | </a-menu> | 19 | </a-menu> |
20 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 20 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -64,10 +64,10 @@ | @@ -64,10 +64,10 @@ | ||
64 | <span slot="action" slot-scope="text, record"> | 64 | <span slot="action" slot-scope="text, record"> |
65 | <a @click="combine(record)">配盘</a> | 65 | <a @click="combine(record)">配盘</a> |
66 | <a-divider type="vertical" /> | 66 | <a-divider type="vertical" /> |
67 | - <a @click="edit(record)">编辑</a> | 67 | + <a v-has="'shipmentDetail:edit'" @click="edit(record)">编辑</a> |
68 | <a-divider type="vertical" /> | 68 | <a-divider type="vertical" /> |
69 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 69 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
70 | - <a>删除</a> | 70 | + <a v-has="'shipmentDetail:delete'">删除</a> |
71 | </a-popconfirm> | 71 | </a-popconfirm> |
72 | </span> | 72 | </span> |
73 | 73 |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue
@@ -96,7 +96,7 @@ | @@ -96,7 +96,7 @@ | ||
96 | 96 | ||
97 | <!-- 操作按钮区域 --> | 97 | <!-- 操作按钮区域 --> |
98 | <div class="table-operator"> | 98 | <div class="table-operator"> |
99 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 99 | + <a-button v-has="'shipmentHeader:add'" @click="handleAdd" type="primary" icon="plus">新增</a-button> |
100 | <a-button type="primary" icon="download" @click="handleExportXls('出库单')">导出</a-button> | 100 | <a-button type="primary" icon="download" @click="handleExportXls('出库单')">导出</a-button> |
101 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | 101 | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
102 | <a-button type="primary" icon="import">导入</a-button> | 102 | <a-button type="primary" icon="import">导入</a-button> |
@@ -169,12 +169,12 @@ | @@ -169,12 +169,12 @@ | ||
169 | <a-divider type="vertical" /> | 169 | <a-divider type="vertical" /> |
170 | <a v-if="record.lastStatus < 800" @click="autoShipmentCombine(record)">自动配盘</a> | 170 | <a v-if="record.lastStatus < 800" @click="autoShipmentCombine(record)">自动配盘</a> |
171 | <a-divider type="vertical" /> | 171 | <a-divider type="vertical" /> |
172 | - <a @click="handleEdit(record)">编辑</a> | 172 | + <a v-has="'shipmentHeader:edit'" @click="handleEdit(record)">编辑</a> |
173 | 173 | ||
174 | <a-divider type="vertical" /> | 174 | <a-divider type="vertical" /> |
175 | <a-dropdown> | 175 | <a-dropdown> |
176 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> | 176 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
177 | - <a-menu slot="overlay"> | 177 | + <a-menu slot="overlay" v-has="'shipmentHeader:delete'"> |
178 | <a-menu-item> | 178 | <a-menu-item> |
179 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 179 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
180 | <a>删除</a> | 180 | <a>删除</a> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/task/CircleTaskHeaderList.vue
@@ -93,7 +93,7 @@ | @@ -93,7 +93,7 @@ | ||
93 | 93 | ||
94 | <!-- 操作按钮区域 --> | 94 | <!-- 操作按钮区域 --> |
95 | <div class="table-operator"> | 95 | <div class="table-operator"> |
96 | - <a-button @click="createCheckOut()" type="primary">出库查看</a-button> | 96 | + <a-button v-has="'taskHeader:checkOut'" @click="createCheckOut()" type="primary">出库查看</a-button> |
97 | <!-- <a-button type="primary" icon="download" @click="handleExportXls('任务表')">导出</a-button>--> | 97 | <!-- <a-button type="primary" icon="download" @click="handleExportXls('任务表')">导出</a-button>--> |
98 | <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">--> | 98 | <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">--> |
99 | <!-- <a-button type="primary" icon="import">导入</a-button>--> | 99 | <!-- <a-button type="primary" icon="import">导入</a-button>--> |
@@ -151,17 +151,17 @@ | @@ -151,17 +151,17 @@ | ||
151 | </template> | 151 | </template> |
152 | 152 | ||
153 | <span slot="action" slot-scope="text, record"> | 153 | <span slot="action" slot-scope="text, record"> |
154 | - <a v-if="record.status == 1" @click="executeTask(record)">执行</a> | 154 | + <a v-if="record.status == 1" v-has="'taskHeader:executeTask'" @click="executeTask(record)">执行</a> |
155 | <a-divider type="vertical" /> | 155 | <a-divider type="vertical" /> |
156 | - <a v-if="record.status < 100" @click="completeTask(record)">完成</a> | 156 | + <a v-if="record.status < 100" v-has="'taskHeader:completeTask'" @click="completeTask(record)">完成</a> |
157 | <a-divider type="vertical" /> | 157 | <a-divider type="vertical" /> |
158 | <a-dropdown> | 158 | <a-dropdown> |
159 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> | 159 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
160 | <a-menu slot="overlay"> | 160 | <a-menu slot="overlay"> |
161 | - <a-menu-item> | 161 | + <a-menu-item v-has="'taskHeader:edit'"> |
162 | <a @click="handleEdit(record)">编辑</a> | 162 | <a @click="handleEdit(record)">编辑</a> |
163 | </a-menu-item> | 163 | </a-menu-item> |
164 | - <a-menu-item> | 164 | + <a-menu-item v-has="'taskHeader:delete'" > |
165 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 165 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
166 | <a>删除</a> | 166 | <a>删除</a> |
167 | </a-popconfirm> | 167 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/task/ReceiptTaskHeaderList.vue
@@ -93,8 +93,8 @@ | @@ -93,8 +93,8 @@ | ||
93 | 93 | ||
94 | <!-- 操作按钮区域 --> | 94 | <!-- 操作按钮区域 --> |
95 | <div class="table-operator"> | 95 | <div class="table-operator"> |
96 | - <a-button @click="createEmptyIn()" type="primary">空托入库</a-button> | ||
97 | - <a-button @click="createManyEmptyIn()" type="primary">空托组入库</a-button> | 96 | + <a-button @click="createEmptyIn()" v-has="'taskHeader:emptyIn'" type="primary">空托入库</a-button> |
97 | + <a-button @click="createManyEmptyIn()" v-has="'taskHeader:manyEmptyIn'" type="primary">空托组入库</a-button> | ||
98 | </div> | 98 | </div> |
99 | 99 | ||
100 | <!-- table区域-begin --> | 100 | <!-- table区域-begin --> |
@@ -146,19 +146,19 @@ | @@ -146,19 +146,19 @@ | ||
146 | </template> | 146 | </template> |
147 | 147 | ||
148 | <span slot="action" slot-scope="text, record"> | 148 | <span slot="action" slot-scope="text, record"> |
149 | - <a v-if="record.status == 1" @click="executeTask(record)">执行</a> | 149 | + <a v-if="record.status == 1" v-has="'taskHeader:executeTask'" @click="executeTask(record)">执行</a> |
150 | <a-divider type="vertical" /> | 150 | <a-divider type="vertical" /> |
151 | - <a v-if="record.status < 100" @click="cancelTask(record)">取消</a> | 151 | + <a v-if="record.status < 100" v-has="'taskHeader:cancelTask'" @click="cancelTask(record)">取消</a> |
152 | <a-divider type="vertical" /> | 152 | <a-divider type="vertical" /> |
153 | - <a v-if="record.status < 100" @click="completeTask(record)">完成</a> | 153 | + <a v-if="record.status < 100" v-has="'taskHeader:completeTask'" @click="completeTask(record)">完成</a> |
154 | <a-divider type="vertical" /> | 154 | <a-divider type="vertical" /> |
155 | <a-dropdown> | 155 | <a-dropdown> |
156 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> | 156 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
157 | <a-menu slot="overlay"> | 157 | <a-menu slot="overlay"> |
158 | - <a-menu-item> | 158 | + <a-menu-item v-has="'taskHeader:edit'"> |
159 | <a @click="handleEdit(record)">编辑</a> | 159 | <a @click="handleEdit(record)">编辑</a> |
160 | </a-menu-item> | 160 | </a-menu-item> |
161 | - <a-menu-item> | 161 | + <a-menu-item v-has="'taskHeader:delete'"> |
162 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 162 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
163 | <a>删除</a> | 163 | <a>删除</a> |
164 | </a-popconfirm> | 164 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/task/ShipmentTaskHeaderList.vue
@@ -93,8 +93,8 @@ | @@ -93,8 +93,8 @@ | ||
93 | 93 | ||
94 | <!-- 操作按钮区域 --> | 94 | <!-- 操作按钮区域 --> |
95 | <div class="table-operator"> | 95 | <div class="table-operator"> |
96 | - <a-button @click="createEmptyOut()" type="primary" >空托出库</a-button> | ||
97 | - <a-button @click="createManyEmptyOut()" type="primary" >空托组出库</a-button> | 96 | + <a-button @click="createEmptyOut()" v-has="'taskHeader:emptyOut'" type="primary" >空托出库</a-button> |
97 | + <a-button @click="createManyEmptyOut()" v-has="'taskHeader:manyEmptyOut'" type="primary" >空托组出库</a-button> | ||
98 | </div> | 98 | </div> |
99 | 99 | ||
100 | <!-- table区域-begin --> | 100 | <!-- table区域-begin --> |
@@ -146,19 +146,19 @@ | @@ -146,19 +146,19 @@ | ||
146 | </template> | 146 | </template> |
147 | 147 | ||
148 | <span slot="action" slot-scope="text, record"> | 148 | <span slot="action" slot-scope="text, record"> |
149 | - <a v-if="record.status == 1" @click="executeTask(record)">执行</a> | 149 | + <a v-if="record.status == 1" v-has="'taskHeader:executeTask'" @click="executeTask(record)">执行</a> |
150 | <a-divider type="vertical" /> | 150 | <a-divider type="vertical" /> |
151 | - <a v-if="record.status < 100" @click="cancelTask(record)">取消</a> | 151 | + <a v-if="record.status < 100" v-has="'taskHeader:executeTask'" @click="cancelTask(record)">取消</a> |
152 | <a-divider type="vertical" /> | 152 | <a-divider type="vertical" /> |
153 | - <a v-if="record.status < 100" @click="completeTask(record)">完成</a> | 153 | + <a v-if="record.status < 100" v-has="'taskHeader:executeTask'" @click="completeTask(record)">完成</a> |
154 | <a-divider type="vertical" /> | 154 | <a-divider type="vertical" /> |
155 | <a-dropdown> | 155 | <a-dropdown> |
156 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> | 156 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
157 | <a-menu slot="overlay"> | 157 | <a-menu slot="overlay"> |
158 | - <a-menu-item> | 158 | + <a-menu-item v-has="'taskHeader:edit'"> |
159 | <a @click="handleEdit(record)">编辑</a> | 159 | <a @click="handleEdit(record)">编辑</a> |
160 | </a-menu-item> | 160 | </a-menu-item> |
161 | - <a-menu-item> | 161 | + <a-menu-item v-has="'taskHeader:delete'"> |
162 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 162 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
163 | <a>删除</a> | 163 | <a>删除</a> |
164 | </a-popconfirm> | 164 | </a-popconfirm> |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/task/TaskDetailList.vue
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <a-card :bordered="false" :class="'cust-erp-sub-tab'"> | 2 | <a-card :bordered="false" :class="'cust-erp-sub-tab'"> |
3 | <!-- 操作按钮区域 --> | 3 | <!-- 操作按钮区域 --> |
4 | <div class="table-operator" v-if="mainId"> | 4 | <div class="table-operator" v-if="mainId"> |
5 | - <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> | 5 | + <a-button @click="handleAdd" v-has="'taskDetail:add'" type="primary" icon="plus">新增</a-button> |
6 | <a-button type="primary" icon="download" @click="handleExportXls('任务详情')">导出</a-button> | 6 | <a-button type="primary" icon="download" @click="handleExportXls('任务详情')">导出</a-button> |
7 | <a-upload | 7 | <a-upload |
8 | name="file" | 8 | name="file" |
@@ -14,7 +14,7 @@ | @@ -14,7 +14,7 @@ | ||
14 | <a-button type="primary" icon="import">导入</a-button> | 14 | <a-button type="primary" icon="import">导入</a-button> |
15 | </a-upload> | 15 | </a-upload> |
16 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 16 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
17 | - <a-menu slot="overlay"> | 17 | + <a-menu slot="overlay" v-has="'taskDetail:deleteBatch'"> |
18 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | 18 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
19 | </a-menu> | 19 | </a-menu> |
20 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | 20 | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
@@ -62,10 +62,10 @@ | @@ -62,10 +62,10 @@ | ||
62 | </template> | 62 | </template> |
63 | 63 | ||
64 | <span slot="action" slot-scope="text, record"> | 64 | <span slot="action" slot-scope="text, record"> |
65 | - <a @click="handleEdit(record)">编辑</a> | 65 | + <a v-has="'taskDetail:edit'" @click="handleEdit(record)">编辑</a> |
66 | <a-divider type="vertical" /> | 66 | <a-divider type="vertical" /> |
67 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 67 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
68 | - <a>删除</a> | 68 | + <a v-has="'taskDetail:delete'">删除</a> |
69 | </a-popconfirm> | 69 | </a-popconfirm> |
70 | </span> | 70 | </span> |
71 | 71 |
jeecg-boot-master/ant-design-vue-jeecg/src/views/system/task/TransferTaskHeaderList.vue
@@ -93,8 +93,8 @@ | @@ -93,8 +93,8 @@ | ||
93 | 93 | ||
94 | <!-- 操作按钮区域 --> | 94 | <!-- 操作按钮区域 --> |
95 | <div class="table-operator"> | 95 | <div class="table-operator"> |
96 | - <a-button @click="createTransfer()" type="primary">移库任务</a-button> | ||
97 | - <a-button @click="createOverStation()" type="primary">跨站任务</a-button> | 96 | + <a-button @click="createTransfer()" v-has="'taskHeader:transfer'" type="primary">移库任务</a-button> |
97 | + <a-button @click="createOverStation()" v-has="'taskHeader:overStation'" type="primary">跨站任务</a-button> | ||
98 | <!-- <a-button type="primary" icon="download" @click="handleExportXls('任务表')">导出</a-button>--> | 98 | <!-- <a-button type="primary" icon="download" @click="handleExportXls('任务表')">导出</a-button>--> |
99 | <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">--> | 99 | <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">--> |
100 | <!-- <a-button type="primary" icon="import">导入</a-button>--> | 100 | <!-- <a-button type="primary" icon="import">导入</a-button>--> |
@@ -152,17 +152,17 @@ | @@ -152,17 +152,17 @@ | ||
152 | </template> | 152 | </template> |
153 | 153 | ||
154 | <span slot="action" slot-scope="text, record"> | 154 | <span slot="action" slot-scope="text, record"> |
155 | - <a v-if="record.status == 1" @click="executeTask(record)">执行</a> | 155 | + <a v-if="record.status == 1" v-has="'taskHeader:executeTask'" @click="executeTask(record)">执行</a> |
156 | <a-divider type="vertical" /> | 156 | <a-divider type="vertical" /> |
157 | - <a v-if="record.status < 100" @click="completeTask(record)">完成</a> | 157 | + <a v-if="record.status < 100" v-has="'taskHeader:completeTask'" @click="completeTask(record)">完成</a> |
158 | <a-divider type="vertical" /> | 158 | <a-divider type="vertical" /> |
159 | <a-dropdown> | 159 | <a-dropdown> |
160 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> | 160 | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
161 | <a-menu slot="overlay"> | 161 | <a-menu slot="overlay"> |
162 | - <a-menu-item> | 162 | + <a-menu-item v-has="'taskHeader:edit'"> |
163 | <a @click="handleEdit(record)">编辑</a> | 163 | <a @click="handleEdit(record)">编辑</a> |
164 | </a-menu-item> | 164 | </a-menu-item> |
165 | - <a-menu-item> | 165 | + <a-menu-item v-has="'taskHeader:delete'"> |
166 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | 166 | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
167 | <a>删除</a> | 167 | <a>删除</a> |
168 | </a-popconfirm> | 168 | </a-popconfirm> |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysAnnouncementController.java
@@ -9,6 +9,7 @@ import com.jeecg.dingtalk.api.core.response.Response; | @@ -9,6 +9,7 @@ import com.jeecg.dingtalk.api.core.response.Response; | ||
9 | import lombok.extern.slf4j.Slf4j; | 9 | import lombok.extern.slf4j.Slf4j; |
10 | import org.apache.commons.lang.StringUtils; | 10 | import org.apache.commons.lang.StringUtils; |
11 | import org.apache.shiro.SecurityUtils; | 11 | import org.apache.shiro.SecurityUtils; |
12 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
12 | import org.jeecg.common.api.vo.Result; | 13 | import org.jeecg.common.api.vo.Result; |
13 | import org.jeecg.common.constant.CommonConstant; | 14 | import org.jeecg.common.constant.CommonConstant; |
14 | import org.jeecg.common.constant.CommonSendStatus; | 15 | import org.jeecg.common.constant.CommonSendStatus; |
@@ -121,6 +122,7 @@ public class SysAnnouncementController { | @@ -121,6 +122,7 @@ public class SysAnnouncementController { | ||
121 | * @return | 122 | * @return |
122 | */ | 123 | */ |
123 | @RequestMapping(value = "/add", method = RequestMethod.POST) | 124 | @RequestMapping(value = "/add", method = RequestMethod.POST) |
125 | + @RequiresPermissions("Announcement:add") | ||
124 | public Result<SysAnnouncement> add(@RequestBody SysAnnouncement sysAnnouncement) { | 126 | public Result<SysAnnouncement> add(@RequestBody SysAnnouncement sysAnnouncement) { |
125 | Result<SysAnnouncement> result = new Result<SysAnnouncement>(); | 127 | Result<SysAnnouncement> result = new Result<SysAnnouncement>(); |
126 | try { | 128 | try { |
@@ -145,6 +147,7 @@ public class SysAnnouncementController { | @@ -145,6 +147,7 @@ public class SysAnnouncementController { | ||
145 | * @return | 147 | * @return |
146 | */ | 148 | */ |
147 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | 149 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
150 | + @RequiresPermissions("Announcement:edit") | ||
148 | public Result<SysAnnouncement> eidt(@RequestBody SysAnnouncement sysAnnouncement) { | 151 | public Result<SysAnnouncement> eidt(@RequestBody SysAnnouncement sysAnnouncement) { |
149 | Result<SysAnnouncement> result = new Result<SysAnnouncement>(); | 152 | Result<SysAnnouncement> result = new Result<SysAnnouncement>(); |
150 | SysAnnouncement sysAnnouncementEntity = sysAnnouncementService.getById(sysAnnouncement.getId()); | 153 | SysAnnouncement sysAnnouncementEntity = sysAnnouncementService.getById(sysAnnouncement.getId()); |
@@ -171,6 +174,7 @@ public class SysAnnouncementController { | @@ -171,6 +174,7 @@ public class SysAnnouncementController { | ||
171 | * @return | 174 | * @return |
172 | */ | 175 | */ |
173 | @RequestMapping(value = "/delete", method = RequestMethod.DELETE) | 176 | @RequestMapping(value = "/delete", method = RequestMethod.DELETE) |
177 | + @RequiresPermissions("Announcement:delete") | ||
174 | public Result<SysAnnouncement> delete(@RequestParam(name="id",required=true) String id) { | 178 | public Result<SysAnnouncement> delete(@RequestParam(name="id",required=true) String id) { |
175 | Result<SysAnnouncement> result = new Result<SysAnnouncement>(); | 179 | Result<SysAnnouncement> result = new Result<SysAnnouncement>(); |
176 | SysAnnouncement sysAnnouncement = sysAnnouncementService.getById(id); | 180 | SysAnnouncement sysAnnouncement = sysAnnouncementService.getById(id); |
@@ -193,6 +197,7 @@ public class SysAnnouncementController { | @@ -193,6 +197,7 @@ public class SysAnnouncementController { | ||
193 | * @return | 197 | * @return |
194 | */ | 198 | */ |
195 | @RequestMapping(value = "/deleteBatch", method = RequestMethod.DELETE) | 199 | @RequestMapping(value = "/deleteBatch", method = RequestMethod.DELETE) |
200 | + @RequiresPermissions("Announcement:deleteBatch") | ||
196 | public Result<SysAnnouncement> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | 201 | public Result<SysAnnouncement> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
197 | Result<SysAnnouncement> result = new Result<SysAnnouncement>(); | 202 | Result<SysAnnouncement> result = new Result<SysAnnouncement>(); |
198 | if(ids==null || "".equals(ids.trim())) { | 203 | if(ids==null || "".equals(ids.trim())) { |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysDictController.java
@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; | @@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; | ||
8 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 8 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
9 | import lombok.extern.slf4j.Slf4j; | 9 | import lombok.extern.slf4j.Slf4j; |
10 | import org.apache.shiro.SecurityUtils; | 10 | import org.apache.shiro.SecurityUtils; |
11 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
11 | import org.apache.shiro.authz.annotation.RequiresRoles; | 12 | import org.apache.shiro.authz.annotation.RequiresRoles; |
12 | import org.jeecg.common.api.vo.Result; | 13 | import org.jeecg.common.api.vo.Result; |
13 | import org.jeecg.common.constant.CacheConstant; | 14 | import org.jeecg.common.constant.CacheConstant; |
@@ -338,6 +339,7 @@ public class SysDictController { | @@ -338,6 +339,7 @@ public class SysDictController { | ||
338 | * @return | 339 | * @return |
339 | */ | 340 | */ |
340 | //@RequiresRoles({"admin"}) | 341 | //@RequiresRoles({"admin"}) |
342 | + @RequiresPermissions("dict:add") | ||
341 | @RequestMapping(value = "/add", method = RequestMethod.POST) | 343 | @RequestMapping(value = "/add", method = RequestMethod.POST) |
342 | public Result<SysDict> add(@RequestBody SysDict sysDict) { | 344 | public Result<SysDict> add(@RequestBody SysDict sysDict) { |
343 | Result<SysDict> result = new Result<SysDict>(); | 345 | Result<SysDict> result = new Result<SysDict>(); |
@@ -359,6 +361,7 @@ public class SysDictController { | @@ -359,6 +361,7 @@ public class SysDictController { | ||
359 | * @return | 361 | * @return |
360 | */ | 362 | */ |
361 | //@RequiresRoles({"admin"}) | 363 | //@RequiresRoles({"admin"}) |
364 | + @RequiresPermissions("dict:edit") | ||
362 | @RequestMapping(value = "/edit", method = { RequestMethod.PUT,RequestMethod.POST }) | 365 | @RequestMapping(value = "/edit", method = { RequestMethod.PUT,RequestMethod.POST }) |
363 | public Result<SysDict> edit(@RequestBody SysDict sysDict) { | 366 | public Result<SysDict> edit(@RequestBody SysDict sysDict) { |
364 | Result<SysDict> result = new Result<SysDict>(); | 367 | Result<SysDict> result = new Result<SysDict>(); |
@@ -381,6 +384,7 @@ public class SysDictController { | @@ -381,6 +384,7 @@ public class SysDictController { | ||
381 | * @return | 384 | * @return |
382 | */ | 385 | */ |
383 | //@RequiresRoles({"admin"}) | 386 | //@RequiresRoles({"admin"}) |
387 | + @RequiresPermissions("dict:delete") | ||
384 | @RequestMapping(value = "/delete", method = RequestMethod.DELETE) | 388 | @RequestMapping(value = "/delete", method = RequestMethod.DELETE) |
385 | @CacheEvict(value={CacheConstant.SYS_DICT_CACHE, CacheConstant.SYS_ENABLE_DICT_CACHE}, allEntries=true) | 389 | @CacheEvict(value={CacheConstant.SYS_DICT_CACHE, CacheConstant.SYS_ENABLE_DICT_CACHE}, allEntries=true) |
386 | public Result<SysDict> delete(@RequestParam(name="id",required=true) String id) { | 390 | public Result<SysDict> delete(@RequestParam(name="id",required=true) String id) { |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysPermissionController.java
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | @@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | ||
7 | import lombok.extern.slf4j.Slf4j; | 7 | import lombok.extern.slf4j.Slf4j; |
8 | import org.apache.commons.lang3.StringUtils; | 8 | import org.apache.commons.lang3.StringUtils; |
9 | import org.apache.shiro.SecurityUtils; | 9 | import org.apache.shiro.SecurityUtils; |
10 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
10 | import org.apache.shiro.authz.annotation.RequiresRoles; | 11 | import org.apache.shiro.authz.annotation.RequiresRoles; |
11 | import org.jeecg.common.api.vo.Result; | 12 | import org.jeecg.common.api.vo.Result; |
12 | import org.jeecg.common.constant.CommonConstant; | 13 | import org.jeecg.common.constant.CommonConstant; |
@@ -178,7 +179,7 @@ public class SysPermissionController { | @@ -178,7 +179,7 @@ public class SysPermissionController { | ||
178 | 179 | ||
179 | // /** | 180 | // /** |
180 | // * 查询用户拥有的菜单权限和按钮权限(根据用户账号) | 181 | // * 查询用户拥有的菜单权限和按钮权限(根据用户账号) |
181 | -// * | 182 | +// * |
182 | // * @return | 183 | // * @return |
183 | // */ | 184 | // */ |
184 | // @RequestMapping(value = "/queryByUser", method = RequestMethod.GET) | 185 | // @RequestMapping(value = "/queryByUser", method = RequestMethod.GET) |
@@ -254,7 +255,7 @@ public class SysPermissionController { | @@ -254,7 +255,7 @@ public class SysPermissionController { | ||
254 | json.put("sysSafeMode", jeeccgBaseConfig.getSafeMode()); | 255 | json.put("sysSafeMode", jeeccgBaseConfig.getSafeMode()); |
255 | result.setResult(json); | 256 | result.setResult(json); |
256 | } catch (Exception e) { | 257 | } catch (Exception e) { |
257 | - result.error500("查询失败:" + e.getMessage()); | 258 | + result.error500("查询失败:" + e.getMessage()); |
258 | log.error(e.getMessage(), e); | 259 | log.error(e.getMessage(), e); |
259 | } | 260 | } |
260 | return result; | 261 | return result; |
@@ -313,6 +314,7 @@ public class SysPermissionController { | @@ -313,6 +314,7 @@ public class SysPermissionController { | ||
313 | */ | 314 | */ |
314 | //@RequiresRoles({ "admin" }) | 315 | //@RequiresRoles({ "admin" }) |
315 | @RequestMapping(value = "/add", method = RequestMethod.POST) | 316 | @RequestMapping(value = "/add", method = RequestMethod.POST) |
317 | + @RequiresPermissions("permission:add") | ||
316 | public Result<SysPermission> add(@RequestBody SysPermission permission) { | 318 | public Result<SysPermission> add(@RequestBody SysPermission permission) { |
317 | Result<SysPermission> result = new Result<SysPermission>(); | 319 | Result<SysPermission> result = new Result<SysPermission>(); |
318 | try { | 320 | try { |
@@ -333,6 +335,7 @@ public class SysPermissionController { | @@ -333,6 +335,7 @@ public class SysPermissionController { | ||
333 | */ | 335 | */ |
334 | //@RequiresRoles({ "admin" }) | 336 | //@RequiresRoles({ "admin" }) |
335 | @RequestMapping(value = "/edit", method = { RequestMethod.PUT, RequestMethod.POST }) | 337 | @RequestMapping(value = "/edit", method = { RequestMethod.PUT, RequestMethod.POST }) |
338 | + @RequiresPermissions("permission:edit") | ||
336 | public Result<SysPermission> edit(@RequestBody SysPermission permission) { | 339 | public Result<SysPermission> edit(@RequestBody SysPermission permission) { |
337 | Result<SysPermission> result = new Result<>(); | 340 | Result<SysPermission> result = new Result<>(); |
338 | try { | 341 | try { |
@@ -353,6 +356,7 @@ public class SysPermissionController { | @@ -353,6 +356,7 @@ public class SysPermissionController { | ||
353 | */ | 356 | */ |
354 | //@RequiresRoles({ "admin" }) | 357 | //@RequiresRoles({ "admin" }) |
355 | @RequestMapping(value = "/delete", method = RequestMethod.DELETE) | 358 | @RequestMapping(value = "/delete", method = RequestMethod.DELETE) |
359 | + @RequiresPermissions("permission:delete") | ||
356 | public Result<SysPermission> delete(@RequestParam(name = "id", required = true) String id) { | 360 | public Result<SysPermission> delete(@RequestParam(name = "id", required = true) String id) { |
357 | Result<SysPermission> result = new Result<>(); | 361 | Result<SysPermission> result = new Result<>(); |
358 | try { | 362 | try { |
@@ -372,6 +376,7 @@ public class SysPermissionController { | @@ -372,6 +376,7 @@ public class SysPermissionController { | ||
372 | */ | 376 | */ |
373 | //@RequiresRoles({ "admin" }) | 377 | //@RequiresRoles({ "admin" }) |
374 | @RequestMapping(value = "/deleteBatch", method = RequestMethod.DELETE) | 378 | @RequestMapping(value = "/deleteBatch", method = RequestMethod.DELETE) |
379 | + @RequiresPermissions("permission:deleteBatch") | ||
375 | public Result<SysPermission> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { | 380 | public Result<SysPermission> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { |
376 | Result<SysPermission> result = new Result<>(); | 381 | Result<SysPermission> result = new Result<>(); |
377 | try { | 382 | try { |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/config/address/controller/AddressController.java
@@ -9,6 +9,8 @@ import java.io.UnsupportedEncodingException; | @@ -9,6 +9,8 @@ import java.io.UnsupportedEncodingException; | ||
9 | import java.net.URLDecoder; | 9 | import java.net.URLDecoder; |
10 | import javax.servlet.http.HttpServletRequest; | 10 | import javax.servlet.http.HttpServletRequest; |
11 | import javax.servlet.http.HttpServletResponse; | 11 | import javax.servlet.http.HttpServletResponse; |
12 | + | ||
13 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
12 | import org.jeecg.common.api.vo.Result; | 14 | import org.jeecg.common.api.vo.Result; |
13 | import org.jeecg.common.system.query.QueryGenerator; | 15 | import org.jeecg.common.system.query.QueryGenerator; |
14 | import org.jeecg.common.system.util.JwtUtil; | 16 | import org.jeecg.common.system.util.JwtUtil; |
@@ -83,6 +85,7 @@ public class AddressController extends JeecgController<Address, IAddressService> | @@ -83,6 +85,7 @@ public class AddressController extends JeecgController<Address, IAddressService> | ||
83 | @AutoLog(value = "接口地址-添加") | 85 | @AutoLog(value = "接口地址-添加") |
84 | @ApiOperation(value="接口地址-添加", notes="接口地址-添加") | 86 | @ApiOperation(value="接口地址-添加", notes="接口地址-添加") |
85 | @PostMapping(value = "/add") | 87 | @PostMapping(value = "/add") |
88 | + @RequiresPermissions("address:add") | ||
86 | public Result<String> add(@RequestBody Address address, HttpServletRequest req) { | 89 | public Result<String> add(@RequestBody Address address, HttpServletRequest req) { |
87 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); | 90 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); |
88 | if(StringUtils.isNotEmpty(warehouseCode)) { | 91 | if(StringUtils.isNotEmpty(warehouseCode)) { |
@@ -101,6 +104,7 @@ public class AddressController extends JeecgController<Address, IAddressService> | @@ -101,6 +104,7 @@ public class AddressController extends JeecgController<Address, IAddressService> | ||
101 | @AutoLog(value = "接口地址-编辑") | 104 | @AutoLog(value = "接口地址-编辑") |
102 | @ApiOperation(value="接口地址-编辑", notes="接口地址-编辑") | 105 | @ApiOperation(value="接口地址-编辑", notes="接口地址-编辑") |
103 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | 106 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
107 | + @RequiresPermissions("address:edit") | ||
104 | public Result<String> edit(@RequestBody Address address) { | 108 | public Result<String> edit(@RequestBody Address address) { |
105 | addressService.updateById(address); | 109 | addressService.updateById(address); |
106 | return Result.OK("编辑成功!"); | 110 | return Result.OK("编辑成功!"); |
@@ -115,6 +119,7 @@ public class AddressController extends JeecgController<Address, IAddressService> | @@ -115,6 +119,7 @@ public class AddressController extends JeecgController<Address, IAddressService> | ||
115 | @AutoLog(value = "接口地址-通过id删除") | 119 | @AutoLog(value = "接口地址-通过id删除") |
116 | @ApiOperation(value="接口地址-通过id删除", notes="接口地址-通过id删除") | 120 | @ApiOperation(value="接口地址-通过id删除", notes="接口地址-通过id删除") |
117 | @DeleteMapping(value = "/delete") | 121 | @DeleteMapping(value = "/delete") |
122 | + @RequiresPermissions("address:delete") | ||
118 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { | 123 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
119 | addressService.removeById(id); | 124 | addressService.removeById(id); |
120 | return Result.OK("删除成功!"); | 125 | return Result.OK("删除成功!"); |
@@ -129,6 +134,7 @@ public class AddressController extends JeecgController<Address, IAddressService> | @@ -129,6 +134,7 @@ public class AddressController extends JeecgController<Address, IAddressService> | ||
129 | @AutoLog(value = "接口地址-批量删除") | 134 | @AutoLog(value = "接口地址-批量删除") |
130 | @ApiOperation(value="接口地址-批量删除", notes="接口地址-批量删除") | 135 | @ApiOperation(value="接口地址-批量删除", notes="接口地址-批量删除") |
131 | @DeleteMapping(value = "/deleteBatch") | 136 | @DeleteMapping(value = "/deleteBatch") |
137 | + @RequiresPermissions("address:deleteBatch") | ||
132 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | 138 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
133 | this.addressService.removeByIds(Arrays.asList(ids.split(","))); | 139 | this.addressService.removeByIds(Arrays.asList(ids.split(","))); |
134 | return Result.OK("批量删除成功!"); | 140 | return Result.OK("批量删除成功!"); |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/config/bomHeader/controller/BomHeaderController.java
@@ -190,6 +190,7 @@ public class BomHeaderController extends JeecgController<BomHeader, IBomHeaderSe | @@ -190,6 +190,7 @@ public class BomHeaderController extends JeecgController<BomHeader, IBomHeaderSe | ||
190 | @AutoLog(value = "bom子表-添加") | 190 | @AutoLog(value = "bom子表-添加") |
191 | @ApiOperation(value="bom子表-添加", notes="bom子表-添加") | 191 | @ApiOperation(value="bom子表-添加", notes="bom子表-添加") |
192 | @PostMapping(value = "/addBomDetail") | 192 | @PostMapping(value = "/addBomDetail") |
193 | + @RequiresPermissions("bomDetail:add") | ||
193 | public Result<String> addBomDetail(@RequestBody BomDetail bomDetail, HttpServletRequest req) { | 194 | public Result<String> addBomDetail(@RequestBody BomDetail bomDetail, HttpServletRequest req) { |
194 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); | 195 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); |
195 | if(StringUtils.isNotEmpty(warehouseCode)) { | 196 | if(StringUtils.isNotEmpty(warehouseCode)) { |
@@ -205,6 +206,7 @@ public class BomHeaderController extends JeecgController<BomHeader, IBomHeaderSe | @@ -205,6 +206,7 @@ public class BomHeaderController extends JeecgController<BomHeader, IBomHeaderSe | ||
205 | * @return | 206 | * @return |
206 | */ | 207 | */ |
207 | @AutoLog(value = "bom子表-编辑") | 208 | @AutoLog(value = "bom子表-编辑") |
209 | + @RequiresPermissions("bomDetail:edit") | ||
208 | @ApiOperation(value="bom子表-编辑", notes="bom子表-编辑") | 210 | @ApiOperation(value="bom子表-编辑", notes="bom子表-编辑") |
209 | @RequestMapping(value = "/editBomDetail", method = {RequestMethod.PUT,RequestMethod.POST}) | 211 | @RequestMapping(value = "/editBomDetail", method = {RequestMethod.PUT,RequestMethod.POST}) |
210 | public Result<String> editBomDetail(@RequestBody BomDetail bomDetail) { | 212 | public Result<String> editBomDetail(@RequestBody BomDetail bomDetail) { |
@@ -219,6 +221,7 @@ public class BomHeaderController extends JeecgController<BomHeader, IBomHeaderSe | @@ -219,6 +221,7 @@ public class BomHeaderController extends JeecgController<BomHeader, IBomHeaderSe | ||
219 | */ | 221 | */ |
220 | @AutoLog(value = "bom子表-通过id删除") | 222 | @AutoLog(value = "bom子表-通过id删除") |
221 | @ApiOperation(value="bom子表-通过id删除", notes="bom子表-通过id删除") | 223 | @ApiOperation(value="bom子表-通过id删除", notes="bom子表-通过id删除") |
224 | + @RequiresPermissions("bomDetail:delete") | ||
222 | @DeleteMapping(value = "/deleteBomDetail") | 225 | @DeleteMapping(value = "/deleteBomDetail") |
223 | public Result<String> deleteBomDetail(@RequestParam(name="id",required=true) String id) { | 226 | public Result<String> deleteBomDetail(@RequestParam(name="id",required=true) String id) { |
224 | bomDetailService.removeById(id); | 227 | bomDetailService.removeById(id); |
@@ -232,6 +235,7 @@ public class BomHeaderController extends JeecgController<BomHeader, IBomHeaderSe | @@ -232,6 +235,7 @@ public class BomHeaderController extends JeecgController<BomHeader, IBomHeaderSe | ||
232 | */ | 235 | */ |
233 | @AutoLog(value = "bom子表-批量删除") | 236 | @AutoLog(value = "bom子表-批量删除") |
234 | @ApiOperation(value="bom子表-批量删除", notes="bom子表-批量删除") | 237 | @ApiOperation(value="bom子表-批量删除", notes="bom子表-批量删除") |
238 | + @RequiresPermissions("bomDetail:deleteBatch") | ||
235 | @DeleteMapping(value = "/deleteBatchBomDetail") | 239 | @DeleteMapping(value = "/deleteBatchBomDetail") |
236 | public Result<String> deleteBatchBomDetail(@RequestParam(name="ids",required=true) String ids) { | 240 | public Result<String> deleteBatchBomDetail(@RequestParam(name="ids",required=true) String ids) { |
237 | this.bomDetailService.removeByIds(Arrays.asList(ids.split(","))); | 241 | this.bomDetailService.removeByIds(Arrays.asList(ids.split(","))); |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/config/cycleCountPreference/controller/CycleCountPreferenceController.java
@@ -9,6 +9,8 @@ import java.io.UnsupportedEncodingException; | @@ -9,6 +9,8 @@ import java.io.UnsupportedEncodingException; | ||
9 | import java.net.URLDecoder; | 9 | import java.net.URLDecoder; |
10 | import javax.servlet.http.HttpServletRequest; | 10 | import javax.servlet.http.HttpServletRequest; |
11 | import javax.servlet.http.HttpServletResponse; | 11 | import javax.servlet.http.HttpServletResponse; |
12 | + | ||
13 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
12 | import org.jeecg.common.api.vo.Result; | 14 | import org.jeecg.common.api.vo.Result; |
13 | import org.jeecg.common.system.query.QueryGenerator; | 15 | import org.jeecg.common.system.query.QueryGenerator; |
14 | import org.jeecg.common.system.util.JwtUtil; | 16 | import org.jeecg.common.system.util.JwtUtil; |
@@ -83,6 +85,7 @@ public class CycleCountPreferenceController extends JeecgController<CycleCountPr | @@ -83,6 +85,7 @@ public class CycleCountPreferenceController extends JeecgController<CycleCountPr | ||
83 | @AutoLog(value = "盘点首选项-添加") | 85 | @AutoLog(value = "盘点首选项-添加") |
84 | @ApiOperation(value="盘点首选项-添加", notes="盘点首选项-添加") | 86 | @ApiOperation(value="盘点首选项-添加", notes="盘点首选项-添加") |
85 | @PostMapping(value = "/add") | 87 | @PostMapping(value = "/add") |
88 | + @RequiresPermissions("cycleCountPreference:add") | ||
86 | public Result<String> add(@RequestBody CycleCountPreference cycleCountPreference, HttpServletRequest req) { | 89 | public Result<String> add(@RequestBody CycleCountPreference cycleCountPreference, HttpServletRequest req) { |
87 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); | 90 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); |
88 | if(StringUtils.isNotEmpty(warehouseCode)) { | 91 | if(StringUtils.isNotEmpty(warehouseCode)) { |
@@ -100,6 +103,7 @@ public class CycleCountPreferenceController extends JeecgController<CycleCountPr | @@ -100,6 +103,7 @@ public class CycleCountPreferenceController extends JeecgController<CycleCountPr | ||
100 | */ | 103 | */ |
101 | @AutoLog(value = "盘点首选项-编辑") | 104 | @AutoLog(value = "盘点首选项-编辑") |
102 | @ApiOperation(value="盘点首选项-编辑", notes="盘点首选项-编辑") | 105 | @ApiOperation(value="盘点首选项-编辑", notes="盘点首选项-编辑") |
106 | + @RequiresPermissions("cycleCountPreference:edit") | ||
103 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | 107 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
104 | public Result<String> edit(@RequestBody CycleCountPreference cycleCountPreference) { | 108 | public Result<String> edit(@RequestBody CycleCountPreference cycleCountPreference) { |
105 | cycleCountPreferenceService.updateById(cycleCountPreference); | 109 | cycleCountPreferenceService.updateById(cycleCountPreference); |
@@ -115,6 +119,7 @@ public class CycleCountPreferenceController extends JeecgController<CycleCountPr | @@ -115,6 +119,7 @@ public class CycleCountPreferenceController extends JeecgController<CycleCountPr | ||
115 | @AutoLog(value = "盘点首选项-通过id删除") | 119 | @AutoLog(value = "盘点首选项-通过id删除") |
116 | @ApiOperation(value="盘点首选项-通过id删除", notes="盘点首选项-通过id删除") | 120 | @ApiOperation(value="盘点首选项-通过id删除", notes="盘点首选项-通过id删除") |
117 | @DeleteMapping(value = "/delete") | 121 | @DeleteMapping(value = "/delete") |
122 | + @RequiresPermissions("cycleCountPreference:delete") | ||
118 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { | 123 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
119 | cycleCountPreferenceService.removeById(id); | 124 | cycleCountPreferenceService.removeById(id); |
120 | return Result.OK("删除成功!"); | 125 | return Result.OK("删除成功!"); |
@@ -129,6 +134,7 @@ public class CycleCountPreferenceController extends JeecgController<CycleCountPr | @@ -129,6 +134,7 @@ public class CycleCountPreferenceController extends JeecgController<CycleCountPr | ||
129 | @AutoLog(value = "盘点首选项-批量删除") | 134 | @AutoLog(value = "盘点首选项-批量删除") |
130 | @ApiOperation(value="盘点首选项-批量删除", notes="盘点首选项-批量删除") | 135 | @ApiOperation(value="盘点首选项-批量删除", notes="盘点首选项-批量删除") |
131 | @DeleteMapping(value = "/deleteBatch") | 136 | @DeleteMapping(value = "/deleteBatch") |
137 | + @RequiresPermissions("cycleCountPreference:deleteBatch") | ||
132 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | 138 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
133 | this.cycleCountPreferenceService.removeByIds(Arrays.asList(ids.split(","))); | 139 | this.cycleCountPreferenceService.removeByIds(Arrays.asList(ids.split(","))); |
134 | return Result.OK("批量删除成功!"); | 140 | return Result.OK("批量删除成功!"); |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/config/location/controller/LocationController.java
@@ -11,6 +11,7 @@ import javax.servlet.http.HttpServletRequest; | @@ -11,6 +11,7 @@ import javax.servlet.http.HttpServletRequest; | ||
11 | import javax.servlet.http.HttpServletResponse; | 11 | import javax.servlet.http.HttpServletResponse; |
12 | 12 | ||
13 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 13 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
14 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
14 | import org.jeecg.common.api.vo.Result; | 15 | import org.jeecg.common.api.vo.Result; |
15 | import org.jeecg.common.system.query.QueryGenerator; | 16 | import org.jeecg.common.system.query.QueryGenerator; |
16 | import org.jeecg.common.system.util.JwtUtil; | 17 | import org.jeecg.common.system.util.JwtUtil; |
@@ -92,6 +93,7 @@ public class LocationController extends JeecgController<Location, ILocationServi | @@ -92,6 +93,7 @@ public class LocationController extends JeecgController<Location, ILocationServi | ||
92 | @AutoLog(value = "库位管理-添加") | 93 | @AutoLog(value = "库位管理-添加") |
93 | @ApiOperation(value="库位管理-添加", notes="库位管理-添加") | 94 | @ApiOperation(value="库位管理-添加", notes="库位管理-添加") |
94 | @PostMapping(value = "/add") | 95 | @PostMapping(value = "/add") |
96 | + @RequiresPermissions("location:add") | ||
95 | public Result<String> add(@RequestBody Location location, HttpServletRequest req) { | 97 | public Result<String> add(@RequestBody Location location, HttpServletRequest req) { |
96 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); | 98 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); |
97 | if(StringUtils.isNotEmpty(warehouseCode)) { | 99 | if(StringUtils.isNotEmpty(warehouseCode)) { |
@@ -109,6 +111,7 @@ public class LocationController extends JeecgController<Location, ILocationServi | @@ -109,6 +111,7 @@ public class LocationController extends JeecgController<Location, ILocationServi | ||
109 | */ | 111 | */ |
110 | @AutoLog(value = "库位管理-批量添加") | 112 | @AutoLog(value = "库位管理-批量添加") |
111 | @ApiOperation(value="库位管理-批量添加", notes="库位管理-批量添加") | 113 | @ApiOperation(value="库位管理-批量添加", notes="库位管理-批量添加") |
114 | + @RequiresPermissions("location:batchAdd") | ||
112 | @PostMapping(value = "/batchAdd") | 115 | @PostMapping(value = "/batchAdd") |
113 | public Result<String> batchAdd(@RequestBody BatchLocation batchLocation, HttpServletRequest req) { | 116 | public Result<String> batchAdd(@RequestBody BatchLocation batchLocation, HttpServletRequest req) { |
114 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); | 117 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); |
@@ -144,6 +147,7 @@ public class LocationController extends JeecgController<Location, ILocationServi | @@ -144,6 +147,7 @@ public class LocationController extends JeecgController<Location, ILocationServi | ||
144 | */ | 147 | */ |
145 | @AutoLog(value = "库位管理-编辑") | 148 | @AutoLog(value = "库位管理-编辑") |
146 | @ApiOperation(value="库位管理-编辑", notes="库位管理-编辑") | 149 | @ApiOperation(value="库位管理-编辑", notes="库位管理-编辑") |
150 | + @RequiresPermissions("location:edit") | ||
147 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | 151 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
148 | public Result<String> edit(@RequestBody Location location) { | 152 | public Result<String> edit(@RequestBody Location location) { |
149 | locationService.updateById(location); | 153 | locationService.updateById(location); |
@@ -158,6 +162,7 @@ public class LocationController extends JeecgController<Location, ILocationServi | @@ -158,6 +162,7 @@ public class LocationController extends JeecgController<Location, ILocationServi | ||
158 | */ | 162 | */ |
159 | @AutoLog(value = "库位管理-通过id删除") | 163 | @AutoLog(value = "库位管理-通过id删除") |
160 | @ApiOperation(value="库位管理-通过id删除", notes="库位管理-通过id删除") | 164 | @ApiOperation(value="库位管理-通过id删除", notes="库位管理-通过id删除") |
165 | + @RequiresPermissions("location:delete") | ||
161 | @DeleteMapping(value = "/delete") | 166 | @DeleteMapping(value = "/delete") |
162 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { | 167 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
163 | locationService.removeById(id); | 168 | locationService.removeById(id); |
@@ -172,6 +177,7 @@ public class LocationController extends JeecgController<Location, ILocationServi | @@ -172,6 +177,7 @@ public class LocationController extends JeecgController<Location, ILocationServi | ||
172 | */ | 177 | */ |
173 | @AutoLog(value = "库位管理-批量删除") | 178 | @AutoLog(value = "库位管理-批量删除") |
174 | @ApiOperation(value="库位管理-批量删除", notes="库位管理-批量删除") | 179 | @ApiOperation(value="库位管理-批量删除", notes="库位管理-批量删除") |
180 | + @RequiresPermissions("location:deleteBatch") | ||
175 | @DeleteMapping(value = "/deleteBatch") | 181 | @DeleteMapping(value = "/deleteBatch") |
176 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | 182 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
177 | this.locationService.removeByIds(Arrays.asList(ids.split(","))); | 183 | this.locationService.removeByIds(Arrays.asList(ids.split(","))); |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/config/locationHigh/controller/LocationHighController.java
@@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse; | @@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse; | ||
12 | 12 | ||
13 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 13 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
14 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; | 14 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
15 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
15 | import org.jeecg.common.api.vo.Result; | 16 | import org.jeecg.common.api.vo.Result; |
16 | import org.jeecg.common.system.query.QueryGenerator; | 17 | import org.jeecg.common.system.query.QueryGenerator; |
17 | import org.jeecg.common.system.util.JwtUtil; | 18 | import org.jeecg.common.system.util.JwtUtil; |
@@ -89,6 +90,7 @@ public class LocationHighController extends JeecgController<LocationHigh, ILocat | @@ -89,6 +90,7 @@ public class LocationHighController extends JeecgController<LocationHigh, ILocat | ||
89 | @AutoLog(value = "库位高度管理-添加") | 90 | @AutoLog(value = "库位高度管理-添加") |
90 | @ApiOperation(value="库位高度管理-添加", notes="库位高度管理-添加") | 91 | @ApiOperation(value="库位高度管理-添加", notes="库位高度管理-添加") |
91 | @PostMapping(value = "/add") | 92 | @PostMapping(value = "/add") |
93 | + @RequiresPermissions("locationHigh:add") | ||
92 | public Result<String> add(@RequestBody LocationHigh locationHigh, HttpServletRequest req) { | 94 | public Result<String> add(@RequestBody LocationHigh locationHigh, HttpServletRequest req) { |
93 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); | 95 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); |
94 | if(StringUtils.isNotEmpty(warehouseCode)) { | 96 | if(StringUtils.isNotEmpty(warehouseCode)) { |
@@ -106,6 +108,7 @@ public class LocationHighController extends JeecgController<LocationHigh, ILocat | @@ -106,6 +108,7 @@ public class LocationHighController extends JeecgController<LocationHigh, ILocat | ||
106 | */ | 108 | */ |
107 | @AutoLog(value = "库位高度管理-编辑") | 109 | @AutoLog(value = "库位高度管理-编辑") |
108 | @ApiOperation(value="库位高度管理-编辑", notes="库位高度管理-编辑") | 110 | @ApiOperation(value="库位高度管理-编辑", notes="库位高度管理-编辑") |
111 | + @RequiresPermissions("locationHigh:edit") | ||
109 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | 112 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
110 | public Result<String> edit(@RequestBody LocationHigh locationHigh) { | 113 | public Result<String> edit(@RequestBody LocationHigh locationHigh) { |
111 | locationHighService.updateById(locationHigh); | 114 | locationHighService.updateById(locationHigh); |
@@ -119,6 +122,7 @@ public class LocationHighController extends JeecgController<LocationHigh, ILocat | @@ -119,6 +122,7 @@ public class LocationHighController extends JeecgController<LocationHigh, ILocat | ||
119 | * @return | 122 | * @return |
120 | */ | 123 | */ |
121 | @AutoLog(value = "库位高度管理-通过id删除") | 124 | @AutoLog(value = "库位高度管理-通过id删除") |
125 | + @RequiresPermissions("locationHigh:delete") | ||
122 | @ApiOperation(value="库位高度管理-通过id删除", notes="库位高度管理-通过id删除") | 126 | @ApiOperation(value="库位高度管理-通过id删除", notes="库位高度管理-通过id删除") |
123 | @DeleteMapping(value = "/delete") | 127 | @DeleteMapping(value = "/delete") |
124 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { | 128 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
@@ -134,6 +138,7 @@ public class LocationHighController extends JeecgController<LocationHigh, ILocat | @@ -134,6 +138,7 @@ public class LocationHighController extends JeecgController<LocationHigh, ILocat | ||
134 | */ | 138 | */ |
135 | @AutoLog(value = "库位高度管理-批量删除") | 139 | @AutoLog(value = "库位高度管理-批量删除") |
136 | @ApiOperation(value="库位高度管理-批量删除", notes="库位高度管理-批量删除") | 140 | @ApiOperation(value="库位高度管理-批量删除", notes="库位高度管理-批量删除") |
141 | + @RequiresPermissions("locationHigh:deleteBatch") | ||
137 | @DeleteMapping(value = "/deleteBatch") | 142 | @DeleteMapping(value = "/deleteBatch") |
138 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | 143 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
139 | this.locationHighService.removeByIds(Arrays.asList(ids.split(","))); | 144 | this.locationHighService.removeByIds(Arrays.asList(ids.split(","))); |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/config/locationType/controller/LocationTypeController.java
@@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse; | @@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse; | ||
12 | 12 | ||
13 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 13 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
14 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; | 14 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
15 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
15 | import org.jeecg.common.api.vo.Result; | 16 | import org.jeecg.common.api.vo.Result; |
16 | import org.jeecg.common.system.query.QueryGenerator; | 17 | import org.jeecg.common.system.query.QueryGenerator; |
17 | import org.jeecg.common.system.util.JwtUtil; | 18 | import org.jeecg.common.system.util.JwtUtil; |
@@ -88,6 +89,7 @@ public class LocationTypeController extends JeecgController<LocationType, ILocat | @@ -88,6 +89,7 @@ public class LocationTypeController extends JeecgController<LocationType, ILocat | ||
88 | */ | 89 | */ |
89 | @AutoLog(value = "库位类型-添加") | 90 | @AutoLog(value = "库位类型-添加") |
90 | @ApiOperation(value="库位类型-添加", notes="库位类型-添加") | 91 | @ApiOperation(value="库位类型-添加", notes="库位类型-添加") |
92 | + @RequiresPermissions("locationType:add") | ||
91 | @PostMapping(value = "/add") | 93 | @PostMapping(value = "/add") |
92 | public Result<String> add(@RequestBody LocationType locationType, HttpServletRequest req) { | 94 | public Result<String> add(@RequestBody LocationType locationType, HttpServletRequest req) { |
93 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); | 95 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); |
@@ -106,6 +108,7 @@ public class LocationTypeController extends JeecgController<LocationType, ILocat | @@ -106,6 +108,7 @@ public class LocationTypeController extends JeecgController<LocationType, ILocat | ||
106 | */ | 108 | */ |
107 | @AutoLog(value = "库位类型-编辑") | 109 | @AutoLog(value = "库位类型-编辑") |
108 | @ApiOperation(value="库位类型-编辑", notes="库位类型-编辑") | 110 | @ApiOperation(value="库位类型-编辑", notes="库位类型-编辑") |
111 | + @RequiresPermissions("locationType:edit") | ||
109 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | 112 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
110 | public Result<String> edit(@RequestBody LocationType locationType) { | 113 | public Result<String> edit(@RequestBody LocationType locationType) { |
111 | locationTypeService.updateById(locationType); | 114 | locationTypeService.updateById(locationType); |
@@ -120,6 +123,7 @@ public class LocationTypeController extends JeecgController<LocationType, ILocat | @@ -120,6 +123,7 @@ public class LocationTypeController extends JeecgController<LocationType, ILocat | ||
120 | */ | 123 | */ |
121 | @AutoLog(value = "库位类型-通过id删除") | 124 | @AutoLog(value = "库位类型-通过id删除") |
122 | @ApiOperation(value="库位类型-通过id删除", notes="库位类型-通过id删除") | 125 | @ApiOperation(value="库位类型-通过id删除", notes="库位类型-通过id删除") |
126 | + @RequiresPermissions("locationType:delete") | ||
123 | @DeleteMapping(value = "/delete") | 127 | @DeleteMapping(value = "/delete") |
124 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { | 128 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
125 | locationTypeService.removeById(id); | 129 | locationTypeService.removeById(id); |
@@ -134,6 +138,7 @@ public class LocationTypeController extends JeecgController<LocationType, ILocat | @@ -134,6 +138,7 @@ public class LocationTypeController extends JeecgController<LocationType, ILocat | ||
134 | */ | 138 | */ |
135 | @AutoLog(value = "库位类型-批量删除") | 139 | @AutoLog(value = "库位类型-批量删除") |
136 | @ApiOperation(value="库位类型-批量删除", notes="库位类型-批量删除") | 140 | @ApiOperation(value="库位类型-批量删除", notes="库位类型-批量删除") |
141 | + @RequiresPermissions("locationType:deleteBatch") | ||
137 | @DeleteMapping(value = "/deleteBatch") | 142 | @DeleteMapping(value = "/deleteBatch") |
138 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | 143 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
139 | this.locationTypeService.removeByIds(Arrays.asList(ids.split(","))); | 144 | this.locationTypeService.removeByIds(Arrays.asList(ids.split(","))); |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/config/parameterConfiguration/controller/ParameterConfigurationController.java
@@ -9,6 +9,8 @@ import java.io.UnsupportedEncodingException; | @@ -9,6 +9,8 @@ import java.io.UnsupportedEncodingException; | ||
9 | import java.net.URLDecoder; | 9 | import java.net.URLDecoder; |
10 | import javax.servlet.http.HttpServletRequest; | 10 | import javax.servlet.http.HttpServletRequest; |
11 | import javax.servlet.http.HttpServletResponse; | 11 | import javax.servlet.http.HttpServletResponse; |
12 | + | ||
13 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
12 | import org.jeecg.common.api.vo.Result; | 14 | import org.jeecg.common.api.vo.Result; |
13 | import org.jeecg.common.system.query.QueryGenerator; | 15 | import org.jeecg.common.system.query.QueryGenerator; |
14 | import org.jeecg.common.system.util.JwtUtil; | 16 | import org.jeecg.common.system.util.JwtUtil; |
@@ -83,6 +85,7 @@ public class ParameterConfigurationController extends JeecgController<ParameterC | @@ -83,6 +85,7 @@ public class ParameterConfigurationController extends JeecgController<ParameterC | ||
83 | @AutoLog(value = "参数配置-添加") | 85 | @AutoLog(value = "参数配置-添加") |
84 | @ApiOperation(value="参数配置-添加", notes="参数配置-添加") | 86 | @ApiOperation(value="参数配置-添加", notes="参数配置-添加") |
85 | @PostMapping(value = "/add") | 87 | @PostMapping(value = "/add") |
88 | + @RequiresPermissions("parameterConfiguration:add") | ||
86 | public Result<String> add(@RequestBody ParameterConfiguration parameterConfiguration, HttpServletRequest req) { | 89 | public Result<String> add(@RequestBody ParameterConfiguration parameterConfiguration, HttpServletRequest req) { |
87 | parameterConfigurationService.save(parameterConfiguration); | 90 | parameterConfigurationService.save(parameterConfiguration); |
88 | return Result.OK("添加成功!"); | 91 | return Result.OK("添加成功!"); |
@@ -97,6 +100,7 @@ public class ParameterConfigurationController extends JeecgController<ParameterC | @@ -97,6 +100,7 @@ public class ParameterConfigurationController extends JeecgController<ParameterC | ||
97 | @AutoLog(value = "参数配置-编辑") | 100 | @AutoLog(value = "参数配置-编辑") |
98 | @ApiOperation(value="参数配置-编辑", notes="参数配置-编辑") | 101 | @ApiOperation(value="参数配置-编辑", notes="参数配置-编辑") |
99 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | 102 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
103 | + @RequiresPermissions("parameterConfiguration:edit") | ||
100 | public Result<String> edit(@RequestBody ParameterConfiguration parameterConfiguration) { | 104 | public Result<String> edit(@RequestBody ParameterConfiguration parameterConfiguration) { |
101 | parameterConfigurationService.updateById(parameterConfiguration); | 105 | parameterConfigurationService.updateById(parameterConfiguration); |
102 | return Result.OK("编辑成功!"); | 106 | return Result.OK("编辑成功!"); |
@@ -111,6 +115,7 @@ public class ParameterConfigurationController extends JeecgController<ParameterC | @@ -111,6 +115,7 @@ public class ParameterConfigurationController extends JeecgController<ParameterC | ||
111 | @AutoLog(value = "参数配置-通过id删除") | 115 | @AutoLog(value = "参数配置-通过id删除") |
112 | @ApiOperation(value="参数配置-通过id删除", notes="参数配置-通过id删除") | 116 | @ApiOperation(value="参数配置-通过id删除", notes="参数配置-通过id删除") |
113 | @DeleteMapping(value = "/delete") | 117 | @DeleteMapping(value = "/delete") |
118 | + @RequiresPermissions("parameterConfiguration:delete") | ||
114 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { | 119 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
115 | parameterConfigurationService.removeById(id); | 120 | parameterConfigurationService.removeById(id); |
116 | return Result.OK("删除成功!"); | 121 | return Result.OK("删除成功!"); |
@@ -125,6 +130,7 @@ public class ParameterConfigurationController extends JeecgController<ParameterC | @@ -125,6 +130,7 @@ public class ParameterConfigurationController extends JeecgController<ParameterC | ||
125 | @AutoLog(value = "参数配置-批量删除") | 130 | @AutoLog(value = "参数配置-批量删除") |
126 | @ApiOperation(value="参数配置-批量删除", notes="参数配置-批量删除") | 131 | @ApiOperation(value="参数配置-批量删除", notes="参数配置-批量删除") |
127 | @DeleteMapping(value = "/deleteBatch") | 132 | @DeleteMapping(value = "/deleteBatch") |
133 | + @RequiresPermissions("parameterConfiguration:deleteBatch") | ||
128 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | 134 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
129 | this.parameterConfigurationService.removeByIds(Arrays.asList(ids.split(","))); | 135 | this.parameterConfigurationService.removeByIds(Arrays.asList(ids.split(","))); |
130 | return Result.OK("批量删除成功!"); | 136 | return Result.OK("批量删除成功!"); |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/config/receiptType/controller/ReceiptTypeController.java
@@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse; | @@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse; | ||
12 | 12 | ||
13 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 13 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
14 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; | 14 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
15 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
15 | import org.jeecg.common.api.vo.Result; | 16 | import org.jeecg.common.api.vo.Result; |
16 | import org.jeecg.common.system.query.QueryGenerator; | 17 | import org.jeecg.common.system.query.QueryGenerator; |
17 | import org.jeecg.common.system.util.JwtUtil; | 18 | import org.jeecg.common.system.util.JwtUtil; |
@@ -87,6 +88,7 @@ public class ReceiptTypeController extends JeecgController<ReceiptType, IReceipt | @@ -87,6 +88,7 @@ public class ReceiptTypeController extends JeecgController<ReceiptType, IReceipt | ||
87 | @AutoLog(value = "入库单类型-添加") | 88 | @AutoLog(value = "入库单类型-添加") |
88 | @ApiOperation(value="入库单类型-添加", notes="入库单类型-添加") | 89 | @ApiOperation(value="入库单类型-添加", notes="入库单类型-添加") |
89 | @PostMapping(value = "/add") | 90 | @PostMapping(value = "/add") |
91 | + @RequiresPermissions("receiptType:add") | ||
90 | public Result<String> add(@RequestBody ReceiptType receiptType, HttpServletRequest req) { | 92 | public Result<String> add(@RequestBody ReceiptType receiptType, HttpServletRequest req) { |
91 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); | 93 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); |
92 | if(StringUtils.isNotEmpty(warehouseCode)) { | 94 | if(StringUtils.isNotEmpty(warehouseCode)) { |
@@ -104,6 +106,7 @@ public class ReceiptTypeController extends JeecgController<ReceiptType, IReceipt | @@ -104,6 +106,7 @@ public class ReceiptTypeController extends JeecgController<ReceiptType, IReceipt | ||
104 | */ | 106 | */ |
105 | @AutoLog(value = "入库单类型-编辑") | 107 | @AutoLog(value = "入库单类型-编辑") |
106 | @ApiOperation(value="入库单类型-编辑", notes="入库单类型-编辑") | 108 | @ApiOperation(value="入库单类型-编辑", notes="入库单类型-编辑") |
109 | + @RequiresPermissions("receiptType:edit") | ||
107 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | 110 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
108 | public Result<String> edit(@RequestBody ReceiptType receiptType) { | 111 | public Result<String> edit(@RequestBody ReceiptType receiptType) { |
109 | receiptTypeService.updateById(receiptType); | 112 | receiptTypeService.updateById(receiptType); |
@@ -118,6 +121,7 @@ public class ReceiptTypeController extends JeecgController<ReceiptType, IReceipt | @@ -118,6 +121,7 @@ public class ReceiptTypeController extends JeecgController<ReceiptType, IReceipt | ||
118 | */ | 121 | */ |
119 | @AutoLog(value = "入库单类型-通过id删除") | 122 | @AutoLog(value = "入库单类型-通过id删除") |
120 | @ApiOperation(value="入库单类型-通过id删除", notes="入库单类型-通过id删除") | 123 | @ApiOperation(value="入库单类型-通过id删除", notes="入库单类型-通过id删除") |
124 | + @RequiresPermissions("receiptType:delete") | ||
121 | @DeleteMapping(value = "/delete") | 125 | @DeleteMapping(value = "/delete") |
122 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { | 126 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
123 | receiptTypeService.removeById(id); | 127 | receiptTypeService.removeById(id); |
@@ -132,6 +136,7 @@ public class ReceiptTypeController extends JeecgController<ReceiptType, IReceipt | @@ -132,6 +136,7 @@ public class ReceiptTypeController extends JeecgController<ReceiptType, IReceipt | ||
132 | */ | 136 | */ |
133 | @AutoLog(value = "入库单类型-批量删除") | 137 | @AutoLog(value = "入库单类型-批量删除") |
134 | @ApiOperation(value="入库单类型-批量删除", notes="入库单类型-批量删除") | 138 | @ApiOperation(value="入库单类型-批量删除", notes="入库单类型-批量删除") |
139 | + @RequiresPermissions("receiptType:deleteBatch") | ||
135 | @DeleteMapping(value = "/deleteBatch") | 140 | @DeleteMapping(value = "/deleteBatch") |
136 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | 141 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
137 | this.receiptTypeService.removeByIds(Arrays.asList(ids.split(","))); | 142 | this.receiptTypeService.removeByIds(Arrays.asList(ids.split(","))); |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/config/shipmentType/controller/ShipmentTypeController.java
@@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse; | @@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse; | ||
12 | 12 | ||
13 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 13 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
14 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; | 14 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
15 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
15 | import org.jeecg.common.api.vo.Result; | 16 | import org.jeecg.common.api.vo.Result; |
16 | import org.jeecg.common.system.query.QueryGenerator; | 17 | import org.jeecg.common.system.query.QueryGenerator; |
17 | import org.jeecg.common.system.util.JwtUtil; | 18 | import org.jeecg.common.system.util.JwtUtil; |
@@ -86,6 +87,7 @@ public class ShipmentTypeController extends JeecgController<ShipmentType, IShipm | @@ -86,6 +87,7 @@ public class ShipmentTypeController extends JeecgController<ShipmentType, IShipm | ||
86 | */ | 87 | */ |
87 | @AutoLog(value = "出库单类型-添加") | 88 | @AutoLog(value = "出库单类型-添加") |
88 | @ApiOperation(value="出库单类型-添加", notes="出库单类型-添加") | 89 | @ApiOperation(value="出库单类型-添加", notes="出库单类型-添加") |
90 | + @RequiresPermissions("shipmentType:add") | ||
89 | @PostMapping(value = "/add") | 91 | @PostMapping(value = "/add") |
90 | public Result<String> add(@RequestBody ShipmentType shipmentType, HttpServletRequest req) { | 92 | public Result<String> add(@RequestBody ShipmentType shipmentType, HttpServletRequest req) { |
91 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); | 93 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); |
@@ -104,6 +106,7 @@ public class ShipmentTypeController extends JeecgController<ShipmentType, IShipm | @@ -104,6 +106,7 @@ public class ShipmentTypeController extends JeecgController<ShipmentType, IShipm | ||
104 | */ | 106 | */ |
105 | @AutoLog(value = "出库单类型-编辑") | 107 | @AutoLog(value = "出库单类型-编辑") |
106 | @ApiOperation(value="出库单类型-编辑", notes="出库单类型-编辑") | 108 | @ApiOperation(value="出库单类型-编辑", notes="出库单类型-编辑") |
109 | + @RequiresPermissions("shipmentType:edit") | ||
107 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | 110 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
108 | public Result<String> edit(@RequestBody ShipmentType shipmentType) { | 111 | public Result<String> edit(@RequestBody ShipmentType shipmentType) { |
109 | shipmentTypeService.updateById(shipmentType); | 112 | shipmentTypeService.updateById(shipmentType); |
@@ -118,6 +121,7 @@ public class ShipmentTypeController extends JeecgController<ShipmentType, IShipm | @@ -118,6 +121,7 @@ public class ShipmentTypeController extends JeecgController<ShipmentType, IShipm | ||
118 | */ | 121 | */ |
119 | @AutoLog(value = "出库单类型-通过id删除") | 122 | @AutoLog(value = "出库单类型-通过id删除") |
120 | @ApiOperation(value="出库单类型-通过id删除", notes="出库单类型-通过id删除") | 123 | @ApiOperation(value="出库单类型-通过id删除", notes="出库单类型-通过id删除") |
124 | + @RequiresPermissions("shipmentType:delete") | ||
121 | @DeleteMapping(value = "/delete") | 125 | @DeleteMapping(value = "/delete") |
122 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { | 126 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
123 | shipmentTypeService.removeById(id); | 127 | shipmentTypeService.removeById(id); |
@@ -132,6 +136,7 @@ public class ShipmentTypeController extends JeecgController<ShipmentType, IShipm | @@ -132,6 +136,7 @@ public class ShipmentTypeController extends JeecgController<ShipmentType, IShipm | ||
132 | */ | 136 | */ |
133 | @AutoLog(value = "出库单类型-批量删除") | 137 | @AutoLog(value = "出库单类型-批量删除") |
134 | @ApiOperation(value="出库单类型-批量删除", notes="出库单类型-批量删除") | 138 | @ApiOperation(value="出库单类型-批量删除", notes="出库单类型-批量删除") |
139 | + @RequiresPermissions("shipmentType:deleteBatch") | ||
135 | @DeleteMapping(value = "/deleteBatch") | 140 | @DeleteMapping(value = "/deleteBatch") |
136 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | 141 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
137 | this.shipmentTypeService.removeByIds(Arrays.asList(ids.split(","))); | 142 | this.shipmentTypeService.removeByIds(Arrays.asList(ids.split(","))); |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/receipt/receiptContainerHeader/controller/ReceiptContainerHeaderController.java
1 | package org.jeecg.modules.wms.receipt.receiptContainerHeader.controller; | 1 | package org.jeecg.modules.wms.receipt.receiptContainerHeader.controller; |
2 | 2 | ||
3 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
3 | import org.jeecg.common.system.query.QueryGenerator; | 4 | import org.jeecg.common.system.query.QueryGenerator; |
4 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 5 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
5 | import com.baomidou.mybatisplus.core.metadata.IPage; | 6 | import com.baomidou.mybatisplus.core.metadata.IPage; |
@@ -103,6 +104,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | @@ -103,6 +104,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | ||
103 | */ | 104 | */ |
104 | @AutoLog(value = "入库组盘-添加") | 105 | @AutoLog(value = "入库组盘-添加") |
105 | @ApiOperation(value="入库组盘-添加", notes="入库组盘-添加") | 106 | @ApiOperation(value="入库组盘-添加", notes="入库组盘-添加") |
107 | + @RequiresPermissions("receiptContainerHeader:add") | ||
106 | @PostMapping(value = "/add") | 108 | @PostMapping(value = "/add") |
107 | public Result<String> add(@RequestBody ReceiptContainerHeader receiptContainerHeader) { | 109 | public Result<String> add(@RequestBody ReceiptContainerHeader receiptContainerHeader) { |
108 | receiptContainerHeaderService.save(receiptContainerHeader); | 110 | receiptContainerHeaderService.save(receiptContainerHeader); |
@@ -116,6 +118,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | @@ -116,6 +118,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | ||
116 | */ | 118 | */ |
117 | @AutoLog(value = "入库组盘-编辑") | 119 | @AutoLog(value = "入库组盘-编辑") |
118 | @ApiOperation(value="入库组盘-编辑", notes="入库组盘-编辑") | 120 | @ApiOperation(value="入库组盘-编辑", notes="入库组盘-编辑") |
121 | + @RequiresPermissions("receiptContainerHeader:edit") | ||
119 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | 122 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
120 | public Result<String> edit(@RequestBody ReceiptContainerHeader receiptContainerHeader) { | 123 | public Result<String> edit(@RequestBody ReceiptContainerHeader receiptContainerHeader) { |
121 | receiptContainerHeaderService.updateById(receiptContainerHeader); | 124 | receiptContainerHeaderService.updateById(receiptContainerHeader); |
@@ -130,6 +133,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | @@ -130,6 +133,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | ||
130 | @AutoLog(value = "入库组盘-通过id删除") | 133 | @AutoLog(value = "入库组盘-通过id删除") |
131 | @ApiOperation(value="入库组盘-通过id删除", notes="入库组盘-通过id删除") | 134 | @ApiOperation(value="入库组盘-通过id删除", notes="入库组盘-通过id删除") |
132 | @DeleteMapping(value = "/delete") | 135 | @DeleteMapping(value = "/delete") |
136 | + @RequiresPermissions("receiptContainerHeader:delete") | ||
133 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { | 137 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
134 | receiptContainerHeaderService.delMain(id); | 138 | receiptContainerHeaderService.delMain(id); |
135 | return Result.OK("删除成功!"); | 139 | return Result.OK("删除成功!"); |
@@ -143,6 +147,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | @@ -143,6 +147,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | ||
143 | @AutoLog(value = "入库组盘-批量删除") | 147 | @AutoLog(value = "入库组盘-批量删除") |
144 | @ApiOperation(value="入库组盘-批量删除", notes="入库组盘-批量删除") | 148 | @ApiOperation(value="入库组盘-批量删除", notes="入库组盘-批量删除") |
145 | @DeleteMapping(value = "/deleteBatch") | 149 | @DeleteMapping(value = "/deleteBatch") |
150 | + @RequiresPermissions("receiptContainerHeader:deleteBatch") | ||
146 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | 151 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
147 | this.receiptContainerHeaderService.delBatchMain(Arrays.asList(ids.split(","))); | 152 | this.receiptContainerHeaderService.delBatchMain(Arrays.asList(ids.split(","))); |
148 | return Result.OK("批量删除成功!"); | 153 | return Result.OK("批量删除成功!"); |
@@ -194,6 +199,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | @@ -194,6 +199,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | ||
194 | @AutoLog(value = "入库组盘详情-添加") | 199 | @AutoLog(value = "入库组盘详情-添加") |
195 | @ApiOperation(value="入库组盘详情-添加", notes="入库组盘详情-添加") | 200 | @ApiOperation(value="入库组盘详情-添加", notes="入库组盘详情-添加") |
196 | @PostMapping(value = "/addReceiptContainerDetail") | 201 | @PostMapping(value = "/addReceiptContainerDetail") |
202 | + @RequiresPermissions("receiptContainerDetail:add") | ||
197 | public Result<String> addReceiptContainerDetail(@RequestBody ReceiptContainerDetail receiptContainerDetail) { | 203 | public Result<String> addReceiptContainerDetail(@RequestBody ReceiptContainerDetail receiptContainerDetail) { |
198 | receiptContainerDetailService.save(receiptContainerDetail); | 204 | receiptContainerDetailService.save(receiptContainerDetail); |
199 | return Result.OK("添加成功!"); | 205 | return Result.OK("添加成功!"); |
@@ -206,6 +212,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | @@ -206,6 +212,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | ||
206 | */ | 212 | */ |
207 | @AutoLog(value = "入库组盘详情-编辑") | 213 | @AutoLog(value = "入库组盘详情-编辑") |
208 | @ApiOperation(value="入库组盘详情-编辑", notes="入库组盘详情-编辑") | 214 | @ApiOperation(value="入库组盘详情-编辑", notes="入库组盘详情-编辑") |
215 | + @RequiresPermissions("receiptContainerDetail:edit") | ||
209 | @RequestMapping(value = "/editReceiptContainerDetail", method = {RequestMethod.PUT,RequestMethod.POST}) | 216 | @RequestMapping(value = "/editReceiptContainerDetail", method = {RequestMethod.PUT,RequestMethod.POST}) |
210 | public Result<String> editReceiptContainerDetail(@RequestBody ReceiptContainerDetail receiptContainerDetail) { | 217 | public Result<String> editReceiptContainerDetail(@RequestBody ReceiptContainerDetail receiptContainerDetail) { |
211 | receiptContainerDetailService.updateById(receiptContainerDetail); | 218 | receiptContainerDetailService.updateById(receiptContainerDetail); |
@@ -219,6 +226,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | @@ -219,6 +226,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | ||
219 | */ | 226 | */ |
220 | @AutoLog(value = "入库组盘详情-通过id删除") | 227 | @AutoLog(value = "入库组盘详情-通过id删除") |
221 | @ApiOperation(value="入库组盘详情-通过id删除", notes="入库组盘详情-通过id删除") | 228 | @ApiOperation(value="入库组盘详情-通过id删除", notes="入库组盘详情-通过id删除") |
229 | + @RequiresPermissions("receiptContainerDetail:delete") | ||
222 | @DeleteMapping(value = "/deleteReceiptContainerDetail") | 230 | @DeleteMapping(value = "/deleteReceiptContainerDetail") |
223 | public Result<String> deleteReceiptContainerDetail(@RequestParam(name="id",required=true) String id) { | 231 | public Result<String> deleteReceiptContainerDetail(@RequestParam(name="id",required=true) String id) { |
224 | receiptContainerDetailService.removeById(id); | 232 | receiptContainerDetailService.removeById(id); |
@@ -232,6 +240,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | @@ -232,6 +240,7 @@ public class ReceiptContainerHeaderController extends JeecgController<ReceiptCon | ||
232 | */ | 240 | */ |
233 | @AutoLog(value = "入库组盘详情-批量删除") | 241 | @AutoLog(value = "入库组盘详情-批量删除") |
234 | @ApiOperation(value="入库组盘详情-批量删除", notes="入库组盘详情-批量删除") | 242 | @ApiOperation(value="入库组盘详情-批量删除", notes="入库组盘详情-批量删除") |
243 | + @RequiresPermissions("receiptContainerDetail:deleteBatch") | ||
235 | @DeleteMapping(value = "/deleteBatchReceiptContainerDetail") | 244 | @DeleteMapping(value = "/deleteBatchReceiptContainerDetail") |
236 | public Result<String> deleteBatchReceiptContainerDetail(@RequestParam(name="ids",required=true) String ids) { | 245 | public Result<String> deleteBatchReceiptContainerDetail(@RequestParam(name="ids",required=true) String ids) { |
237 | this.receiptContainerDetailService.removeByIds(Arrays.asList(ids.split(","))); | 246 | this.receiptContainerDetailService.removeByIds(Arrays.asList(ids.split(","))); |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/controller/ReceiptHeaderController.java
1 | package org.jeecg.modules.wms.receipt.receiptHeader.controller; | 1 | package org.jeecg.modules.wms.receipt.receiptHeader.controller; |
2 | 2 | ||
3 | import com.aliyun.oss.ServiceException; | 3 | import com.aliyun.oss.ServiceException; |
4 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
4 | import org.jeecg.common.system.query.QueryGenerator; | 5 | import org.jeecg.common.system.query.QueryGenerator; |
5 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 6 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
6 | import com.baomidou.mybatisplus.core.metadata.IPage; | 7 | import com.baomidou.mybatisplus.core.metadata.IPage; |
@@ -99,6 +100,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | @@ -99,6 +100,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | ||
99 | @AutoLog(value = "入库表主表-添加") | 100 | @AutoLog(value = "入库表主表-添加") |
100 | @ApiOperation(value="入库表主表-添加", notes="入库表主表-添加") | 101 | @ApiOperation(value="入库表主表-添加", notes="入库表主表-添加") |
101 | @PostMapping(value = "/add") | 102 | @PostMapping(value = "/add") |
103 | + @RequiresPermissions("receiptHeader:add") | ||
102 | public Result<String> add(@RequestBody ReceiptHeader receiptHeader, HttpServletRequest req) { | 104 | public Result<String> add(@RequestBody ReceiptHeader receiptHeader, HttpServletRequest req) { |
103 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); | 105 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); |
104 | if(StringUtils.isNotEmpty(warehouseCode)) { | 106 | if(StringUtils.isNotEmpty(warehouseCode)) { |
@@ -115,6 +117,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | @@ -115,6 +117,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | ||
115 | */ | 117 | */ |
116 | @AutoLog(value = "入库表主表-编辑") | 118 | @AutoLog(value = "入库表主表-编辑") |
117 | @ApiOperation(value="入库表主表-编辑", notes="入库表主表-编辑") | 119 | @ApiOperation(value="入库表主表-编辑", notes="入库表主表-编辑") |
120 | + @RequiresPermissions("receiptHeader:edit") | ||
118 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | 121 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
119 | public Result<String> edit(@RequestBody ReceiptHeader receiptHeader) { | 122 | public Result<String> edit(@RequestBody ReceiptHeader receiptHeader) { |
120 | receiptHeaderService.updateById(receiptHeader); | 123 | receiptHeaderService.updateById(receiptHeader); |
@@ -128,6 +131,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | @@ -128,6 +131,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | ||
128 | */ | 131 | */ |
129 | @AutoLog(value = "入库表主表-通过id删除") | 132 | @AutoLog(value = "入库表主表-通过id删除") |
130 | @ApiOperation(value="入库表主表-通过id删除", notes="入库表主表-通过id删除") | 133 | @ApiOperation(value="入库表主表-通过id删除", notes="入库表主表-通过id删除") |
134 | + @RequiresPermissions("receiptHeader:delete") | ||
131 | @DeleteMapping(value = "/delete") | 135 | @DeleteMapping(value = "/delete") |
132 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { | 136 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
133 | receiptHeaderService.delMain(id); | 137 | receiptHeaderService.delMain(id); |
@@ -141,6 +145,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | @@ -141,6 +145,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | ||
141 | */ | 145 | */ |
142 | @AutoLog(value = "入库表主表-批量删除") | 146 | @AutoLog(value = "入库表主表-批量删除") |
143 | @ApiOperation(value="入库表主表-批量删除", notes="入库表主表-批量删除") | 147 | @ApiOperation(value="入库表主表-批量删除", notes="入库表主表-批量删除") |
148 | + @RequiresPermissions("receiptHeader:deleteBatch") | ||
144 | @DeleteMapping(value = "/deleteBatch") | 149 | @DeleteMapping(value = "/deleteBatch") |
145 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | 150 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
146 | this.receiptHeaderService.delBatchMain(Arrays.asList(ids.split(","))); | 151 | this.receiptHeaderService.delBatchMain(Arrays.asList(ids.split(","))); |
@@ -193,6 +198,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | @@ -193,6 +198,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | ||
193 | @AutoLog(value = "入库单详情-添加") | 198 | @AutoLog(value = "入库单详情-添加") |
194 | @ApiOperation(value="入库单详情-添加", notes="入库单详情-添加") | 199 | @ApiOperation(value="入库单详情-添加", notes="入库单详情-添加") |
195 | @PostMapping(value = "/addReceiptDetail") | 200 | @PostMapping(value = "/addReceiptDetail") |
201 | + @RequiresPermissions("receiptDetail:add") | ||
196 | public Result<String> addReceiptDetail(@RequestBody ReceiptDetail receiptDetail) { | 202 | public Result<String> addReceiptDetail(@RequestBody ReceiptDetail receiptDetail) { |
197 | Result result = receiptDetailService.saveReceiptDetail(receiptDetail); | 203 | Result result = receiptDetailService.saveReceiptDetail(receiptDetail); |
198 | return result; | 204 | return result; |
@@ -205,6 +211,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | @@ -205,6 +211,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | ||
205 | */ | 211 | */ |
206 | @AutoLog(value = "入库单详情-编辑") | 212 | @AutoLog(value = "入库单详情-编辑") |
207 | @ApiOperation(value="入库单详情-编辑", notes="入库单详情-编辑") | 213 | @ApiOperation(value="入库单详情-编辑", notes="入库单详情-编辑") |
214 | + @RequiresPermissions("receiptDetail:edit") | ||
208 | @RequestMapping(value = "/editReceiptDetail", method = {RequestMethod.PUT,RequestMethod.POST}) | 215 | @RequestMapping(value = "/editReceiptDetail", method = {RequestMethod.PUT,RequestMethod.POST}) |
209 | public Result<String> editReceiptDetail(@RequestBody ReceiptDetail receiptDetail) { | 216 | public Result<String> editReceiptDetail(@RequestBody ReceiptDetail receiptDetail) { |
210 | receiptDetailService.updateById(receiptDetail); | 217 | receiptDetailService.updateById(receiptDetail); |
@@ -218,6 +225,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | @@ -218,6 +225,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | ||
218 | */ | 225 | */ |
219 | @AutoLog(value = "入库单详情-通过id删除") | 226 | @AutoLog(value = "入库单详情-通过id删除") |
220 | @ApiOperation(value="入库单详情-通过id删除", notes="入库单详情-通过id删除") | 227 | @ApiOperation(value="入库单详情-通过id删除", notes="入库单详情-通过id删除") |
228 | + @RequiresPermissions("receiptDetail:delete") | ||
221 | @DeleteMapping(value = "/deleteReceiptDetail") | 229 | @DeleteMapping(value = "/deleteReceiptDetail") |
222 | public Result<String> deleteReceiptDetail(@RequestParam(name="id",required=true) String id) { | 230 | public Result<String> deleteReceiptDetail(@RequestParam(name="id",required=true) String id) { |
223 | ReceiptDetail receiptDetail = receiptDetailService.getById(id); | 231 | ReceiptDetail receiptDetail = receiptDetailService.getById(id); |
@@ -249,6 +257,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | @@ -249,6 +257,7 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec | ||
249 | */ | 257 | */ |
250 | @AutoLog(value = "入库单详情-批量删除") | 258 | @AutoLog(value = "入库单详情-批量删除") |
251 | @ApiOperation(value="入库单详情-批量删除", notes="入库单详情-批量删除") | 259 | @ApiOperation(value="入库单详情-批量删除", notes="入库单详情-批量删除") |
260 | + @RequiresPermissions("receiptDetail:deleteBatch") | ||
252 | @DeleteMapping(value = "/deleteBatchReceiptDetail") | 261 | @DeleteMapping(value = "/deleteBatchReceiptDetail") |
253 | public Result<String> deleteBatchReceiptDetail(@RequestParam(name="ids",required=true) String ids) { | 262 | public Result<String> deleteBatchReceiptDetail(@RequestParam(name="ids",required=true) String ids) { |
254 | this.receiptDetailService.removeByIds(Arrays.asList(ids.split(","))); | 263 | this.receiptDetailService.removeByIds(Arrays.asList(ids.split(","))); |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/shipment/shipmentCombination/service/impl/ShipmentCombinationServiceImpl.java
@@ -547,7 +547,7 @@ public class ShipmentCombinationServiceImpl implements IShipmentCombinationServi | @@ -547,7 +547,7 @@ public class ShipmentCombinationServiceImpl implements IShipmentCombinationServi | ||
547 | return Result.OK("生成出库任务成功"); | 547 | return Result.OK("生成出库任务成功"); |
548 | } | 548 | } |
549 | 549 | ||
550 | - @Override | 550 | + @Override |
551 | public Result getInventoryFromShipmentDetail(Integer shipmentDetailId) { | 551 | public Result getInventoryFromShipmentDetail(Integer shipmentDetailId) { |
552 | ShipmentDetail shipmentDetail = shipmentDetailService.getById(shipmentDetailId); | 552 | ShipmentDetail shipmentDetail = shipmentDetailService.getById(shipmentDetailId); |
553 | if(shipmentDetail == null){ | 553 | if(shipmentDetail == null){ |
@@ -561,6 +561,7 @@ public class ShipmentCombinationServiceImpl implements IShipmentCombinationServi | @@ -561,6 +561,7 @@ public class ShipmentCombinationServiceImpl implements IShipmentCombinationServi | ||
561 | List<InventoryDetail> removeInventoryList = new ArrayList<>(); | 561 | List<InventoryDetail> removeInventoryList = new ArrayList<>(); |
562 | for(InventoryDetail inventoryDetail : inventoryDetailList) { | 562 | for(InventoryDetail inventoryDetail : inventoryDetailList) { |
563 | String containerCode = inventoryDetail.getContainerCode(); | 563 | String containerCode = inventoryDetail.getContainerCode(); |
564 | + Container container = | ||
564 | Container container = containerService.getContainerByCode(containerCode, warehouseCode); | 565 | Container container = containerService.getContainerByCode(containerCode, warehouseCode); |
565 | if(container == null) { | 566 | if(container == null) { |
566 | return Result.error("没有找到容器,容器号" + containerCode); | 567 | return Result.error("没有找到容器,容器号" + containerCode); |
@@ -569,6 +570,7 @@ public class ShipmentCombinationServiceImpl implements IShipmentCombinationServi | @@ -569,6 +570,7 @@ public class ShipmentCombinationServiceImpl implements IShipmentCombinationServi | ||
569 | removeInventoryList.add(inventoryDetail); | 570 | removeInventoryList.add(inventoryDetail); |
570 | } | 571 | } |
571 | } | 572 | } |
573 | + return null; | ||
572 | List<ReceiptContainerHeader> unCompleteCombineList = | 574 | List<ReceiptContainerHeader> unCompleteCombineList = |
573 | receiptContainerHeaderService.getUnCompleteCombineList(); | 575 | receiptContainerHeaderService.getUnCompleteCombineList(); |
574 | if(unCompleteCombineList != null && unCompleteCombineList.size() > 0) { | 576 | if(unCompleteCombineList != null && unCompleteCombineList.size() > 0) { |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerHeader/controller/ShipmentContainerHeaderController.java
1 | package org.jeecg.modules.wms.shipment.shipmentContainerHeader.controller; | 1 | package org.jeecg.modules.wms.shipment.shipmentContainerHeader.controller; |
2 | 2 | ||
3 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
3 | import org.jeecg.common.system.query.QueryGenerator; | 4 | import org.jeecg.common.system.query.QueryGenerator; |
4 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 5 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
5 | import com.baomidou.mybatisplus.core.metadata.IPage; | 6 | import com.baomidou.mybatisplus.core.metadata.IPage; |
@@ -85,6 +86,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | @@ -85,6 +86,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | ||
85 | @AutoLog(value = "出库组盘-添加") | 86 | @AutoLog(value = "出库组盘-添加") |
86 | @ApiOperation(value="出库组盘-添加", notes="出库组盘-添加") | 87 | @ApiOperation(value="出库组盘-添加", notes="出库组盘-添加") |
87 | @PostMapping(value = "/add") | 88 | @PostMapping(value = "/add") |
89 | + @RequiresPermissions("shipmentContainerHeader:add") | ||
88 | public Result<String> add(@RequestBody ShipmentContainerHeader shipmentContainerHeader) { | 90 | public Result<String> add(@RequestBody ShipmentContainerHeader shipmentContainerHeader) { |
89 | shipmentContainerHeaderService.save(shipmentContainerHeader); | 91 | shipmentContainerHeaderService.save(shipmentContainerHeader); |
90 | return Result.OK("添加成功!"); | 92 | return Result.OK("添加成功!"); |
@@ -97,6 +99,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | @@ -97,6 +99,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | ||
97 | */ | 99 | */ |
98 | @AutoLog(value = "出库组盘-编辑") | 100 | @AutoLog(value = "出库组盘-编辑") |
99 | @ApiOperation(value="出库组盘-编辑", notes="出库组盘-编辑") | 101 | @ApiOperation(value="出库组盘-编辑", notes="出库组盘-编辑") |
102 | + @RequiresPermissions("shipmentContainerHeader:edit") | ||
100 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | 103 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
101 | public Result<String> edit(@RequestBody ShipmentContainerHeader shipmentContainerHeader) { | 104 | public Result<String> edit(@RequestBody ShipmentContainerHeader shipmentContainerHeader) { |
102 | shipmentContainerHeaderService.updateById(shipmentContainerHeader); | 105 | shipmentContainerHeaderService.updateById(shipmentContainerHeader); |
@@ -110,6 +113,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | @@ -110,6 +113,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | ||
110 | */ | 113 | */ |
111 | @AutoLog(value = "出库组盘-通过id删除") | 114 | @AutoLog(value = "出库组盘-通过id删除") |
112 | @ApiOperation(value="出库组盘-通过id删除", notes="出库组盘-通过id删除") | 115 | @ApiOperation(value="出库组盘-通过id删除", notes="出库组盘-通过id删除") |
116 | + @RequiresPermissions("shipmentContainerHeader:delete") | ||
113 | @DeleteMapping(value = "/delete") | 117 | @DeleteMapping(value = "/delete") |
114 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { | 118 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
115 | shipmentContainerHeaderService.delMain(id); | 119 | shipmentContainerHeaderService.delMain(id); |
@@ -123,6 +127,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | @@ -123,6 +127,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | ||
123 | */ | 127 | */ |
124 | @AutoLog(value = "出库组盘-批量删除") | 128 | @AutoLog(value = "出库组盘-批量删除") |
125 | @ApiOperation(value="出库组盘-批量删除", notes="出库组盘-批量删除") | 129 | @ApiOperation(value="出库组盘-批量删除", notes="出库组盘-批量删除") |
130 | + @RequiresPermissions("shipmentContainerHeader:deleteBatch") | ||
126 | @DeleteMapping(value = "/deleteBatch") | 131 | @DeleteMapping(value = "/deleteBatch") |
127 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | 132 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
128 | this.shipmentContainerHeaderService.delBatchMain(Arrays.asList(ids.split(","))); | 133 | this.shipmentContainerHeaderService.delBatchMain(Arrays.asList(ids.split(","))); |
@@ -174,6 +179,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | @@ -174,6 +179,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | ||
174 | */ | 179 | */ |
175 | @AutoLog(value = "出库组盘详情-添加") | 180 | @AutoLog(value = "出库组盘详情-添加") |
176 | @ApiOperation(value="出库组盘详情-添加", notes="出库组盘详情-添加") | 181 | @ApiOperation(value="出库组盘详情-添加", notes="出库组盘详情-添加") |
182 | + @RequiresPermissions("shipmentContainerDetail:add") | ||
177 | @PostMapping(value = "/addShipmentContainerDetail") | 183 | @PostMapping(value = "/addShipmentContainerDetail") |
178 | public Result<String> addShipmentContainerDetail(@RequestBody ShipmentContainerDetail shipmentContainerDetail) { | 184 | public Result<String> addShipmentContainerDetail(@RequestBody ShipmentContainerDetail shipmentContainerDetail) { |
179 | shipmentContainerDetailService.save(shipmentContainerDetail); | 185 | shipmentContainerDetailService.save(shipmentContainerDetail); |
@@ -187,6 +193,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | @@ -187,6 +193,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | ||
187 | */ | 193 | */ |
188 | @AutoLog(value = "出库组盘详情-编辑") | 194 | @AutoLog(value = "出库组盘详情-编辑") |
189 | @ApiOperation(value="出库组盘详情-编辑", notes="出库组盘详情-编辑") | 195 | @ApiOperation(value="出库组盘详情-编辑", notes="出库组盘详情-编辑") |
196 | + @RequiresPermissions("shipmentContainerDetail:edit") | ||
190 | @RequestMapping(value = "/editShipmentContainerDetail", method = {RequestMethod.PUT,RequestMethod.POST}) | 197 | @RequestMapping(value = "/editShipmentContainerDetail", method = {RequestMethod.PUT,RequestMethod.POST}) |
191 | public Result<String> editShipmentContainerDetail(@RequestBody ShipmentContainerDetail shipmentContainerDetail) { | 198 | public Result<String> editShipmentContainerDetail(@RequestBody ShipmentContainerDetail shipmentContainerDetail) { |
192 | shipmentContainerDetailService.updateById(shipmentContainerDetail); | 199 | shipmentContainerDetailService.updateById(shipmentContainerDetail); |
@@ -200,6 +207,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | @@ -200,6 +207,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | ||
200 | */ | 207 | */ |
201 | @AutoLog(value = "出库组盘详情-通过id删除") | 208 | @AutoLog(value = "出库组盘详情-通过id删除") |
202 | @ApiOperation(value="出库组盘详情-通过id删除", notes="出库组盘详情-通过id删除") | 209 | @ApiOperation(value="出库组盘详情-通过id删除", notes="出库组盘详情-通过id删除") |
210 | + @RequiresPermissions("shipmentContainerDetail:delete") | ||
203 | @DeleteMapping(value = "/deleteShipmentContainerDetail") | 211 | @DeleteMapping(value = "/deleteShipmentContainerDetail") |
204 | public Result<String> deleteShipmentContainerDetail(@RequestParam(name="id",required=true) String id) { | 212 | public Result<String> deleteShipmentContainerDetail(@RequestParam(name="id",required=true) String id) { |
205 | shipmentContainerDetailService.removeById(id); | 213 | shipmentContainerDetailService.removeById(id); |
@@ -213,6 +221,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | @@ -213,6 +221,7 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC | ||
213 | */ | 221 | */ |
214 | @AutoLog(value = "出库组盘详情-批量删除") | 222 | @AutoLog(value = "出库组盘详情-批量删除") |
215 | @ApiOperation(value="出库组盘详情-批量删除", notes="出库组盘详情-批量删除") | 223 | @ApiOperation(value="出库组盘详情-批量删除", notes="出库组盘详情-批量删除") |
224 | + @RequiresPermissions("shipmentContainerDetail:deleteBatch") | ||
216 | @DeleteMapping(value = "/deleteBatchShipmentContainerDetail") | 225 | @DeleteMapping(value = "/deleteBatchShipmentContainerDetail") |
217 | public Result<String> deleteBatchShipmentContainerDetail(@RequestParam(name="ids",required=true) String ids) { | 226 | public Result<String> deleteBatchShipmentContainerDetail(@RequestParam(name="ids",required=true) String ids) { |
218 | this.shipmentContainerDetailService.removeByIds(Arrays.asList(ids.split(","))); | 227 | this.shipmentContainerDetailService.removeByIds(Arrays.asList(ids.split(","))); |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/shipment/shipmentHeader/controller/ShipmentHeaderController.java
1 | package org.jeecg.modules.wms.shipment.shipmentHeader.controller; | 1 | package org.jeecg.modules.wms.shipment.shipmentHeader.controller; |
2 | 2 | ||
3 | import com.aliyun.oss.ServiceException; | 3 | import com.aliyun.oss.ServiceException; |
4 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
4 | import org.jeecg.common.system.query.QueryGenerator; | 5 | import org.jeecg.common.system.query.QueryGenerator; |
5 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 6 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
6 | import com.baomidou.mybatisplus.core.metadata.IPage; | 7 | import com.baomidou.mybatisplus.core.metadata.IPage; |
@@ -91,6 +92,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -91,6 +92,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
91 | @AutoLog(value = "出库单-添加") | 92 | @AutoLog(value = "出库单-添加") |
92 | @ApiOperation(value="出库单-添加", notes="出库单-添加") | 93 | @ApiOperation(value="出库单-添加", notes="出库单-添加") |
93 | @PostMapping(value = "/add") | 94 | @PostMapping(value = "/add") |
95 | + @RequiresPermissions("shipmentHeader:add") | ||
94 | public Result<String> add(@RequestBody ShipmentHeader shipmentHeader, HttpServletRequest req) { | 96 | public Result<String> add(@RequestBody ShipmentHeader shipmentHeader, HttpServletRequest req) { |
95 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); | 97 | String warehouseCode = JwtUtil.getWarehouseCodeByToken(req); |
96 | shipmentHeader.setWarehouseCode(warehouseCode); | 98 | shipmentHeader.setWarehouseCode(warehouseCode); |
@@ -105,6 +107,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -105,6 +107,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
105 | */ | 107 | */ |
106 | @AutoLog(value = "出库单-编辑") | 108 | @AutoLog(value = "出库单-编辑") |
107 | @ApiOperation(value="出库单-编辑", notes="出库单-编辑") | 109 | @ApiOperation(value="出库单-编辑", notes="出库单-编辑") |
110 | + @RequiresPermissions("shipmentHeader:edit") | ||
108 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | 111 | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
109 | public Result<String> edit(@RequestBody ShipmentHeader shipmentHeader) { | 112 | public Result<String> edit(@RequestBody ShipmentHeader shipmentHeader) { |
110 | shipmentHeaderService.updateById(shipmentHeader); | 113 | shipmentHeaderService.updateById(shipmentHeader); |
@@ -117,6 +120,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -117,6 +120,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
117 | * @return | 120 | * @return |
118 | */ | 121 | */ |
119 | @AutoLog(value = "出库单-通过id删除") | 122 | @AutoLog(value = "出库单-通过id删除") |
123 | + @RequiresPermissions("shipmentHeader:delete") | ||
120 | @ApiOperation(value="出库单-通过id删除", notes="出库单-通过id删除") | 124 | @ApiOperation(value="出库单-通过id删除", notes="出库单-通过id删除") |
121 | @DeleteMapping(value = "/delete") | 125 | @DeleteMapping(value = "/delete") |
122 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { | 126 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
@@ -131,6 +135,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -131,6 +135,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
131 | */ | 135 | */ |
132 | @AutoLog(value = "出库单-批量删除") | 136 | @AutoLog(value = "出库单-批量删除") |
133 | @ApiOperation(value="出库单-批量删除", notes="出库单-批量删除") | 137 | @ApiOperation(value="出库单-批量删除", notes="出库单-批量删除") |
138 | + @RequiresPermissions("shipmentHeader:deleteBatch") | ||
134 | @DeleteMapping(value = "/deleteBatch") | 139 | @DeleteMapping(value = "/deleteBatch") |
135 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | 140 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
136 | this.shipmentHeaderService.delBatchMain(Arrays.asList(ids.split(","))); | 141 | this.shipmentHeaderService.delBatchMain(Arrays.asList(ids.split(","))); |
@@ -182,6 +187,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -182,6 +187,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
182 | */ | 187 | */ |
183 | @AutoLog(value = "出库单详情-添加") | 188 | @AutoLog(value = "出库单详情-添加") |
184 | @ApiOperation(value="出库单详情-添加", notes="出库单详情-添加") | 189 | @ApiOperation(value="出库单详情-添加", notes="出库单详情-添加") |
190 | + @RequiresPermissions("shipmentDetail:add") | ||
185 | @PostMapping(value = "/addShipmentDetail") | 191 | @PostMapping(value = "/addShipmentDetail") |
186 | public Result<String> addShipmentDetail(@RequestBody ShipmentDetail shipmentDetail, HttpServletRequest req) { | 192 | public Result<String> addShipmentDetail(@RequestBody ShipmentDetail shipmentDetail, HttpServletRequest req) { |
187 | Result result = shipmentDetailService.saveShipmentDetail(shipmentDetail); | 193 | Result result = shipmentDetailService.saveShipmentDetail(shipmentDetail); |
@@ -195,6 +201,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -195,6 +201,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
195 | */ | 201 | */ |
196 | @AutoLog(value = "出库单详情-编辑") | 202 | @AutoLog(value = "出库单详情-编辑") |
197 | @ApiOperation(value="出库单详情-编辑", notes="出库单详情-编辑") | 203 | @ApiOperation(value="出库单详情-编辑", notes="出库单详情-编辑") |
204 | + @RequiresPermissions("shipmentDetail:edit") | ||
198 | @RequestMapping(value = "/editShipmentDetail", method = {RequestMethod.PUT,RequestMethod.POST}) | 205 | @RequestMapping(value = "/editShipmentDetail", method = {RequestMethod.PUT,RequestMethod.POST}) |
199 | public Result<String> editShipmentDetail(@RequestBody ShipmentDetail shipmentDetail) { | 206 | public Result<String> editShipmentDetail(@RequestBody ShipmentDetail shipmentDetail) { |
200 | shipmentDetailService.updateById(shipmentDetail); | 207 | shipmentDetailService.updateById(shipmentDetail); |
@@ -208,6 +215,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -208,6 +215,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
208 | */ | 215 | */ |
209 | @AutoLog(value = "出库单详情-通过id删除") | 216 | @AutoLog(value = "出库单详情-通过id删除") |
210 | @ApiOperation(value="出库单详情-通过id删除", notes="出库单详情-通过id删除") | 217 | @ApiOperation(value="出库单详情-通过id删除", notes="出库单详情-通过id删除") |
218 | + @RequiresPermissions("shipmentDetail:delete") | ||
211 | @DeleteMapping(value = "/deleteShipmentDetail") | 219 | @DeleteMapping(value = "/deleteShipmentDetail") |
212 | public Result<String> deleteShipmentDetail(@RequestParam(name="id",required=true) String id) { | 220 | public Result<String> deleteShipmentDetail(@RequestParam(name="id",required=true) String id) { |
213 | ShipmentDetail shipmentDetail = shipmentDetailService.getById(id); | 221 | ShipmentDetail shipmentDetail = shipmentDetailService.getById(id); |
@@ -239,6 +247,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | @@ -239,6 +247,7 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS | ||
239 | */ | 247 | */ |
240 | @AutoLog(value = "出库单详情-批量删除") | 248 | @AutoLog(value = "出库单详情-批量删除") |
241 | @ApiOperation(value="出库单详情-批量删除", notes="出库单详情-批量删除") | 249 | @ApiOperation(value="出库单详情-批量删除", notes="出库单详情-批量删除") |
250 | + @RequiresPermissions("shipmentDetail:deleteBatch") | ||
242 | @DeleteMapping(value = "/deleteBatchShipmentDetail") | 251 | @DeleteMapping(value = "/deleteBatchShipmentDetail") |
243 | public Result<String> deleteBatchShipmentDetail(@RequestParam(name="ids",required=true) String ids) { | 252 | public Result<String> deleteBatchShipmentDetail(@RequestParam(name="ids",required=true) String ids) { |
244 | this.shipmentDetailService.removeByIds(Arrays.asList(ids.split(","))); | 253 | this.shipmentDetailService.removeByIds(Arrays.asList(ids.split(","))); |
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/task/taskHeader/controller/TaskHeaderController.java
@@ -112,6 +112,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -112,6 +112,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
112 | @AutoLog(value = "任务表-添加") | 112 | @AutoLog(value = "任务表-添加") |
113 | @ApiOperation(value="任务表-添加", notes="任务表-添加") | 113 | @ApiOperation(value="任务表-添加", notes="任务表-添加") |
114 | @PostMapping(value = "/add") | 114 | @PostMapping(value = "/add") |
115 | + @RequiresPermissions("taskHeader:add") | ||
115 | public Result<String> add(@RequestBody TaskHeader taskHeader) { | 116 | public Result<String> add(@RequestBody TaskHeader taskHeader) { |
116 | taskHeaderService.save(taskHeader); | 117 | taskHeaderService.save(taskHeader); |
117 | return Result.OK("添加成功!"); | 118 | return Result.OK("添加成功!"); |
@@ -124,7 +125,8 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -124,7 +125,8 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
124 | */ | 125 | */ |
125 | @AutoLog(value = "任务表-编辑") | 126 | @AutoLog(value = "任务表-编辑") |
126 | @ApiOperation(value="任务表-编辑", notes="任务表-编辑") | 127 | @ApiOperation(value="任务表-编辑", notes="任务表-编辑") |
127 | - @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | 128 | + @RequiresPermissions("taskHeader:edit") |
129 | + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) | ||
128 | public Result<String> edit(@RequestBody TaskHeader taskHeader) { | 130 | public Result<String> edit(@RequestBody TaskHeader taskHeader) { |
129 | taskHeaderService.updateById(taskHeader); | 131 | taskHeaderService.updateById(taskHeader); |
130 | return Result.OK("编辑成功!"); | 132 | return Result.OK("编辑成功!"); |
@@ -137,6 +139,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -137,6 +139,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
137 | */ | 139 | */ |
138 | @AutoLog(value = "任务表-通过id删除") | 140 | @AutoLog(value = "任务表-通过id删除") |
139 | @ApiOperation(value="任务表-通过id删除", notes="任务表-通过id删除") | 141 | @ApiOperation(value="任务表-通过id删除", notes="任务表-通过id删除") |
142 | + @RequiresPermissions("taskHeader:edit") | ||
140 | @DeleteMapping(value = "/delete") | 143 | @DeleteMapping(value = "/delete") |
141 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { | 144 | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
142 | taskHeaderService.delMain(id); | 145 | taskHeaderService.delMain(id); |
@@ -150,6 +153,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -150,6 +153,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
150 | */ | 153 | */ |
151 | @AutoLog(value = "任务表-批量删除") | 154 | @AutoLog(value = "任务表-批量删除") |
152 | @ApiOperation(value="任务表-批量删除", notes="任务表-批量删除") | 155 | @ApiOperation(value="任务表-批量删除", notes="任务表-批量删除") |
156 | + @RequiresPermissions("taskHeader:deleteBatch") | ||
153 | @DeleteMapping(value = "/deleteBatch") | 157 | @DeleteMapping(value = "/deleteBatch") |
154 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | 158 | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
155 | this.taskHeaderService.delBatchMain(Arrays.asList(ids.split(","))); | 159 | this.taskHeaderService.delBatchMain(Arrays.asList(ids.split(","))); |
@@ -202,6 +206,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -202,6 +206,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
202 | @AutoLog(value = "任务详情-添加") | 206 | @AutoLog(value = "任务详情-添加") |
203 | @ApiOperation(value="任务详情-添加", notes="任务详情-添加") | 207 | @ApiOperation(value="任务详情-添加", notes="任务详情-添加") |
204 | @PostMapping(value = "/addTaskDetail") | 208 | @PostMapping(value = "/addTaskDetail") |
209 | + @RequiresPermissions("taskDetail:add") | ||
205 | public Result<String> addTaskDetail(@RequestBody TaskDetail taskDetail) { | 210 | public Result<String> addTaskDetail(@RequestBody TaskDetail taskDetail) { |
206 | taskDetailService.save(taskDetail); | 211 | taskDetailService.save(taskDetail); |
207 | return Result.OK("添加成功!"); | 212 | return Result.OK("添加成功!"); |
@@ -214,6 +219,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -214,6 +219,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
214 | */ | 219 | */ |
215 | @AutoLog(value = "任务详情-编辑") | 220 | @AutoLog(value = "任务详情-编辑") |
216 | @ApiOperation(value="任务详情-编辑", notes="任务详情-编辑") | 221 | @ApiOperation(value="任务详情-编辑", notes="任务详情-编辑") |
222 | + @RequiresPermissions("taskDetail:edit") | ||
217 | @RequestMapping(value = "/editTaskDetail", method = {RequestMethod.PUT,RequestMethod.POST}) | 223 | @RequestMapping(value = "/editTaskDetail", method = {RequestMethod.PUT,RequestMethod.POST}) |
218 | public Result<String> editTaskDetail(@RequestBody TaskDetail taskDetail) { | 224 | public Result<String> editTaskDetail(@RequestBody TaskDetail taskDetail) { |
219 | taskDetailService.updateById(taskDetail); | 225 | taskDetailService.updateById(taskDetail); |
@@ -227,6 +233,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -227,6 +233,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
227 | */ | 233 | */ |
228 | @AutoLog(value = "任务详情-通过id删除") | 234 | @AutoLog(value = "任务详情-通过id删除") |
229 | @ApiOperation(value="任务详情-通过id删除", notes="任务详情-通过id删除") | 235 | @ApiOperation(value="任务详情-通过id删除", notes="任务详情-通过id删除") |
236 | + @RequiresPermissions("taskDetail:delete") | ||
230 | @DeleteMapping(value = "/deleteTaskDetail") | 237 | @DeleteMapping(value = "/deleteTaskDetail") |
231 | public Result<String> deleteTaskDetail(@RequestParam(name="id",required=true) String id) { | 238 | public Result<String> deleteTaskDetail(@RequestParam(name="id",required=true) String id) { |
232 | taskDetailService.removeById(id); | 239 | taskDetailService.removeById(id); |
@@ -240,6 +247,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -240,6 +247,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
240 | */ | 247 | */ |
241 | @AutoLog(value = "任务详情-批量删除") | 248 | @AutoLog(value = "任务详情-批量删除") |
242 | @ApiOperation(value="任务详情-批量删除", notes="任务详情-批量删除") | 249 | @ApiOperation(value="任务详情-批量删除", notes="任务详情-批量删除") |
250 | + @RequiresPermissions("taskDetail:deleteBatch") | ||
243 | @DeleteMapping(value = "/deleteBatchTaskDetail") | 251 | @DeleteMapping(value = "/deleteBatchTaskDetail") |
244 | public Result<String> deleteBatchTaskDetail(@RequestParam(name="ids",required=true) String ids) { | 252 | public Result<String> deleteBatchTaskDetail(@RequestParam(name="ids",required=true) String ids) { |
245 | this.taskDetailService.removeByIds(Arrays.asList(ids.split(","))); | 253 | this.taskDetailService.removeByIds(Arrays.asList(ids.split(","))); |
@@ -324,6 +332,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -324,6 +332,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
324 | @AutoLog(value = "任务表-完成任务") | 332 | @AutoLog(value = "任务表-完成任务") |
325 | @ApiOperation(value="任务表-完成任务", notes="任务表-完成任务") | 333 | @ApiOperation(value="任务表-完成任务", notes="任务表-完成任务") |
326 | @PostMapping( "/completeTaskByWMS") | 334 | @PostMapping( "/completeTaskByWMS") |
335 | + @RequiresPermissions("taskHeader:completeTask") | ||
327 | public Result completeTaskByWMS(@RequestBody TaskHeader taskHeader){ | 336 | public Result completeTaskByWMS(@RequestBody TaskHeader taskHeader){ |
328 | if(taskHeader == null) { | 337 | if(taskHeader == null) { |
329 | return Result.error("taskHeader不能为空"); | 338 | return Result.error("taskHeader不能为空"); |
@@ -346,6 +355,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -346,6 +355,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
346 | @ApiOperation(value="任务表-取消任务", notes="任务表-取消任务") | 355 | @ApiOperation(value="任务表-取消任务", notes="任务表-取消任务") |
347 | @PostMapping( "/cancelTask") | 356 | @PostMapping( "/cancelTask") |
348 | @ResponseBody | 357 | @ResponseBody |
358 | + @RequiresPermissions("taskHeader:cancelTask") | ||
349 | public Result cancelTask(@RequestParam(name="ids",required=true) String ids) { | 359 | public Result cancelTask(@RequestParam(name="ids",required=true) String ids) { |
350 | if (StringUtils.isEmpty(ids)) { | 360 | if (StringUtils.isEmpty(ids)) { |
351 | return Result.error("taskId不能为空"); | 361 | return Result.error("taskId不能为空"); |
@@ -370,6 +380,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -370,6 +380,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
370 | @AutoLog(value = "任务表-执行任务") | 380 | @AutoLog(value = "任务表-执行任务") |
371 | @ApiOperation(value="任务表-执行任务", notes="任务表-执行任务") | 381 | @ApiOperation(value="任务表-执行任务", notes="任务表-执行任务") |
372 | @PostMapping( "/execute") | 382 | @PostMapping( "/execute") |
383 | + @RequiresPermissions("taskHeader:executeTask") | ||
373 | public Result execute(@RequestBody TaskHeader taskHeader) { | 384 | public Result execute(@RequestBody TaskHeader taskHeader) { |
374 | { | 385 | { |
375 | if (taskHeader == null) { | 386 | if (taskHeader == null) { |
@@ -393,6 +404,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -393,6 +404,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
393 | @AutoLog(value = "任务表-创建空托入库任务") | 404 | @AutoLog(value = "任务表-创建空托入库任务") |
394 | @ApiOperation(value="任务表-创建空托入库任务", notes="任务表-创建空托入库任务") | 405 | @ApiOperation(value="任务表-创建空托入库任务", notes="任务表-创建空托入库任务") |
395 | @PostMapping( "/createEmptyIn") | 406 | @PostMapping( "/createEmptyIn") |
407 | + @RequiresPermissions("taskHeader:emptyIn") | ||
396 | public Result createEmptyIn(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { | 408 | public Result createEmptyIn(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { |
397 | String contaienrCode = taskHeader.getContainerCode(); | 409 | String contaienrCode = taskHeader.getContainerCode(); |
398 | String toLocationCode = taskHeader.getToLocationCode(); | 410 | String toLocationCode = taskHeader.getToLocationCode(); |
@@ -413,6 +425,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -413,6 +425,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
413 | */ | 425 | */ |
414 | @AutoLog(value = "任务表-创建空托出库任务") | 426 | @AutoLog(value = "任务表-创建空托出库任务") |
415 | @ApiOperation(value="任务表-创建空托出库任务", notes="任务表-创建空托出库任务") | 427 | @ApiOperation(value="任务表-创建空托出库任务", notes="任务表-创建空托出库任务") |
428 | + @RequiresPermissions("taskHeader:emptyOut") | ||
416 | @PostMapping( "/createEmptyOut") | 429 | @PostMapping( "/createEmptyOut") |
417 | public Result createEmptyOut(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { | 430 | public Result createEmptyOut(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { |
418 | String contaienrCode = taskHeader.getContainerCode(); | 431 | String contaienrCode = taskHeader.getContainerCode(); |
@@ -434,6 +447,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -434,6 +447,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
434 | */ | 447 | */ |
435 | @AutoLog(value = "任务表-创建移库任务") | 448 | @AutoLog(value = "任务表-创建移库任务") |
436 | @ApiOperation(value="任务表-创建移库任务", notes="任务表-创建移库任务") | 449 | @ApiOperation(value="任务表-创建移库任务", notes="任务表-创建移库任务") |
450 | + @RequiresPermissions("taskHeader:transfer") | ||
437 | @PostMapping( "/createTransferTask") | 451 | @PostMapping( "/createTransferTask") |
438 | public Result createTransferTask(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { | 452 | public Result createTransferTask(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { |
439 | String fromLocationCode = taskHeader.getFromLocationCode(); | 453 | String fromLocationCode = taskHeader.getFromLocationCode(); |
@@ -456,6 +470,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -456,6 +470,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
456 | @AutoLog(value = "任务表-创建出库查看任务") | 470 | @AutoLog(value = "任务表-创建出库查看任务") |
457 | @ApiOperation(value="任务表-创建出库查看任务", notes="任务表-创建出库查看任务") | 471 | @ApiOperation(value="任务表-创建出库查看任务", notes="任务表-创建出库查看任务") |
458 | @PostMapping( "/createCheckOutTask") | 472 | @PostMapping( "/createCheckOutTask") |
473 | + @RequiresPermissions("taskHeader:checkOut") | ||
459 | public Result createCheckOutTask(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { | 474 | public Result createCheckOutTask(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { |
460 | String containerCode = taskHeader.getContainerCode(); | 475 | String containerCode = taskHeader.getContainerCode(); |
461 | String toPortCode = taskHeader.getToPortCode(); | 476 | String toPortCode = taskHeader.getToPortCode(); |
@@ -476,6 +491,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -476,6 +491,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
476 | */ | 491 | */ |
477 | @AutoLog(value = "任务表-创建跨站任务") | 492 | @AutoLog(value = "任务表-创建跨站任务") |
478 | @ApiOperation(value="任务表-创建跨站任务", notes="任务表-创建跨站任务") | 493 | @ApiOperation(value="任务表-创建跨站任务", notes="任务表-创建跨站任务") |
494 | + @RequiresPermissions("taskHeader:overStation") | ||
479 | @PostMapping( "/createOverStationTask") | 495 | @PostMapping( "/createOverStationTask") |
480 | public Result createOverStationTask(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { | 496 | public Result createOverStationTask(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { |
481 | String containerCode = taskHeader.getContainerCode(); | 497 | String containerCode = taskHeader.getContainerCode(); |
@@ -499,6 +515,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -499,6 +515,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
499 | @AutoLog(value = "任务表-创建空托盘组入库") | 515 | @AutoLog(value = "任务表-创建空托盘组入库") |
500 | @ApiOperation(value="任务表-创建空托盘组入库", notes="任务表-创建空托盘组入库") | 516 | @ApiOperation(value="任务表-创建空托盘组入库", notes="任务表-创建空托盘组入库") |
501 | @PostMapping( "/createManyEmptyIn") | 517 | @PostMapping( "/createManyEmptyIn") |
518 | + @RequiresPermissions("taskHeader:manyEmptyIn") | ||
502 | public Result createManyEmptyIn(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { | 519 | public Result createManyEmptyIn(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { |
503 | String containerCode = taskHeader.getContainerCode(); | 520 | String containerCode = taskHeader.getContainerCode(); |
504 | String toLocationCode = taskHeader.getToLocationCode(); | 521 | String toLocationCode = taskHeader.getToLocationCode(); |
@@ -518,6 +535,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | @@ -518,6 +535,7 @@ public class TaskHeaderController extends JeecgController<TaskHeader, ITaskHeade | ||
518 | */ | 535 | */ |
519 | @AutoLog(value = "任务表-创建空托盘组出库") | 536 | @AutoLog(value = "任务表-创建空托盘组出库") |
520 | @ApiOperation(value="任务表-创建空托盘组出库", notes="任务表-创建空托盘组出库") | 537 | @ApiOperation(value="任务表-创建空托盘组出库", notes="任务表-创建空托盘组出库") |
538 | + @RequiresPermissions("taskHeader:manyEmptyOut") | ||
521 | @PostMapping( "/createManyEmptyOut") | 539 | @PostMapping( "/createManyEmptyOut") |
522 | public Result createManyEmptyOut(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { | 540 | public Result createManyEmptyOut(@RequestBody TaskHeader taskHeader, HttpServletRequest req) { |
523 | String containerCode = taskHeader.getContainerCode(); | 541 | String containerCode = taskHeader.getContainerCode(); |