|
@@ -0,0 +1,201 @@
|
|
|
+<!DOCTYPE HTML>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
+ <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
|
|
|
+ <meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
|
+<#include "/base/add_base.ftl">
|
|
|
+ <title>修改检测内容</title>
|
|
|
+ <style>
|
|
|
+ .my-title{font-weight: 500;padding-left: 15px;position: relative;}
|
|
|
+ .my-title:after{content: '';position: absolute;left: 0;top:12%;width: 3px;height: 80%;background: #32a3d8;}
|
|
|
+ .my-input{padding: 8px 5px;width: 80%;border:1px solid rgba(0,0,0,.1);}
|
|
|
+ .my-input-date{padding: 8px 10px;border:1px solid rgba(0,0,0,.1);width: 80%;background: url(http://s.iamberry.com/images/rili-1.png) 98.5% center no-repeat; background-size:auto 50%;}
|
|
|
+ .input-box{margin: 18px 0;}
|
|
|
+ .input-dic{float: left;margin:5px 10px 0 0;font-size: 12px;}
|
|
|
+ .add-list{list-style-type: none;padding: 10px;background-color: #f5f5f5;width: 60%;float: left;margin: 0;}
|
|
|
+ .add-list>li{margin: 10px 0;}
|
|
|
+ .my-textarea{padding: 5px 10px;width: 80%;border:1px solid rgba(0,0,0,.1);}
|
|
|
+ .my-btn-reset{padding: 10px 20px;width: 150px; background-color: #fff;color: #32a3d8;border: 1px solid #32a3d8;cursor:pointer;margin: 10px 10px 0 10px;}
|
|
|
+ .my-btn-submit{padding: 10px 20px;width: 150px; background-color: #32a3d8;color: #fff;border: 1px solid #32a3d8;cursor:pointer;margin: 10px 10px 0 10px;}
|
|
|
+ .my-select{border: 1px solid rgba(0,0,0,.1);padding:6px 50px 6px 15px;width: 60%; height: 34px;margin: 0 10px; -webkit-appearance:none;appearance:none;background: url(http://s.iamberry.com/images/select-1.png) right center no-repeat #fff;background-size:auto 100%;}
|
|
|
+ input[type=radio]{-webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/radio-1.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
+ input[type=radio]:checked{-webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/radio-2.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
+ </style>
|
|
|
+ <meta name="keywords" content="${path}">
|
|
|
+ <meta name="description" content="H-ui.admin v3.0,是一款由国人开发的轻量级扁平化网站后台模板,完全免费开源的网站后台管理系统模版,适合中小型CMS后台系统。">
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<article class="page-container">
|
|
|
+ <form class="form form-horizontal" id="form-admin-add">
|
|
|
+ <div class="input-box">
|
|
|
+ <span class="input-dic" style="margin-top: 0">检测结果</span>
|
|
|
+ <label for="radio-3">
|
|
|
+ <input type="radio" id="radio-3" name="detectState" value="3"
|
|
|
+ <#if detectInfo.detectState == 3>checked</#if>
|
|
|
+ />检测通过
|
|
|
+ </label>
|
|
|
+ <label for="radio-4" style="margin-left: 50px;">
|
|
|
+ <input type="radio" id="radio-4" name="detectState" value="4"
|
|
|
+ <#if detectInfo.detectState == 4>checked</#if>
|
|
|
+ />检测未通过
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="input-box">
|
|
|
+ <span class="input-dic "> </span>
|
|
|
+ <textarea rows="3" cols="20" name="detectPhenomenon" id="detectPhenomenon" class="my-textarea" placeholder="工厂检测现象">${detectInfo.detectPhenomenon!''}</textarea>
|
|
|
+ </div>
|
|
|
+ <div class="input-box">
|
|
|
+ <span class="input-dic "> </span>
|
|
|
+ <textarea rows="3" cols="20" name="detectFailureClassification" id="detectFailureClassification" class="my-textarea" placeholder="故障分类">${detectInfo.detectFailureClassification!''}</textarea>
|
|
|
+ </div>
|
|
|
+ <div class="input-box">
|
|
|
+ <span class="input-dic "> </span>
|
|
|
+ <textarea rows="3" cols="20" name="detectFailureCause" id="detectFailureCause" class="my-textarea" placeholder="故障原因">${detectInfo.detectFailureCause!''}</textarea>
|
|
|
+ </div>
|
|
|
+ <div class="input-box">
|
|
|
+ <span class="input-dic "> </span>
|
|
|
+ <textarea rows="3" cols="20" name="detectResults" id="detectResults" class="my-textarea" placeholder="判定结果">${detectInfo.detectResults!''}</textarea>
|
|
|
+ </div>
|
|
|
+ <div class="input-box">
|
|
|
+ <span class="input-dic "> </span>
|
|
|
+ <textarea rows="3" cols="20" name="detectPoint" id="detectPoint" class="my-textarea" placeholder="故障指向">${detectInfo.detectPoint!''}</textarea>
|
|
|
+ </div>
|
|
|
+ <div class="input-box">
|
|
|
+ <span class="input-dic "> </span>
|
|
|
+ <textarea rows="3" cols="20" name="detectAnalysis" id="detectAnalysis" class="my-textarea" placeholder="原因分析">${detectInfo.detectAnalysis!''}</textarea>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <#--<div class="input-box">
|
|
|
+ <span class="input-dic" style="margin-top: 0">是否需要转入生产部门</span>
|
|
|
+ <label for="radio-5">
|
|
|
+ <input type="radio" id="radio-5" name="detectIsMaintenance" onclick="show()" value="1" checked/>需要转入生产部门
|
|
|
+ </label>
|
|
|
+ <label for="radio-6" style="margin-left: 50px;">
|
|
|
+ <input type="radio" id="radio-6" name="detectIsMaintenance" onclick="hide()" value="2"/>不需要转入生产部门
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <div class="input-box" id="revolutionProducedId">
|
|
|
+ <span class="input-dic" style="margin-top: 0">立即转入生产部门</span>
|
|
|
+ <label for="radio-7">
|
|
|
+ <input type="radio" id="radio-7" name="detectRevolutionProduced" value="2" checked/>立即转入
|
|
|
+ </label>
|
|
|
+ <label for="radio-8" style="margin-left: 50px;">
|
|
|
+ <input type="radio" id="radio-8" name="detectRevolutionProduced" value="1"/>以后转入
|
|
|
+ </label>
|
|
|
+ </div>-->
|
|
|
+ <div class="input-box">
|
|
|
+ <span class="input-dic" style="margin-top: 0">QC检查状态</span>
|
|
|
+ <label for="radio-7">
|
|
|
+ <input type="radio" id="radio-9" name="maintenanceResults" value="1" checked/>通过
|
|
|
+ </label>
|
|
|
+ <label for="radio-8" style="margin-left: 50px;">
|
|
|
+ <input type="radio" id="radio-10" name="maintenanceResults" value="2"/>不通过
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <div class="input-box">
|
|
|
+ <span class="input-dic spanhidth">备注</span>
|
|
|
+ <textarea rows="3" cols="20" name="detectDesc" id="detectDesc" class="my-textarea" placeholder="请详细备注内容,便于以后复查。如果转入生产,则生产部门同事可查看!">${detectInfo.detectDesc!''}</textarea>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <input type="hidden" value="${detectId!''}" id="detectId" name="detectId">
|
|
|
+ <button type="button" class="my-btn-submit" onclick="add();">确认提交</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+</article>
|
|
|
+<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
|
+<script type="text/javascript">
|
|
|
+ function hide() {
|
|
|
+ $("#revolutionProducedId").hide();
|
|
|
+ }
|
|
|
+ function show() {
|
|
|
+ $("#revolutionProducedId").show();
|
|
|
+ }
|
|
|
+
|
|
|
+ function add() {
|
|
|
+
|
|
|
+ var detectPhenomenon = $("#detectPhenomenon").val();
|
|
|
+ if( detectPhenomenon == null || detectPhenomenon == "" ){
|
|
|
+ layer.msg('请输入工厂检测现象',{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if( detectPhenomenon.length > 300 ){
|
|
|
+ layer.msg('工厂检测现象长度不得大于150个字符',{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var detectFailureClassification = $("#detectFailureClassification").val();
|
|
|
+ if( detectFailureClassification == null || detectFailureClassification == "" ){
|
|
|
+ layer.msg('请输入故障分类',{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if( detectFailureClassification.length > 50 ){
|
|
|
+ layer.msg('故障分类长度不得大于25个字符',{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var detectFailureCause = $("#detectFailureCause").val();
|
|
|
+ if( detectFailureCause == null || detectFailureCause == "" ){
|
|
|
+ layer.msg('请输入故障原因',{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if( detectFailureCause.length > 100 ){
|
|
|
+ layer.msg('故障原因长度不得大于50个字符',{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ var detectResults = $("#detectResults").val();
|
|
|
+ if( detectResults == null || detectResults == "" ){
|
|
|
+ layer.msg('请输入判定结果',{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if( detectResults.length > 100 ){
|
|
|
+ layer.msg('判定结果长度不得大于50个字符',{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ var detectPoint = $("#detectPoint").val();
|
|
|
+ if( detectPoint == null || detectPoint == "" ){
|
|
|
+ layer.msg('请输入故障指向',{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if( detectPoint.length > 100 ){
|
|
|
+ layer.msg('故障指向长度不得大于50个字符',{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ var detectAnalysis = $("#detectAnalysis").val();
|
|
|
+ if( detectAnalysis == null || detectAnalysis == "" ){
|
|
|
+ layer.msg('请输入原因分析',{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if( detectAnalysis.length > 100 ){
|
|
|
+ layer.msg('原因分析长度不得大于50个字符',{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ url: "${path}/admin/detect/update_complete",
|
|
|
+ data:$('#form-admin-add').serialize(),// 你的formid
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ layer.msg('检测完成',{icon: 1,time:1000},function () {
|
|
|
+ window.parent.location.reload();
|
|
|
+ var index = parent.layer.getFrameIndex(window.name);
|
|
|
+ parent.layer.close(index)
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ layer.msg('检测完成失败',{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ layer.msg('检测错误',{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|