| | |
| | | <!--左边固定显示的插槽--> |
| | | <template #button_slot="{ row }"> |
| | | <el-button @click="getTableRow(row,'edit')" link type="primary" size="small">编辑</el-button> |
| | | <el-button @click="getTableRow(row,'delete')" link type="primary" size="small">删除</el-button> |
| | | <!-- <el-button @click="getTableRow(row,'delete')" link type="primary" size="small">删除</el-button>--> |
| | | </template> |
| | | |
| | | <template #num1_filter="{ column, $panel }"> |
| | |
| | | }) |
| | | onMounted(()=>{ |
| | | request.get('/userInfo/findAll').then(res=>{ |
| | | console.log(res.data) |
| | | let arr = res.data.users[0] |
| | | arr.forEach(item=>{ |
| | | let bValues = item.userRoleList.map(item => item.role); |
| | |
| | | package com.example.erp.controller.mm; |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.mm.BasicWarehouseType; |
| | | import com.example.erp.entity.sd.BasicData; |
| | |
| | | } |
| | | |
| | | @ApiOperation("基础数据查询") |
| | | @SaCheckPermission("warehouseSearchBasicData.search") |
| | | @GetMapping("/getBasicWarehouse") |
| | | public Result getBasicWarehouse(){ |
| | | return Result.seccess(basicWarehouseTypeService.getBasicWarehouse()); |
| | | } |
| | | |
| | | @ApiOperation("基础数据新增") |
| | | @SaCheckPermission("warehouseSearchBasicData.add") |
| | | @PostMapping("addBasicWarehouse") |
| | | public Result addBasicWarehouse(@RequestBody Map<String,Object> map){ |
| | | return Result.seccess(basicWarehouseTypeService.addBasicWarehouse(map)); |
| | | } |
| | | @ApiOperation("基础数据修改") |
| | | @SaCheckPermission("warehouseSearchBasicData.update") |
| | | @PostMapping("updateBasicWarehouse") |
| | | public Result updateBasicWarehouse(@RequestBody BasicWarehouseType basicWarehouseType){ |
| | | return Result.seccess(basicWarehouseTypeService.updateBasicWarehouse(basicWarehouseType)); |
| | | } |
| | | |
| | | @ApiOperation("基础数据删除") |
| | | @SaCheckPermission("warehouseSearchBasicData.delete") |
| | | @PostMapping("deleteBasicWarehouse") |
| | | public Result deleteBasicWarehouse(@RequestBody BasicWarehouseType basicWarehouseType){ |
| | | return Result.seccess(basicWarehouseTypeService.deleteBasicWarehouse(basicWarehouseType)); |
| | |
| | | |
| | | |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.mm.FinishedOperateLog; |
| | |
| | | |
| | | /*成品库存查询*/ |
| | | @ApiOperation("成品库存查询接口") |
| | | @SaCheckPermission("ProductStockList.search") |
| | | @PostMapping("/getSelect/{pageNum}/{pageSize}") |
| | | public Result defaultDateFinishedGoodsInventory(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody FinishedGoodsInventory finishedGoodsInventory){ |
| | | return Result.seccess(finishedGoodsInventoryService.defaultDateFinishedGoodsInventory(pageNum,pageSize,finishedGoodsInventory)); |
| | |
| | | |
| | | /*查询可入库的成品数据*/ |
| | | @ApiOperation("可入库的成品查询接口") |
| | | @SaCheckPermission("CreateProductStock.search") |
| | | @PostMapping("/getSelectWarehousing/{pageNum}/{pageSize}") |
| | | public Result getSelectWarehousing(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody FlowCard flowCard){ |
| | | return Result.seccess(finishedGoodsInventoryService.getSelectWarehousing(pageNum,pageSize,flowCard)); |
| | |
| | | |
| | | /*成品入库*/ |
| | | @ApiOperation("成品入库接口") |
| | | @SaCheckPermission("CreateProductStock.add") |
| | | @PostMapping("/addSelectWarehousing") |
| | | public Result addSelectWarehousing( @RequestBody Map<String,Object> object){ |
| | | if(finishedGoodsInventoryService.addSelectWarehousing(object)){ |
| | |
| | | |
| | | /*查询可发货的成品数据*/ |
| | | @ApiOperation("可发货的成品查询接口") |
| | | @SaCheckPermission("FinishedProductOut.search") |
| | | @PostMapping("/getSelectDeliveryDetail/{pageNum}/{pageSize}") |
| | | public Result getSelectDeliveryDetail(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody OrderDetail orderDetail){ |
| | | return Result.seccess(finishedGoodsInventoryService.getSelectDeliveryDetail(pageNum,pageSize,orderDetail)); |
| | |
| | | |
| | | /*成品发货*/ |
| | | @ApiOperation("成品发货接口") |
| | | @SaCheckPermission("FinishedProductOut.add") |
| | | @PostMapping("/addDeliveryDetail") |
| | | public Result addDeliveryDetail( @RequestBody Map<String,Object> object){ |
| | | if(finishedGoodsInventoryService.addDeliveryDetail(object)){ |
| | |
| | | |
| | | /* 调拨查询*/ |
| | | @ApiOperation("可调拨数据查询接口") |
| | | @SaCheckPermission("OrderAllocation.search") |
| | | @PostMapping("/getSelectAllocate/{pageNum}/{pageSize}") |
| | | public Result getSelectAllocate(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody OrderDetail orderDetail){ |
| | | return Result.seccess(finishedGoodsInventoryService.getSelectAllocate(pageNum,pageSize,orderDetail)); |
| | |
| | | |
| | | /*订单调拨*/ |
| | | @ApiOperation("订单调拨接口") |
| | | @SaCheckPermission("OrderAllocation.add") |
| | | @PostMapping("/updateFinishedGoodsInventoryAllocate") |
| | | public Result updateFinishedGoodsInventoryAllocate( @RequestBody Map<String,Object> object){ |
| | | if(finishedGoodsInventoryService.updateFinishedGoodsInventoryAllocate(object)){ |
| | |
| | | |
| | | /*调拨记录查询*/ |
| | | @ApiOperation("调拨记录查询接口") |
| | | @SaCheckPermission("TransferRecord.search") |
| | | @PostMapping("/getSelectAllocateFinishedOperateLog/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getSelectAllocateFinishedOperateLog(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate, @RequestBody FinishedOperateLog finishedOperateLog){ |
| | | return Result.seccess(finishedGoodsInventoryService.getSelectAllocateFinishedOperateLog(pageNum,pageSize,selectDate,finishedOperateLog)); |
| | |
| | | |
| | | /*订单领出*/ |
| | | @ApiOperation("订单领出接口") |
| | | @SaCheckPermission("FinishedGoodsIssue.add") |
| | | @PostMapping("/updateFinishedGoodsInventoryTakeOut") |
| | | public Result updateFinishedGoodsInventoryTakeOut( @RequestBody Map<String,Object> object){ |
| | | |
| | |
| | | |
| | | /*领出记录查询*/ |
| | | @ApiOperation("领出记录查询接口") |
| | | @SaCheckPermission("TakeOutRecord.search") |
| | | @PostMapping("/getSelectOperateRecord/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getSelectOperateRecord(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate, @RequestBody FinishedOperateLog finishedOperateLog){ |
| | | return Result.seccess(finishedGoodsInventoryService.getSelectOperateRecord(pageNum,pageSize,selectDate,finishedOperateLog)); |
| | |
| | | |
| | | /*订单审核*/ |
| | | @ApiOperation("订单审核接口") |
| | | @SaCheckPermission("TakeOutRecord.review") |
| | | @PostMapping("/updateFinishedGoodsInventoryToExamine") |
| | | public Result updateFinishedGoodsInventoryToExamine( @RequestBody Map<String,Object> object){ |
| | | |
| | |
| | | } |
| | | /*订单反审*/ |
| | | @ApiOperation("订单反审接口") |
| | | @SaCheckPermission("TakeOutRecord.review") |
| | | @PostMapping("/updateFinishedGoodsInventoryCounterExamination") |
| | | public Result updateFinishedGoodsInventoryCounterExamination( @RequestBody Map<String,Object> object){ |
| | | |
| | |
| | | |
| | | /*订单作废*/ |
| | | @ApiOperation("订单作废接口") |
| | | @SaCheckPermission("TakeOutRecord.update") |
| | | @PostMapping("/cancelFinishedGoodsInventoryToExamine") |
| | | public Result cancelFinishedGoodsInventoryToExamine( @RequestBody Map<String,Object> object){ |
| | | |
| | |
| | | |
| | | /*出入库记录查询*/ |
| | | @ApiOperation("出入库记录查询接口") |
| | | @SaCheckPermission("storageRecord.search") |
| | | @PostMapping("/getSelectStorageRecord/{pageNum}/{pageSize}/{selectDate}/{type}") |
| | | public Result getSelectStorageRecord(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate,@PathVariable String type, @RequestBody FinishedOperateLog finishedOperateLog){ |
| | | return Result.seccess(finishedGoodsInventoryService.getSelectStorageRecord(pageNum,pageSize,selectDate,type,finishedOperateLog)); |
| | |
| | | |
| | | /*出入库返回*/ |
| | | @ApiOperation("出入库返回接口") |
| | | @SaCheckPermission("storageRecord.update") |
| | | @PostMapping("/cancelFinishedGoodsInventoryStorage") |
| | | public Result cancelFinishedGoodsInventoryStorage( @RequestBody Map<String,Object> object){ |
| | | |
| | |
| | | } |
| | | |
| | | @ApiOperation("成品库存记录查询接口") |
| | | @SaCheckPermission("WarehouseReport.search") |
| | | @PostMapping("/getSelectFinishedOperateLogReport/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getSelectFinishedOperateLogReport(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate, @RequestBody FinishedOperateLog finishedOperateLog){ |
| | | return Result.seccess(finishedGoodsInventoryService.getSelectFinishedOperateLogReport(pageNum,pageSize,selectDate,finishedOperateLog)); |
| | |
| | | package com.example.erp.controller.mm; |
| | | |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.mm.*; |
| | |
| | | MaterialInventoryService materialInventoryService; |
| | | |
| | | @ApiOperation("物料出库新增接口") |
| | | @SaCheckPermission("CreateOutbound.add") |
| | | @PostMapping("/saveMaterialOutbound") |
| | | public Result saveMaterialOutbound( @RequestBody Map<String,Object> object){ |
| | | if(materialInventoryService.saveMaterialOutbound(object)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("物料新增接口") |
| | | @SaCheckPermission("SelectIngredientsStock.add") |
| | | @PostMapping("/saveMaterialInventory") |
| | | public Result saveMaterialInventory( @RequestBody Map<String,Object> object){ |
| | | if(materialInventoryService.saveMaterialInventory(object)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("物料库存加时间查询接口") |
| | | @SaCheckPermission("SelectIngredientsStock.search") |
| | | @PostMapping("/getSelectMaterialInventoryDate/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getSelectMaterialInventoryDate(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @PathVariable List<String> selectDate, @RequestBody MaterialInventory materialInventory){ |
| | | return Result.seccess(materialInventoryService.getSelectMaterialInventoryDate(pageNum,pageSize,selectDate,materialInventory)); |
| | | } |
| | | |
| | | @ApiOperation("物料库存工程加时间查询接口") |
| | | @SaCheckPermission("SelectIngredientsStock.search") |
| | | @PostMapping("/getSelectMaterialInventoryEngineeringDate/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getSelectMaterialInventoryEngineeringDate(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @PathVariable List<String> selectDate, @RequestBody MaterialInventory materialInventory){ |
| | | return Result.seccess(materialInventoryService.getSelectMaterialInventoryEngineeringDate(pageNum,pageSize,selectDate,materialInventory)); |
| | | } |
| | | |
| | | @ApiOperation("物料库存查询接口") |
| | | @SaCheckPermission("CreateOutbound.search") |
| | | @PostMapping("/getSelectMaterialInventory/{pageNum}/{pageSize}") |
| | | public Result getSelectMaterialInventory(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody MaterialInventory materialInventory){ |
| | | return Result.seccess(materialInventoryService.getSelectMaterialInventory(pageNum,pageSize,materialInventory)); |
| | | } |
| | | |
| | | @ApiOperation("物料库存工程查询接口") |
| | | @SaCheckPermission("SelectIngredientsStock.search") |
| | | @PostMapping("/getSelectMaterialInventoryEngineering/{pageNum}/{pageSize}") |
| | | public Result getSelectMaterialInventoryEngineering(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody OptimizeUse optimizeUse){ |
| | | return Result.seccess(materialInventoryService.getSelectMaterialInventoryEngineering(pageNum,pageSize,optimizeUse)); |
| | | } |
| | | |
| | | @ApiOperation("材料出库查询接口") |
| | | @ApiOperation("材料出库加时间查询接口") |
| | | @SaCheckPermission("MaterialOutbound.search") |
| | | @PostMapping("/getSelectMaterialOutboundDate/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getSelectMaterialOutboundDate(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @PathVariable List<String> selectDate, @RequestBody MaterialOutbound materialOutbound){ |
| | | return Result.seccess(materialInventoryService.getSelectMaterialOutboundDate(pageNum,pageSize,selectDate, materialOutbound)); |
| | | } |
| | | |
| | | @ApiOperation("材料出库查询接口") |
| | | @SaCheckPermission("CreateOutbound.search") |
| | | @PostMapping("/getSelectMaterialOutbound/{pageNum}/{pageSize}") |
| | | public Result getSelectMaterialOutbound(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody MaterialOutboundDetail materialOutboundDetail){ |
| | | return Result.seccess(materialInventoryService.getSelectMaterialOutbound(pageNum,pageSize,materialOutboundDetail)); |
| | |
| | | |
| | | |
| | | @ApiOperation("材料出库审核接口") |
| | | @SaCheckPermission("CreateOutbound.review") |
| | | @PostMapping("/updateMaterialOutboundToExamine") |
| | | public Result updateMaterialOutboundToExamine( @RequestBody Map<String,Object> object){ |
| | | if(materialInventoryService.updateMaterialOutboundToExamine(object)){ |
| | |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("物料删除接口") |
| | | @ApiOperation("材料出库删除接口") |
| | | @SaCheckPermission("MaterialOutbound.delete") |
| | | @PostMapping("/deleteMaterialOutbound") |
| | | public Result deleteMaterialOutbound( @RequestBody Map<String,Object> object){ |
| | | if(materialInventoryService.deleteMaterialOutbound(object)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("物料返库新增接口") |
| | | @SaCheckPermission("ReturnToStorageCreate.add") |
| | | @PostMapping("/saveReturningWarehouse") |
| | | public Result saveReturningWarehouse( @RequestBody Map<String,Object> object){ |
| | | if(materialInventoryService.saveReturningWarehouse(object)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("物料返库新增查询接口") |
| | | @SaCheckPermission("ReturnToStorageCreate.search") |
| | | @PostMapping("/getSelectReturningWarehouse/{pageNum}/{pageSize}") |
| | | public Result getSelectReturningWarehouse(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody ReturningWarehouseDetail returningWarehouseDetail){ |
| | | return Result.seccess(materialInventoryService.getSelectReturningWarehouse(pageNum,pageSize,returningWarehouseDetail)); |
| | | } |
| | | |
| | | @ApiOperation("物料返库审核接口") |
| | | @SaCheckPermission("ReturnToStorageCreate.review") |
| | | @PostMapping("/updateReturningWarehouseToExamine") |
| | | public Result updateReturningWarehouseToExamine( @RequestBody Map<String,Object> object){ |
| | | if(materialInventoryService.updateReturningWarehouseToExamine(object)){ |
| | |
| | | |
| | | |
| | | @ApiOperation("物料返库查询接口") |
| | | @SaCheckPermission("ReturnToStorage.search") |
| | | @PostMapping("/getSelectReturningWarehouseDate/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getSelectReturningWarehouseDate(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @PathVariable List<String> selectDate, @RequestBody ReturningWarehouse returningWarehouse){ |
| | | return Result.seccess(materialInventoryService.getSelectReturningWarehouseDate(pageNum,pageSize,selectDate, returningWarehouse)); |
| | |
| | | package com.example.erp.controller.mm; |
| | | |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.mm.MaterialStore; |
| | |
| | | MaterialStoreService materialStoreService; |
| | | |
| | | @ApiOperation("物料新增接口") |
| | | @SaCheckPermission("CreateIngredients.add") |
| | | @PostMapping("/saveMaterialStore") |
| | | public Result saveMaterialStore( @RequestBody Map<String,Object> object){ |
| | | if(materialStoreService.saveMaterialStore(object)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("物料查询接口") |
| | | @SaCheckPermission("SelectIngredients.search") |
| | | @PostMapping("/getSelectMaterialStore/{pageNum}/{pageSize}") |
| | | public Result getSelectMaterialStore(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody MaterialStore materialStore){ |
| | | return Result.seccess(materialStoreService.getSelectMaterialStore(pageNum,pageSize,materialStore)); |
| | | } |
| | | |
| | | @ApiOperation("物料删除接口") |
| | | @SaCheckPermission("SelectIngredients.delete") |
| | | @PostMapping("/deleteMaterialStore") |
| | | public Result deleteMaterialStore( @RequestBody Map<String,Object> object){ |
| | | if(materialStoreService.deleteMaterialStore(object)){ |
| | |
| | | package com.example.erp.controller.pp; |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.pp.PatchLog; |
| | |
| | | |
| | | /*发货订单查询*/ |
| | | @ApiOperation("补片新增查询接口") |
| | | @SaCheckPermission("AddReplenish.search") |
| | | @PostMapping("/getSelectReplenish/{pageNum}/{pageSize}") |
| | | public Result getSelectReplenish(@PathVariable Integer pageNum, @PathVariable Integer pageSize){ |
| | | return Result.seccess(replenishService.getSelectReplenish(pageNum,pageSize)); |
| | | } |
| | | |
| | | @ApiOperation("补片查询接口") |
| | | @SaCheckPermission("SelectReplenish.search") |
| | | @PostMapping("/SelectReplenish/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result SelectReplenish(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate,@RequestBody PatchLog patchLog){ |
| | | return Result.seccess(replenishService.SelectReplenish(pageNum,pageSize,selectDate,patchLog)); |
| | |
| | | |
| | | |
| | | @ApiOperation("补片新增接口") |
| | | @SaCheckPermission("AddReplenish.add") |
| | | @PostMapping("/saveReplenish") |
| | | public Result updateFinishedGoodsInventoryAllocate( @RequestBody Map<String,Object> object){ |
| | | if(replenishService.saveReplenish(object)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("补片审核接口") |
| | | @SaCheckPermission("SelectReplenish.review") |
| | | @PostMapping("/updateReplenish") |
| | | public Result updateReplenish( @RequestBody Map<String,Object> object){ |
| | | if(replenishService.updateReplenish(object)){ |
| | |
| | | package com.example.erp.controller.pp; |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.pp.Rework; |
| | |
| | | |
| | | /*发货订单查询*/ |
| | | @ApiOperation("可返工数据查询接口") |
| | | @SaCheckPermission("AddRework.search") |
| | | @PostMapping("/getSelectRework/{pageNum}/{pageSize}") |
| | | public Result getSelectRework(@PathVariable Integer pageNum, @PathVariable Integer pageSize){ |
| | | return Result.seccess(reworkService.getSelectRework(pageNum,pageSize)); |
| | | } |
| | | |
| | | @ApiOperation("返工数据查询接口") |
| | | @SaCheckPermission("SelectRework.search") |
| | | @PostMapping("/SelectRework/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result SelectRework(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate,@RequestBody Rework rework){ |
| | | return Result.seccess(reworkService.SelectRework(pageNum,pageSize,selectDate,rework)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("返工接口") |
| | | @ApiOperation("返工接口新增") |
| | | @SaCheckPermission("AddRework.add") |
| | | @PostMapping("/saveRework") |
| | | public Result updateFinishedGoodsInventoryAllocate( @RequestBody Map<String,Object> object){ |
| | | if(reworkService.saveRework(object)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("返工审核接口") |
| | | @SaCheckPermission("SelectRework.review") |
| | | @PostMapping("/updateRework") |
| | | public Result updateRework( @RequestBody Map<String,Object> object){ |
| | | if(reworkService.updateRework(object)){ |
| | |
| | | package com.example.erp.controller.sd; |
| | | |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.sd.Customer; |
| | |
| | | |
| | | /*发货订单查询*/ |
| | | @ApiOperation("客户查询接口") |
| | | @SaCheckPermission("selectCustomer.search") |
| | | @PostMapping("/getSelectCustomer/{pageNum}/{pageSize}") |
| | | public Result getSelectShippingOrder(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody Customer customer){ |
| | | return Result.seccess(customerService.getSelectCustomer(pageNum,pageSize,customer)); |
| | | } |
| | | |
| | | @ApiOperation("客户新增修改接口") |
| | | @SaCheckPermission("CreateCustomer.add") |
| | | @PostMapping("/insertCustomer") |
| | | public Result insertCustomer( @RequestBody Map<String,Object> object){ |
| | | if(customerService.insertCustomer(object)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("客户删除接口") |
| | | @SaCheckPermission("selectCustomer.delete") |
| | | @PostMapping("/deleteCustomer") |
| | | public Result deleteCustomer( @RequestBody Map<String,Object> object){ |
| | | if(customerService.deleteCustomer(object)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("客户订单查询接口") |
| | | @SaCheckPermission("selectCustomerOrder.search") |
| | | @PostMapping("/getSelectCustomerOderDate/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getSelectCustomerOderDate(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate, @RequestBody OrderDetail orderDetail){ |
| | | return Result.seccess(customerService.getSelectCustomerOderDate(pageNum,pageSize,selectDate,orderDetail)); |
| | |
| | | package com.example.erp.controller.sd; |
| | | |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.mm.FinishedGoodsInventory; |
| | |
| | | |
| | | /*发货订单查询*/ |
| | | @ApiOperation("发货订单查询接口") |
| | | @SaCheckPermission("selectDelivery.search") |
| | | @PostMapping("/getSelectShippingOrder/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getSelectShippingOrder(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate, @RequestBody Delivery delivery){ |
| | | return Result.seccess(deliveryService.getSelectShippingOrder(pageNum,pageSize,selectDate,delivery)); |
| | |
| | | |
| | | /*发货报表查询*/ |
| | | @ApiOperation("发货报表查询接口") |
| | | @SaCheckPermission("deliveryReport.search") |
| | | @PostMapping("/getSelectDeliveryDetailReport/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getSelectDeliveryDetailReport(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate, @RequestBody DeliveryDetail deliveryDetail){ |
| | | return Result.seccess(deliveryService.getSelectDeliveryDetailReport(pageNum,pageSize,selectDate,deliveryDetail)); |
| | |
| | | |
| | | /*发货订单明细查询*/ |
| | | @ApiOperation("发货编辑订单明细查询接口") |
| | | @SaCheckPermission("createDelivery.search") |
| | | @PostMapping("/getSelectShippingOrderDetail/{pageNum}/{pageSize}") |
| | | public Result getSelectShippingOrderDetail(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody OrderDetail orderDetail){ |
| | | return Result.seccess(deliveryService.getSelectShippingOrderDetail(pageNum,pageSize,orderDetail)); |
| | |
| | | |
| | | /*库存可发货订单查询*/ |
| | | @ApiOperation("库存可发货订单查询接口接口") |
| | | @SaCheckPermission("selectOrderList.search") |
| | | @PostMapping("/getSelectOrderInventory/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getSelectOrderInventory(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate, @RequestBody Order order){ |
| | | return Result.seccess(deliveryService.getSelectOrderInventory(pageNum,pageSize,selectDate,order)); |
| | |
| | | |
| | | /*发货订单明细查询*/ |
| | | @ApiOperation("发货新增订单明细查询接口") |
| | | @SaCheckPermission("createDelivery.search") |
| | | @PostMapping("/getSelectShippingOrderDetails/{pageNum}/{pageSize}") |
| | | public Result getSelectShippingOrderDetails(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody OrderDetail orderDetail){ |
| | | return Result.seccess(deliveryService.getSelectShippingOrderDetails(pageNum,pageSize,orderDetail)); |
| | | } |
| | | @ApiOperation("发货新增接口") |
| | | @SaCheckPermission("createDelivery.add") |
| | | @PostMapping("/insertDelivery") |
| | | public Result insertDelivery( @RequestBody Map<String,Object> object){ |
| | | if(deliveryService.insertDelivery(object)){ |
| | |
| | | } |
| | | } |
| | | @ApiOperation("发货审核修改接口") |
| | | @SaCheckPermission("createDelivery.review") |
| | | @PostMapping("/updateDeliveryToExamine") |
| | | public Result updateDeliveryToExamine( @RequestBody Map<String,Object> object){ |
| | | if(deliveryService.updateDeliveryToExamine(object)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("发货删除接口") |
| | | @SaCheckPermission("selectDelivery.delete") |
| | | @PostMapping("/deleteDelivery") |
| | | public Result deleteDelivery( @RequestBody Map<String,Object> object){ |
| | | if(deliveryService.deleteDelivery(object)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("发货订单查询接口") |
| | | @SaCheckPermission("selectDelivery.search") |
| | | @PostMapping("/getSelectDeliveryPrinting") |
| | | public Result getSelectDeliveryPrinting( @RequestBody DeliveryDetail deliveryDetail){ |
| | | return Result.seccess(deliveryService.getSelectDeliveryPrinting(deliveryDetail)); |