安全库存查询、预警库存查询
This commit is contained in:
@@ -0,0 +1,104 @@
|
|||||||
|
package com.ruoyi.search.ViewStockSecure.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.ViewStockSecure.domain.ViewStockSecure;
|
||||||
|
import com.ruoyi.search.ViewStockSecure.service.IViewStockSecureService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 安全库存查询Controller
|
||||||
|
*
|
||||||
|
* @author gw
|
||||||
|
* @date 2025-05-30
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/search/ViewStockSecure")
|
||||||
|
public class ViewStockSecureController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IViewStockSecureService viewStockSecureService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询安全库存查询列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('search:ViewStockSecure:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(ViewStockSecure viewStockSecure)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<ViewStockSecure> list = viewStockSecureService.selectViewStockSecureList(viewStockSecure);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出安全库存查询列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('search:ViewStockSecure:export')")
|
||||||
|
@Log(title = "安全库存查询", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, ViewStockSecure viewStockSecure)
|
||||||
|
{
|
||||||
|
List<ViewStockSecure> list = viewStockSecureService.selectViewStockSecureList(viewStockSecure);
|
||||||
|
ExcelUtil<ViewStockSecure> util = new ExcelUtil<ViewStockSecure>(ViewStockSecure.class);
|
||||||
|
util.exportExcel(response, list, "安全库存查询数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取安全库存查询详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('search:ViewStockSecure:query')")
|
||||||
|
@GetMapping(value = "/{stockId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("stockId") String stockId)
|
||||||
|
{
|
||||||
|
return success(viewStockSecureService.selectViewStockSecureByStockId(stockId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增安全库存查询
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('search:ViewStockSecure:add')")
|
||||||
|
@Log(title = "安全库存查询", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody ViewStockSecure viewStockSecure)
|
||||||
|
{
|
||||||
|
return toAjax(viewStockSecureService.insertViewStockSecure(viewStockSecure));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改安全库存查询
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('search:ViewStockSecure:edit')")
|
||||||
|
@Log(title = "安全库存查询", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody ViewStockSecure viewStockSecure)
|
||||||
|
{
|
||||||
|
return toAjax(viewStockSecureService.updateViewStockSecure(viewStockSecure));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除安全库存查询
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('search:ViewStockSecure:remove')")
|
||||||
|
@Log(title = "安全库存查询", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{stockIds}")
|
||||||
|
public AjaxResult remove(@PathVariable String[] stockIds)
|
||||||
|
{
|
||||||
|
return toAjax(viewStockSecureService.deleteViewStockSecureByStockIds(stockIds));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,804 @@
|
|||||||
|
package com.ruoyi.search.ViewStockSecure.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_stock_secure
|
||||||
|
*
|
||||||
|
* @author gw
|
||||||
|
* @date 2025-05-30
|
||||||
|
*/
|
||||||
|
public class ViewStockSecure extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 库存ID */
|
||||||
|
@Excel(name = "库存ID")
|
||||||
|
private String stockId;
|
||||||
|
|
||||||
|
/** 货位ID */
|
||||||
|
@Excel(name = "货位ID")
|
||||||
|
private String cargoSpaceId;
|
||||||
|
|
||||||
|
/** 库存状态 */
|
||||||
|
@Excel(name = "库存状态")
|
||||||
|
private String stockStatus;
|
||||||
|
|
||||||
|
/** 物料状态 */
|
||||||
|
@Excel(name = "物料状态")
|
||||||
|
private String productStatus;
|
||||||
|
|
||||||
|
/** 批次号 */
|
||||||
|
@Excel(name = "批次号")
|
||||||
|
private String lotNo;
|
||||||
|
|
||||||
|
/** 入库时间 */
|
||||||
|
@Excel(name = "入库时间")
|
||||||
|
private String inDate;
|
||||||
|
|
||||||
|
/** 回流时间 */
|
||||||
|
@Excel(name = "回流时间")
|
||||||
|
private String backDate;
|
||||||
|
|
||||||
|
/** 物料GUID */
|
||||||
|
@Excel(name = "物料GUID")
|
||||||
|
private String productGuid;
|
||||||
|
|
||||||
|
/** 库存数量 */
|
||||||
|
@Excel(name = "库存数量")
|
||||||
|
private String quantity;
|
||||||
|
|
||||||
|
/** 作业ID */
|
||||||
|
@Excel(name = "作业ID")
|
||||||
|
private String jobId;
|
||||||
|
|
||||||
|
/** 托盘条码 */
|
||||||
|
@Excel(name = "托盘条码")
|
||||||
|
private String trayCode;
|
||||||
|
|
||||||
|
/** 出库数量 */
|
||||||
|
@Excel(name = "出库数量")
|
||||||
|
private String outQuantity;
|
||||||
|
|
||||||
|
/** 入库子单ID */
|
||||||
|
@Excel(name = "入库子单ID")
|
||||||
|
private String stockinDetailId;
|
||||||
|
|
||||||
|
/** 入库主单 */
|
||||||
|
@Excel(name = "入库主单")
|
||||||
|
private String stockinId;
|
||||||
|
|
||||||
|
/** 入库类型 */
|
||||||
|
@Excel(name = "入库类型")
|
||||||
|
private String inType;
|
||||||
|
|
||||||
|
/** 入库班组ID */
|
||||||
|
@Excel(name = "入库班组ID")
|
||||||
|
private String inClassId;
|
||||||
|
|
||||||
|
/** 仓库ID */
|
||||||
|
@Excel(name = "仓库ID")
|
||||||
|
private String warehouseId;
|
||||||
|
|
||||||
|
/** 垛型ID */
|
||||||
|
@Excel(name = "垛型ID")
|
||||||
|
private String stackingId;
|
||||||
|
|
||||||
|
/** 库存预警 */
|
||||||
|
@Excel(name = "库存预警")
|
||||||
|
private String spare1;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private String spare2;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private String spare3;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private String spare4;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private String spare5;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private String spare6;
|
||||||
|
|
||||||
|
/** 物料ID */
|
||||||
|
@Excel(name = "物料ID")
|
||||||
|
private String productId;
|
||||||
|
|
||||||
|
/** 仓库名称 */
|
||||||
|
@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;
|
||||||
|
|
||||||
|
/** 货位名称 */
|
||||||
|
@Excel(name = "货位名称")
|
||||||
|
private String cargoSpaceName;
|
||||||
|
|
||||||
|
/** 巷道ID */
|
||||||
|
@Excel(name = "巷道ID")
|
||||||
|
private String roadwayId;
|
||||||
|
|
||||||
|
/** 货区ID */
|
||||||
|
@Excel(name = "货区ID")
|
||||||
|
private String cargoAreaId;
|
||||||
|
|
||||||
|
/** 货位类型 */
|
||||||
|
@Excel(name = "货位类型")
|
||||||
|
private String theType;
|
||||||
|
|
||||||
|
/** 货位类型名称 */
|
||||||
|
@Excel(name = "货位类型名称")
|
||||||
|
private String theTypeName;
|
||||||
|
|
||||||
|
/** 排 */
|
||||||
|
@Excel(name = "排")
|
||||||
|
private Long thePlatoon;
|
||||||
|
|
||||||
|
/** 列 */
|
||||||
|
@Excel(name = "列")
|
||||||
|
private Long theColumn;
|
||||||
|
|
||||||
|
/** 层 */
|
||||||
|
@Excel(name = "层")
|
||||||
|
private Long theFloor;
|
||||||
|
|
||||||
|
/** 货位状态 */
|
||||||
|
@Excel(name = "货位状态")
|
||||||
|
private String cargoStatus;
|
||||||
|
|
||||||
|
/** 是否锁定 */
|
||||||
|
@Excel(name = "是否锁定")
|
||||||
|
private String locked;
|
||||||
|
|
||||||
|
/** 货位高度 */
|
||||||
|
@Excel(name = "货位高度")
|
||||||
|
private String cargoHight;
|
||||||
|
|
||||||
|
/** 是否双伸 */
|
||||||
|
@Excel(name = "是否双伸")
|
||||||
|
private String issDouble;
|
||||||
|
|
||||||
|
/** 双货位分组编码 */
|
||||||
|
@Excel(name = "双货位分组编码")
|
||||||
|
private String groupCodingNo;
|
||||||
|
|
||||||
|
/** 双货位分组编码 */
|
||||||
|
@Excel(name = "双货位分组编码")
|
||||||
|
private String groupCoding;
|
||||||
|
|
||||||
|
/** 双货位标识 */
|
||||||
|
@Excel(name = "双货位标识")
|
||||||
|
private String cargoSpaceLogo;
|
||||||
|
|
||||||
|
/** 本仓库区域 */
|
||||||
|
@Excel(name = "本仓库区域")
|
||||||
|
private String thisCargoArea;
|
||||||
|
|
||||||
|
public void setStockId(String stockId)
|
||||||
|
{
|
||||||
|
this.stockId = stockId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStockId()
|
||||||
|
{
|
||||||
|
return stockId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCargoSpaceId(String cargoSpaceId)
|
||||||
|
{
|
||||||
|
this.cargoSpaceId = cargoSpaceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCargoSpaceId()
|
||||||
|
{
|
||||||
|
return cargoSpaceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStockStatus(String stockStatus)
|
||||||
|
{
|
||||||
|
this.stockStatus = stockStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStockStatus()
|
||||||
|
{
|
||||||
|
return stockStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProductStatus(String productStatus)
|
||||||
|
{
|
||||||
|
this.productStatus = productStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProductStatus()
|
||||||
|
{
|
||||||
|
return productStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLotNo(String lotNo)
|
||||||
|
{
|
||||||
|
this.lotNo = lotNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLotNo()
|
||||||
|
{
|
||||||
|
return lotNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInDate(String inDate)
|
||||||
|
{
|
||||||
|
this.inDate = inDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInDate()
|
||||||
|
{
|
||||||
|
return inDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBackDate(String backDate)
|
||||||
|
{
|
||||||
|
this.backDate = backDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBackDate()
|
||||||
|
{
|
||||||
|
return backDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProductGuid(String productGuid)
|
||||||
|
{
|
||||||
|
this.productGuid = productGuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProductGuid()
|
||||||
|
{
|
||||||
|
return productGuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQuantity(String quantity)
|
||||||
|
{
|
||||||
|
this.quantity = quantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getQuantity()
|
||||||
|
{
|
||||||
|
return quantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJobId(String jobId)
|
||||||
|
{
|
||||||
|
this.jobId = jobId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJobId()
|
||||||
|
{
|
||||||
|
return jobId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrayCode(String trayCode)
|
||||||
|
{
|
||||||
|
this.trayCode = trayCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTrayCode()
|
||||||
|
{
|
||||||
|
return trayCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOutQuantity(String outQuantity)
|
||||||
|
{
|
||||||
|
this.outQuantity = outQuantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOutQuantity()
|
||||||
|
{
|
||||||
|
return outQuantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStockinDetailId(String stockinDetailId)
|
||||||
|
{
|
||||||
|
this.stockinDetailId = stockinDetailId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStockinDetailId()
|
||||||
|
{
|
||||||
|
return stockinDetailId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStockinId(String stockinId)
|
||||||
|
{
|
||||||
|
this.stockinId = stockinId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStockinId()
|
||||||
|
{
|
||||||
|
return stockinId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInType(String inType)
|
||||||
|
{
|
||||||
|
this.inType = inType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInType()
|
||||||
|
{
|
||||||
|
return inType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInClassId(String inClassId)
|
||||||
|
{
|
||||||
|
this.inClassId = inClassId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInClassId()
|
||||||
|
{
|
||||||
|
return inClassId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWarehouseId(String warehouseId)
|
||||||
|
{
|
||||||
|
this.warehouseId = warehouseId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWarehouseId()
|
||||||
|
{
|
||||||
|
return warehouseId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStackingId(String stackingId)
|
||||||
|
{
|
||||||
|
this.stackingId = stackingId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStackingId()
|
||||||
|
{
|
||||||
|
return stackingId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpare1(String spare1)
|
||||||
|
{
|
||||||
|
this.spare1 = spare1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSpare1()
|
||||||
|
{
|
||||||
|
return spare1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpare2(String spare2)
|
||||||
|
{
|
||||||
|
this.spare2 = spare2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSpare2()
|
||||||
|
{
|
||||||
|
return spare2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpare3(String spare3)
|
||||||
|
{
|
||||||
|
this.spare3 = spare3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSpare3()
|
||||||
|
{
|
||||||
|
return spare3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpare4(String spare4)
|
||||||
|
{
|
||||||
|
this.spare4 = spare4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSpare4()
|
||||||
|
{
|
||||||
|
return spare4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpare5(String spare5)
|
||||||
|
{
|
||||||
|
this.spare5 = spare5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSpare5()
|
||||||
|
{
|
||||||
|
return spare5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpare6(String spare6)
|
||||||
|
{
|
||||||
|
this.spare6 = spare6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSpare6()
|
||||||
|
{
|
||||||
|
return spare6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProductId(String productId)
|
||||||
|
{
|
||||||
|
this.productId = productId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProductId()
|
||||||
|
{
|
||||||
|
return productId;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCargoSpaceName(String cargoSpaceName)
|
||||||
|
{
|
||||||
|
this.cargoSpaceName = cargoSpaceName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCargoSpaceName()
|
||||||
|
{
|
||||||
|
return cargoSpaceName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRoadwayId(String roadwayId)
|
||||||
|
{
|
||||||
|
this.roadwayId = roadwayId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRoadwayId()
|
||||||
|
{
|
||||||
|
return roadwayId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCargoAreaId(String cargoAreaId)
|
||||||
|
{
|
||||||
|
this.cargoAreaId = cargoAreaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCargoAreaId()
|
||||||
|
{
|
||||||
|
return cargoAreaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTheType(String theType)
|
||||||
|
{
|
||||||
|
this.theType = theType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTheType()
|
||||||
|
{
|
||||||
|
return theType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTheTypeName(String theTypeName)
|
||||||
|
{
|
||||||
|
this.theTypeName = theTypeName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTheTypeName()
|
||||||
|
{
|
||||||
|
return theTypeName;
|
||||||
|
}
|
||||||
|
|
||||||
|
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 setCargoStatus(String cargoStatus)
|
||||||
|
{
|
||||||
|
this.cargoStatus = cargoStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCargoStatus()
|
||||||
|
{
|
||||||
|
return cargoStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocked(String locked)
|
||||||
|
{
|
||||||
|
this.locked = locked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocked()
|
||||||
|
{
|
||||||
|
return locked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCargoHight(String cargoHight)
|
||||||
|
{
|
||||||
|
this.cargoHight = cargoHight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCargoHight()
|
||||||
|
{
|
||||||
|
return cargoHight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIssDouble(String issDouble)
|
||||||
|
{
|
||||||
|
this.issDouble = issDouble;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIssDouble()
|
||||||
|
{
|
||||||
|
return issDouble;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGroupCodingNo(String groupCodingNo)
|
||||||
|
{
|
||||||
|
this.groupCodingNo = groupCodingNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGroupCodingNo()
|
||||||
|
{
|
||||||
|
return groupCodingNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGroupCoding(String groupCoding)
|
||||||
|
{
|
||||||
|
this.groupCoding = groupCoding;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGroupCoding()
|
||||||
|
{
|
||||||
|
return groupCoding;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCargoSpaceLogo(String cargoSpaceLogo)
|
||||||
|
{
|
||||||
|
this.cargoSpaceLogo = cargoSpaceLogo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCargoSpaceLogo()
|
||||||
|
{
|
||||||
|
return cargoSpaceLogo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setThisCargoArea(String thisCargoArea)
|
||||||
|
{
|
||||||
|
this.thisCargoArea = thisCargoArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getThisCargoArea()
|
||||||
|
{
|
||||||
|
return thisCargoArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("stockId", getStockId())
|
||||||
|
.append("cargoSpaceId", getCargoSpaceId())
|
||||||
|
.append("stockStatus", getStockStatus())
|
||||||
|
.append("productStatus", getProductStatus())
|
||||||
|
.append("lotNo", getLotNo())
|
||||||
|
.append("inDate", getInDate())
|
||||||
|
.append("backDate", getBackDate())
|
||||||
|
.append("productGuid", getProductGuid())
|
||||||
|
.append("quantity", getQuantity())
|
||||||
|
.append("jobId", getJobId())
|
||||||
|
.append("trayCode", getTrayCode())
|
||||||
|
.append("outQuantity", getOutQuantity())
|
||||||
|
.append("stockinDetailId", getStockinDetailId())
|
||||||
|
.append("stockinId", getStockinId())
|
||||||
|
.append("inType", getInType())
|
||||||
|
.append("inClassId", getInClassId())
|
||||||
|
.append("warehouseId", getWarehouseId())
|
||||||
|
.append("stackingId", getStackingId())
|
||||||
|
.append("spare1", getSpare1())
|
||||||
|
.append("spare2", getSpare2())
|
||||||
|
.append("spare3", getSpare3())
|
||||||
|
.append("spare4", getSpare4())
|
||||||
|
.append("spare5", getSpare5())
|
||||||
|
.append("spare6", getSpare6())
|
||||||
|
.append("productId", getProductId())
|
||||||
|
.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())
|
||||||
|
.append("cargoSpaceName", getCargoSpaceName())
|
||||||
|
.append("roadwayId", getRoadwayId())
|
||||||
|
.append("cargoAreaId", getCargoAreaId())
|
||||||
|
.append("theType", getTheType())
|
||||||
|
.append("theTypeName", getTheTypeName())
|
||||||
|
.append("thePlatoon", getThePlatoon())
|
||||||
|
.append("theColumn", getTheColumn())
|
||||||
|
.append("theFloor", getTheFloor())
|
||||||
|
.append("cargoStatus", getCargoStatus())
|
||||||
|
.append("locked", getLocked())
|
||||||
|
.append("cargoHight", getCargoHight())
|
||||||
|
.append("issDouble", getIssDouble())
|
||||||
|
.append("groupCodingNo", getGroupCodingNo())
|
||||||
|
.append("groupCoding", getGroupCoding())
|
||||||
|
.append("cargoSpaceLogo", getCargoSpaceLogo())
|
||||||
|
.append("thisCargoArea", getThisCargoArea())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.search.ViewStockSecure.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.search.ViewStockSecure.domain.ViewStockSecure;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 安全库存查询Mapper接口
|
||||||
|
*
|
||||||
|
* @author gw
|
||||||
|
* @date 2025-05-30
|
||||||
|
*/
|
||||||
|
public interface ViewStockSecureMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询安全库存查询
|
||||||
|
*
|
||||||
|
* @param stockId 安全库存查询主键
|
||||||
|
* @return 安全库存查询
|
||||||
|
*/
|
||||||
|
public ViewStockSecure selectViewStockSecureByStockId(String stockId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询安全库存查询列表
|
||||||
|
*
|
||||||
|
* @param viewStockSecure 安全库存查询
|
||||||
|
* @return 安全库存查询集合
|
||||||
|
*/
|
||||||
|
public List<ViewStockSecure> selectViewStockSecureList(ViewStockSecure viewStockSecure);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增安全库存查询
|
||||||
|
*
|
||||||
|
* @param viewStockSecure 安全库存查询
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertViewStockSecure(ViewStockSecure viewStockSecure);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改安全库存查询
|
||||||
|
*
|
||||||
|
* @param viewStockSecure 安全库存查询
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateViewStockSecure(ViewStockSecure viewStockSecure);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除安全库存查询
|
||||||
|
*
|
||||||
|
* @param stockId 安全库存查询主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteViewStockSecureByStockId(String stockId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除安全库存查询
|
||||||
|
*
|
||||||
|
* @param stockIds 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteViewStockSecureByStockIds(String[] stockIds);
|
||||||
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.search.ViewStockSecure.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.search.ViewStockSecure.domain.ViewStockSecure;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 安全库存查询Service接口
|
||||||
|
*
|
||||||
|
* @author gw
|
||||||
|
* @date 2025-05-30
|
||||||
|
*/
|
||||||
|
public interface IViewStockSecureService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询安全库存查询
|
||||||
|
*
|
||||||
|
* @param stockId 安全库存查询主键
|
||||||
|
* @return 安全库存查询
|
||||||
|
*/
|
||||||
|
public ViewStockSecure selectViewStockSecureByStockId(String stockId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询安全库存查询列表
|
||||||
|
*
|
||||||
|
* @param viewStockSecure 安全库存查询
|
||||||
|
* @return 安全库存查询集合
|
||||||
|
*/
|
||||||
|
public List<ViewStockSecure> selectViewStockSecureList(ViewStockSecure viewStockSecure);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增安全库存查询
|
||||||
|
*
|
||||||
|
* @param viewStockSecure 安全库存查询
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertViewStockSecure(ViewStockSecure viewStockSecure);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改安全库存查询
|
||||||
|
*
|
||||||
|
* @param viewStockSecure 安全库存查询
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateViewStockSecure(ViewStockSecure viewStockSecure);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除安全库存查询
|
||||||
|
*
|
||||||
|
* @param stockIds 需要删除的安全库存查询主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteViewStockSecureByStockIds(String[] stockIds);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除安全库存查询信息
|
||||||
|
*
|
||||||
|
* @param stockId 安全库存查询主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteViewStockSecureByStockId(String stockId);
|
||||||
|
}
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
package com.ruoyi.search.ViewStockSecure.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.search.ViewStockSecure.mapper.ViewStockSecureMapper;
|
||||||
|
import com.ruoyi.search.ViewStockSecure.domain.ViewStockSecure;
|
||||||
|
import com.ruoyi.search.ViewStockSecure.service.IViewStockSecureService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 安全库存查询Service业务层处理
|
||||||
|
*
|
||||||
|
* @author gw
|
||||||
|
* @date 2025-05-30
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ViewStockSecureServiceImpl implements IViewStockSecureService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ViewStockSecureMapper viewStockSecureMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询安全库存查询
|
||||||
|
*
|
||||||
|
* @param stockId 安全库存查询主键
|
||||||
|
* @return 安全库存查询
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ViewStockSecure selectViewStockSecureByStockId(String stockId)
|
||||||
|
{
|
||||||
|
return viewStockSecureMapper.selectViewStockSecureByStockId(stockId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询安全库存查询列表
|
||||||
|
*
|
||||||
|
* @param viewStockSecure 安全库存查询
|
||||||
|
* @return 安全库存查询
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ViewStockSecure> selectViewStockSecureList(ViewStockSecure viewStockSecure)
|
||||||
|
{
|
||||||
|
return viewStockSecureMapper.selectViewStockSecureList(viewStockSecure);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增安全库存查询
|
||||||
|
*
|
||||||
|
* @param viewStockSecure 安全库存查询
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertViewStockSecure(ViewStockSecure viewStockSecure)
|
||||||
|
{
|
||||||
|
return viewStockSecureMapper.insertViewStockSecure(viewStockSecure);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改安全库存查询
|
||||||
|
*
|
||||||
|
* @param viewStockSecure 安全库存查询
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateViewStockSecure(ViewStockSecure viewStockSecure)
|
||||||
|
{
|
||||||
|
return viewStockSecureMapper.updateViewStockSecure(viewStockSecure);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除安全库存查询
|
||||||
|
*
|
||||||
|
* @param stockIds 需要删除的安全库存查询主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteViewStockSecureByStockIds(String[] stockIds)
|
||||||
|
{
|
||||||
|
return viewStockSecureMapper.deleteViewStockSecureByStockIds(stockIds);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除安全库存查询信息
|
||||||
|
*
|
||||||
|
* @param stockId 安全库存查询主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteViewStockSecureByStockId(String stockId)
|
||||||
|
{
|
||||||
|
return viewStockSecureMapper.deleteViewStockSecureByStockId(stockId);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,104 @@
|
|||||||
|
package com.ruoyi.search.ViewStockWarning.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.ViewStockWarning.domain.ViewStockWarning;
|
||||||
|
import com.ruoyi.search.ViewStockWarning.service.IViewStockWarningService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预警库存查询Controller
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-05-30
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/search/ViewStockWarning")
|
||||||
|
public class ViewStockWarningController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IViewStockWarningService viewStockWarningService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预警库存查询列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('search:ViewStockWarning:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(ViewStockWarning viewStockWarning)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<ViewStockWarning> list = viewStockWarningService.selectViewStockWarningList(viewStockWarning);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出预警库存查询列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('search:ViewStockWarning:export')")
|
||||||
|
@Log(title = "预警库存查询", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, ViewStockWarning viewStockWarning)
|
||||||
|
{
|
||||||
|
List<ViewStockWarning> list = viewStockWarningService.selectViewStockWarningList(viewStockWarning);
|
||||||
|
ExcelUtil<ViewStockWarning> util = new ExcelUtil<ViewStockWarning>(ViewStockWarning.class);
|
||||||
|
util.exportExcel(response, list, "预警库存查询数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取预警库存查询详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('search:ViewStockWarning:query')")
|
||||||
|
@GetMapping(value = "/{stockId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("stockId") String stockId)
|
||||||
|
{
|
||||||
|
return success(viewStockWarningService.selectViewStockWarningByStockId(stockId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增预警库存查询
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('search:ViewStockWarning:add')")
|
||||||
|
@Log(title = "预警库存查询", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody ViewStockWarning viewStockWarning)
|
||||||
|
{
|
||||||
|
return toAjax(viewStockWarningService.insertViewStockWarning(viewStockWarning));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改预警库存查询
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('search:ViewStockWarning:edit')")
|
||||||
|
@Log(title = "预警库存查询", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody ViewStockWarning viewStockWarning)
|
||||||
|
{
|
||||||
|
return toAjax(viewStockWarningService.updateViewStockWarning(viewStockWarning));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预警库存查询
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('search:ViewStockWarning:remove')")
|
||||||
|
@Log(title = "预警库存查询", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{stockIds}")
|
||||||
|
public AjaxResult remove(@PathVariable String[] stockIds)
|
||||||
|
{
|
||||||
|
return toAjax(viewStockWarningService.deleteViewStockWarningByStockIds(stockIds));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,804 @@
|
|||||||
|
package com.ruoyi.search.ViewStockWarning.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_stock_warning
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-05-30
|
||||||
|
*/
|
||||||
|
public class ViewStockWarning extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 库存ID */
|
||||||
|
@Excel(name = "库存ID")
|
||||||
|
private String stockId;
|
||||||
|
|
||||||
|
/** 货位ID */
|
||||||
|
@Excel(name = "货位ID")
|
||||||
|
private String cargoSpaceId;
|
||||||
|
|
||||||
|
/** 库存状态 */
|
||||||
|
@Excel(name = "库存状态")
|
||||||
|
private String stockStatus;
|
||||||
|
|
||||||
|
/** 物料状态 */
|
||||||
|
@Excel(name = "物料状态")
|
||||||
|
private String productStatus;
|
||||||
|
|
||||||
|
/** 批次号 */
|
||||||
|
@Excel(name = "批次号")
|
||||||
|
private String lotNo;
|
||||||
|
|
||||||
|
/** 入库时间 */
|
||||||
|
@Excel(name = "入库时间")
|
||||||
|
private String inDate;
|
||||||
|
|
||||||
|
/** 回流时间 */
|
||||||
|
@Excel(name = "回流时间")
|
||||||
|
private String backDate;
|
||||||
|
|
||||||
|
/** 物料GUID */
|
||||||
|
@Excel(name = "物料GUID")
|
||||||
|
private String productGuid;
|
||||||
|
|
||||||
|
/** 库存数量 */
|
||||||
|
@Excel(name = "库存数量")
|
||||||
|
private String quantity;
|
||||||
|
|
||||||
|
/** 作业ID */
|
||||||
|
@Excel(name = "作业ID")
|
||||||
|
private String jobId;
|
||||||
|
|
||||||
|
/** 托盘条码 */
|
||||||
|
@Excel(name = "托盘条码")
|
||||||
|
private String trayCode;
|
||||||
|
|
||||||
|
/** 出库数量 */
|
||||||
|
@Excel(name = "出库数量")
|
||||||
|
private String outQuantity;
|
||||||
|
|
||||||
|
/** 入库子单ID */
|
||||||
|
@Excel(name = "入库子单ID")
|
||||||
|
private String stockinDetailId;
|
||||||
|
|
||||||
|
/** 入库主单 */
|
||||||
|
@Excel(name = "入库主单")
|
||||||
|
private String stockinId;
|
||||||
|
|
||||||
|
/** 入库类型 */
|
||||||
|
@Excel(name = "入库类型")
|
||||||
|
private String inType;
|
||||||
|
|
||||||
|
/** 入库班组ID */
|
||||||
|
@Excel(name = "入库班组ID")
|
||||||
|
private String inClassId;
|
||||||
|
|
||||||
|
/** 仓库ID */
|
||||||
|
@Excel(name = "仓库ID")
|
||||||
|
private String warehouseId;
|
||||||
|
|
||||||
|
/** 垛型ID */
|
||||||
|
@Excel(name = "垛型ID")
|
||||||
|
private String stackingId;
|
||||||
|
|
||||||
|
/** 预警标识 */
|
||||||
|
@Excel(name = "预警标识")
|
||||||
|
private String spare1;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private String spare2;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private String spare3;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private String spare4;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private String spare5;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private String spare6;
|
||||||
|
|
||||||
|
/** 物料ID */
|
||||||
|
@Excel(name = "物料ID")
|
||||||
|
private String productId;
|
||||||
|
|
||||||
|
/** 仓库名称 */
|
||||||
|
@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;
|
||||||
|
|
||||||
|
/** 货位名称 */
|
||||||
|
@Excel(name = "货位名称")
|
||||||
|
private String cargoSpaceName;
|
||||||
|
|
||||||
|
/** 巷道ID */
|
||||||
|
@Excel(name = "巷道ID")
|
||||||
|
private String roadwayId;
|
||||||
|
|
||||||
|
/** 货区ID */
|
||||||
|
@Excel(name = "货区ID")
|
||||||
|
private String cargoAreaId;
|
||||||
|
|
||||||
|
/** 货位类型 */
|
||||||
|
@Excel(name = "货位类型")
|
||||||
|
private String theType;
|
||||||
|
|
||||||
|
/** the_type_name: */
|
||||||
|
@Excel(name = "the_type_name:")
|
||||||
|
private String theTypeName;
|
||||||
|
|
||||||
|
/** 排 */
|
||||||
|
@Excel(name = "排")
|
||||||
|
private Long thePlatoon;
|
||||||
|
|
||||||
|
/** 列 */
|
||||||
|
@Excel(name = "列")
|
||||||
|
private Long theColumn;
|
||||||
|
|
||||||
|
/** 层 */
|
||||||
|
@Excel(name = "层")
|
||||||
|
private Long theFloor;
|
||||||
|
|
||||||
|
/** 货位状态 */
|
||||||
|
@Excel(name = "货位状态")
|
||||||
|
private String cargoStatus;
|
||||||
|
|
||||||
|
/** 是否锁定 */
|
||||||
|
@Excel(name = "是否锁定")
|
||||||
|
private String locked;
|
||||||
|
|
||||||
|
/** 货位高度 */
|
||||||
|
@Excel(name = "货位高度")
|
||||||
|
private String cargoHight;
|
||||||
|
|
||||||
|
/** 是否双伸 */
|
||||||
|
@Excel(name = "是否双伸")
|
||||||
|
private String issDouble;
|
||||||
|
|
||||||
|
/** 双货位分组编码 */
|
||||||
|
@Excel(name = "双货位分组编码")
|
||||||
|
private String groupCodingNo;
|
||||||
|
|
||||||
|
/** 双货位分组编码 */
|
||||||
|
@Excel(name = "双货位分组编码")
|
||||||
|
private String groupCoding;
|
||||||
|
|
||||||
|
/** 双货位标识 */
|
||||||
|
@Excel(name = "双货位标识")
|
||||||
|
private String cargoSpaceLogo;
|
||||||
|
|
||||||
|
/** 本仓库区域 */
|
||||||
|
@Excel(name = "本仓库区域")
|
||||||
|
private String thisCargoArea;
|
||||||
|
|
||||||
|
public void setStockId(String stockId)
|
||||||
|
{
|
||||||
|
this.stockId = stockId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStockId()
|
||||||
|
{
|
||||||
|
return stockId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCargoSpaceId(String cargoSpaceId)
|
||||||
|
{
|
||||||
|
this.cargoSpaceId = cargoSpaceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCargoSpaceId()
|
||||||
|
{
|
||||||
|
return cargoSpaceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStockStatus(String stockStatus)
|
||||||
|
{
|
||||||
|
this.stockStatus = stockStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStockStatus()
|
||||||
|
{
|
||||||
|
return stockStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProductStatus(String productStatus)
|
||||||
|
{
|
||||||
|
this.productStatus = productStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProductStatus()
|
||||||
|
{
|
||||||
|
return productStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLotNo(String lotNo)
|
||||||
|
{
|
||||||
|
this.lotNo = lotNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLotNo()
|
||||||
|
{
|
||||||
|
return lotNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInDate(String inDate)
|
||||||
|
{
|
||||||
|
this.inDate = inDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInDate()
|
||||||
|
{
|
||||||
|
return inDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBackDate(String backDate)
|
||||||
|
{
|
||||||
|
this.backDate = backDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBackDate()
|
||||||
|
{
|
||||||
|
return backDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProductGuid(String productGuid)
|
||||||
|
{
|
||||||
|
this.productGuid = productGuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProductGuid()
|
||||||
|
{
|
||||||
|
return productGuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQuantity(String quantity)
|
||||||
|
{
|
||||||
|
this.quantity = quantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getQuantity()
|
||||||
|
{
|
||||||
|
return quantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJobId(String jobId)
|
||||||
|
{
|
||||||
|
this.jobId = jobId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJobId()
|
||||||
|
{
|
||||||
|
return jobId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrayCode(String trayCode)
|
||||||
|
{
|
||||||
|
this.trayCode = trayCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTrayCode()
|
||||||
|
{
|
||||||
|
return trayCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOutQuantity(String outQuantity)
|
||||||
|
{
|
||||||
|
this.outQuantity = outQuantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOutQuantity()
|
||||||
|
{
|
||||||
|
return outQuantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStockinDetailId(String stockinDetailId)
|
||||||
|
{
|
||||||
|
this.stockinDetailId = stockinDetailId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStockinDetailId()
|
||||||
|
{
|
||||||
|
return stockinDetailId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStockinId(String stockinId)
|
||||||
|
{
|
||||||
|
this.stockinId = stockinId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStockinId()
|
||||||
|
{
|
||||||
|
return stockinId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInType(String inType)
|
||||||
|
{
|
||||||
|
this.inType = inType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInType()
|
||||||
|
{
|
||||||
|
return inType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInClassId(String inClassId)
|
||||||
|
{
|
||||||
|
this.inClassId = inClassId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInClassId()
|
||||||
|
{
|
||||||
|
return inClassId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWarehouseId(String warehouseId)
|
||||||
|
{
|
||||||
|
this.warehouseId = warehouseId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWarehouseId()
|
||||||
|
{
|
||||||
|
return warehouseId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStackingId(String stackingId)
|
||||||
|
{
|
||||||
|
this.stackingId = stackingId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStackingId()
|
||||||
|
{
|
||||||
|
return stackingId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpare1(String spare1)
|
||||||
|
{
|
||||||
|
this.spare1 = spare1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSpare1()
|
||||||
|
{
|
||||||
|
return spare1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpare2(String spare2)
|
||||||
|
{
|
||||||
|
this.spare2 = spare2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSpare2()
|
||||||
|
{
|
||||||
|
return spare2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpare3(String spare3)
|
||||||
|
{
|
||||||
|
this.spare3 = spare3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSpare3()
|
||||||
|
{
|
||||||
|
return spare3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpare4(String spare4)
|
||||||
|
{
|
||||||
|
this.spare4 = spare4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSpare4()
|
||||||
|
{
|
||||||
|
return spare4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpare5(String spare5)
|
||||||
|
{
|
||||||
|
this.spare5 = spare5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSpare5()
|
||||||
|
{
|
||||||
|
return spare5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpare6(String spare6)
|
||||||
|
{
|
||||||
|
this.spare6 = spare6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSpare6()
|
||||||
|
{
|
||||||
|
return spare6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProductId(String productId)
|
||||||
|
{
|
||||||
|
this.productId = productId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProductId()
|
||||||
|
{
|
||||||
|
return productId;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCargoSpaceName(String cargoSpaceName)
|
||||||
|
{
|
||||||
|
this.cargoSpaceName = cargoSpaceName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCargoSpaceName()
|
||||||
|
{
|
||||||
|
return cargoSpaceName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRoadwayId(String roadwayId)
|
||||||
|
{
|
||||||
|
this.roadwayId = roadwayId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRoadwayId()
|
||||||
|
{
|
||||||
|
return roadwayId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCargoAreaId(String cargoAreaId)
|
||||||
|
{
|
||||||
|
this.cargoAreaId = cargoAreaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCargoAreaId()
|
||||||
|
{
|
||||||
|
return cargoAreaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTheType(String theType)
|
||||||
|
{
|
||||||
|
this.theType = theType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTheType()
|
||||||
|
{
|
||||||
|
return theType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTheTypeName(String theTypeName)
|
||||||
|
{
|
||||||
|
this.theTypeName = theTypeName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTheTypeName()
|
||||||
|
{
|
||||||
|
return theTypeName;
|
||||||
|
}
|
||||||
|
|
||||||
|
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 setCargoStatus(String cargoStatus)
|
||||||
|
{
|
||||||
|
this.cargoStatus = cargoStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCargoStatus()
|
||||||
|
{
|
||||||
|
return cargoStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocked(String locked)
|
||||||
|
{
|
||||||
|
this.locked = locked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocked()
|
||||||
|
{
|
||||||
|
return locked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCargoHight(String cargoHight)
|
||||||
|
{
|
||||||
|
this.cargoHight = cargoHight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCargoHight()
|
||||||
|
{
|
||||||
|
return cargoHight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIssDouble(String issDouble)
|
||||||
|
{
|
||||||
|
this.issDouble = issDouble;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIssDouble()
|
||||||
|
{
|
||||||
|
return issDouble;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGroupCodingNo(String groupCodingNo)
|
||||||
|
{
|
||||||
|
this.groupCodingNo = groupCodingNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGroupCodingNo()
|
||||||
|
{
|
||||||
|
return groupCodingNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGroupCoding(String groupCoding)
|
||||||
|
{
|
||||||
|
this.groupCoding = groupCoding;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGroupCoding()
|
||||||
|
{
|
||||||
|
return groupCoding;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCargoSpaceLogo(String cargoSpaceLogo)
|
||||||
|
{
|
||||||
|
this.cargoSpaceLogo = cargoSpaceLogo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCargoSpaceLogo()
|
||||||
|
{
|
||||||
|
return cargoSpaceLogo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setThisCargoArea(String thisCargoArea)
|
||||||
|
{
|
||||||
|
this.thisCargoArea = thisCargoArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getThisCargoArea()
|
||||||
|
{
|
||||||
|
return thisCargoArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("stockId", getStockId())
|
||||||
|
.append("cargoSpaceId", getCargoSpaceId())
|
||||||
|
.append("stockStatus", getStockStatus())
|
||||||
|
.append("productStatus", getProductStatus())
|
||||||
|
.append("lotNo", getLotNo())
|
||||||
|
.append("inDate", getInDate())
|
||||||
|
.append("backDate", getBackDate())
|
||||||
|
.append("productGuid", getProductGuid())
|
||||||
|
.append("quantity", getQuantity())
|
||||||
|
.append("jobId", getJobId())
|
||||||
|
.append("trayCode", getTrayCode())
|
||||||
|
.append("outQuantity", getOutQuantity())
|
||||||
|
.append("stockinDetailId", getStockinDetailId())
|
||||||
|
.append("stockinId", getStockinId())
|
||||||
|
.append("inType", getInType())
|
||||||
|
.append("inClassId", getInClassId())
|
||||||
|
.append("warehouseId", getWarehouseId())
|
||||||
|
.append("stackingId", getStackingId())
|
||||||
|
.append("spare1", getSpare1())
|
||||||
|
.append("spare2", getSpare2())
|
||||||
|
.append("spare3", getSpare3())
|
||||||
|
.append("spare4", getSpare4())
|
||||||
|
.append("spare5", getSpare5())
|
||||||
|
.append("spare6", getSpare6())
|
||||||
|
.append("productId", getProductId())
|
||||||
|
.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())
|
||||||
|
.append("cargoSpaceName", getCargoSpaceName())
|
||||||
|
.append("roadwayId", getRoadwayId())
|
||||||
|
.append("cargoAreaId", getCargoAreaId())
|
||||||
|
.append("theType", getTheType())
|
||||||
|
.append("theTypeName", getTheTypeName())
|
||||||
|
.append("thePlatoon", getThePlatoon())
|
||||||
|
.append("theColumn", getTheColumn())
|
||||||
|
.append("theFloor", getTheFloor())
|
||||||
|
.append("cargoStatus", getCargoStatus())
|
||||||
|
.append("locked", getLocked())
|
||||||
|
.append("cargoHight", getCargoHight())
|
||||||
|
.append("issDouble", getIssDouble())
|
||||||
|
.append("groupCodingNo", getGroupCodingNo())
|
||||||
|
.append("groupCoding", getGroupCoding())
|
||||||
|
.append("cargoSpaceLogo", getCargoSpaceLogo())
|
||||||
|
.append("thisCargoArea", getThisCargoArea())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.search.ViewStockWarning.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.search.ViewStockWarning.domain.ViewStockWarning;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预警库存查询Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-05-30
|
||||||
|
*/
|
||||||
|
public interface ViewStockWarningMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询预警库存查询
|
||||||
|
*
|
||||||
|
* @param stockId 预警库存查询主键
|
||||||
|
* @return 预警库存查询
|
||||||
|
*/
|
||||||
|
public ViewStockWarning selectViewStockWarningByStockId(String stockId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预警库存查询列表
|
||||||
|
*
|
||||||
|
* @param viewStockWarning 预警库存查询
|
||||||
|
* @return 预警库存查询集合
|
||||||
|
*/
|
||||||
|
public List<ViewStockWarning> selectViewStockWarningList(ViewStockWarning viewStockWarning);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增预警库存查询
|
||||||
|
*
|
||||||
|
* @param viewStockWarning 预警库存查询
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertViewStockWarning(ViewStockWarning viewStockWarning);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改预警库存查询
|
||||||
|
*
|
||||||
|
* @param viewStockWarning 预警库存查询
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateViewStockWarning(ViewStockWarning viewStockWarning);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预警库存查询
|
||||||
|
*
|
||||||
|
* @param stockId 预警库存查询主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteViewStockWarningByStockId(String stockId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除预警库存查询
|
||||||
|
*
|
||||||
|
* @param stockIds 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteViewStockWarningByStockIds(String[] stockIds);
|
||||||
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.search.ViewStockWarning.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.search.ViewStockWarning.domain.ViewStockWarning;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预警库存查询Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-05-30
|
||||||
|
*/
|
||||||
|
public interface IViewStockWarningService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询预警库存查询
|
||||||
|
*
|
||||||
|
* @param stockId 预警库存查询主键
|
||||||
|
* @return 预警库存查询
|
||||||
|
*/
|
||||||
|
public ViewStockWarning selectViewStockWarningByStockId(String stockId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预警库存查询列表
|
||||||
|
*
|
||||||
|
* @param viewStockWarning 预警库存查询
|
||||||
|
* @return 预警库存查询集合
|
||||||
|
*/
|
||||||
|
public List<ViewStockWarning> selectViewStockWarningList(ViewStockWarning viewStockWarning);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增预警库存查询
|
||||||
|
*
|
||||||
|
* @param viewStockWarning 预警库存查询
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertViewStockWarning(ViewStockWarning viewStockWarning);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改预警库存查询
|
||||||
|
*
|
||||||
|
* @param viewStockWarning 预警库存查询
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateViewStockWarning(ViewStockWarning viewStockWarning);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除预警库存查询
|
||||||
|
*
|
||||||
|
* @param stockIds 需要删除的预警库存查询主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteViewStockWarningByStockIds(String[] stockIds);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预警库存查询信息
|
||||||
|
*
|
||||||
|
* @param stockId 预警库存查询主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteViewStockWarningByStockId(String stockId);
|
||||||
|
}
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
package com.ruoyi.search.ViewStockWarning.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.search.ViewStockWarning.mapper.ViewStockWarningMapper;
|
||||||
|
import com.ruoyi.search.ViewStockWarning.domain.ViewStockWarning;
|
||||||
|
import com.ruoyi.search.ViewStockWarning.service.IViewStockWarningService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预警库存查询Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-05-30
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ViewStockWarningServiceImpl implements IViewStockWarningService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ViewStockWarningMapper viewStockWarningMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预警库存查询
|
||||||
|
*
|
||||||
|
* @param stockId 预警库存查询主键
|
||||||
|
* @return 预警库存查询
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ViewStockWarning selectViewStockWarningByStockId(String stockId)
|
||||||
|
{
|
||||||
|
return viewStockWarningMapper.selectViewStockWarningByStockId(stockId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预警库存查询列表
|
||||||
|
*
|
||||||
|
* @param viewStockWarning 预警库存查询
|
||||||
|
* @return 预警库存查询
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ViewStockWarning> selectViewStockWarningList(ViewStockWarning viewStockWarning)
|
||||||
|
{
|
||||||
|
return viewStockWarningMapper.selectViewStockWarningList(viewStockWarning);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增预警库存查询
|
||||||
|
*
|
||||||
|
* @param viewStockWarning 预警库存查询
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertViewStockWarning(ViewStockWarning viewStockWarning)
|
||||||
|
{
|
||||||
|
return viewStockWarningMapper.insertViewStockWarning(viewStockWarning);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改预警库存查询
|
||||||
|
*
|
||||||
|
* @param viewStockWarning 预警库存查询
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateViewStockWarning(ViewStockWarning viewStockWarning)
|
||||||
|
{
|
||||||
|
return viewStockWarningMapper.updateViewStockWarning(viewStockWarning);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除预警库存查询
|
||||||
|
*
|
||||||
|
* @param stockIds 需要删除的预警库存查询主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteViewStockWarningByStockIds(String[] stockIds)
|
||||||
|
{
|
||||||
|
return viewStockWarningMapper.deleteViewStockWarningByStockIds(stockIds);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预警库存查询信息
|
||||||
|
*
|
||||||
|
* @param stockId 预警库存查询主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteViewStockWarningByStockId(String stockId)
|
||||||
|
{
|
||||||
|
return viewStockWarningMapper.deleteViewStockWarningByStockId(stockId);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,313 @@
|
|||||||
|
<?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.ViewStockSecure.mapper.ViewStockSecureMapper">
|
||||||
|
|
||||||
|
<resultMap type="ViewStockSecure" id="ViewStockSecureResult">
|
||||||
|
<result property="stockId" column="stock_id" />
|
||||||
|
<result property="cargoSpaceId" column="cargo_space_id" />
|
||||||
|
<result property="stockStatus" column="stock_status" />
|
||||||
|
<result property="productStatus" column="product_status" />
|
||||||
|
<result property="lotNo" column="lot_no" />
|
||||||
|
<result property="inDate" column="in_date" />
|
||||||
|
<result property="backDate" column="back_date" />
|
||||||
|
<result property="productGuid" column="product_guid" />
|
||||||
|
<result property="quantity" column="quantity" />
|
||||||
|
<result property="jobId" column="job_id" />
|
||||||
|
<result property="trayCode" column="tray_code" />
|
||||||
|
<result property="outQuantity" column="out_quantity" />
|
||||||
|
<result property="stockinDetailId" column="stockin_detail_id" />
|
||||||
|
<result property="stockinId" column="stockin_id" />
|
||||||
|
<result property="inType" column="in_type" />
|
||||||
|
<result property="inClassId" column="in_class_id" />
|
||||||
|
<result property="warehouseId" column="warehouse_id" />
|
||||||
|
<result property="stackingId" column="stacking_id" />
|
||||||
|
<result property="spare1" column="spare1" />
|
||||||
|
<result property="spare2" column="spare2" />
|
||||||
|
<result property="spare3" column="spare3" />
|
||||||
|
<result property="spare4" column="spare4" />
|
||||||
|
<result property="spare5" column="spare5" />
|
||||||
|
<result property="spare6" column="spare6" />
|
||||||
|
<result property="productId" column="product_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" />
|
||||||
|
<result property="cargoSpaceName" column="cargo_space_name" />
|
||||||
|
<result property="roadwayId" column="roadway_id" />
|
||||||
|
<result property="cargoAreaId" column="cargo_area_id" />
|
||||||
|
<result property="theType" column="the_type" />
|
||||||
|
<result property="theTypeName" column="the_type_name" />
|
||||||
|
<result property="thePlatoon" column="the_platoon" />
|
||||||
|
<result property="theColumn" column="the_column" />
|
||||||
|
<result property="theFloor" column="the_floor" />
|
||||||
|
<result property="cargoStatus" column="cargo_status" />
|
||||||
|
<result property="locked" column="locked" />
|
||||||
|
<result property="cargoHight" column="cargo_hight" />
|
||||||
|
<result property="issDouble" column="iss_double" />
|
||||||
|
<result property="groupCodingNo" column="group_coding_no" />
|
||||||
|
<result property="groupCoding" column="group_coding" />
|
||||||
|
<result property="cargoSpaceLogo" column="cargo_space_logo" />
|
||||||
|
<result property="thisCargoArea" column="this_cargo_area" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectViewStockSecureVo">
|
||||||
|
select stock_id, cargo_space_id, stock_status, product_status, lot_no, in_date, back_date, product_guid, quantity, job_id, tray_code, out_quantity, stockin_detail_id, stockin_id, in_type, in_class_id, warehouse_id, stacking_id, spare1, spare2, spare3, spare4, spare5, spare6, product_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, product_name, spec, cargo_no, unit, price, remark, cargo_space_name, roadway_id, cargo_area_id, the_type, the_type_name, the_platoon, the_column, the_floor, cargo_status, locked, cargo_hight, iss_double, group_coding_no, group_coding, cargo_space_logo, this_cargo_area from view_stock_secure
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectViewStockSecureList" parameterType="ViewStockSecure" resultMap="ViewStockSecureResult">
|
||||||
|
<include refid="selectViewStockSecureVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="stockId != null and stockId != ''"> and stock_id like concat('%', #{stockId}, '%')</if>
|
||||||
|
<if test="cargoSpaceId != null and cargoSpaceId != ''"> and cargo_space_id like concat('%', #{cargoSpaceId}, '%')</if>
|
||||||
|
<if test="stockStatus != null and stockStatus != ''"> and stock_status like concat('%', #{stockStatus}, '%')</if>
|
||||||
|
<if test="productStatus != null and productStatus != ''"> and product_status like concat('%', #{productStatus}, '%')</if>
|
||||||
|
<if test="lotNo != null and lotNo != ''"> and lot_no like concat('%', #{lotNo}, '%')</if>
|
||||||
|
<if test="inDate != null and inDate != ''"> and in_date like concat('%', #{inDate}, '%')</if>
|
||||||
|
<if test="backDate != null and backDate != ''"> and back_date like concat('%', #{backDate}, '%')</if>
|
||||||
|
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
|
||||||
|
<if test="quantity != null and quantity != ''"> and quantity like concat('%', #{quantity}, '%')</if>
|
||||||
|
<if test="jobId != null and jobId != ''"> and job_id like concat('%', #{jobId}, '%')</if>
|
||||||
|
<if test="trayCode != null and trayCode != ''"> and tray_code like concat('%', #{trayCode}, '%')</if>
|
||||||
|
<if test="outQuantity != null and outQuantity != ''"> and out_quantity like concat('%', #{outQuantity}, '%')</if>
|
||||||
|
<if test="stockinDetailId != null and stockinDetailId != ''"> and stockin_detail_id like concat('%', #{stockinDetailId}, '%')</if>
|
||||||
|
<if test="stockinId != null and stockinId != ''"> and stockin_id like concat('%', #{stockinId}, '%')</if>
|
||||||
|
<if test="inType != null and inType != ''"> and in_type like concat('%', #{inType}, '%')</if>
|
||||||
|
<if test="inClassId != null and inClassId != ''"> and in_class_id like concat('%', #{inClassId}, '%')</if>
|
||||||
|
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||||
|
<if test="stackingId != null and stackingId != ''"> and stacking_id like concat('%', #{stackingId}, '%')</if>
|
||||||
|
<if test="spare1 != null and spare1 != ''"> and spare1 like concat('%', #{spare1}, '%')</if>
|
||||||
|
<if test="spare2 != null and spare2 != ''"> and spare2 like concat('%', #{spare2}, '%')</if>
|
||||||
|
<if test="spare3 != null and spare3 != ''"> and spare3 like concat('%', #{spare3}, '%')</if>
|
||||||
|
<if test="spare4 != null and spare4 != ''"> and spare4 like concat('%', #{spare4}, '%')</if>
|
||||||
|
<if test="spare5 != null and spare5 != ''"> and spare5 like concat('%', #{spare5}, '%')</if>
|
||||||
|
<if test="spare6 != null and spare6 != ''"> and spare6 like concat('%', #{spare6}, '%')</if>
|
||||||
|
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</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>
|
||||||
|
<if test="cargoSpaceName != null and cargoSpaceName != ''"> and cargo_space_name like concat('%', #{cargoSpaceName}, '%')</if>
|
||||||
|
<if test="roadwayId != null and roadwayId != ''"> and roadway_id like concat('%', #{roadwayId}, '%')</if>
|
||||||
|
<if test="cargoAreaId != null and cargoAreaId != ''"> and cargo_area_id like concat('%', #{cargoAreaId}, '%')</if>
|
||||||
|
<if test="theType != null and theType != ''"> and the_type like concat('%', #{theType}, '%')</if>
|
||||||
|
<if test="theTypeName != null and theTypeName != ''"> and the_type_name like concat('%', #{theTypeName}, '%')</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="cargoStatus != null and cargoStatus != ''"> and cargo_status like concat('%', #{cargoStatus}, '%')</if>
|
||||||
|
<if test="locked != null and locked != ''"> and locked like concat('%', #{locked}, '%')</if>
|
||||||
|
<if test="cargoHight != null and cargoHight != ''"> and cargo_hight like concat('%', #{cargoHight}, '%')</if>
|
||||||
|
<if test="issDouble != null and issDouble != ''"> and iss_double like concat('%', #{issDouble}, '%')</if>
|
||||||
|
<if test="groupCodingNo != null and groupCodingNo != ''"> and group_coding_no like concat('%', #{groupCodingNo}, '%')</if>
|
||||||
|
<if test="groupCoding != null and groupCoding != ''"> and group_coding like concat('%', #{groupCoding}, '%')</if>
|
||||||
|
<if test="cargoSpaceLogo != null and cargoSpaceLogo != ''"> and cargo_space_logo like concat('%', #{cargoSpaceLogo}, '%')</if>
|
||||||
|
<if test="thisCargoArea != null and thisCargoArea != ''"> and this_cargo_area like concat('%', #{thisCargoArea}, '%')</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectViewStockSecureByStockId" parameterType="String" resultMap="ViewStockSecureResult">
|
||||||
|
<include refid="selectViewStockSecureVo"/>
|
||||||
|
where stock_id = #{stockId}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertViewStockSecure" parameterType="ViewStockSecure">
|
||||||
|
insert into view_stock_secure
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="stockId != null and stockId != ''">stock_id,</if>
|
||||||
|
<if test="cargoSpaceId != null">cargo_space_id,</if>
|
||||||
|
<if test="stockStatus != null">stock_status,</if>
|
||||||
|
<if test="productStatus != null">product_status,</if>
|
||||||
|
<if test="lotNo != null">lot_no,</if>
|
||||||
|
<if test="inDate != null">in_date,</if>
|
||||||
|
<if test="backDate != null">back_date,</if>
|
||||||
|
<if test="productGuid != null">product_guid,</if>
|
||||||
|
<if test="quantity != null">quantity,</if>
|
||||||
|
<if test="jobId != null">job_id,</if>
|
||||||
|
<if test="trayCode != null">tray_code,</if>
|
||||||
|
<if test="outQuantity != null">out_quantity,</if>
|
||||||
|
<if test="stockinDetailId != null">stockin_detail_id,</if>
|
||||||
|
<if test="stockinId != null">stockin_id,</if>
|
||||||
|
<if test="inType != null">in_type,</if>
|
||||||
|
<if test="inClassId != null">in_class_id,</if>
|
||||||
|
<if test="warehouseId != null">warehouse_id,</if>
|
||||||
|
<if test="stackingId != null">stacking_id,</if>
|
||||||
|
<if test="spare1 != null">spare1,</if>
|
||||||
|
<if test="spare2 != null">spare2,</if>
|
||||||
|
<if test="spare3 != null">spare3,</if>
|
||||||
|
<if test="spare4 != null">spare4,</if>
|
||||||
|
<if test="spare5 != null">spare5,</if>
|
||||||
|
<if test="spare6 != null">spare6,</if>
|
||||||
|
<if test="productId != null">product_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>
|
||||||
|
<if test="cargoSpaceName != null">cargo_space_name,</if>
|
||||||
|
<if test="roadwayId != null">roadway_id,</if>
|
||||||
|
<if test="cargoAreaId != null">cargo_area_id,</if>
|
||||||
|
<if test="theType != null">the_type,</if>
|
||||||
|
<if test="theTypeName != null">the_type_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="cargoStatus != null">cargo_status,</if>
|
||||||
|
<if test="locked != null">locked,</if>
|
||||||
|
<if test="cargoHight != null">cargo_hight,</if>
|
||||||
|
<if test="issDouble != null">iss_double,</if>
|
||||||
|
<if test="groupCodingNo != null">group_coding_no,</if>
|
||||||
|
<if test="groupCoding != null">group_coding,</if>
|
||||||
|
<if test="cargoSpaceLogo != null">cargo_space_logo,</if>
|
||||||
|
<if test="thisCargoArea != null">this_cargo_area,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="stockId != null and stockId != ''">#{stockId},</if>
|
||||||
|
<if test="cargoSpaceId != null">#{cargoSpaceId},</if>
|
||||||
|
<if test="stockStatus != null">#{stockStatus},</if>
|
||||||
|
<if test="productStatus != null">#{productStatus},</if>
|
||||||
|
<if test="lotNo != null">#{lotNo},</if>
|
||||||
|
<if test="inDate != null">#{inDate},</if>
|
||||||
|
<if test="backDate != null">#{backDate},</if>
|
||||||
|
<if test="productGuid != null">#{productGuid},</if>
|
||||||
|
<if test="quantity != null">#{quantity},</if>
|
||||||
|
<if test="jobId != null">#{jobId},</if>
|
||||||
|
<if test="trayCode != null">#{trayCode},</if>
|
||||||
|
<if test="outQuantity != null">#{outQuantity},</if>
|
||||||
|
<if test="stockinDetailId != null">#{stockinDetailId},</if>
|
||||||
|
<if test="stockinId != null">#{stockinId},</if>
|
||||||
|
<if test="inType != null">#{inType},</if>
|
||||||
|
<if test="inClassId != null">#{inClassId},</if>
|
||||||
|
<if test="warehouseId != null">#{warehouseId},</if>
|
||||||
|
<if test="stackingId != null">#{stackingId},</if>
|
||||||
|
<if test="spare1 != null">#{spare1},</if>
|
||||||
|
<if test="spare2 != null">#{spare2},</if>
|
||||||
|
<if test="spare3 != null">#{spare3},</if>
|
||||||
|
<if test="spare4 != null">#{spare4},</if>
|
||||||
|
<if test="spare5 != null">#{spare5},</if>
|
||||||
|
<if test="spare6 != null">#{spare6},</if>
|
||||||
|
<if test="productId != null">#{productId},</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>
|
||||||
|
<if test="cargoSpaceName != null">#{cargoSpaceName},</if>
|
||||||
|
<if test="roadwayId != null">#{roadwayId},</if>
|
||||||
|
<if test="cargoAreaId != null">#{cargoAreaId},</if>
|
||||||
|
<if test="theType != null">#{theType},</if>
|
||||||
|
<if test="theTypeName != null">#{theTypeName},</if>
|
||||||
|
<if test="thePlatoon != null">#{thePlatoon},</if>
|
||||||
|
<if test="theColumn != null">#{theColumn},</if>
|
||||||
|
<if test="theFloor != null">#{theFloor},</if>
|
||||||
|
<if test="cargoStatus != null">#{cargoStatus},</if>
|
||||||
|
<if test="locked != null">#{locked},</if>
|
||||||
|
<if test="cargoHight != null">#{cargoHight},</if>
|
||||||
|
<if test="issDouble != null">#{issDouble},</if>
|
||||||
|
<if test="groupCodingNo != null">#{groupCodingNo},</if>
|
||||||
|
<if test="groupCoding != null">#{groupCoding},</if>
|
||||||
|
<if test="cargoSpaceLogo != null">#{cargoSpaceLogo},</if>
|
||||||
|
<if test="thisCargoArea != null">#{thisCargoArea},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateViewStockSecure" parameterType="ViewStockSecure">
|
||||||
|
update view_stock_secure
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="cargoSpaceId != null">cargo_space_id = #{cargoSpaceId},</if>
|
||||||
|
<if test="stockStatus != null">stock_status = #{stockStatus},</if>
|
||||||
|
<if test="productStatus != null">product_status = #{productStatus},</if>
|
||||||
|
<if test="lotNo != null">lot_no = #{lotNo},</if>
|
||||||
|
<if test="inDate != null">in_date = #{inDate},</if>
|
||||||
|
<if test="backDate != null">back_date = #{backDate},</if>
|
||||||
|
<if test="productGuid != null">product_guid = #{productGuid},</if>
|
||||||
|
<if test="quantity != null">quantity = #{quantity},</if>
|
||||||
|
<if test="jobId != null">job_id = #{jobId},</if>
|
||||||
|
<if test="trayCode != null">tray_code = #{trayCode},</if>
|
||||||
|
<if test="outQuantity != null">out_quantity = #{outQuantity},</if>
|
||||||
|
<if test="stockinDetailId != null">stockin_detail_id = #{stockinDetailId},</if>
|
||||||
|
<if test="stockinId != null">stockin_id = #{stockinId},</if>
|
||||||
|
<if test="inType != null">in_type = #{inType},</if>
|
||||||
|
<if test="inClassId != null">in_class_id = #{inClassId},</if>
|
||||||
|
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||||
|
<if test="stackingId != null">stacking_id = #{stackingId},</if>
|
||||||
|
<if test="spare1 != null">spare1 = #{spare1},</if>
|
||||||
|
<if test="spare2 != null">spare2 = #{spare2},</if>
|
||||||
|
<if test="spare3 != null">spare3 = #{spare3},</if>
|
||||||
|
<if test="spare4 != null">spare4 = #{spare4},</if>
|
||||||
|
<if test="spare5 != null">spare5 = #{spare5},</if>
|
||||||
|
<if test="spare6 != null">spare6 = #{spare6},</if>
|
||||||
|
<if test="productId != null">product_id = #{productId},</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>
|
||||||
|
<if test="cargoSpaceName != null">cargo_space_name = #{cargoSpaceName},</if>
|
||||||
|
<if test="roadwayId != null">roadway_id = #{roadwayId},</if>
|
||||||
|
<if test="cargoAreaId != null">cargo_area_id = #{cargoAreaId},</if>
|
||||||
|
<if test="theType != null">the_type = #{theType},</if>
|
||||||
|
<if test="theTypeName != null">the_type_name = #{theTypeName},</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="cargoStatus != null">cargo_status = #{cargoStatus},</if>
|
||||||
|
<if test="locked != null">locked = #{locked},</if>
|
||||||
|
<if test="cargoHight != null">cargo_hight = #{cargoHight},</if>
|
||||||
|
<if test="issDouble != null">iss_double = #{issDouble},</if>
|
||||||
|
<if test="groupCodingNo != null">group_coding_no = #{groupCodingNo},</if>
|
||||||
|
<if test="groupCoding != null">group_coding = #{groupCoding},</if>
|
||||||
|
<if test="cargoSpaceLogo != null">cargo_space_logo = #{cargoSpaceLogo},</if>
|
||||||
|
<if test="thisCargoArea != null">this_cargo_area = #{thisCargoArea},</if>
|
||||||
|
</trim>
|
||||||
|
where stock_id = #{stockId}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteViewStockSecureByStockId" parameterType="String">
|
||||||
|
delete from view_stock_secure where stock_id = #{stockId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteViewStockSecureByStockIds" parameterType="String">
|
||||||
|
delete from view_stock_secure where stock_id in
|
||||||
|
<foreach item="stockId" collection="array" open="(" separator="," close=")">
|
||||||
|
#{stockId}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,313 @@
|
|||||||
|
<?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.ViewStockWarning.mapper.ViewStockWarningMapper">
|
||||||
|
|
||||||
|
<resultMap type="ViewStockWarning" id="ViewStockWarningResult">
|
||||||
|
<result property="stockId" column="stock_id" />
|
||||||
|
<result property="cargoSpaceId" column="cargo_space_id" />
|
||||||
|
<result property="stockStatus" column="stock_status" />
|
||||||
|
<result property="productStatus" column="product_status" />
|
||||||
|
<result property="lotNo" column="lot_no" />
|
||||||
|
<result property="inDate" column="in_date" />
|
||||||
|
<result property="backDate" column="back_date" />
|
||||||
|
<result property="productGuid" column="product_guid" />
|
||||||
|
<result property="quantity" column="quantity" />
|
||||||
|
<result property="jobId" column="job_id" />
|
||||||
|
<result property="trayCode" column="tray_code" />
|
||||||
|
<result property="outQuantity" column="out_quantity" />
|
||||||
|
<result property="stockinDetailId" column="stockin_detail_id" />
|
||||||
|
<result property="stockinId" column="stockin_id" />
|
||||||
|
<result property="inType" column="in_type" />
|
||||||
|
<result property="inClassId" column="in_class_id" />
|
||||||
|
<result property="warehouseId" column="warehouse_id" />
|
||||||
|
<result property="stackingId" column="stacking_id" />
|
||||||
|
<result property="spare1" column="spare1" />
|
||||||
|
<result property="spare2" column="spare2" />
|
||||||
|
<result property="spare3" column="spare3" />
|
||||||
|
<result property="spare4" column="spare4" />
|
||||||
|
<result property="spare5" column="spare5" />
|
||||||
|
<result property="spare6" column="spare6" />
|
||||||
|
<result property="productId" column="product_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" />
|
||||||
|
<result property="cargoSpaceName" column="cargo_space_name" />
|
||||||
|
<result property="roadwayId" column="roadway_id" />
|
||||||
|
<result property="cargoAreaId" column="cargo_area_id" />
|
||||||
|
<result property="theType" column="the_type" />
|
||||||
|
<result property="theTypeName" column="the_type_name" />
|
||||||
|
<result property="thePlatoon" column="the_platoon" />
|
||||||
|
<result property="theColumn" column="the_column" />
|
||||||
|
<result property="theFloor" column="the_floor" />
|
||||||
|
<result property="cargoStatus" column="cargo_status" />
|
||||||
|
<result property="locked" column="locked" />
|
||||||
|
<result property="cargoHight" column="cargo_hight" />
|
||||||
|
<result property="issDouble" column="iss_double" />
|
||||||
|
<result property="groupCodingNo" column="group_coding_no" />
|
||||||
|
<result property="groupCoding" column="group_coding" />
|
||||||
|
<result property="cargoSpaceLogo" column="cargo_space_logo" />
|
||||||
|
<result property="thisCargoArea" column="this_cargo_area" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectViewStockWarningVo">
|
||||||
|
select stock_id, cargo_space_id, stock_status, product_status, lot_no, in_date, back_date, product_guid, quantity, job_id, tray_code, out_quantity, stockin_detail_id, stockin_id, in_type, in_class_id, warehouse_id, stacking_id, spare1, spare2, spare3, spare4, spare5, spare6, product_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, product_name, spec, cargo_no, unit, price, remark, cargo_space_name, roadway_id, cargo_area_id, the_type, the_type_name, the_platoon, the_column, the_floor, cargo_status, locked, cargo_hight, iss_double, group_coding_no, group_coding, cargo_space_logo, this_cargo_area from view_stock_warning
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectViewStockWarningList" parameterType="ViewStockWarning" resultMap="ViewStockWarningResult">
|
||||||
|
<include refid="selectViewStockWarningVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="stockId != null and stockId != ''"> and stock_id = #{stockId}</if>
|
||||||
|
<if test="cargoSpaceId != null and cargoSpaceId != ''"> and cargo_space_id like concat('%', #{cargoSpaceId}, '%')</if>
|
||||||
|
<if test="stockStatus != null and stockStatus != ''"> and stock_status like concat('%', #{stockStatus}, '%')</if>
|
||||||
|
<if test="productStatus != null and productStatus != ''"> and product_status like concat('%', #{productStatus}, '%')</if>
|
||||||
|
<if test="lotNo != null and lotNo != ''"> and lot_no like concat('%', #{lotNo}, '%')</if>
|
||||||
|
<if test="inDate != null and inDate != ''"> and in_date like concat('%', #{inDate}, '%')</if>
|
||||||
|
<if test="backDate != null and backDate != ''"> and back_date like concat('%', #{backDate}, '%')</if>
|
||||||
|
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
|
||||||
|
<if test="quantity != null and quantity != ''"> and quantity like concat('%', #{quantity}, '%')</if>
|
||||||
|
<if test="jobId != null and jobId != ''"> and job_id like concat('%', #{jobId}, '%')</if>
|
||||||
|
<if test="trayCode != null and trayCode != ''"> and tray_code like concat('%', #{trayCode}, '%')</if>
|
||||||
|
<if test="outQuantity != null and outQuantity != ''"> and out_quantity like concat('%', #{outQuantity}, '%')</if>
|
||||||
|
<if test="stockinDetailId != null and stockinDetailId != ''"> and stockin_detail_id like concat('%', #{stockinDetailId}, '%')</if>
|
||||||
|
<if test="stockinId != null and stockinId != ''"> and stockin_id like concat('%', #{stockinId}, '%')</if>
|
||||||
|
<if test="inType != null and inType != ''"> and in_type like concat('%', #{inType}, '%')</if>
|
||||||
|
<if test="inClassId != null and inClassId != ''"> and in_class_id like concat('%', #{inClassId}, '%')</if>
|
||||||
|
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||||
|
<if test="stackingId != null and stackingId != ''"> and stacking_id like concat('%', #{stackingId}, '%')</if>
|
||||||
|
<if test="spare1 != null and spare1 != ''"> and spare1 like concat('%', #{spare1}, '%')</if>
|
||||||
|
<if test="spare2 != null and spare2 != ''"> and spare2 like concat('%', #{spare2}, '%')</if>
|
||||||
|
<if test="spare3 != null and spare3 != ''"> and spare3 like concat('%', #{spare3}, '%')</if>
|
||||||
|
<if test="spare4 != null and spare4 != ''"> and spare4 like concat('%', #{spare4}, '%')</if>
|
||||||
|
<if test="spare5 != null and spare5 != ''"> and spare5 like concat('%', #{spare5}, '%')</if>
|
||||||
|
<if test="spare6 != null and spare6 != ''"> and spare6 like concat('%', #{spare6}, '%')</if>
|
||||||
|
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</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>
|
||||||
|
<if test="cargoSpaceName != null and cargoSpaceName != ''"> and cargo_space_name like concat('%', #{cargoSpaceName}, '%')</if>
|
||||||
|
<if test="roadwayId != null and roadwayId != ''"> and roadway_id like concat('%', #{roadwayId}, '%')</if>
|
||||||
|
<if test="cargoAreaId != null and cargoAreaId != ''"> and cargo_area_id like concat('%', #{cargoAreaId}, '%')</if>
|
||||||
|
<if test="theType != null and theType != ''"> and the_type like concat('%', #{theType}, '%')</if>
|
||||||
|
<if test="theTypeName != null and theTypeName != ''"> and the_type_name like concat('%', #{theTypeName}, '%')</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="cargoStatus != null and cargoStatus != ''"> and cargo_status like concat('%', #{cargoStatus}, '%')</if>
|
||||||
|
<if test="locked != null and locked != ''"> and locked like concat('%', #{locked}, '%')</if>
|
||||||
|
<if test="cargoHight != null and cargoHight != ''"> and cargo_hight like concat('%', #{cargoHight}, '%')</if>
|
||||||
|
<if test="issDouble != null and issDouble != ''"> and iss_double like concat('%', #{issDouble}, '%')</if>
|
||||||
|
<if test="groupCodingNo != null and groupCodingNo != ''"> and group_coding_no like concat('%', #{groupCodingNo}, '%')</if>
|
||||||
|
<if test="groupCoding != null and groupCoding != ''"> and group_coding like concat('%', #{groupCoding}, '%')</if>
|
||||||
|
<if test="cargoSpaceLogo != null and cargoSpaceLogo != ''"> and cargo_space_logo like concat('%', #{cargoSpaceLogo}, '%')</if>
|
||||||
|
<if test="thisCargoArea != null and thisCargoArea != ''"> and this_cargo_area like concat('%', #{thisCargoArea}, '%')</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectViewStockWarningByStockId" parameterType="String" resultMap="ViewStockWarningResult">
|
||||||
|
<include refid="selectViewStockWarningVo"/>
|
||||||
|
where stock_id = #{stockId}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertViewStockWarning" parameterType="ViewStockWarning">
|
||||||
|
insert into view_stock_warning
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="stockId != null and stockId != ''">stock_id,</if>
|
||||||
|
<if test="cargoSpaceId != null">cargo_space_id,</if>
|
||||||
|
<if test="stockStatus != null">stock_status,</if>
|
||||||
|
<if test="productStatus != null">product_status,</if>
|
||||||
|
<if test="lotNo != null">lot_no,</if>
|
||||||
|
<if test="inDate != null">in_date,</if>
|
||||||
|
<if test="backDate != null">back_date,</if>
|
||||||
|
<if test="productGuid != null">product_guid,</if>
|
||||||
|
<if test="quantity != null">quantity,</if>
|
||||||
|
<if test="jobId != null">job_id,</if>
|
||||||
|
<if test="trayCode != null">tray_code,</if>
|
||||||
|
<if test="outQuantity != null">out_quantity,</if>
|
||||||
|
<if test="stockinDetailId != null">stockin_detail_id,</if>
|
||||||
|
<if test="stockinId != null">stockin_id,</if>
|
||||||
|
<if test="inType != null">in_type,</if>
|
||||||
|
<if test="inClassId != null">in_class_id,</if>
|
||||||
|
<if test="warehouseId != null">warehouse_id,</if>
|
||||||
|
<if test="stackingId != null">stacking_id,</if>
|
||||||
|
<if test="spare1 != null">spare1,</if>
|
||||||
|
<if test="spare2 != null">spare2,</if>
|
||||||
|
<if test="spare3 != null">spare3,</if>
|
||||||
|
<if test="spare4 != null">spare4,</if>
|
||||||
|
<if test="spare5 != null">spare5,</if>
|
||||||
|
<if test="spare6 != null">spare6,</if>
|
||||||
|
<if test="productId != null">product_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>
|
||||||
|
<if test="cargoSpaceName != null">cargo_space_name,</if>
|
||||||
|
<if test="roadwayId != null">roadway_id,</if>
|
||||||
|
<if test="cargoAreaId != null">cargo_area_id,</if>
|
||||||
|
<if test="theType != null">the_type,</if>
|
||||||
|
<if test="theTypeName != null">the_type_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="cargoStatus != null">cargo_status,</if>
|
||||||
|
<if test="locked != null">locked,</if>
|
||||||
|
<if test="cargoHight != null">cargo_hight,</if>
|
||||||
|
<if test="issDouble != null">iss_double,</if>
|
||||||
|
<if test="groupCodingNo != null">group_coding_no,</if>
|
||||||
|
<if test="groupCoding != null">group_coding,</if>
|
||||||
|
<if test="cargoSpaceLogo != null">cargo_space_logo,</if>
|
||||||
|
<if test="thisCargoArea != null">this_cargo_area,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="stockId != null and stockId != ''">#{stockId},</if>
|
||||||
|
<if test="cargoSpaceId != null">#{cargoSpaceId},</if>
|
||||||
|
<if test="stockStatus != null">#{stockStatus},</if>
|
||||||
|
<if test="productStatus != null">#{productStatus},</if>
|
||||||
|
<if test="lotNo != null">#{lotNo},</if>
|
||||||
|
<if test="inDate != null">#{inDate},</if>
|
||||||
|
<if test="backDate != null">#{backDate},</if>
|
||||||
|
<if test="productGuid != null">#{productGuid},</if>
|
||||||
|
<if test="quantity != null">#{quantity},</if>
|
||||||
|
<if test="jobId != null">#{jobId},</if>
|
||||||
|
<if test="trayCode != null">#{trayCode},</if>
|
||||||
|
<if test="outQuantity != null">#{outQuantity},</if>
|
||||||
|
<if test="stockinDetailId != null">#{stockinDetailId},</if>
|
||||||
|
<if test="stockinId != null">#{stockinId},</if>
|
||||||
|
<if test="inType != null">#{inType},</if>
|
||||||
|
<if test="inClassId != null">#{inClassId},</if>
|
||||||
|
<if test="warehouseId != null">#{warehouseId},</if>
|
||||||
|
<if test="stackingId != null">#{stackingId},</if>
|
||||||
|
<if test="spare1 != null">#{spare1},</if>
|
||||||
|
<if test="spare2 != null">#{spare2},</if>
|
||||||
|
<if test="spare3 != null">#{spare3},</if>
|
||||||
|
<if test="spare4 != null">#{spare4},</if>
|
||||||
|
<if test="spare5 != null">#{spare5},</if>
|
||||||
|
<if test="spare6 != null">#{spare6},</if>
|
||||||
|
<if test="productId != null">#{productId},</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>
|
||||||
|
<if test="cargoSpaceName != null">#{cargoSpaceName},</if>
|
||||||
|
<if test="roadwayId != null">#{roadwayId},</if>
|
||||||
|
<if test="cargoAreaId != null">#{cargoAreaId},</if>
|
||||||
|
<if test="theType != null">#{theType},</if>
|
||||||
|
<if test="theTypeName != null">#{theTypeName},</if>
|
||||||
|
<if test="thePlatoon != null">#{thePlatoon},</if>
|
||||||
|
<if test="theColumn != null">#{theColumn},</if>
|
||||||
|
<if test="theFloor != null">#{theFloor},</if>
|
||||||
|
<if test="cargoStatus != null">#{cargoStatus},</if>
|
||||||
|
<if test="locked != null">#{locked},</if>
|
||||||
|
<if test="cargoHight != null">#{cargoHight},</if>
|
||||||
|
<if test="issDouble != null">#{issDouble},</if>
|
||||||
|
<if test="groupCodingNo != null">#{groupCodingNo},</if>
|
||||||
|
<if test="groupCoding != null">#{groupCoding},</if>
|
||||||
|
<if test="cargoSpaceLogo != null">#{cargoSpaceLogo},</if>
|
||||||
|
<if test="thisCargoArea != null">#{thisCargoArea},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateViewStockWarning" parameterType="ViewStockWarning">
|
||||||
|
update view_stock_warning
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="cargoSpaceId != null">cargo_space_id = #{cargoSpaceId},</if>
|
||||||
|
<if test="stockStatus != null">stock_status = #{stockStatus},</if>
|
||||||
|
<if test="productStatus != null">product_status = #{productStatus},</if>
|
||||||
|
<if test="lotNo != null">lot_no = #{lotNo},</if>
|
||||||
|
<if test="inDate != null">in_date = #{inDate},</if>
|
||||||
|
<if test="backDate != null">back_date = #{backDate},</if>
|
||||||
|
<if test="productGuid != null">product_guid = #{productGuid},</if>
|
||||||
|
<if test="quantity != null">quantity = #{quantity},</if>
|
||||||
|
<if test="jobId != null">job_id = #{jobId},</if>
|
||||||
|
<if test="trayCode != null">tray_code = #{trayCode},</if>
|
||||||
|
<if test="outQuantity != null">out_quantity = #{outQuantity},</if>
|
||||||
|
<if test="stockinDetailId != null">stockin_detail_id = #{stockinDetailId},</if>
|
||||||
|
<if test="stockinId != null">stockin_id = #{stockinId},</if>
|
||||||
|
<if test="inType != null">in_type = #{inType},</if>
|
||||||
|
<if test="inClassId != null">in_class_id = #{inClassId},</if>
|
||||||
|
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||||
|
<if test="stackingId != null">stacking_id = #{stackingId},</if>
|
||||||
|
<if test="spare1 != null">spare1 = #{spare1},</if>
|
||||||
|
<if test="spare2 != null">spare2 = #{spare2},</if>
|
||||||
|
<if test="spare3 != null">spare3 = #{spare3},</if>
|
||||||
|
<if test="spare4 != null">spare4 = #{spare4},</if>
|
||||||
|
<if test="spare5 != null">spare5 = #{spare5},</if>
|
||||||
|
<if test="spare6 != null">spare6 = #{spare6},</if>
|
||||||
|
<if test="productId != null">product_id = #{productId},</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>
|
||||||
|
<if test="cargoSpaceName != null">cargo_space_name = #{cargoSpaceName},</if>
|
||||||
|
<if test="roadwayId != null">roadway_id = #{roadwayId},</if>
|
||||||
|
<if test="cargoAreaId != null">cargo_area_id = #{cargoAreaId},</if>
|
||||||
|
<if test="theType != null">the_type = #{theType},</if>
|
||||||
|
<if test="theTypeName != null">the_type_name = #{theTypeName},</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="cargoStatus != null">cargo_status = #{cargoStatus},</if>
|
||||||
|
<if test="locked != null">locked = #{locked},</if>
|
||||||
|
<if test="cargoHight != null">cargo_hight = #{cargoHight},</if>
|
||||||
|
<if test="issDouble != null">iss_double = #{issDouble},</if>
|
||||||
|
<if test="groupCodingNo != null">group_coding_no = #{groupCodingNo},</if>
|
||||||
|
<if test="groupCoding != null">group_coding = #{groupCoding},</if>
|
||||||
|
<if test="cargoSpaceLogo != null">cargo_space_logo = #{cargoSpaceLogo},</if>
|
||||||
|
<if test="thisCargoArea != null">this_cargo_area = #{thisCargoArea},</if>
|
||||||
|
</trim>
|
||||||
|
where stock_id = #{stockId}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteViewStockWarningByStockId" parameterType="String">
|
||||||
|
delete from view_stock_warning where stock_id = #{stockId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteViewStockWarningByStockIds" parameterType="String">
|
||||||
|
delete from view_stock_warning where stock_id in
|
||||||
|
<foreach item="stockId" collection="array" open="(" separator="," close=")">
|
||||||
|
#{stockId}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
44
ruoyi-ui/src/api/search/ViewStockSecure.js
Normal file
44
ruoyi-ui/src/api/search/ViewStockSecure.js
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询安全库存查询列表
|
||||||
|
export function listViewStockSecure(query) {
|
||||||
|
return request({
|
||||||
|
url: '/search/ViewStockSecure/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询安全库存查询详细
|
||||||
|
export function getViewStockSecure(stockId) {
|
||||||
|
return request({
|
||||||
|
url: '/search/ViewStockSecure/' + stockId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增安全库存查询
|
||||||
|
export function addViewStockSecure(data) {
|
||||||
|
return request({
|
||||||
|
url: '/search/ViewStockSecure',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改安全库存查询
|
||||||
|
export function updateViewStockSecure(data) {
|
||||||
|
return request({
|
||||||
|
url: '/search/ViewStockSecure',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除安全库存查询
|
||||||
|
export function delViewStockSecure(stockId) {
|
||||||
|
return request({
|
||||||
|
url: '/search/ViewStockSecure/' + stockId,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
44
ruoyi-ui/src/api/search/ViewStockWarning.js
Normal file
44
ruoyi-ui/src/api/search/ViewStockWarning.js
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询预警库存查询列表
|
||||||
|
export function listViewStockWarning(query) {
|
||||||
|
return request({
|
||||||
|
url: '/search/ViewStockWarning/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询预警库存查询详细
|
||||||
|
export function getViewStockWarning(stockId) {
|
||||||
|
return request({
|
||||||
|
url: '/search/ViewStockWarning/' + stockId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增预警库存查询
|
||||||
|
export function addViewStockWarning(data) {
|
||||||
|
return request({
|
||||||
|
url: '/search/ViewStockWarning',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改预警库存查询
|
||||||
|
export function updateViewStockWarning(data) {
|
||||||
|
return request({
|
||||||
|
url: '/search/ViewStockWarning',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除预警库存查询
|
||||||
|
export function delViewStockWarning(stockId) {
|
||||||
|
return request({
|
||||||
|
url: '/search/ViewStockWarning/' + stockId,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
956
ruoyi-ui/src/views/search/ViewStockSecure/index.vue
Normal file
956
ruoyi-ui/src/views/search/ViewStockSecure/index.vue
Normal file
@@ -0,0 +1,956 @@
|
|||||||
|
<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="stockId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.stockId"
|
||||||
|
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="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="物料状态" prop="productStatus">
|
||||||
|
<el-select v-model="queryParams.productStatus" placeholder="请选择物料状态" clearable>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.product_status"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</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="入库时间" prop="inDate">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.inDate"
|
||||||
|
placeholder="请输入入库时间"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="回流时间" prop="backDate">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.backDate"
|
||||||
|
placeholder="请输入回流时间"
|
||||||
|
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="jobId">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.jobId"-->
|
||||||
|
<!-- placeholder="请输入作业ID"-->
|
||||||
|
<!-- 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="入库子单ID" prop="stockinDetailId">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.stockinDetailId"-->
|
||||||
|
<!-- placeholder="请输入入库子单ID"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="入库主单" prop="stockinId">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.stockinId"-->
|
||||||
|
<!-- placeholder="请输入入库主单"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<el-form-item label="入库类型" prop="inType">
|
||||||
|
<el-select v-model="queryParams.inType" placeholder="请选择入库类型" clearable>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.in_bill_type"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="入库班组ID" prop="inClassId">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.inClassId"-->
|
||||||
|
<!-- placeholder="请输入入库班组ID"-->
|
||||||
|
<!-- 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="垛型ID" prop="stackingId">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.stackingId"-->
|
||||||
|
<!-- placeholder="请输入垛型ID"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="库存预警" prop="spare1">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.spare1"-->
|
||||||
|
<!-- placeholder="请输入库存预警"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="${comment}" prop="spare2">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.spare2"-->
|
||||||
|
<!-- placeholder="请输入${comment}"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="${comment}" prop="spare3">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.spare3"-->
|
||||||
|
<!-- placeholder="请输入${comment}"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="${comment}" prop="spare4">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.spare4"-->
|
||||||
|
<!-- placeholder="请输入${comment}"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="${comment}" prop="spare5">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.spare5"-->
|
||||||
|
<!-- placeholder="请输入${comment}"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="${comment}" prop="spare6">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.spare6"-->
|
||||||
|
<!-- placeholder="请输入${comment}"-->
|
||||||
|
<!-- 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="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 label="货位名称" prop="cargoSpaceName">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.cargoSpaceName"-->
|
||||||
|
<!-- placeholder="请输入货位名称"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </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="cargoAreaId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.cargoAreaId"
|
||||||
|
placeholder="请输入货区ID"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="货位类型名称" prop="theTypeName">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.theTypeName"-->
|
||||||
|
<!-- 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="locked">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.locked"-->
|
||||||
|
<!-- placeholder="请输入是否锁定"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="货位高度" prop="cargoHight">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.cargoHight"-->
|
||||||
|
<!-- placeholder="请输入货位高度"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="是否双伸" prop="issDouble">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.issDouble"-->
|
||||||
|
<!-- placeholder="请输入是否双伸"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="双货位分组编码" prop="groupCodingNo">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.groupCodingNo"-->
|
||||||
|
<!-- placeholder="请输入双货位分组编码"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="双货位分组编码" prop="groupCoding">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.groupCoding"-->
|
||||||
|
<!-- placeholder="请输入双货位分组编码"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="双货位标识" prop="cargoSpaceLogo">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.cargoSpaceLogo"-->
|
||||||
|
<!-- placeholder="请输入双货位标识"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="本仓库区域" prop="thisCargoArea">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.thisCargoArea"-->
|
||||||
|
<!-- 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:ViewStockSecure: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:ViewStockSecure: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:ViewStockSecure: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:ViewStockSecure:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="ViewStockSecureList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="库存ID" align="center" prop="stockId" />
|
||||||
|
<el-table-column label="货位ID" align="center" prop="cargoSpaceId" />
|
||||||
|
<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="productStatus">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.product_status" :value="scope.row.productStatus"/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="批次号" align="center" prop="lotNo" />
|
||||||
|
<el-table-column label="入库时间" align="center" prop="inDate" />
|
||||||
|
<el-table-column label="回流时间" align="center" prop="backDate" />
|
||||||
|
<!-- <el-table-column label="物料GUID" align="center" prop="productGuid" />-->
|
||||||
|
<el-table-column label="库存数量" align="center" prop="quantity" />
|
||||||
|
<el-table-column label="作业ID" align="center" prop="jobId" />
|
||||||
|
<el-table-column label="托盘条码" align="center" prop="trayCode" />
|
||||||
|
<el-table-column label="出库数量" align="center" prop="outQuantity" />
|
||||||
|
<!-- <el-table-column label="入库子单ID" align="center" prop="stockinDetailId" />-->
|
||||||
|
<el-table-column label="入库主单" align="center" prop="stockinId" />
|
||||||
|
<el-table-column label="入库类型" align="center" prop="inType">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.in_bill_type" :value="scope.row.inType"/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- <el-table-column label="入库班组ID" align="center" prop="inClassId" />-->
|
||||||
|
<el-table-column label="仓库ID" align="center" prop="warehouseId" />
|
||||||
|
<el-table-column label="垛型ID" align="center" prop="stackingId" />
|
||||||
|
<!-- <el-table-column label="库存预警" align="center" prop="spare1" />-->
|
||||||
|
<!-- <el-table-column label="${comment}" align="center" prop="spare2" />-->
|
||||||
|
<!-- <el-table-column label="${comment}" align="center" prop="spare3" />-->
|
||||||
|
<!-- <el-table-column label="${comment}" align="center" prop="spare4" />-->
|
||||||
|
<!-- <el-table-column label="${comment}" align="center" prop="spare5" />-->
|
||||||
|
<!-- <el-table-column label="${comment}" align="center" prop="spare6" />-->
|
||||||
|
<el-table-column label="物料ID" align="center" prop="productId" />
|
||||||
|
<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" 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="price" />
|
||||||
|
<!-- <el-table-column label="描述" align="center" prop="remark" />-->
|
||||||
|
<el-table-column label="货位名称" align="center" prop="cargoSpaceName" />
|
||||||
|
<!-- <el-table-column label="巷道ID" align="center" prop="roadwayId" />-->
|
||||||
|
<el-table-column label="货区ID" align="center" prop="cargoAreaId" />
|
||||||
|
<el-table-column label="货位类型" align="center" prop="theType" />
|
||||||
|
<!-- <el-table-column label="货位类型名称" align="center" prop="theTypeName" />-->
|
||||||
|
<!-- <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="cargoStatus" />
|
||||||
|
<el-table-column label="是否锁定" align="center" prop="locked" />
|
||||||
|
<el-table-column label="货位高度" align="center" prop="cargoHight" />
|
||||||
|
<el-table-column label="是否双伸" align="center" prop="issDouble" />
|
||||||
|
<!-- <el-table-column label="双货位分组编码" align="center" prop="groupCodingNo" />-->
|
||||||
|
<!-- <el-table-column label="双货位分组编码" align="center" prop="groupCoding" />-->
|
||||||
|
<!-- <el-table-column label="双货位标识" align="center" prop="cargoSpaceLogo" />-->
|
||||||
|
<!-- <el-table-column label="本仓库区域" align="center" prop="thisCargoArea" />-->
|
||||||
|
<!-- <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:ViewStockSecure:edit']"-->
|
||||||
|
<!-- >修改</el-button>-->
|
||||||
|
<!-- <el-button-->
|
||||||
|
<!-- size="mini"-->
|
||||||
|
<!-- type="text"-->
|
||||||
|
<!-- icon="el-icon-delete"-->
|
||||||
|
<!-- @click="handleDelete(scope.row)"-->
|
||||||
|
<!-- v-hasPermi="['search:ViewStockSecure: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="stockId">
|
||||||
|
<el-input v-model="form.stockId" 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="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="物料状态" prop="productStatus">
|
||||||
|
<el-select v-model="form.productStatus" placeholder="请选择物料状态">
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.product_status"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="批次号" prop="lotNo">
|
||||||
|
<el-input v-model="form.lotNo" placeholder="请输入批次号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="入库时间" prop="inDate">
|
||||||
|
<el-input v-model="form.inDate" placeholder="请输入入库时间" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="回流时间" prop="backDate">
|
||||||
|
<el-input v-model="form.backDate" placeholder="请输入回流时间" />
|
||||||
|
</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="库存数量" prop="quantity">
|
||||||
|
<el-input v-model="form.quantity" type="textarea" placeholder="请输入内容" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="作业ID" prop="jobId">
|
||||||
|
<el-input v-model="form.jobId" placeholder="请输入作业ID" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="托盘条码" prop="trayCode">
|
||||||
|
<el-input v-model="form.trayCode" placeholder="请输入托盘条码" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="出库数量" prop="outQuantity">
|
||||||
|
<el-input v-model="form.outQuantity" type="textarea" placeholder="请输入内容" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="入库子单ID" prop="stockinDetailId">
|
||||||
|
<el-input v-model="form.stockinDetailId" placeholder="请输入入库子单ID" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="入库主单" prop="stockinId">
|
||||||
|
<el-input v-model="form.stockinId" placeholder="请输入入库主单" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="入库类型" prop="inType">
|
||||||
|
<el-select v-model="form.inType" placeholder="请选择入库类型">
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.in_bill_type"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="入库班组ID" prop="inClassId">
|
||||||
|
<el-input v-model="form.inClassId" placeholder="请输入入库班组ID" />
|
||||||
|
</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="垛型ID" prop="stackingId">
|
||||||
|
<el-input v-model="form.stackingId" placeholder="请输入垛型ID" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="库存预警" prop="spare1">
|
||||||
|
<el-input v-model="form.spare1" placeholder="请输入库存预警" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="spare2">
|
||||||
|
<el-input v-model="form.spare2" placeholder="请输入${comment}" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="spare3">
|
||||||
|
<el-input v-model="form.spare3" placeholder="请输入${comment}" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="spare4">
|
||||||
|
<el-input v-model="form.spare4" placeholder="请输入${comment}" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="spare5">
|
||||||
|
<el-input v-model="form.spare5" placeholder="请输入${comment}" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="spare6">
|
||||||
|
<el-input v-model="form.spare6" placeholder="请输入${comment}" />
|
||||||
|
</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="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-item label="货位名称" prop="cargoSpaceName">
|
||||||
|
<el-input v-model="form.cargoSpaceName" 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="cargoAreaId">
|
||||||
|
<el-input v-model="form.cargoAreaId" placeholder="请输入货区ID" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="货位类型名称" prop="theTypeName">
|
||||||
|
<el-input v-model="form.theTypeName" 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="locked">
|
||||||
|
<el-input v-model="form.locked" placeholder="请输入是否锁定" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="货位高度" prop="cargoHight">
|
||||||
|
<el-input v-model="form.cargoHight" placeholder="请输入货位高度" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="是否双伸" prop="issDouble">
|
||||||
|
<el-input v-model="form.issDouble" placeholder="请输入是否双伸" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="双货位分组编码" prop="groupCodingNo">
|
||||||
|
<el-input v-model="form.groupCodingNo" placeholder="请输入双货位分组编码" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="双货位分组编码" prop="groupCoding">
|
||||||
|
<el-input v-model="form.groupCoding" placeholder="请输入双货位分组编码" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="双货位标识" prop="cargoSpaceLogo">
|
||||||
|
<el-input v-model="form.cargoSpaceLogo" placeholder="请输入双货位标识" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="本仓库区域" prop="thisCargoArea">
|
||||||
|
<el-input v-model="form.thisCargoArea" 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 { listViewStockSecure, getViewStockSecure, delViewStockSecure, addViewStockSecure, updateViewStockSecure } from "@/api/search/ViewStockSecure"
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "ViewStockSecure",
|
||||||
|
dicts: ['product_status', 'in_bill_type', 'stock_status'],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 安全库存查询表格数据
|
||||||
|
ViewStockSecureList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
stockId: null,
|
||||||
|
cargoSpaceId: null,
|
||||||
|
stockStatus: null,
|
||||||
|
productStatus: null,
|
||||||
|
lotNo: null,
|
||||||
|
inDate: null,
|
||||||
|
backDate: null,
|
||||||
|
productGuid: null,
|
||||||
|
quantity: null,
|
||||||
|
jobId: null,
|
||||||
|
trayCode: null,
|
||||||
|
outQuantity: null,
|
||||||
|
stockinDetailId: null,
|
||||||
|
stockinId: null,
|
||||||
|
inType: null,
|
||||||
|
inClassId: null,
|
||||||
|
warehouseId: null,
|
||||||
|
stackingId: null,
|
||||||
|
spare1: null,
|
||||||
|
spare2: null,
|
||||||
|
spare3: null,
|
||||||
|
spare4: null,
|
||||||
|
spare5: null,
|
||||||
|
spare6: null,
|
||||||
|
productId: null,
|
||||||
|
warehouseName: null,
|
||||||
|
address: null,
|
||||||
|
cDesc: null,
|
||||||
|
warehouseKind: null,
|
||||||
|
warehouseType: null,
|
||||||
|
isCurrent: null,
|
||||||
|
productName: null,
|
||||||
|
spec: null,
|
||||||
|
cargoNo: null,
|
||||||
|
unit: null,
|
||||||
|
price: null,
|
||||||
|
cargoSpaceName: null,
|
||||||
|
roadwayId: null,
|
||||||
|
cargoAreaId: null,
|
||||||
|
theType: null,
|
||||||
|
theTypeName: null,
|
||||||
|
thePlatoon: null,
|
||||||
|
theColumn: null,
|
||||||
|
theFloor: null,
|
||||||
|
cargoStatus: null,
|
||||||
|
locked: null,
|
||||||
|
cargoHight: null,
|
||||||
|
issDouble: null,
|
||||||
|
groupCodingNo: null,
|
||||||
|
groupCoding: null,
|
||||||
|
cargoSpaceLogo: null,
|
||||||
|
thisCargoArea: null
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
stockId: [
|
||||||
|
{ required: true, message: "库存ID不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询安全库存查询列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true
|
||||||
|
listViewStockSecure(this.queryParams).then(response => {
|
||||||
|
this.ViewStockSecureList = response.rows
|
||||||
|
this.total = response.total
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false
|
||||||
|
this.reset()
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
stockId: null,
|
||||||
|
cargoSpaceId: null,
|
||||||
|
stockStatus: null,
|
||||||
|
productStatus: null,
|
||||||
|
lotNo: null,
|
||||||
|
inDate: null,
|
||||||
|
backDate: null,
|
||||||
|
productGuid: null,
|
||||||
|
quantity: null,
|
||||||
|
jobId: null,
|
||||||
|
trayCode: null,
|
||||||
|
outQuantity: null,
|
||||||
|
stockinDetailId: null,
|
||||||
|
stockinId: null,
|
||||||
|
inType: null,
|
||||||
|
inClassId: null,
|
||||||
|
warehouseId: null,
|
||||||
|
stackingId: null,
|
||||||
|
spare1: null,
|
||||||
|
spare2: null,
|
||||||
|
spare3: null,
|
||||||
|
spare4: null,
|
||||||
|
spare5: null,
|
||||||
|
spare6: null,
|
||||||
|
productId: 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,
|
||||||
|
cargoSpaceName: null,
|
||||||
|
roadwayId: null,
|
||||||
|
cargoAreaId: null,
|
||||||
|
theType: null,
|
||||||
|
theTypeName: null,
|
||||||
|
thePlatoon: null,
|
||||||
|
theColumn: null,
|
||||||
|
theFloor: null,
|
||||||
|
cargoStatus: null,
|
||||||
|
locked: null,
|
||||||
|
cargoHight: null,
|
||||||
|
issDouble: null,
|
||||||
|
groupCodingNo: null,
|
||||||
|
groupCoding: null,
|
||||||
|
cargoSpaceLogo: null,
|
||||||
|
thisCargoArea: 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.stockId)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset()
|
||||||
|
this.open = true
|
||||||
|
this.title = "添加安全库存查询"
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset()
|
||||||
|
const stockId = row.stockId || this.ids
|
||||||
|
getViewStockSecure(stockId).then(response => {
|
||||||
|
this.form = response.data
|
||||||
|
this.open = true
|
||||||
|
this.title = "修改安全库存查询"
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.stockId != null) {
|
||||||
|
updateViewStockSecure(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改成功")
|
||||||
|
this.open = false
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
addViewStockSecure(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("新增成功")
|
||||||
|
this.open = false
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const stockIds = row.stockId || this.ids
|
||||||
|
this.$modal.confirm('是否确认删除安全库存查询编号为"' + stockIds + '"的数据项?').then(function() {
|
||||||
|
return delViewStockSecure(stockIds)
|
||||||
|
}).then(() => {
|
||||||
|
this.getList()
|
||||||
|
this.$modal.msgSuccess("删除成功")
|
||||||
|
}).catch(() => {})
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download('search/ViewStockSecure/export', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `ViewStockSecure_${new Date().getTime()}.xlsx`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
972
ruoyi-ui/src/views/search/ViewStockWarning/index.vue
Normal file
972
ruoyi-ui/src/views/search/ViewStockWarning/index.vue
Normal file
@@ -0,0 +1,972 @@
|
|||||||
|
<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="stockId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.stockId"
|
||||||
|
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="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="物料状态" prop="productStatus">
|
||||||
|
<el-select v-model="queryParams.productStatus" placeholder="请选择物料状态" clearable>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.product_status"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</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="入库时间" prop="inDate">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.inDate"
|
||||||
|
placeholder="请输入入库时间"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="回流时间" prop="backDate">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.backDate"
|
||||||
|
placeholder="请输入回流时间"
|
||||||
|
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="quantity">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.quantity"-->
|
||||||
|
<!-- placeholder="请输入库存数量"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <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="托盘条码" prop="trayCode">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.trayCode"
|
||||||
|
placeholder="请输入托盘条码"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="出库数量" prop="outQuantity">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.outQuantity"-->
|
||||||
|
<!-- placeholder="请输入出库数量"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="入库子单ID" prop="stockinDetailId">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.stockinDetailId"-->
|
||||||
|
<!-- placeholder="请输入入库子单ID"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="入库主单" prop="stockinId">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.stockinId"-->
|
||||||
|
<!-- placeholder="请输入入库主单"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<el-form-item label="入库类型" prop="inType">
|
||||||
|
<el-select v-model="queryParams.inType" placeholder="请选择入库类型" clearable>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.in_bill_type"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="入库班组ID" prop="inClassId">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.inClassId"-->
|
||||||
|
<!-- placeholder="请输入入库班组ID"-->
|
||||||
|
<!-- 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="垛型ID" prop="stackingId">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.stackingId"-->
|
||||||
|
<!-- placeholder="请输入垛型ID"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="预警标识" prop="spare1">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.spare1"-->
|
||||||
|
<!-- placeholder="请输入预警标识"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="${comment}" prop="spare2">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.spare2"-->
|
||||||
|
<!-- placeholder="请输入${comment}"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="${comment}" prop="spare3">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.spare3"-->
|
||||||
|
<!-- placeholder="请输入${comment}"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="${comment}" prop="spare4">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.spare4"-->
|
||||||
|
<!-- placeholder="请输入${comment}"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="${comment}" prop="spare5">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.spare5"-->
|
||||||
|
<!-- placeholder="请输入${comment}"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="${comment}" prop="spare6">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.spare6"-->
|
||||||
|
<!-- placeholder="请输入${comment}"-->
|
||||||
|
<!-- 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="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 label="货位名称" prop="cargoSpaceName">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.cargoSpaceName"-->
|
||||||
|
<!-- placeholder="请输入货位名称"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </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="cargoAreaId">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.cargoAreaId"-->
|
||||||
|
<!-- placeholder="请输入货区ID"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="the_type_name:" prop="theTypeName">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.theTypeName"-->
|
||||||
|
<!-- placeholder="请输入the_type_name:"-->
|
||||||
|
<!-- 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="locked">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.locked"-->
|
||||||
|
<!-- placeholder="请输入是否锁定"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="货位高度" prop="cargoHight">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.cargoHight"-->
|
||||||
|
<!-- placeholder="请输入货位高度"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="是否双伸" prop="issDouble">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.issDouble"-->
|
||||||
|
<!-- placeholder="请输入是否双伸"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="双货位分组编码" prop="groupCodingNo">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.groupCodingNo"-->
|
||||||
|
<!-- placeholder="请输入双货位分组编码"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="双货位分组编码" prop="groupCoding">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.groupCoding"-->
|
||||||
|
<!-- placeholder="请输入双货位分组编码"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="双货位标识" prop="cargoSpaceLogo">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.cargoSpaceLogo"-->
|
||||||
|
<!-- placeholder="请输入双货位标识"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- <el-form-item label="本仓库区域" prop="thisCargoArea">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.thisCargoArea"-->
|
||||||
|
<!-- 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:ViewStockWarning: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:ViewStockWarning: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:ViewStockWarning: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:ViewStockWarning:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="ViewStockWarningList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="库存ID" align="center" prop="stockId" />
|
||||||
|
<el-table-column label="货位ID" align="center" prop="cargoSpaceId" />
|
||||||
|
<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="productStatus">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.product_status" :value="scope.row.productStatus"/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="批次号" align="center" prop="lotNo" />
|
||||||
|
<el-table-column label="入库时间" align="center" prop="inDate" />
|
||||||
|
<el-table-column label="回流时间" align="center" prop="backDate" />
|
||||||
|
<!-- <el-table-column label="物料GUID" align="center" prop="productGuid" />-->
|
||||||
|
<el-table-column label="库存数量" align="center" prop="quantity" />
|
||||||
|
<el-table-column label="作业ID" align="center" prop="jobId" />
|
||||||
|
<el-table-column label="托盘条码" align="center" prop="trayCode" />
|
||||||
|
<el-table-column label="出库数量" align="center" prop="outQuantity" />
|
||||||
|
<!-- <el-table-column label="入库子单ID" align="center" prop="stockinDetailId" />-->
|
||||||
|
<el-table-column label="入库主单" align="center" prop="stockinId" />
|
||||||
|
<el-table-column label="入库类型" align="center" prop="inType">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.in_bill_type" :value="scope.row.inType"/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- <el-table-column label="入库班组ID" align="center" prop="inClassId" />-->
|
||||||
|
<el-table-column label="仓库ID" align="center" prop="warehouseId" />
|
||||||
|
<el-table-column label="垛型ID" align="center" prop="stackingId" />
|
||||||
|
<!-- <el-table-column label="库存预警" align="center" prop="spare1" />-->
|
||||||
|
<!-- <el-table-column label="${comment}" align="center" prop="spare2" />-->
|
||||||
|
<!-- <el-table-column label="${comment}" align="center" prop="spare3" />-->
|
||||||
|
<!-- <el-table-column label="${comment}" align="center" prop="spare4" />-->
|
||||||
|
<!-- <el-table-column label="${comment}" align="center" prop="spare5" />-->
|
||||||
|
<!-- <el-table-column label="${comment}" align="center" prop="spare6" />-->
|
||||||
|
<el-table-column label="物料ID" align="center" prop="productId" />
|
||||||
|
<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" 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="price" />
|
||||||
|
<!-- <el-table-column label="描述" align="center" prop="remark" />-->
|
||||||
|
<el-table-column label="货位名称" align="center" prop="cargoSpaceName" />
|
||||||
|
<!-- <el-table-column label="巷道ID" align="center" prop="roadwayId" />-->
|
||||||
|
<el-table-column label="货区ID" align="center" prop="cargoAreaId" />
|
||||||
|
<el-table-column label="货位类型" align="center" prop="theType" />
|
||||||
|
<!-- <el-table-column label="货位类型名称" align="center" prop="theTypeName" />-->
|
||||||
|
<!-- <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="cargoStatus" />
|
||||||
|
<el-table-column label="是否锁定" align="center" prop="locked" />
|
||||||
|
<el-table-column label="货位高度" align="center" prop="cargoHight" />
|
||||||
|
<el-table-column label="是否双伸" align="center" prop="issDouble" />
|
||||||
|
<!-- <el-table-column label="双货位分组编码" align="center" prop="groupCodingNo" />-->
|
||||||
|
<!-- <el-table-column label="双货位分组编码" align="center" prop="groupCoding" />-->
|
||||||
|
<!-- <el-table-column label="双货位标识" align="center" prop="cargoSpaceLogo" />-->
|
||||||
|
<!-- <el-table-column label="本仓库区域" align="center" prop="thisCargoArea" />-->
|
||||||
|
<!-- <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:ViewStockSecure:edit']"-->
|
||||||
|
<!-- >修改</el-button>-->
|
||||||
|
<!-- <el-button-->
|
||||||
|
<!-- size="mini"-->
|
||||||
|
<!-- type="text"-->
|
||||||
|
<!-- icon="el-icon-delete"-->
|
||||||
|
<!-- @click="handleDelete(scope.row)"-->
|
||||||
|
<!-- v-hasPermi="['search:ViewStockSecure: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="stockId">
|
||||||
|
<el-input v-model="form.stockId" 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="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="物料状态" prop="productStatus">
|
||||||
|
<el-select v-model="form.productStatus" placeholder="请选择物料状态">
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.product_status"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="批次号" prop="lotNo">
|
||||||
|
<el-input v-model="form.lotNo" placeholder="请输入批次号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="入库时间" prop="inDate">
|
||||||
|
<el-input v-model="form.inDate" placeholder="请输入入库时间" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="回流时间" prop="backDate">
|
||||||
|
<el-input v-model="form.backDate" placeholder="请输入回流时间" />
|
||||||
|
</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="库存数量" prop="quantity">
|
||||||
|
<el-input v-model="form.quantity" placeholder="请输入库存数量" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="作业ID" prop="jobId">
|
||||||
|
<el-input v-model="form.jobId" placeholder="请输入作业ID" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="托盘条码" prop="trayCode">
|
||||||
|
<el-input v-model="form.trayCode" placeholder="请输入托盘条码" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="出库数量" prop="outQuantity">
|
||||||
|
<el-input v-model="form.outQuantity" placeholder="请输入出库数量" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="入库子单ID" prop="stockinDetailId">
|
||||||
|
<el-input v-model="form.stockinDetailId" placeholder="请输入入库子单ID" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="入库主单" prop="stockinId">
|
||||||
|
<el-input v-model="form.stockinId" placeholder="请输入入库主单" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="入库类型" prop="inType">
|
||||||
|
<el-select v-model="form.inType" placeholder="请选择入库类型">
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.in_bill_type"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="入库班组ID" prop="inClassId">
|
||||||
|
<el-input v-model="form.inClassId" placeholder="请输入入库班组ID" />
|
||||||
|
</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="垛型ID" prop="stackingId">
|
||||||
|
<el-input v-model="form.stackingId" placeholder="请输入垛型ID" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="预警标识" prop="spare1">
|
||||||
|
<el-input v-model="form.spare1" placeholder="请输入预警标识" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="spare2">
|
||||||
|
<el-input v-model="form.spare2" placeholder="请输入${comment}" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="spare3">
|
||||||
|
<el-input v-model="form.spare3" placeholder="请输入${comment}" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="spare4">
|
||||||
|
<el-input v-model="form.spare4" placeholder="请输入${comment}" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="spare5">
|
||||||
|
<el-input v-model="form.spare5" placeholder="请输入${comment}" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="spare6">
|
||||||
|
<el-input v-model="form.spare6" placeholder="请输入${comment}" />
|
||||||
|
</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="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-item label="货位名称" prop="cargoSpaceName">
|
||||||
|
<el-input v-model="form.cargoSpaceName" 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="cargoAreaId">
|
||||||
|
<el-input v-model="form.cargoAreaId" placeholder="请输入货区ID" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="the_type_name:" prop="theTypeName">
|
||||||
|
<el-input v-model="form.theTypeName" placeholder="请输入the_type_name:" />
|
||||||
|
</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="locked">
|
||||||
|
<el-input v-model="form.locked" placeholder="请输入是否锁定" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="货位高度" prop="cargoHight">
|
||||||
|
<el-input v-model="form.cargoHight" placeholder="请输入货位高度" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="是否双伸" prop="issDouble">
|
||||||
|
<el-input v-model="form.issDouble" placeholder="请输入是否双伸" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="双货位分组编码" prop="groupCodingNo">
|
||||||
|
<el-input v-model="form.groupCodingNo" placeholder="请输入双货位分组编码" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="双货位分组编码" prop="groupCoding">
|
||||||
|
<el-input v-model="form.groupCoding" placeholder="请输入双货位分组编码" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="双货位标识" prop="cargoSpaceLogo">
|
||||||
|
<el-input v-model="form.cargoSpaceLogo" placeholder="请输入双货位标识" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="本仓库区域" prop="thisCargoArea">
|
||||||
|
<el-input v-model="form.thisCargoArea" 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 { listViewStockWarning, getViewStockWarning, delViewStockWarning, addViewStockWarning, updateViewStockWarning } from "@/api/search/ViewStockWarning"
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "ViewStockWarning",
|
||||||
|
dicts: ['product_status', 'in_bill_type', 'stock_status'],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 预警库存查询表格数据
|
||||||
|
ViewStockWarningList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
stockId: null,
|
||||||
|
cargoSpaceId: null,
|
||||||
|
stockStatus: null,
|
||||||
|
productStatus: null,
|
||||||
|
lotNo: null,
|
||||||
|
inDate: null,
|
||||||
|
backDate: null,
|
||||||
|
productGuid: null,
|
||||||
|
quantity: null,
|
||||||
|
jobId: null,
|
||||||
|
trayCode: null,
|
||||||
|
outQuantity: null,
|
||||||
|
stockinDetailId: null,
|
||||||
|
stockinId: null,
|
||||||
|
inType: null,
|
||||||
|
inClassId: null,
|
||||||
|
warehouseId: null,
|
||||||
|
stackingId: null,
|
||||||
|
spare1: null,
|
||||||
|
spare2: null,
|
||||||
|
spare3: null,
|
||||||
|
spare4: null,
|
||||||
|
spare5: null,
|
||||||
|
spare6: null,
|
||||||
|
productId: null,
|
||||||
|
warehouseName: null,
|
||||||
|
address: null,
|
||||||
|
cDesc: null,
|
||||||
|
warehouseKind: null,
|
||||||
|
warehouseType: null,
|
||||||
|
isCurrent: null,
|
||||||
|
productName: null,
|
||||||
|
spec: null,
|
||||||
|
cargoNo: null,
|
||||||
|
unit: null,
|
||||||
|
price: null,
|
||||||
|
cargoSpaceName: null,
|
||||||
|
roadwayId: null,
|
||||||
|
cargoAreaId: null,
|
||||||
|
theType: null,
|
||||||
|
theTypeName: null,
|
||||||
|
thePlatoon: null,
|
||||||
|
theColumn: null,
|
||||||
|
theFloor: null,
|
||||||
|
cargoStatus: null,
|
||||||
|
locked: null,
|
||||||
|
cargoHight: null,
|
||||||
|
issDouble: null,
|
||||||
|
groupCodingNo: null,
|
||||||
|
groupCoding: null,
|
||||||
|
cargoSpaceLogo: null,
|
||||||
|
thisCargoArea: null
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
stockId: [
|
||||||
|
{ required: true, message: "库存ID不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询预警库存查询列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true
|
||||||
|
listViewStockWarning(this.queryParams).then(response => {
|
||||||
|
this.ViewStockWarningList = response.rows
|
||||||
|
this.total = response.total
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false
|
||||||
|
this.reset()
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
stockId: null,
|
||||||
|
cargoSpaceId: null,
|
||||||
|
stockStatus: null,
|
||||||
|
productStatus: null,
|
||||||
|
lotNo: null,
|
||||||
|
inDate: null,
|
||||||
|
backDate: null,
|
||||||
|
productGuid: null,
|
||||||
|
quantity: null,
|
||||||
|
jobId: null,
|
||||||
|
trayCode: null,
|
||||||
|
outQuantity: null,
|
||||||
|
stockinDetailId: null,
|
||||||
|
stockinId: null,
|
||||||
|
inType: null,
|
||||||
|
inClassId: null,
|
||||||
|
warehouseId: null,
|
||||||
|
stackingId: null,
|
||||||
|
spare1: null,
|
||||||
|
spare2: null,
|
||||||
|
spare3: null,
|
||||||
|
spare4: null,
|
||||||
|
spare5: null,
|
||||||
|
spare6: null,
|
||||||
|
productId: 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,
|
||||||
|
cargoSpaceName: null,
|
||||||
|
roadwayId: null,
|
||||||
|
cargoAreaId: null,
|
||||||
|
theType: null,
|
||||||
|
theTypeName: null,
|
||||||
|
thePlatoon: null,
|
||||||
|
theColumn: null,
|
||||||
|
theFloor: null,
|
||||||
|
cargoStatus: null,
|
||||||
|
locked: null,
|
||||||
|
cargoHight: null,
|
||||||
|
issDouble: null,
|
||||||
|
groupCodingNo: null,
|
||||||
|
groupCoding: null,
|
||||||
|
cargoSpaceLogo: null,
|
||||||
|
thisCargoArea: 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.stockId)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset()
|
||||||
|
this.open = true
|
||||||
|
this.title = "添加预警库存查询"
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset()
|
||||||
|
const stockId = row.stockId || this.ids
|
||||||
|
getViewStockWarning(stockId).then(response => {
|
||||||
|
this.form = response.data
|
||||||
|
this.open = true
|
||||||
|
this.title = "修改预警库存查询"
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.stockId != null) {
|
||||||
|
updateViewStockWarning(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改成功")
|
||||||
|
this.open = false
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
addViewStockWarning(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("新增成功")
|
||||||
|
this.open = false
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const stockIds = row.stockId || this.ids
|
||||||
|
this.$modal.confirm('是否确认删除预警库存查询编号为"' + stockIds + '"的数据项?').then(function() {
|
||||||
|
return delViewStockWarning(stockIds)
|
||||||
|
}).then(() => {
|
||||||
|
this.getList()
|
||||||
|
this.$modal.msgSuccess("删除成功")
|
||||||
|
}).catch(() => {})
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download('search/ViewStockWarning/export', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `ViewStockWarning_${new Date().getTime()}.xlsx`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user