|
@ -9,6 +9,7 @@ import com.ruoyi.quality.service.IQualityOrderService; |
|
|
import com.ruoyi.system.domain.SysSalesOrderChild; |
|
|
import com.ruoyi.system.domain.SysSalesOrderChild; |
|
|
import com.ruoyi.system.dto.SysEquipMaterialDto; |
|
|
import com.ruoyi.system.dto.SysEquipMaterialDto; |
|
|
import com.ruoyi.system.service.ISysSalesOrderChildService; |
|
|
import com.ruoyi.system.service.ISysSalesOrderChildService; |
|
|
|
|
|
import com.ruoyi.warehouse.domain.WarehouseInventoryReportDamageChild; |
|
|
import com.ruoyi.warehouse.domain.WarehouseStorageOrder; |
|
|
import com.ruoyi.warehouse.domain.WarehouseStorageOrder; |
|
|
import com.ruoyi.warehouse.service.IWarehouseStorageOrderService; |
|
|
import com.ruoyi.warehouse.service.IWarehouseStorageOrderService; |
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
@ -16,6 +17,7 @@ import org.springframework.beans.BeanUtils; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Controller; |
|
|
import org.springframework.stereotype.Controller; |
|
|
import org.springframework.ui.ModelMap; |
|
|
import org.springframework.ui.ModelMap; |
|
|
|
|
|
import org.springframework.util.StringUtils; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import com.ruoyi.common.annotation.Log; |
|
|
import com.ruoyi.common.annotation.Log; |
|
|
import com.ruoyi.common.enums.BusinessType; |
|
|
import com.ruoyi.common.enums.BusinessType; |
|
@ -63,6 +65,17 @@ public class ErpInboundOrderController extends BaseController |
|
|
@PostMapping("/list") |
|
|
@PostMapping("/list") |
|
|
@ResponseBody |
|
|
@ResponseBody |
|
|
public TableDataInfo list(WarehouseStorageOrder storageOrder) |
|
|
public TableDataInfo list(WarehouseStorageOrder storageOrder) |
|
|
|
|
|
{ |
|
|
|
|
|
startPage(); |
|
|
|
|
|
List<WarehouseStorageOrder> list = storageOrderService.selectWarehouseStorageOrderList(storageOrder); |
|
|
|
|
|
return getDataTable(list); |
|
|
|
|
|
} |
|
|
|
|
|
/** |
|
|
|
|
|
* 查询生产入库单列表 |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("/makeStorageList") |
|
|
|
|
|
@ResponseBody |
|
|
|
|
|
public TableDataInfo makeStorageList(WarehouseStorageOrder storageOrder) |
|
|
{ |
|
|
{ |
|
|
startPage(); |
|
|
startPage(); |
|
|
List<WarehouseStorageOrder> list = storageOrderService.selectWarehouseStorageOrderList(storageOrder); |
|
|
List<WarehouseStorageOrder> list = storageOrderService.selectWarehouseStorageOrderList(storageOrder); |
|
@ -78,11 +91,20 @@ public class ErpInboundOrderController extends BaseController |
|
|
@Log(title = "入库单", businessType = BusinessType.EXPORT) |
|
|
@Log(title = "入库单", businessType = BusinessType.EXPORT) |
|
|
@PostMapping("/export") |
|
|
@PostMapping("/export") |
|
|
@ResponseBody |
|
|
@ResponseBody |
|
|
public AjaxResult export(QualityOrder qualityOrder) |
|
|
public AjaxResult export(WarehouseStorageOrder storageOrder,String ids) |
|
|
{ |
|
|
{ |
|
|
List<QualityOrder> list = qualityOrderService.selectAllMakeQualityOrderList(qualityOrder); |
|
|
storageOrder.setWarehouseOrderType("1"); |
|
|
ExcelUtil<QualityOrder> util = new ExcelUtil<QualityOrder>(QualityOrder.class); |
|
|
storageOrder.setWarehouseStorageType("5"); |
|
|
|
|
|
if (StringUtils.isEmpty(ids)){ |
|
|
|
|
|
List<WarehouseStorageOrder> list = storageOrderService.selectWarehouseStorageOrderList(storageOrder); |
|
|
|
|
|
ExcelUtil<WarehouseStorageOrder> util = new ExcelUtil<WarehouseStorageOrder>(WarehouseStorageOrder.class); |
|
|
return util.exportExcel(list, "入库单数据"); |
|
|
return util.exportExcel(list, "入库单数据"); |
|
|
|
|
|
}else { |
|
|
|
|
|
String[] storageCodes = ids.split(","); |
|
|
|
|
|
List<WarehouseStorageOrder> list = storageOrderService.selectStorageOrderListByCodes(storageCodes); |
|
|
|
|
|
ExcelUtil<WarehouseStorageOrder> util = new ExcelUtil<WarehouseStorageOrder>(WarehouseStorageOrder.class); |
|
|
|
|
|
return util.exportExcel(list, ids); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|