KPI修改入出库类型判断、出库单据流水、平库入库流水、平库出库流水
This commit is contained in:
@@ -50,7 +50,7 @@ public class KpiServiceImpl implements KpiService
|
||||
|
||||
for (MydoJobFinish job : list) {
|
||||
// 检查入库作业标识是否小于10
|
||||
if (job.getInOrOut() == null || Integer.parseInt(job.getInOrOut()) >= 10) {
|
||||
if (job.getInOrOut() == null || Integer.parseInt(job.getInOrOut()) >= 20) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -89,11 +89,11 @@ public class KpiServiceImpl implements KpiService
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取入库均匀分析数据
|
||||
* 获取出库均匀分析数据
|
||||
*
|
||||
* @param warehouseId 仓库ID
|
||||
* @param yearMonth 年月(格式:yyyy-MM)
|
||||
* @return 入库均匀分析数据
|
||||
* @return 出库均匀分析数据
|
||||
*/
|
||||
@Override
|
||||
public Map<String, Object> getOutAnalysis(String warehouseId, String yearMonth)
|
||||
@@ -106,7 +106,7 @@ public class KpiServiceImpl implements KpiService
|
||||
|
||||
for (MydoJobFinish job : list) {
|
||||
// 检查出入库作业标识是否大于10
|
||||
if (job.getInOrOut() == null || Integer.parseInt(job.getInOrOut()) < 10) {
|
||||
if (job.getInOrOut() == null || Integer.parseInt(job.getInOrOut()) < 20) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ public class KpiServiceImpl implements KpiService
|
||||
// 区分入库和出库作业
|
||||
if (job.getInOrOut() != null) {
|
||||
int inOrOut = Integer.parseInt(job.getInOrOut());
|
||||
if (inOrOut < 10) {
|
||||
if (inOrOut < 20) {
|
||||
// 入库作业
|
||||
inCounts.put(roadwayId, inCounts.getOrDefault(roadwayId, 0) + 1);
|
||||
} else {
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseInFlow.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.search.ViewFlatWarehouseInFlow.domain.ViewFlatWarehouseInFlow;
|
||||
import com.ruoyi.search.ViewFlatWarehouseInFlow.service.IViewFlatWarehouseInFlowService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.bas.warehouse.domain.BasWarehouse;
|
||||
import com.ruoyi.bas.warehouse.service.IBasWarehouseService;
|
||||
|
||||
/**
|
||||
* 平库入库流水Controller
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/search/ViewFlatWarehouseInFlow")
|
||||
public class ViewFlatWarehouseInFlowController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewFlatWarehouseInFlowService viewFlatWarehouseInFlowService;
|
||||
|
||||
@Autowired
|
||||
private IBasWarehouseService basWarehouseService;
|
||||
|
||||
/**
|
||||
* 查询平库入库流水列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseInFlow:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow)
|
||||
{
|
||||
startPage();
|
||||
List<ViewFlatWarehouseInFlow> list = viewFlatWarehouseInFlowService.selectViewFlatWarehouseInFlowList(viewFlatWarehouseInFlow);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出平库入库流水列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseInFlow:export')")
|
||||
@Log(title = "平库入库流水", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewFlatWarehouseInFlow viewFlatWarehouseInFlow)
|
||||
{
|
||||
List<ViewFlatWarehouseInFlow> list = viewFlatWarehouseInFlowService.selectViewFlatWarehouseInFlowList(viewFlatWarehouseInFlow);
|
||||
ExcelUtil<ViewFlatWarehouseInFlow> util = new ExcelUtil<ViewFlatWarehouseInFlow>(ViewFlatWarehouseInFlow.class);
|
||||
util.exportExcel(response, list, "平库入库流水数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取平库入库流水详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseInFlow:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(viewFlatWarehouseInFlowService.selectViewFlatWarehouseInFlowById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增平库入库流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseInFlow:add')")
|
||||
@Log(title = "平库入库流水", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ViewFlatWarehouseInFlow viewFlatWarehouseInFlow)
|
||||
{
|
||||
return toAjax(viewFlatWarehouseInFlowService.insertViewFlatWarehouseInFlow(viewFlatWarehouseInFlow));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改平库入库流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseInFlow:edit')")
|
||||
@Log(title = "平库入库流水", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ViewFlatWarehouseInFlow viewFlatWarehouseInFlow)
|
||||
{
|
||||
return toAjax(viewFlatWarehouseInFlowService.updateViewFlatWarehouseInFlow(viewFlatWarehouseInFlow));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除平库入库流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseInFlow:remove')")
|
||||
@Log(title = "平库入库流水", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(viewFlatWarehouseInFlowService.deleteViewFlatWarehouseInFlowByIds(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询仓库管理列表(warehouse_type=3)
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseInFlow:list')")
|
||||
@GetMapping("/warehouseList")
|
||||
public TableDataInfo warehouseList()
|
||||
{
|
||||
startPage();
|
||||
BasWarehouse basWarehouse = new BasWarehouse();
|
||||
basWarehouse.setWarehouseType("3");
|
||||
List<BasWarehouse> list = basWarehouseService.selectBasWarehouseList(basWarehouse);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,324 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseInFlow.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 平库入库流水对象 view_flat_warehouse_in_flow
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public class ViewFlatWarehouseInFlow extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 入出库类型 */
|
||||
@Excel(name = "入出库类型")
|
||||
private String inOrOut;
|
||||
|
||||
/** 入出库主单据ID */
|
||||
@Excel(name = "入出库主单据ID")
|
||||
private String inOrOutSotckId;
|
||||
|
||||
/** 入出库主子单据ID */
|
||||
@Excel(name = "入出库主子单据ID")
|
||||
private String inOrOutSotckDetailId;
|
||||
|
||||
/** 物料GUID */
|
||||
@Excel(name = "物料GUID")
|
||||
private String productGuid;
|
||||
|
||||
/** 物料ID */
|
||||
@Excel(name = "物料ID")
|
||||
private String productId;
|
||||
|
||||
/** 数量 */
|
||||
@Excel(name = "数量")
|
||||
private String quantity;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String createMan;
|
||||
|
||||
/** 仓库id */
|
||||
@Excel(name = "仓库id")
|
||||
private String warehouseId;
|
||||
|
||||
/** 仓库名称 */
|
||||
@Excel(name = "仓库名称")
|
||||
private String warehouseName;
|
||||
|
||||
/** 仓库地址 */
|
||||
@Excel(name = "仓库地址")
|
||||
private String address;
|
||||
|
||||
/** 仓库描述 */
|
||||
@Excel(name = "仓库描述")
|
||||
private String cDesc;
|
||||
|
||||
/** 仓库级别 */
|
||||
@Excel(name = "仓库级别")
|
||||
private String warehouseKind;
|
||||
|
||||
/** 仓库类型 */
|
||||
@Excel(name = "仓库类型")
|
||||
private String warehouseType;
|
||||
|
||||
/** 是否可用 */
|
||||
@Excel(name = "是否可用")
|
||||
private String isCurrent;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
private String productName;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
private String spec;
|
||||
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
private String cargoNo;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 价格 */
|
||||
@Excel(name = "价格")
|
||||
private String price;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setInOrOut(String inOrOut)
|
||||
{
|
||||
this.inOrOut = inOrOut;
|
||||
}
|
||||
|
||||
public String getInOrOut()
|
||||
{
|
||||
return inOrOut;
|
||||
}
|
||||
|
||||
public void setInOrOutSotckId(String inOrOutSotckId)
|
||||
{
|
||||
this.inOrOutSotckId = inOrOutSotckId;
|
||||
}
|
||||
|
||||
public String getInOrOutSotckId()
|
||||
{
|
||||
return inOrOutSotckId;
|
||||
}
|
||||
|
||||
public void setInOrOutSotckDetailId(String inOrOutSotckDetailId)
|
||||
{
|
||||
this.inOrOutSotckDetailId = inOrOutSotckDetailId;
|
||||
}
|
||||
|
||||
public String getInOrOutSotckDetailId()
|
||||
{
|
||||
return inOrOutSotckDetailId;
|
||||
}
|
||||
|
||||
public void setProductGuid(String productGuid)
|
||||
{
|
||||
this.productGuid = productGuid;
|
||||
}
|
||||
|
||||
public String getProductGuid()
|
||||
{
|
||||
return productGuid;
|
||||
}
|
||||
|
||||
public void setProductId(String productId)
|
||||
{
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getProductId()
|
||||
{
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setQuantity(String quantity)
|
||||
{
|
||||
this.quantity = quantity;
|
||||
}
|
||||
|
||||
public String getQuantity()
|
||||
{
|
||||
return quantity;
|
||||
}
|
||||
|
||||
public void setCreateMan(String createMan)
|
||||
{
|
||||
this.createMan = createMan;
|
||||
}
|
||||
|
||||
public String getCreateMan()
|
||||
{
|
||||
return createMan;
|
||||
}
|
||||
|
||||
public void setWarehouseId(String warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public String getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
|
||||
public void setWarehouseName(String warehouseName)
|
||||
{
|
||||
this.warehouseName = warehouseName;
|
||||
}
|
||||
|
||||
public String getWarehouseName()
|
||||
{
|
||||
return warehouseName;
|
||||
}
|
||||
|
||||
public void setAddress(String address)
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setcDesc(String cDesc)
|
||||
{
|
||||
this.cDesc = cDesc;
|
||||
}
|
||||
|
||||
public String getcDesc()
|
||||
{
|
||||
return cDesc;
|
||||
}
|
||||
|
||||
public void setWarehouseKind(String warehouseKind)
|
||||
{
|
||||
this.warehouseKind = warehouseKind;
|
||||
}
|
||||
|
||||
public String getWarehouseKind()
|
||||
{
|
||||
return warehouseKind;
|
||||
}
|
||||
|
||||
public void setWarehouseType(String warehouseType)
|
||||
{
|
||||
this.warehouseType = warehouseType;
|
||||
}
|
||||
|
||||
public String getWarehouseType()
|
||||
{
|
||||
return warehouseType;
|
||||
}
|
||||
|
||||
public void setIsCurrent(String isCurrent)
|
||||
{
|
||||
this.isCurrent = isCurrent;
|
||||
}
|
||||
|
||||
public String getIsCurrent()
|
||||
{
|
||||
return isCurrent;
|
||||
}
|
||||
|
||||
public void setProductName(String productName)
|
||||
{
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getProductName()
|
||||
{
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setSpec(String spec)
|
||||
{
|
||||
this.spec = spec;
|
||||
}
|
||||
|
||||
public String getSpec()
|
||||
{
|
||||
return spec;
|
||||
}
|
||||
|
||||
public void setCargoNo(String cargoNo)
|
||||
{
|
||||
this.cargoNo = cargoNo;
|
||||
}
|
||||
|
||||
public String getCargoNo()
|
||||
{
|
||||
return cargoNo;
|
||||
}
|
||||
|
||||
public void setUnit(String unit)
|
||||
{
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getUnit()
|
||||
{
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setPrice(String price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public String getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("inOrOut", getInOrOut())
|
||||
.append("inOrOutSotckId", getInOrOutSotckId())
|
||||
.append("inOrOutSotckDetailId", getInOrOutSotckDetailId())
|
||||
.append("productGuid", getProductGuid())
|
||||
.append("productId", getProductId())
|
||||
.append("quantity", getQuantity())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createMan", getCreateMan())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("warehouseName", getWarehouseName())
|
||||
.append("address", getAddress())
|
||||
.append("cDesc", getcDesc())
|
||||
.append("warehouseKind", getWarehouseKind())
|
||||
.append("warehouseType", getWarehouseType())
|
||||
.append("isCurrent", getIsCurrent())
|
||||
.append("productName", getProductName())
|
||||
.append("spec", getSpec())
|
||||
.append("cargoNo", getCargoNo())
|
||||
.append("unit", getUnit())
|
||||
.append("price", getPrice())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseInFlow.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewFlatWarehouseInFlow.domain.ViewFlatWarehouseInFlow;
|
||||
|
||||
/**
|
||||
* 平库入库流水Mapper接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public interface ViewFlatWarehouseInFlowMapper
|
||||
{
|
||||
/**
|
||||
* 查询平库入库流水
|
||||
*
|
||||
* @param id 平库入库流水主键
|
||||
* @return 平库入库流水
|
||||
*/
|
||||
public ViewFlatWarehouseInFlow selectViewFlatWarehouseInFlowById(Long id);
|
||||
|
||||
/**
|
||||
* 查询平库入库流水列表
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 平库入库流水集合
|
||||
*/
|
||||
public List<ViewFlatWarehouseInFlow> selectViewFlatWarehouseInFlowList(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow);
|
||||
|
||||
/**
|
||||
* 新增平库入库流水
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewFlatWarehouseInFlow(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow);
|
||||
|
||||
/**
|
||||
* 修改平库入库流水
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewFlatWarehouseInFlow(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow);
|
||||
|
||||
/**
|
||||
* 删除平库入库流水
|
||||
*
|
||||
* @param id 平库入库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseInFlowById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除平库入库流水
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseInFlowByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseInFlow.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewFlatWarehouseInFlow.domain.ViewFlatWarehouseInFlow;
|
||||
|
||||
/**
|
||||
* 平库入库流水Service接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public interface IViewFlatWarehouseInFlowService
|
||||
{
|
||||
/**
|
||||
* 查询平库入库流水
|
||||
*
|
||||
* @param id 平库入库流水主键
|
||||
* @return 平库入库流水
|
||||
*/
|
||||
public ViewFlatWarehouseInFlow selectViewFlatWarehouseInFlowById(Long id);
|
||||
|
||||
/**
|
||||
* 查询平库入库流水列表
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 平库入库流水集合
|
||||
*/
|
||||
public List<ViewFlatWarehouseInFlow> selectViewFlatWarehouseInFlowList(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow);
|
||||
|
||||
/**
|
||||
* 新增平库入库流水
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewFlatWarehouseInFlow(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow);
|
||||
|
||||
/**
|
||||
* 修改平库入库流水
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewFlatWarehouseInFlow(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow);
|
||||
|
||||
/**
|
||||
* 批量删除平库入库流水
|
||||
*
|
||||
* @param ids 需要删除的平库入库流水主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseInFlowByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除平库入库流水信息
|
||||
*
|
||||
* @param id 平库入库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseInFlowById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseInFlow.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.search.ViewFlatWarehouseInFlow.mapper.ViewFlatWarehouseInFlowMapper;
|
||||
import com.ruoyi.search.ViewFlatWarehouseInFlow.domain.ViewFlatWarehouseInFlow;
|
||||
import com.ruoyi.search.ViewFlatWarehouseInFlow.service.IViewFlatWarehouseInFlowService;
|
||||
|
||||
/**
|
||||
* 平库入库流水Service业务层处理
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
@Service
|
||||
public class ViewFlatWarehouseInFlowServiceImpl implements IViewFlatWarehouseInFlowService
|
||||
{
|
||||
@Autowired
|
||||
private ViewFlatWarehouseInFlowMapper viewFlatWarehouseInFlowMapper;
|
||||
|
||||
/**
|
||||
* 查询平库入库流水
|
||||
*
|
||||
* @param id 平库入库流水主键
|
||||
* @return 平库入库流水
|
||||
*/
|
||||
@Override
|
||||
public ViewFlatWarehouseInFlow selectViewFlatWarehouseInFlowById(Long id)
|
||||
{
|
||||
return viewFlatWarehouseInFlowMapper.selectViewFlatWarehouseInFlowById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询平库入库流水列表
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 平库入库流水
|
||||
*/
|
||||
@Override
|
||||
public List<ViewFlatWarehouseInFlow> selectViewFlatWarehouseInFlowList(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow)
|
||||
{
|
||||
return viewFlatWarehouseInFlowMapper.selectViewFlatWarehouseInFlowList(viewFlatWarehouseInFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增平库入库流水
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertViewFlatWarehouseInFlow(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow)
|
||||
{
|
||||
viewFlatWarehouseInFlow.setCreateTime(DateUtils.getNowDate());
|
||||
return viewFlatWarehouseInFlowMapper.insertViewFlatWarehouseInFlow(viewFlatWarehouseInFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改平库入库流水
|
||||
*
|
||||
* @param viewFlatWarehouseInFlow 平库入库流水
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateViewFlatWarehouseInFlow(ViewFlatWarehouseInFlow viewFlatWarehouseInFlow)
|
||||
{
|
||||
return viewFlatWarehouseInFlowMapper.updateViewFlatWarehouseInFlow(viewFlatWarehouseInFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除平库入库流水
|
||||
*
|
||||
* @param ids 需要删除的平库入库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewFlatWarehouseInFlowByIds(Long[] ids)
|
||||
{
|
||||
return viewFlatWarehouseInFlowMapper.deleteViewFlatWarehouseInFlowByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除平库入库流水信息
|
||||
*
|
||||
* @param id 平库入库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewFlatWarehouseInFlowById(Long id)
|
||||
{
|
||||
return viewFlatWarehouseInFlowMapper.deleteViewFlatWarehouseInFlowById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseOutFlow.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.search.ViewFlatWarehouseOutFlow.domain.ViewFlatWarehouseOutFlow;
|
||||
import com.ruoyi.search.ViewFlatWarehouseOutFlow.service.IViewFlatWarehouseOutFlowService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 平库出库流水Controller
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/search/ViewFlatWarehouseOutFlow")
|
||||
public class ViewFlatWarehouseOutFlowController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewFlatWarehouseOutFlowService viewFlatWarehouseOutFlowService;
|
||||
|
||||
/**
|
||||
* 查询平库出库流水列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseOutFlow:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow)
|
||||
{
|
||||
startPage();
|
||||
List<ViewFlatWarehouseOutFlow> list = viewFlatWarehouseOutFlowService.selectViewFlatWarehouseOutFlowList(viewFlatWarehouseOutFlow);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出平库出库流水列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseOutFlow:export')")
|
||||
@Log(title = "平库出库流水", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow)
|
||||
{
|
||||
List<ViewFlatWarehouseOutFlow> list = viewFlatWarehouseOutFlowService.selectViewFlatWarehouseOutFlowList(viewFlatWarehouseOutFlow);
|
||||
ExcelUtil<ViewFlatWarehouseOutFlow> util = new ExcelUtil<ViewFlatWarehouseOutFlow>(ViewFlatWarehouseOutFlow.class);
|
||||
util.exportExcel(response, list, "平库出库流水数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取平库出库流水详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseOutFlow:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(viewFlatWarehouseOutFlowService.selectViewFlatWarehouseOutFlowById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增平库出库流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseOutFlow:add')")
|
||||
@Log(title = "平库出库流水", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow)
|
||||
{
|
||||
return toAjax(viewFlatWarehouseOutFlowService.insertViewFlatWarehouseOutFlow(viewFlatWarehouseOutFlow));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改平库出库流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseOutFlow:edit')")
|
||||
@Log(title = "平库出库流水", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow)
|
||||
{
|
||||
return toAjax(viewFlatWarehouseOutFlowService.updateViewFlatWarehouseOutFlow(viewFlatWarehouseOutFlow));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除平库出库流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewFlatWarehouseOutFlow:remove')")
|
||||
@Log(title = "平库出库流水", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(viewFlatWarehouseOutFlowService.deleteViewFlatWarehouseOutFlowByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,324 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseOutFlow.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 平库出库流水对象 view_flat_warehouse_out_flow
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public class ViewFlatWarehouseOutFlow extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 入出库类型 */
|
||||
@Excel(name = "入出库类型")
|
||||
private String inOrOut;
|
||||
|
||||
/** 入出库主单据ID */
|
||||
@Excel(name = "入出库主单据ID")
|
||||
private String inOrOutSotckId;
|
||||
|
||||
/** 入出库主子单据ID */
|
||||
@Excel(name = "入出库主子单据ID")
|
||||
private String inOrOutSotckDetailId;
|
||||
|
||||
/** 物料GUID */
|
||||
@Excel(name = "物料GUID")
|
||||
private String productGuid;
|
||||
|
||||
/** 物料ID */
|
||||
@Excel(name = "物料ID")
|
||||
private String productId;
|
||||
|
||||
/** 入出库数量 */
|
||||
@Excel(name = "入出库数量")
|
||||
private String quantity;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String createMan;
|
||||
|
||||
/** 仓库ID */
|
||||
@Excel(name = "仓库ID")
|
||||
private String warehouseId;
|
||||
|
||||
/** 仓库名称 */
|
||||
@Excel(name = "仓库名称")
|
||||
private String warehouseName;
|
||||
|
||||
/** 仓库地址 */
|
||||
@Excel(name = "仓库地址")
|
||||
private String address;
|
||||
|
||||
/** 仓库描述 */
|
||||
@Excel(name = "仓库描述")
|
||||
private String cDesc;
|
||||
|
||||
/** 仓库级别 */
|
||||
@Excel(name = "仓库级别")
|
||||
private String warehouseKind;
|
||||
|
||||
/** 仓库类型 */
|
||||
@Excel(name = "仓库类型")
|
||||
private String warehouseType;
|
||||
|
||||
/** 是否可用 */
|
||||
@Excel(name = "是否可用")
|
||||
private String isCurrent;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
private String productName;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
private String spec;
|
||||
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
private String cargoNo;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 价格 */
|
||||
@Excel(name = "价格")
|
||||
private String price;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setInOrOut(String inOrOut)
|
||||
{
|
||||
this.inOrOut = inOrOut;
|
||||
}
|
||||
|
||||
public String getInOrOut()
|
||||
{
|
||||
return inOrOut;
|
||||
}
|
||||
|
||||
public void setInOrOutSotckId(String inOrOutSotckId)
|
||||
{
|
||||
this.inOrOutSotckId = inOrOutSotckId;
|
||||
}
|
||||
|
||||
public String getInOrOutSotckId()
|
||||
{
|
||||
return inOrOutSotckId;
|
||||
}
|
||||
|
||||
public void setInOrOutSotckDetailId(String inOrOutSotckDetailId)
|
||||
{
|
||||
this.inOrOutSotckDetailId = inOrOutSotckDetailId;
|
||||
}
|
||||
|
||||
public String getInOrOutSotckDetailId()
|
||||
{
|
||||
return inOrOutSotckDetailId;
|
||||
}
|
||||
|
||||
public void setProductGuid(String productGuid)
|
||||
{
|
||||
this.productGuid = productGuid;
|
||||
}
|
||||
|
||||
public String getProductGuid()
|
||||
{
|
||||
return productGuid;
|
||||
}
|
||||
|
||||
public void setProductId(String productId)
|
||||
{
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getProductId()
|
||||
{
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setQuantity(String quantity)
|
||||
{
|
||||
this.quantity = quantity;
|
||||
}
|
||||
|
||||
public String getQuantity()
|
||||
{
|
||||
return quantity;
|
||||
}
|
||||
|
||||
public void setCreateMan(String createMan)
|
||||
{
|
||||
this.createMan = createMan;
|
||||
}
|
||||
|
||||
public String getCreateMan()
|
||||
{
|
||||
return createMan;
|
||||
}
|
||||
|
||||
public void setWarehouseId(String warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public String getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
|
||||
public void setWarehouseName(String warehouseName)
|
||||
{
|
||||
this.warehouseName = warehouseName;
|
||||
}
|
||||
|
||||
public String getWarehouseName()
|
||||
{
|
||||
return warehouseName;
|
||||
}
|
||||
|
||||
public void setAddress(String address)
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setcDesc(String cDesc)
|
||||
{
|
||||
this.cDesc = cDesc;
|
||||
}
|
||||
|
||||
public String getcDesc()
|
||||
{
|
||||
return cDesc;
|
||||
}
|
||||
|
||||
public void setWarehouseKind(String warehouseKind)
|
||||
{
|
||||
this.warehouseKind = warehouseKind;
|
||||
}
|
||||
|
||||
public String getWarehouseKind()
|
||||
{
|
||||
return warehouseKind;
|
||||
}
|
||||
|
||||
public void setWarehouseType(String warehouseType)
|
||||
{
|
||||
this.warehouseType = warehouseType;
|
||||
}
|
||||
|
||||
public String getWarehouseType()
|
||||
{
|
||||
return warehouseType;
|
||||
}
|
||||
|
||||
public void setIsCurrent(String isCurrent)
|
||||
{
|
||||
this.isCurrent = isCurrent;
|
||||
}
|
||||
|
||||
public String getIsCurrent()
|
||||
{
|
||||
return isCurrent;
|
||||
}
|
||||
|
||||
public void setProductName(String productName)
|
||||
{
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getProductName()
|
||||
{
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setSpec(String spec)
|
||||
{
|
||||
this.spec = spec;
|
||||
}
|
||||
|
||||
public String getSpec()
|
||||
{
|
||||
return spec;
|
||||
}
|
||||
|
||||
public void setCargoNo(String cargoNo)
|
||||
{
|
||||
this.cargoNo = cargoNo;
|
||||
}
|
||||
|
||||
public String getCargoNo()
|
||||
{
|
||||
return cargoNo;
|
||||
}
|
||||
|
||||
public void setUnit(String unit)
|
||||
{
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getUnit()
|
||||
{
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setPrice(String price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public String getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("inOrOut", getInOrOut())
|
||||
.append("inOrOutSotckId", getInOrOutSotckId())
|
||||
.append("inOrOutSotckDetailId", getInOrOutSotckDetailId())
|
||||
.append("productGuid", getProductGuid())
|
||||
.append("productId", getProductId())
|
||||
.append("quantity", getQuantity())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createMan", getCreateMan())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("warehouseName", getWarehouseName())
|
||||
.append("address", getAddress())
|
||||
.append("cDesc", getcDesc())
|
||||
.append("warehouseKind", getWarehouseKind())
|
||||
.append("warehouseType", getWarehouseType())
|
||||
.append("isCurrent", getIsCurrent())
|
||||
.append("productName", getProductName())
|
||||
.append("spec", getSpec())
|
||||
.append("cargoNo", getCargoNo())
|
||||
.append("unit", getUnit())
|
||||
.append("price", getPrice())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseOutFlow.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewFlatWarehouseOutFlow.domain.ViewFlatWarehouseOutFlow;
|
||||
|
||||
/**
|
||||
* 平库出库流水Mapper接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public interface ViewFlatWarehouseOutFlowMapper
|
||||
{
|
||||
/**
|
||||
* 查询平库出库流水
|
||||
*
|
||||
* @param id 平库出库流水主键
|
||||
* @return 平库出库流水
|
||||
*/
|
||||
public ViewFlatWarehouseOutFlow selectViewFlatWarehouseOutFlowById(Long id);
|
||||
|
||||
/**
|
||||
* 查询平库出库流水列表
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 平库出库流水集合
|
||||
*/
|
||||
public List<ViewFlatWarehouseOutFlow> selectViewFlatWarehouseOutFlowList(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow);
|
||||
|
||||
/**
|
||||
* 新增平库出库流水
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewFlatWarehouseOutFlow(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow);
|
||||
|
||||
/**
|
||||
* 修改平库出库流水
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewFlatWarehouseOutFlow(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow);
|
||||
|
||||
/**
|
||||
* 删除平库出库流水
|
||||
*
|
||||
* @param id 平库出库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseOutFlowById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除平库出库流水
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseOutFlowByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseOutFlow.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewFlatWarehouseOutFlow.domain.ViewFlatWarehouseOutFlow;
|
||||
|
||||
/**
|
||||
* 平库出库流水Service接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public interface IViewFlatWarehouseOutFlowService
|
||||
{
|
||||
/**
|
||||
* 查询平库出库流水
|
||||
*
|
||||
* @param id 平库出库流水主键
|
||||
* @return 平库出库流水
|
||||
*/
|
||||
public ViewFlatWarehouseOutFlow selectViewFlatWarehouseOutFlowById(Long id);
|
||||
|
||||
/**
|
||||
* 查询平库出库流水列表
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 平库出库流水集合
|
||||
*/
|
||||
public List<ViewFlatWarehouseOutFlow> selectViewFlatWarehouseOutFlowList(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow);
|
||||
|
||||
/**
|
||||
* 新增平库出库流水
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewFlatWarehouseOutFlow(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow);
|
||||
|
||||
/**
|
||||
* 修改平库出库流水
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewFlatWarehouseOutFlow(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow);
|
||||
|
||||
/**
|
||||
* 批量删除平库出库流水
|
||||
*
|
||||
* @param ids 需要删除的平库出库流水主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseOutFlowByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除平库出库流水信息
|
||||
*
|
||||
* @param id 平库出库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewFlatWarehouseOutFlowById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.ruoyi.search.ViewFlatWarehouseOutFlow.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.search.ViewFlatWarehouseOutFlow.mapper.ViewFlatWarehouseOutFlowMapper;
|
||||
import com.ruoyi.search.ViewFlatWarehouseOutFlow.domain.ViewFlatWarehouseOutFlow;
|
||||
import com.ruoyi.search.ViewFlatWarehouseOutFlow.service.IViewFlatWarehouseOutFlowService;
|
||||
|
||||
/**
|
||||
* 平库出库流水Service业务层处理
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
@Service
|
||||
public class ViewFlatWarehouseOutFlowServiceImpl implements IViewFlatWarehouseOutFlowService
|
||||
{
|
||||
@Autowired
|
||||
private ViewFlatWarehouseOutFlowMapper viewFlatWarehouseOutFlowMapper;
|
||||
|
||||
/**
|
||||
* 查询平库出库流水
|
||||
*
|
||||
* @param id 平库出库流水主键
|
||||
* @return 平库出库流水
|
||||
*/
|
||||
@Override
|
||||
public ViewFlatWarehouseOutFlow selectViewFlatWarehouseOutFlowById(Long id)
|
||||
{
|
||||
return viewFlatWarehouseOutFlowMapper.selectViewFlatWarehouseOutFlowById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询平库出库流水列表
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 平库出库流水
|
||||
*/
|
||||
@Override
|
||||
public List<ViewFlatWarehouseOutFlow> selectViewFlatWarehouseOutFlowList(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow)
|
||||
{
|
||||
return viewFlatWarehouseOutFlowMapper.selectViewFlatWarehouseOutFlowList(viewFlatWarehouseOutFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增平库出库流水
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertViewFlatWarehouseOutFlow(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow)
|
||||
{
|
||||
viewFlatWarehouseOutFlow.setCreateTime(DateUtils.getNowDate());
|
||||
return viewFlatWarehouseOutFlowMapper.insertViewFlatWarehouseOutFlow(viewFlatWarehouseOutFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改平库出库流水
|
||||
*
|
||||
* @param viewFlatWarehouseOutFlow 平库出库流水
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateViewFlatWarehouseOutFlow(ViewFlatWarehouseOutFlow viewFlatWarehouseOutFlow)
|
||||
{
|
||||
return viewFlatWarehouseOutFlowMapper.updateViewFlatWarehouseOutFlow(viewFlatWarehouseOutFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除平库出库流水
|
||||
*
|
||||
* @param ids 需要删除的平库出库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewFlatWarehouseOutFlowByIds(Long[] ids)
|
||||
{
|
||||
return viewFlatWarehouseOutFlowMapper.deleteViewFlatWarehouseOutFlowByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除平库出库流水信息
|
||||
*
|
||||
* @param id 平库出库流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewFlatWarehouseOutFlowById(Long id)
|
||||
{
|
||||
return viewFlatWarehouseOutFlowMapper.deleteViewFlatWarehouseOutFlowById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.ruoyi.search.ViewOutJobFlow.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.search.ViewOutJobFlow.domain.ViewOutJobFlow;
|
||||
import com.ruoyi.search.ViewOutJobFlow.service.IViewOutJobFlowService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 出库做业务流水Controller
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/search/ViewOutJobFlow")
|
||||
public class ViewOutJobFlowController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewOutJobFlowService viewOutJobFlowService;
|
||||
|
||||
/**
|
||||
* 查询出库做业务流水列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ViewOutJobFlow viewOutJobFlow)
|
||||
{
|
||||
startPage();
|
||||
List<ViewOutJobFlow> list = viewOutJobFlowService.selectViewOutJobFlowList(viewOutJobFlow);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出出库做业务流水列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:export')")
|
||||
@Log(title = "出库做业务流水", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewOutJobFlow viewOutJobFlow)
|
||||
{
|
||||
List<ViewOutJobFlow> list = viewOutJobFlowService.selectViewOutJobFlowList(viewOutJobFlow);
|
||||
ExcelUtil<ViewOutJobFlow> util = new ExcelUtil<ViewOutJobFlow>(ViewOutJobFlow.class);
|
||||
util.exportExcel(response, list, "出库做业务流水数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取出库做业务流水详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:query')")
|
||||
@GetMapping(value = "/{jobId}")
|
||||
public AjaxResult getInfo(@PathVariable("jobId") String jobId)
|
||||
{
|
||||
return success(viewOutJobFlowService.selectViewOutJobFlowByJobId(jobId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增出库做业务流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:add')")
|
||||
@Log(title = "出库做业务流水", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ViewOutJobFlow viewOutJobFlow)
|
||||
{
|
||||
return toAjax(viewOutJobFlowService.insertViewOutJobFlow(viewOutJobFlow));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改出库做业务流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:edit')")
|
||||
@Log(title = "出库做业务流水", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ViewOutJobFlow viewOutJobFlow)
|
||||
{
|
||||
return toAjax(viewOutJobFlowService.updateViewOutJobFlow(viewOutJobFlow));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除出库做业务流水
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('search:ViewOutJobFlow:remove')")
|
||||
@Log(title = "出库做业务流水", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{jobIds}")
|
||||
public AjaxResult remove(@PathVariable String[] jobIds)
|
||||
{
|
||||
return toAjax(viewOutJobFlowService.deleteViewOutJobFlowByJobIds(jobIds));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,489 @@
|
||||
package com.ruoyi.search.ViewOutJobFlow.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 出库做业务流水对象 view_out_job_flow
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public class ViewOutJobFlow extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 作业ID */
|
||||
@Excel(name = "作业ID")
|
||||
private String jobId;
|
||||
|
||||
/** 子作业ID */
|
||||
@Excel(name = "子作业ID")
|
||||
private String jobDetailId;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private String status;
|
||||
|
||||
/** 任务号 */
|
||||
@Excel(name = "任务号")
|
||||
private String taskNo;
|
||||
|
||||
/** 托盘码 */
|
||||
@Excel(name = "托盘码")
|
||||
private String trayCode;
|
||||
|
||||
/** 巷道ID */
|
||||
@Excel(name = "巷道ID")
|
||||
private String roadwayId;
|
||||
|
||||
/** 货位ID */
|
||||
@Excel(name = "货位ID")
|
||||
private String cargoSpaceId;
|
||||
|
||||
/** 货位名称 */
|
||||
@Excel(name = "货位名称")
|
||||
private String cargoSpaceName;
|
||||
|
||||
/** 排 */
|
||||
@Excel(name = "排")
|
||||
private Long thePlatoon;
|
||||
|
||||
/** 列 */
|
||||
@Excel(name = "列")
|
||||
private Long theColumn;
|
||||
|
||||
/** 层 */
|
||||
@Excel(name = "层")
|
||||
private Long theFloor;
|
||||
|
||||
/** 优先级 */
|
||||
@Excel(name = "优先级")
|
||||
private Long priority;
|
||||
|
||||
/** 执行阶段 */
|
||||
@Excel(name = "执行阶段")
|
||||
private String executionPhase;
|
||||
|
||||
/** 作业类型 */
|
||||
@Excel(name = "作业类型")
|
||||
private String inOrOut;
|
||||
|
||||
/** 出口ID */
|
||||
@Excel(name = "出口ID")
|
||||
private String exitId;
|
||||
|
||||
/** 物料ID */
|
||||
@Excel(name = "物料ID")
|
||||
private String productId;
|
||||
|
||||
/** 批号 */
|
||||
@Excel(name = "批号")
|
||||
private String lotNo;
|
||||
|
||||
/** 剁型ID */
|
||||
@Excel(name = "剁型ID")
|
||||
private String stackingId;
|
||||
|
||||
/** 库存状态 */
|
||||
@Excel(name = "库存状态")
|
||||
private String stockStatus;
|
||||
|
||||
/** 出库数量 */
|
||||
@Excel(name = "出库数量")
|
||||
private String outQuantity;
|
||||
|
||||
/** 回流数量 */
|
||||
@Excel(name = "回流数量")
|
||||
private String giveNum;
|
||||
|
||||
/** 单据ID */
|
||||
@Excel(name = "单据ID")
|
||||
private String inOrOutId;
|
||||
|
||||
/** 子单据ID */
|
||||
@Excel(name = "子单据ID")
|
||||
private String inOrOutDId;
|
||||
|
||||
/** 开始时间 */
|
||||
@Excel(name = "开始时间")
|
||||
private String startTime;
|
||||
|
||||
/** 结束时间 */
|
||||
@Excel(name = "结束时间")
|
||||
private String finishTime;
|
||||
|
||||
/** 仓库ID */
|
||||
@Excel(name = "仓库ID")
|
||||
private String warehouseId;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
private String productName;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
private String spec;
|
||||
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
private String cargoNo;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 客户名称 */
|
||||
@Excel(name = "客户名称")
|
||||
private String customerName;
|
||||
|
||||
public void setJobId(String jobId)
|
||||
{
|
||||
this.jobId = jobId;
|
||||
}
|
||||
|
||||
public String getJobId()
|
||||
{
|
||||
return jobId;
|
||||
}
|
||||
|
||||
public void setJobDetailId(String jobDetailId)
|
||||
{
|
||||
this.jobDetailId = jobDetailId;
|
||||
}
|
||||
|
||||
public String getJobDetailId()
|
||||
{
|
||||
return jobDetailId;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setTaskNo(String taskNo)
|
||||
{
|
||||
this.taskNo = taskNo;
|
||||
}
|
||||
|
||||
public String getTaskNo()
|
||||
{
|
||||
return taskNo;
|
||||
}
|
||||
|
||||
public void setTrayCode(String trayCode)
|
||||
{
|
||||
this.trayCode = trayCode;
|
||||
}
|
||||
|
||||
public String getTrayCode()
|
||||
{
|
||||
return trayCode;
|
||||
}
|
||||
|
||||
public void setRoadwayId(String roadwayId)
|
||||
{
|
||||
this.roadwayId = roadwayId;
|
||||
}
|
||||
|
||||
public String getRoadwayId()
|
||||
{
|
||||
return roadwayId;
|
||||
}
|
||||
|
||||
public void setCargoSpaceId(String cargoSpaceId)
|
||||
{
|
||||
this.cargoSpaceId = cargoSpaceId;
|
||||
}
|
||||
|
||||
public String getCargoSpaceId()
|
||||
{
|
||||
return cargoSpaceId;
|
||||
}
|
||||
|
||||
public void setCargoSpaceName(String cargoSpaceName)
|
||||
{
|
||||
this.cargoSpaceName = cargoSpaceName;
|
||||
}
|
||||
|
||||
public String getCargoSpaceName()
|
||||
{
|
||||
return cargoSpaceName;
|
||||
}
|
||||
|
||||
public void setThePlatoon(Long thePlatoon)
|
||||
{
|
||||
this.thePlatoon = thePlatoon;
|
||||
}
|
||||
|
||||
public Long getThePlatoon()
|
||||
{
|
||||
return thePlatoon;
|
||||
}
|
||||
|
||||
public void setTheColumn(Long theColumn)
|
||||
{
|
||||
this.theColumn = theColumn;
|
||||
}
|
||||
|
||||
public Long getTheColumn()
|
||||
{
|
||||
return theColumn;
|
||||
}
|
||||
|
||||
public void setTheFloor(Long theFloor)
|
||||
{
|
||||
this.theFloor = theFloor;
|
||||
}
|
||||
|
||||
public Long getTheFloor()
|
||||
{
|
||||
return theFloor;
|
||||
}
|
||||
|
||||
public void setPriority(Long priority)
|
||||
{
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
public Long getPriority()
|
||||
{
|
||||
return priority;
|
||||
}
|
||||
|
||||
public void setExecutionPhase(String executionPhase)
|
||||
{
|
||||
this.executionPhase = executionPhase;
|
||||
}
|
||||
|
||||
public String getExecutionPhase()
|
||||
{
|
||||
return executionPhase;
|
||||
}
|
||||
|
||||
public void setInOrOut(String inOrOut)
|
||||
{
|
||||
this.inOrOut = inOrOut;
|
||||
}
|
||||
|
||||
public String getInOrOut()
|
||||
{
|
||||
return inOrOut;
|
||||
}
|
||||
|
||||
public void setExitId(String exitId)
|
||||
{
|
||||
this.exitId = exitId;
|
||||
}
|
||||
|
||||
public String getExitId()
|
||||
{
|
||||
return exitId;
|
||||
}
|
||||
|
||||
public void setProductId(String productId)
|
||||
{
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getProductId()
|
||||
{
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setLotNo(String lotNo)
|
||||
{
|
||||
this.lotNo = lotNo;
|
||||
}
|
||||
|
||||
public String getLotNo()
|
||||
{
|
||||
return lotNo;
|
||||
}
|
||||
|
||||
public void setStackingId(String stackingId)
|
||||
{
|
||||
this.stackingId = stackingId;
|
||||
}
|
||||
|
||||
public String getStackingId()
|
||||
{
|
||||
return stackingId;
|
||||
}
|
||||
|
||||
public void setStockStatus(String stockStatus)
|
||||
{
|
||||
this.stockStatus = stockStatus;
|
||||
}
|
||||
|
||||
public String getStockStatus()
|
||||
{
|
||||
return stockStatus;
|
||||
}
|
||||
|
||||
public void setOutQuantity(String outQuantity)
|
||||
{
|
||||
this.outQuantity = outQuantity;
|
||||
}
|
||||
|
||||
public String getOutQuantity()
|
||||
{
|
||||
return outQuantity;
|
||||
}
|
||||
|
||||
public void setGiveNum(String giveNum)
|
||||
{
|
||||
this.giveNum = giveNum;
|
||||
}
|
||||
|
||||
public String getGiveNum()
|
||||
{
|
||||
return giveNum;
|
||||
}
|
||||
|
||||
public void setInOrOutId(String inOrOutId)
|
||||
{
|
||||
this.inOrOutId = inOrOutId;
|
||||
}
|
||||
|
||||
public String getInOrOutId()
|
||||
{
|
||||
return inOrOutId;
|
||||
}
|
||||
|
||||
public void setInOrOutDId(String inOrOutDId)
|
||||
{
|
||||
this.inOrOutDId = inOrOutDId;
|
||||
}
|
||||
|
||||
public String getInOrOutDId()
|
||||
{
|
||||
return inOrOutDId;
|
||||
}
|
||||
|
||||
public void setStartTime(String startTime)
|
||||
{
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public String getStartTime()
|
||||
{
|
||||
return startTime;
|
||||
}
|
||||
|
||||
public void setFinishTime(String finishTime)
|
||||
{
|
||||
this.finishTime = finishTime;
|
||||
}
|
||||
|
||||
public String getFinishTime()
|
||||
{
|
||||
return finishTime;
|
||||
}
|
||||
|
||||
public void setWarehouseId(String warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public String getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
|
||||
public void setProductName(String productName)
|
||||
{
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getProductName()
|
||||
{
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setSpec(String spec)
|
||||
{
|
||||
this.spec = spec;
|
||||
}
|
||||
|
||||
public String getSpec()
|
||||
{
|
||||
return spec;
|
||||
}
|
||||
|
||||
public void setCargoNo(String cargoNo)
|
||||
{
|
||||
this.cargoNo = cargoNo;
|
||||
}
|
||||
|
||||
public String getCargoNo()
|
||||
{
|
||||
return cargoNo;
|
||||
}
|
||||
|
||||
public void setUnit(String unit)
|
||||
{
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getUnit()
|
||||
{
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setCustomerName(String customerName)
|
||||
{
|
||||
this.customerName = customerName;
|
||||
}
|
||||
|
||||
public String getCustomerName()
|
||||
{
|
||||
return customerName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("jobId", getJobId())
|
||||
.append("jobDetailId", getJobDetailId())
|
||||
.append("status", getStatus())
|
||||
.append("taskNo", getTaskNo())
|
||||
.append("trayCode", getTrayCode())
|
||||
.append("roadwayId", getRoadwayId())
|
||||
.append("cargoSpaceId", getCargoSpaceId())
|
||||
.append("cargoSpaceName", getCargoSpaceName())
|
||||
.append("thePlatoon", getThePlatoon())
|
||||
.append("theColumn", getTheColumn())
|
||||
.append("theFloor", getTheFloor())
|
||||
.append("priority", getPriority())
|
||||
.append("executionPhase", getExecutionPhase())
|
||||
.append("inOrOut", getInOrOut())
|
||||
.append("exitId", getExitId())
|
||||
.append("productId", getProductId())
|
||||
.append("lotNo", getLotNo())
|
||||
.append("stackingId", getStackingId())
|
||||
.append("stockStatus", getStockStatus())
|
||||
.append("outQuantity", getOutQuantity())
|
||||
.append("giveNum", getGiveNum())
|
||||
.append("inOrOutId", getInOrOutId())
|
||||
.append("inOrOutDId", getInOrOutDId())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("startTime", getStartTime())
|
||||
.append("finishTime", getFinishTime())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("productName", getProductName())
|
||||
.append("spec", getSpec())
|
||||
.append("cargoNo", getCargoNo())
|
||||
.append("unit", getUnit())
|
||||
.append("customerName", getCustomerName())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewOutJobFlow.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewOutJobFlow.domain.ViewOutJobFlow;
|
||||
|
||||
/**
|
||||
* 出库做业务流水Mapper接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public interface ViewOutJobFlowMapper
|
||||
{
|
||||
/**
|
||||
* 查询出库做业务流水
|
||||
*
|
||||
* @param jobId 出库做业务流水主键
|
||||
* @return 出库做业务流水
|
||||
*/
|
||||
public ViewOutJobFlow selectViewOutJobFlowByJobId(String jobId);
|
||||
|
||||
/**
|
||||
* 查询出库做业务流水列表
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 出库做业务流水集合
|
||||
*/
|
||||
public List<ViewOutJobFlow> selectViewOutJobFlowList(ViewOutJobFlow viewOutJobFlow);
|
||||
|
||||
/**
|
||||
* 新增出库做业务流水
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewOutJobFlow(ViewOutJobFlow viewOutJobFlow);
|
||||
|
||||
/**
|
||||
* 修改出库做业务流水
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewOutJobFlow(ViewOutJobFlow viewOutJobFlow);
|
||||
|
||||
/**
|
||||
* 删除出库做业务流水
|
||||
*
|
||||
* @param jobId 出库做业务流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewOutJobFlowByJobId(String jobId);
|
||||
|
||||
/**
|
||||
* 批量删除出库做业务流水
|
||||
*
|
||||
* @param jobIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewOutJobFlowByJobIds(String[] jobIds);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.search.ViewOutJobFlow.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.search.ViewOutJobFlow.domain.ViewOutJobFlow;
|
||||
|
||||
/**
|
||||
* 出库做业务流水Service接口
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
public interface IViewOutJobFlowService
|
||||
{
|
||||
/**
|
||||
* 查询出库做业务流水
|
||||
*
|
||||
* @param jobId 出库做业务流水主键
|
||||
* @return 出库做业务流水
|
||||
*/
|
||||
public ViewOutJobFlow selectViewOutJobFlowByJobId(String jobId);
|
||||
|
||||
/**
|
||||
* 查询出库做业务流水列表
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 出库做业务流水集合
|
||||
*/
|
||||
public List<ViewOutJobFlow> selectViewOutJobFlowList(ViewOutJobFlow viewOutJobFlow);
|
||||
|
||||
/**
|
||||
* 新增出库做业务流水
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewOutJobFlow(ViewOutJobFlow viewOutJobFlow);
|
||||
|
||||
/**
|
||||
* 修改出库做业务流水
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewOutJobFlow(ViewOutJobFlow viewOutJobFlow);
|
||||
|
||||
/**
|
||||
* 批量删除出库做业务流水
|
||||
*
|
||||
* @param jobIds 需要删除的出库做业务流水主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewOutJobFlowByJobIds(String[] jobIds);
|
||||
|
||||
/**
|
||||
* 删除出库做业务流水信息
|
||||
*
|
||||
* @param jobId 出库做业务流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewOutJobFlowByJobId(String jobId);
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.ruoyi.search.ViewOutJobFlow.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.search.ViewOutJobFlow.mapper.ViewOutJobFlowMapper;
|
||||
import com.ruoyi.search.ViewOutJobFlow.domain.ViewOutJobFlow;
|
||||
import com.ruoyi.search.ViewOutJobFlow.service.IViewOutJobFlowService;
|
||||
|
||||
/**
|
||||
* 出库做业务流水Service业务层处理
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-05-29
|
||||
*/
|
||||
@Service
|
||||
public class ViewOutJobFlowServiceImpl implements IViewOutJobFlowService
|
||||
{
|
||||
@Autowired
|
||||
private ViewOutJobFlowMapper viewOutJobFlowMapper;
|
||||
|
||||
/**
|
||||
* 查询出库做业务流水
|
||||
*
|
||||
* @param jobId 出库做业务流水主键
|
||||
* @return 出库做业务流水
|
||||
*/
|
||||
@Override
|
||||
public ViewOutJobFlow selectViewOutJobFlowByJobId(String jobId)
|
||||
{
|
||||
return viewOutJobFlowMapper.selectViewOutJobFlowByJobId(jobId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询出库做业务流水列表
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 出库做业务流水
|
||||
*/
|
||||
@Override
|
||||
public List<ViewOutJobFlow> selectViewOutJobFlowList(ViewOutJobFlow viewOutJobFlow)
|
||||
{
|
||||
return viewOutJobFlowMapper.selectViewOutJobFlowList(viewOutJobFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增出库做业务流水
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertViewOutJobFlow(ViewOutJobFlow viewOutJobFlow)
|
||||
{
|
||||
viewOutJobFlow.setCreateTime(DateUtils.getNowDate());
|
||||
return viewOutJobFlowMapper.insertViewOutJobFlow(viewOutJobFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改出库做业务流水
|
||||
*
|
||||
* @param viewOutJobFlow 出库做业务流水
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateViewOutJobFlow(ViewOutJobFlow viewOutJobFlow)
|
||||
{
|
||||
return viewOutJobFlowMapper.updateViewOutJobFlow(viewOutJobFlow);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除出库做业务流水
|
||||
*
|
||||
* @param jobIds 需要删除的出库做业务流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewOutJobFlowByJobIds(String[] jobIds)
|
||||
{
|
||||
return viewOutJobFlowMapper.deleteViewOutJobFlowByJobIds(jobIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除出库做业务流水信息
|
||||
*
|
||||
* @param jobId 出库做业务流水主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewOutJobFlowByJobId(String jobId)
|
||||
{
|
||||
return viewOutJobFlowMapper.deleteViewOutJobFlowByJobId(jobId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.search.ViewFlatWarehouseInFlow.mapper.ViewFlatWarehouseInFlowMapper">
|
||||
|
||||
<resultMap type="ViewFlatWarehouseInFlow" id="ViewFlatWarehouseInFlowResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="inOrOut" column="in_or_out" />
|
||||
<result property="inOrOutSotckId" column="in_or_out_sotck_id" />
|
||||
<result property="inOrOutSotckDetailId" column="in_or_out_sotck_detail_id" />
|
||||
<result property="productGuid" column="product_guid" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createMan" column="create_man" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="address" column="address" />
|
||||
<result property="cDesc" column="c_desc" />
|
||||
<result property="warehouseKind" column="warehouse_kind" />
|
||||
<result property="warehouseType" column="warehouse_type" />
|
||||
<result property="isCurrent" column="is_current" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="price" column="price" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewFlatWarehouseInFlowVo">
|
||||
select id, in_or_out, in_or_out_sotck_id, in_or_out_sotck_detail_id, product_guid, product_id, quantity, create_time, create_man, warehouse_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, product_name, spec, cargo_no, unit, price, remark from view_flat_warehouse_in_flow
|
||||
</sql>
|
||||
|
||||
<select id="selectViewFlatWarehouseInFlowList" parameterType="ViewFlatWarehouseInFlow" resultMap="ViewFlatWarehouseInFlowResult">
|
||||
<include refid="selectViewFlatWarehouseInFlowVo"/>
|
||||
<where>
|
||||
<if test="inOrOut != null and inOrOut != ''"> and in_or_out like concat('%', #{inOrOut}, '%')</if>
|
||||
<if test="inOrOutSotckId != null and inOrOutSotckId != ''"> and in_or_out_sotck_id like concat('%', #{inOrOutSotckId}, '%')</if>
|
||||
<if test="inOrOutSotckDetailId != null and inOrOutSotckDetailId != ''"> and in_or_out_sotck_detail_id like concat('%', #{inOrOutSotckDetailId}, '%')</if>
|
||||
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="quantity != null and quantity != ''"> and quantity like concat('%', #{quantity}, '%')</if>
|
||||
<if test="createMan != null and createMan != ''"> and create_man like concat('%', #{createMan}, '%')</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
|
||||
<if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
|
||||
<if test="cDesc != null and cDesc != ''"> and c_desc like concat('%', #{cDesc}, '%')</if>
|
||||
<if test="warehouseKind != null and warehouseKind != ''"> and warehouse_kind like concat('%', #{warehouseKind}, '%')</if>
|
||||
<if test="warehouseType != null and warehouseType != ''"> and warehouse_type like concat('%', #{warehouseType}, '%')</if>
|
||||
<if test="isCurrent != null and isCurrent != ''"> and is_current like concat('%', #{isCurrent}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
|
||||
<if test="cargoNo != null and cargoNo != ''"> and cargo_no like concat('%', #{cargoNo}, '%')</if>
|
||||
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
||||
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectViewFlatWarehouseInFlowById" parameterType="Long" resultMap="ViewFlatWarehouseInFlowResult">
|
||||
<include refid="selectViewFlatWarehouseInFlowVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertViewFlatWarehouseInFlow" parameterType="ViewFlatWarehouseInFlow">
|
||||
insert into view_flat_warehouse_in_flow
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="inOrOut != null">in_or_out,</if>
|
||||
<if test="inOrOutSotckId != null">in_or_out_sotck_id,</if>
|
||||
<if test="inOrOutSotckDetailId != null">in_or_out_sotck_detail_id,</if>
|
||||
<if test="productGuid != null">product_guid,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="quantity != null">quantity,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createMan != null">create_man,</if>
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
<if test="warehouseName != null">warehouse_name,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="cDesc != null">c_desc,</if>
|
||||
<if test="warehouseKind != null">warehouse_kind,</if>
|
||||
<if test="warehouseType != null">warehouse_type,</if>
|
||||
<if test="isCurrent != null">is_current,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="inOrOut != null">#{inOrOut},</if>
|
||||
<if test="inOrOutSotckId != null">#{inOrOutSotckId},</if>
|
||||
<if test="inOrOutSotckDetailId != null">#{inOrOutSotckDetailId},</if>
|
||||
<if test="productGuid != null">#{productGuid},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="quantity != null">#{quantity},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createMan != null">#{createMan},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="warehouseName != null">#{warehouseName},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="cDesc != null">#{cDesc},</if>
|
||||
<if test="warehouseKind != null">#{warehouseKind},</if>
|
||||
<if test="warehouseType != null">#{warehouseType},</if>
|
||||
<if test="isCurrent != null">#{isCurrent},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateViewFlatWarehouseInFlow" parameterType="ViewFlatWarehouseInFlow">
|
||||
update view_flat_warehouse_in_flow
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="inOrOut != null">in_or_out = #{inOrOut},</if>
|
||||
<if test="inOrOutSotckId != null">in_or_out_sotck_id = #{inOrOutSotckId},</if>
|
||||
<if test="inOrOutSotckDetailId != null">in_or_out_sotck_detail_id = #{inOrOutSotckDetailId},</if>
|
||||
<if test="productGuid != null">product_guid = #{productGuid},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="quantity != null">quantity = #{quantity},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createMan != null">create_man = #{createMan},</if>
|
||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||
<if test="warehouseName != null">warehouse_name = #{warehouseName},</if>
|
||||
<if test="address != null">address = #{address},</if>
|
||||
<if test="cDesc != null">c_desc = #{cDesc},</if>
|
||||
<if test="warehouseKind != null">warehouse_kind = #{warehouseKind},</if>
|
||||
<if test="warehouseType != null">warehouse_type = #{warehouseType},</if>
|
||||
<if test="isCurrent != null">is_current = #{isCurrent},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteViewFlatWarehouseInFlowById" parameterType="Long">
|
||||
delete from view_flat_warehouse_in_flow where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteViewFlatWarehouseInFlowByIds" parameterType="String">
|
||||
delete from view_flat_warehouse_in_flow where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,156 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.search.ViewFlatWarehouseOutFlow.mapper.ViewFlatWarehouseOutFlowMapper">
|
||||
|
||||
<resultMap type="ViewFlatWarehouseOutFlow" id="ViewFlatWarehouseOutFlowResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="inOrOut" column="in_or_out" />
|
||||
<result property="inOrOutSotckId" column="in_or_out_sotck_id" />
|
||||
<result property="inOrOutSotckDetailId" column="in_or_out_sotck_detail_id" />
|
||||
<result property="productGuid" column="product_guid" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createMan" column="create_man" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="address" column="address" />
|
||||
<result property="cDesc" column="c_desc" />
|
||||
<result property="warehouseKind" column="warehouse_kind" />
|
||||
<result property="warehouseType" column="warehouse_type" />
|
||||
<result property="isCurrent" column="is_current" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="price" column="price" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewFlatWarehouseOutFlowVo">
|
||||
select id, in_or_out, in_or_out_sotck_id, in_or_out_sotck_detail_id, product_guid, product_id, quantity, create_time, create_man, warehouse_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, product_name, spec, cargo_no, unit, price, remark from view_flat_warehouse_out_flow
|
||||
</sql>
|
||||
|
||||
<select id="selectViewFlatWarehouseOutFlowList" parameterType="ViewFlatWarehouseOutFlow" resultMap="ViewFlatWarehouseOutFlowResult">
|
||||
<include refid="selectViewFlatWarehouseOutFlowVo"/>
|
||||
<where>
|
||||
<if test="inOrOut != null and inOrOut != ''"> and in_or_out like concat('%', #{inOrOut}, '%')</if>
|
||||
<if test="inOrOutSotckId != null and inOrOutSotckId != ''"> and in_or_out_sotck_id like concat('%', #{inOrOutSotckId}, '%')</if>
|
||||
<if test="inOrOutSotckDetailId != null and inOrOutSotckDetailId != ''"> and in_or_out_sotck_detail_id like concat('%', #{inOrOutSotckDetailId}, '%')</if>
|
||||
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="quantity != null and quantity != ''"> and quantity like concat('%', #{quantity}, '%')</if>
|
||||
<if test="createMan != null and createMan != ''"> and create_man like concat('%', #{createMan}, '%')</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
|
||||
<if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
|
||||
<if test="cDesc != null and cDesc != ''"> and c_desc like concat('%', #{cDesc}, '%')</if>
|
||||
<if test="warehouseKind != null and warehouseKind != ''"> and warehouse_kind like concat('%', #{warehouseKind}, '%')</if>
|
||||
<if test="warehouseType != null and warehouseType != ''"> and warehouse_type like concat('%', #{warehouseType}, '%')</if>
|
||||
<if test="isCurrent != null and isCurrent != ''"> and is_current like concat('%', #{isCurrent}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
|
||||
<if test="cargoNo != null and cargoNo != ''"> and cargo_no like concat('%', #{cargoNo}, '%')</if>
|
||||
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
||||
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectViewFlatWarehouseOutFlowById" parameterType="Long" resultMap="ViewFlatWarehouseOutFlowResult">
|
||||
<include refid="selectViewFlatWarehouseOutFlowVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertViewFlatWarehouseOutFlow" parameterType="ViewFlatWarehouseOutFlow">
|
||||
insert into view_flat_warehouse_out_flow
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="inOrOut != null">in_or_out,</if>
|
||||
<if test="inOrOutSotckId != null">in_or_out_sotck_id,</if>
|
||||
<if test="inOrOutSotckDetailId != null">in_or_out_sotck_detail_id,</if>
|
||||
<if test="productGuid != null">product_guid,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="quantity != null">quantity,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createMan != null">create_man,</if>
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
<if test="warehouseName != null">warehouse_name,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="cDesc != null">c_desc,</if>
|
||||
<if test="warehouseKind != null">warehouse_kind,</if>
|
||||
<if test="warehouseType != null">warehouse_type,</if>
|
||||
<if test="isCurrent != null">is_current,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="inOrOut != null">#{inOrOut},</if>
|
||||
<if test="inOrOutSotckId != null">#{inOrOutSotckId},</if>
|
||||
<if test="inOrOutSotckDetailId != null">#{inOrOutSotckDetailId},</if>
|
||||
<if test="productGuid != null">#{productGuid},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="quantity != null">#{quantity},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createMan != null">#{createMan},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="warehouseName != null">#{warehouseName},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="cDesc != null">#{cDesc},</if>
|
||||
<if test="warehouseKind != null">#{warehouseKind},</if>
|
||||
<if test="warehouseType != null">#{warehouseType},</if>
|
||||
<if test="isCurrent != null">#{isCurrent},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateViewFlatWarehouseOutFlow" parameterType="ViewFlatWarehouseOutFlow">
|
||||
update view_flat_warehouse_out_flow
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="inOrOut != null">in_or_out = #{inOrOut},</if>
|
||||
<if test="inOrOutSotckId != null">in_or_out_sotck_id = #{inOrOutSotckId},</if>
|
||||
<if test="inOrOutSotckDetailId != null">in_or_out_sotck_detail_id = #{inOrOutSotckDetailId},</if>
|
||||
<if test="productGuid != null">product_guid = #{productGuid},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="quantity != null">quantity = #{quantity},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createMan != null">create_man = #{createMan},</if>
|
||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||
<if test="warehouseName != null">warehouse_name = #{warehouseName},</if>
|
||||
<if test="address != null">address = #{address},</if>
|
||||
<if test="cDesc != null">c_desc = #{cDesc},</if>
|
||||
<if test="warehouseKind != null">warehouse_kind = #{warehouseKind},</if>
|
||||
<if test="warehouseType != null">warehouse_type = #{warehouseType},</if>
|
||||
<if test="isCurrent != null">is_current = #{isCurrent},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteViewFlatWarehouseOutFlowById" parameterType="Long">
|
||||
delete from view_flat_warehouse_out_flow where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteViewFlatWarehouseOutFlowByIds" parameterType="String">
|
||||
delete from view_flat_warehouse_out_flow where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,209 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.search.ViewOutJobFlow.mapper.ViewOutJobFlowMapper">
|
||||
|
||||
<resultMap type="ViewOutJobFlow" id="ViewOutJobFlowResult">
|
||||
<result property="jobId" column="job_id" />
|
||||
<result property="jobDetailId" column="job_detail_id" />
|
||||
<result property="status" column="status" />
|
||||
<result property="taskNo" column="task_no" />
|
||||
<result property="trayCode" column="tray_code" />
|
||||
<result property="roadwayId" column="roadway_id" />
|
||||
<result property="cargoSpaceId" column="cargo_space_id" />
|
||||
<result property="cargoSpaceName" column="cargo_space_name" />
|
||||
<result property="thePlatoon" column="the_platoon" />
|
||||
<result property="theColumn" column="the_column" />
|
||||
<result property="theFloor" column="the_floor" />
|
||||
<result property="priority" column="priority" />
|
||||
<result property="executionPhase" column="execution_phase" />
|
||||
<result property="inOrOut" column="in_or_out" />
|
||||
<result property="exitId" column="exit_id" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="lotNo" column="lot_no" />
|
||||
<result property="stackingId" column="stacking_id" />
|
||||
<result property="stockStatus" column="stock_status" />
|
||||
<result property="outQuantity" column="out_quantity" />
|
||||
<result property="giveNum" column="give_num" />
|
||||
<result property="inOrOutId" column="in_or_out_id" />
|
||||
<result property="inOrOutDId" column="in_or_out_d_id" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="finishTime" column="finish_time" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewOutJobFlowVo">
|
||||
select job_id, job_detail_id, status, task_no, tray_code, roadway_id, cargo_space_id, cargo_space_name, the_platoon, the_column, the_floor, priority, execution_phase, in_or_out, exit_id, product_id, lot_no, stacking_id, stock_status, out_quantity, give_num, in_or_out_id, in_or_out_d_id, create_time, start_time, finish_time, warehouse_id, product_name, spec, cargo_no, unit, customer_name from view_out_job_flow
|
||||
</sql>
|
||||
|
||||
<select id="selectViewOutJobFlowList" parameterType="ViewOutJobFlow" resultMap="ViewOutJobFlowResult">
|
||||
<include refid="selectViewOutJobFlowVo"/>
|
||||
<where>
|
||||
<if test="jobId != null and jobId != ''"> and job_id like concat('%', #{jobId}, '%')</if>
|
||||
<if test="jobDetailId != null and jobDetailId != ''"> and job_detail_id like concat('%', #{jobDetailId}, '%')</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="taskNo != null and taskNo != ''"> and task_no like concat('%', #{taskNo}, '%')</if>
|
||||
<if test="trayCode != null and trayCode != ''"> and tray_code like concat('%', #{trayCode}, '%')</if>
|
||||
<if test="roadwayId != null and roadwayId != ''"> and roadway_id like concat('%', #{roadwayId}, '%')</if>
|
||||
<if test="cargoSpaceId != null and cargoSpaceId != ''"> and cargo_space_id like concat('%', #{cargoSpaceId}, '%')</if>
|
||||
<if test="cargoSpaceName != null and cargoSpaceName != ''"> and cargo_space_name like concat('%', #{cargoSpaceName}, '%')</if>
|
||||
<if test="thePlatoon != null "> and the_platoon like concat('%', #{thePlatoon}, '%')</if>
|
||||
<if test="theColumn != null "> and the_column like concat('%', #{theColumn}, '%')</if>
|
||||
<if test="theFloor != null "> and the_floor like concat('%', #{theFloor}, '%')</if>
|
||||
<if test="priority != null "> and priority like concat('%', #{priority}, '%')</if>
|
||||
<if test="executionPhase != null and executionPhase != ''"> and execution_phase = #{executionPhase}</if>
|
||||
<if test="inOrOut != null and inOrOut != ''"> and in_or_out like concat('%', #{inOrOut}, '%')</if>
|
||||
<if test="exitId != null and exitId != ''"> and exit_id like concat('%', #{exitId}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="lotNo != null and lotNo != ''"> and lot_no like concat('%', #{lotNo}, '%')</if>
|
||||
<if test="stackingId != null and stackingId != ''"> and stacking_id like concat('%', #{stackingId}, '%')</if>
|
||||
<if test="stockStatus != null and stockStatus != ''"> and stock_status = #{stockStatus}</if>
|
||||
<if test="outQuantity != null and outQuantity != ''"> and out_quantity like concat('%', #{outQuantity}, '%')</if>
|
||||
<if test="giveNum != null and giveNum != ''"> and give_num like concat('%', #{giveNum}, '%')</if>
|
||||
<if test="inOrOutId != null and inOrOutId != ''"> and in_or_out_id like concat('%', #{inOrOutId}, '%')</if>
|
||||
<if test="inOrOutDId != null and inOrOutDId != ''"> and in_or_out_d_id like concat('%', #{inOrOutDId}, '%')</if>
|
||||
<if test="createTime != null and createTime != ''"> and create_time like concat('%', #{createTime}, '%')</if>
|
||||
<if test="startTime != null and startTime != ''"> and start_time like concat('%', #{startTime}, '%')</if>
|
||||
<if test="finishTime != null and finishTime != ''"> and finish_time like concat('%', #{finishTime}, '%')</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
|
||||
<if test="cargoNo != null and cargoNo != ''"> and cargo_no like concat('%', #{cargoNo}, '%')</if>
|
||||
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectViewOutJobFlowByJobId" parameterType="String" resultMap="ViewOutJobFlowResult">
|
||||
<include refid="selectViewOutJobFlowVo"/>
|
||||
where job_id = #{jobId}
|
||||
</select>
|
||||
|
||||
<insert id="insertViewOutJobFlow" parameterType="ViewOutJobFlow">
|
||||
insert into view_out_job_flow
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="jobId != null and jobId != ''">job_id,</if>
|
||||
<if test="jobDetailId != null">job_detail_id,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="taskNo != null">task_no,</if>
|
||||
<if test="trayCode != null">tray_code,</if>
|
||||
<if test="roadwayId != null">roadway_id,</if>
|
||||
<if test="cargoSpaceId != null">cargo_space_id,</if>
|
||||
<if test="cargoSpaceName != null">cargo_space_name,</if>
|
||||
<if test="thePlatoon != null">the_platoon,</if>
|
||||
<if test="theColumn != null">the_column,</if>
|
||||
<if test="theFloor != null">the_floor,</if>
|
||||
<if test="priority != null">priority,</if>
|
||||
<if test="executionPhase != null">execution_phase,</if>
|
||||
<if test="inOrOut != null">in_or_out,</if>
|
||||
<if test="exitId != null">exit_id,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="lotNo != null">lot_no,</if>
|
||||
<if test="stackingId != null">stacking_id,</if>
|
||||
<if test="stockStatus != null">stock_status,</if>
|
||||
<if test="outQuantity != null">out_quantity,</if>
|
||||
<if test="giveNum != null">give_num,</if>
|
||||
<if test="inOrOutId != null">in_or_out_id,</if>
|
||||
<if test="inOrOutDId != null">in_or_out_d_id,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="startTime != null">start_time,</if>
|
||||
<if test="finishTime != null">finish_time,</if>
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="customerName != null">customer_name,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="jobId != null and jobId != ''">#{jobId},</if>
|
||||
<if test="jobDetailId != null">#{jobDetailId},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="taskNo != null">#{taskNo},</if>
|
||||
<if test="trayCode != null">#{trayCode},</if>
|
||||
<if test="roadwayId != null">#{roadwayId},</if>
|
||||
<if test="cargoSpaceId != null">#{cargoSpaceId},</if>
|
||||
<if test="cargoSpaceName != null">#{cargoSpaceName},</if>
|
||||
<if test="thePlatoon != null">#{thePlatoon},</if>
|
||||
<if test="theColumn != null">#{theColumn},</if>
|
||||
<if test="theFloor != null">#{theFloor},</if>
|
||||
<if test="priority != null">#{priority},</if>
|
||||
<if test="executionPhase != null">#{executionPhase},</if>
|
||||
<if test="inOrOut != null">#{inOrOut},</if>
|
||||
<if test="exitId != null">#{exitId},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="lotNo != null">#{lotNo},</if>
|
||||
<if test="stackingId != null">#{stackingId},</if>
|
||||
<if test="stockStatus != null">#{stockStatus},</if>
|
||||
<if test="outQuantity != null">#{outQuantity},</if>
|
||||
<if test="giveNum != null">#{giveNum},</if>
|
||||
<if test="inOrOutId != null">#{inOrOutId},</if>
|
||||
<if test="inOrOutDId != null">#{inOrOutDId},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="finishTime != null">#{finishTime},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="customerName != null">#{customerName},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateViewOutJobFlow" parameterType="ViewOutJobFlow">
|
||||
update view_out_job_flow
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="jobDetailId != null">job_detail_id = #{jobDetailId},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="taskNo != null">task_no = #{taskNo},</if>
|
||||
<if test="trayCode != null">tray_code = #{trayCode},</if>
|
||||
<if test="roadwayId != null">roadway_id = #{roadwayId},</if>
|
||||
<if test="cargoSpaceId != null">cargo_space_id = #{cargoSpaceId},</if>
|
||||
<if test="cargoSpaceName != null">cargo_space_name = #{cargoSpaceName},</if>
|
||||
<if test="thePlatoon != null">the_platoon = #{thePlatoon},</if>
|
||||
<if test="theColumn != null">the_column = #{theColumn},</if>
|
||||
<if test="theFloor != null">the_floor = #{theFloor},</if>
|
||||
<if test="priority != null">priority = #{priority},</if>
|
||||
<if test="executionPhase != null">execution_phase = #{executionPhase},</if>
|
||||
<if test="inOrOut != null">in_or_out = #{inOrOut},</if>
|
||||
<if test="exitId != null">exit_id = #{exitId},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="lotNo != null">lot_no = #{lotNo},</if>
|
||||
<if test="stackingId != null">stacking_id = #{stackingId},</if>
|
||||
<if test="stockStatus != null">stock_status = #{stockStatus},</if>
|
||||
<if test="outQuantity != null">out_quantity = #{outQuantity},</if>
|
||||
<if test="giveNum != null">give_num = #{giveNum},</if>
|
||||
<if test="inOrOutId != null">in_or_out_id = #{inOrOutId},</if>
|
||||
<if test="inOrOutDId != null">in_or_out_d_id = #{inOrOutDId},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="startTime != null">start_time = #{startTime},</if>
|
||||
<if test="finishTime != null">finish_time = #{finishTime},</if>
|
||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="customerName != null">customer_name = #{customerName},</if>
|
||||
</trim>
|
||||
where job_id = #{jobId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteViewOutJobFlowByJobId" parameterType="String">
|
||||
delete from view_out_job_flow where job_id = #{jobId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteViewOutJobFlowByJobIds" parameterType="String">
|
||||
delete from view_out_job_flow where job_id in
|
||||
<foreach item="jobId" collection="array" open="(" separator="," close=")">
|
||||
#{jobId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
50
ruoyi-ui/src/api/search/ViewFlatWarehouseInFlow.js
Normal file
50
ruoyi-ui/src/api/search/ViewFlatWarehouseInFlow.js
Normal file
@@ -0,0 +1,50 @@
|
||||
import request from '@/utils/request'
|
||||
// 查询仓库列表
|
||||
export function warehouseList() {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseInFlow/warehouseList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 查询平库入库流水列表
|
||||
export function listViewFlatWarehouseInFlow(query) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseInFlow/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询平库入库流水详细
|
||||
export function getViewFlatWarehouseInFlow(id) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseInFlow/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增平库入库流水
|
||||
export function addViewFlatWarehouseInFlow(data) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseInFlow',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改平库入库流水
|
||||
export function updateViewFlatWarehouseInFlow(data) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseInFlow',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除平库入库流水
|
||||
export function delViewFlatWarehouseInFlow(id) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseInFlow/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
51
ruoyi-ui/src/api/search/ViewFlatWarehouseOutFlow.js
Normal file
51
ruoyi-ui/src/api/search/ViewFlatWarehouseOutFlow.js
Normal file
@@ -0,0 +1,51 @@
|
||||
import request from '@/utils/request'
|
||||
// 查询仓库列表
|
||||
export function warehouseList() {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseInFlow/warehouseList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询平库出库流水列表
|
||||
export function listViewFlatWarehouseOutFlow(query) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseOutFlow/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询平库出库流水详细
|
||||
export function getViewFlatWarehouseOutFlow(id) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseOutFlow/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增平库出库流水
|
||||
export function addViewFlatWarehouseOutFlow(data) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseOutFlow',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改平库出库流水
|
||||
export function updateViewFlatWarehouseOutFlow(data) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseOutFlow',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除平库出库流水
|
||||
export function delViewFlatWarehouseOutFlow(id) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseOutFlow/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/search/ViewOutJobFlow.js
Normal file
44
ruoyi-ui/src/api/search/ViewOutJobFlow.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询出库做业流水列表
|
||||
export function listViewOutJobFlow(query) {
|
||||
return request({
|
||||
url: '/search/ViewOutJobFlow/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询出库做业流水详细
|
||||
export function getViewOutJobFlow(jobId) {
|
||||
return request({
|
||||
url: '/search/ViewOutJobFlow/' + jobId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增出库做业流水
|
||||
export function addViewOutJobFlow(data) {
|
||||
return request({
|
||||
url: '/search/ViewOutJobFlow',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改出库做业流水
|
||||
export function updateViewOutJobFlow(data) {
|
||||
return request({
|
||||
url: '/search/ViewOutJobFlow',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除出库做业流水
|
||||
export function delViewOutJobFlow(jobId) {
|
||||
return request({
|
||||
url: '/search/ViewOutJobFlow/' + jobId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
525
ruoyi-ui/src/views/search/ViewFlatWarehouseInFlow/index.vue
Normal file
525
ruoyi-ui/src/views/search/ViewFlatWarehouseInFlow/index.vue
Normal file
@@ -0,0 +1,525 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<!-- <el-form-item label="入出库类型" prop="inOrOut">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.inOrOut"-->
|
||||
<!-- placeholder="请输入入出库类型"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="入出库主单据ID" prop="inOrOutSotckId">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.inOrOutSotckId"-->
|
||||
<!-- placeholder="请输入入出库主单据ID"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="入出库主子单据ID" prop="inOrOutSotckDetailId">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.inOrOutSotckDetailId"-->
|
||||
<!-- placeholder="请输入入出库主子单据ID"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="物料GUID" prop="productGuid">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.productGuid"-->
|
||||
<!-- placeholder="请输入物料GUID"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="仓库" prop="warehouseId">
|
||||
<el-select v-model="queryParams.warehouseId" placeholder="请选择仓库" clearable>
|
||||
<el-option
|
||||
v-for="dict in warehouseOptions"
|
||||
:key="dict.warehouseId"
|
||||
:label="dict.warehouseName"
|
||||
:value="dict.warehouseId"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="物料ID" prop="productId">
|
||||
<el-input
|
||||
v-model="queryParams.productId"
|
||||
placeholder="请输入物料ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="数量" prop="quantity">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.quantity"-->
|
||||
<!-- placeholder="请输入数量"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="创建人" prop="createMan">
|
||||
<el-input
|
||||
v-model="queryParams.createMan"
|
||||
placeholder="请输入创建人"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="仓库" prop="warehouseId">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.warehouseId"-->
|
||||
<!-- placeholder="请输入仓库"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="仓库名称" prop="warehouseName">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.warehouseName"-->
|
||||
<!-- placeholder="请输入仓库名称"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="仓库地址" prop="address">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.address"-->
|
||||
<!-- placeholder="请输入仓库地址"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="仓库描述" prop="cDesc">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.cDesc"-->
|
||||
<!-- placeholder="请输入仓库描述"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="仓库级别" prop="warehouseKind">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.warehouseKind"-->
|
||||
<!-- placeholder="请输入仓库级别"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="是否可用" prop="isCurrent">
|
||||
<el-input
|
||||
v-model="queryParams.isCurrent"
|
||||
placeholder="请输入是否可用"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="物料名称" prop="productName">
|
||||
<el-input
|
||||
v-model="queryParams.productName"
|
||||
placeholder="请输入物料名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="规格" prop="spec">
|
||||
<el-input
|
||||
v-model="queryParams.spec"
|
||||
placeholder="请输入规格"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="品牌" prop="cargoNo">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.cargoNo"-->
|
||||
<!-- placeholder="请输入品牌"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="单位" prop="unit">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.unit"-->
|
||||
<!-- placeholder="请输入单位"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="价格" prop="price">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.price"-->
|
||||
<!-- placeholder="请输入价格"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="primary"-->
|
||||
<!-- plain-->
|
||||
<!-- icon="el-icon-plus"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- @click="handleAdd"-->
|
||||
<!-- v-hasPermi="['search:ViewFlatWarehouseInFlow:add']"-->
|
||||
<!-- >新增</el-button>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="success"-->
|
||||
<!-- plain-->
|
||||
<!-- icon="el-icon-edit"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- :disabled="single"-->
|
||||
<!-- @click="handleUpdate"-->
|
||||
<!-- v-hasPermi="['search:ViewFlatWarehouseInFlow:edit']"-->
|
||||
<!-- >修改</el-button>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="danger"-->
|
||||
<!-- plain-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- :disabled="multiple"-->
|
||||
<!-- @click="handleDelete"-->
|
||||
<!-- v-hasPermi="['search:ViewFlatWarehouseInFlow:remove']"-->
|
||||
<!-- >删除</el-button>-->
|
||||
<!-- </el-col>-->
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['search:ViewFlatWarehouseInFlow:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="ViewFlatWarehouseInFlowList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<!-- <el-table-column label="入出库类型" align="center" prop="inOrOut" />-->
|
||||
<!-- <el-table-column label="入出库主单据ID" align="center" prop="inOrOutSotckId" />-->
|
||||
<!-- <el-table-column label="入出库主子单据ID" align="center" prop="inOrOutSotckDetailId" />-->
|
||||
<!-- <el-table-column label="物料GUID" align="center" prop="productGuid" />-->
|
||||
<el-table-column label="创建人" align="center" prop="createMan" />
|
||||
<el-table-column label="物料ID" align="center" prop="productId" />
|
||||
<el-table-column label="物料名称" align="center" prop="productName" />
|
||||
<el-table-column label="数量" align="center" prop="quantity" />
|
||||
<el-table-column label="规格" align="center" prop="spec" />
|
||||
<el-table-column label="品牌" align="center" prop="cargoNo" />
|
||||
<el-table-column label="单位" align="center" prop="unit" />
|
||||
<el-table-column label="价格" align="center" prop="price" />
|
||||
<el-table-column label="描述" align="center" prop="remark" />
|
||||
<el-table-column label="仓库id" align="center" prop="warehouseId" />
|
||||
<el-table-column label="仓库名称" align="center" prop="warehouseName" />
|
||||
<el-table-column label="仓库地址" align="center" prop="address" />
|
||||
<el-table-column label="仓库描述" align="center" prop="cDesc" />
|
||||
<el-table-column label="仓库级别" align="center" prop="warehouseKind" />
|
||||
<el-table-column label="仓库类型" align="center" prop="warehouseType" />
|
||||
<el-table-column label="是否可用" align="center" prop="isCurrent" />
|
||||
|
||||
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-edit"-->
|
||||
<!-- @click="handleUpdate(scope.row)"-->
|
||||
<!-- v-hasPermi="['search:ViewFlatWarehouseInFlow:edit']"-->
|
||||
<!-- >修改</el-button>-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- @click="handleDelete(scope.row)"-->
|
||||
<!-- v-hasPermi="['search:ViewFlatWarehouseInFlow:remove']"-->
|
||||
<!-- >删除</el-button>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改平库入库流水对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="${comment}" prop="id">
|
||||
<el-input v-model="form.id" placeholder="请输入${comment}" />
|
||||
</el-form-item>
|
||||
<el-form-item label="入出库类型" prop="inOrOut">
|
||||
<el-input v-model="form.inOrOut" placeholder="请输入入出库类型" />
|
||||
</el-form-item>
|
||||
<el-form-item label="入出库主单据ID" prop="inOrOutSotckId">
|
||||
<el-input v-model="form.inOrOutSotckId" placeholder="请输入入出库主单据ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="入出库主子单据ID" prop="inOrOutSotckDetailId">
|
||||
<el-input v-model="form.inOrOutSotckDetailId" placeholder="请输入入出库主子单据ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料GUID" prop="productGuid">
|
||||
<el-input v-model="form.productGuid" placeholder="请输入物料GUID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料ID" prop="productId">
|
||||
<el-input v-model="form.productId" placeholder="请输入物料ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="数量" prop="quantity">
|
||||
<el-input v-model="form.quantity" placeholder="请输入数量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createMan">
|
||||
<el-input v-model="form.createMan" placeholder="请输入创建人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库id" prop="warehouseId">
|
||||
<el-input v-model="form.warehouseId" placeholder="请输入仓库id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库名称" prop="warehouseName">
|
||||
<el-input v-model="form.warehouseName" placeholder="请输入仓库名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库地址" prop="address">
|
||||
<el-input v-model="form.address" placeholder="请输入仓库地址" />
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库描述" prop="cDesc">
|
||||
<el-input v-model="form.cDesc" placeholder="请输入仓库描述" />
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库级别" prop="warehouseKind">
|
||||
<el-input v-model="form.warehouseKind" placeholder="请输入仓库级别" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否可用" prop="isCurrent">
|
||||
<el-input v-model="form.isCurrent" placeholder="请输入是否可用" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料名称" prop="productName">
|
||||
<el-input v-model="form.productName" placeholder="请输入物料名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="规格" prop="spec">
|
||||
<el-input v-model="form.spec" placeholder="请输入规格" />
|
||||
</el-form-item>
|
||||
<el-form-item label="品牌" prop="cargoNo">
|
||||
<el-input v-model="form.cargoNo" placeholder="请输入品牌" />
|
||||
</el-form-item>
|
||||
<el-form-item label="单位" prop="unit">
|
||||
<el-input v-model="form.unit" placeholder="请输入单位" />
|
||||
</el-form-item>
|
||||
<el-form-item label="价格" prop="price">
|
||||
<el-input v-model="form.price" placeholder="请输入价格" />
|
||||
</el-form-item>
|
||||
<el-form-item label="描述" prop="remark">
|
||||
<el-input v-model="form.remark" placeholder="请输入描述" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
listViewFlatWarehouseInFlow,
|
||||
getViewFlatWarehouseInFlow,
|
||||
delViewFlatWarehouseInFlow,
|
||||
addViewFlatWarehouseInFlow,
|
||||
updateViewFlatWarehouseInFlow,
|
||||
warehouseList
|
||||
} from "@/api/search/ViewFlatWarehouseInFlow"
|
||||
|
||||
export default {
|
||||
name: "ViewFlatWarehouseInFlow",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 平库入库流水表格数据
|
||||
ViewFlatWarehouseInFlowList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 仓库选项
|
||||
warehouseOptions: [],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
inOrOut: null,
|
||||
inOrOutSotckId: null,
|
||||
inOrOutSotckDetailId: null,
|
||||
productGuid: null,
|
||||
productId: null,
|
||||
quantity: null,
|
||||
createMan: null,
|
||||
warehouseId: null,
|
||||
warehouseName: null,
|
||||
address: null,
|
||||
cDesc: null,
|
||||
warehouseKind: null,
|
||||
warehouseType: null,
|
||||
isCurrent: null,
|
||||
productName: null,
|
||||
spec: null,
|
||||
cargoNo: null,
|
||||
unit: null,
|
||||
price: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
id: [
|
||||
{ required: true, message: "$comment不能为空", trigger: "blur" }
|
||||
],
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
this.getWarehouseList()
|
||||
},
|
||||
methods: {
|
||||
/** 查询仓库列表 */
|
||||
getWarehouseList() {
|
||||
warehouseList().then(response => {
|
||||
this.warehouseOptions = response.rows;
|
||||
});
|
||||
// this.warehouseOptions = [{warehouseId: "01", warehouseName: "仓库1"}, {warehouseId: "02", warehouseName: "仓库2"}];
|
||||
},
|
||||
/** 查询平库入库流水列表 */
|
||||
getList() {
|
||||
this.loading = true
|
||||
listViewFlatWarehouseInFlow(this.queryParams).then(response => {
|
||||
this.ViewFlatWarehouseInFlowList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
inOrOut: null,
|
||||
inOrOutSotckId: null,
|
||||
inOrOutSotckDetailId: null,
|
||||
productGuid: null,
|
||||
productId: null,
|
||||
quantity: null,
|
||||
createTime: null,
|
||||
createMan: null,
|
||||
warehouseId: null,
|
||||
warehouseName: null,
|
||||
address: null,
|
||||
cDesc: null,
|
||||
warehouseKind: null,
|
||||
warehouseType: null,
|
||||
isCurrent: null,
|
||||
productName: null,
|
||||
spec: null,
|
||||
cargoNo: null,
|
||||
unit: null,
|
||||
price: null,
|
||||
remark: null
|
||||
}
|
||||
this.resetForm("form")
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm")
|
||||
this.handleQuery()
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.title = "添加平库入库流水"
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset()
|
||||
const id = row.id || this.ids
|
||||
getViewFlatWarehouseInFlow(id).then(response => {
|
||||
this.form = response.data
|
||||
this.open = true
|
||||
this.title = "修改平库入库流水"
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateViewFlatWarehouseInFlow(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功")
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
} else {
|
||||
addViewFlatWarehouseInFlow(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功")
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids
|
||||
this.$modal.confirm('是否确认删除平库入库流水编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delViewFlatWarehouseInFlow(ids)
|
||||
}).then(() => {
|
||||
this.getList()
|
||||
this.$modal.msgSuccess("删除成功")
|
||||
}).catch(() => {})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('search/ViewFlatWarehouseInFlow/export', {
|
||||
...this.queryParams
|
||||
}, `ViewFlatWarehouseInFlow_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
519
ruoyi-ui/src/views/search/ViewFlatWarehouseOutFlow/index.vue
Normal file
519
ruoyi-ui/src/views/search/ViewFlatWarehouseOutFlow/index.vue
Normal file
@@ -0,0 +1,519 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="仓库" prop="warehouseId">
|
||||
<el-select v-model="queryParams.warehouseId" placeholder="请选择仓库" clearable>
|
||||
<el-option
|
||||
v-for="dict in warehouseOptions"
|
||||
:key="dict.warehouseId"
|
||||
:label="dict.warehouseName"
|
||||
:value="dict.warehouseId"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="入出库类型" prop="inOrOut">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.inOrOut"-->
|
||||
<!-- placeholder="请输入入出库类型"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="入出库主单据ID" prop="inOrOutSotckId">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.inOrOutSotckId"-->
|
||||
<!-- placeholder="请输入入出库主单据ID"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="入出库主子单据ID" prop="inOrOutSotckDetailId">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.inOrOutSotckDetailId"-->
|
||||
<!-- placeholder="请输入入出库主子单据ID"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="物料GUID" prop="productGuid">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.productGuid"-->
|
||||
<!-- placeholder="请输入物料GUID"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="物料ID" prop="productId">
|
||||
<el-input
|
||||
v-model="queryParams.productId"
|
||||
placeholder="请输入物料ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="入出库数量" prop="quantity">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.quantity"-->
|
||||
<!-- placeholder="请输入入出库数量"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="创建人" prop="createMan">
|
||||
<el-input
|
||||
v-model="queryParams.createMan"
|
||||
placeholder="请输入创建人"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="仓库ID" prop="warehouseId">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.warehouseId"-->
|
||||
<!-- placeholder="请输入仓库ID"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="仓库名称" prop="warehouseName">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.warehouseName"-->
|
||||
<!-- placeholder="请输入仓库名称"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="仓库地址" prop="address">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.address"-->
|
||||
<!-- placeholder="请输入仓库地址"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="仓库描述" prop="cDesc">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.cDesc"-->
|
||||
<!-- placeholder="请输入仓库描述"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="仓库级别" prop="warehouseKind">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.warehouseKind"-->
|
||||
<!-- placeholder="请输入仓库级别"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="是否可用" prop="isCurrent">
|
||||
<el-input
|
||||
v-model="queryParams.isCurrent"
|
||||
placeholder="请输入是否可用"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="物料名称" prop="productName">
|
||||
<el-input
|
||||
v-model="queryParams.productName"
|
||||
placeholder="请输入物料名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="规格" prop="spec">
|
||||
<el-input
|
||||
v-model="queryParams.spec"
|
||||
placeholder="请输入规格"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="品牌" prop="cargoNo">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.cargoNo"-->
|
||||
<!-- placeholder="请输入品牌"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="单位" prop="unit">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.unit"-->
|
||||
<!-- placeholder="请输入单位"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="价格" prop="price">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.price"-->
|
||||
<!-- placeholder="请输入价格"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="primary"-->
|
||||
<!-- plain-->
|
||||
<!-- icon="el-icon-plus"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- @click="handleAdd"-->
|
||||
<!-- v-hasPermi="['search:ViewFlatWarehouseOutFlow:add']"-->
|
||||
<!-- >新增</el-button>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="success"-->
|
||||
<!-- plain-->
|
||||
<!-- icon="el-icon-edit"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- :disabled="single"-->
|
||||
<!-- @click="handleUpdate"-->
|
||||
<!-- v-hasPermi="['search:ViewFlatWarehouseOutFlow:edit']"-->
|
||||
<!-- >修改</el-button>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="danger"-->
|
||||
<!-- plain-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- :disabled="multiple"-->
|
||||
<!-- @click="handleDelete"-->
|
||||
<!-- v-hasPermi="['search:ViewFlatWarehouseOutFlow:remove']"-->
|
||||
<!-- >删除</el-button>-->
|
||||
<!-- </el-col>-->
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['search:ViewFlatWarehouseOutFlow:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="ViewFlatWarehouseOutFlowList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<!-- <el-table-column label="入出库类型" align="center" prop="inOrOut" />-->
|
||||
<!-- <el-table-column label="入出库主单据ID" align="center" prop="inOrOutSotckId" />-->
|
||||
<!-- <el-table-column label="入出库主子单据ID" align="center" prop="inOrOutSotckDetailId" />-->
|
||||
<!-- <el-table-column label="物料GUID" align="center" prop="productGuid" />-->
|
||||
<el-table-column label="创建人" align="center" prop="createMan" />
|
||||
<el-table-column label="物料ID" align="center" prop="productId" />
|
||||
<el-table-column label="物料名称" align="center" prop="productName" />
|
||||
<el-table-column label="数量" align="center" prop="quantity" />
|
||||
<el-table-column label="规格" align="center" prop="spec" />
|
||||
<el-table-column label="品牌" align="center" prop="cargoNo" />
|
||||
<el-table-column label="单位" align="center" prop="unit" />
|
||||
<el-table-column label="价格" align="center" prop="price" />
|
||||
<el-table-column label="描述" align="center" prop="remark" />
|
||||
<el-table-column label="仓库ID" align="center" prop="warehouseId" />
|
||||
<el-table-column label="仓库名称" align="center" prop="warehouseName" />
|
||||
<el-table-column label="仓库地址" align="center" prop="address" />
|
||||
<el-table-column label="仓库描述" align="center" prop="cDesc" />
|
||||
<el-table-column label="仓库级别" align="center" prop="warehouseKind" />
|
||||
<el-table-column label="仓库类型" align="center" prop="warehouseType" />
|
||||
<el-table-column label="是否可用" align="center" prop="isCurrent" />
|
||||
|
||||
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-edit"-->
|
||||
<!-- @click="handleUpdate(scope.row)"-->
|
||||
<!-- v-hasPermi="['search:ViewFlatWarehouseOutFlow:edit']"-->
|
||||
<!-- >修改</el-button>-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- @click="handleDelete(scope.row)"-->
|
||||
<!-- v-hasPermi="['search:ViewFlatWarehouseOutFlow:remove']"-->
|
||||
<!-- >删除</el-button>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改平库出库流水对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="${comment}" prop="id">
|
||||
<el-input v-model="form.id" placeholder="请输入${comment}" />
|
||||
</el-form-item>
|
||||
<el-form-item label="入出库类型" prop="inOrOut">
|
||||
<el-input v-model="form.inOrOut" placeholder="请输入入出库类型" />
|
||||
</el-form-item>
|
||||
<el-form-item label="入出库主单据ID" prop="inOrOutSotckId">
|
||||
<el-input v-model="form.inOrOutSotckId" placeholder="请输入入出库主单据ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="入出库主子单据ID" prop="inOrOutSotckDetailId">
|
||||
<el-input v-model="form.inOrOutSotckDetailId" placeholder="请输入入出库主子单据ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料GUID" prop="productGuid">
|
||||
<el-input v-model="form.productGuid" placeholder="请输入物料GUID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料ID" prop="productId">
|
||||
<el-input v-model="form.productId" placeholder="请输入物料ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="入出库数量" prop="quantity">
|
||||
<el-input v-model="form.quantity" placeholder="请输入入出库数量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createMan">
|
||||
<el-input v-model="form.createMan" placeholder="请输入创建人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库ID" prop="warehouseId">
|
||||
<el-input v-model="form.warehouseId" placeholder="请输入仓库ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库名称" prop="warehouseName">
|
||||
<el-input v-model="form.warehouseName" placeholder="请输入仓库名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库地址" prop="address">
|
||||
<el-input v-model="form.address" placeholder="请输入仓库地址" />
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库描述" prop="cDesc">
|
||||
<el-input v-model="form.cDesc" placeholder="请输入仓库描述" />
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库级别" prop="warehouseKind">
|
||||
<el-input v-model="form.warehouseKind" placeholder="请输入仓库级别" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否可用" prop="isCurrent">
|
||||
<el-input v-model="form.isCurrent" placeholder="请输入是否可用" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料名称" prop="productName">
|
||||
<el-input v-model="form.productName" placeholder="请输入物料名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="规格" prop="spec">
|
||||
<el-input v-model="form.spec" placeholder="请输入规格" />
|
||||
</el-form-item>
|
||||
<el-form-item label="品牌" prop="cargoNo">
|
||||
<el-input v-model="form.cargoNo" placeholder="请输入品牌" />
|
||||
</el-form-item>
|
||||
<el-form-item label="单位" prop="unit">
|
||||
<el-input v-model="form.unit" placeholder="请输入单位" />
|
||||
</el-form-item>
|
||||
<el-form-item label="价格" prop="price">
|
||||
<el-input v-model="form.price" placeholder="请输入价格" />
|
||||
</el-form-item>
|
||||
<el-form-item label="描述" prop="remark">
|
||||
<el-input v-model="form.remark" placeholder="请输入描述" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listViewFlatWarehouseOutFlow, getViewFlatWarehouseOutFlow, delViewFlatWarehouseOutFlow, addViewFlatWarehouseOutFlow, updateViewFlatWarehouseOutFlow,warehouseList } from "@/api/search/ViewFlatWarehouseOutFlow"
|
||||
|
||||
|
||||
export default {
|
||||
name: "ViewFlatWarehouseOutFlow",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 平库出库流水表格数据
|
||||
ViewFlatWarehouseOutFlowList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 仓库选项
|
||||
warehouseOptions: [],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
inOrOut: null,
|
||||
inOrOutSotckId: null,
|
||||
inOrOutSotckDetailId: null,
|
||||
productGuid: null,
|
||||
productId: null,
|
||||
quantity: null,
|
||||
createMan: null,
|
||||
warehouseId: null,
|
||||
warehouseName: null,
|
||||
address: null,
|
||||
cDesc: null,
|
||||
warehouseKind: null,
|
||||
warehouseType: null,
|
||||
isCurrent: null,
|
||||
productName: null,
|
||||
spec: null,
|
||||
cargoNo: null,
|
||||
unit: null,
|
||||
price: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
id: [
|
||||
{ required: true, message: "$comment不能为空", trigger: "blur" }
|
||||
],
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
this.getWarehouseList()
|
||||
},
|
||||
methods: {
|
||||
/** 查询仓库列表 */
|
||||
getWarehouseList() {
|
||||
warehouseList().then(response => {
|
||||
this.warehouseOptions = response.rows;
|
||||
});
|
||||
// this.warehouseOptions = [{warehouseId: "01", warehouseName: "仓库1"}, {warehouseId: "02", warehouseName: "仓库2"}];
|
||||
},
|
||||
/** 查询平库出库流水列表 */
|
||||
getList() {
|
||||
this.loading = true
|
||||
listViewFlatWarehouseOutFlow(this.queryParams).then(response => {
|
||||
this.ViewFlatWarehouseOutFlowList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
inOrOut: null,
|
||||
inOrOutSotckId: null,
|
||||
inOrOutSotckDetailId: null,
|
||||
productGuid: null,
|
||||
productId: null,
|
||||
quantity: null,
|
||||
createTime: null,
|
||||
createMan: null,
|
||||
warehouseId: null,
|
||||
warehouseName: null,
|
||||
address: null,
|
||||
cDesc: null,
|
||||
warehouseKind: null,
|
||||
warehouseType: null,
|
||||
isCurrent: null,
|
||||
productName: null,
|
||||
spec: null,
|
||||
cargoNo: null,
|
||||
unit: null,
|
||||
price: null,
|
||||
remark: null
|
||||
}
|
||||
this.resetForm("form")
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm")
|
||||
this.handleQuery()
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.title = "添加平库出库流水"
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset()
|
||||
const id = row.id || this.ids
|
||||
getViewFlatWarehouseOutFlow(id).then(response => {
|
||||
this.form = response.data
|
||||
this.open = true
|
||||
this.title = "修改平库出库流水"
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateViewFlatWarehouseOutFlow(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功")
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
} else {
|
||||
addViewFlatWarehouseOutFlow(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功")
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids
|
||||
this.$modal.confirm('是否确认删除平库出库流水编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delViewFlatWarehouseOutFlow(ids)
|
||||
}).then(() => {
|
||||
this.getList()
|
||||
this.$modal.msgSuccess("删除成功")
|
||||
}).catch(() => {})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('search/ViewFlatWarehouseOutFlow/export', {
|
||||
...this.queryParams
|
||||
}, `ViewFlatWarehouseOutFlow_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
727
ruoyi-ui/src/views/search/ViewOutJobFlow/index.vue
Normal file
727
ruoyi-ui/src/views/search/ViewOutJobFlow/index.vue
Normal file
@@ -0,0 +1,727 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="作业ID" prop="jobId">
|
||||
<el-input
|
||||
v-model="queryParams.jobId"
|
||||
placeholder="请输入作业ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="子作业ID" prop="jobDetailId">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.jobDetailId"-->
|
||||
<!-- placeholder="请输入子作业ID"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="状态" prop="status">
|
||||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable>
|
||||
<el-option
|
||||
v-for="dict in dict.type.mydo_job_status"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="任务号" prop="taskNo">
|
||||
<el-input
|
||||
v-model="queryParams.taskNo"
|
||||
placeholder="请输入任务号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="托盘码" prop="trayCode">
|
||||
<el-input
|
||||
v-model="queryParams.trayCode"
|
||||
placeholder="请输入托盘码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="库存状态" prop="stockStatus">
|
||||
<el-select v-model="queryParams.stockStatus" placeholder="请选择库存状态" clearable>
|
||||
<el-option
|
||||
v-for="dict in dict.type.stock_status"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="巷道ID" prop="roadwayId">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.roadwayId"-->
|
||||
<!-- placeholder="请输入巷道ID"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="货位ID" prop="cargoSpaceId">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.cargoSpaceId"-->
|
||||
<!-- placeholder="请输入货位ID"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="货位名称" prop="cargoSpaceName">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.cargoSpaceName"-->
|
||||
<!-- placeholder="请输入货位名称"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="排" prop="thePlatoon">
|
||||
<el-input
|
||||
v-model="queryParams.thePlatoon"
|
||||
placeholder="请输入排"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="列" prop="theColumn">
|
||||
<el-input
|
||||
v-model="queryParams.theColumn"
|
||||
placeholder="请输入列"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="层" prop="theFloor">
|
||||
<el-input
|
||||
v-model="queryParams.theFloor"
|
||||
placeholder="请输入层"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="优先级" prop="priority">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.priority"-->
|
||||
<!-- placeholder="请输入优先级"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="执行阶段" prop="executionPhase">-->
|
||||
<!-- <el-select v-model="queryParams.executionPhase" placeholder="请选择执行阶段" clearable>-->
|
||||
<!-- <el-option-->
|
||||
<!-- v-for="dict in dict.type.execution_phase_type"-->
|
||||
<!-- :key="dict.value"-->
|
||||
<!-- :label="dict.label"-->
|
||||
<!-- :value="dict.value"-->
|
||||
<!-- />-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="作业类型" prop="inOrOut">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.inOrOut"-->
|
||||
<!-- placeholder="请输入作业类型"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="出口ID" prop="exitId">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.exitId"-->
|
||||
<!-- placeholder="请输入出口ID"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="物料ID" prop="productId">
|
||||
<el-input
|
||||
v-model="queryParams.productId"
|
||||
placeholder="请输入物料ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="物料名称" prop="productName">
|
||||
<el-input
|
||||
v-model="queryParams.productName"
|
||||
placeholder="请输入物料名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="批号" prop="lotNo">
|
||||
<el-input
|
||||
v-model="queryParams.lotNo"
|
||||
placeholder="请输入批号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="剁型ID" prop="stackingId">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.stackingId"-->
|
||||
<!-- placeholder="请输入剁型ID"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
|
||||
<!-- <el-form-item label="单据ID" prop="inOrOutId">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.inOrOutId"-->
|
||||
<!-- placeholder="请输入单据ID"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="子单据ID" prop="inOrOutDId">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.inOrOutDId"-->
|
||||
<!-- placeholder="请输入子单据ID"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="创建时间" prop="createTime">-->
|
||||
<!-- <el-date-picker clearable-->
|
||||
<!-- v-model="queryParams.createTime"-->
|
||||
<!-- type="date"-->
|
||||
<!-- value-format="yyyy-MM-dd"-->
|
||||
<!-- placeholder="请选择创建时间">-->
|
||||
<!-- </el-date-picker>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="开始时间" prop="startTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.startTime"
|
||||
type="datetime"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
placeholder="请选择开始时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="结束时间" prop="finishTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.finishTime"
|
||||
type="datetime"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
placeholder="请选择开始时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="仓库ID" prop="warehouseId">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.warehouseId"-->
|
||||
<!-- placeholder="请输入仓库ID"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
|
||||
<!-- <el-form-item label="规格" prop="spec">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.spec"-->
|
||||
<!-- placeholder="请输入规格"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="品牌" prop="cargoNo">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.cargoNo"-->
|
||||
<!-- placeholder="请输入品牌"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="单位" prop="unit">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.unit"-->
|
||||
<!-- placeholder="请输入单位"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="客户名称" prop="customerName">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.customerName"-->
|
||||
<!-- placeholder="请输入客户名称"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="primary"-->
|
||||
<!-- plain-->
|
||||
<!-- icon="el-icon-plus"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- @click="handleAdd"-->
|
||||
<!-- v-hasPermi="['search:ViewOutJobFlow:add']"-->
|
||||
<!-- >新增</el-button>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="success"-->
|
||||
<!-- plain-->
|
||||
<!-- icon="el-icon-edit"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- :disabled="single"-->
|
||||
<!-- @click="handleUpdate"-->
|
||||
<!-- v-hasPermi="['search:ViewOutJobFlow:edit']"-->
|
||||
<!-- >修改</el-button>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="danger"-->
|
||||
<!-- plain-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- :disabled="multiple"-->
|
||||
<!-- @click="handleDelete"-->
|
||||
<!-- v-hasPermi="['search:ViewOutJobFlow:remove']"-->
|
||||
<!-- >删除</el-button>-->
|
||||
<!-- </el-col>-->
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['search:ViewOutJobFlow:export']"
|
||||
>导出
|
||||
</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="ViewOutJobFlowList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center"/>
|
||||
<el-table-column label="作业ID" align="center" prop="jobId"/>
|
||||
<el-table-column label="子作业ID" align="center" prop="jobDetailId"/>
|
||||
<el-table-column label="状态" align="center" prop="status">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.mydo_job_status" :value="scope.row.status"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="任务号" align="center" prop="taskNo"/>
|
||||
<el-table-column label="托盘码" align="center" prop="trayCode"/>
|
||||
<el-table-column label="巷道ID" align="center" prop="roadwayId"/>
|
||||
<el-table-column label="货位ID" align="center" prop="cargoSpaceId"/>
|
||||
<el-table-column label="货位名称" align="center" prop="cargoSpaceName"/>
|
||||
<el-table-column label="排" align="center" prop="thePlatoon"/>
|
||||
<el-table-column label="列" align="center" prop="theColumn"/>
|
||||
<el-table-column label="层" align="center" prop="theFloor"/>
|
||||
<el-table-column label="优先级" align="center" prop="priority"/>
|
||||
<el-table-column label="执行阶段" align="center" prop="executionPhase">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.execution_phase_type" :value="scope.row.executionPhase"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="作业类型" align="center" prop="inOrOut"/>
|
||||
<el-table-column label="出口ID" align="center" prop="exitId"/>
|
||||
<el-table-column label="物料ID" align="center" prop="productId"/>
|
||||
<el-table-column label="批号" align="center" prop="lotNo"/>
|
||||
<el-table-column label="剁型ID" align="center" prop="stackingId"/>
|
||||
<el-table-column label="库存状态" align="center" prop="stockStatus">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.stock_status" :value="scope.row.stockStatus"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="出库数量" align="center" prop="outQuantity"/>
|
||||
<el-table-column label="回流数量" align="center" prop="giveNum"/>
|
||||
<el-table-column label="单据ID" align="center" prop="inOrOutId"/>
|
||||
<el-table-column label="子单据ID" align="center" prop="inOrOutDId"/>
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
<el-table-column label="开始时间" align="center" prop="startTime" width="180">
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span>{{ parseTime(scope.row.startTime, '{y}-{m}-{d}') }}</span>-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
<el-table-column label="结束时间" align="center" prop="finishTime" width="180">
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span>{{ parseTime(scope.row.finishTime, '{y}-{m}-{d}') }}</span>-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
<el-table-column label="仓库ID" align="center" prop="warehouseId"/>
|
||||
<el-table-column label="物料名称" align="center" prop="productName"/>
|
||||
<el-table-column label="规格" align="center" prop="spec"/>
|
||||
<el-table-column label="品牌" align="center" prop="cargoNo"/>
|
||||
<el-table-column label="单位" align="center" prop="unit"/>
|
||||
<el-table-column label="客户名称" align="center" prop="customerName"/>
|
||||
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-edit"-->
|
||||
<!-- @click="handleUpdate(scope.row)"-->
|
||||
<!-- v-hasPermi="['search:ViewOutJobFlow:edit']"-->
|
||||
<!-- >修改</el-button>-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- @click="handleDelete(scope.row)"-->
|
||||
<!-- v-hasPermi="['search:ViewOutJobFlow:remove']"-->
|
||||
<!-- >删除</el-button>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改出库做业务流水对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="作业ID" prop="jobId">
|
||||
<el-input v-model="form.jobId" placeholder="请输入作业ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="子作业ID" prop="jobDetailId">
|
||||
<el-input v-model="form.jobDetailId" placeholder="请输入子作业ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="状态" prop="status">
|
||||
<el-select v-model="form.status" placeholder="请选择状态">
|
||||
<el-option
|
||||
v-for="dict in dict.type.mydo_job_status"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="任务号" prop="taskNo">
|
||||
<el-input v-model="form.taskNo" placeholder="请输入任务号"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="托盘码" prop="trayCode">
|
||||
<el-input v-model="form.trayCode" placeholder="请输入托盘码"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="巷道ID" prop="roadwayId">
|
||||
<el-input v-model="form.roadwayId" placeholder="请输入巷道ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="货位ID" prop="cargoSpaceId">
|
||||
<el-input v-model="form.cargoSpaceId" placeholder="请输入货位ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="货位名称" prop="cargoSpaceName">
|
||||
<el-input v-model="form.cargoSpaceName" placeholder="请输入货位名称"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="排" prop="thePlatoon">
|
||||
<el-input v-model="form.thePlatoon" placeholder="请输入排"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="列" prop="theColumn">
|
||||
<el-input v-model="form.theColumn" placeholder="请输入列"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="层" prop="theFloor">
|
||||
<el-input v-model="form.theFloor" placeholder="请输入层"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="优先级" prop="priority">
|
||||
<el-input v-model="form.priority" placeholder="请输入优先级"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="执行阶段" prop="executionPhase">
|
||||
<el-select v-model="form.executionPhase" placeholder="请选择执行阶段">
|
||||
<el-option
|
||||
v-for="dict in dict.type.execution_phase_type"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="作业类型" prop="inOrOut">
|
||||
<el-input v-model="form.inOrOut" placeholder="请输入作业类型"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="出口ID" prop="exitId">
|
||||
<el-input v-model="form.exitId" placeholder="请输入出口ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="物料ID" prop="productId">
|
||||
<el-input v-model="form.productId" placeholder="请输入物料ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="批号" prop="lotNo">
|
||||
<el-input v-model="form.lotNo" placeholder="请输入批号"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="剁型ID" prop="stackingId">
|
||||
<el-input v-model="form.stackingId" placeholder="请输入剁型ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="库存状态" prop="stockStatus">
|
||||
<el-select v-model="form.stockStatus" placeholder="请选择库存状态">
|
||||
<el-option
|
||||
v-for="dict in dict.type.stock_status"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="单据ID" prop="inOrOutId">
|
||||
<el-input v-model="form.inOrOutId" placeholder="请输入单据ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="子单据ID" prop="inOrOutDId">
|
||||
<el-input v-model="form.inOrOutDId" placeholder="请输入子单据ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="开始时间" prop="startTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.startTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择开始时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="结束时间" prop="finishTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.finishTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择结束时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库ID" prop="warehouseId">
|
||||
<el-input v-model="form.warehouseId" placeholder="请输入仓库ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="物料名称" prop="productName">
|
||||
<el-input v-model="form.productName" placeholder="请输入物料名称"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="规格" prop="spec">
|
||||
<el-input v-model="form.spec" placeholder="请输入规格"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="品牌" prop="cargoNo">
|
||||
<el-input v-model="form.cargoNo" placeholder="请输入品牌"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="单位" prop="unit">
|
||||
<el-input v-model="form.unit" placeholder="请输入单位"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="客户名称" prop="customerName">
|
||||
<el-input v-model="form.customerName" placeholder="请输入客户名称"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
listViewOutJobFlow,
|
||||
getViewOutJobFlow,
|
||||
delViewOutJobFlow,
|
||||
addViewOutJobFlow,
|
||||
updateViewOutJobFlow
|
||||
} from "@/api/search/ViewOutJobFlow"
|
||||
|
||||
export default {
|
||||
name: "ViewOutJobFlow",
|
||||
dicts: ['execution_phase_type', 'mydo_job_status', 'stock_status'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 出库做业务流水表格数据
|
||||
ViewOutJobFlowList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
jobId: null,
|
||||
jobDetailId: null,
|
||||
status: null,
|
||||
taskNo: null,
|
||||
trayCode: null,
|
||||
roadwayId: null,
|
||||
cargoSpaceId: null,
|
||||
cargoSpaceName: null,
|
||||
thePlatoon: null,
|
||||
theColumn: null,
|
||||
theFloor: null,
|
||||
priority: null,
|
||||
executionPhase: null,
|
||||
inOrOut: null,
|
||||
exitId: null,
|
||||
productId: null,
|
||||
lotNo: null,
|
||||
stackingId: null,
|
||||
stockStatus: null,
|
||||
outQuantity: null,
|
||||
giveNum: null,
|
||||
inOrOutId: null,
|
||||
inOrOutDId: null,
|
||||
createTime: null,
|
||||
startTime: null,
|
||||
finishTime: null,
|
||||
warehouseId: null,
|
||||
productName: null,
|
||||
spec: null,
|
||||
cargoNo: null,
|
||||
unit: null,
|
||||
customerName: null
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
jobId: [
|
||||
{required: true, message: "作业ID不能为空", trigger: "blur"}
|
||||
],
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
/** 查询出库做业务流水列表 */
|
||||
getList() {
|
||||
this.loading = true
|
||||
listViewOutJobFlow(this.queryParams).then(response => {
|
||||
this.ViewOutJobFlowList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
jobId: null,
|
||||
jobDetailId: null,
|
||||
status: null,
|
||||
taskNo: null,
|
||||
trayCode: null,
|
||||
roadwayId: null,
|
||||
cargoSpaceId: null,
|
||||
cargoSpaceName: null,
|
||||
thePlatoon: null,
|
||||
theColumn: null,
|
||||
theFloor: null,
|
||||
priority: null,
|
||||
executionPhase: null,
|
||||
inOrOut: null,
|
||||
exitId: null,
|
||||
productId: null,
|
||||
lotNo: null,
|
||||
stackingId: null,
|
||||
stockStatus: null,
|
||||
outQuantity: null,
|
||||
giveNum: null,
|
||||
inOrOutId: null,
|
||||
inOrOutDId: null,
|
||||
createTime: null,
|
||||
startTime: null,
|
||||
finishTime: null,
|
||||
warehouseId: null,
|
||||
productName: null,
|
||||
spec: null,
|
||||
cargoNo: null,
|
||||
unit: null,
|
||||
customerName: null
|
||||
}
|
||||
this.resetForm("form")
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm")
|
||||
this.handleQuery()
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.jobId)
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.title = "添加出库做业务流水"
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset()
|
||||
const jobId = row.jobId || this.ids
|
||||
getViewOutJobFlow(jobId).then(response => {
|
||||
this.form = response.data
|
||||
this.open = true
|
||||
this.title = "修改出库做业务流水"
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.jobId != null) {
|
||||
updateViewOutJobFlow(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功")
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
} else {
|
||||
addViewOutJobFlow(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功")
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const jobIds = row.jobId || this.ids
|
||||
this.$modal.confirm('是否确认删除出库做业务流水编号为"' + jobIds + '"的数据项?').then(function () {
|
||||
return delViewOutJobFlow(jobIds)
|
||||
}).then(() => {
|
||||
this.getList()
|
||||
this.$modal.msgSuccess("删除成功")
|
||||
}).catch(() => {
|
||||
})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('search/ViewOutJobFlow/export', {
|
||||
...this.queryParams
|
||||
}, `ViewOutJobFlow_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user