Showing
6 changed files
with
27 additions
and
3 deletions
| ... | ... | @@ -36,11 +36,14 @@ import com.lframework.xingyun.sc.service.contract.ContractDistributorLineService |
| 36 | 36 | import com.lframework.xingyun.sc.service.contract.ContractDistributorStandardService; |
| 37 | 37 | import com.lframework.xingyun.sc.service.contract.ContractFrameworkService; |
| 38 | 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 | 41 | import com.lframework.xingyun.sc.service.order.PurchaseOrderInfoService; |
| 40 | 42 | import com.lframework.xingyun.sc.utils.LatexFormulaExcelExporterUtil; |
| 41 | 43 | import com.lframework.xingyun.sc.vo.contract.createVo.CreateContractDistributorStandardVo; |
| 42 | 44 | import com.lframework.xingyun.sc.vo.contract.queryVo.QueryContractDistributorStandardVo; |
| 43 | 45 | import com.lframework.xingyun.sc.vo.contract.updateVo.UpdateContractDistributorStandardVo; |
| 46 | +import com.lframework.xingyun.sc.vo.customer.credit.QueryCustomerCreditVo; | |
| 44 | 47 | import com.lframework.xingyun.sc.vo.order.QueryPurchaseOrderInfoVo; |
| 45 | 48 | import io.swagger.annotations.Api; |
| 46 | 49 | import io.swagger.annotations.ApiImplicitParam; |
| ... | ... | @@ -110,6 +113,8 @@ public class ContractDistributorStandardController extends DefaultBaseController |
| 110 | 113 | private ContractStdProcessingLineService contractStdProcessingLineService; |
| 111 | 114 | @Resource |
| 112 | 115 | private PurchaseOrderInfoService purchaseOrderInfoService; |
| 116 | + @Resource | |
| 117 | + private CustomerCreditService customerCreditService; | |
| 113 | 118 | |
| 114 | 119 | |
| 115 | 120 | public static final String SUPPLIER_DIC_CODE = "SUPPLIER"; // 所属单位/供方 |
| ... | ... | @@ -1243,8 +1248,21 @@ public class ContractDistributorStandardController extends DefaultBaseController |
| 1243 | 1248 | } else { |
| 1244 | 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 | 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 | 423 | |
| 424 | 424 | setCellValue(sheet, startRow, 11, currentOrderLine.getStatus()); |
| 425 | 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 | 433 | setCellValue(sheet, startRow, 16, currentOrderLine.getDeliveryDate()); |
| 428 | 434 | setCellValue(sheet, startRow, 17, currentOrderLine.getAssessmentExceedsAgreement()); |
| 429 | 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