|
|
@ -1834,11 +1834,19 @@ public class BaseVehicleOutService extends MybatisBaseService<BaseVehicleOutMapp |
|
|
|
//单价
|
|
|
|
fEntity.setFPrice(dto.getPrice()); |
|
|
|
if ("002".equals(dto.getMaterialTypeKey())) { |
|
|
|
//物料编码
|
|
|
|
fEntity.setFMaterialID(dto.getMaterialCode()); |
|
|
|
//挂车物料编码
|
|
|
|
if ("G".equals(dto.getMaterialCode().substring(dto.getMaterialCode().length() - 1))) { |
|
|
|
fEntity.setFMaterialID(dto.getMaterialCode()); |
|
|
|
} else { |
|
|
|
fEntity.setFMaterialID(dto.getMaterialCode() + "G"); |
|
|
|
} |
|
|
|
} else if ("003".equals(dto.getMaterialTypeKey())) { |
|
|
|
//物料编码
|
|
|
|
fEntity.setFMaterialID(dto.getMaterialCode()); |
|
|
|
//上装物料编码
|
|
|
|
if ("SZ".equals(dto.getMaterialCode().substring(dto.getMaterialCode().length() - 2))) { |
|
|
|
fEntity.setFMaterialID(dto.getMaterialCode()); |
|
|
|
} else { |
|
|
|
fEntity.setFMaterialID(dto.getMaterialCode() + "SZ"); |
|
|
|
} |
|
|
|
} |
|
|
|
//仓库id
|
|
|
|
fEntity.setFStockID("ARZSCK"); |
|
|
@ -2194,8 +2202,10 @@ public class BaseVehicleOutService extends MybatisBaseService<BaseVehicleOutMapp |
|
|
|
String cksqSid = busDeliveredApplyDetailsFeign.fetchByVehSid(baseVehicleOut1.getVinSid()).getData(); |
|
|
|
if (StringUtils.isNotBlank(cksqSid)) { |
|
|
|
String jrbjdUrl = createjrbjdPdfHB(cksqSid, baseVehicleOut1.getVinSid()); |
|
|
|
File jrbjdFile = new File(docPdfComponent.getUploadTemplateUrl() + jrbjdUrl); |
|
|
|
filesList.add(jrbjdFile); |
|
|
|
if (!"1".equals(jrbjdUrl)){ |
|
|
|
File jrbjdFile = new File(docPdfComponent.getUploadTemplateUrl() + jrbjdUrl); |
|
|
|
filesList.add(jrbjdFile); |
|
|
|
} |
|
|
|
} |
|
|
|
String hbName = "销售出库单_金融报价单_销售订单审批" + ".pdf"; |
|
|
|
try { |
|
|
@ -2332,6 +2342,9 @@ public class BaseVehicleOutService extends MybatisBaseService<BaseVehicleOutMapp |
|
|
|
//销售人员
|
|
|
|
baseQuotationVo.setStaffName(busSalesOrder.getStaffName()); |
|
|
|
//销售消贷合同信息
|
|
|
|
if (StringUtils.isBlank(busSalesOrderVehicle.getLoanContractSid())){ |
|
|
|
return rb.setMsg("该车辆没有消贷合同信息"); |
|
|
|
} |
|
|
|
BusSalesOrderLoancontractDetailsVo busSalesOrderLoancontractDetailsVo = busSalesOrderLoancontractFeign.fetchDetailsBySid(busSalesOrderVehicle.getLoanContractSid()).getData(); |
|
|
|
//贷款合同编号
|
|
|
|
baseQuotationVo.setLoanContractNo(busSalesOrderLoancontractDetailsVo.getLoanContractNo()); |
|
|
@ -2411,9 +2424,14 @@ public class BaseVehicleOutService extends MybatisBaseService<BaseVehicleOutMapp |
|
|
|
} |
|
|
|
|
|
|
|
public PdfPath createjrbjdPdf(String sid) { |
|
|
|
BaseQuotationVo baseQuotationVo = selectQuotation(sid).getData(); |
|
|
|
BaseJRFAVo baseJRFAVo = baseQuotationVo.getBaseJRFAVo(); |
|
|
|
PdfPath pdfPath = new PdfPath(); |
|
|
|
ResultBean<BaseQuotationVo> resultBean = selectQuotation(sid); |
|
|
|
if (!resultBean.getSuccess()) { |
|
|
|
pdfPath.setPdfPath("1"); |
|
|
|
return pdfPath; |
|
|
|
} |
|
|
|
BaseQuotationVo baseQuotationVo = resultBean.getData(); |
|
|
|
BaseJRFAVo baseJRFAVo = baseQuotationVo.getBaseJRFAVo(); |
|
|
|
//查询出库申请
|
|
|
|
BusDeliveredApply busDeliveredApply = busDeliveredApplyFeign.fetchBySid(sid).getData(); |
|
|
|
//查询出库申请车辆表
|
|
|
@ -2551,7 +2569,11 @@ public class BaseVehicleOutService extends MybatisBaseService<BaseVehicleOutMapp |
|
|
|
} |
|
|
|
|
|
|
|
public String createjrbjdPdfHB(String sid, String vehSid) { |
|
|
|
BaseQuotationVo baseQuotationVo = selectQuotation(sid).getData(); |
|
|
|
ResultBean<BaseQuotationVo> resultBean = selectQuotation(sid); |
|
|
|
if (!resultBean.getSuccess()) { |
|
|
|
return "1"; |
|
|
|
} |
|
|
|
BaseQuotationVo baseQuotationVo = resultBean.getData(); |
|
|
|
BaseJRFAVo baseJRFAVo = baseQuotationVo.getBaseJRFAVo(); |
|
|
|
//查询车辆信息
|
|
|
|
BaseVehicle baseVehicle = baseVehicleService.fetchBySid(vehSid); |
|
|
|