车辆报损
This commit is contained in:
@ -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