wms产品出库计量,车辆出厂重量确定 #3
@ -0,0 +1,98 @@
|
||||
package com.god.web.controller.wmsProduct;
|
||||
|
||||
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.god.common.annotation.Log;
|
||||
import com.god.common.core.controller.BaseController;
|
||||
import com.god.common.core.domain.AjaxResult;
|
||||
import com.god.common.enums.BusinessType;
|
||||
import com.god.wmsProduct.domain.WmsProductCarDelivery;
|
||||
import com.god.wmsProduct.service.IWmsProductCarDeliveryService;
|
||||
import com.god.common.utils.poi.ExcelUtil;
|
||||
import com.god.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 车辆出厂重量确定Controller
|
||||
*
|
||||
* @author wangyan
|
||||
* @date 2023-12-06
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/product/delivery")
|
||||
public class WmsProductCarDeliveryController extends BaseController {
|
||||
@Autowired
|
||||
private IWmsProductCarDeliveryService wmsProductCarDeliveryService;
|
||||
|
||||
/**
|
||||
* 查询车辆出厂重量确定列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('product:delivery:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(WmsProductCarDelivery wmsProductCarDelivery) {
|
||||
startPage();
|
||||
List<WmsProductCarDelivery> list = wmsProductCarDeliveryService.selectWmsProductCarDeliveryList(wmsProductCarDelivery);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出车辆出厂重量确定列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('product:delivery:export')")
|
||||
@Log(title = "车辆出厂重量确定", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, WmsProductCarDelivery wmsProductCarDelivery) {
|
||||
List<WmsProductCarDelivery> list = wmsProductCarDeliveryService.selectWmsProductCarDeliveryList(wmsProductCarDelivery);
|
||||
ExcelUtil<WmsProductCarDelivery> util = new ExcelUtil<WmsProductCarDelivery>(WmsProductCarDelivery.class);
|
||||
util.exportExcel(response, list, "车辆出厂重量确定数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取车辆出厂重量确定详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('product:delivery:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id) {
|
||||
return success(wmsProductCarDeliveryService.selectWmsProductCarDeliveryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增车辆出厂重量确定
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('product:delivery:add')")
|
||||
@Log(title = "车辆出厂重量确定", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody WmsProductCarDelivery wmsProductCarDelivery) {
|
||||
return toAjax(wmsProductCarDeliveryService.insertWmsProductCarDelivery(wmsProductCarDelivery));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改车辆出厂重量确定
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('product:delivery:edit')")
|
||||
@Log(title = "车辆出厂重量确定", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody WmsProductCarDelivery wmsProductCarDelivery) {
|
||||
return toAjax(wmsProductCarDeliveryService.updateWmsProductCarDelivery(wmsProductCarDelivery));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除车辆出厂重量确定
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('product:delivery:remove')")
|
||||
@Log(title = "车辆出厂重量确定", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids) {
|
||||
return toAjax(wmsProductCarDeliveryService.deleteWmsProductCarDeliveryByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
package com.god.web.controller.wmsProduct;
|
||||
|
||||
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.god.common.annotation.Log;
|
||||
import com.god.common.core.controller.BaseController;
|
||||
import com.god.common.core.domain.AjaxResult;
|
||||
import com.god.common.enums.BusinessType;
|
||||
import com.god.wmsProduct.domain.WmsProductOutMeasure;
|
||||
import com.god.wmsProduct.service.IWmsProductOutMeasureService;
|
||||
import com.god.common.utils.poi.ExcelUtil;
|
||||
import com.god.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 产品出库计量Controller
|
||||
*
|
||||
* @author wangyan
|
||||
* @date 2023-12-06
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/product/measure")
|
||||
public class WmsProductOutMeasureController extends BaseController {
|
||||
@Autowired
|
||||
private IWmsProductOutMeasureService wmsProductOutMeasureService;
|
||||
|
||||
/**
|
||||
* 查询产品出库计量列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('product:measure:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(WmsProductOutMeasure wmsProductOutMeasure) {
|
||||
startPage();
|
||||
List<WmsProductOutMeasure> list = wmsProductOutMeasureService.selectWmsProductOutMeasureList(wmsProductOutMeasure);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出产品出库计量列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('product:measure:export')")
|
||||
@Log(title = "产品出库计量", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, WmsProductOutMeasure wmsProductOutMeasure) {
|
||||
List<WmsProductOutMeasure> list = wmsProductOutMeasureService.selectWmsProductOutMeasureList(wmsProductOutMeasure);
|
||||
ExcelUtil<WmsProductOutMeasure> util = new ExcelUtil<WmsProductOutMeasure>(WmsProductOutMeasure.class);
|
||||
util.exportExcel(response, list, "产品出库计量数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取产品出库计量详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('product:measure:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id) {
|
||||
return success(wmsProductOutMeasureService.selectWmsProductOutMeasureById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增产品出库计量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('product:measure:add')")
|
||||
@Log(title = "产品出库计量", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody WmsProductOutMeasure wmsProductOutMeasure) {
|
||||
return toAjax(wmsProductOutMeasureService.insertWmsProductOutMeasure(wmsProductOutMeasure));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改产品出库计量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('product:measure:edit')")
|
||||
@Log(title = "产品出库计量", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody WmsProductOutMeasure wmsProductOutMeasure) {
|
||||
return toAjax(wmsProductOutMeasureService.updateWmsProductOutMeasure(wmsProductOutMeasure));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除产品出库计量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('product:measure:remove')")
|
||||
@Log(title = "产品出库计量", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids) {
|
||||
return toAjax(wmsProductOutMeasureService.deleteWmsProductOutMeasureByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,220 @@
|
||||
package com.god.wmsProduct.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.god.common.annotation.Excel;
|
||||
import com.god.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 车辆出厂重量确定对象 wms_product_car_delivery
|
||||
*
|
||||
* @author wangyan
|
||||
* @date 2023-12-06
|
||||
*/
|
||||
public class WmsProductCarDelivery extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private String id;
|
||||
|
||||
/** 产品名称 */
|
||||
@Excel(name = "产品名称")
|
||||
private String productName;
|
||||
|
||||
/** 产品类型 */
|
||||
@Excel(name = "产品类型")
|
||||
private String productType;
|
||||
|
||||
/** 货物数量 */
|
||||
@Excel(name = "货物数量")
|
||||
private String productNumber;
|
||||
|
||||
/** 货物重量 */
|
||||
@Excel(name = "货物重量")
|
||||
private String productWeight;
|
||||
|
||||
/** 客户名称 */
|
||||
@Excel(name = "客户名称")
|
||||
private String customerName;
|
||||
|
||||
/** 客户地址 */
|
||||
@Excel(name = "客户地址")
|
||||
private String address;
|
||||
|
||||
/** 客户电话 */
|
||||
@Excel(name = "客户电话")
|
||||
private String phoneInfo;
|
||||
|
||||
/** 送货日期 */
|
||||
@Excel(name = "送货日期")
|
||||
private String outTime;
|
||||
|
||||
/** 出库编号 */
|
||||
@Excel(name = "出库编号")
|
||||
private String outNumber;
|
||||
|
||||
/** 订单编号 */
|
||||
@Excel(name = "订单编号")
|
||||
private String orderInfo;
|
||||
|
||||
/** 审核时间 */
|
||||
@Excel(name = "审核时间")
|
||||
private String auditTime;
|
||||
|
||||
/** 审核结果 */
|
||||
@Excel(name = "审核结果")
|
||||
private String auditResult;
|
||||
|
||||
/** 数据类型 */
|
||||
@Excel(name = "数据类型")
|
||||
private String dataType;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setProductName(String productName)
|
||||
{
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getProductName()
|
||||
{
|
||||
return productName;
|
||||
}
|
||||
public void setProductType(String productType)
|
||||
{
|
||||
this.productType = productType;
|
||||
}
|
||||
|
||||
public String getProductType()
|
||||
{
|
||||
return productType;
|
||||
}
|
||||
public void setProductNumber(String productNumber)
|
||||
{
|
||||
this.productNumber = productNumber;
|
||||
}
|
||||
|
||||
public String getProductNumber()
|
||||
{
|
||||
return productNumber;
|
||||
}
|
||||
public void setProductWeight(String productWeight)
|
||||
{
|
||||
this.productWeight = productWeight;
|
||||
}
|
||||
|
||||
public String getProductWeight()
|
||||
{
|
||||
return productWeight;
|
||||
}
|
||||
public void setCustomerName(String customerName)
|
||||
{
|
||||
this.customerName = customerName;
|
||||
}
|
||||
|
||||
public String getCustomerName()
|
||||
{
|
||||
return customerName;
|
||||
}
|
||||
public void setAddress(String address)
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
public void setPhoneInfo(String phoneInfo)
|
||||
{
|
||||
this.phoneInfo = phoneInfo;
|
||||
}
|
||||
|
||||
public String getPhoneInfo()
|
||||
{
|
||||
return phoneInfo;
|
||||
}
|
||||
public void setOutTime(String outTime)
|
||||
{
|
||||
this.outTime = outTime;
|
||||
}
|
||||
|
||||
public String getOutTime()
|
||||
{
|
||||
return outTime;
|
||||
}
|
||||
public void setOutNumber(String outNumber)
|
||||
{
|
||||
this.outNumber = outNumber;
|
||||
}
|
||||
|
||||
public String getOutNumber()
|
||||
{
|
||||
return outNumber;
|
||||
}
|
||||
public void setOrderInfo(String orderInfo)
|
||||
{
|
||||
this.orderInfo = orderInfo;
|
||||
}
|
||||
|
||||
public String getOrderInfo()
|
||||
{
|
||||
return orderInfo;
|
||||
}
|
||||
public void setAuditTime(String auditTime)
|
||||
{
|
||||
this.auditTime = auditTime;
|
||||
}
|
||||
|
||||
public String getAuditTime()
|
||||
{
|
||||
return auditTime;
|
||||
}
|
||||
public void setAuditResult(String auditResult)
|
||||
{
|
||||
this.auditResult = auditResult;
|
||||
}
|
||||
|
||||
public String getAuditResult()
|
||||
{
|
||||
return auditResult;
|
||||
}
|
||||
public void setDataType(String dataType)
|
||||
{
|
||||
this.dataType = dataType;
|
||||
}
|
||||
|
||||
public String getDataType()
|
||||
{
|
||||
return dataType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("productName", getProductName())
|
||||
.append("productType", getProductType())
|
||||
.append("productNumber", getProductNumber())
|
||||
.append("productWeight", getProductWeight())
|
||||
.append("customerName", getCustomerName())
|
||||
.append("address", getAddress())
|
||||
.append("phoneInfo", getPhoneInfo())
|
||||
.append("outTime", getOutTime())
|
||||
.append("outNumber", getOutNumber())
|
||||
.append("orderInfo", getOrderInfo())
|
||||
.append("auditTime", getAuditTime())
|
||||
.append("auditResult", getAuditResult())
|
||||
.append("dataType", getDataType())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,206 @@
|
||||
package com.god.wmsProduct.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.god.common.annotation.Excel;
|
||||
import com.god.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 产品出库计量对象 wms_product_out_measure
|
||||
*
|
||||
* @author wangyan
|
||||
* @date 2023-12-06
|
||||
*/
|
||||
public class WmsProductOutMeasure extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private String id;
|
||||
|
||||
/** 产品名称 */
|
||||
@Excel(name = "产品名称")
|
||||
private String productName;
|
||||
|
||||
/** 产品类型 */
|
||||
@Excel(name = "产品类型")
|
||||
private String productType;
|
||||
|
||||
/** 本次重量 */
|
||||
@Excel(name = "本次重量")
|
||||
private String weightInfo;
|
||||
|
||||
/** 入库重量 */
|
||||
@Excel(name = "入库重量")
|
||||
private String weightLast;
|
||||
|
||||
/** 是否误差 */
|
||||
@Excel(name = "是否误差")
|
||||
private String isMistake;
|
||||
|
||||
/** 误差处理 */
|
||||
@Excel(name = "误差处理")
|
||||
private String mistakeDeal;
|
||||
|
||||
/** 出库时间 */
|
||||
@Excel(name = "出库时间")
|
||||
private String outTime;
|
||||
|
||||
/** 出库编号 */
|
||||
@Excel(name = "出库编号")
|
||||
private String outNumber;
|
||||
|
||||
/** 订单编号 */
|
||||
@Excel(name = "订单编号")
|
||||
private String orderInfo;
|
||||
|
||||
/** 退货时间 */
|
||||
@Excel(name = "退货时间")
|
||||
private String returnTime;
|
||||
|
||||
/** 存储位置 */
|
||||
@Excel(name = "存储位置")
|
||||
private String location;
|
||||
|
||||
/** 数据类型 */
|
||||
@Excel(name = "数据类型")
|
||||
private String dataType;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setProductName(String productName)
|
||||
{
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getProductName()
|
||||
{
|
||||
return productName;
|
||||
}
|
||||
public void setProductType(String productType)
|
||||
{
|
||||
this.productType = productType;
|
||||
}
|
||||
|
||||
public String getProductType()
|
||||
{
|
||||
return productType;
|
||||
}
|
||||
public void setWeightInfo(String weightInfo)
|
||||
{
|
||||
this.weightInfo = weightInfo;
|
||||
}
|
||||
|
||||
public String getWeightInfo()
|
||||
{
|
||||
return weightInfo;
|
||||
}
|
||||
public void setWeightLast(String weightLast)
|
||||
{
|
||||
this.weightLast = weightLast;
|
||||
}
|
||||
|
||||
public String getWeightLast()
|
||||
{
|
||||
return weightLast;
|
||||
}
|
||||
public void setIsMistake(String isMistake)
|
||||
{
|
||||
this.isMistake = isMistake;
|
||||
}
|
||||
|
||||
public String getIsMistake()
|
||||
{
|
||||
return isMistake;
|
||||
}
|
||||
public void setMistakeDeal(String mistakeDeal)
|
||||
{
|
||||
this.mistakeDeal = mistakeDeal;
|
||||
}
|
||||
|
||||
public String getMistakeDeal()
|
||||
{
|
||||
return mistakeDeal;
|
||||
}
|
||||
public void setOutTime(String outTime)
|
||||
{
|
||||
this.outTime = outTime;
|
||||
}
|
||||
|
||||
public String getOutTime()
|
||||
{
|
||||
return outTime;
|
||||
}
|
||||
public void setOutNumber(String outNumber)
|
||||
{
|
||||
this.outNumber = outNumber;
|
||||
}
|
||||
|
||||
public String getOutNumber()
|
||||
{
|
||||
return outNumber;
|
||||
}
|
||||
public void setOrderInfo(String orderInfo)
|
||||
{
|
||||
this.orderInfo = orderInfo;
|
||||
}
|
||||
|
||||
public String getOrderInfo()
|
||||
{
|
||||
return orderInfo;
|
||||
}
|
||||
public void setReturnTime(String returnTime)
|
||||
{
|
||||
this.returnTime = returnTime;
|
||||
}
|
||||
|
||||
public String getReturnTime()
|
||||
{
|
||||
return returnTime;
|
||||
}
|
||||
public void setLocation(String location)
|
||||
{
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
public String getLocation()
|
||||
{
|
||||
return location;
|
||||
}
|
||||
public void setDataType(String dataType)
|
||||
{
|
||||
this.dataType = dataType;
|
||||
}
|
||||
|
||||
public String getDataType()
|
||||
{
|
||||
return dataType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("productName", getProductName())
|
||||
.append("productType", getProductType())
|
||||
.append("weightInfo", getWeightInfo())
|
||||
.append("weightLast", getWeightLast())
|
||||
.append("isMistake", getIsMistake())
|
||||
.append("mistakeDeal", getMistakeDeal())
|
||||
.append("outTime", getOutTime())
|
||||
.append("outNumber", getOutNumber())
|
||||
.append("orderInfo", getOrderInfo())
|
||||
.append("returnTime", getReturnTime())
|
||||
.append("location", getLocation())
|
||||
.append("dataType", getDataType())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.god.wmsProduct.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.god.wmsProduct.domain.WmsProductCarDelivery;
|
||||
|
||||
/**
|
||||
* 车辆出厂重量确定Mapper接口
|
||||
*
|
||||
* @author wangyan
|
||||
* @date 2023-12-06
|
||||
*/
|
||||
public interface WmsProductCarDeliveryMapper
|
||||
{
|
||||
/**
|
||||
* 查询车辆出厂重量确定
|
||||
*
|
||||
* @param id 车辆出厂重量确定主键
|
||||
* @return 车辆出厂重量确定
|
||||
*/
|
||||
public WmsProductCarDelivery selectWmsProductCarDeliveryById(String id);
|
||||
|
||||
/**
|
||||
* 查询车辆出厂重量确定列表
|
||||
*
|
||||
* @param wmsProductCarDelivery 车辆出厂重量确定
|
||||
* @return 车辆出厂重量确定集合
|
||||
*/
|
||||
public List<WmsProductCarDelivery> selectWmsProductCarDeliveryList(WmsProductCarDelivery wmsProductCarDelivery);
|
||||
|
||||
/**
|
||||
* 新增车辆出厂重量确定
|
||||
*
|
||||
* @param wmsProductCarDelivery 车辆出厂重量确定
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertWmsProductCarDelivery(WmsProductCarDelivery wmsProductCarDelivery);
|
||||
|
||||
/**
|
||||
* 修改车辆出厂重量确定
|
||||
*
|
||||
* @param wmsProductCarDelivery 车辆出厂重量确定
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateWmsProductCarDelivery(WmsProductCarDelivery wmsProductCarDelivery);
|
||||
|
||||
/**
|
||||
* 删除车辆出厂重量确定
|
||||
*
|
||||
* @param id 车辆出厂重量确定主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsProductCarDeliveryById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除车辆出厂重量确定
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsProductCarDeliveryByIds(String[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.god.wmsProduct.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.god.wmsProduct.domain.WmsProductOutMeasure;
|
||||
|
||||
/**
|
||||
* 产品出库计量Mapper接口
|
||||
*
|
||||
* @author wangyan
|
||||
* @date 2023-12-06
|
||||
*/
|
||||
public interface WmsProductOutMeasureMapper {
|
||||
/**
|
||||
* 查询产品出库计量
|
||||
*
|
||||
* @param id 产品出库计量主键
|
||||
* @return 产品出库计量
|
||||
*/
|
||||
public WmsProductOutMeasure selectWmsProductOutMeasureById(String id);
|
||||
|
||||
/**
|
||||
* 查询产品出库计量列表
|
||||
*
|
||||
* @param wmsProductOutMeasure 产品出库计量
|
||||
* @return 产品出库计量集合
|
||||
*/
|
||||
public List<WmsProductOutMeasure> selectWmsProductOutMeasureList(WmsProductOutMeasure wmsProductOutMeasure);
|
||||
|
||||
/**
|
||||
* 新增产品出库计量
|
||||
*
|
||||
* @param wmsProductOutMeasure 产品出库计量
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertWmsProductOutMeasure(WmsProductOutMeasure wmsProductOutMeasure);
|
||||
|
||||
/**
|
||||
* 修改产品出库计量
|
||||
*
|
||||
* @param wmsProductOutMeasure 产品出库计量
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateWmsProductOutMeasure(WmsProductOutMeasure wmsProductOutMeasure);
|
||||
|
||||
/**
|
||||
* 删除产品出库计量
|
||||
*
|
||||
* @param id 产品出库计量主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsProductOutMeasureById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除产品出库计量
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsProductOutMeasureByIds(String[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.god.wmsProduct.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.god.wmsProduct.domain.WmsProductCarDelivery;
|
||||
|
||||
/**
|
||||
* 车辆出厂重量确定Service接口
|
||||
*
|
||||
* @author wangyan
|
||||
* @date 2023-12-06
|
||||
*/
|
||||
public interface IWmsProductCarDeliveryService
|
||||
{
|
||||
/**
|
||||
* 查询车辆出厂重量确定
|
||||
*
|
||||
* @param id 车辆出厂重量确定主键
|
||||
* @return 车辆出厂重量确定
|
||||
*/
|
||||
public WmsProductCarDelivery selectWmsProductCarDeliveryById(String id);
|
||||
|
||||
/**
|
||||
* 查询车辆出厂重量确定列表
|
||||
*
|
||||
* @param wmsProductCarDelivery 车辆出厂重量确定
|
||||
* @return 车辆出厂重量确定集合
|
||||
*/
|
||||
public List<WmsProductCarDelivery> selectWmsProductCarDeliveryList(WmsProductCarDelivery wmsProductCarDelivery);
|
||||
|
||||
/**
|
||||
* 新增车辆出厂重量确定
|
||||
*
|
||||
* @param wmsProductCarDelivery 车辆出厂重量确定
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertWmsProductCarDelivery(WmsProductCarDelivery wmsProductCarDelivery);
|
||||
|
||||
/**
|
||||
* 修改车辆出厂重量确定
|
||||
*
|
||||
* @param wmsProductCarDelivery 车辆出厂重量确定
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateWmsProductCarDelivery(WmsProductCarDelivery wmsProductCarDelivery);
|
||||
|
||||
/**
|
||||
* 批量删除车辆出厂重量确定
|
||||
*
|
||||
* @param ids 需要删除的车辆出厂重量确定主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsProductCarDeliveryByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除车辆出厂重量确定信息
|
||||
*
|
||||
* @param id 车辆出厂重量确定主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsProductCarDeliveryById(String id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.god.wmsProduct.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.god.wmsProduct.domain.WmsProductOutMeasure;
|
||||
|
||||
/**
|
||||
* 产品出库计量Service接口
|
||||
*
|
||||
* @author wangyan
|
||||
* @date 2023-12-06
|
||||
*/
|
||||
public interface IWmsProductOutMeasureService
|
||||
{
|
||||
/**
|
||||
* 查询产品出库计量
|
||||
*
|
||||
* @param id 产品出库计量主键
|
||||
* @return 产品出库计量
|
||||
*/
|
||||
public WmsProductOutMeasure selectWmsProductOutMeasureById(String id);
|
||||
|
||||
/**
|
||||
* 查询产品出库计量列表
|
||||
*
|
||||
* @param wmsProductOutMeasure 产品出库计量
|
||||
* @return 产品出库计量集合
|
||||
*/
|
||||
public List<WmsProductOutMeasure> selectWmsProductOutMeasureList(WmsProductOutMeasure wmsProductOutMeasure);
|
||||
|
||||
/**
|
||||
* 新增产品出库计量
|
||||
*
|
||||
* @param wmsProductOutMeasure 产品出库计量
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertWmsProductOutMeasure(WmsProductOutMeasure wmsProductOutMeasure);
|
||||
|
||||
/**
|
||||
* 修改产品出库计量
|
||||
*
|
||||
* @param wmsProductOutMeasure 产品出库计量
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateWmsProductOutMeasure(WmsProductOutMeasure wmsProductOutMeasure);
|
||||
|
||||
/**
|
||||
* 批量删除产品出库计量
|
||||
*
|
||||
* @param ids 需要删除的产品出库计量主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsProductOutMeasureByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除产品出库计量信息
|
||||
*
|
||||
* @param id 产品出库计量主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsProductOutMeasureById(String id);
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package com.god.wmsProduct.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.god.common.utils.StringUtils;
|
||||
import com.god.common.utils.uuid.IdUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.god.wmsProduct.mapper.WmsProductCarDeliveryMapper;
|
||||
import com.god.wmsProduct.domain.WmsProductCarDelivery;
|
||||
import com.god.wmsProduct.service.IWmsProductCarDeliveryService;
|
||||
|
||||
/**
|
||||
* 车辆出厂重量确定Service业务层处理
|
||||
*
|
||||
* @author wangyan
|
||||
* @date 2023-12-06
|
||||
*/
|
||||
@Service
|
||||
public class WmsProductCarDeliveryServiceImpl implements IWmsProductCarDeliveryService {
|
||||
@Autowired
|
||||
private WmsProductCarDeliveryMapper wmsProductCarDeliveryMapper;
|
||||
|
||||
/**
|
||||
* 查询车辆出厂重量确定
|
||||
*
|
||||
* @param id 车辆出厂重量确定主键
|
||||
* @return 车辆出厂重量确定
|
||||
*/
|
||||
@Override
|
||||
public WmsProductCarDelivery selectWmsProductCarDeliveryById(String id) {
|
||||
return wmsProductCarDeliveryMapper.selectWmsProductCarDeliveryById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询车辆出厂重量确定列表
|
||||
*
|
||||
* @param wmsProductCarDelivery 车辆出厂重量确定
|
||||
* @return 车辆出厂重量确定
|
||||
*/
|
||||
@Override
|
||||
public List<WmsProductCarDelivery> selectWmsProductCarDeliveryList(WmsProductCarDelivery wmsProductCarDelivery) {
|
||||
return wmsProductCarDeliveryMapper.selectWmsProductCarDeliveryList(wmsProductCarDelivery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增车辆出厂重量确定
|
||||
*
|
||||
* @param wmsProductCarDelivery 车辆出厂重量确定
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertWmsProductCarDelivery(WmsProductCarDelivery wmsProductCarDelivery) {
|
||||
if (StringUtils.isBlank(wmsProductCarDelivery.getId())) {
|
||||
wmsProductCarDelivery.setId(IdUtils.fastSimpleUUID());
|
||||
}
|
||||
return wmsProductCarDeliveryMapper.insertWmsProductCarDelivery(wmsProductCarDelivery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改车辆出厂重量确定
|
||||
*
|
||||
* @param wmsProductCarDelivery 车辆出厂重量确定
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWmsProductCarDelivery(WmsProductCarDelivery wmsProductCarDelivery) {
|
||||
return wmsProductCarDeliveryMapper.updateWmsProductCarDelivery(wmsProductCarDelivery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除车辆出厂重量确定
|
||||
*
|
||||
* @param ids 需要删除的车辆出厂重量确定主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWmsProductCarDeliveryByIds(String[] ids) {
|
||||
return wmsProductCarDeliveryMapper.deleteWmsProductCarDeliveryByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除车辆出厂重量确定信息
|
||||
*
|
||||
* @param id 车辆出厂重量确定主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWmsProductCarDeliveryById(String id) {
|
||||
return wmsProductCarDeliveryMapper.deleteWmsProductCarDeliveryById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package com.god.wmsProduct.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.god.common.utils.StringUtils;
|
||||
import com.god.common.utils.uuid.IdUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.god.wmsProduct.mapper.WmsProductOutMeasureMapper;
|
||||
import com.god.wmsProduct.domain.WmsProductOutMeasure;
|
||||
import com.god.wmsProduct.service.IWmsProductOutMeasureService;
|
||||
|
||||
/**
|
||||
* 产品出库计量Service业务层处理
|
||||
*
|
||||
* @author wangyan
|
||||
* @date 2023-12-06
|
||||
*/
|
||||
@Service
|
||||
public class WmsProductOutMeasureServiceImpl implements IWmsProductOutMeasureService {
|
||||
@Autowired
|
||||
private WmsProductOutMeasureMapper wmsProductOutMeasureMapper;
|
||||
|
||||
/**
|
||||
* 查询产品出库计量
|
||||
*
|
||||
* @param id 产品出库计量主键
|
||||
* @return 产品出库计量
|
||||
*/
|
||||
@Override
|
||||
public WmsProductOutMeasure selectWmsProductOutMeasureById(String id) {
|
||||
return wmsProductOutMeasureMapper.selectWmsProductOutMeasureById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询产品出库计量列表
|
||||
*
|
||||
* @param wmsProductOutMeasure 产品出库计量
|
||||
* @return 产品出库计量
|
||||
*/
|
||||
@Override
|
||||
public List<WmsProductOutMeasure> selectWmsProductOutMeasureList(WmsProductOutMeasure wmsProductOutMeasure) {
|
||||
return wmsProductOutMeasureMapper.selectWmsProductOutMeasureList(wmsProductOutMeasure);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增产品出库计量
|
||||
*
|
||||
* @param wmsProductOutMeasure 产品出库计量
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertWmsProductOutMeasure(WmsProductOutMeasure wmsProductOutMeasure) {
|
||||
if (StringUtils.isBlank(wmsProductOutMeasure.getId())) {
|
||||
wmsProductOutMeasure.setId(IdUtils.fastSimpleUUID());
|
||||
}
|
||||
return wmsProductOutMeasureMapper.insertWmsProductOutMeasure(wmsProductOutMeasure);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改产品出库计量
|
||||
*
|
||||
* @param wmsProductOutMeasure 产品出库计量
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWmsProductOutMeasure(WmsProductOutMeasure wmsProductOutMeasure) {
|
||||
return wmsProductOutMeasureMapper.updateWmsProductOutMeasure(wmsProductOutMeasure);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除产品出库计量
|
||||
*
|
||||
* @param ids 需要删除的产品出库计量主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWmsProductOutMeasureByIds(String[] ids) {
|
||||
return wmsProductOutMeasureMapper.deleteWmsProductOutMeasureByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除产品出库计量信息
|
||||
*
|
||||
* @param id 产品出库计量主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWmsProductOutMeasureById(String id) {
|
||||
return wmsProductOutMeasureMapper.deleteWmsProductOutMeasureById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,122 @@
|
||||
<?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.god.wmsProduct.mapper.WmsProductCarDeliveryMapper">
|
||||
|
||||
<resultMap type="WmsProductCarDelivery" id="WmsProductCarDeliveryResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="productType" column="product_type" />
|
||||
<result property="productNumber" column="product_number" />
|
||||
<result property="productWeight" column="product_weight" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="address" column="address" />
|
||||
<result property="phoneInfo" column="phone_info" />
|
||||
<result property="outTime" column="out_time" />
|
||||
<result property="outNumber" column="out_number" />
|
||||
<result property="orderInfo" column="order_info" />
|
||||
<result property="auditTime" column="audit_time" />
|
||||
<result property="auditResult" column="audit_result" />
|
||||
<result property="dataType" column="data_type" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWmsProductCarDeliveryVo">
|
||||
select id, product_name, product_type, product_number, product_weight, customer_name, address, phone_info, out_time, out_number, order_info, audit_time, audit_result, data_type, remark from wms_product_car_delivery
|
||||
</sql>
|
||||
|
||||
<select id="selectWmsProductCarDeliveryList" parameterType="WmsProductCarDelivery" resultMap="WmsProductCarDeliveryResult">
|
||||
<include refid="selectWmsProductCarDeliveryVo"/>
|
||||
<where>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="productType != null and productType != ''"> and product_type like concat('%', #{productType}, '%')</if>
|
||||
<if test="productNumber != null and productNumber != ''"> and product_number = #{productNumber}</if>
|
||||
<if test="productWeight != null and productWeight != ''"> and product_weight like concat('%', #{productWeight}, '%')</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
<if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
|
||||
<if test="phoneInfo != null and phoneInfo != ''"> and phone_info like concat('%', #{phoneInfo}, '%')</if>
|
||||
<if test="params.beginOutTime != null and params.beginOutTime != '' and params.endOutTime != null and params.endOutTime != ''"> and out_time between #{params.beginOutTime} and #{params.endOutTime}</if>
|
||||
<if test="outNumber != null and outNumber != ''"> and out_number like concat('%', #{outNumber}, '%')</if>
|
||||
<if test="orderInfo != null and orderInfo != ''"> and order_info like concat('%', #{orderInfo}, '%')</if>
|
||||
<if test="auditTime != null and auditTime != ''"> and audit_time >= #{auditTime}</if>
|
||||
<if test="auditResult != null and auditResult != ''"> and audit_result = #{auditResult}</if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type = #{dataType}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectWmsProductCarDeliveryById" parameterType="String" resultMap="WmsProductCarDeliveryResult">
|
||||
<include refid="selectWmsProductCarDeliveryVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertWmsProductCarDelivery" parameterType="WmsProductCarDelivery">
|
||||
insert into wms_product_car_delivery
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="productType != null">product_type,</if>
|
||||
<if test="productNumber != null">product_number,</if>
|
||||
<if test="productWeight != null">product_weight,</if>
|
||||
<if test="customerName != null">customer_name,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="phoneInfo != null">phone_info,</if>
|
||||
<if test="outTime != null">out_time,</if>
|
||||
<if test="outNumber != null">out_number,</if>
|
||||
<if test="orderInfo != null">order_info,</if>
|
||||
<if test="auditTime != null">audit_time,</if>
|
||||
<if test="auditResult != null">audit_result,</if>
|
||||
<if test="dataType != null">data_type,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="productType != null">#{productType},</if>
|
||||
<if test="productNumber != null">#{productNumber},</if>
|
||||
<if test="productWeight != null">#{productWeight},</if>
|
||||
<if test="customerName != null">#{customerName},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="phoneInfo != null">#{phoneInfo},</if>
|
||||
<if test="outTime != null">#{outTime},</if>
|
||||
<if test="outNumber != null">#{outNumber},</if>
|
||||
<if test="orderInfo != null">#{orderInfo},</if>
|
||||
<if test="auditTime != null">#{auditTime},</if>
|
||||
<if test="auditResult != null">#{auditResult},</if>
|
||||
<if test="dataType != null">#{dataType},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateWmsProductCarDelivery" parameterType="WmsProductCarDelivery">
|
||||
update wms_product_car_delivery
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="productType != null">product_type = #{productType},</if>
|
||||
<if test="productNumber != null">product_number = #{productNumber},</if>
|
||||
<if test="productWeight != null">product_weight = #{productWeight},</if>
|
||||
<if test="customerName != null">customer_name = #{customerName},</if>
|
||||
<if test="address != null">address = #{address},</if>
|
||||
<if test="phoneInfo != null">phone_info = #{phoneInfo},</if>
|
||||
<if test="outTime != null">out_time = #{outTime},</if>
|
||||
<if test="outNumber != null">out_number = #{outNumber},</if>
|
||||
<if test="orderInfo != null">order_info = #{orderInfo},</if>
|
||||
<if test="auditTime != null">audit_time = #{auditTime},</if>
|
||||
<if test="auditResult != null">audit_result = #{auditResult},</if>
|
||||
<if test="dataType != null">data_type = #{dataType},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteWmsProductCarDeliveryById" parameterType="String">
|
||||
delete from wms_product_car_delivery where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteWmsProductCarDeliveryByIds" parameterType="String">
|
||||
delete from wms_product_car_delivery where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,117 @@
|
||||
<?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.god.wmsProduct.mapper.WmsProductOutMeasureMapper">
|
||||
|
||||
<resultMap type="WmsProductOutMeasure" id="WmsProductOutMeasureResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="productType" column="product_type" />
|
||||
<result property="weightInfo" column="weight_info" />
|
||||
<result property="weightLast" column="weight_last" />
|
||||
<result property="isMistake" column="is_mistake" />
|
||||
<result property="mistakeDeal" column="mistake_deal" />
|
||||
<result property="outTime" column="out_time" />
|
||||
<result property="outNumber" column="out_number" />
|
||||
<result property="orderInfo" column="order_info" />
|
||||
<result property="returnTime" column="return_time" />
|
||||
<result property="location" column="location" />
|
||||
<result property="dataType" column="data_type" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWmsProductOutMeasureVo">
|
||||
select id, product_name, product_type, weight_info, weight_last, is_mistake, mistake_deal, out_time, out_number, order_info, return_time, location, data_type, remark from wms_product_out_measure
|
||||
</sql>
|
||||
|
||||
<select id="selectWmsProductOutMeasureList" parameterType="WmsProductOutMeasure" resultMap="WmsProductOutMeasureResult">
|
||||
<include refid="selectWmsProductOutMeasureVo"/>
|
||||
<where>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="productType != null and productType != ''"> and product_type = #{productType}</if>
|
||||
<if test="weightInfo != null and weightInfo != ''"> and weight_info like concat('%', #{weightInfo}, '%')</if>
|
||||
<if test="weightLast != null and weightLast != ''"> and weight_last like concat('%', #{weightLast}, '%')</if>
|
||||
<if test="isMistake != null and isMistake != ''"> and is_mistake = #{isMistake}</if>
|
||||
<if test="mistakeDeal != null and mistakeDeal != ''"> and mistake_deal like concat('%', #{mistakeDeal}, '%')</if>
|
||||
<if test="params.beginOutTime != null and params.beginOutTime != '' and params.endOutTime != null and params.endOutTime != ''"> and out_time between #{params.beginOutTime} and #{params.endOutTime}</if>
|
||||
<if test="outNumber != null and outNumber != ''"> and out_number like concat('%', #{outNumber}, '%')</if>
|
||||
<if test="orderInfo != null and orderInfo != ''"> and order_info like concat('%', #{orderInfo}, '%')</if>
|
||||
<if test="returnTime != null and returnTime != ''"> and return_time >= #{returnTime}</if>
|
||||
<if test="location != null and location != ''"> and location like concat('%', #{location}, '%')</if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type = #{dataType}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectWmsProductOutMeasureById" parameterType="String" resultMap="WmsProductOutMeasureResult">
|
||||
<include refid="selectWmsProductOutMeasureVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertWmsProductOutMeasure" parameterType="WmsProductOutMeasure">
|
||||
insert into wms_product_out_measure
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="productType != null">product_type,</if>
|
||||
<if test="weightInfo != null">weight_info,</if>
|
||||
<if test="weightLast != null">weight_last,</if>
|
||||
<if test="isMistake != null">is_mistake,</if>
|
||||
<if test="mistakeDeal != null">mistake_deal,</if>
|
||||
<if test="outTime != null">out_time,</if>
|
||||
<if test="outNumber != null">out_number,</if>
|
||||
<if test="orderInfo != null">order_info,</if>
|
||||
<if test="returnTime != null">return_time,</if>
|
||||
<if test="location != null">location,</if>
|
||||
<if test="dataType != null">data_type,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="productType != null">#{productType},</if>
|
||||
<if test="weightInfo != null">#{weightInfo},</if>
|
||||
<if test="weightLast != null">#{weightLast},</if>
|
||||
<if test="isMistake != null">#{isMistake},</if>
|
||||
<if test="mistakeDeal != null">#{mistakeDeal},</if>
|
||||
<if test="outTime != null">#{outTime},</if>
|
||||
<if test="outNumber != null">#{outNumber},</if>
|
||||
<if test="orderInfo != null">#{orderInfo},</if>
|
||||
<if test="returnTime != null">#{returnTime},</if>
|
||||
<if test="location != null">#{location},</if>
|
||||
<if test="dataType != null">#{dataType},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateWmsProductOutMeasure" parameterType="WmsProductOutMeasure">
|
||||
update wms_product_out_measure
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="productType != null">product_type = #{productType},</if>
|
||||
<if test="weightInfo != null">weight_info = #{weightInfo},</if>
|
||||
<if test="weightLast != null">weight_last = #{weightLast},</if>
|
||||
<if test="isMistake != null">is_mistake = #{isMistake},</if>
|
||||
<if test="mistakeDeal != null">mistake_deal = #{mistakeDeal},</if>
|
||||
<if test="outTime != null">out_time = #{outTime},</if>
|
||||
<if test="outNumber != null">out_number = #{outNumber},</if>
|
||||
<if test="orderInfo != null">order_info = #{orderInfo},</if>
|
||||
<if test="returnTime != null">return_time = #{returnTime},</if>
|
||||
<if test="location != null">location = #{location},</if>
|
||||
<if test="dataType != null">data_type = #{dataType},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteWmsProductOutMeasureById" parameterType="String">
|
||||
delete from wms_product_out_measure where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteWmsProductOutMeasureByIds" parameterType="String">
|
||||
delete from wms_product_out_measure where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
44
god-ui/src/api/wmsProduct/delivery.js
Normal file
44
god-ui/src/api/wmsProduct/delivery.js
Normal file
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询车辆出厂重量确定列表
|
||||
export function listDelivery(query) {
|
||||
return request({
|
||||
url: '/product/delivery/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询车辆出厂重量确定详细
|
||||
export function getDelivery(id) {
|
||||
return request({
|
||||
url: '/product/delivery/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增车辆出厂重量确定
|
||||
export function addDelivery(data) {
|
||||
return request({
|
||||
url: '/product/delivery',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改车辆出厂重量确定
|
||||
export function updateDelivery(data) {
|
||||
return request({
|
||||
url: '/product/delivery',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除车辆出厂重量确定
|
||||
export function delDelivery(id) {
|
||||
return request({
|
||||
url: '/product/delivery/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
44
god-ui/src/api/wmsProduct/measure.js
Normal file
44
god-ui/src/api/wmsProduct/measure.js
Normal file
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询产品出库计量列表
|
||||
export function listMeasure(query) {
|
||||
return request({
|
||||
url: '/product/measure/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询产品出库计量详细
|
||||
export function getMeasure(id) {
|
||||
return request({
|
||||
url: '/product/measure/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增产品出库计量
|
||||
export function addMeasure(data) {
|
||||
return request({
|
||||
url: '/product/measure',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改产品出库计量
|
||||
export function updateMeasure(data) {
|
||||
return request({
|
||||
url: '/product/measure',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除产品出库计量
|
||||
export function delMeasure(id) {
|
||||
return request({
|
||||
url: '/product/measure/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
360
god-ui/src/views/wmsProduct/cancelGoods/index.vue
Normal file
360
god-ui/src/views/wmsProduct/cancelGoods/index.vue
Normal file
@ -0,0 +1,360 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="产品名称" prop="productName">
|
||||
<el-input
|
||||
v-model="queryParams.productName"
|
||||
placeholder="请输入产品名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品类型" prop="productType">
|
||||
<el-input
|
||||
v-model="queryParams.productType"
|
||||
placeholder="请输入产品类型"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="出库编号" prop="outNumber">
|
||||
<el-input
|
||||
v-model="queryParams.outNumber"
|
||||
placeholder="请输入出库编号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单编号" prop="orderInfo">
|
||||
<el-input
|
||||
v-model="queryParams.orderInfo"
|
||||
placeholder="请输入订单编号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="退货时间" prop="returnTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.returnTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择退货时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="存储位置" prop="location">
|
||||
<el-input
|
||||
v-model="queryParams.location"
|
||||
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="['product:measure: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="['product:measure: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="['product:measure:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="measureList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<!-- <el-table-column label="主键" align="center" prop="id" />-->
|
||||
<el-table-column label="产品名称" align="center" prop="productName" />
|
||||
<el-table-column label="产品类型" align="center" prop="productType" >
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.productType === '青鹏水泥'">青鹏水泥</el-tag>
|
||||
<el-tag type="success" v-else-if="scope.row.productType === '安达橡胶'">安达橡胶</el-tag>
|
||||
<el-tag type="warning" v-else-if="scope.row.productType === '桐盛建材'">桐盛建材</el-tag>
|
||||
<div v-else>{{scope.row.productType}}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="本次重量" align="center" prop="weightInfo" />
|
||||
<el-table-column label="出库编号" align="center" prop="outNumber" />
|
||||
<el-table-column label="订单编号" align="center" prop="orderInfo" />
|
||||
<el-table-column label="退货时间" align="center" prop="returnTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.returnTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="存储位置" align="center" prop="location" />
|
||||
<!-- <el-table-column label="数据类型" align="center" prop="dataType" />-->
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
<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="['product:measure:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['product:measure: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="产品名称" prop="productName">
|
||||
<el-input v-model="form.productName" placeholder="请输入产品名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="产品类型" prop="productType">
|
||||
<el-input v-model="form.productType" placeholder="请输入产品类型" />
|
||||
</el-form-item>
|
||||
<el-form-item label="本次重量" prop="weightInfo">
|
||||
<el-input v-model="form.weightInfo" placeholder="请输入本次重量" />
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="入库重量" prop="weightLast">-->
|
||||
<!-- <el-input v-model="form.weightLast" placeholder="请输入入库重量" />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="出库编号" prop="outNumber">
|
||||
<el-input v-model="form.outNumber" placeholder="请输入出库编号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="订单编号" prop="orderInfo">
|
||||
<el-input v-model="form.orderInfo" placeholder="请输入订单编号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="退货时间" prop="returnTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.returnTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择退货时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="存储位置" prop="location">
|
||||
<el-input v-model="form.location" placeholder="请输入存储位置" />
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="数据类型" prop="dataType">-->
|
||||
<!-- <el-input v-model="form.dataType" placeholder="请输入数据类型" />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" placeholder="请输入备注" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listMeasure, getMeasure, delMeasure, addMeasure, updateMeasure } from "@/api/wmsProduct/measure";
|
||||
|
||||
export default {
|
||||
//出库产品退货
|
||||
name: "CancelGodds",
|
||||
dicts: ['sys_yes_no'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 产品出库计量表格数据
|
||||
measureList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 备注时间范围
|
||||
daterangeOutTime: [],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
productName: null,
|
||||
productType: null,
|
||||
weightInfo: null,
|
||||
weightLast: null,
|
||||
isMistake: null,
|
||||
mistakeDeal: null,
|
||||
outTime: null,
|
||||
outNumber: null,
|
||||
orderInfo: null,
|
||||
returnTime: null,
|
||||
location: null,
|
||||
dataType: "出库产品退货",
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询产品出库计量列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.queryParams.params = {};
|
||||
if (null != this.daterangeOutTime && '' != this.daterangeOutTime) {
|
||||
this.queryParams.params["beginOutTime"] = this.daterangeOutTime[0];
|
||||
this.queryParams.params["endOutTime"] = this.daterangeOutTime[1];
|
||||
}
|
||||
listMeasure(this.queryParams).then(response => {
|
||||
this.measureList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
productName: null,
|
||||
productType: null,
|
||||
weightInfo: null,
|
||||
weightLast: null,
|
||||
isMistake: null,
|
||||
mistakeDeal: null,
|
||||
outTime: null,
|
||||
outNumber: null,
|
||||
orderInfo: null,
|
||||
returnTime: null,
|
||||
location: null,
|
||||
dataType: null,
|
||||
remark: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.daterangeOutTime = [];
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加出库产品退货";
|
||||
this.form.dataType = "出库产品退货";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getMeasure(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改出库产品退货";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateMeasure(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addMeasure(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除出库产品退货编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delMeasure(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('product/measure/export', {
|
||||
...this.queryParams
|
||||
}, `measure_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
454
god-ui/src/views/wmsProduct/delivery/index.vue
Normal file
454
god-ui/src/views/wmsProduct/delivery/index.vue
Normal file
@ -0,0 +1,454 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="产品名称" prop="productName">
|
||||
<el-input
|
||||
v-model="queryParams.productName"
|
||||
placeholder="请输入产品名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品类型" prop="productType">
|
||||
<el-input
|
||||
v-model="queryParams.productType"
|
||||
placeholder="请输入产品类型"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="货物数量" prop="productNumber">
|
||||
<el-input
|
||||
v-model="queryParams.productNumber"
|
||||
placeholder="请输入货物数量"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="货物重量" prop="productWeight">
|
||||
<el-input
|
||||
v-model="queryParams.productWeight"
|
||||
placeholder="请输入货物重量"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="客户名称" prop="customerName">
|
||||
<el-input
|
||||
v-model="queryParams.customerName"
|
||||
placeholder="请输入客户名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="客户地址" prop="address">
|
||||
<el-input
|
||||
v-model="queryParams.address"
|
||||
placeholder="请输入客户地址"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="客户电话" prop="phoneInfo">
|
||||
<el-input
|
||||
v-model="queryParams.phoneInfo"
|
||||
placeholder="请输入客户电话"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="送货日期">
|
||||
<el-date-picker
|
||||
v-model="daterangeOutTime"
|
||||
style="width: 240px"
|
||||
value-format="yyyy-MM-dd"
|
||||
type="daterange"
|
||||
range-separator="-"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="出库编号" prop="outNumber">
|
||||
<el-input
|
||||
v-model="queryParams.outNumber"
|
||||
placeholder="请输入出库编号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单编号" prop="orderInfo">
|
||||
<el-input
|
||||
v-model="queryParams.orderInfo"
|
||||
placeholder="请输入订单编号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核时间" prop="auditTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.auditTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择审核时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核结果" prop="auditResult">
|
||||
<el-input
|
||||
v-model="queryParams.auditResult"
|
||||
placeholder="请输入审核结果"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="数据类型" prop="dataType">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.dataType"-->
|
||||
<!-- 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="['product:delivery: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="['product:delivery: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="['product:delivery: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="['product:delivery:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="deliveryList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="产品名称" align="center" prop="productName" />
|
||||
<el-table-column label="产品类型" align="center" prop="productType" />
|
||||
<el-table-column label="货物数量" align="center" prop="productNumber" />
|
||||
<el-table-column label="货物重量" align="center" prop="productWeight" />
|
||||
<el-table-column label="客户名称" align="center" prop="customerName" />
|
||||
<el-table-column label="客户地址" align="center" prop="address" />
|
||||
<el-table-column label="客户电话" align="center" prop="phoneInfo" />
|
||||
<el-table-column label="送货日期" align="center" prop="outTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.outTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="出库编号" align="center" prop="outNumber" />
|
||||
<el-table-column label="订单编号" align="center" prop="orderInfo" />
|
||||
<el-table-column label="审核时间" align="center" prop="auditTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.auditTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="审核结果" align="center" prop="auditResult" >
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.auditResult === '合格'">合格</el-tag>
|
||||
<el-tag type="warning" v-else-if="scope.row.auditResult === '不合格'">不合格</el-tag>
|
||||
<div v-else>{{scope.row.auditResult}}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="数据类型" align="center" prop="dataType" />-->
|
||||
<!-- <el-table-column label="备注" align="center" prop="remark" />-->
|
||||
<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="['product:delivery:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['product:delivery: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="产品名称" prop="productName">
|
||||
<el-input v-model="form.productName" placeholder="请输入产品名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="产品类型" prop="productType">
|
||||
<el-input v-model="form.productType" placeholder="请输入产品类型" />
|
||||
</el-form-item>
|
||||
<el-form-item label="货物数量" prop="productNumber">
|
||||
<el-input v-model="form.productNumber" placeholder="请输入货物数量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="货物重量" prop="productWeight">
|
||||
<el-input v-model="form.productWeight" placeholder="请输入货物重量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="客户名称" prop="customerName">
|
||||
<el-input v-model="form.customerName" 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="phoneInfo">
|
||||
<el-input v-model="form.phoneInfo" placeholder="请输入客户电话" />
|
||||
</el-form-item>
|
||||
<el-form-item label="送货日期" prop="outTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.outTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择送货日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="出库编号" prop="outNumber">
|
||||
<el-input v-model="form.outNumber" placeholder="请输入出库编号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="订单编号" prop="orderInfo">
|
||||
<el-input v-model="form.orderInfo" placeholder="请输入订单编号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="审核时间" prop="auditTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.auditTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择审核时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核结果" prop="auditResult">
|
||||
<el-input v-model="form.auditResult" placeholder="请输入审核结果" />
|
||||
</el-form-item>
|
||||
<el-form-item label="数据类型" prop="dataType">
|
||||
<el-input v-model="form.dataType" placeholder="请输入数据类型" />
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" 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 { listDelivery, getDelivery, delDelivery, addDelivery, updateDelivery } from "@/api/wmsProduct/delivery";
|
||||
|
||||
export default {
|
||||
//车辆出厂重量确定
|
||||
name: "Delivery",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 车辆出厂重量确定表格数据
|
||||
deliveryList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 备注时间范围
|
||||
daterangeOutTime: [],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
productName: null,
|
||||
productType: null,
|
||||
productNumber: null,
|
||||
productWeight: null,
|
||||
customerName: null,
|
||||
address: null,
|
||||
phoneInfo: null,
|
||||
outTime: null,
|
||||
outNumber: null,
|
||||
orderInfo: null,
|
||||
auditTime: null,
|
||||
auditResult: null,
|
||||
dataType: "车辆出厂",
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询车辆出厂重量确定列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.queryParams.params = {};
|
||||
if (null != this.daterangeOutTime && '' != this.daterangeOutTime) {
|
||||
this.queryParams.params["beginOutTime"] = this.daterangeOutTime[0];
|
||||
this.queryParams.params["endOutTime"] = this.daterangeOutTime[1];
|
||||
}
|
||||
listDelivery(this.queryParams).then(response => {
|
||||
this.deliveryList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
productName: null,
|
||||
productType: null,
|
||||
productNumber: null,
|
||||
productWeight: null,
|
||||
customerName: null,
|
||||
address: null,
|
||||
phoneInfo: null,
|
||||
outTime: null,
|
||||
outNumber: null,
|
||||
orderInfo: null,
|
||||
auditTime: null,
|
||||
auditResult: null,
|
||||
dataType: null,
|
||||
remark: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.daterangeOutTime = [];
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加车辆出厂重量确定";
|
||||
this.form.dataType="车辆出厂";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getDelivery(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改车辆出厂重量确定";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateDelivery(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addDelivery(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除车辆出厂重量确定编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delDelivery(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('product/delivery/export', {
|
||||
...this.queryParams
|
||||
}, `delivery_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
437
god-ui/src/views/wmsProduct/measure/index.vue
Normal file
437
god-ui/src/views/wmsProduct/measure/index.vue
Normal file
@ -0,0 +1,437 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="产品名称" prop="productName">
|
||||
<el-input
|
||||
v-model="queryParams.productName"
|
||||
placeholder="请输入产品名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品类型" prop="productType">
|
||||
<el-input
|
||||
v-model="queryParams.productType"
|
||||
placeholder="请输入产品类型"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="本次重量" prop="weightInfo">
|
||||
<el-input
|
||||
v-model="queryParams.weightInfo"
|
||||
placeholder="请输入本次重量"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="入库重量" prop="weightLast">
|
||||
<el-input
|
||||
v-model="queryParams.weightLast"
|
||||
placeholder="请输入入库重量"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否误差" prop="isMistake">
|
||||
<el-select v-model="queryParams.isMistake" placeholder="请选择是否误差" clearable>
|
||||
<el-option
|
||||
v-for="dict in dict.type.sys_yes_no"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="误差处理" prop="mistakeDeal">
|
||||
<el-input
|
||||
v-model="queryParams.mistakeDeal"
|
||||
placeholder="请输入误差处理"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="出库时间">
|
||||
<el-date-picker
|
||||
v-model="daterangeOutTime"
|
||||
style="width: 240px"
|
||||
value-format="yyyy-MM-dd"
|
||||
type="daterange"
|
||||
range-separator="-"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="出库编号" prop="outNumber">
|
||||
<el-input
|
||||
v-model="queryParams.outNumber"
|
||||
placeholder="请输入出库编号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单编号" prop="orderInfo">
|
||||
<el-input
|
||||
v-model="queryParams.orderInfo"
|
||||
placeholder="请输入订单编号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="退货时间" prop="returnTime">-->
|
||||
<!-- <el-date-picker clearable-->
|
||||
<!-- v-model="queryParams.returnTime"-->
|
||||
<!-- type="date"-->
|
||||
<!-- value-format="yyyy-MM-dd"-->
|
||||
<!-- placeholder="请选择退货时间">-->
|
||||
<!-- </el-date-picker>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="存储位置" prop="location">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.location"-->
|
||||
<!-- 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="['product:measure: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="['product:measure: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="['product:measure:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="measureList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<!-- <el-table-column label="主键" align="center" prop="id" />-->
|
||||
<el-table-column label="产品名称" align="center" prop="productName" />
|
||||
<el-table-column label="产品类型" align="center" prop="productType" >
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.productType === '青鹏水泥'">青鹏水泥</el-tag>
|
||||
<el-tag type="success" v-else-if="scope.row.productType === '安达橡胶'">安达橡胶</el-tag>
|
||||
<el-tag type="warning" v-else-if="scope.row.productType === '桐盛建材'">桐盛建材</el-tag>
|
||||
<div v-else>{{scope.row.productType}}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="本次重量" align="center" prop="weightInfo" />
|
||||
<el-table-column label="入库重量" align="center" prop="weightLast" />
|
||||
<el-table-column label="出库时间" align="center" prop="outTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.outTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="出库编号" align="center" prop="outNumber" />
|
||||
<el-table-column label="订单编号" align="center" prop="orderInfo" />
|
||||
<!-- <el-table-column label="退货时间" align="center" prop="returnTime" width="180">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span>{{ parseTime(scope.row.returnTime, '{y}-{m}-{d}') }}</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="存储位置" align="center" prop="location" />-->
|
||||
<!-- <el-table-column label="备注" align="center" prop="remark" />-->
|
||||
<el-table-column label="是否误差" align="center" prop="isMistake">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.isMistake"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="误差处理" align="center" prop="mistakeDeal" />
|
||||
<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="['product:measure:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['product:measure: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="产品名称" prop="productName">
|
||||
<el-input v-model="form.productName" placeholder="请输入产品名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="产品类型" prop="productType">
|
||||
<el-input v-model="form.productType" placeholder="请输入产品类型" />
|
||||
</el-form-item>
|
||||
<el-form-item label="本次重量" prop="weightInfo">
|
||||
<el-input v-model="form.weightInfo" placeholder="请输入本次重量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="入库重量" prop="weightLast">
|
||||
<el-input v-model="form.weightLast" placeholder="请输入入库重量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否误差" prop="isMistake">
|
||||
<el-select v-model="form.isMistake" placeholder="请选择是否误差">
|
||||
<el-option
|
||||
v-for="dict in dict.type.sys_yes_no"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="误差处理" prop="mistakeDeal">
|
||||
<el-input v-model="form.mistakeDeal" placeholder="请输入误差处理" />
|
||||
</el-form-item>
|
||||
<el-form-item label="出库时间" prop="outTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.outTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择出库时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="出库编号" prop="outNumber">
|
||||
<el-input v-model="form.outNumber" placeholder="请输入出库编号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="订单编号" prop="orderInfo">
|
||||
<el-input v-model="form.orderInfo" placeholder="请输入订单编号" />
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="退货时间" prop="returnTime">-->
|
||||
<!-- <el-date-picker clearable-->
|
||||
<!-- v-model="form.returnTime"-->
|
||||
<!-- type="date"-->
|
||||
<!-- value-format="yyyy-MM-dd"-->
|
||||
<!-- placeholder="请选择退货时间">-->
|
||||
<!-- </el-date-picker>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="存储位置" prop="location">-->
|
||||
<!-- <el-input v-model="form.location" placeholder="请输入存储位置" />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="数据类型" prop="dataType">
|
||||
<el-input v-model="form.dataType" placeholder="请输入数据类型" />
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" placeholder="请输入备注" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listMeasure, getMeasure, delMeasure, addMeasure, updateMeasure } from "@/api/wmsProduct/measure";
|
||||
|
||||
export default {
|
||||
//产品出库计量
|
||||
name: "Measure",
|
||||
dicts: ['sys_yes_no'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 产品出库计量表格数据
|
||||
measureList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 备注时间范围
|
||||
daterangeOutTime: [],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
productName: null,
|
||||
productType: null,
|
||||
weightInfo: null,
|
||||
weightLast: null,
|
||||
isMistake: null,
|
||||
mistakeDeal: null,
|
||||
outTime: null,
|
||||
outNumber: null,
|
||||
orderInfo: null,
|
||||
returnTime: null,
|
||||
location: null,
|
||||
dataType: "产品出库计量",
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询产品出库计量列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.queryParams.params = {};
|
||||
if (null != this.daterangeOutTime && '' != this.daterangeOutTime) {
|
||||
this.queryParams.params["beginOutTime"] = this.daterangeOutTime[0];
|
||||
this.queryParams.params["endOutTime"] = this.daterangeOutTime[1];
|
||||
}
|
||||
listMeasure(this.queryParams).then(response => {
|
||||
this.measureList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
productName: null,
|
||||
productType: null,
|
||||
weightInfo: null,
|
||||
weightLast: null,
|
||||
isMistake: null,
|
||||
mistakeDeal: null,
|
||||
outTime: null,
|
||||
outNumber: null,
|
||||
orderInfo: null,
|
||||
returnTime: null,
|
||||
location: null,
|
||||
dataType: null,
|
||||
remark: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.daterangeOutTime = [];
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加产品出库计量";
|
||||
this.form.dataType = "产品出库计量";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getMeasure(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改产品出库计量";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateMeasure(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addMeasure(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除产品出库计量编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delMeasure(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('product/measure/export', {
|
||||
...this.queryParams
|
||||
}, `measure_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user