| | |
| | | return R.ok(productionOrderService.getProductionOrderInfo(id)); |
| | | } |
| | | |
| | | @Log(title = "生产工单", businessType = BusinessType.INSERT) |
| | | @PostMapping("/addOrder") |
| | | @Operation(summary = "新增生产订单", description = "新增下单只支持1种方式:生产计划生成,传 productionPlanIds,系统自动汇总计划得到产品规格和数量;" |
| | | + "technologyRoutingId 为空时会自动匹配该产品规格最新工艺路线,quantity 最终必须大于 0。") |
| | |
| | | return R.ok(productionOrderService.saveProductionOrder(productionOrder)); |
| | | } |
| | | |
| | | @Log(title = "生产工单", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "绑定工艺路线") |
| | | @PostMapping("/bindingRoute") |
| | | public R bindingRoute(@RequestBody ProductionOrderDto productionOrderDto) { |
| | | return R.ok(productionOrderService.bindingRoute(productionOrderDto)); |
| | | } |
| | | |
| | | @Log(title = "生产工单", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/syncSnapshot/{id}") |
| | | @Operation(summary = "同步生产订单工艺/BOM快照") |
| | | public R<Integer> syncSnapshot(@PathVariable Long id) { |
| | | return R.ok(productionOrderService.syncProductionOrderSnapshot(id)); |
| | | } |
| | | |
| | | @Log(title = "生产工单", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "删除生产订单") |
| | | public R<Boolean> remove(@RequestBody List<Long> ids) { |
| | |
| | | return R.ok(productionOrderService.getWorkOrderReportInspectDetail(productionOrderDto)); |
| | | } |
| | | |
| | | @Log(title = "生产工单", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "更新订单状态") |
| | | @PostMapping("/updateOrder") |
| | | public R updateOrder(@RequestBody ProductionOrderDto productionOrderDto) { |