车辆报损
This commit is contained in:
@ -0,0 +1,127 @@
|
||||
package com.ruoyi.operation.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.operation.domain.ZcCarDamage;
|
||||
import com.ruoyi.operation.service.IZcCarDamageService;
|
||||
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 ruoyi
|
||||
* @date 2025-07-17
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/operation/carDamage")
|
||||
public class ZcCarDamageController extends BaseController
|
||||
{
|
||||
private String prefix = "operation/carDamage";
|
||||
|
||||
@Autowired
|
||||
private IZcCarDamageService zcCarDamageService;
|
||||
|
||||
@RequiresPermissions("operation:carDamage:view")
|
||||
@GetMapping()
|
||||
public String carDamage()
|
||||
{
|
||||
return prefix + "/carDamage";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询车辆报损记录列表
|
||||
*/
|
||||
@RequiresPermissions("operation:carDamage:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(ZcCarDamage zcCarDamage)
|
||||
{
|
||||
startPage();
|
||||
List<ZcCarDamage> list = zcCarDamageService.selectZcCarDamageList(zcCarDamage);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出车辆报损记录列表
|
||||
*/
|
||||
@RequiresPermissions("operation:carDamage:export")
|
||||
@Log(title = "车辆报损记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(ZcCarDamage zcCarDamage)
|
||||
{
|
||||
List<ZcCarDamage> list = zcCarDamageService.selectZcCarDamageList(zcCarDamage);
|
||||
ExcelUtil<ZcCarDamage> util = new ExcelUtil<ZcCarDamage>(ZcCarDamage.class);
|
||||
return util.exportExcel(list, "车辆报损记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增车辆报损记录
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存车辆报损记录
|
||||
*/
|
||||
@RequiresPermissions("operation:carDamage:add")
|
||||
@Log(title = "车辆报损记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(ZcCarDamage zcCarDamage)
|
||||
{
|
||||
return toAjax(zcCarDamageService.insertZcCarDamage(zcCarDamage));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改车辆报损记录
|
||||
*/
|
||||
@RequiresPermissions("operation:carDamage:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
ZcCarDamage zcCarDamage = zcCarDamageService.selectZcCarDamageById(id);
|
||||
mmap.put("zcCarDamage", zcCarDamage);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存车辆报损记录
|
||||
*/
|
||||
@RequiresPermissions("operation:carDamage:edit")
|
||||
@Log(title = "车辆报损记录", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(ZcCarDamage zcCarDamage)
|
||||
{
|
||||
return toAjax(zcCarDamageService.updateZcCarDamage(zcCarDamage));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除车辆报损记录
|
||||
*/
|
||||
@RequiresPermissions("operation:carDamage:remove")
|
||||
@Log(title = "车辆报损记录", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(zcCarDamageService.deleteZcCarDamageByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,258 @@
|
||||
package com.ruoyi.operation.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excels;
|
||||
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;
|
||||
|
||||
/**
|
||||
* 车辆报损记录对象 zc_car_damage
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-17
|
||||
*/
|
||||
public class ZcCarDamage extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 报损记录ID */
|
||||
private Long id;
|
||||
|
||||
@Excels({
|
||||
@Excel(name = "所属运营商", targetAttr = "operatorName", type = Excel.Type.EXPORT),
|
||||
@Excel(name = "所属门店", targetAttr = "storeName", type = Excel.Type.EXPORT),
|
||||
@Excel(name = "车架号", targetAttr = "vin", type = Excel.Type.EXPORT),
|
||||
@Excel(name = "车牌号码", targetAttr = "licensePlate", type = Excel.Type.EXPORT),
|
||||
@Excel(name = "车辆品牌", targetAttr = "brandName", type = Excel.Type.EXPORT),
|
||||
@Excel(name = "车辆型号", targetAttr = "modelName", type = Excel.Type.EXPORT),
|
||||
@Excel(name = "采购价格(元)", targetAttr = "purchasePrice", type = Excel.Type.EXPORT)
|
||||
})
|
||||
private ZcCar zcCar;
|
||||
|
||||
/** 关联车辆ID,外键关联zc_car表 */
|
||||
private Long carId;
|
||||
|
||||
/** 报损类型 */
|
||||
@Excel(name = "报损类型",dictType = "key_car_damage_type")
|
||||
private String damageType;
|
||||
|
||||
/** 报损原因 */
|
||||
@Excel(name = "报损原因")
|
||||
private String damageReason;
|
||||
|
||||
/** 报损提交人姓名 */
|
||||
@Excel(name = "报损提交人")
|
||||
private String submitterName;
|
||||
|
||||
/** 报损提交时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "报损提交时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date submitTime;
|
||||
|
||||
/** 报损状态(0:待审核,1:审核通过,2:审核不通过,3:已处理) */
|
||||
@Excel(name = "报损状态",dictType = "key_car_damage_status")
|
||||
private Long damageStatus;
|
||||
|
||||
/** 审核人姓名 */
|
||||
@Excel(name = "审核人姓名")
|
||||
private String auditorName;
|
||||
|
||||
/** 审核时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date auditTime;
|
||||
|
||||
/** 审核意见 */
|
||||
@Excel(name = "审核意见")
|
||||
private String auditComment;
|
||||
|
||||
/** 状态(0正常 1停用) */
|
||||
private String status;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
private String delFlag;
|
||||
|
||||
/** 扩展字段1 */
|
||||
private String extend1;
|
||||
|
||||
/** 扩展字段2 */
|
||||
private String extend2;
|
||||
|
||||
/** 扩展字段3 */
|
||||
private String extend3;
|
||||
|
||||
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCarId(Long carId)
|
||||
{
|
||||
this.carId = carId;
|
||||
}
|
||||
|
||||
public Long getCarId()
|
||||
{
|
||||
return carId;
|
||||
}
|
||||
public void setDamageType(String damageType)
|
||||
{
|
||||
this.damageType = damageType;
|
||||
}
|
||||
|
||||
public String getDamageType()
|
||||
{
|
||||
return damageType;
|
||||
}
|
||||
public void setDamageReason(String damageReason)
|
||||
{
|
||||
this.damageReason = damageReason;
|
||||
}
|
||||
|
||||
public String getDamageReason()
|
||||
{
|
||||
return damageReason;
|
||||
}
|
||||
public void setSubmitterName(String submitterName)
|
||||
{
|
||||
this.submitterName = submitterName;
|
||||
}
|
||||
|
||||
public String getSubmitterName()
|
||||
{
|
||||
return submitterName;
|
||||
}
|
||||
public void setSubmitTime(Date submitTime)
|
||||
{
|
||||
this.submitTime = submitTime;
|
||||
}
|
||||
|
||||
public Date getSubmitTime()
|
||||
{
|
||||
return submitTime;
|
||||
}
|
||||
public void setDamageStatus(Long damageStatus)
|
||||
{
|
||||
this.damageStatus = damageStatus;
|
||||
}
|
||||
|
||||
public Long getDamageStatus()
|
||||
{
|
||||
return damageStatus;
|
||||
}
|
||||
public void setAuditorName(String auditorName)
|
||||
{
|
||||
this.auditorName = auditorName;
|
||||
}
|
||||
|
||||
public String getAuditorName()
|
||||
{
|
||||
return auditorName;
|
||||
}
|
||||
public void setAuditTime(Date auditTime)
|
||||
{
|
||||
this.auditTime = auditTime;
|
||||
}
|
||||
|
||||
public Date getAuditTime()
|
||||
{
|
||||
return auditTime;
|
||||
}
|
||||
public void setAuditComment(String auditComment)
|
||||
{
|
||||
this.auditComment = auditComment;
|
||||
}
|
||||
|
||||
public String getAuditComment()
|
||||
{
|
||||
return auditComment;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
public void setExtend1(String extend1)
|
||||
{
|
||||
this.extend1 = extend1;
|
||||
}
|
||||
|
||||
public String getExtend1()
|
||||
{
|
||||
return extend1;
|
||||
}
|
||||
public void setExtend2(String extend2)
|
||||
{
|
||||
this.extend2 = extend2;
|
||||
}
|
||||
|
||||
public String getExtend2()
|
||||
{
|
||||
return extend2;
|
||||
}
|
||||
public void setExtend3(String extend3)
|
||||
{
|
||||
this.extend3 = extend3;
|
||||
}
|
||||
|
||||
public String getExtend3()
|
||||
{
|
||||
return extend3;
|
||||
}
|
||||
|
||||
public ZcCar getZcCar() {
|
||||
return zcCar;
|
||||
}
|
||||
|
||||
public void setZcCar(ZcCar zcCar) {
|
||||
this.zcCar = zcCar;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("carId", getCarId())
|
||||
.append("damageType", getDamageType())
|
||||
.append("damageReason", getDamageReason())
|
||||
.append("submitterName", getSubmitterName())
|
||||
.append("submitTime", getSubmitTime())
|
||||
.append("damageStatus", getDamageStatus())
|
||||
.append("auditorName", getAuditorName())
|
||||
.append("auditTime", getAuditTime())
|
||||
.append("auditComment", getAuditComment())
|
||||
.append("status", getStatus())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.append("extend1", getExtend1())
|
||||
.append("extend2", getExtend2())
|
||||
.append("extend3", getExtend3())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.operation.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.operation.domain.ZcCarDamage;
|
||||
|
||||
/**
|
||||
* 车辆报损记录Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-17
|
||||
*/
|
||||
public interface ZcCarDamageMapper
|
||||
{
|
||||
/**
|
||||
* 查询车辆报损记录
|
||||
*
|
||||
* @param id 车辆报损记录主键
|
||||
* @return 车辆报损记录
|
||||
*/
|
||||
public ZcCarDamage selectZcCarDamageById(Long id);
|
||||
|
||||
/**
|
||||
* 查询车辆报损记录列表
|
||||
*
|
||||
* @param zcCarDamage 车辆报损记录
|
||||
* @return 车辆报损记录集合
|
||||
*/
|
||||
public List<ZcCarDamage> selectZcCarDamageList(ZcCarDamage zcCarDamage);
|
||||
|
||||
/**
|
||||
* 新增车辆报损记录
|
||||
*
|
||||
* @param zcCarDamage 车辆报损记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertZcCarDamage(ZcCarDamage zcCarDamage);
|
||||
|
||||
/**
|
||||
* 修改车辆报损记录
|
||||
*
|
||||
* @param zcCarDamage 车辆报损记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateZcCarDamage(ZcCarDamage zcCarDamage);
|
||||
|
||||
/**
|
||||
* 删除车辆报损记录
|
||||
*
|
||||
* @param id 车辆报损记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcCarDamageById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除车辆报损记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcCarDamageByIds(String[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.operation.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.operation.domain.ZcCarDamage;
|
||||
|
||||
/**
|
||||
* 车辆报损记录Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-17
|
||||
*/
|
||||
public interface IZcCarDamageService
|
||||
{
|
||||
/**
|
||||
* 查询车辆报损记录
|
||||
*
|
||||
* @param id 车辆报损记录主键
|
||||
* @return 车辆报损记录
|
||||
*/
|
||||
public ZcCarDamage selectZcCarDamageById(Long id);
|
||||
|
||||
/**
|
||||
* 查询车辆报损记录列表
|
||||
*
|
||||
* @param zcCarDamage 车辆报损记录
|
||||
* @return 车辆报损记录集合
|
||||
*/
|
||||
public List<ZcCarDamage> selectZcCarDamageList(ZcCarDamage zcCarDamage);
|
||||
|
||||
/**
|
||||
* 新增车辆报损记录
|
||||
*
|
||||
* @param zcCarDamage 车辆报损记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertZcCarDamage(ZcCarDamage zcCarDamage);
|
||||
|
||||
/**
|
||||
* 修改车辆报损记录
|
||||
*
|
||||
* @param zcCarDamage 车辆报损记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateZcCarDamage(ZcCarDamage zcCarDamage);
|
||||
|
||||
/**
|
||||
* 批量删除车辆报损记录
|
||||
*
|
||||
* @param ids 需要删除的车辆报损记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcCarDamageByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除车辆报损记录信息
|
||||
*
|
||||
* @param id 车辆报损记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcCarDamageById(Long id);
|
||||
}
|
||||
@ -0,0 +1,97 @@
|
||||
package com.ruoyi.operation.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.operation.mapper.ZcCarDamageMapper;
|
||||
import com.ruoyi.operation.domain.ZcCarDamage;
|
||||
import com.ruoyi.operation.service.IZcCarDamageService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 车辆报损记录Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-17
|
||||
*/
|
||||
@Service
|
||||
public class ZcCarDamageServiceImpl implements IZcCarDamageService
|
||||
{
|
||||
@Autowired
|
||||
private ZcCarDamageMapper zcCarDamageMapper;
|
||||
|
||||
/**
|
||||
* 查询车辆报损记录
|
||||
*
|
||||
* @param id 车辆报损记录主键
|
||||
* @return 车辆报损记录
|
||||
*/
|
||||
@Override
|
||||
public ZcCarDamage selectZcCarDamageById(Long id)
|
||||
{
|
||||
return zcCarDamageMapper.selectZcCarDamageById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询车辆报损记录列表
|
||||
*
|
||||
* @param zcCarDamage 车辆报损记录
|
||||
* @return 车辆报损记录
|
||||
*/
|
||||
@Override
|
||||
public List<ZcCarDamage> selectZcCarDamageList(ZcCarDamage zcCarDamage)
|
||||
{
|
||||
return zcCarDamageMapper.selectZcCarDamageList(zcCarDamage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增车辆报损记录
|
||||
*
|
||||
* @param zcCarDamage 车辆报损记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertZcCarDamage(ZcCarDamage zcCarDamage)
|
||||
{
|
||||
zcCarDamage.setCreateTime(DateUtils.getNowDate());
|
||||
return zcCarDamageMapper.insertZcCarDamage(zcCarDamage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改车辆报损记录
|
||||
*
|
||||
* @param zcCarDamage 车辆报损记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateZcCarDamage(ZcCarDamage zcCarDamage)
|
||||
{
|
||||
zcCarDamage.setUpdateTime(DateUtils.getNowDate());
|
||||
return zcCarDamageMapper.updateZcCarDamage(zcCarDamage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除车辆报损记录
|
||||
*
|
||||
* @param ids 需要删除的车辆报损记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteZcCarDamageByIds(String ids)
|
||||
{
|
||||
return zcCarDamageMapper.deleteZcCarDamageByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除车辆报损记录信息
|
||||
*
|
||||
* @param id 车辆报损记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteZcCarDamageById(Long id)
|
||||
{
|
||||
return zcCarDamageMapper.deleteZcCarDamageById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,157 @@
|
||||
<?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.operation.mapper.ZcCarDamageMapper">
|
||||
|
||||
<resultMap type="ZcCarDamage" id="ZcCarDamageResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="carId" column="car_id" />
|
||||
<result property="damageType" column="damage_type" />
|
||||
<result property="damageReason" column="damage_reason" />
|
||||
<result property="submitterName" column="submitter_name" />
|
||||
<result property="submitTime" column="submit_time" />
|
||||
<result property="damageStatus" column="damage_status" />
|
||||
<result property="auditorName" column="auditor_name" />
|
||||
<result property="auditTime" column="audit_time" />
|
||||
<result property="auditComment" column="audit_comment" />
|
||||
<result property="status" column="status" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="extend1" column="extend1" />
|
||||
<result property="extend2" column="extend2" />
|
||||
<result property="extend3" column="extend3" />
|
||||
|
||||
<association property="zcCar" column="car_id" javaType="ZcCar" resultMap="zcCarResult" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="zcCarResult" type="ZcCar">
|
||||
<result property="vin" column="vin" />
|
||||
<result property="licensePlate" column="license_plate" />
|
||||
<result property="brandName" column="brand_name" />
|
||||
<result property="modelName" column="model_name" />
|
||||
<result property="purchasePrice" column="purchase_price" />
|
||||
<result property="belongType" column="belong_type" />
|
||||
<result property="operatorName" column="operator_name" />
|
||||
<result property="storeName" column="store_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectZcCarDamageVo">
|
||||
select a.id, a.car_id, a.damage_type, a.damage_reason, a.submitter_name, a.submit_time, a.damage_status, a.auditor_name, a.audit_time, a.audit_comment, a.status, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, a.extend1, a.extend2, a.extend3,
|
||||
c.vin, c.license_plate, c.brand_name, c.model_name, c.purchase_price, c.belong_type, c.operator_name, c.store_name
|
||||
from zc_car_damage a
|
||||
left join zc_car c on a.car_id = c.id
|
||||
</sql>
|
||||
|
||||
<select id="selectZcCarDamageList" parameterType="ZcCarDamage" resultMap="ZcCarDamageResult">
|
||||
<include refid="selectZcCarDamageVo"/>
|
||||
<where>
|
||||
<if test="carId != null "> and car_id = #{carId}</if>
|
||||
<if test="damageType != null and damageType != ''"> and damage_type = #{damageType}</if>
|
||||
<if test="damageReason != null and damageReason != ''"> and damage_reason = #{damageReason}</if>
|
||||
<if test="submitterName != null and submitterName != ''"> and submitter_name like concat('%', #{submitterName}, '%')</if>
|
||||
<if test="submitTime != null "> and submit_time = #{submitTime}</if>
|
||||
<if test="damageStatus != null "> and damage_status = #{damageStatus}</if>
|
||||
<if test="auditorName != null and auditorName != ''"> and auditor_name like concat('%', #{auditorName}, '%')</if>
|
||||
<if test="auditTime != null "> and audit_time = #{auditTime}</if>
|
||||
<if test="auditComment != null and auditComment != ''"> and audit_comment = #{auditComment}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="extend1 != null and extend1 != ''"> and extend1 = #{extend1}</if>
|
||||
<if test="extend2 != null and extend2 != ''"> and extend2 = #{extend2}</if>
|
||||
<if test="extend3 != null and extend3 != ''"> and extend3 = #{extend3}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectZcCarDamageById" parameterType="Long" resultMap="ZcCarDamageResult">
|
||||
<include refid="selectZcCarDamageVo"/>
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertZcCarDamage" parameterType="ZcCarDamage" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into zc_car_damage
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="carId != null">car_id,</if>
|
||||
<if test="damageType != null and damageType != ''">damage_type,</if>
|
||||
<if test="damageReason != null">damage_reason,</if>
|
||||
<if test="submitterName != null and submitterName != ''">submitter_name,</if>
|
||||
<if test="submitTime != null">submit_time,</if>
|
||||
<if test="damageStatus != null">damage_status,</if>
|
||||
<if test="auditorName != null">auditor_name,</if>
|
||||
<if test="auditTime != null">audit_time,</if>
|
||||
<if test="auditComment != null">audit_comment,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="extend1 != null">extend1,</if>
|
||||
<if test="extend2 != null">extend2,</if>
|
||||
<if test="extend3 != null">extend3,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="carId != null">#{carId},</if>
|
||||
<if test="damageType != null and damageType != ''">#{damageType},</if>
|
||||
<if test="damageReason != null">#{damageReason},</if>
|
||||
<if test="submitterName != null and submitterName != ''">#{submitterName},</if>
|
||||
<if test="submitTime != null">#{submitTime},</if>
|
||||
<if test="damageStatus != null">#{damageStatus},</if>
|
||||
<if test="auditorName != null">#{auditorName},</if>
|
||||
<if test="auditTime != null">#{auditTime},</if>
|
||||
<if test="auditComment != null">#{auditComment},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="extend1 != null">#{extend1},</if>
|
||||
<if test="extend2 != null">#{extend2},</if>
|
||||
<if test="extend3 != null">#{extend3},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateZcCarDamage" parameterType="ZcCarDamage">
|
||||
update zc_car_damage
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="carId != null">car_id = #{carId},</if>
|
||||
<if test="damageType != null and damageType != ''">damage_type = #{damageType},</if>
|
||||
<if test="damageReason != null">damage_reason = #{damageReason},</if>
|
||||
<if test="submitterName != null and submitterName != ''">submitter_name = #{submitterName},</if>
|
||||
<if test="submitTime != null">submit_time = #{submitTime},</if>
|
||||
<if test="damageStatus != null">damage_status = #{damageStatus},</if>
|
||||
<if test="auditorName != null">auditor_name = #{auditorName},</if>
|
||||
<if test="auditTime != null">audit_time = #{auditTime},</if>
|
||||
<if test="auditComment != null">audit_comment = #{auditComment},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="extend1 != null">extend1 = #{extend1},</if>
|
||||
<if test="extend2 != null">extend2 = #{extend2},</if>
|
||||
<if test="extend3 != null">extend3 = #{extend3},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteZcCarDamageById" parameterType="Long">
|
||||
delete from zc_car_damage where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteZcCarDamageByIds" parameterType="String">
|
||||
delete from zc_car_damage where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,134 @@
|
||||
<!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-carDamage-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">关联车辆ID,外键关联zc_car表:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="carId" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">报损类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="damageType" class="form-control m-b" th:with="type=${@dict.getType('key_car_damage_type')}" required>
|
||||
<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">
|
||||
<textarea name="damageReason" class="form-control"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">报损提交人姓名:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="submitterName" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">报损提交时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="submitTime" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
|
||||
<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 is-required">报损状态(0:待审核,1:审核通过,2:审核不通过,3:已处理):</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="radio-box" th:each="dict : ${@dict.getType('key_car_damage_status')}">
|
||||
<input type="radio" th:id="${'damageStatus_' + dict.dictCode}" name="damageStatus" th:value="${dict.dictValue}" th:checked="${dict.default}" required>
|
||||
<label th:for="${'damageStatus_' + 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">
|
||||
<input name="auditorName" 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="auditTime" 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="auditComment" 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="delFlag" 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">扩展字段1:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="extend1" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">扩展字段2:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="extend2" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">扩展字段3:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="extend3" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: datetimepicker-js" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "operation/carDamage"
|
||||
$("#form-carDamage-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-carDamage-add').serialize());
|
||||
}
|
||||
}
|
||||
|
||||
$("input[name='submitTime']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$("input[name='auditTime']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,169 @@
|
||||
<!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>
|
||||
<select name="damageType" th:with="type=${@dict.getType('key_car_damage_type')}">
|
||||
<option value="">所有</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label>报损状态:</label>
|
||||
<select name="damageStatus" th:with="type=${@dict.getType('key_car_damage_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="submitterName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>审核人:</label>
|
||||
<input type="text" name="auditorName"/>
|
||||
</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="operation:carDamage:add">-->
|
||||
<!-- <i class="fa fa-plus"></i> 添加-->
|
||||
<!-- </a>-->
|
||||
<!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="operation:carDamage:edit">-->
|
||||
<!-- <i class="fa fa-edit"></i> 修改-->
|
||||
<!-- </a>-->
|
||||
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="operation:carDamage:remove">-->
|
||||
<!-- <i class="fa fa-remove"></i> 删除-->
|
||||
<!-- </a>-->
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="operation:carDamage: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('operation:carDamage:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('operation:carDamage:remove')}]];
|
||||
var damageTypeDatas = [[${@dict.getType('key_car_damage_type')}]];
|
||||
var damageStatusDatas = [[${@dict.getType('key_car_damage_status')}]];
|
||||
var prefix = ctx + "operation/carDamage";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "车辆报损记录",
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field: 'id',
|
||||
title: '报损记录ID',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'zcCar.operatorName',
|
||||
title: '所属运营商'
|
||||
},
|
||||
{
|
||||
field: 'zcCar.storeName',
|
||||
title: '所属门店'
|
||||
},
|
||||
{
|
||||
field: 'zcCar.vin',
|
||||
title: '车架号(VIN)'
|
||||
},
|
||||
{
|
||||
field: 'zcCar.licensePlate',
|
||||
title: '车牌号码'
|
||||
},
|
||||
{
|
||||
field: 'zcCar.brandName',
|
||||
title: '车辆品牌'
|
||||
},
|
||||
{
|
||||
field: 'zcCar.modelName',
|
||||
title: '车辆型号'
|
||||
},
|
||||
|
||||
{
|
||||
field: 'zcCar.purchasePrice',
|
||||
title: '采购价格(元)'
|
||||
},
|
||||
{
|
||||
field: 'damageType',
|
||||
title: '报损类型',
|
||||
formatter: function(value, row, index) {
|
||||
return $.table.selectDictLabel(damageTypeDatas, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'damageReason',
|
||||
title: '报损原因'
|
||||
},
|
||||
{
|
||||
field: 'submitterName',
|
||||
title: '报损提交人姓名'
|
||||
},
|
||||
{
|
||||
field: 'submitTime',
|
||||
title: '报损提交时间'
|
||||
},
|
||||
{
|
||||
field: 'damageStatus',
|
||||
title: '报损状态',
|
||||
formatter: function(value, row, index) {
|
||||
return $.table.selectDictLabel(damageStatusDatas, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'auditorName',
|
||||
title: '审核人姓名'
|
||||
},
|
||||
{
|
||||
field: 'auditTime',
|
||||
title: '审核时间'
|
||||
},
|
||||
{
|
||||
field: 'auditComment',
|
||||
title: '审核意见'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + ' btnOption" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>审核</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + ' btnOption" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,107 @@
|
||||
<!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-carDamage-edit" th:object="${zcCarDamage}">
|
||||
<input name="id" th:field="*{id}" type="hidden">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">报损类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="damageType" class="form-control m-b" th:with="type=${@dict.getType('key_car_damage_type')}" required>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{damageType}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">报损原因:</label>
|
||||
<div class="col-sm-8">
|
||||
<textarea name="damageReason" class="form-control">[[*{damageReason}]]</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">报损提交人:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="submitterName" th:field="*{submitterName}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">报损提交时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="submitTime" th:value="${#dates.format(zcCarDamage.submitTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
|
||||
<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 is-required">报损状态:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="radio-box" th:each="dict : ${@dict.getType('key_car_damage_status')}">
|
||||
<input type="radio" th:id="${'damageStatus_' + dict.dictCode}" name="damageStatus" th:value="${dict.dictValue}" th:field="*{damageStatus}" required>
|
||||
<label th:for="${'damageStatus_' + 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">
|
||||
<input name="auditorName" th:field="*{auditorName}" 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="auditTime" th:value="${#dates.format(zcCarDamage.auditTime, '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">
|
||||
<textarea name="auditComment" class="form-control">[[*{auditComment}]]</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注信息:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="remark" th:field="*{remark}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: datetimepicker-js" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "operation/carDamage";
|
||||
$("#form-carDamage-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-carDamage-edit').serialize());
|
||||
}
|
||||
}
|
||||
|
||||
$("input[name='submitTime']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$("input[name='auditTime']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user