| | |
| | | purchaseLedgerServiceImpl.addQualityInspect(purchaseLedger, salesLedgerProduct); |
| | | }else { |
| | | //直接入库 |
| | | stockUtils.addStock(salesLedgerProduct.getProductModelId(), salesLedgerProduct.getQuantity(), StockInQualifiedRecordTypeEnum.PURCHASE_STOCK_IN.getCode(), purchaseLedger.getId()); |
| | | // stockUtils.addStock(salesLedgerProduct.getProductModelId(), salesLedgerProduct.getQuantity(), StockInQualifiedRecordTypeEnum.PURCHASE_STOCK_IN.getCode(), purchaseLedger.getId()); |
| | | } |
| | | } |
| | | } else if (status.equals(3)) { |
| | |
| | | |
| | | CUSTOMIZATION_STOCK_IN("0", "合格自定义入库"), |
| | | PRODUCTION_REPORT_STOCK_IN("2", "生产报工-入库"), |
| | | PURCHASE_STOCK_IN("7", "采购-入库"), |
| | | // PURCHASE_STOCK_IN("7", "采购-入库"), |
| | | QUALITYINSPECT_STOCK_IN("6", "质检-合格入库"), |
| | | DEFECTIVE_PASS("11", "不合格-让步放行"); |
| | | |
| | |
| | | @Getter |
| | | public enum StockOutQualifiedRecordTypeEnum implements BaseEnum<String> { |
| | | CUSTOMIZATION_STOCK_OUT("1", "合格自定义出库"), |
| | | PRODUCTION_REPORT_STOCK_OUT("3", "生产报工-出库"), |
| | | SALE_STOCK_OUT("8", "销售-出库"), |
| | | SALE_SHIP_STOCK_OUT("13", "销售-发货出库"); |
| | | PRODUCTION_REPORT_STOCK_OUT("3", "生产报工-出库"); |
| | | // SALE_STOCK_OUT("8", "销售-出库"), |
| | | // SALE_SHIP_STOCK_OUT("13", "销售-发货出库"); |
| | | |
| | | private final String code; |
| | | private final String value; |
| | |
| | | |
| | | |
| | | //出库 |
| | | stockUtils.addStock(salesLedgerProduct.getProductModelId(), salesLedgerProduct.getQuantity(), StockOutQualifiedRecordTypeEnum.SALE_SHIP_STOCK_OUT.getCode(), req.getId()); |
| | | // stockUtils.addStock(salesLedgerProduct.getProductModelId(), salesLedgerProduct.getQuantity(), StockOutQualifiedRecordTypeEnum.SALE_SHIP_STOCK_OUT.getCode(), req.getId()); |
| | | } |
| | | |
| | | return AjaxResult.success(); |
| | |
| | | //扣减库存 |
| | | if(!"已发货".equals(byId.getStatus())){ |
| | | SalesLedgerProduct salesLedgerProduct = salesLedgerProductMapper.selectById(byId.getSalesLedgerProductId()); |
| | | stockUtils.substractStock(salesLedgerProduct.getProductModelId(), salesLedgerProduct.getQuantity(), StockOutQualifiedRecordTypeEnum.SALE_SHIP_STOCK_OUT.getCode(), req.getId()); |
| | | // stockUtils.substractStock(salesLedgerProduct.getProductModelId(), salesLedgerProduct.getQuantity(), StockOutQualifiedRecordTypeEnum.SALE_SHIP_STOCK_OUT.getCode(), req.getId()); |
| | | } |
| | | byId.setExpressNumber(req.getExpressNumber()); |
| | | byId.setExpressCompany(req.getExpressCompany()); |
| | |
| | | // 扣已发货库存 |
| | | for (ShippingInfo shippingInfo : shippingInfos) { |
| | | if("已发货".equals(shippingInfo.getStatus())) { |
| | | stockUtils.deleteStockOutRecord(shippingInfo.getId(), StockOutQualifiedRecordTypeEnum.SALE_SHIP_STOCK_OUT.getCode()); |
| | | // stockUtils.deleteStockOutRecord(shippingInfo.getId(), StockOutQualifiedRecordTypeEnum.SALE_SHIP_STOCK_OUT.getCode()); |
| | | } |
| | | } |
| | | // 删除发货审批 |
| | |
| | | approvalNumberPrefix: NEW |
| | | |
| | | getui: |
| | | appId: PfjyAAE0FK64FaO1w2CMb1 |
| | | appKey: zTMb831OEL6J4GK1uE3Ob4 |
| | | masterSecret: K1GFtsv42v61tXGnF7SGE5 |
| | | appId: D4ahd3xp0h8d2NpkVuUcD |
| | | appKey: 98DgkPBuUxAPO4w0iHIYW9 |
| | | masterSecret: bZc5gi5A8g9x0tG4MaKvd4 |
| | | domain: https://restapi.getui.cn/v2/ |
| | | # 离线推送使用的包名/组件名 |
| | | intentComponent: uni.app.UNI099A590/io.dcloud.PandoraEntry |
| | | intentComponent: uni.app.UNIAE016D6/io.dcloud.PandoraEntry |
| | | |
| | | # 开发环境配置 |
| | | server: |
| | |
| | | druid: |
| | | # 主库数据源 |
| | | master: |
| | | # url: jdbc:mysql://localhost:3306/product-inventory-management-new?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | # url: jdbc:mysql://localhost:3306/product-inventory-management-new?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://1.15.17.182:9999/product-inventory-management-kthg?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: root |
| | | password: xd@123456.. |
| | |
| | | # redis 配置 |
| | | redis: |
| | | # 地址 |
| | | # host: 127.0.0.1 |
| | | # host: 127.0.0.1 |
| | | host: 172.17.0.1 |
| | | # 端口,默认为6379 |
| | | port: 6379 |