liuxiaoxu
1 month ago
9 changed files with 0 additions and 1503 deletions
@ -1,126 +0,0 @@ |
|||
package com.ruoyi.sales.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.sales.domain.DemoSalesServiceInfo; |
|||
import com.ruoyi.sales.service.IDemoSalesServiceInfoService; |
|||
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; |
|||
|
|||
/** |
|||
* 销售服务主表demoController |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-07-18 |
|||
*/ |
|||
@Controller |
|||
@RequestMapping("/sales/demoSalesServiceInfo") |
|||
public class DemoSalesServiceInfoController extends BaseController |
|||
{ |
|||
private String prefix = "sales/demoSalesServiceInfo"; |
|||
|
|||
@Autowired |
|||
private IDemoSalesServiceInfoService demoSalesServiceInfoService; |
|||
|
|||
@RequiresPermissions("sales:demoSalesServiceInfo:view") |
|||
@GetMapping() |
|||
public String demoSalesServiceInfo() |
|||
{ |
|||
return prefix + "/demoSalesServiceInfo"; |
|||
} |
|||
|
|||
/** |
|||
* 查询销售服务主表demo列表 |
|||
*/ |
|||
@RequiresPermissions("sales:demoSalesServiceInfo:list") |
|||
@PostMapping("/list") |
|||
@ResponseBody |
|||
public TableDataInfo list(DemoSalesServiceInfo demoSalesServiceInfo) |
|||
{ |
|||
startPage(); |
|||
List<DemoSalesServiceInfo> list = demoSalesServiceInfoService.selectDemoSalesServiceInfoList(demoSalesServiceInfo); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出销售服务主表demo列表 |
|||
*/ |
|||
@RequiresPermissions("sales:demoSalesServiceInfo:export") |
|||
@Log(title = "销售服务主表demo", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ResponseBody |
|||
public AjaxResult export(DemoSalesServiceInfo demoSalesServiceInfo) |
|||
{ |
|||
List<DemoSalesServiceInfo> list = demoSalesServiceInfoService.selectDemoSalesServiceInfoList(demoSalesServiceInfo); |
|||
ExcelUtil<DemoSalesServiceInfo> util = new ExcelUtil<DemoSalesServiceInfo>(DemoSalesServiceInfo.class); |
|||
return util.exportExcel(list, "销售服务主表demo数据"); |
|||
} |
|||
|
|||
/** |
|||
* 新增销售服务主表demo |
|||
*/ |
|||
@GetMapping("/add") |
|||
public String add() |
|||
{ |
|||
return prefix + "/add"; |
|||
} |
|||
|
|||
/** |
|||
* 新增保存销售服务主表demo |
|||
*/ |
|||
@RequiresPermissions("sales:demoSalesServiceInfo:add") |
|||
@Log(title = "销售服务主表demo", businessType = BusinessType.INSERT) |
|||
@PostMapping("/add") |
|||
@ResponseBody |
|||
public AjaxResult addSave(DemoSalesServiceInfo demoSalesServiceInfo) |
|||
{ |
|||
return toAjax(demoSalesServiceInfoService.insertDemoSalesServiceInfo(demoSalesServiceInfo)); |
|||
} |
|||
|
|||
/** |
|||
* 修改销售服务主表demo |
|||
*/ |
|||
@GetMapping("/edit/{salesServiceInfoId}") |
|||
public String edit(@PathVariable("salesServiceInfoId") Long salesServiceInfoId, ModelMap mmap) |
|||
{ |
|||
DemoSalesServiceInfo demoSalesServiceInfo = demoSalesServiceInfoService.selectDemoSalesServiceInfoById(salesServiceInfoId); |
|||
mmap.put("demoSalesServiceInfo", demoSalesServiceInfo); |
|||
return prefix + "/edit"; |
|||
} |
|||
|
|||
/** |
|||
* 修改保存销售服务主表demo |
|||
*/ |
|||
@RequiresPermissions("sales:demoSalesServiceInfo:edit") |
|||
@Log(title = "销售服务主表demo", businessType = BusinessType.UPDATE) |
|||
@PostMapping("/edit") |
|||
@ResponseBody |
|||
public AjaxResult editSave(DemoSalesServiceInfo demoSalesServiceInfo) |
|||
{ |
|||
return toAjax(demoSalesServiceInfoService.updateDemoSalesServiceInfo(demoSalesServiceInfo)); |
|||
} |
|||
|
|||
/** |
|||
* 删除销售服务主表demo |
|||
*/ |
|||
@RequiresPermissions("sales:demoSalesServiceInfo:remove") |
|||
@Log(title = "销售服务主表demo", businessType = BusinessType.DELETE) |
|||
@PostMapping( "/remove") |
|||
@ResponseBody |
|||
public AjaxResult remove(String ids) |
|||
{ |
|||
return toAjax(demoSalesServiceInfoService.deleteDemoSalesServiceInfoByIds(ids)); |
|||
} |
|||
} |
@ -1,233 +0,0 @@ |
|||
package com.ruoyi.sales.domain; |
|||
|
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
import com.ruoyi.common.annotation.Excel; |
|||
import com.ruoyi.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 销售服务主表demo对象 demo_sales_service_info |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-07-18 |
|||
*/ |
|||
public class DemoSalesServiceInfo extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** */ |
|||
private Long salesServiceInfoId; |
|||
|
|||
/** 产品序列号 */ |
|||
@Excel(name = "产品序列号") |
|||
private String productId; |
|||
|
|||
/** 产品型号 */ |
|||
@Excel(name = "产品型号") |
|||
private String model; |
|||
|
|||
/** 版本号 */ |
|||
@Excel(name = "版本号") |
|||
private String version; |
|||
|
|||
/** 入库日期 */ |
|||
@Excel(name = "入库日期") |
|||
private String warehousingTime; |
|||
|
|||
/** 出库日期 */ |
|||
@Excel(name = "出库日期") |
|||
private String deliveryTime; |
|||
|
|||
/** 客户收货日期 */ |
|||
@Excel(name = "客户收货日期") |
|||
private String receivingTime; |
|||
|
|||
/** 内部订单号 */ |
|||
@Excel(name = "内部订单号") |
|||
private String internalOrderNumber; |
|||
|
|||
/** 客户订单号 */ |
|||
@Excel(name = "客户订单号") |
|||
private String customerOrderNumber; |
|||
|
|||
/** 送货地址 */ |
|||
@Excel(name = "送货地址") |
|||
private String shippingAddress; |
|||
|
|||
/** 出货地址 */ |
|||
@Excel(name = "出货地址") |
|||
private String deliveryAddress; |
|||
|
|||
/** 单据日期 */ |
|||
@Excel(name = "单据日期") |
|||
private String documentDate; |
|||
|
|||
/** 审批状态 */ |
|||
@Excel(name = "审批状态") |
|||
private String approvalStatus; |
|||
|
|||
/** 订单状态 */ |
|||
@Excel(name = "订单状态") |
|||
private String orderStatus; |
|||
|
|||
/** 是否含税 */ |
|||
@Excel(name = "是否含税") |
|||
private String isTax; |
|||
|
|||
public void setSalesServiceInfoId(Long salesServiceInfoId) |
|||
{ |
|||
this.salesServiceInfoId = salesServiceInfoId; |
|||
} |
|||
|
|||
public Long getSalesServiceInfoId() |
|||
{ |
|||
return salesServiceInfoId; |
|||
} |
|||
public void setProductId(String productId) |
|||
{ |
|||
this.productId = productId; |
|||
} |
|||
|
|||
public String getProductId() |
|||
{ |
|||
return productId; |
|||
} |
|||
public void setModel(String model) |
|||
{ |
|||
this.model = model; |
|||
} |
|||
|
|||
public String getModel() |
|||
{ |
|||
return model; |
|||
} |
|||
public void setVersion(String version) |
|||
{ |
|||
this.version = version; |
|||
} |
|||
|
|||
public String getVersion() |
|||
{ |
|||
return version; |
|||
} |
|||
public void setWarehousingTime(String warehousingTime) |
|||
{ |
|||
this.warehousingTime = warehousingTime; |
|||
} |
|||
|
|||
public String getWarehousingTime() |
|||
{ |
|||
return warehousingTime; |
|||
} |
|||
public void setDeliveryTime(String deliveryTime) |
|||
{ |
|||
this.deliveryTime = deliveryTime; |
|||
} |
|||
|
|||
public String getDeliveryTime() |
|||
{ |
|||
return deliveryTime; |
|||
} |
|||
public void setReceivingTime(String receivingTime) |
|||
{ |
|||
this.receivingTime = receivingTime; |
|||
} |
|||
|
|||
public String getReceivingTime() |
|||
{ |
|||
return receivingTime; |
|||
} |
|||
public void setInternalOrderNumber(String internalOrderNumber) |
|||
{ |
|||
this.internalOrderNumber = internalOrderNumber; |
|||
} |
|||
|
|||
public String getInternalOrderNumber() |
|||
{ |
|||
return internalOrderNumber; |
|||
} |
|||
public void setCustomerOrderNumber(String customerOrderNumber) |
|||
{ |
|||
this.customerOrderNumber = customerOrderNumber; |
|||
} |
|||
|
|||
public String getCustomerOrderNumber() |
|||
{ |
|||
return customerOrderNumber; |
|||
} |
|||
public void setShippingAddress(String shippingAddress) |
|||
{ |
|||
this.shippingAddress = shippingAddress; |
|||
} |
|||
|
|||
public String getShippingAddress() |
|||
{ |
|||
return shippingAddress; |
|||
} |
|||
public void setDeliveryAddress(String deliveryAddress) |
|||
{ |
|||
this.deliveryAddress = deliveryAddress; |
|||
} |
|||
|
|||
public String getDeliveryAddress() |
|||
{ |
|||
return deliveryAddress; |
|||
} |
|||
public void setDocumentDate(String documentDate) |
|||
{ |
|||
this.documentDate = documentDate; |
|||
} |
|||
|
|||
public String getDocumentDate() |
|||
{ |
|||
return documentDate; |
|||
} |
|||
public void setApprovalStatus(String approvalStatus) |
|||
{ |
|||
this.approvalStatus = approvalStatus; |
|||
} |
|||
|
|||
public String getApprovalStatus() |
|||
{ |
|||
return approvalStatus; |
|||
} |
|||
public void setOrderStatus(String orderStatus) |
|||
{ |
|||
this.orderStatus = orderStatus; |
|||
} |
|||
|
|||
public String getOrderStatus() |
|||
{ |
|||
return orderStatus; |
|||
} |
|||
public void setIsTax(String isTax) |
|||
{ |
|||
this.isTax = isTax; |
|||
} |
|||
|
|||
public String getIsTax() |
|||
{ |
|||
return isTax; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("salesServiceInfoId", getSalesServiceInfoId()) |
|||
.append("productId", getProductId()) |
|||
.append("model", getModel()) |
|||
.append("version", getVersion()) |
|||
.append("warehousingTime", getWarehousingTime()) |
|||
.append("deliveryTime", getDeliveryTime()) |
|||
.append("receivingTime", getReceivingTime()) |
|||
.append("internalOrderNumber", getInternalOrderNumber()) |
|||
.append("customerOrderNumber", getCustomerOrderNumber()) |
|||
.append("shippingAddress", getShippingAddress()) |
|||
.append("deliveryAddress", getDeliveryAddress()) |
|||
.append("documentDate", getDocumentDate()) |
|||
.append("approvalStatus", getApprovalStatus()) |
|||
.append("orderStatus", getOrderStatus()) |
|||
.append("isTax", getIsTax()) |
|||
.toString(); |
|||
} |
|||
} |
@ -1,61 +0,0 @@ |
|||
package com.ruoyi.sales.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.sales.domain.DemoSalesServiceInfo; |
|||
|
|||
/** |
|||
* 销售服务主表demoMapper接口 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-07-18 |
|||
*/ |
|||
public interface DemoSalesServiceInfoMapper |
|||
{ |
|||
/** |
|||
* 查询销售服务主表demo |
|||
* |
|||
* @param salesServiceInfoId 销售服务主表demoID |
|||
* @return 销售服务主表demo |
|||
*/ |
|||
public DemoSalesServiceInfo selectDemoSalesServiceInfoById(Long salesServiceInfoId); |
|||
|
|||
/** |
|||
* 查询销售服务主表demo列表 |
|||
* |
|||
* @param demoSalesServiceInfo 销售服务主表demo |
|||
* @return 销售服务主表demo集合 |
|||
*/ |
|||
public List<DemoSalesServiceInfo> selectDemoSalesServiceInfoList(DemoSalesServiceInfo demoSalesServiceInfo); |
|||
|
|||
/** |
|||
* 新增销售服务主表demo |
|||
* |
|||
* @param demoSalesServiceInfo 销售服务主表demo |
|||
* @return 结果 |
|||
*/ |
|||
public int insertDemoSalesServiceInfo(DemoSalesServiceInfo demoSalesServiceInfo); |
|||
|
|||
/** |
|||
* 修改销售服务主表demo |
|||
* |
|||
* @param demoSalesServiceInfo 销售服务主表demo |
|||
* @return 结果 |
|||
*/ |
|||
public int updateDemoSalesServiceInfo(DemoSalesServiceInfo demoSalesServiceInfo); |
|||
|
|||
/** |
|||
* 删除销售服务主表demo |
|||
* |
|||
* @param salesServiceInfoId 销售服务主表demoID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteDemoSalesServiceInfoById(Long salesServiceInfoId); |
|||
|
|||
/** |
|||
* 批量删除销售服务主表demo |
|||
* |
|||
* @param salesServiceInfoIds 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteDemoSalesServiceInfoByIds(String[] salesServiceInfoIds); |
|||
} |
@ -1,61 +0,0 @@ |
|||
package com.ruoyi.sales.service; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.sales.domain.DemoSalesServiceInfo; |
|||
|
|||
/** |
|||
* 销售服务主表demoService接口 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-07-18 |
|||
*/ |
|||
public interface IDemoSalesServiceInfoService |
|||
{ |
|||
/** |
|||
* 查询销售服务主表demo |
|||
* |
|||
* @param salesServiceInfoId 销售服务主表demoID |
|||
* @return 销售服务主表demo |
|||
*/ |
|||
public DemoSalesServiceInfo selectDemoSalesServiceInfoById(Long salesServiceInfoId); |
|||
|
|||
/** |
|||
* 查询销售服务主表demo列表 |
|||
* |
|||
* @param demoSalesServiceInfo 销售服务主表demo |
|||
* @return 销售服务主表demo集合 |
|||
*/ |
|||
public List<DemoSalesServiceInfo> selectDemoSalesServiceInfoList(DemoSalesServiceInfo demoSalesServiceInfo); |
|||
|
|||
/** |
|||
* 新增销售服务主表demo |
|||
* |
|||
* @param demoSalesServiceInfo 销售服务主表demo |
|||
* @return 结果 |
|||
*/ |
|||
public int insertDemoSalesServiceInfo(DemoSalesServiceInfo demoSalesServiceInfo); |
|||
|
|||
/** |
|||
* 修改销售服务主表demo |
|||
* |
|||
* @param demoSalesServiceInfo 销售服务主表demo |
|||
* @return 结果 |
|||
*/ |
|||
public int updateDemoSalesServiceInfo(DemoSalesServiceInfo demoSalesServiceInfo); |
|||
|
|||
/** |
|||
* 批量删除销售服务主表demo |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteDemoSalesServiceInfoByIds(String ids); |
|||
|
|||
/** |
|||
* 删除销售服务主表demo信息 |
|||
* |
|||
* @param salesServiceInfoId 销售服务主表demoID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteDemoSalesServiceInfoById(Long salesServiceInfoId); |
|||
} |
@ -1,94 +0,0 @@ |
|||
package com.ruoyi.sales.service.impl; |
|||
|
|||
import java.util.List; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import com.ruoyi.sales.mapper.DemoSalesServiceInfoMapper; |
|||
import com.ruoyi.sales.domain.DemoSalesServiceInfo; |
|||
import com.ruoyi.sales.service.IDemoSalesServiceInfoService; |
|||
import com.ruoyi.common.core.text.Convert; |
|||
|
|||
/** |
|||
* 销售服务主表demoService业务层处理 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-07-18 |
|||
*/ |
|||
@Service |
|||
public class DemoSalesServiceInfoServiceImpl implements IDemoSalesServiceInfoService |
|||
{ |
|||
@Autowired |
|||
private DemoSalesServiceInfoMapper demoSalesServiceInfoMapper; |
|||
|
|||
/** |
|||
* 查询销售服务主表demo |
|||
* |
|||
* @param salesServiceInfoId 销售服务主表demoID |
|||
* @return 销售服务主表demo |
|||
*/ |
|||
@Override |
|||
public DemoSalesServiceInfo selectDemoSalesServiceInfoById(Long salesServiceInfoId) |
|||
{ |
|||
return demoSalesServiceInfoMapper.selectDemoSalesServiceInfoById(salesServiceInfoId); |
|||
} |
|||
|
|||
/** |
|||
* 查询销售服务主表demo列表 |
|||
* |
|||
* @param demoSalesServiceInfo 销售服务主表demo |
|||
* @return 销售服务主表demo |
|||
*/ |
|||
@Override |
|||
public List<DemoSalesServiceInfo> selectDemoSalesServiceInfoList(DemoSalesServiceInfo demoSalesServiceInfo) |
|||
{ |
|||
return demoSalesServiceInfoMapper.selectDemoSalesServiceInfoList(demoSalesServiceInfo); |
|||
} |
|||
|
|||
/** |
|||
* 新增销售服务主表demo |
|||
* |
|||
* @param demoSalesServiceInfo 销售服务主表demo |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertDemoSalesServiceInfo(DemoSalesServiceInfo demoSalesServiceInfo) |
|||
{ |
|||
return demoSalesServiceInfoMapper.insertDemoSalesServiceInfo(demoSalesServiceInfo); |
|||
} |
|||
|
|||
/** |
|||
* 修改销售服务主表demo |
|||
* |
|||
* @param demoSalesServiceInfo 销售服务主表demo |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateDemoSalesServiceInfo(DemoSalesServiceInfo demoSalesServiceInfo) |
|||
{ |
|||
return demoSalesServiceInfoMapper.updateDemoSalesServiceInfo(demoSalesServiceInfo); |
|||
} |
|||
|
|||
/** |
|||
* 删除销售服务主表demo对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteDemoSalesServiceInfoByIds(String ids) |
|||
{ |
|||
return demoSalesServiceInfoMapper.deleteDemoSalesServiceInfoByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除销售服务主表demo信息 |
|||
* |
|||
* @param salesServiceInfoId 销售服务主表demoID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteDemoSalesServiceInfoById(Long salesServiceInfoId) |
|||
{ |
|||
return demoSalesServiceInfoMapper.deleteDemoSalesServiceInfoById(salesServiceInfoId); |
|||
} |
|||
} |
@ -1,124 +0,0 @@ |
|||
<?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.sales.mapper.DemoSalesServiceInfoMapper"> |
|||
|
|||
<resultMap type="DemoSalesServiceInfo" id="DemoSalesServiceInfoResult"> |
|||
<result property="salesServiceInfoId" column="sales_service_info_id" /> |
|||
<result property="productId" column="product_id" /> |
|||
<result property="model" column="model" /> |
|||
<result property="version" column="version" /> |
|||
<result property="warehousingTime" column="warehousing_time" /> |
|||
<result property="deliveryTime" column="delivery_time" /> |
|||
<result property="receivingTime" column="receiving_time" /> |
|||
<result property="internalOrderNumber" column="internal_order_number" /> |
|||
<result property="customerOrderNumber" column="customer_order_number" /> |
|||
<result property="shippingAddress" column="shipping_address" /> |
|||
<result property="deliveryAddress" column="delivery_address" /> |
|||
<result property="documentDate" column="document_date" /> |
|||
<result property="approvalStatus" column="approval_status" /> |
|||
<result property="orderStatus" column="order_status" /> |
|||
<result property="isTax" column="is_tax" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectDemoSalesServiceInfoVo"> |
|||
select sales_service_info_id, product_id, model, version, warehousing_time, delivery_time, receiving_time, internal_order_number, customer_order_number, shipping_address, delivery_address, document_date, approval_status, order_status, is_tax from demo_sales_service_info |
|||
</sql> |
|||
|
|||
<select id="selectDemoSalesServiceInfoList" parameterType="DemoSalesServiceInfo" resultMap="DemoSalesServiceInfoResult"> |
|||
<include refid="selectDemoSalesServiceInfoVo"/> |
|||
<where> |
|||
<if test="productId != null and productId != ''"> and product_id = #{productId}</if> |
|||
<if test="model != null and model != ''"> and model = #{model}</if> |
|||
<if test="version != null and version != ''"> and version = #{version}</if> |
|||
<if test="warehousingTime != null and warehousingTime != ''"> and warehousing_time = #{warehousingTime}</if> |
|||
<if test="deliveryTime != null and deliveryTime != ''"> and delivery_time = #{deliveryTime}</if> |
|||
<if test="params.deliveryTime1 != null and params.deliveryTime1 != ''"> and delivery_time > #{params.deliveryTime1}</if> |
|||
<if test="params.deliveryTime2 != null and params.deliveryTime2 != ''"> and delivery_time <= #{params.deliveryTime2}</if> |
|||
<if test="params.beginReceivingTime != null and params.beginReceivingTime != '' and params.endReceivingTime != null and params.endReceivingTime != ''"> and receiving_time between #{params.beginReceivingTime} and #{params.endReceivingTime}</if> |
|||
<if test="internalOrderNumber != null and internalOrderNumber != ''"> and internal_order_number = #{internalOrderNumber}</if> |
|||
<if test="customerOrderNumber != null and customerOrderNumber != ''"> and customer_order_number = #{customerOrderNumber}</if> |
|||
<if test="shippingAddress != null and shippingAddress != ''"> and shipping_address = #{shippingAddress}</if> |
|||
<if test="deliveryAddress != null and deliveryAddress != ''"> and delivery_address = #{deliveryAddress}</if> |
|||
<if test="params.beginDocumentDate != null and params.beginDocumentDate != '' and params.endDocumentDate != null and params.endDocumentDate != ''"> and document_date between #{params.beginDocumentDate} and #{params.endDocumentDate}</if> |
|||
<if test="approvalStatus != null and approvalStatus != ''"> and approval_status = #{approvalStatus}</if> |
|||
<if test="orderStatus != null and orderStatus != ''"> and order_status = #{orderStatus}</if> |
|||
<if test="isTax != null and isTax != ''"> and is_tax = #{isTax}</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectDemoSalesServiceInfoById" parameterType="Long" resultMap="DemoSalesServiceInfoResult"> |
|||
<include refid="selectDemoSalesServiceInfoVo"/> |
|||
where sales_service_info_id = #{salesServiceInfoId} |
|||
</select> |
|||
|
|||
<insert id="insertDemoSalesServiceInfo" parameterType="DemoSalesServiceInfo" useGeneratedKeys="true" keyProperty="salesServiceInfoId"> |
|||
insert into demo_sales_service_info |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="productId != null">product_id,</if> |
|||
<if test="model != null">model,</if> |
|||
<if test="version != null">version,</if> |
|||
<if test="warehousingTime != null">warehousing_time,</if> |
|||
<if test="deliveryTime != null">delivery_time,</if> |
|||
<if test="receivingTime != null">receiving_time,</if> |
|||
<if test="internalOrderNumber != null">internal_order_number,</if> |
|||
<if test="customerOrderNumber != null">customer_order_number,</if> |
|||
<if test="shippingAddress != null">shipping_address,</if> |
|||
<if test="deliveryAddress != null">delivery_address,</if> |
|||
<if test="documentDate != null">document_date,</if> |
|||
<if test="approvalStatus != null">approval_status,</if> |
|||
<if test="orderStatus != null">order_status,</if> |
|||
<if test="isTax != null">is_tax,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="productId != null">#{productId},</if> |
|||
<if test="model != null">#{model},</if> |
|||
<if test="version != null">#{version},</if> |
|||
<if test="warehousingTime != null">#{warehousingTime},</if> |
|||
<if test="deliveryTime != null">#{deliveryTime},</if> |
|||
<if test="receivingTime != null">#{receivingTime},</if> |
|||
<if test="internalOrderNumber != null">#{internalOrderNumber},</if> |
|||
<if test="customerOrderNumber != null">#{customerOrderNumber},</if> |
|||
<if test="shippingAddress != null">#{shippingAddress},</if> |
|||
<if test="deliveryAddress != null">#{deliveryAddress},</if> |
|||
<if test="documentDate != null">#{documentDate},</if> |
|||
<if test="approvalStatus != null">#{approvalStatus},</if> |
|||
<if test="orderStatus != null">#{orderStatus},</if> |
|||
<if test="isTax != null">#{isTax},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateDemoSalesServiceInfo" parameterType="DemoSalesServiceInfo"> |
|||
update demo_sales_service_info |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="productId != null">product_id = #{productId},</if> |
|||
<if test="model != null">model = #{model},</if> |
|||
<if test="version != null">version = #{version},</if> |
|||
<if test="warehousingTime != null">warehousing_time = #{warehousingTime},</if> |
|||
<if test="deliveryTime != null">delivery_time = #{deliveryTime},</if> |
|||
<if test="receivingTime != null">receiving_time = #{receivingTime},</if> |
|||
<if test="internalOrderNumber != null">internal_order_number = #{internalOrderNumber},</if> |
|||
<if test="customerOrderNumber != null">customer_order_number = #{customerOrderNumber},</if> |
|||
<if test="shippingAddress != null">shipping_address = #{shippingAddress},</if> |
|||
<if test="deliveryAddress != null">delivery_address = #{deliveryAddress},</if> |
|||
<if test="documentDate != null">document_date = #{documentDate},</if> |
|||
<if test="approvalStatus != null">approval_status = #{approvalStatus},</if> |
|||
<if test="orderStatus != null">order_status = #{orderStatus},</if> |
|||
<if test="isTax != null">is_tax = #{isTax},</if> |
|||
</trim> |
|||
where sales_service_info_id = #{salesServiceInfoId} |
|||
</update> |
|||
|
|||
<delete id="deleteDemoSalesServiceInfoById" parameterType="Long"> |
|||
delete from demo_sales_service_info where sales_service_info_id = #{salesServiceInfoId} |
|||
</delete> |
|||
|
|||
<delete id="deleteDemoSalesServiceInfoByIds" parameterType="String"> |
|||
delete from demo_sales_service_info where sales_service_info_id in |
|||
<foreach item="salesServiceInfoId" collection="array" open="(" separator="," close=")"> |
|||
#{salesServiceInfoId} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
</mapper> |
@ -1,156 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('新增销售服务主表demo')" /> |
|||
<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-demoSalesServiceInfo-add"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">产品序列号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="productId" 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="model" 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="version" 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="warehousingTime" 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="deliveryTime" 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="receivingTime" 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="internalOrderNumber" 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="customerOrderNumber" 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="shippingAddress" 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="deliveryAddress" 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="documentDate" 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="radio-box" th:each="dict : ${@dict.getType('approvalStatus')}"> |
|||
<input type="radio" th:id="${'approvalStatus_' + dict.dictCode}" name="approvalStatus" th:value="${dict.dictValue}" th:checked="${dict.default}"> |
|||
<label th:for="${'approvalStatus_' + dict.dictCode}" th:text="${dict.dictLabel}"></label> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">订单状态:</label> |
|||
<div class="col-sm-8"> |
|||
<div class="radio-box" th:each="dict : ${@dict.getType('orderStatus')}"> |
|||
<input type="radio" th:id="${'orderStatus_' + dict.dictCode}" name="orderStatus" th:value="${dict.dictValue}" th:checked="${dict.default}"> |
|||
<label th:for="${'orderStatus_' + dict.dictCode}" th:text="${dict.dictLabel}"></label> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">是否含税:</label> |
|||
<div class="col-sm-8"> |
|||
<div class="radio-box" th:each="dict : ${@dict.getType('sys_confirm_tax')}"> |
|||
<input type="radio" th:id="${'isTax_' + dict.dictCode}" name="isTax" th:value="${dict.dictValue}" th:checked="${dict.default}"> |
|||
<label th:for="${'isTax_' + dict.dictCode}" th:text="${dict.dictLabel}"></label> |
|||
</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 + "sales/demoSalesServiceInfo" |
|||
$("#form-demoSalesServiceInfo-add").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/add", $('#form-demoSalesServiceInfo-add').serialize()); |
|||
} |
|||
} |
|||
|
|||
$("input[name='warehousingTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='deliveryTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='receivingTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='documentDate']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
@ -1,491 +0,0 @@ |
|||
<!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('销售管理')"/> |
|||
<th:block th:include="include :: datetimepicker-css"/> |
|||
<script type="text/javascript" th:src="@{/js/axios.min.js}"></script> |
|||
<style> |
|||
.a { |
|||
background-color: #009ED6; |
|||
color: #FFFFFF; |
|||
padding: 5px; |
|||
border-radius: 5px; |
|||
} |
|||
|
|||
input[type="radio"] { |
|||
display: none; |
|||
} |
|||
|
|||
input[type="radio"] + label { |
|||
padding: 0.2em 1em; |
|||
color: #656464; |
|||
} |
|||
|
|||
input[type="radio"]:checked + label { |
|||
padding: 0.2em 1em; |
|||
color: #009ED6; |
|||
} |
|||
|
|||
.body { |
|||
background-color: #F2F2F2; |
|||
} |
|||
|
|||
.all { |
|||
margin: 2% 3%; |
|||
} |
|||
|
|||
#bootstrap-table > tfoot > tr > th { |
|||
border: 0px solid #ddd; |
|||
font-weight: 400; |
|||
font-size: 13px; |
|||
background-color: #FFFFFF; |
|||
} |
|||
|
|||
#bootstrap-table > tbody > tr > td { |
|||
background-color: #FFFFFF; |
|||
} |
|||
|
|||
.div11 { |
|||
display: inline-block; |
|||
color: #848484; |
|||
font-size: 18px; |
|||
font-weight: bold; |
|||
margin: 10px 0; |
|||
} |
|||
|
|||
.div12 { |
|||
margin: 15px 0; |
|||
display: inline-block; |
|||
float: right; |
|||
} |
|||
|
|||
.div2 > div { |
|||
width: auto; |
|||
display: inline-block; |
|||
background-color: #FFFFFF; |
|||
color: #848484; |
|||
font-size: 14px; |
|||
font-weight: bold; |
|||
padding: 10px 20px; |
|||
} |
|||
|
|||
.div3 { |
|||
background-color: #FFFFFF; |
|||
padding-top: 5px; |
|||
} |
|||
|
|||
.div3 > div { |
|||
padding: 5px 20px; |
|||
} |
|||
|
|||
.div4 { |
|||
background-color: #FFFFFF; |
|||
padding-bottom: 10px; |
|||
} |
|||
|
|||
.div4 > div { |
|||
display: inline-block; |
|||
padding-left: 20px; |
|||
} |
|||
|
|||
.div4 > div > select { |
|||
min-width: 80px; |
|||
margin-left: 10px; |
|||
} |
|||
|
|||
.div5 { |
|||
padding-top: 5px; |
|||
} |
|||
|
|||
.list { |
|||
background-color: #F2F2F2; |
|||
border: 2px; |
|||
} |
|||
</style> |
|||
</head> |
|||
<body class="gray-bg body"> |
|||
|
|||
<div class="all"> |
|||
<div class="div1"> |
|||
<div class="div11">销售管理</div> |
|||
<div class="div12"> |
|||
<a class="a" onclick="$.operate.add()" shiro:hasPermission="sales:demoSalesServiceInfo:add">+ |
|||
新增销售订单</a> |
|||
</div> |
|||
</div> |
|||
<!-- <div class="div2">--> |
|||
<!-- <div class="">销售订单</div>--> |
|||
<!-- <!– <div>销售出库</div>–>--> |
|||
<!-- <!– <div>销售退货</div>–>--> |
|||
<!-- </div>--> |
|||
<form id="formId"> |
|||
<div class="div3"> |
|||
<div class="row"> |
|||
<div class="col-sm-12"> |
|||
<div class="row"> |
|||
<label class="col-sm-5 control-label" style="width: 460px"> |
|||
单据日期: |
|||
<input type="radio" name="documentDateValue" id="documentDate_1" value="" checked><label for="documentDate_1">全部</label> |
|||
<input type="radio" name="documentDateValue" id="documentDate_2" value="今天"><label for="documentDate_2">今天</label> |
|||
<input type="radio" name="documentDateValue" id="documentDate_3" value="昨天"><label for="documentDate_3">昨天</label> |
|||
<input type="radio" name="documentDateValue" id="documentDate_4" value="本周"><label for="documentDate_4">本周</label> |
|||
<input type="radio" name="documentDateValue" id="documentDate_5" value="上周"><label for="documentDate_5">上周</label> |
|||
<input type="radio" name="documentDateValue" id="documentDate_6" value="自定义"><label for="documentDate_6">自定义</label> |
|||
</label> |
|||
<div class="col-sm-7" style="display: none" id="documentDateInput"> |
|||
<div style="width: 200px;display: inline-block"> |
|||
<div class="input-group date"> |
|||
<input id="beginDocumentDate" name="params[beginDocumentDate]" class="form-control" placeholder="开始时间:" type="text"> |
|||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|||
</div> |
|||
</div> |
|||
<div style="display: inline-block; width: 10px"></div> |
|||
<div style="width: 200px;display: inline-block"> |
|||
<div class="input-group date"> |
|||
<input id="endDocumentDate" name="params[endDocumentDate]" class="form-control" placeholder="结束时间:" type="text"> |
|||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-sm-12"> |
|||
<div class="row"> |
|||
<label class="col-sm-5 control-label" style="width: 460px"> |
|||
交货日期: |
|||
<input type="radio" name="receivingTimeValue" id="receivingTime_1" value="" checked><label for="receivingTime_1">全部</label> |
|||
<input type="radio" name="receivingTimeValue" id="receivingTime_2" value="今天"><label for="receivingTime_2">今天</label> |
|||
<input type="radio" name="receivingTimeValue" id="receivingTime_3" value="昨天"><label for="receivingTime_3">昨天</label> |
|||
<input type="radio" name="receivingTimeValue" id="receivingTime_4" value="本周"><label for="receivingTime_4">本周</label> |
|||
<input type="radio" name="receivingTimeValue" id="receivingTime_5" value="上周"><label for="receivingTime_5">上周</label> |
|||
<input type="radio" name="receivingTimeValue" id="receivingTime_6" value="自定义"><label for="receivingTime_6">自定义</label> |
|||
</label> |
|||
<div class="col-sm-7" style="display: none" id="receivingTimeInput"> |
|||
<div style="width: 200px;display: inline-block"> |
|||
<div class="input-group date"> |
|||
<input id="beginReceivingTime" name="params[beginReceivingTime]" class="form-control" placeholder="开始时间:" type="text"> |
|||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|||
</div> |
|||
</div> |
|||
<div style="display: inline-block; width: 10px"></div> |
|||
<div style="width: 200px;display: inline-block"> |
|||
<div class="input-group date"> |
|||
<input id="endReceivingTime" name="params[endReceivingTime]" class="form-control" placeholder="结束时间:" type="text"> |
|||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<label class="col-sm-12 control-label"> |
|||
审批状态: |
|||
<input type="radio" name="approvalStatus" id="approvalStatus_1" value="" checked><label for="approvalStatus_1">全部</label> |
|||
<input type="radio" name="approvalStatus" id="approvalStatus_2" value="草稿"><label for="approvalStatus_2">草稿</label> |
|||
<input type="radio" name="approvalStatus" id="approvalStatus_3" value="待审批"><label for="approvalStatus_3">待审批</label> |
|||
<input type="radio" name="approvalStatus" id="approvalStatus_4" value="已提交"><label for="approvalStatus_4">已提交</label> |
|||
<input type="radio" name="approvalStatus" id="approvalStatus_5" value="已驳回"><label for="approvalStatus_5">已驳回</label> |
|||
<input type="radio" name="approvalStatus" id="approvalStatus_6" value="审批通过"><label for="approvalStatus_6">审批通过</label> |
|||
<input type="radio" name="approvalStatus" id="approvalStatus_7" value="已作废"><label for="approvalStatus_7">已作废</label> |
|||
</label> |
|||
<label class="col-sm-12 control-label"> |
|||
订单状态: |
|||
<input type="radio" name="orderStatus" id="orderStatus_1" value="" checked><label for="orderStatus_1">全部</label> |
|||
<input type="radio" name="orderStatus" id="orderStatus_2" value="执行中"><label for="orderStatus_2">执行中</label> |
|||
<input type="radio" name="orderStatus" id="orderStatus_3" value="已结束"><label for="orderStatus_3">已结束</label> |
|||
</label> |
|||
<label class="col-sm-12 control-label"> |
|||
出库状态: |
|||
<input type="radio" name="outboundStatus" id="outboundStatus_1" value="" checked><label for="outboundStatus_1">全部</label> |
|||
<input type="radio" name="outboundStatus" id="outboundStatus_2" value="未出库"><label for="outboundStatus_2">未出库</label> |
|||
<!-- <input type="radio" name="outboundStatus" id="outboundStatus_3" value="部分出库"><label for="outboundStatus_3">部分出库</label>--> |
|||
<!-- <input type="radio" name="outboundStatus" id="outboundStatus_4" value="完全出库"><label for="outboundStatus_4">完全出库</label>--> |
|||
<input type="radio" name="outboundStatus" id="outboundStatus_4" value="已出库"><label for="outboundStatus_4">已出库</label> |
|||
<input id="deliveryTime" name="deliveryTime" type="text"style="display: none"> |
|||
<input id="deliveryTime1" name="params[deliveryTime1]" type="text"style="display: none"> |
|||
<input id="deliveryTime2" name="params[deliveryTime2]" type="text"style="display: none"> |
|||
</label> |
|||
<label class="col-sm-12 control-label"> |
|||
是否含税: |
|||
<input type="radio" name="isTax" id="isTax_1" value="" checked><label for="isTax_1">全部</label> |
|||
<input type="radio" name="isTax" id="isTax_2" value="1"><label for="isTax_2">含税</label> |
|||
<input type="radio" name="isTax" id="isTax_3" value="0"><label for="isTax_3">不含税</label> |
|||
</label> |
|||
</div> |
|||
</div> |
|||
<div class="div5"> |
|||
<div style="float: right"> |
|||
<!-- <select>--> |
|||
<!-- <option>产品名称</option>--> |
|||
<!-- </select>--> |
|||
<!-- <input type="text" placeholder="请输入关键词" name="username"/>--> |
|||
<a class="a" href="#" type="button" onclick="searchValue()">搜索</a> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
<div class="div6"> |
|||
<div class="col-sm-12 select-table table-striped list"> |
|||
<table id="bootstrap-table" style="white-space: nowrap;"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<th:block th:include="include :: footer"/> |
|||
<th:block th:include="include :: datetimepicker-js"/> |
|||
<script src="https://cdn.bootcdn.net/ajax/libs/moment.js/2.29.1/moment.min.js"></script> |
|||
<script th:inline="javascript"> |
|||
var editFlag = [[${@permission.hasPermi('sales:demoSalesServiceInfo:edit')}]]; |
|||
var removeFlag = [[${@permission.hasPermi('sales:demoSalesServiceInfo:remove')}]]; |
|||
var approvalStatusDatas = [[${@dict.getType('approvalStatus')}]]; |
|||
var orderStatusDatas = [[${@dict.getType('orderStatus')}]]; |
|||
var isTaxDatas = [[${@dict.getType('sys_confirm_tax')}]]; |
|||
var prefix = ctx + "sales/demoSalesServiceInfo"; |
|||
|
|||
$(function () { |
|||
var options = { |
|||
url: prefix + "/list", |
|||
createUrl: prefix + "/add", |
|||
updateUrl: prefix + "/edit/{id}", |
|||
removeUrl: prefix + "/remove", |
|||
exportUrl: prefix + "/export", |
|||
modalName: "销售服务主表demo", |
|||
pageList: [10, 25, "all"], |
|||
clickToSelect: true, |
|||
showRefresh: false, |
|||
showToggle: false, |
|||
showSearch: false, |
|||
showColumns: false, |
|||
columns: [ |
|||
// { |
|||
// checkbox: true |
|||
// }, |
|||
{ |
|||
field: 'salesServiceInfoId', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'productId', |
|||
title: '产品序列号' |
|||
}, |
|||
{ |
|||
field: 'model', |
|||
title: '产品型号' |
|||
}, |
|||
{ |
|||
field: 'version', |
|||
title: '版本号' |
|||
}, |
|||
{ |
|||
field: 'warehousingTime', |
|||
title: '入库日期' |
|||
}, |
|||
{ |
|||
field: 'deliveryTime', |
|||
title: '出库日期' |
|||
}, |
|||
{ |
|||
field: 'receivingTime', |
|||
title: '客户收货日期' |
|||
}, |
|||
{ |
|||
field: 'internalOrderNumber', |
|||
title: '内部订单号' |
|||
}, |
|||
{ |
|||
field: 'customerOrderNumber', |
|||
title: '客户订单号' |
|||
}, |
|||
{ |
|||
field: 'shippingAddress', |
|||
title: '送货地址' |
|||
}, |
|||
{ |
|||
field: 'deliveryAddress', |
|||
title: '出货地址' |
|||
}, |
|||
{ |
|||
field: 'documentDate', |
|||
title: '单据日期' |
|||
}, |
|||
{ |
|||
field: 'approvalStatus', |
|||
title: '审批状态', |
|||
formatter: function (value, row, index) { |
|||
return $.table.selectDictLabel(approvalStatusDatas, value); |
|||
} |
|||
}, |
|||
{ |
|||
field: 'orderStatus', |
|||
title: '订单状态', |
|||
formatter: function (value, row, index) { |
|||
return $.table.selectDictLabel(orderStatusDatas, value); |
|||
} |
|||
}, |
|||
{ |
|||
field: 'isTax', |
|||
title: '是否含税', |
|||
formatter: function (value, row, index) { |
|||
return $.table.selectDictLabel(isTaxDatas, value); |
|||
} |
|||
}, |
|||
{ |
|||
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.salesServiceInfoId + '\')"><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.salesServiceInfoId + '\')"><i class="fa fa-remove"></i>删除</a>'); |
|||
return actions.join(''); |
|||
} |
|||
}, |
|||
] |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
|
|||
|
|||
$("#beginDocumentDate").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("#endDocumentDate").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("#beginReceivingTime").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("#endReceivingTime").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
//自定义 |
|||
$("input[name=documentDateValue]").change(function () { |
|||
var documentDate = $(this).val(); |
|||
if (documentDate == "自定义") { |
|||
$("#documentDateInput").css("display", "block"); |
|||
} else { |
|||
$("#documentDateInput").css("display", "none"); |
|||
$("#beginDocumentDate").val(""); |
|||
$("#endDocumentDate").val(""); |
|||
} |
|||
}); |
|||
|
|||
|
|||
$("input[name=receivingTimeValue]").change(function () { |
|||
var receivingTime = $(this).val(); |
|||
if (receivingTime == "自定义") { |
|||
$("#receivingTimeInput").css("display", "block"); |
|||
} else { |
|||
$("#receivingTimeInput").css("display", "none"); |
|||
$("#beginReceivingTime").val(""); |
|||
$("#endReceivingTime").val(""); |
|||
} |
|||
}); |
|||
|
|||
function searchValue(){ |
|||
var documentDate = $("input[name=documentDateValue]:checked").val(); |
|||
var receivingTime = $("input[name=receivingTimeValue]:checked").val(); |
|||
var outboundStatus = $("input[name=outboundStatus]:checked").val(); |
|||
searchDocumentDate(documentDate); |
|||
searchReceivingTime(receivingTime); |
|||
searchDeliveryTime(outboundStatus); |
|||
$.table.search(); |
|||
refreshAll(documentDate,receivingTime); |
|||
} |
|||
|
|||
function searchDocumentDate(documentDate){ |
|||
var today=new Date(); |
|||
var date =""; |
|||
var startDate=""; |
|||
var endDate=""; |
|||
var oneday = 1000 * 60 * 60 * 24; |
|||
if(documentDate=="今天"){ |
|||
date = moment(today).format('YYYY-MM-DD'); |
|||
$("#beginDocumentDate").val(date); |
|||
$("#endDocumentDate").val(date); |
|||
}else if(documentDate=="昨天"){ |
|||
date = moment(new Date(today-oneday)).format('YYYY-MM-DD'); |
|||
$("#beginDocumentDate").val(date); |
|||
$("#endDocumentDate").val(date); |
|||
}else if(documentDate=="本周"){ |
|||
var weekDay = -1+today.getDay()||7; |
|||
startDate = moment(today-oneday*weekDay).format('YYYY-MM-DD'); |
|||
endDate = moment(today-oneday*weekDay+oneday*7).format('YYYY-MM-DD'); |
|||
$("#beginDocumentDate").val(startDate); |
|||
$("#endDocumentDate").val(endDate); |
|||
}else if(documentDate=="上周"){ |
|||
var weekDay = 6+today.getDay()||7; |
|||
startDate = moment(today-oneday*weekDay).format('YYYY-MM-DD'); |
|||
endDate = moment(today-oneday*weekDay+oneday*7).format('YYYY-MM-DD'); |
|||
$("#beginDocumentDate").val(startDate); |
|||
$("#endDocumentDate").val(endDate); |
|||
} |
|||
} |
|||
|
|||
function searchReceivingTime(receivingTime){ |
|||
var today=new Date(); |
|||
var date =""; |
|||
var startDate=""; |
|||
var endDate=""; |
|||
var oneday = 1000 * 60 * 60 * 24; |
|||
if(receivingTime=="今天"){ |
|||
date = moment(today).format('YYYY-MM-DD'); |
|||
$("#beginReceivingTime").val(date); |
|||
$("#endReceivingTime").val(date); |
|||
}else if(receivingTime=="昨天"){ |
|||
date = moment(new Date(today-oneday)).format('YYYY-MM-DD'); |
|||
$("#beginReceivingTime").val(date); |
|||
$("#endReceivingTime").val(date); |
|||
}else if(receivingTime=="本周"){ |
|||
var weekDay = -1+today.getDay()||7; |
|||
startDate = moment(today-oneday*weekDay).format('YYYY-MM-DD'); |
|||
endDate = moment(today-oneday*weekDay+oneday*7).format('YYYY-MM-DD'); |
|||
$("#beginReceivingTime").val(startDate); |
|||
$("#endReceivingTime").val(endDate); |
|||
}else if(receivingTime=="上周"){ |
|||
var weekDay = 6+today.getDay()||7; |
|||
startDate = moment(today-oneday*weekDay).format('YYYY-MM-DD'); |
|||
endDate = moment(today-oneday*weekDay+oneday*7).format('YYYY-MM-DD'); |
|||
$("#beginReceivingTime").val(startDate); |
|||
$("#endReceivingTime").val(endDate); |
|||
} |
|||
} |
|||
|
|||
function searchDeliveryTime(outboundStatus){ |
|||
var today=new Date(); |
|||
var date = moment(today).format('YYYY-MM-DD'); |
|||
if(outboundStatus=="未出库"){ |
|||
$("#deliveryTime1").val(date); |
|||
}else if (outboundStatus=="已出库"){ |
|||
$("#deliveryTime2").val(date); |
|||
} |
|||
} |
|||
|
|||
function refreshAll(documentDate,receivingTime){ |
|||
if(documentDate!="自定义"){ |
|||
$("#beginDocumentDate").val(""); |
|||
$("#endDocumentDate").val(""); |
|||
} |
|||
if(receivingTime!="自定义"){ |
|||
$("#beginReceivingTime").val(""); |
|||
$("#endReceivingTime").val(""); |
|||
} |
|||
$("#deliveryTime1").val(""); |
|||
$("#deliveryTime2").val(""); |
|||
} |
|||
|
|||
|
|||
|
|||
</script> |
|||
</body> |
|||
</html> |
@ -1,157 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('修改销售服务主表demo')" /> |
|||
<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-demoSalesServiceInfo-edit" th:object="${demoSalesServiceInfo}"> |
|||
<input name="salesServiceInfoId" th:field="*{salesServiceInfoId}" type="hidden"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">产品序列号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="productId" th:field="*{productId}" 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="model" th:field="*{model}" 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="version" th:field="*{version}" 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="warehousingTime" th:field="*{warehousingTime}" 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="deliveryTime" th:value="*{deliveryTime}" 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="receivingTime" th:field="*{receivingTime}" 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="internalOrderNumber" th:field="*{internalOrderNumber}" 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="customerOrderNumber" th:field="*{customerOrderNumber}" 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="shippingAddress" th:field="*{shippingAddress}" 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="deliveryAddress" th:field="*{deliveryAddress}" 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="documentDate" th:field="*{documentDate}" 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="radio-box" th:each="dict : ${@dict.getType('approvalStatus')}"> |
|||
<input type="radio" th:id="${'approvalStatus_' + dict.dictCode}" name="approvalStatus" th:value="${dict.dictValue}" th:field="*{approvalStatus}"> |
|||
<label th:for="${'approvalStatus_' + dict.dictCode}" th:text="${dict.dictLabel}"></label> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">订单状态:</label> |
|||
<div class="col-sm-8"> |
|||
<div class="radio-box" th:each="dict : ${@dict.getType('orderStatus')}"> |
|||
<input type="radio" th:id="${'orderStatus_' + dict.dictCode}" name="orderStatus" th:value="${dict.dictValue}" th:field="*{orderStatus}"> |
|||
<label th:for="${'orderStatus_' + dict.dictCode}" th:text="${dict.dictLabel}"></label> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">是否含税:</label> |
|||
<div class="col-sm-8"> |
|||
<div class="radio-box" th:each="dict : ${@dict.getType('sys_confirm_tax')}"> |
|||
<input type="radio" th:id="${'isTax_' + dict.dictCode}" name="isTax" th:value="${dict.dictValue}" th:field="*{isTax}"> |
|||
<label th:for="${'isTax_' + dict.dictCode}" th:text="${dict.dictLabel}"></label> |
|||
</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 + "sales/demoSalesServiceInfo"; |
|||
$("#form-demoSalesServiceInfo-edit").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/edit", $('#form-demoSalesServiceInfo-edit').serialize()); |
|||
} |
|||
} |
|||
|
|||
$("input[name='warehousingTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='deliveryTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='receivingTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='documentDate']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue