Browse Source
退换货 新增退换货前端列表页面 新增退换货Controller 新增退换货Mapper 新增退换货Mapper.xml 新增退换货Service 新增退换货ServiceImpl 新增退换货refundsExchanges.html 完成数据填充,页面展示,条件查询操作dev
liuxiaoxu
6 months ago
9 changed files with 1204 additions and 0 deletions
@ -0,0 +1,151 @@ |
|||||
|
package com.ruoyi.quality.controller; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Controller; |
||||
|
import org.springframework.ui.ModelMap; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.PathVariable; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.ResponseBody; |
||||
|
import com.ruoyi.common.annotation.Log; |
||||
|
import com.ruoyi.common.enums.BusinessType; |
||||
|
import com.ruoyi.quality.domain.QualityRefundsExchanges; |
||||
|
import com.ruoyi.quality.service.IQualityRefundsExchangesService; |
||||
|
import com.ruoyi.common.core.controller.BaseController; |
||||
|
import com.ruoyi.common.core.domain.AjaxResult; |
||||
|
import com.ruoyi.common.utils.poi.ExcelUtil; |
||||
|
import com.ruoyi.common.core.page.TableDataInfo; |
||||
|
|
||||
|
/** |
||||
|
* 品质管理退换货单Controller |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-05-23 |
||||
|
*/ |
||||
|
@Controller |
||||
|
@RequestMapping("/quality/refundsExchanges") |
||||
|
public class QualityRefundsExchangesController extends BaseController |
||||
|
{ |
||||
|
private String prefix = "quality/refundsExchanges"; |
||||
|
|
||||
|
@Autowired |
||||
|
private IQualityRefundsExchangesService qualityRefundsExchangesService; |
||||
|
|
||||
|
@RequiresPermissions("quality:refundsExchanges:view") |
||||
|
@GetMapping() |
||||
|
public String refundsExchanges() |
||||
|
{ |
||||
|
return prefix + "/refundsExchanges"; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询品质管理退换货单列表 |
||||
|
*/ |
||||
|
@RequiresPermissions("quality:refundsExchanges:list") |
||||
|
@PostMapping("/list") |
||||
|
@ResponseBody |
||||
|
public TableDataInfo list(QualityRefundsExchanges qualityRefundsExchanges) |
||||
|
{ |
||||
|
startPage(); |
||||
|
List<QualityRefundsExchanges> list = qualityRefundsExchangesService.selectQualityRefundsExchangesList(qualityRefundsExchanges); |
||||
|
return getDataTable(list); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出品质管理退换货单列表 |
||||
|
*/ |
||||
|
@RequiresPermissions("quality:refundsExchanges:export") |
||||
|
@Log(title = "品质管理退换货单", businessType = BusinessType.EXPORT) |
||||
|
@PostMapping("/export") |
||||
|
@ResponseBody |
||||
|
public AjaxResult export(QualityRefundsExchanges qualityRefundsExchanges) |
||||
|
{ |
||||
|
List<QualityRefundsExchanges> list = qualityRefundsExchangesService.selectQualityRefundsExchangesList(qualityRefundsExchanges); |
||||
|
ExcelUtil<QualityRefundsExchanges> util = new ExcelUtil<QualityRefundsExchanges>(QualityRefundsExchanges.class); |
||||
|
return util.exportExcel(list, "品质管理退换货单数据"); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增品质管理退换货单 |
||||
|
*/ |
||||
|
@GetMapping("/add") |
||||
|
public String add() |
||||
|
{ |
||||
|
return prefix + "/add"; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增保存品质管理退换货单 |
||||
|
*/ |
||||
|
@RequiresPermissions("quality:refundsExchanges:add") |
||||
|
@Log(title = "品质管理退换货单", businessType = BusinessType.INSERT) |
||||
|
@PostMapping("/add") |
||||
|
@ResponseBody |
||||
|
public AjaxResult addSave(QualityRefundsExchanges qualityRefundsExchanges) |
||||
|
{ |
||||
|
return toAjax(qualityRefundsExchangesService.insertQualityRefundsExchanges(qualityRefundsExchanges)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改品质管理退换货单 |
||||
|
*/ |
||||
|
@GetMapping("/edit/{refundsExchangesId}") |
||||
|
public String edit(@PathVariable("refundsExchangesId") Long refundsExchangesId, ModelMap mmap) |
||||
|
{ |
||||
|
QualityRefundsExchanges qualityRefundsExchanges = qualityRefundsExchangesService.selectQualityRefundsExchangesById(refundsExchangesId); |
||||
|
mmap.put("qualityRefundsExchanges", qualityRefundsExchanges); |
||||
|
return prefix + "/edit"; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改保存品质管理退换货单 |
||||
|
*/ |
||||
|
@RequiresPermissions("quality:refundsExchanges:edit") |
||||
|
@Log(title = "品质管理退换货单", businessType = BusinessType.UPDATE) |
||||
|
@PostMapping("/edit") |
||||
|
@ResponseBody |
||||
|
public AjaxResult editSave(QualityRefundsExchanges qualityRefundsExchanges) |
||||
|
{ |
||||
|
return toAjax(qualityRefundsExchangesService.updateQualityRefundsExchanges(qualityRefundsExchanges)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除品质管理退换货单 |
||||
|
*/ |
||||
|
@RequiresPermissions("quality:refundsExchanges:remove") |
||||
|
@Log(title = "品质管理退换货单", businessType = BusinessType.DELETE) |
||||
|
@PostMapping( "/remove") |
||||
|
@ResponseBody |
||||
|
public AjaxResult remove(String ids) |
||||
|
{ |
||||
|
return toAjax(qualityRefundsExchangesService.deleteQualityRefundsExchangesByIds(ids)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 作废品质管理退换货单 |
||||
|
*/ |
||||
|
@RequiresPermissions("quality:refundsExchanges:cancel") |
||||
|
@Log(title = "品质管理退换货单", businessType = BusinessType.CANCEL) |
||||
|
@GetMapping( "/cancel/{id}") |
||||
|
@ResponseBody |
||||
|
public AjaxResult cancel(@PathVariable("id") Long id){ |
||||
|
return toAjax(qualityRefundsExchangesService.cancelQualityRefundsExchangesById(id)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 恢复品质管理退换货单 |
||||
|
*/ |
||||
|
@RequiresPermissions("quality:refundsExchanges:restore") |
||||
|
@Log(title = "品质管理退换货单", businessType = BusinessType.RESTORE) |
||||
|
@GetMapping( "/restore/{id}") |
||||
|
@ResponseBody |
||||
|
public AjaxResult restore(@PathVariable("id")Long id) |
||||
|
{ |
||||
|
return toAjax(qualityRefundsExchangesService.restoreQualityRefundsExchangesById(id)); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,199 @@ |
|||||
|
package com.ruoyi.quality.domain; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
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; |
||||
|
|
||||
|
/** |
||||
|
* 品质管理退换货单对象 quality_refunds_exchanges |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-05-23 |
||||
|
*/ |
||||
|
public class QualityRefundsExchanges extends BaseEntity |
||||
|
{ |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** 退换货Id */ |
||||
|
private Long refundsExchangesId; |
||||
|
|
||||
|
/** 退换货单号 */ |
||||
|
@Excel(name = "退换货单号") |
||||
|
private String refundsExchangesCode; |
||||
|
|
||||
|
/** 退换货状态 */ |
||||
|
@Excel(name = "退换货状态") |
||||
|
private String refundsExchangesStatus; |
||||
|
|
||||
|
/** 仓库状态 */ |
||||
|
@Excel(name = "仓库状态") |
||||
|
private String qualityWarehouseStatus; |
||||
|
|
||||
|
/** 采购状态 */ |
||||
|
@Excel(name = "采购状态") |
||||
|
private String qualityPurchaseStatus; |
||||
|
|
||||
|
/** 关联订单号 */ |
||||
|
@Excel(name = "关联订单号") |
||||
|
private String relatedOrderCode; |
||||
|
|
||||
|
/** 入库单号 */ |
||||
|
@Excel(name = "入库单号") |
||||
|
private String inStorageCode; |
||||
|
|
||||
|
/** 退货节点 */ |
||||
|
@Excel(name = "退货节点") |
||||
|
private String qualityReturnNode; |
||||
|
|
||||
|
/** 物料数合计 */ |
||||
|
@Excel(name = "物料数合计") |
||||
|
private Integer materialTotal; |
||||
|
|
||||
|
/** 数量合计 */ |
||||
|
@Excel(name = "数量合计") |
||||
|
private Integer numTotal; |
||||
|
|
||||
|
/** 交付质检时间 */ |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd") |
||||
|
@Excel(name = "交付质检时间", width = 30, dateFormat = "yyyy-MM-dd") |
||||
|
private Date deliveryInspectionTime; |
||||
|
|
||||
|
/** 品质备注 */ |
||||
|
@Excel(name = "品质备注") |
||||
|
private String qualityRemark; |
||||
|
|
||||
|
public void setRefundsExchangesId(Long refundsExchangesId) |
||||
|
{ |
||||
|
this.refundsExchangesId = refundsExchangesId; |
||||
|
} |
||||
|
|
||||
|
public Long getRefundsExchangesId() |
||||
|
{ |
||||
|
return refundsExchangesId; |
||||
|
} |
||||
|
public void setRefundsExchangesCode(String refundsExchangesCode) |
||||
|
{ |
||||
|
this.refundsExchangesCode = refundsExchangesCode; |
||||
|
} |
||||
|
|
||||
|
public String getRefundsExchangesCode() |
||||
|
{ |
||||
|
return refundsExchangesCode; |
||||
|
} |
||||
|
public void setRefundsExchangesStatus(String refundsExchangesStatus) |
||||
|
{ |
||||
|
this.refundsExchangesStatus = refundsExchangesStatus; |
||||
|
} |
||||
|
|
||||
|
public String getRefundsExchangesStatus() |
||||
|
{ |
||||
|
return refundsExchangesStatus; |
||||
|
} |
||||
|
public void setQualityWarehouseStatus(String qualityWarehouseStatus) |
||||
|
{ |
||||
|
this.qualityWarehouseStatus = qualityWarehouseStatus; |
||||
|
} |
||||
|
|
||||
|
public String getQualityWarehouseStatus() |
||||
|
{ |
||||
|
return qualityWarehouseStatus; |
||||
|
} |
||||
|
public void setQualityPurchaseStatus(String qualityPurchaseStatus) |
||||
|
{ |
||||
|
this.qualityPurchaseStatus = qualityPurchaseStatus; |
||||
|
} |
||||
|
|
||||
|
public String getQualityPurchaseStatus() |
||||
|
{ |
||||
|
return qualityPurchaseStatus; |
||||
|
} |
||||
|
public void setRelatedOrderCode(String relatedOrderCode) |
||||
|
{ |
||||
|
this.relatedOrderCode = relatedOrderCode; |
||||
|
} |
||||
|
|
||||
|
public String getRelatedOrderCode() |
||||
|
{ |
||||
|
return relatedOrderCode; |
||||
|
} |
||||
|
public void setInStorageCode(String inStorageCode) |
||||
|
{ |
||||
|
this.inStorageCode = inStorageCode; |
||||
|
} |
||||
|
|
||||
|
public String getInStorageCode() |
||||
|
{ |
||||
|
return inStorageCode; |
||||
|
} |
||||
|
public void setQualityReturnNode(String qualityReturnNode) |
||||
|
{ |
||||
|
this.qualityReturnNode = qualityReturnNode; |
||||
|
} |
||||
|
|
||||
|
public String getQualityReturnNode() |
||||
|
{ |
||||
|
return qualityReturnNode; |
||||
|
} |
||||
|
public void setMaterialTotal(Integer materialTotal) |
||||
|
{ |
||||
|
this.materialTotal = materialTotal; |
||||
|
} |
||||
|
|
||||
|
public Integer getMaterialTotal() |
||||
|
{ |
||||
|
return materialTotal; |
||||
|
} |
||||
|
public void setNumTotal(Integer numTotal) |
||||
|
{ |
||||
|
this.numTotal = numTotal; |
||||
|
} |
||||
|
|
||||
|
public Integer getNumTotal() |
||||
|
{ |
||||
|
return numTotal; |
||||
|
} |
||||
|
public void setDeliveryInspectionTime(Date deliveryInspectionTime) |
||||
|
{ |
||||
|
this.deliveryInspectionTime = deliveryInspectionTime; |
||||
|
} |
||||
|
|
||||
|
public Date getDeliveryInspectionTime() |
||||
|
{ |
||||
|
return deliveryInspectionTime; |
||||
|
} |
||||
|
public void setQualityRemark(String qualityRemark) |
||||
|
{ |
||||
|
this.qualityRemark = qualityRemark; |
||||
|
} |
||||
|
|
||||
|
public String getQualityRemark() |
||||
|
{ |
||||
|
return qualityRemark; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
||||
|
.append("refundsExchangesId", getRefundsExchangesId()) |
||||
|
.append("refundsExchangesCode", getRefundsExchangesCode()) |
||||
|
.append("refundsExchangesStatus", getRefundsExchangesStatus()) |
||||
|
.append("qualityWarehouseStatus", getQualityWarehouseStatus()) |
||||
|
.append("qualityPurchaseStatus", getQualityPurchaseStatus()) |
||||
|
.append("relatedOrderCode", getRelatedOrderCode()) |
||||
|
.append("inStorageCode", getInStorageCode()) |
||||
|
.append("qualityReturnNode", getQualityReturnNode()) |
||||
|
.append("materialTotal", getMaterialTotal()) |
||||
|
.append("numTotal", getNumTotal()) |
||||
|
.append("deliveryInspectionTime", getDeliveryInspectionTime()) |
||||
|
.append("qualityRemark", getQualityRemark()) |
||||
|
.append("remark", getRemark()) |
||||
|
.append("createBy", getCreateBy()) |
||||
|
.append("createTime", getCreateTime()) |
||||
|
.append("updateBy", getUpdateBy()) |
||||
|
.append("updateTime", getUpdateTime()) |
||||
|
.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
package com.ruoyi.quality.mapper; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import com.ruoyi.quality.domain.QualityRefundsExchanges; |
||||
|
|
||||
|
/** |
||||
|
* 品质管理退换货单Mapper接口 |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-05-23 |
||||
|
*/ |
||||
|
public interface QualityRefundsExchangesMapper |
||||
|
{ |
||||
|
/** |
||||
|
* 查询品质管理退换货单 |
||||
|
* |
||||
|
* @param refundsExchangesId 品质管理退换货单ID |
||||
|
* @return 品质管理退换货单 |
||||
|
*/ |
||||
|
public QualityRefundsExchanges selectQualityRefundsExchangesById(Long refundsExchangesId); |
||||
|
|
||||
|
/** |
||||
|
* 查询品质管理退换货单列表 |
||||
|
* |
||||
|
* @param qualityRefundsExchanges 品质管理退换货单 |
||||
|
* @return 品质管理退换货单集合 |
||||
|
*/ |
||||
|
public List<QualityRefundsExchanges> selectQualityRefundsExchangesList(QualityRefundsExchanges qualityRefundsExchanges); |
||||
|
|
||||
|
/** |
||||
|
* 新增品质管理退换货单 |
||||
|
* |
||||
|
* @param qualityRefundsExchanges 品质管理退换货单 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int insertQualityRefundsExchanges(QualityRefundsExchanges qualityRefundsExchanges); |
||||
|
|
||||
|
/** |
||||
|
* 修改品质管理退换货单 |
||||
|
* |
||||
|
* @param qualityRefundsExchanges 品质管理退换货单 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int updateQualityRefundsExchanges(QualityRefundsExchanges qualityRefundsExchanges); |
||||
|
|
||||
|
/** |
||||
|
* 删除品质管理退换货单 |
||||
|
* |
||||
|
* @param refundsExchangesId 品质管理退换货单ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteQualityRefundsExchangesById(Long refundsExchangesId); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除品质管理退换货单 |
||||
|
* |
||||
|
* @param refundsExchangesIds 需要删除的数据ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteQualityRefundsExchangesByIds(String[] refundsExchangesIds); |
||||
|
|
||||
|
/** |
||||
|
* 作废品质管理退换货单 |
||||
|
* |
||||
|
* @param refundsExchangesId 品质管理退换货单ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int cancelQualityRefundsExchangesById(Long refundsExchangesId); |
||||
|
|
||||
|
/** |
||||
|
* 恢复品质管理退换货单 |
||||
|
* |
||||
|
* @param refundsExchangesId 品质管理退换货单ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int restoreQualityRefundsExchangesById(Long refundsExchangesId); |
||||
|
} |
@ -0,0 +1,75 @@ |
|||||
|
package com.ruoyi.quality.service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import com.ruoyi.quality.domain.QualityRefundsExchanges; |
||||
|
|
||||
|
/** |
||||
|
* 品质管理退换货单Service接口 |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-05-23 |
||||
|
*/ |
||||
|
public interface IQualityRefundsExchangesService |
||||
|
{ |
||||
|
/** |
||||
|
* 查询品质管理退换货单 |
||||
|
* |
||||
|
* @param refundsExchangesId 品质管理退换货单ID |
||||
|
* @return 品质管理退换货单 |
||||
|
*/ |
||||
|
public QualityRefundsExchanges selectQualityRefundsExchangesById(Long refundsExchangesId); |
||||
|
|
||||
|
/** |
||||
|
* 查询品质管理退换货单列表 |
||||
|
* |
||||
|
* @param qualityRefundsExchanges 品质管理退换货单 |
||||
|
* @return 品质管理退换货单集合 |
||||
|
*/ |
||||
|
public List<QualityRefundsExchanges> selectQualityRefundsExchangesList(QualityRefundsExchanges qualityRefundsExchanges); |
||||
|
|
||||
|
/** |
||||
|
* 新增品质管理退换货单 |
||||
|
* |
||||
|
* @param qualityRefundsExchanges 品质管理退换货单 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int insertQualityRefundsExchanges(QualityRefundsExchanges qualityRefundsExchanges); |
||||
|
|
||||
|
/** |
||||
|
* 修改品质管理退换货单 |
||||
|
* |
||||
|
* @param qualityRefundsExchanges 品质管理退换货单 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int updateQualityRefundsExchanges(QualityRefundsExchanges qualityRefundsExchanges); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除品质管理退换货单 |
||||
|
* |
||||
|
* @param ids 需要删除的数据ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteQualityRefundsExchangesByIds(String ids); |
||||
|
|
||||
|
/** |
||||
|
* 删除品质管理退换货单信息 |
||||
|
* |
||||
|
* @param refundsExchangesId 品质管理退换货单ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteQualityRefundsExchangesById(Long refundsExchangesId); |
||||
|
|
||||
|
/** |
||||
|
* 作废品质管理退换货单 |
||||
|
* @param refundsExchangesId 品质管理退换货单ID |
||||
|
* @return |
||||
|
*/ |
||||
|
int cancelQualityRefundsExchangesById(Long refundsExchangesId); |
||||
|
|
||||
|
/** |
||||
|
* 恢复品质管理退换货单 |
||||
|
* @param refundsExchangesId 品质管理退换货单ID |
||||
|
* @return |
||||
|
*/ |
||||
|
int restoreQualityRefundsExchangesById(Long refundsExchangesId); |
||||
|
} |
@ -0,0 +1,126 @@ |
|||||
|
package com.ruoyi.quality.service.impl; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import com.ruoyi.common.utils.DateUtils; |
||||
|
import com.ruoyi.common.utils.ShiroUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import com.ruoyi.quality.mapper.QualityRefundsExchangesMapper; |
||||
|
import com.ruoyi.quality.domain.QualityRefundsExchanges; |
||||
|
import com.ruoyi.quality.service.IQualityRefundsExchangesService; |
||||
|
import com.ruoyi.common.core.text.Convert; |
||||
|
|
||||
|
/** |
||||
|
* 品质管理退换货单Service业务层处理 |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-05-23 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class QualityRefundsExchangesServiceImpl implements IQualityRefundsExchangesService |
||||
|
{ |
||||
|
@Autowired |
||||
|
private QualityRefundsExchangesMapper qualityRefundsExchangesMapper; |
||||
|
|
||||
|
/** |
||||
|
* 查询品质管理退换货单 |
||||
|
* |
||||
|
* @param refundsExchangesId 品质管理退换货单ID |
||||
|
* @return 品质管理退换货单 |
||||
|
*/ |
||||
|
@Override |
||||
|
public QualityRefundsExchanges selectQualityRefundsExchangesById(Long refundsExchangesId) |
||||
|
{ |
||||
|
return qualityRefundsExchangesMapper.selectQualityRefundsExchangesById(refundsExchangesId); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询品质管理退换货单列表 |
||||
|
* |
||||
|
* @param qualityRefundsExchanges 品质管理退换货单 |
||||
|
* @return 品质管理退换货单 |
||||
|
*/ |
||||
|
@Override |
||||
|
public List<QualityRefundsExchanges> selectQualityRefundsExchangesList(QualityRefundsExchanges qualityRefundsExchanges) |
||||
|
{ |
||||
|
return qualityRefundsExchangesMapper.selectQualityRefundsExchangesList(qualityRefundsExchanges); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增品质管理退换货单 |
||||
|
* |
||||
|
* @param qualityRefundsExchanges 品质管理退换货单 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int insertQualityRefundsExchanges(QualityRefundsExchanges qualityRefundsExchanges) |
||||
|
{ |
||||
|
String loginName = ShiroUtils.getLoginName(); |
||||
|
qualityRefundsExchanges.setCreateBy(loginName); |
||||
|
qualityRefundsExchanges.setCreateTime(DateUtils.getNowDate()); |
||||
|
return qualityRefundsExchangesMapper.insertQualityRefundsExchanges(qualityRefundsExchanges); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改品质管理退换货单 |
||||
|
* |
||||
|
* @param qualityRefundsExchanges 品质管理退换货单 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int updateQualityRefundsExchanges(QualityRefundsExchanges qualityRefundsExchanges) |
||||
|
{ |
||||
|
String loginName = ShiroUtils.getLoginName(); |
||||
|
qualityRefundsExchanges.setUpdateBy(loginName); |
||||
|
qualityRefundsExchanges.setUpdateTime(DateUtils.getNowDate()); |
||||
|
return qualityRefundsExchangesMapper.updateQualityRefundsExchanges(qualityRefundsExchanges); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除品质管理退换货单对象 |
||||
|
* |
||||
|
* @param ids 需要删除的数据ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int deleteQualityRefundsExchangesByIds(String ids) |
||||
|
{ |
||||
|
return qualityRefundsExchangesMapper.deleteQualityRefundsExchangesByIds(Convert.toStrArray(ids)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除品质管理退换货单信息 |
||||
|
* |
||||
|
* @param refundsExchangesId 品质管理退换货单ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int deleteQualityRefundsExchangesById(Long refundsExchangesId) |
||||
|
{ |
||||
|
return qualityRefundsExchangesMapper.deleteQualityRefundsExchangesById(refundsExchangesId); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 作废品质管理退换货单 |
||||
|
* |
||||
|
* @param refundsExchangesId 品质管理退换货单ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int cancelQualityRefundsExchangesById(Long refundsExchangesId) |
||||
|
{ |
||||
|
return qualityRefundsExchangesMapper.cancelQualityRefundsExchangesById(refundsExchangesId); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 恢复品质管理退换货单信息 |
||||
|
* |
||||
|
* @param refundsExchangesId 品质管理退换货单ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int restoreQualityRefundsExchangesById(Long refundsExchangesId) |
||||
|
{ |
||||
|
return qualityRefundsExchangesMapper.restoreQualityRefundsExchangesById(refundsExchangesId); |
||||
|
} |
||||
|
} |
@ -0,0 +1,132 @@ |
|||||
|
<?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.quality.mapper.QualityRefundsExchangesMapper"> |
||||
|
|
||||
|
<resultMap type="QualityRefundsExchanges" id="QualityRefundsExchangesResult"> |
||||
|
<result property="refundsExchangesId" column="refunds_exchanges_id" /> |
||||
|
<result property="refundsExchangesCode" column="refunds_exchanges_code" /> |
||||
|
<result property="refundsExchangesStatus" column="refunds_exchanges_status" /> |
||||
|
<result property="qualityWarehouseStatus" column="quality_warehouse_status" /> |
||||
|
<result property="qualityPurchaseStatus" column="quality_purchase_status" /> |
||||
|
<result property="relatedOrderCode" column="related_order_code" /> |
||||
|
<result property="inStorageCode" column="in_storage_code" /> |
||||
|
<result property="qualityReturnNode" column="quality_return_node" /> |
||||
|
<result property="materialTotal" column="material_total" /> |
||||
|
<result property="numTotal" column="num_total" /> |
||||
|
<result property="deliveryInspectionTime" column="delivery_inspection_time" /> |
||||
|
<result property="qualityRemark" column="quality_remark" /> |
||||
|
<result property="remark" column="remark" /> |
||||
|
<result property="createBy" column="create_by" /> |
||||
|
<result property="createTime" column="create_time" /> |
||||
|
<result property="updateBy" column="update_by" /> |
||||
|
<result property="updateTime" column="update_time" /> |
||||
|
</resultMap> |
||||
|
|
||||
|
<sql id="selectQualityRefundsExchangesVo"> |
||||
|
select refunds_exchanges_id, refunds_exchanges_code, refunds_exchanges_status, quality_warehouse_status, quality_purchase_status, related_order_code, in_storage_code, quality_return_node, material_total, num_total, delivery_inspection_time, quality_remark, remark, create_by, create_time, update_by, update_time from quality_refunds_exchanges |
||||
|
</sql> |
||||
|
|
||||
|
<select id="selectQualityRefundsExchangesList" parameterType="QualityRefundsExchanges" resultMap="QualityRefundsExchangesResult"> |
||||
|
<include refid="selectQualityRefundsExchangesVo"/> |
||||
|
<where> |
||||
|
<if test="refundsExchangesCode != null and refundsExchangesCode != ''"> and refunds_exchanges_code = #{refundsExchangesCode}</if> |
||||
|
<if test="refundsExchangesStatus != null and refundsExchangesStatus != ''"> and refunds_exchanges_status = #{refundsExchangesStatus}</if> |
||||
|
<if test="qualityWarehouseStatus != null and qualityWarehouseStatus != ''"> and quality_warehouse_status = #{qualityWarehouseStatus}</if> |
||||
|
<if test="qualityPurchaseStatus != null and qualityPurchaseStatus != ''"> and quality_purchase_status = #{qualityPurchaseStatus}</if> |
||||
|
<if test="relatedOrderCode != null and relatedOrderCode != ''"> and related_order_code = #{relatedOrderCode}</if> |
||||
|
<if test="inStorageCode != null and inStorageCode != ''"> and in_storage_code = #{inStorageCode}</if> |
||||
|
<if test="qualityReturnNode != null and qualityReturnNode != ''"> and quality_return_node = #{qualityReturnNode}</if> |
||||
|
<if test="createTime != null "> and create_time = #{createTime}</if> |
||||
|
</where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectQualityRefundsExchangesById" parameterType="Long" resultMap="QualityRefundsExchangesResult"> |
||||
|
<include refid="selectQualityRefundsExchangesVo"/> |
||||
|
where refunds_exchanges_id = #{refundsExchangesId} |
||||
|
</select> |
||||
|
|
||||
|
<insert id="insertQualityRefundsExchanges" parameterType="QualityRefundsExchanges" useGeneratedKeys="true" keyProperty="refundsExchangesId"> |
||||
|
insert into quality_refunds_exchanges |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="refundsExchangesCode != null">refunds_exchanges_code,</if> |
||||
|
<if test="refundsExchangesStatus != null">refunds_exchanges_status,</if> |
||||
|
<if test="qualityWarehouseStatus != null">quality_warehouse_status,</if> |
||||
|
<if test="qualityPurchaseStatus != null">quality_purchase_status,</if> |
||||
|
<if test="relatedOrderCode != null">related_order_code,</if> |
||||
|
<if test="inStorageCode != null">in_storage_code,</if> |
||||
|
<if test="qualityReturnNode != null">quality_return_node,</if> |
||||
|
<if test="materialTotal != null">material_total,</if> |
||||
|
<if test="numTotal != null">num_total,</if> |
||||
|
<if test="deliveryInspectionTime != null">delivery_inspection_time,</if> |
||||
|
<if test="qualityRemark != null">quality_remark,</if> |
||||
|
<if test="remark != null">remark,</if> |
||||
|
<if test="createBy != null">create_by,</if> |
||||
|
<if test="createTime != null">create_time,</if> |
||||
|
<if test="updateBy != null">update_by,</if> |
||||
|
<if test="updateTime != null">update_time,</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="refundsExchangesCode != null">#{refundsExchangesCode},</if> |
||||
|
<if test="refundsExchangesStatus != null">#{refundsExchangesStatus},</if> |
||||
|
<if test="qualityWarehouseStatus != null">#{qualityWarehouseStatus},</if> |
||||
|
<if test="qualityPurchaseStatus != null">#{qualityPurchaseStatus},</if> |
||||
|
<if test="relatedOrderCode != null">#{relatedOrderCode},</if> |
||||
|
<if test="inStorageCode != null">#{inStorageCode},</if> |
||||
|
<if test="qualityReturnNode != null">#{qualityReturnNode},</if> |
||||
|
<if test="materialTotal != null">#{materialTotal},</if> |
||||
|
<if test="numTotal != null">#{numTotal},</if> |
||||
|
<if test="deliveryInspectionTime != null">#{deliveryInspectionTime},</if> |
||||
|
<if test="qualityRemark != null">#{qualityRemark},</if> |
||||
|
<if test="remark != null">#{remark},</if> |
||||
|
<if test="createBy != null">#{createBy},</if> |
||||
|
<if test="createTime != null">#{createTime},</if> |
||||
|
<if test="updateBy != null">#{updateBy},</if> |
||||
|
<if test="updateTime != null">#{updateTime},</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
|
||||
|
<update id="updateQualityRefundsExchanges" parameterType="QualityRefundsExchanges"> |
||||
|
update quality_refunds_exchanges |
||||
|
<trim prefix="SET" suffixOverrides=","> |
||||
|
<if test="refundsExchangesCode != null">refunds_exchanges_code = #{refundsExchangesCode},</if> |
||||
|
<if test="refundsExchangesStatus != null">refunds_exchanges_status = #{refundsExchangesStatus},</if> |
||||
|
<if test="qualityWarehouseStatus != null">quality_warehouse_status = #{qualityWarehouseStatus},</if> |
||||
|
<if test="qualityPurchaseStatus != null">quality_purchase_status = #{qualityPurchaseStatus},</if> |
||||
|
<if test="relatedOrderCode != null">related_order_code = #{relatedOrderCode},</if> |
||||
|
<if test="inStorageCode != null">in_storage_code = #{inStorageCode},</if> |
||||
|
<if test="qualityReturnNode != null">quality_return_node = #{qualityReturnNode},</if> |
||||
|
<if test="materialTotal != null">material_total = #{materialTotal},</if> |
||||
|
<if test="numTotal != null">num_total = #{numTotal},</if> |
||||
|
<if test="deliveryInspectionTime != null">delivery_inspection_time = #{deliveryInspectionTime},</if> |
||||
|
<if test="qualityRemark != null">quality_remark = #{qualityRemark},</if> |
||||
|
<if test="remark != null">remark = #{remark},</if> |
||||
|
<if test="createBy != null">create_by = #{createBy},</if> |
||||
|
<if test="createTime != null">create_time = #{createTime},</if> |
||||
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
||||
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
||||
|
</trim> |
||||
|
where refunds_exchanges_id = #{refundsExchangesId} |
||||
|
</update> |
||||
|
|
||||
|
<delete id="deleteQualityRefundsExchangesById" parameterType="Long"> |
||||
|
delete from quality_refunds_exchanges where refunds_exchanges_id = #{refundsExchangesId} |
||||
|
</delete> |
||||
|
|
||||
|
<delete id="deleteQualityRefundsExchangesByIds" parameterType="String"> |
||||
|
delete from quality_refunds_exchanges where refunds_exchanges_id in |
||||
|
<foreach item="refundsExchangesId" collection="array" open="(" separator="," close=")"> |
||||
|
#{refundsExchangesId} |
||||
|
</foreach> |
||||
|
</delete> |
||||
|
|
||||
|
<update id="cancelQualityRefundsExchangesById" parameterType="Long"> |
||||
|
update quality_refunds_exchanges set del_flag = '1' where refunds_exchanges_id = #{refundsExchangesId} |
||||
|
</update> |
||||
|
|
||||
|
<update id="restoreQualityRefundsExchangesById" parameterType="Long"> |
||||
|
update quality_refunds_exchanges set del_flag = '0' where refunds_exchanges_id = #{refundsExchangesId} |
||||
|
</update> |
||||
|
|
||||
|
</mapper> |
@ -0,0 +1,116 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
||||
|
<head> |
||||
|
<th:block th:include="include :: header('新增品质管理退换货单')" /> |
||||
|
<th:block th:include="include :: datetimepicker-css" /> |
||||
|
</head> |
||||
|
<body class="white-bg"> |
||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
||||
|
<form class="form-horizontal m" id="form-refundsExchanges-add"> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">退换货单号:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="refundsExchangesCode" class="form-control" type="text"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">退换货状态:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<select name="refundsExchangesStatus" class="form-control m-b" th:with="type=${@dict.getType('refunds_exchanges_status')}"> |
||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
||||
|
</select> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">仓库状态:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<select name="qualityWarehouseStatus" class="form-control m-b" th:with="type=${@dict.getType('quality_warehouse_status')}"> |
||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
||||
|
</select> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">采购状态:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<select name="qualityPurchaseStatus" class="form-control m-b" th:with="type=${@dict.getType('quality_purchase_status')}"> |
||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
||||
|
</select> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">关联订单号:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="relatedOrderCode" class="form-control" type="text"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">入库单号:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="inStorageCode" class="form-control" type="text"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">退货节点:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<select name="qualityReturnNode" class="form-control m-b" th:with="type=${@dict.getType('quality_return_node')}"> |
||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
||||
|
</select> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">物料数合计:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="materialTotal" class="form-control" type="text"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">数量合计:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="numTotal" class="form-control" type="text"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">交付质检时间:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<div class="input-group date"> |
||||
|
<input name="deliveryInspectionTime" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
||||
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">品质备注:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="qualityRemark" class="form-control" type="text"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">备注:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="remark" class="form-control" type="text"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</form> |
||||
|
</div> |
||||
|
<th:block th:include="include :: footer" /> |
||||
|
<th:block th:include="include :: datetimepicker-js" /> |
||||
|
<script th:inline="javascript"> |
||||
|
var prefix = ctx + "quality/refundsExchanges" |
||||
|
$("#form-refundsExchanges-add").validate({ |
||||
|
focusCleanup: true |
||||
|
}); |
||||
|
|
||||
|
function submitHandler() { |
||||
|
if ($.validate.form()) { |
||||
|
$.operate.save(prefix + "/add", $('#form-refundsExchanges-add').serialize()); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
$("input[name='deliveryInspectionTime']").datetimepicker({ |
||||
|
format: "yyyy-mm-dd", |
||||
|
minView: "month", |
||||
|
autoclose: true |
||||
|
}); |
||||
|
</script> |
||||
|
</body> |
||||
|
</html> |
@ -0,0 +1,117 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
||||
|
<head> |
||||
|
<th:block th:include="include :: header('修改品质管理退换货单')" /> |
||||
|
<th:block th:include="include :: datetimepicker-css" /> |
||||
|
</head> |
||||
|
<body class="white-bg"> |
||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
||||
|
<form class="form-horizontal m" id="form-refundsExchanges-edit" th:object="${qualityRefundsExchanges}"> |
||||
|
<input name="refundsExchangesId" th:field="*{refundsExchangesId}" type="hidden"> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">退换货单号:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="refundsExchangesCode" th:field="*{refundsExchangesCode}" class="form-control" type="text"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">退换货状态:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<select name="refundsExchangesStatus" class="form-control m-b" th:with="type=${@dict.getType('refunds_exchanges_status')}"> |
||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{refundsExchangesStatus}"></option> |
||||
|
</select> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">仓库状态:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<select name="qualityWarehouseStatus" class="form-control m-b" th:with="type=${@dict.getType('quality_warehouse_status')}"> |
||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{qualityWarehouseStatus}"></option> |
||||
|
</select> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">采购状态:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<select name="qualityPurchaseStatus" class="form-control m-b" th:with="type=${@dict.getType('quality_purchase_status')}"> |
||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{qualityPurchaseStatus}"></option> |
||||
|
</select> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">关联订单号:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="relatedOrderCode" th:field="*{relatedOrderCode}" class="form-control" type="text"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">入库单号:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="inStorageCode" th:field="*{inStorageCode}" class="form-control" type="text"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">退货节点:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<select name="qualityReturnNode" class="form-control m-b" th:with="type=${@dict.getType('quality_return_node')}"> |
||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{qualityReturnNode}"></option> |
||||
|
</select> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">物料数合计:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="materialTotal" th:field="*{materialTotal}" class="form-control" type="text"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">数量合计:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="numTotal" th:field="*{numTotal}" class="form-control" type="text"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">交付质检时间:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<div class="input-group date"> |
||||
|
<input name="deliveryInspectionTime" th:value="${#dates.format(qualityRefundsExchanges.deliveryInspectionTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
||||
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">品质备注:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="qualityRemark" th:field="*{qualityRemark}" class="form-control" type="text"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-3 control-label">备注:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="remark" th:field="*{remark}" class="form-control" type="text"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</form> |
||||
|
</div> |
||||
|
<th:block th:include="include :: footer" /> |
||||
|
<th:block th:include="include :: datetimepicker-js" /> |
||||
|
<script th:inline="javascript"> |
||||
|
var prefix = ctx + "quality/refundsExchanges"; |
||||
|
$("#form-refundsExchanges-edit").validate({ |
||||
|
focusCleanup: true |
||||
|
}); |
||||
|
|
||||
|
function submitHandler() { |
||||
|
if ($.validate.form()) { |
||||
|
$.operate.save(prefix + "/edit", $('#form-refundsExchanges-edit').serialize()); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
$("input[name='deliveryInspectionTime']").datetimepicker({ |
||||
|
format: "yyyy-mm-dd", |
||||
|
minView: "month", |
||||
|
autoclose: true |
||||
|
}); |
||||
|
</script> |
||||
|
</body> |
||||
|
</html> |
@ -0,0 +1,211 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
||||
|
<head> |
||||
|
<th:block th:include="include :: header('品质管理退换货单列表')" /> |
||||
|
</head> |
||||
|
<body class="gray-bg"> |
||||
|
<div class="container-div"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 search-collapse"> |
||||
|
<form id="formId"> |
||||
|
<div class="select-list"> |
||||
|
<ul> |
||||
|
<li> |
||||
|
<label>退换货单号:</label> |
||||
|
<input type="text" name="refundsExchangesCode"/> |
||||
|
</li> |
||||
|
<li> |
||||
|
<label>退换货状态:</label> |
||||
|
<select name="refundsExchangesStatus" th:with="type=${@dict.getType('refunds_exchanges_status')}"> |
||||
|
<option value="">所有</option> |
||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
||||
|
</select> |
||||
|
</li> |
||||
|
<li> |
||||
|
<label>仓库状态:</label> |
||||
|
<select name="qualityWarehouseStatus" th:with="type=${@dict.getType('quality_warehouse_status')}"> |
||||
|
<option value="">所有</option> |
||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
||||
|
</select> |
||||
|
</li> |
||||
|
<li> |
||||
|
<label>采购状态:</label> |
||||
|
<select name="qualityPurchaseStatus" th:with="type=${@dict.getType('quality_purchase_status')}"> |
||||
|
<option value="">所有</option> |
||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
||||
|
</select> |
||||
|
</li> |
||||
|
<li> |
||||
|
<label>关联订单号:</label> |
||||
|
<input type="text" name="relatedOrderCode"/> |
||||
|
</li> |
||||
|
<li> |
||||
|
<label>入库单号:</label> |
||||
|
<input type="text" name="inStorageCode"/> |
||||
|
</li> |
||||
|
<li> |
||||
|
<label>退货节点:</label> |
||||
|
<select name="qualityReturnNode" th:with="type=${@dict.getType('quality_return_node')}"> |
||||
|
<option value="">所有</option> |
||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
||||
|
</select> |
||||
|
</li> |
||||
|
<li> |
||||
|
<label>录入时间:</label> |
||||
|
<input type="text" class="time-input" placeholder="请选择录入时间" name="createTime"/> |
||||
|
</li> |
||||
|
<li> |
||||
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a> |
||||
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a> |
||||
|
</li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
</form> |
||||
|
</div> |
||||
|
|
||||
|
<div class="btn-group-sm" id="toolbar" role="group"> |
||||
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="quality:refundsExchanges:add"> |
||||
|
<i class="fa fa-plus"></i> 添加 |
||||
|
</a> |
||||
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="quality:refundsExchanges:edit"> |
||||
|
<i class="fa fa-edit"></i> 修改 |
||||
|
</a> |
||||
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="quality:refundsExchanges:remove"> |
||||
|
<i class="fa fa-remove"></i> 删除 |
||||
|
</a> |
||||
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="quality:refundsExchanges:export"> |
||||
|
<i class="fa fa-download"></i> 导出 |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-sm-12 select-table table-striped"> |
||||
|
<table id="bootstrap-table"></table> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<th:block th:include="include :: footer" /> |
||||
|
<script th:inline="javascript"> |
||||
|
var editFlag = [[${@permission.hasPermi('quality:refundsExchanges:edit')}]]; |
||||
|
var removeFlag = [[${@permission.hasPermi('quality:refundsExchanges:remove')}]]; |
||||
|
var cancelFlag = [[${@permission.hasPermi('quality:refundsExchanges:cancel')}]]; |
||||
|
var restoreFlag = [[${@permission.hasPermi('quality:refundsExchanges:restore')}]]; |
||||
|
var refundsExchangesStatusDatas = [[${@dict.getType('refunds_exchanges_status')}]]; |
||||
|
var qualityWarehouseStatusDatas = [[${@dict.getType('quality_warehouse_status')}]]; |
||||
|
var qualityPurchaseStatusDatas = [[${@dict.getType('quality_purchase_status')}]]; |
||||
|
var qualityReturnNodeDatas = [[${@dict.getType('quality_return_node')}]]; |
||||
|
var prefix = ctx + "quality/refundsExchanges"; |
||||
|
|
||||
|
$(function() { |
||||
|
var options = { |
||||
|
url: prefix + "/list", |
||||
|
createUrl: prefix + "/add", |
||||
|
updateUrl: prefix + "/edit/{id}", |
||||
|
removeUrl: prefix + "/remove", |
||||
|
cancelUrl: prefix + "/cancel/{id}", |
||||
|
restoreUrl: prefix + "/restore/{id}", |
||||
|
exportUrl: prefix + "/export", |
||||
|
modalName: "品质管理退换货单", |
||||
|
columns: [{ |
||||
|
checkbox: true |
||||
|
}, |
||||
|
{ |
||||
|
title: '退换货Id', |
||||
|
field: 'refundsExchangesId', |
||||
|
visible: false |
||||
|
}, |
||||
|
{ |
||||
|
title: '退换货单号', |
||||
|
field: 'refundsExchangesCode', |
||||
|
}, |
||||
|
{ |
||||
|
title: '退换货状态', |
||||
|
field: 'refundsExchangesStatus', |
||||
|
formatter: function(value, row, index) { |
||||
|
return $.table.selectDictLabel(refundsExchangesStatusDatas, value); |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
title: '仓库状态', |
||||
|
field: 'qualityWarehouseStatus', |
||||
|
formatter: function(value, row, index) { |
||||
|
return $.table.selectDictLabel(qualityWarehouseStatusDatas, value); |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
title: '采购状态', |
||||
|
field: 'qualityPurchaseStatus', |
||||
|
formatter: function(value, row, index) { |
||||
|
return $.table.selectDictLabel(qualityPurchaseStatusDatas, value); |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
title: '关联订单号', |
||||
|
field: 'relatedOrderCode', |
||||
|
}, |
||||
|
{ |
||||
|
title: '入库单号', |
||||
|
field: 'inStorageCode', |
||||
|
}, |
||||
|
{ |
||||
|
title: '退货节点', |
||||
|
field: 'qualityReturnNode', |
||||
|
formatter: function(value, row, index) { |
||||
|
return $.table.selectDictLabel(qualityReturnNodeDatas, value); |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
title: '物料数合计', |
||||
|
field: 'materialTotal', |
||||
|
}, |
||||
|
{ |
||||
|
title: '数量合计', |
||||
|
field: 'numTotal', |
||||
|
}, |
||||
|
{ |
||||
|
title: '交付质检时间', |
||||
|
field: 'deliveryInspectionTime', |
||||
|
}, |
||||
|
{ |
||||
|
title: '品质备注', |
||||
|
field: 'qualityRemark', |
||||
|
}, |
||||
|
{ |
||||
|
title: '备注', |
||||
|
field: 'remark', |
||||
|
}, |
||||
|
{ |
||||
|
title: '录入人', |
||||
|
field: 'createBy', |
||||
|
}, |
||||
|
{ |
||||
|
title: '录入时间', |
||||
|
field: 'createTime', |
||||
|
}, |
||||
|
{ |
||||
|
title: '更新人', |
||||
|
field: 'updateBy', |
||||
|
}, |
||||
|
{ |
||||
|
title: '上次更新时间', |
||||
|
field: 'updateTime', |
||||
|
}, |
||||
|
{ |
||||
|
title: '操作', |
||||
|
align: 'center', |
||||
|
formatter: function(value, row, index) { |
||||
|
var actions = []; |
||||
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.refundsExchangesId + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
||||
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.refundsExchangesId + '\')"><i class="fa fa-remove"></i>删除</a> '); |
||||
|
if(row.delFlag == '0'){ |
||||
|
actions.push('<a class="btn btn-danger btn-xs ' + cancelFlag + '" href="javascript:void(0)" onclick="$.operate.cancel(\'' + row.id + '\')"><i class="fa fa-remove"></i>作废</a> '); |
||||
|
}else{ |
||||
|
actions.push('<a class="btn btn-success btn-xs ' + restoreFlag + '" href="javascript:void(0)" onclick="$.operate.restore(\'' + row.id + '\')"><i class="fa fa-window-restore"></i>恢复</a> '); |
||||
|
} |
||||
|
return actions.join(''); |
||||
|
} |
||||
|
}] |
||||
|
}; |
||||
|
$.table.init(options); |
||||
|
}); |
||||
|
</script> |
||||
|
</body> |
||||
|
</html> |
Loading…
Reference in new issue