|
|
|
|
@ -1,129 +1,287 @@
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
|
|
|
|
<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-order-edit" th:object="${bizMaintenanceOrder}">
|
|
|
|
|
<input name="orderId" th:field="*{orderId}" type="hidden">
|
|
|
|
|
<div class="col-xs-12">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label is-required">车辆ID/轮胎ID:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="vehicleId" th:field="*{vehicleId}" class="form-control" type="text" required>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-12">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">车牌号码:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="plateNumber" th:field="*{plateNumber}" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-12">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label is-required">维保类型:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select name="typeCode" class="form-control" th:with="type=${@dict.getType('main_type')}" required>
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{typeCode}"></option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-12">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">维修站点/修理厂ID:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="factoryId" th:field="*{factoryId}" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-12">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">仪表盘录入里程:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="inputMileage" th:field="*{inputMileage}" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-12">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">上次维保里程:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="lastMileage" th:field="*{lastMileage}" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-12">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">保养日期:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<div class="input-group date">
|
|
|
|
|
<input name="maintainDate" th:value="${#dates.format(bizMaintenanceOrder.maintainDate, '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>
|
|
|
|
|
<div class="col-xs-12">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">补充说明:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<textarea name="description" class="form-control">[[*{description}]]</textarea>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-12">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">状态:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select name="status" class="form-control" th:with="type=${@dict.getType('order_status')}">
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{status}"></option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-12">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">1代表汽车、2代表轮胎:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="orderType" th:field="*{orderType}" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-12">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">备注:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<textarea name="remark" class="form-control">[[*{remark}]]</textarea>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<th:block th:include="include :: footer" />
|
|
|
|
|
<th:block th:include="include :: datetimepicker-js" />
|
|
|
|
|
<script th:inline="javascript">
|
|
|
|
|
var prefix = ctx + "system/order";
|
|
|
|
|
$("#form-order-edit").validate({
|
|
|
|
|
focusCleanup: true
|
|
|
|
|
});
|
|
|
|
|
<th:block th:include="include :: header('维保详情')" />
|
|
|
|
|
<style>
|
|
|
|
|
/* --- 核心 CSS 样式开始 --- */
|
|
|
|
|
|
|
|
|
|
function submitHandler() {
|
|
|
|
|
if ($.validate.form()) {
|
|
|
|
|
$.operate.save(prefix + "/edit", $('#form-order-edit').serialize());
|
|
|
|
|
}
|
|
|
|
|
/* 顶部信息卡片 */
|
|
|
|
|
.info-card {
|
|
|
|
|
background: #fff;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
|
|
|
}
|
|
|
|
|
.info-row { margin-bottom: 10px; }
|
|
|
|
|
.info-label { color: #888; font-size: 13px; width: 120px; display: inline-block; }
|
|
|
|
|
.info-value { font-size: 13px; color: #333; font-weight: 500; }
|
|
|
|
|
.license-plate { font-size: 20px; font-weight: bold; color: #1ab394; margin-bottom: 15px; display: block; }
|
|
|
|
|
|
|
|
|
|
/* 维保对比区域 */
|
|
|
|
|
.maintenance-container {
|
|
|
|
|
display: flex;
|
|
|
|
|
background: #fff;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
|
|
|
min-height: 600px;
|
|
|
|
|
}
|
|
|
|
|
.maint-section { flex: 1; padding: 0 20px; position: relative; }
|
|
|
|
|
.maint-title { font-weight: bold; font-size: 16px; margin-bottom: 20px; border-left: 4px solid #1ab394; padding-left: 10px; }
|
|
|
|
|
|
|
|
|
|
/* 分割线 */
|
|
|
|
|
.divider {
|
|
|
|
|
width: 1px;
|
|
|
|
|
background-color: #e7eaec;
|
|
|
|
|
margin: 0 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("input[name='maintainDate']").datetimepicker({
|
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
|
minView: "month",
|
|
|
|
|
autoclose: true
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
/* 轮胎布局容器 */
|
|
|
|
|
.axle-group { display: flex; justify-content: center; margin-bottom: 20px; position: relative; }
|
|
|
|
|
.axle-label {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%; left: 50%;
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
background: #fff;
|
|
|
|
|
padding: 2px 8px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: #666;
|
|
|
|
|
border: 1px solid #e7eaec;
|
|
|
|
|
z-index: 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 轮胎卡片 */
|
|
|
|
|
.tyre-card {
|
|
|
|
|
width: 100px;
|
|
|
|
|
height: 180px;
|
|
|
|
|
background-color: #2f4050; /* 深灰底色 */
|
|
|
|
|
border-radius: 10px 10px 20px 20px;
|
|
|
|
|
margin: 0 5px;
|
|
|
|
|
position: relative;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
color: #fff;
|
|
|
|
|
transition: all 0.3s;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: flex-end; /* 内容沉底 */
|
|
|
|
|
padding-bottom: 10px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 胎纹模拟背景 */
|
|
|
|
|
.tyre-pattern {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
|
|
|
opacity: 0.1; /* 淡淡的纹路 */
|
|
|
|
|
background-image: repeating-linear-gradient(
|
|
|
|
|
45deg,
|
|
|
|
|
transparent,
|
|
|
|
|
transparent 10px,
|
|
|
|
|
#fff 10px,
|
|
|
|
|
#fff 20px
|
|
|
|
|
);
|
|
|
|
|
z-index: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 轴位标签 (左前, 右前等) */
|
|
|
|
|
.pos-tag {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0; left: 0;
|
|
|
|
|
background: #999;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
padding: 2px 8px;
|
|
|
|
|
border-radius: 0 0 10px 0;
|
|
|
|
|
z-index: 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 轮胎内容文字 */
|
|
|
|
|
.tyre-info { z-index: 3; padding: 0 10px; font-size: 12px; line-height: 1.5; }
|
|
|
|
|
.tyre-brand { font-weight: bold; font-size: 13px; }
|
|
|
|
|
.tyre-spec { font-size: 11px; opacity: 0.9; }
|
|
|
|
|
.tyre-dot { font-size: 11px; opacity: 0.8; }
|
|
|
|
|
.tyre-depth { color: #1ab394; font-weight: bold; margin-top: 2px; }
|
|
|
|
|
.tyre-status { font-size: 11px; border: 1px solid rgba(255,255,255,0.3); padding: 1px 3px; border-radius: 3px; display: inline-block; margin-top: 2px;}
|
|
|
|
|
|
|
|
|
|
/* 状态样式:卸胎 (绿色) */
|
|
|
|
|
.status-removed {
|
|
|
|
|
border: 2px solid #1ab394 !important;
|
|
|
|
|
background-color: #2f4050;
|
|
|
|
|
}
|
|
|
|
|
.status-removed .pos-tag { background: #1ab394; }
|
|
|
|
|
.status-removed .tyre-pattern { opacity: 0.3; } /* 卸胎纹路稍微明显点 */
|
|
|
|
|
.status-removed::after {
|
|
|
|
|
content: "卸胎";
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 30%; left: 50%;
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
color: #1ab394;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
z-index: 4;
|
|
|
|
|
background: rgba(255,255,255,0.9);
|
|
|
|
|
padding: 2px 5px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 状态样式:空位 (灰色透明) */
|
|
|
|
|
.status-empty {
|
|
|
|
|
background: #e7eaec;
|
|
|
|
|
border: 1px dashed #ccc;
|
|
|
|
|
}
|
|
|
|
|
.status-empty .pos-tag { background: #ccc; }
|
|
|
|
|
.status-empty .tyre-pattern { display: none; }
|
|
|
|
|
|
|
|
|
|
/* 按钮 */
|
|
|
|
|
.btn-xs { padding: 1px 5px; font-size: 12px; border-radius: 3px; }
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body class="gray-bg">
|
|
|
|
|
<div class="container-div">
|
|
|
|
|
|
|
|
|
|
<!-- 顶部基础信息 -->
|
|
|
|
|
<div class="info-card">
|
|
|
|
|
<span class="license-plate" id="licensePlate">粤B71857D</span>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-3 info-row">
|
|
|
|
|
<span class="info-label">所属场站:</span><span class="info-value" id="factory">清湖修理厂</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-3 info-row">
|
|
|
|
|
<span class="info-label">保养日期:</span><span class="info-value" id="maintDate">2026-04-16</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-3 info-row">
|
|
|
|
|
<span class="info-label">创建时间:</span><span class="info-value" id="createTime">2026-04-17 10:49:49</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-3 info-row">
|
|
|
|
|
<span class="info-label">创建人:</span><span class="info-value" id="creator">冯伟</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-3 info-row">
|
|
|
|
|
<span class="info-label">完成时间:</span><span class="info-value" id="finishTime">2026-04-17 10:51:07</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-3 info-row">
|
|
|
|
|
<span class="info-label">完成操作人:</span><span class="info-value" id="finishUser">冯伟</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-3 info-row">
|
|
|
|
|
<span class="info-label">当前车辆里程(km):</span><span class="info-value" id="mileage">311233.00</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-3 info-row">
|
|
|
|
|
<span class="info-label">线路:</span><span class="info-value" id="route">M204</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-3 info-row">
|
|
|
|
|
<span class="info-label">所属部门:</span><span class="info-value" id="dept">第四分公司-同胜</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-3 info-row">
|
|
|
|
|
<span class="info-label">备注:</span><span class="info-value" id="remark">-</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 维保前后对比区域 -->
|
|
|
|
|
<div class="maintenance-container">
|
|
|
|
|
|
|
|
|
|
<!-- 维保前 -->
|
|
|
|
|
<div class="maint-section">
|
|
|
|
|
<div class="maint-title">维保前</div>
|
|
|
|
|
<div id="before-container">
|
|
|
|
|
<!-- JS 渲染内容 -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="divider"></div>
|
|
|
|
|
|
|
|
|
|
<!-- 维保后 -->
|
|
|
|
|
<div class="maint-section">
|
|
|
|
|
<div style="float: right;">
|
|
|
|
|
<button class="btn btn-white btn-xs"><i class="fa fa-history"></i> 操作记录</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="maint-title">维保后</div>
|
|
|
|
|
<div id="after-container">
|
|
|
|
|
<!-- JS 渲染内容 -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<th:block th:include="include :: footer" />
|
|
|
|
|
<script th:inline="javascript">
|
|
|
|
|
$(function() {
|
|
|
|
|
// 模拟数据
|
|
|
|
|
const mockData = {
|
|
|
|
|
before: [
|
|
|
|
|
{ pos: '左前', brand: '米其林', spec: '275/70R22.5', dot: '1223', depth: '12.5mm', status: 'normal' },
|
|
|
|
|
{ pos: '右前', brand: '米其林', spec: '275/70R22.5', dot: '1223', depth: '12.0mm', status: 'normal' },
|
|
|
|
|
{ pos: '左外', brand: '赛轮', spec: '245/70R19.5', dot: '3725', depth: '16.30mm', status: 'normal' },
|
|
|
|
|
{ pos: '左内', brand: '赛轮', spec: '245/70R19.5', dot: '4425', depth: '16.30mm', status: 'normal' },
|
|
|
|
|
{ pos: '右内', brand: '', spec: '', dot: '', depth: '', status: 'empty' }, // 空位
|
|
|
|
|
{ pos: '右外', brand: '', spec: '', dot: '', depth: '', status: 'empty' }
|
|
|
|
|
],
|
|
|
|
|
after: [
|
|
|
|
|
{ pos: '左前', brand: '米其林', spec: '275/70R22.5', dot: '1223', depth: '12.5mm', status: 'normal' },
|
|
|
|
|
{ pos: '右前', brand: '米其林', spec: '275/70R22.5', dot: '1223', depth: '12.0mm', status: 'normal' },
|
|
|
|
|
{ pos: '左外', brand: '赛轮', spec: '245/70R19.5', dot: '3725', depth: '16.30mm', status: 'removed' }, // 卸胎
|
|
|
|
|
{ pos: '左内', brand: '赛轮', spec: '245/70R19.5', dot: '4425', depth: '16.30mm', status: 'removed' }, // 卸胎
|
|
|
|
|
{ pos: '右内', brand: '', spec: '', dot: '', depth: '', status: 'empty' },
|
|
|
|
|
{ pos: '右外', brand: '', spec: '', dot: '', depth: '', status: 'empty' }
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 渲染函数
|
|
|
|
|
function renderTyres(data, containerId) {
|
|
|
|
|
let html = '';
|
|
|
|
|
|
|
|
|
|
// 第一轴 (前轮)
|
|
|
|
|
html += '<div class="axle-group">';
|
|
|
|
|
html += '<div class="axle-label">1</div>'; // 轴号
|
|
|
|
|
html += createTyreCard(data[0]);
|
|
|
|
|
html += createTyreCard(data[1]);
|
|
|
|
|
html += '</div>';
|
|
|
|
|
|
|
|
|
|
// 第二轴 (后轮)
|
|
|
|
|
html += '<div class="axle-group">';
|
|
|
|
|
html += '<div class="axle-label">2</div>'; // 轴号
|
|
|
|
|
html += createTyreCard(data[2]);
|
|
|
|
|
html += createTyreCard(data[3]);
|
|
|
|
|
html += createTyreCard(data[4]);
|
|
|
|
|
html += createTyreCard(data[5]);
|
|
|
|
|
html += '</div>';
|
|
|
|
|
|
|
|
|
|
$(containerId).html(html);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 创建单个轮胎卡片
|
|
|
|
|
function createTyreCard(tyre) {
|
|
|
|
|
// 空位处理
|
|
|
|
|
if (tyre.status === 'empty') {
|
|
|
|
|
return `<div class="tyre-card status-empty">
|
|
|
|
|
<div class="pos-tag">${tyre.pos}</div>
|
|
|
|
|
</div>`;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 状态类名
|
|
|
|
|
let statusClass = tyre.status === 'removed' ? 'status-removed' : '';
|
|
|
|
|
|
|
|
|
|
return `<div class="tyre-card ${statusClass}">
|
|
|
|
|
<div class="pos-tag">${tyre.pos}</div>
|
|
|
|
|
<div class="tyre-pattern"></div> <!-- 胎纹背景 -->
|
|
|
|
|
<div class="tyre-info">
|
|
|
|
|
<div class="tyre-brand">${tyre.brand}</div>
|
|
|
|
|
<div class="tyre-spec">${tyre.spec}</div>
|
|
|
|
|
<div class="tyre-dot">DOT ${tyre.dot}</div>
|
|
|
|
|
<div class="tyre-depth">${tyre.depth}</div>
|
|
|
|
|
<div class="tyre-status">常规检查</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>`;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 执行渲染
|
|
|
|
|
renderTyres(mockData.before, '#before-container');
|
|
|
|
|
renderTyres(mockData.after, '#after-container');
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|