| | |
| | | boolean planIssued = isFlagTrue(editFlag == null ? null : editFlag.getPlanIssued()); |
| | | boolean shipped = isFlagTrue(editFlag == null ? null : editFlag.getShipped()); |
| | | |
| | | // 需要生产的订单:生产计划已下发(含部分下发)则不允许编辑 |
| | | // 走库存的订单:已发货则不允许编辑,否则可以编辑 |
| | | salesLedgerVo.setIsEdit(needsProduction ? !planIssued : !shipped); |
| | | // 已发货的订单不允许编辑;需要生产且生产计划已下发(含部分下发)的订单允许编辑,前端只放开时间类字段 |
| | | salesLedgerVo.setIsEdit(!shipped); |
| | | salesLedgerVo.setHasProductionRecord(planIssued); |
| | | |
| | | salesLedgerVo.setStorageBlobVOs(fileUtil.getStorageBlobVOsByApplicationAndRecordTypeAndRecordId(ApplicationTypeEnum.FILE, RecordTypeEnum.SALES_LEDGER, ledgerId)); |