Commit 7205f9b2e312e861316a03eb0e51da0259b7019f
1 parent
ae0dc9ca
增加库存删除按钮
Showing
2 changed files
with
14 additions
and
20 deletions
ant-design-vue-jeecg/src/views/system/inventory/InventoryHeaderList.vue
... | ... | @@ -136,16 +136,10 @@ |
136 | 136 | |
137 | 137 | <span slot="action" slot-scope="text, record"> |
138 | 138 | <a v-has="'inventoryHeader:edit'" @click="handleEdit(record)">编辑<a-divider type="vertical"/></a> |
139 | - <!-- <a-dropdown> | |
140 | - <a class="ant-dropdown-link" >更多 <a-icon type="down"/></a> | |
141 | - <a-menu slot="overlay" v-has="'inventoryHeader:delete'"> | |
142 | - <a-menu-item> | |
143 | - <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | |
144 | - <a>删除</a> | |
145 | - </a-popconfirm> | |
146 | - </a-menu-item> | |
147 | - </a-menu> | |
148 | - </a-dropdown> --> | |
139 | + <a-divider type="vertical"/> | |
140 | + <a-popconfirm v-has="'inventoryHeader:delete'" title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | |
141 | + <a>删除</a> | |
142 | + </a-popconfirm> | |
149 | 143 | </span> |
150 | 144 | |
151 | 145 | </a-table> |
... | ... | @@ -257,14 +251,14 @@ export default { |
257 | 251 | align: "center", |
258 | 252 | dataIndex: 'updateTime' |
259 | 253 | }, |
260 | - // { | |
261 | - // title: '操作', | |
262 | - // dataIndex: 'action', | |
263 | - // align: "center", | |
264 | - // fixed: "right", | |
265 | - // width: 147, | |
266 | - // scopedSlots: {customRender: 'action'}, | |
267 | - // } | |
254 | + { | |
255 | + title: '操作', | |
256 | + dataIndex: 'action', | |
257 | + align: "center", | |
258 | + fixed: "right", | |
259 | + width: 147, | |
260 | + scopedSlots: {customRender: 'action'}, | |
261 | + } | |
268 | 262 | ], |
269 | 263 | url: { |
270 | 264 | list: "/inventory/inventoryHeader/list", |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/inventory/inventoryHeader/service/impl/InventoryDetailServiceImpl.java
... | ... | @@ -141,7 +141,7 @@ public class InventoryDetailServiceImpl extends ServiceImpl<InventoryDetailMappe |
141 | 141 | .eq(InventoryDetail::getMaterialCode, inventoryDetail.getMaterialCode()).eq(InventoryDetail::getWarehouseCode, inventoryDetail.getWarehouseCode()) |
142 | 142 | .eq(StringUtils.isNotEmpty(inventoryDetail.getBatch()), InventoryDetail::getBatch, inventoryDetail.getBatch()) |
143 | 143 | .eq(StringUtils.isNotEmpty(inventoryDetail.getLot()), InventoryDetail::getLot, inventoryDetail.getLot()) |
144 | - .eq(StringUtils.isNotEmpty(inventoryDetail.getProject()), InventoryDetail::getProject, inventoryDetail.getLot()) | |
144 | + .eq(StringUtils.isNotEmpty(inventoryDetail.getProject()), InventoryDetail::getProject, inventoryDetail.getProject()) | |
145 | 145 | .eq(InventoryDetail::getCompanyCode, inventoryDetail.getCompanyCode()); |
146 | 146 | |
147 | 147 | String value = parameterConfigurationService.getValueByCode(QuantityConstant.RULE_SHIPMENT_ZONE); |
... | ... | @@ -379,7 +379,7 @@ public class InventoryDetailServiceImpl extends ServiceImpl<InventoryDetailMappe |
379 | 379 | } |
380 | 380 | return containerCodeList; |
381 | 381 | } |
382 | - | |
382 | + | |
383 | 383 | @Override |
384 | 384 | public IPage<InventoryDetail> pageByMainIds(Page<InventoryDetail> page, List<String> inventoryHeaderIds) { |
385 | 385 | LambdaQueryWrapper<InventoryDetail> queryWrapper = Wrappers.lambdaQuery(); |
... | ... |