fix:需求单接口
This commit is contained in:
@@ -7,6 +7,8 @@ import org.nl.common.exception.BadRequestException;
|
||||
import org.nl.common.logging.annotation.Log;
|
||||
import org.nl.wms.ext_manage.service.MesToWmsService;
|
||||
import org.nl.wms.ext_manage.service.dto.MesTaskParams;
|
||||
import org.nl.wms.pm_manage.demand.service.IPmDemandService;
|
||||
import org.nl.wms.pm_manage.demand.service.dto.PmDemandParam;
|
||||
import org.nl.wms.pm_manage.pmreturn.service.IPmReturnService;
|
||||
import org.nl.wms.pm_manage.pmreturn.service.dao.PmReturn;
|
||||
import org.nl.wms.pm_manage.pmreturn.service.dto.PmReturnParam;
|
||||
@@ -38,6 +40,9 @@ public class MesToWmsController {
|
||||
@Autowired
|
||||
private IPmReturnService iPmReturnService;
|
||||
|
||||
@Autowired
|
||||
private IPmDemandService iPmDemandService;
|
||||
|
||||
@PostMapping("api/mes/lineLackMat")
|
||||
@SaIgnore
|
||||
public ResponseEntity task(@Valid @RequestBody MesTaskParams mesTaskParams){
|
||||
@@ -50,7 +55,7 @@ public class MesToWmsController {
|
||||
* @param dtos
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("app/restful/api/v3/wms/mesRequisitionSync")
|
||||
@PostMapping("api/mes/subWorkOrder")
|
||||
@SaIgnore
|
||||
public ResponseEntity subWorkOrder(@RequestBody List<WorkOrderDto.WorkOrderDataDto> dtos){
|
||||
for (WorkOrderDto.WorkOrderDataDto dto : dtos) {
|
||||
@@ -59,6 +64,13 @@ public class MesToWmsController {
|
||||
return ResponseData.build();
|
||||
}
|
||||
|
||||
@PostMapping("app/restful/api/v3/wms/mesRequisitionSync")
|
||||
@SaIgnore
|
||||
public ResponseEntity mesRequisitionSync(@RequestBody List<PmDemandParam> params) {
|
||||
iPmDemandService.batchCreate(params);
|
||||
return ResponseData.build();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 退料单同步
|
||||
|
||||
@@ -13,6 +13,7 @@ import org.nl.wms.welding_manage.service.work_order.dto.WorkOrderDto;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@@ -181,7 +181,7 @@ export default {
|
||||
getMenuDatas(node, resolve) {
|
||||
setTimeout(() => {
|
||||
getMenusTree(node.data.menu_id ? node.data.menu_id : 0).then(res => {
|
||||
resolve(res)
|
||||
resolve(res.data)
|
||||
})
|
||||
}, 100)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user