Browse Source
新增销售出货通知列表数据库 sys_sales_shipping_inform 新增销售出货通知domain 新增销售出货通知controller 新增销售出货通知录service 新增销售出货通知serviceImpl 新增销售出货通知mapper 新增销售出货通知前端列表页面dev
9 changed files with 1589 additions and 0 deletions
@ -0,0 +1,151 @@ |
|||
package com.ruoyi.system.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.system.domain.SysSalesShippingInform; |
|||
import com.ruoyi.system.service.ISysSalesShippingInformService; |
|||
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-07-09 |
|||
*/ |
|||
@Controller |
|||
@RequestMapping("/system/salesShippingInform") |
|||
public class SysSalesShippingInformController extends BaseController |
|||
{ |
|||
private String prefix = "system/salesShippingInform"; |
|||
|
|||
@Autowired |
|||
private ISysSalesShippingInformService sysSalesShippingInformService; |
|||
|
|||
@RequiresPermissions("system:salesShippingInform:view") |
|||
@GetMapping() |
|||
public String salesShippingInform() |
|||
{ |
|||
return prefix + "/salesShippingInform"; |
|||
} |
|||
|
|||
/** |
|||
* 查询销售出货通知列表 |
|||
*/ |
|||
@RequiresPermissions("system:salesShippingInform:list") |
|||
@PostMapping("/list") |
|||
@ResponseBody |
|||
public TableDataInfo list(SysSalesShippingInform sysSalesShippingInform) |
|||
{ |
|||
startPage(); |
|||
List<SysSalesShippingInform> list = sysSalesShippingInformService.selectSysSalesShippingInformList(sysSalesShippingInform); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出销售出货通知列表 |
|||
*/ |
|||
@RequiresPermissions("system:salesShippingInform:export") |
|||
@Log(title = "销售出货通知", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ResponseBody |
|||
public AjaxResult export(SysSalesShippingInform sysSalesShippingInform) |
|||
{ |
|||
List<SysSalesShippingInform> list = sysSalesShippingInformService.selectSysSalesShippingInformList(sysSalesShippingInform); |
|||
ExcelUtil<SysSalesShippingInform> util = new ExcelUtil<SysSalesShippingInform>(SysSalesShippingInform.class); |
|||
return util.exportExcel(list, "销售出货通知数据"); |
|||
} |
|||
|
|||
/** |
|||
* 新增销售出货通知 |
|||
*/ |
|||
@GetMapping("/add") |
|||
public String add() |
|||
{ |
|||
return prefix + "/add"; |
|||
} |
|||
|
|||
/** |
|||
* 新增保存销售出货通知 |
|||
*/ |
|||
@RequiresPermissions("system:salesShippingInform:add") |
|||
@Log(title = "销售出货通知", businessType = BusinessType.INSERT) |
|||
@PostMapping("/add") |
|||
@ResponseBody |
|||
public AjaxResult addSave(SysSalesShippingInform sysSalesShippingInform) |
|||
{ |
|||
return toAjax(sysSalesShippingInformService.insertSysSalesShippingInform(sysSalesShippingInform)); |
|||
} |
|||
|
|||
/** |
|||
* 修改销售出货通知 |
|||
*/ |
|||
@GetMapping("/edit/{shippingInformId}") |
|||
public String edit(@PathVariable("shippingInformId") Long shippingInformId, ModelMap mmap) |
|||
{ |
|||
SysSalesShippingInform sysSalesShippingInform = sysSalesShippingInformService.selectSysSalesShippingInformById(shippingInformId); |
|||
mmap.put("sysSalesShippingInform", sysSalesShippingInform); |
|||
return prefix + "/edit"; |
|||
} |
|||
|
|||
/** |
|||
* 修改保存销售出货通知 |
|||
*/ |
|||
@RequiresPermissions("system:salesShippingInform:edit") |
|||
@Log(title = "销售出货通知", businessType = BusinessType.UPDATE) |
|||
@PostMapping("/edit") |
|||
@ResponseBody |
|||
public AjaxResult editSave(SysSalesShippingInform sysSalesShippingInform) |
|||
{ |
|||
return toAjax(sysSalesShippingInformService.updateSysSalesShippingInform(sysSalesShippingInform)); |
|||
} |
|||
|
|||
/** |
|||
* 删除销售出货通知 |
|||
*/ |
|||
@RequiresPermissions("system:salesShippingInform:remove") |
|||
@Log(title = "销售出货通知", businessType = BusinessType.DELETE) |
|||
@PostMapping( "/remove") |
|||
@ResponseBody |
|||
public AjaxResult remove(String ids) |
|||
{ |
|||
return toAjax(sysSalesShippingInformService.deleteSysSalesShippingInformByIds(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 作废销售出货通知 |
|||
*/ |
|||
@RequiresPermissions("system:salesShippingInform:cancel") |
|||
@Log(title = "销售出货通知", businessType = BusinessType.CANCEL) |
|||
@GetMapping( "/cancel/{id}") |
|||
@ResponseBody |
|||
public AjaxResult cancel(@PathVariable("id") Long id){ |
|||
return toAjax(sysSalesShippingInformService.cancelSysSalesShippingInformById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 恢复销售出货通知 |
|||
*/ |
|||
@RequiresPermissions("system:salesShippingInform:restore") |
|||
@Log(title = "销售出货通知", businessType = BusinessType.RESTORE) |
|||
@GetMapping( "/restore/{id}") |
|||
@ResponseBody |
|||
public AjaxResult restore(@PathVariable("id")Long id) |
|||
{ |
|||
return toAjax(sysSalesShippingInformService.restoreSysSalesShippingInformById(id)); |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,356 @@ |
|||
package com.ruoyi.system.domain; |
|||
|
|||
import java.math.BigDecimal; |
|||
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; |
|||
|
|||
/** |
|||
* 销售出货通知对象 sys_sales_shipping_inform |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-07-09 |
|||
*/ |
|||
public class SysSalesShippingInform extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 出货通知单id */ |
|||
private Long shippingInformId; |
|||
|
|||
/** 出库单号 */ |
|||
@Excel(name = "出库单号") |
|||
private String outOrderCode; |
|||
|
|||
/** 出库状态(0待仓库准备物料、1待售后维护设备1、2待业务确认发货、3待售后维护设备2、4待出库、5部分出库、6全部出库、7已出库、8已取消) */ |
|||
@Excel(name = "出库状态", readConverterExp = "0=待仓库准备物料、1待售后维护设备1、2待业务确认发货、3待售后维护设备2、4待出库、5部分出库、6全部出库、7已出库、8已取消") |
|||
private String warehouseOutStatus; |
|||
|
|||
/** 关联销售订单号 */ |
|||
@Excel(name = "关联销售订单号") |
|||
private String salesOrderCode; |
|||
|
|||
/** 出库类型(0销售出库、1生产领料、2员工领料、3委外领料、4公司退货、5工程领料) */ |
|||
@Excel(name = "出库类型", readConverterExp = "0=销售出库、1生产领料、2员工领料、3委外领料、4公司退货、5工程领料") |
|||
private String warehouseOutType; |
|||
|
|||
/** 出库订单类型(0销售订单、1生产订单、2请购订单、3委外订单、4退换货订单、5开发修改单) */ |
|||
@Excel(name = "出库订单类型", readConverterExp = "0=销售订单、1生产订单、2请购订单、3委外订单、4退换货订单、5开发修改单") |
|||
private String warehouseOrderType; |
|||
|
|||
/** 客户代码/id */ |
|||
@Excel(name = "客户代码/id") |
|||
private String customerId; |
|||
|
|||
/** 客户名称 */ |
|||
@Excel(name = "客户名称") |
|||
private String customerName; |
|||
|
|||
/** 业务员 */ |
|||
@Excel(name = "业务员") |
|||
private String businessMembers; |
|||
|
|||
/** 客户订单号 */ |
|||
@Excel(name = "客户订单号") |
|||
private String salesOrderNumber; |
|||
|
|||
/** 物料合计 */ |
|||
@Excel(name = "物料合计") |
|||
private Integer materialSum; |
|||
|
|||
/** 数量合计 */ |
|||
@Excel(name = "数量合计") |
|||
private Integer enterpriseSum; |
|||
|
|||
/** 收货联系人 */ |
|||
@Excel(name = "收货联系人") |
|||
private String customerContact; |
|||
|
|||
/** 联系电话 */ |
|||
@Excel(name = "联系电话") |
|||
private String contactNumber; |
|||
|
|||
/** 收货地址 */ |
|||
@Excel(name = "收货地址") |
|||
private String customerContactAddress; |
|||
|
|||
/** 不含税总价(RMB) */ |
|||
@Excel(name = "不含税总价", readConverterExp = "R=MB") |
|||
private BigDecimal allPriceExcludingTaxRmb; |
|||
|
|||
/** 不含税总价(美元) */ |
|||
@Excel(name = "不含税总价", readConverterExp = "美=元") |
|||
private BigDecimal allPriceExcludingTaxDollar; |
|||
|
|||
/** 含税总价(RMB) */ |
|||
@Excel(name = "含税总价", readConverterExp = "R=MB") |
|||
private BigDecimal allPriceIncludesTax; |
|||
|
|||
/** 计划交付时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "计划交付时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date plannedDeliveryTime; |
|||
|
|||
/** 客户验收时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "客户验收时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date acceptanceTime; |
|||
|
|||
/** 付款条件 */ |
|||
@Excel(name = "付款条件") |
|||
private String paymentCondition; |
|||
|
|||
/** 交付条件 */ |
|||
@Excel(name = "交付条件") |
|||
private String deliveryCondition; |
|||
|
|||
/** 送货日期 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "送货日期", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date deliverTime; |
|||
|
|||
public void setShippingInformId(Long shippingInformId) |
|||
{ |
|||
this.shippingInformId = shippingInformId; |
|||
} |
|||
|
|||
public Long getShippingInformId() |
|||
{ |
|||
return shippingInformId; |
|||
} |
|||
public void setOutOrderCode(String outOrderCode) |
|||
{ |
|||
this.outOrderCode = outOrderCode; |
|||
} |
|||
|
|||
public String getOutOrderCode() |
|||
{ |
|||
return outOrderCode; |
|||
} |
|||
public void setWarehouseOutStatus(String warehouseOutStatus) |
|||
{ |
|||
this.warehouseOutStatus = warehouseOutStatus; |
|||
} |
|||
|
|||
public String getWarehouseOutStatus() |
|||
{ |
|||
return warehouseOutStatus; |
|||
} |
|||
public void setSalesOrderCode(String salesOrderCode) |
|||
{ |
|||
this.salesOrderCode = salesOrderCode; |
|||
} |
|||
|
|||
public String getSalesOrderCode() |
|||
{ |
|||
return salesOrderCode; |
|||
} |
|||
public void setWarehouseOutType(String warehouseOutType) |
|||
{ |
|||
this.warehouseOutType = warehouseOutType; |
|||
} |
|||
|
|||
public String getWarehouseOutType() |
|||
{ |
|||
return warehouseOutType; |
|||
} |
|||
public void setWarehouseOrderType(String warehouseOrderType) |
|||
{ |
|||
this.warehouseOrderType = warehouseOrderType; |
|||
} |
|||
|
|||
public String getWarehouseOrderType() |
|||
{ |
|||
return warehouseOrderType; |
|||
} |
|||
public void setCustomerId(String customerId) |
|||
{ |
|||
this.customerId = customerId; |
|||
} |
|||
|
|||
public String getCustomerId() |
|||
{ |
|||
return customerId; |
|||
} |
|||
public void setCustomerName(String customerName) |
|||
{ |
|||
this.customerName = customerName; |
|||
} |
|||
|
|||
public String getCustomerName() |
|||
{ |
|||
return customerName; |
|||
} |
|||
public void setBusinessMembers(String businessMembers) |
|||
{ |
|||
this.businessMembers = businessMembers; |
|||
} |
|||
|
|||
public String getBusinessMembers() |
|||
{ |
|||
return businessMembers; |
|||
} |
|||
public void setSalesOrderNumber(String salesOrderNumber) |
|||
{ |
|||
this.salesOrderNumber = salesOrderNumber; |
|||
} |
|||
|
|||
public String getSalesOrderNumber() |
|||
{ |
|||
return salesOrderNumber; |
|||
} |
|||
public void setMaterialSum(Integer materialSum) |
|||
{ |
|||
this.materialSum = materialSum; |
|||
} |
|||
|
|||
public Integer getMaterialSum() |
|||
{ |
|||
return materialSum; |
|||
} |
|||
public void setEnterpriseSum(Integer enterpriseSum) |
|||
{ |
|||
this.enterpriseSum = enterpriseSum; |
|||
} |
|||
|
|||
public Integer getEnterpriseSum() |
|||
{ |
|||
return enterpriseSum; |
|||
} |
|||
public void setCustomerContact(String customerContact) |
|||
{ |
|||
this.customerContact = customerContact; |
|||
} |
|||
|
|||
public String getCustomerContact() |
|||
{ |
|||
return customerContact; |
|||
} |
|||
public void setContactNumber(String contactNumber) |
|||
{ |
|||
this.contactNumber = contactNumber; |
|||
} |
|||
|
|||
public String getContactNumber() |
|||
{ |
|||
return contactNumber; |
|||
} |
|||
public void setCustomerContactAddress(String customerContactAddress) |
|||
{ |
|||
this.customerContactAddress = customerContactAddress; |
|||
} |
|||
|
|||
public String getCustomerContactAddress() |
|||
{ |
|||
return customerContactAddress; |
|||
} |
|||
public void setAllPriceExcludingTaxRmb(BigDecimal allPriceExcludingTaxRmb) |
|||
{ |
|||
this.allPriceExcludingTaxRmb = allPriceExcludingTaxRmb; |
|||
} |
|||
|
|||
public BigDecimal getAllPriceExcludingTaxRmb() |
|||
{ |
|||
return allPriceExcludingTaxRmb; |
|||
} |
|||
public void setAllPriceExcludingTaxDollar(BigDecimal allPriceExcludingTaxDollar) |
|||
{ |
|||
this.allPriceExcludingTaxDollar = allPriceExcludingTaxDollar; |
|||
} |
|||
|
|||
public BigDecimal getAllPriceExcludingTaxDollar() |
|||
{ |
|||
return allPriceExcludingTaxDollar; |
|||
} |
|||
public void setAllPriceIncludesTax(BigDecimal allPriceIncludesTax) |
|||
{ |
|||
this.allPriceIncludesTax = allPriceIncludesTax; |
|||
} |
|||
|
|||
public BigDecimal getAllPriceIncludesTax() |
|||
{ |
|||
return allPriceIncludesTax; |
|||
} |
|||
public void setPlannedDeliveryTime(Date plannedDeliveryTime) |
|||
{ |
|||
this.plannedDeliveryTime = plannedDeliveryTime; |
|||
} |
|||
|
|||
public Date getPlannedDeliveryTime() |
|||
{ |
|||
return plannedDeliveryTime; |
|||
} |
|||
public void setAcceptanceTime(Date acceptanceTime) |
|||
{ |
|||
this.acceptanceTime = acceptanceTime; |
|||
} |
|||
|
|||
public Date getAcceptanceTime() |
|||
{ |
|||
return acceptanceTime; |
|||
} |
|||
public void setPaymentCondition(String paymentCondition) |
|||
{ |
|||
this.paymentCondition = paymentCondition; |
|||
} |
|||
|
|||
public String getPaymentCondition() |
|||
{ |
|||
return paymentCondition; |
|||
} |
|||
public void setDeliveryCondition(String deliveryCondition) |
|||
{ |
|||
this.deliveryCondition = deliveryCondition; |
|||
} |
|||
|
|||
public String getDeliveryCondition() |
|||
{ |
|||
return deliveryCondition; |
|||
} |
|||
public void setDeliverTime(Date deliverTime) |
|||
{ |
|||
this.deliverTime = deliverTime; |
|||
} |
|||
|
|||
public Date getDeliverTime() |
|||
{ |
|||
return deliverTime; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("shippingInformId", getShippingInformId()) |
|||
.append("outOrderCode", getOutOrderCode()) |
|||
.append("warehouseOutStatus", getWarehouseOutStatus()) |
|||
.append("salesOrderCode", getSalesOrderCode()) |
|||
.append("warehouseOutType", getWarehouseOutType()) |
|||
.append("warehouseOrderType", getWarehouseOrderType()) |
|||
.append("customerId", getCustomerId()) |
|||
.append("customerName", getCustomerName()) |
|||
.append("businessMembers", getBusinessMembers()) |
|||
.append("salesOrderNumber", getSalesOrderNumber()) |
|||
.append("materialSum", getMaterialSum()) |
|||
.append("enterpriseSum", getEnterpriseSum()) |
|||
.append("customerContact", getCustomerContact()) |
|||
.append("contactNumber", getContactNumber()) |
|||
.append("customerContactAddress", getCustomerContactAddress()) |
|||
.append("createTime", getCreateTime()) |
|||
.append("createBy", getCreateBy()) |
|||
.append("updateBy", getUpdateBy()) |
|||
.append("updateTime", getUpdateTime()) |
|||
.append("remark", getRemark()) |
|||
.append("allPriceExcludingTaxRmb", getAllPriceExcludingTaxRmb()) |
|||
.append("allPriceExcludingTaxDollar", getAllPriceExcludingTaxDollar()) |
|||
.append("allPriceIncludesTax", getAllPriceIncludesTax()) |
|||
.append("plannedDeliveryTime", getPlannedDeliveryTime()) |
|||
.append("acceptanceTime", getAcceptanceTime()) |
|||
.append("paymentCondition", getPaymentCondition()) |
|||
.append("deliveryCondition", getDeliveryCondition()) |
|||
.append("deliverTime", getDeliverTime()) |
|||
.toString(); |
|||
} |
|||
} |
@ -0,0 +1,77 @@ |
|||
package com.ruoyi.system.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.system.domain.SysSalesShippingInform; |
|||
|
|||
/** |
|||
* 销售出货通知Mapper接口 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-07-09 |
|||
*/ |
|||
public interface SysSalesShippingInformMapper |
|||
{ |
|||
/** |
|||
* 查询销售出货通知 |
|||
* |
|||
* @param shippingInformId 销售出货通知ID |
|||
* @return 销售出货通知 |
|||
*/ |
|||
public SysSalesShippingInform selectSysSalesShippingInformById(Long shippingInformId); |
|||
|
|||
/** |
|||
* 查询销售出货通知列表 |
|||
* |
|||
* @param sysSalesShippingInform 销售出货通知 |
|||
* @return 销售出货通知集合 |
|||
*/ |
|||
public List<SysSalesShippingInform> selectSysSalesShippingInformList(SysSalesShippingInform sysSalesShippingInform); |
|||
|
|||
/** |
|||
* 新增销售出货通知 |
|||
* |
|||
* @param sysSalesShippingInform 销售出货通知 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertSysSalesShippingInform(SysSalesShippingInform sysSalesShippingInform); |
|||
|
|||
/** |
|||
* 修改销售出货通知 |
|||
* |
|||
* @param sysSalesShippingInform 销售出货通知 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateSysSalesShippingInform(SysSalesShippingInform sysSalesShippingInform); |
|||
|
|||
/** |
|||
* 删除销售出货通知 |
|||
* |
|||
* @param shippingInformId 销售出货通知ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSysSalesShippingInformById(Long shippingInformId); |
|||
|
|||
/** |
|||
* 批量删除销售出货通知 |
|||
* |
|||
* @param shippingInformIds 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSysSalesShippingInformByIds(String[] shippingInformIds); |
|||
|
|||
/** |
|||
* 作废销售出货通知 |
|||
* |
|||
* @param shippingInformId 销售出货通知ID |
|||
* @return 结果 |
|||
*/ |
|||
public int cancelSysSalesShippingInformById(Long shippingInformId); |
|||
|
|||
/** |
|||
* 恢复销售出货通知 |
|||
* |
|||
* @param shippingInformId 销售出货通知ID |
|||
* @return 结果 |
|||
*/ |
|||
public int restoreSysSalesShippingInformById(Long shippingInformId); |
|||
} |
@ -0,0 +1,75 @@ |
|||
package com.ruoyi.system.service; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.system.domain.SysSalesShippingInform; |
|||
|
|||
/** |
|||
* 销售出货通知Service接口 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-07-09 |
|||
*/ |
|||
public interface ISysSalesShippingInformService |
|||
{ |
|||
/** |
|||
* 查询销售出货通知 |
|||
* |
|||
* @param shippingInformId 销售出货通知ID |
|||
* @return 销售出货通知 |
|||
*/ |
|||
public SysSalesShippingInform selectSysSalesShippingInformById(Long shippingInformId); |
|||
|
|||
/** |
|||
* 查询销售出货通知列表 |
|||
* |
|||
* @param sysSalesShippingInform 销售出货通知 |
|||
* @return 销售出货通知集合 |
|||
*/ |
|||
public List<SysSalesShippingInform> selectSysSalesShippingInformList(SysSalesShippingInform sysSalesShippingInform); |
|||
|
|||
/** |
|||
* 新增销售出货通知 |
|||
* |
|||
* @param sysSalesShippingInform 销售出货通知 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertSysSalesShippingInform(SysSalesShippingInform sysSalesShippingInform); |
|||
|
|||
/** |
|||
* 修改销售出货通知 |
|||
* |
|||
* @param sysSalesShippingInform 销售出货通知 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateSysSalesShippingInform(SysSalesShippingInform sysSalesShippingInform); |
|||
|
|||
/** |
|||
* 批量删除销售出货通知 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSysSalesShippingInformByIds(String ids); |
|||
|
|||
/** |
|||
* 删除销售出货通知信息 |
|||
* |
|||
* @param shippingInformId 销售出货通知ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSysSalesShippingInformById(Long shippingInformId); |
|||
|
|||
/** |
|||
* 作废销售出货通知 |
|||
* @param shippingInformId 销售出货通知ID |
|||
* @return |
|||
*/ |
|||
int cancelSysSalesShippingInformById(Long shippingInformId); |
|||
|
|||
/** |
|||
* 恢复销售出货通知 |
|||
* @param shippingInformId 销售出货通知ID |
|||
* @return |
|||
*/ |
|||
int restoreSysSalesShippingInformById(Long shippingInformId); |
|||
} |
@ -0,0 +1,126 @@ |
|||
package com.ruoyi.system.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.system.mapper.SysSalesShippingInformMapper; |
|||
import com.ruoyi.system.domain.SysSalesShippingInform; |
|||
import com.ruoyi.system.service.ISysSalesShippingInformService; |
|||
import com.ruoyi.common.core.text.Convert; |
|||
|
|||
/** |
|||
* 销售出货通知Service业务层处理 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-07-09 |
|||
*/ |
|||
@Service |
|||
public class SysSalesShippingInformServiceImpl implements ISysSalesShippingInformService |
|||
{ |
|||
@Autowired |
|||
private SysSalesShippingInformMapper sysSalesShippingInformMapper; |
|||
|
|||
/** |
|||
* 查询销售出货通知 |
|||
* |
|||
* @param shippingInformId 销售出货通知ID |
|||
* @return 销售出货通知 |
|||
*/ |
|||
@Override |
|||
public SysSalesShippingInform selectSysSalesShippingInformById(Long shippingInformId) |
|||
{ |
|||
return sysSalesShippingInformMapper.selectSysSalesShippingInformById(shippingInformId); |
|||
} |
|||
|
|||
/** |
|||
* 查询销售出货通知列表 |
|||
* |
|||
* @param sysSalesShippingInform 销售出货通知 |
|||
* @return 销售出货通知 |
|||
*/ |
|||
@Override |
|||
public List<SysSalesShippingInform> selectSysSalesShippingInformList(SysSalesShippingInform sysSalesShippingInform) |
|||
{ |
|||
return sysSalesShippingInformMapper.selectSysSalesShippingInformList(sysSalesShippingInform); |
|||
} |
|||
|
|||
/** |
|||
* 新增销售出货通知 |
|||
* |
|||
* @param sysSalesShippingInform 销售出货通知 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertSysSalesShippingInform(SysSalesShippingInform sysSalesShippingInform) |
|||
{ |
|||
sysSalesShippingInform.setCreateTime(DateUtils.getNowDate()); |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
sysSalesShippingInform.setCreateBy(loginName); |
|||
return sysSalesShippingInformMapper.insertSysSalesShippingInform(sysSalesShippingInform); |
|||
} |
|||
|
|||
/** |
|||
* 修改销售出货通知 |
|||
* |
|||
* @param sysSalesShippingInform 销售出货通知 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateSysSalesShippingInform(SysSalesShippingInform sysSalesShippingInform) |
|||
{ |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
sysSalesShippingInform.setUpdateBy(loginName); |
|||
sysSalesShippingInform.setUpdateTime(DateUtils.getNowDate()); |
|||
return sysSalesShippingInformMapper.updateSysSalesShippingInform(sysSalesShippingInform); |
|||
} |
|||
|
|||
/** |
|||
* 删除销售出货通知对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteSysSalesShippingInformByIds(String ids) |
|||
{ |
|||
return sysSalesShippingInformMapper.deleteSysSalesShippingInformByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除销售出货通知信息 |
|||
* |
|||
* @param shippingInformId 销售出货通知ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteSysSalesShippingInformById(Long shippingInformId) |
|||
{ |
|||
return sysSalesShippingInformMapper.deleteSysSalesShippingInformById(shippingInformId); |
|||
} |
|||
|
|||
/** |
|||
* 作废销售出货通知 |
|||
* |
|||
* @param shippingInformId 销售出货通知ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int cancelSysSalesShippingInformById(Long shippingInformId) |
|||
{ |
|||
return sysSalesShippingInformMapper.cancelSysSalesShippingInformById(shippingInformId); |
|||
} |
|||
|
|||
/** |
|||
* 恢复销售出货通知信息 |
|||
* |
|||
* @param shippingInformId 销售出货通知ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int restoreSysSalesShippingInformById(Long shippingInformId) |
|||
{ |
|||
return sysSalesShippingInformMapper.restoreSysSalesShippingInformById(shippingInformId); |
|||
} |
|||
} |
@ -0,0 +1,173 @@ |
|||
<?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.system.mapper.SysSalesShippingInformMapper"> |
|||
|
|||
<resultMap type="SysSalesShippingInform" id="SysSalesShippingInformResult"> |
|||
<result property="shippingInformId" column="shipping_inform_id" /> |
|||
<result property="outOrderCode" column="out_order_code" /> |
|||
<result property="warehouseOutStatus" column="warehouse_out_status" /> |
|||
<result property="salesOrderCode" column="sales_order_code" /> |
|||
<result property="warehouseOutType" column="warehouse_out_type" /> |
|||
<result property="warehouseOrderType" column="warehouse_order_type" /> |
|||
<result property="customerId" column="customer_id" /> |
|||
<result property="customerName" column="customer_name" /> |
|||
<result property="businessMembers" column="business_members" /> |
|||
<result property="salesOrderNumber" column="sales_order_number" /> |
|||
<result property="materialSum" column="material_sum" /> |
|||
<result property="enterpriseSum" column="enterprise_sum" /> |
|||
<result property="customerContact" column="customer_contact" /> |
|||
<result property="contactNumber" column="contact_number" /> |
|||
<result property="customerContactAddress" column="customer_contact_address" /> |
|||
<result property="createTime" column="create_time" /> |
|||
<result property="createBy" column="create_by" /> |
|||
<result property="updateBy" column="update_by" /> |
|||
<result property="updateTime" column="update_time" /> |
|||
<result property="remark" column="remark" /> |
|||
<result property="allPriceExcludingTaxRmb" column="all_price_excluding_tax_rmb" /> |
|||
<result property="allPriceExcludingTaxDollar" column="all_price_excluding_tax_dollar" /> |
|||
<result property="allPriceIncludesTax" column="all_price_includes_tax" /> |
|||
<result property="plannedDeliveryTime" column="planned_delivery_time" /> |
|||
<result property="acceptanceTime" column="acceptance_time" /> |
|||
<result property="paymentCondition" column="payment_condition" /> |
|||
<result property="deliveryCondition" column="delivery_condition" /> |
|||
<result property="deliverTime" column="deliver_time" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectSysSalesShippingInformVo"> |
|||
select shipping_inform_id, out_order_code, warehouse_out_status, sales_order_code, warehouse_out_type, warehouse_order_type, customer_id, customer_name, business_members, sales_order_number, material_sum, enterprise_sum, customer_contact, contact_number, customer_contact_address, create_time, create_by, update_by, update_time, remark, all_price_excluding_tax_rmb, all_price_excluding_tax_dollar, all_price_includes_tax, planned_delivery_time, acceptance_time, payment_condition, delivery_condition, deliver_time from sys_sales_shipping_inform |
|||
</sql> |
|||
|
|||
<select id="selectSysSalesShippingInformList" parameterType="SysSalesShippingInform" resultMap="SysSalesShippingInformResult"> |
|||
<include refid="selectSysSalesShippingInformVo"/> |
|||
<where> |
|||
<if test="outOrderCode != null and outOrderCode != ''"> and out_order_code = #{outOrderCode}</if> |
|||
<if test="warehouseOutStatus != null and warehouseOutStatus != ''"> and warehouse_out_status = #{warehouseOutStatus}</if> |
|||
<if test="salesOrderCode != null and salesOrderCode != ''"> and sales_order_code = #{salesOrderCode}</if> |
|||
<if test="warehouseOrderType != null and warehouseOrderType != ''"> and warehouse_order_type = #{warehouseOrderType}</if> |
|||
<if test="businessMembers != null and businessMembers != ''"> and business_members = #{businessMembers}</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectSysSalesShippingInformById" parameterType="Long" resultMap="SysSalesShippingInformResult"> |
|||
<include refid="selectSysSalesShippingInformVo"/> |
|||
where shipping_inform_id = #{shippingInformId} |
|||
</select> |
|||
|
|||
<insert id="insertSysSalesShippingInform" parameterType="SysSalesShippingInform" useGeneratedKeys="true" keyProperty="shippingInformId"> |
|||
insert into sys_sales_shipping_inform |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="outOrderCode != null">out_order_code,</if> |
|||
<if test="warehouseOutStatus != null">warehouse_out_status,</if> |
|||
<if test="salesOrderCode != null">sales_order_code,</if> |
|||
<if test="warehouseOutType != null">warehouse_out_type,</if> |
|||
<if test="warehouseOrderType != null">warehouse_order_type,</if> |
|||
<if test="customerId != null">customer_id,</if> |
|||
<if test="customerName != null">customer_name,</if> |
|||
<if test="businessMembers != null">business_members,</if> |
|||
<if test="salesOrderNumber != null">sales_order_number,</if> |
|||
<if test="materialSum != null">material_sum,</if> |
|||
<if test="enterpriseSum != null">enterprise_sum,</if> |
|||
<if test="customerContact != null">customer_contact,</if> |
|||
<if test="contactNumber != null">contact_number,</if> |
|||
<if test="customerContactAddress != null">customer_contact_address,</if> |
|||
<if test="createTime != null">create_time,</if> |
|||
<if test="createBy != null">create_by,</if> |
|||
<if test="updateBy != null">update_by,</if> |
|||
<if test="updateTime != null">update_time,</if> |
|||
<if test="remark != null">remark,</if> |
|||
<if test="allPriceExcludingTaxRmb != null">all_price_excluding_tax_rmb,</if> |
|||
<if test="allPriceExcludingTaxDollar != null">all_price_excluding_tax_dollar,</if> |
|||
<if test="allPriceIncludesTax != null">all_price_includes_tax,</if> |
|||
<if test="plannedDeliveryTime != null">planned_delivery_time,</if> |
|||
<if test="acceptanceTime != null">acceptance_time,</if> |
|||
<if test="paymentCondition != null">payment_condition,</if> |
|||
<if test="deliveryCondition != null">delivery_condition,</if> |
|||
<if test="deliverTime != null">deliver_time,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="outOrderCode != null">#{outOrderCode},</if> |
|||
<if test="warehouseOutStatus != null">#{warehouseOutStatus},</if> |
|||
<if test="salesOrderCode != null">#{salesOrderCode},</if> |
|||
<if test="warehouseOutType != null">#{warehouseOutType},</if> |
|||
<if test="warehouseOrderType != null">#{warehouseOrderType},</if> |
|||
<if test="customerId != null">#{customerId},</if> |
|||
<if test="customerName != null">#{customerName},</if> |
|||
<if test="businessMembers != null">#{businessMembers},</if> |
|||
<if test="salesOrderNumber != null">#{salesOrderNumber},</if> |
|||
<if test="materialSum != null">#{materialSum},</if> |
|||
<if test="enterpriseSum != null">#{enterpriseSum},</if> |
|||
<if test="customerContact != null">#{customerContact},</if> |
|||
<if test="contactNumber != null">#{contactNumber},</if> |
|||
<if test="customerContactAddress != null">#{customerContactAddress},</if> |
|||
<if test="createTime != null">#{createTime},</if> |
|||
<if test="createBy != null">#{createBy},</if> |
|||
<if test="updateBy != null">#{updateBy},</if> |
|||
<if test="updateTime != null">#{updateTime},</if> |
|||
<if test="remark != null">#{remark},</if> |
|||
<if test="allPriceExcludingTaxRmb != null">#{allPriceExcludingTaxRmb},</if> |
|||
<if test="allPriceExcludingTaxDollar != null">#{allPriceExcludingTaxDollar},</if> |
|||
<if test="allPriceIncludesTax != null">#{allPriceIncludesTax},</if> |
|||
<if test="plannedDeliveryTime != null">#{plannedDeliveryTime},</if> |
|||
<if test="acceptanceTime != null">#{acceptanceTime},</if> |
|||
<if test="paymentCondition != null">#{paymentCondition},</if> |
|||
<if test="deliveryCondition != null">#{deliveryCondition},</if> |
|||
<if test="deliverTime != null">#{deliverTime},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateSysSalesShippingInform" parameterType="SysSalesShippingInform"> |
|||
update sys_sales_shipping_inform |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="outOrderCode != null">out_order_code = #{outOrderCode},</if> |
|||
<if test="warehouseOutStatus != null">warehouse_out_status = #{warehouseOutStatus},</if> |
|||
<if test="salesOrderCode != null">sales_order_code = #{salesOrderCode},</if> |
|||
<if test="warehouseOutType != null">warehouse_out_type = #{warehouseOutType},</if> |
|||
<if test="warehouseOrderType != null">warehouse_order_type = #{warehouseOrderType},</if> |
|||
<if test="customerId != null">customer_id = #{customerId},</if> |
|||
<if test="customerName != null">customer_name = #{customerName},</if> |
|||
<if test="businessMembers != null">business_members = #{businessMembers},</if> |
|||
<if test="salesOrderNumber != null">sales_order_number = #{salesOrderNumber},</if> |
|||
<if test="materialSum != null">material_sum = #{materialSum},</if> |
|||
<if test="enterpriseSum != null">enterprise_sum = #{enterpriseSum},</if> |
|||
<if test="customerContact != null">customer_contact = #{customerContact},</if> |
|||
<if test="contactNumber != null">contact_number = #{contactNumber},</if> |
|||
<if test="customerContactAddress != null">customer_contact_address = #{customerContactAddress},</if> |
|||
<if test="createTime != null">create_time = #{createTime},</if> |
|||
<if test="createBy != null">create_by = #{createBy},</if> |
|||
<if test="updateBy != null">update_by = #{updateBy},</if> |
|||
<if test="updateTime != null">update_time = #{updateTime},</if> |
|||
<if test="remark != null">remark = #{remark},</if> |
|||
<if test="allPriceExcludingTaxRmb != null">all_price_excluding_tax_rmb = #{allPriceExcludingTaxRmb},</if> |
|||
<if test="allPriceExcludingTaxDollar != null">all_price_excluding_tax_dollar = #{allPriceExcludingTaxDollar},</if> |
|||
<if test="allPriceIncludesTax != null">all_price_includes_tax = #{allPriceIncludesTax},</if> |
|||
<if test="plannedDeliveryTime != null">planned_delivery_time = #{plannedDeliveryTime},</if> |
|||
<if test="acceptanceTime != null">acceptance_time = #{acceptanceTime},</if> |
|||
<if test="paymentCondition != null">payment_condition = #{paymentCondition},</if> |
|||
<if test="deliveryCondition != null">delivery_condition = #{deliveryCondition},</if> |
|||
<if test="deliverTime != null">deliver_time = #{deliverTime},</if> |
|||
</trim> |
|||
where shipping_inform_id = #{shippingInformId} |
|||
</update> |
|||
|
|||
<delete id="deleteSysSalesShippingInformById" parameterType="Long"> |
|||
delete from sys_sales_shipping_inform where shipping_inform_id = #{shippingInformId} |
|||
</delete> |
|||
|
|||
<delete id="deleteSysSalesShippingInformByIds" parameterType="String"> |
|||
delete from sys_sales_shipping_inform where shipping_inform_id in |
|||
<foreach item="shippingInformId" collection="array" open="(" separator="," close=")"> |
|||
#{shippingInformId} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
<update id="cancelSysSalesShippingInformById" parameterType="Long"> |
|||
update sys_sales_shipping_inform set del_flag = '1' where shipping_inform_id = #{shippingInformId} |
|||
</update> |
|||
|
|||
<update id="restoreSysSalesShippingInformById" parameterType="Long"> |
|||
update sys_sales_shipping_inform set del_flag = '0' where shipping_inform_id = #{shippingInformId} |
|||
</update> |
|||
|
|||
</mapper> |
@ -0,0 +1,198 @@ |
|||
<!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-salesShippingInform-add"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出库单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="outOrderCode" 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="warehouseOutStatus" class="form-control m-b" th:with="type=${@dict.getType('warehouse_out_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="salesOrderCode" 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="warehouseOutType" class="form-control m-b" th:with="type=${@dict.getType('warehouse_out_type')}"> |
|||
<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="warehouseOrderType" class="form-control m-b" th:with="type=${@dict.getType('warehouse_order_type')}"> |
|||
<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">客户代码/id:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="customerId" 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="customerName" 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="businessMembers" 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="salesOrderNumber" 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="materialSum" 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="enterpriseSum" 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="customerContact" 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="contactNumber" 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="customerContactAddress" 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> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">不含税总价:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="allPriceExcludingTaxRmb" 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="allPriceExcludingTaxDollar" 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="allPriceIncludesTax" 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="plannedDeliveryTime" 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"> |
|||
<div class="input-group date"> |
|||
<input name="acceptanceTime" 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="paymentCondition" 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="deliveryCondition" 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="deliverTime" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
|||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "system/salesShippingInform" |
|||
$("#form-salesShippingInform-add").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/add", $('#form-salesShippingInform-add').serialize()); |
|||
} |
|||
} |
|||
|
|||
$("input[name='plannedDeliveryTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='acceptanceTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='deliverTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,199 @@ |
|||
<!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-salesShippingInform-edit" th:object="${sysSalesShippingInform}"> |
|||
<input name="shippingInformId" th:field="*{shippingInformId}" type="hidden"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出库单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="outOrderCode" th:field="*{outOrderCode}" 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="warehouseOutStatus" class="form-control m-b" th:with="type=${@dict.getType('warehouse_out_status')}"> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseOutStatus}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">关联销售订单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="salesOrderCode" th:field="*{salesOrderCode}" 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="warehouseOutType" class="form-control m-b" th:with="type=${@dict.getType('warehouse_out_type')}"> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseOutType}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">出库订单类型:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="warehouseOrderType" class="form-control m-b" th:with="type=${@dict.getType('warehouse_order_type')}"> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseOrderType}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">客户代码/id:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="customerId" th:field="*{customerId}" 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="customerName" th:field="*{customerName}" 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="businessMembers" th:field="*{businessMembers}" 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="salesOrderNumber" th:field="*{salesOrderNumber}" 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="materialSum" th:field="*{materialSum}" 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="enterpriseSum" th:field="*{enterpriseSum}" 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="customerContact" th:field="*{customerContact}" 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="contactNumber" th:field="*{contactNumber}" 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="customerContactAddress" th:field="*{customerContactAddress}" 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> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">不含税总价:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="allPriceExcludingTaxRmb" th:field="*{allPriceExcludingTaxRmb}" 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="allPriceExcludingTaxDollar" th:field="*{allPriceExcludingTaxDollar}" 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="allPriceIncludesTax" th:field="*{allPriceIncludesTax}" 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="plannedDeliveryTime" th:value="${#dates.format(sysSalesShippingInform.plannedDeliveryTime, '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"> |
|||
<div class="input-group date"> |
|||
<input name="acceptanceTime" th:value="${#dates.format(sysSalesShippingInform.acceptanceTime, '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="paymentCondition" th:field="*{paymentCondition}" 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="deliveryCondition" th:field="*{deliveryCondition}" 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="deliverTime" th:value="${#dates.format(sysSalesShippingInform.deliverTime, '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> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "system/salesShippingInform"; |
|||
$("#form-salesShippingInform-edit").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/edit", $('#form-salesShippingInform-edit').serialize()); |
|||
} |
|||
} |
|||
|
|||
$("input[name='plannedDeliveryTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='acceptanceTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='deliverTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,234 @@ |
|||
<!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="outOrderCode"/> |
|||
</li> |
|||
<li> |
|||
<label>出库状态:</label> |
|||
<select name="warehouseOutStatus" th:with="type=${@dict.getType('warehouse_out_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="salesOrderCode"/> |
|||
</li> |
|||
<li> |
|||
<label>业务员:</label> |
|||
<input type="text" name="businessMembers"/> |
|||
</li> |
|||
<li> |
|||
<label>订单类型:</label> |
|||
<select name="warehouseOrderType" th:with="type=${@dict.getType('warehouse_order_type')}"> |
|||
<option value="">所有</option> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|||
</select> |
|||
</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="system:salesShippingInform:add"> |
|||
<i class="fa fa-plus"></i> 添加 |
|||
</a> |
|||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:salesShippingInform:edit"> |
|||
<i class="fa fa-edit"></i> 修改 |
|||
</a> |
|||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:salesShippingInform:remove"> |
|||
<i class="fa fa-remove"></i> 删除 |
|||
</a> |
|||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:salesShippingInform: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('system:salesShippingInform:edit')}]]; |
|||
var removeFlag = [[${@permission.hasPermi('system:salesShippingInform:remove')}]]; |
|||
var cancelFlag = [[${@permission.hasPermi('system:salesShippingInform:cancel')}]]; |
|||
var restoreFlag = [[${@permission.hasPermi('system:salesShippingInform:restore')}]]; |
|||
var warehouseOutStatusDatas = [[${@dict.getType('warehouse_out_status')}]]; |
|||
var warehouseOutTypeDatas = [[${@dict.getType('warehouse_out_type')}]]; |
|||
var warehouseOrderTypeDatas = [[${@dict.getType('warehouse_order_type')}]]; |
|||
var prefix = ctx + "system/salesShippingInform"; |
|||
|
|||
$(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: 'shippingInformId', |
|||
visible: false |
|||
}, |
|||
{ |
|||
title: '出库单号', |
|||
field: 'outOrderCode', |
|||
}, |
|||
{ |
|||
title: '出库状态', |
|||
field: 'warehouseOutStatus', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectDictLabel(warehouseOutStatusDatas, value); |
|||
} |
|||
}, |
|||
{ |
|||
title: '业务员', |
|||
field: 'businessMembers', |
|||
}, |
|||
{ |
|||
title: '关联销售订单号', |
|||
field: 'salesOrderCode', |
|||
}, |
|||
|
|||
{ |
|||
title: '订单类型', |
|||
field: 'warehouseOrderType', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectDictLabel(warehouseOrderTypeDatas, value); |
|||
} |
|||
}, |
|||
{ |
|||
title: '出库类型', |
|||
field: 'warehouseOutType', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectDictLabel(warehouseOutTypeDatas, value); |
|||
} |
|||
}, |
|||
|
|||
{ |
|||
title: '客户ID', |
|||
field: 'customerId', |
|||
}, |
|||
{ |
|||
title: '客户名称', |
|||
field: 'customerName', |
|||
}, |
|||
|
|||
{ |
|||
title: '客户订单号', |
|||
field: 'salesOrderNumber', |
|||
}, |
|||
{ |
|||
title: '物料合计', |
|||
field: 'materialSum', |
|||
}, |
|||
{ |
|||
title: '数量合计', |
|||
field: 'enterpriseSum', |
|||
}, |
|||
|
|||
{ |
|||
title: '不含税总价', |
|||
field: 'allPriceExcludingTaxRmb', |
|||
}, |
|||
{ |
|||
title: '不含税总价', |
|||
field: 'allPriceExcludingTaxDollar', |
|||
}, |
|||
{ |
|||
title: '含税总价', |
|||
field: 'allPriceIncludesTax', |
|||
}, |
|||
{ |
|||
title: '计划交付时间', |
|||
field: 'plannedDeliveryTime', |
|||
}, |
|||
{ |
|||
title: '客户验收时间', |
|||
field: 'acceptanceTime', |
|||
}, |
|||
{ |
|||
title: '付款条件', |
|||
field: 'paymentCondition', |
|||
}, |
|||
{ |
|||
title: '交付条件', |
|||
field: 'deliveryCondition', |
|||
}, |
|||
{ |
|||
title: '收货联系人', |
|||
field: 'customerContact', |
|||
}, |
|||
{ |
|||
title: '联系电话', |
|||
field: 'contactNumber', |
|||
}, |
|||
{ |
|||
title: '收货地址', |
|||
field: 'customerContactAddress', |
|||
}, |
|||
{ |
|||
title: '送货日期', |
|||
field: 'deliverTime', |
|||
}, |
|||
{ |
|||
title: '录入时间', |
|||
field: 'createTime', |
|||
}, |
|||
{ |
|||
title: '录入人', |
|||
field: 'createBy', |
|||
}, |
|||
{ |
|||
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.shippingInformId + '\')"><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.shippingInformId + '\')"><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