src/main/java/com/ruoyi/device/service/impl/DeviceRepairServiceImpl.java
@@ -125,6 +125,8 @@ outRecord.setQuantity(new BigDecimal(sparePartUse.getQuantity())); outRecord.setSourceType(2); outRecord.setSourceId(deviceRepairDto.getId()); // 报修单没有单号,来源单号用设备名称,流水页才看得出备件用在哪台设备上 outRecord.setSourceNo(oldDeviceRepair.getDeviceName()); sparePartsRecordService.save(outRecord); } else { return AjaxResult.error("备件 " + spareParts.getName() + " 数量不足");