Showing
6 changed files
with
27 additions
and
3 deletions
| @@ -36,11 +36,14 @@ import com.lframework.xingyun.sc.service.contract.ContractDistributorLineService | @@ -36,11 +36,14 @@ import com.lframework.xingyun.sc.service.contract.ContractDistributorLineService | ||
| 36 | import com.lframework.xingyun.sc.service.contract.ContractDistributorStandardService; | 36 | import com.lframework.xingyun.sc.service.contract.ContractDistributorStandardService; |
| 37 | import com.lframework.xingyun.sc.service.contract.ContractFrameworkService; | 37 | import com.lframework.xingyun.sc.service.contract.ContractFrameworkService; |
| 38 | import com.lframework.xingyun.sc.service.contract.ContractStdProcessingLineService; | 38 | import com.lframework.xingyun.sc.service.contract.ContractStdProcessingLineService; |
| 39 | +import com.lframework.xingyun.sc.service.customer.CustomerCreditService; | ||
| 40 | +import com.lframework.xingyun.sc.service.customer.CustomerDevelopPlanService; | ||
| 39 | import com.lframework.xingyun.sc.service.order.PurchaseOrderInfoService; | 41 | import com.lframework.xingyun.sc.service.order.PurchaseOrderInfoService; |
| 40 | import com.lframework.xingyun.sc.utils.LatexFormulaExcelExporterUtil; | 42 | import com.lframework.xingyun.sc.utils.LatexFormulaExcelExporterUtil; |
| 41 | import com.lframework.xingyun.sc.vo.contract.createVo.CreateContractDistributorStandardVo; | 43 | import com.lframework.xingyun.sc.vo.contract.createVo.CreateContractDistributorStandardVo; |
| 42 | import com.lframework.xingyun.sc.vo.contract.queryVo.QueryContractDistributorStandardVo; | 44 | import com.lframework.xingyun.sc.vo.contract.queryVo.QueryContractDistributorStandardVo; |
| 43 | import com.lframework.xingyun.sc.vo.contract.updateVo.UpdateContractDistributorStandardVo; | 45 | import com.lframework.xingyun.sc.vo.contract.updateVo.UpdateContractDistributorStandardVo; |
| 46 | +import com.lframework.xingyun.sc.vo.customer.credit.QueryCustomerCreditVo; | ||
| 44 | import com.lframework.xingyun.sc.vo.order.QueryPurchaseOrderInfoVo; | 47 | import com.lframework.xingyun.sc.vo.order.QueryPurchaseOrderInfoVo; |
| 45 | import io.swagger.annotations.Api; | 48 | import io.swagger.annotations.Api; |
| 46 | import io.swagger.annotations.ApiImplicitParam; | 49 | import io.swagger.annotations.ApiImplicitParam; |
| @@ -110,6 +113,8 @@ public class ContractDistributorStandardController extends DefaultBaseController | @@ -110,6 +113,8 @@ public class ContractDistributorStandardController extends DefaultBaseController | ||
| 110 | private ContractStdProcessingLineService contractStdProcessingLineService; | 113 | private ContractStdProcessingLineService contractStdProcessingLineService; |
| 111 | @Resource | 114 | @Resource |
| 112 | private PurchaseOrderInfoService purchaseOrderInfoService; | 115 | private PurchaseOrderInfoService purchaseOrderInfoService; |
| 116 | + @Resource | ||
| 117 | + private CustomerCreditService customerCreditService; | ||
| 113 | 118 | ||
| 114 | 119 | ||
| 115 | public static final String SUPPLIER_DIC_CODE = "SUPPLIER"; // 所属单位/供方 | 120 | public static final String SUPPLIER_DIC_CODE = "SUPPLIER"; // 所属单位/供方 |
| @@ -1243,8 +1248,21 @@ public class ContractDistributorStandardController extends DefaultBaseController | @@ -1243,8 +1248,21 @@ public class ContractDistributorStandardController extends DefaultBaseController | ||
| 1243 | } else { | 1248 | } else { |
| 1244 | dataMap.put("includesTransportOrPackaging", "单价中不包含包装费用与运费"); | 1249 | dataMap.put("includesTransportOrPackaging", "单价中不包含包装费用与运费"); |
| 1245 | } | 1250 | } |
| 1246 | - | ||
| 1247 | - dataMap.put("remarks", data.getRemarks()); | 1251 | + //企业类型为经销商 |
| 1252 | + QueryCustomerCreditVo vo = new QueryCustomerCreditVo(); | ||
| 1253 | + vo.setCompanyId(data.getBuyer()); | ||
| 1254 | + List<CustomerCredit> query = customerCreditService.query(vo); | ||
| 1255 | + if (CollectionUtils.isNotEmpty(query) && query.get(0) != null) { | ||
| 1256 | + if ("DEALER".equals(query.get(0).getEnterpriseType())) { | ||
| 1257 | + dataMap.put("remarks", ""); | ||
| 1258 | + } else if ("TERMINAL".equals(query.get(0).getEnterpriseType())) { | ||
| 1259 | + dataMap.put("remarks", "10、□贵司在我司的所有订货限于生产使用."); | ||
| 1260 | + } else { | ||
| 1261 | + dataMap.put("remarks", ""); | ||
| 1262 | + } | ||
| 1263 | + } else { | ||
| 1264 | + dataMap.put("remarks", ""); | ||
| 1265 | + } | ||
| 1248 | return dataMap; | 1266 | return dataMap; |
| 1249 | } | 1267 | } |
| 1250 | 1268 |
xingyun-sc/src/main/java/com/lframework/xingyun/sc/controller/order/PurchaseOrderInfoController.java
| @@ -423,7 +423,13 @@ public class PurchaseOrderInfoController extends DefaultBaseController { | @@ -423,7 +423,13 @@ public class PurchaseOrderInfoController extends DefaultBaseController { | ||
| 423 | 423 | ||
| 424 | setCellValue(sheet, startRow, 11, currentOrderLine.getStatus()); | 424 | setCellValue(sheet, startRow, 11, currentOrderLine.getStatus()); |
| 425 | setCellValue(sheet, startRow, 13, currentOrderLine.getQuantity()); | 425 | setCellValue(sheet, startRow, 13, currentOrderLine.getQuantity()); |
| 426 | - setCellValue(sheet, startRow, 14, currentOrderLine.getSalesPrice()); | 426 | + if ("PRODUCTION_PROCESS".equals(templateType)) { |
| 427 | + setCellValue(sheet, startRow, 14, ""); | ||
| 428 | + setCellValue(sheet, startRow, 17, ""); | ||
| 429 | + } else { | ||
| 430 | + setCellValue(sheet, startRow, 14, currentOrderLine.getSalesPrice()); | ||
| 431 | + setCellValue(sheet, startRow, 17, currentOrderLine.getAssessmentExceedsAgreement()); | ||
| 432 | + } | ||
| 427 | setCellValue(sheet, startRow, 16, currentOrderLine.getDeliveryDate()); | 433 | setCellValue(sheet, startRow, 16, currentOrderLine.getDeliveryDate()); |
| 428 | setCellValue(sheet, startRow, 17, currentOrderLine.getAssessmentExceedsAgreement()); | 434 | setCellValue(sheet, startRow, 17, currentOrderLine.getAssessmentExceedsAgreement()); |
| 429 | totalQuantity = totalQuantity.add(currentOrderLine.getQuantity()); | 435 | totalQuantity = totalQuantity.add(currentOrderLine.getQuantity()); |
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type