diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseOrderServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseOrderServiceImpl.java index c49ff949..943c113c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseOrderServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseOrderServiceImpl.java @@ -382,14 +382,13 @@ public class PurchaseOrderServiceImpl implements IPurchaseOrderService warehouseStorageOrderDetail.setWarehouseDeptType("0"); storageOrderDetailMapper.insertWarehouseStorageOrderDetail(warehouseStorageOrderDetail); } - //入库代表为采购部分的入库单 warehouseStorageOrder.setWarehouseStorageCode(warehouseStorageCode); warehouseStorageOrder.setRelatedOrderCode(warehouseStorageOrder.getRelatedOrderCode()); warehouseStorageOrder.setWarehouseStorageStatus("0"); warehouseStorageOrder.setWarehouseQualityStatus("0"); warehouseStorageOrder.setWarehouseStorageType("0"); warehouseStorageOrder.setWarehouseOrderType("0"); - warehouseStorageOrder.setWarehouseDeptType("1"); + warehouseStorageOrder.setWarehouseDeptType("0"); warehouseStorageOrder.setCreateTime(DateUtils.getNowDate()); warehouseStorageOrder.setCreateBy(ShiroUtils.getLoginName()); result = warehouseStorageOrderMapper.insertWarehouseStorageOrder(warehouseStorageOrder); @@ -401,7 +400,7 @@ public class PurchaseOrderServiceImpl implements IPurchaseOrderService warehouseStorageOrderDetail.setWarehouseStorageCode(warehouseStorageCode1); warehouseStorageOrderDetail.setWarehouseStorageType("0"); warehouseStorageOrderDetail.setMaterialDeptType("1"); - warehouseStorageOrderDetail.setWarehouseDeptType("0"); + warehouseStorageOrderDetail.setWarehouseDeptType("1"); storageOrderDetailMapper.insertWarehouseStorageOrderDetail(warehouseStorageOrderDetail); } //入库代表为仓库部分的入库单 @@ -415,7 +414,7 @@ public class PurchaseOrderServiceImpl implements IPurchaseOrderService warehouseStorageOrder.setWarehouseQualityStatus("0"); warehouseStorageOrder.setWarehouseStorageType("0"); warehouseStorageOrder.setWarehouseOrderType("0"); - warehouseStorageOrder.setWarehouseDeptType("0"); + warehouseStorageOrder.setWarehouseDeptType("1"); warehouseStorageOrder.setCreateTime(DateUtils.getNowDate()); warehouseStorageOrder.setCreateBy(ShiroUtils.getLoginName()); warehouseStorageOrder.setWarehouseStorageOrderDetailList(list2); diff --git a/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml b/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml index 90a23b4e..6f9cd34d 100644 --- a/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml @@ -238,12 +238,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/addPurchaseStorage.html b/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/addPurchaseStorage.html index 3170f30e..26a6dbe7 100644 --- a/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/addPurchaseStorage.html +++ b/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/addPurchaseStorage.html @@ -119,7 +119,7 @@ {title: '计划采购数',field: 'materialNum',}, {title: '实际采购数',field: 'materialRealNum',}, {title: '交付时间',field: 'deliveryTime',}, - {title: '通知已到货数',field: 'notifyHasArriveNum', + {title: '通知已到货数',field: 'notifyHasArrivedNum', formatter: function (value, row, index) { if (value == null || value == '') { return 0; @@ -137,7 +137,7 @@ }, {title: '通知到货数',field: 'notifyArriveNum', formatter: function (value, row, index) { - return '