|
|
|
@ -24,6 +24,7 @@ import com.foreverwin.mesnac.common.util.DateUtil;
|
|
|
|
|
import com.foreverwin.mesnac.common.util.StringUtil;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.dto.BomComponentDto;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.dto.RouterStepDto;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.mapper.CustomFieldsMapper;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.mapper.UserGroupMapper;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.mapper.WorkCenterMapper;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.model.*;
|
|
|
|
@ -113,6 +114,9 @@ public class ProdReadyTaskServiceImpl extends ServiceImpl<ProdReadyTaskMapper, P
|
|
|
|
|
private ItemService itemService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private SfcService sfcService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private CustomFieldsMapper customFieldsMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public IPage<ProdReadyTask> selectPage(FrontPage<ProdReadyTask> frontPage, ProdReadyTask prodReadyTask) {
|
|
|
|
@ -480,6 +484,13 @@ public class ProdReadyTaskServiceImpl extends ServiceImpl<ProdReadyTaskMapper, P
|
|
|
|
|
labelPrintDto.setItemNumber(itemNumber);
|
|
|
|
|
labelPrintDto.setWorkOrder(workOrder);
|
|
|
|
|
labelPrintDto.setBlankingSize(sfcDispatchDto.getBlankingSize());
|
|
|
|
|
// 是否主观件 :辅料类型是9,则为主观件
|
|
|
|
|
String accessory_type = customFieldsMapper.selectCustomFieldsValue(selectCurrent.getHandle(), "ACCESSORY_TYPE");
|
|
|
|
|
if ("9".equals(accessory_type)){
|
|
|
|
|
labelPrintDto.setMainPart(true);
|
|
|
|
|
}else{
|
|
|
|
|
labelPrintDto.setMainPart(false);
|
|
|
|
|
}
|
|
|
|
|
//下道工序
|
|
|
|
|
Router router = routerService.getRouterBySfcBo(HandleEnum.SFC.getHandle(site, sfcServiceById.getSfc()));
|
|
|
|
|
int seq = 0;
|
|
|
|
|