This commit is contained in:
sunrich
2018-11-21 10:27:47 +08:00
2 changed files with 512 additions and 3 deletions

View File

@ -46,6 +46,19 @@
.Wdate {
padding-left: 0;
}
.table > tbody > tr > td {
width: 50%;
display: inline-table;
}
.table > tbody > tr > td > label {
width: 20%;
vertical-align: top;
margin-top: 10px;
}
.table > tbody > tr > td > input,.table > tbody > tr > td > select {
width: 70%;
height: 38px;
}
</style>
<div id="main" style="width:75%;margin:0 auto;">
<div id="moduleCtId">
@ -294,16 +307,328 @@
<tbody>
<tr>
<td colspan="6" style="height:30px;padding-top:30px;">
<td colspan="6" style="height:30px;margin-top:30px;width: 100%;">
<hr/>
</td>
</tr>
<tr>
<td colspan="6">
<h2 style="font-size:20px;margin-bottom:40px;margin-top:0">经销商必填信息</h2>
<h2 style="font-size:20px;margin-bottom:40px;margin-top:0">路修</h2>
</td>
</tr>
<%-- 是否修复车辆 开始--%>
<%-- <tr>
<td class="ng-binding" style="position:relative;">
<label for="">是否修复车辆:</label>
<select id="repairCar"
name="" style="width:70%;height:38px;"
class="js-example-basic-single select2-hidden-accessible" tabindex="-1"
aria-hidden="true">
<option value="" checked>--请选择--</option>
<option value="1">是</option>
<option value="3">否</option>
<option value="2">其他</option>
</select>
<font style="color:red;">*</font>
</td>
<td class="ng-binding" style="position:relative;display: none" id="repairCarDetailWrapper">
<label for="">描述(最多100字):</label>
<textarea id="" name="" style="width:70%;height:70px;"
class="mc-textarea"></textarea>
</td>
&lt;%&ndash; 是否修复车辆 结束 &ndash;%&gt;
&lt;%&ndash; 是否有质量问题 开始 &ndash;%&gt;
<td class="ng-binding" style="position:relative;">
<label for="">是否质量问题:</label>
<select id="qualityProblem" name="" class="js-example-basic-single select2-hidden-accessible" tabindex="-1" aria-hidden="true">
<option value="" checked>--请选择--</option>
<option value="1">是</option>
<option value="3">否</option>
<option value="2">未知</option>
</select>
<font style="color:red;">*</font>
</td>
&lt;%&ndash; 是否有质量问题 选择未知 开始 &ndash;%&gt;
<td class="ng-binding unknowProblem qualityProblemUnknow" style="position:relative;display: none">
<label for="">EPQR:</label>
<input value="" id="" />
</td>
&lt;%&ndash; 是否有质量问题 选择未知 结束 &ndash;%&gt;
&lt;%&ndash; 是否有质量问题 选择是 开始 &ndash;%&gt;
<td class="ng-binding qualityProblemYes" style="position:relative;display: none;">
<label for="">是否有技术公告:</label>
<select id="technologyNotice" name="" class="js-example-basic-single select2-hidden-accessible" tabindex="-1" aria-hidden="true">
<option value="" checked>--请选择--</option>
<option value="1">是</option>
<option value="2">否</option>
</select>
</td>
&lt;%&ndash; 有技术公告 开始 &ndash;%&gt;
<td class="ng-binding qualityProblemYes technologyNoticeYes" style="position:relative;display: none;">
<label for="">是否有效:</label>
<select id="effectiveProblem" name="" class="js-example-basic-single select2-hidden-accessible" tabindex="-1" aria-hidden="true">
<option value="" checked>--请选择--</option>
<option value="1">是</option>
<option value="2">否</option>
</select>
</td>
&lt;%&ndash; 有效 开始 &ndash;%&gt;
<td class="ng-binding qualityProblemYes technologyNoticeYes effectiveProblemYes" style="position:relative;display: none;" >
<label for="">技术公告号(最多15个字):</label>
<textarea id="" name="" style="width:70%;height:70px;" class="mc-textarea"></textarea>
</td>
&lt;%&ndash; 有效 结束 &ndash;%&gt;
&lt;%&ndash; 无效 开始 &ndash;%&gt;
<td class="ng-binding qualityProblemYes technologyNoticeYes effectiveProblemNo" style="position:relative;display: none;">
<label for="">
<select name="" id="">
<option value="">请选择</option>
<option value="EPQR">EPQR</option>
<option value="TA">TA</option>
<option value="技术公告号">技术公告号</option>
</select>
</label>
<input value="" id="" />
</td>
&lt;%&ndash; 无效 结束 &ndash;%&gt;
&lt;%&ndash; 有技术公告 结束 &ndash;%&gt;
&lt;%&ndash; 没有技术公告 开始 &ndash;%&gt;
<td class="ng-binding unknowProblem qualityProblemYes technologyNoticeNo" style="position:relative;display: none">
<label for="">
<select name="" id="">
<option value="">请选择</option>
<option value="EPQR">EPQR</option>
<option value="TA">TA</option>
</select>
</label>
<input value="" id="" />
</td>
&lt;%&ndash; 没有技术公告 结束 &ndash;%&gt;
&lt;%&ndash; 是否有质量问题 选择是 结束 &ndash;%&gt;
&lt;%&ndash; 是否有质量问题 结束 &ndash;%&gt;
&lt;%&ndash; 维修 开始 &ndash;%&gt;
<td class="ng-binding" style="position:relative;">
<label for="">
维修
</label>
<select name="" id="repairOptions">
<option value="">请选择</option>
<option value="1">搭电</option>
<option value="2">打气</option>
<option value="3">换胎</option>
<option value="4">解档</option>
<option value="5">安装</option>
<option value="6">其他处理</option>
</select>
<font style="color:red;">*</font>
</td>
&lt;%&ndash;选择 搭电 s &ndash;%&gt;
<td class="ng-binding" style="position:relative;display: none;" id="betteryCheck">
<label for="">电瓶检查:</label>
<input value="" id="" />
</td>
&lt;%&ndash;选择 搭电 s &ndash;%&gt;
&lt;%&ndash;选择 安装 s &ndash;%&gt;
<td class="ng-binding" style="position:relative;display: none;" id="writeParts">
<label for="">填写零件(最多30个字):</label>
<input value="" id="" />
</td>
&lt;%&ndash;选择 安装 e &ndash;%&gt;
&lt;%&ndash;选择 其他处理 s &ndash;%&gt;
<td class="ng-binding" style="position:relative;display: none;" id="repairDescirbe">
<label for="">描述(最多30个字):</label>
<input value="" id="" />
</td>
&lt;%&ndash;选择 其他处理 e &ndash;%&gt;
&lt;%&ndash; 维修 结束 &ndash;%&gt;
&lt;%&ndash; 工单号 s &ndash;%&gt;
<td class="ng-binding unknowProblem" style="position:relative;">
<label for="">工单号:</label>
<input value="NA" id="" disabled="disabled" />
</td>
&lt;%&ndash; 工单号 e &ndash;%&gt;
</tr>
--%>
<tr>
<td colspan="6">
<h2 style="font-size:20px;margin-bottom:40px;margin-top:0">进店维修</h2>
</td>
</tr>
<tr>
<td class="ng-binding" style="position:relative;">
<label for="">维修:</label>
<select id="repairEnterCompany"
name="" style="width:70%;height:38px;"
class="js-example-basic-single select2-hidden-accessible" tabindex="-1"
aria-hidden="true">
<option value="" checked>--请选择--</option>
<option value="1">已修复</option>
<option value="2">正在维修</option>
<option value="3">等待维修授权</option>
<option value="4">问题未再现</option>
<option value="5">其他</option>
</select>
<font style="color:red;">*</font>
</td>
<td class="ng-binding" style="position:relative;display: none;" id="repairEnterCompanyOtherDetail">
<label for="">描述:</label>
<textarea id="" name="" style="width:70%;height:70px;" class="mc-textarea"></textarea>
</td>
<td class="ng-binding" style="position:relative;">
<label for="">是否有工单号:</label>
<select id="repairEnterCompanyOrderNumber"
name="" style="width:70%;height:38px;"
class="js-example-basic-single select2-hidden-accessible" tabindex="-1"
aria-hidden="true">
<option value="" checked>--请选择--</option>
<option value="1">是</option>
<option value="2">否</option>
</select>
<font style="color:red;">*</font>
</td>
<td class="ng-binding" style="position:relative;display: none;" id="HasRepairOrderNumber">
<label for="">工单号:</label>
<input value="" id="" />
</td>
<td class="ng-binding" style="position:relative;display: none;" id="HasNotRepairOrderNumber">
<label for="">原因(最多20个字):</label>
<input value="" id="" />
</td>
<%-- 是否有质量问题 开始 --%>
<td class="ng-binding" style="position:relative;">
<label for="">是否质量问题:</label>
<select id="repairEnterCompanyQuality" name="" class="js-example-basic-single select2-hidden-accessible" tabindex="-1" aria-hidden="true">
<option value="" checked>--请选择--</option>
<option value="1">是</option>
<option value="2">否</option>
<option value="3">未知</option>
</select>
<font style="color:red;">*</font>
</td>
<%-- 是否有质量问题 选择未知 开始 --%>
<td class="ng-binding repairEnterCompanyQualityUnknow" style="position:relative;display: none">
<label for="">
<select name="" id="">
<option value="">请选择</option>
<option value="EPQR">EPQR</option>
<option value="TA">TA</option>
</select>
</label>
<input value="" id="" />
</td>
<%-- 是否有质量问题 选择未知 结束 --%>
<%-- 是否有质量问题 选择是 开始 --%>
<td class="ng-binding repairEnterCompanyQualityYes repairEnterCompanyTechnology" style="position:relative;display: none;">
<label for="">是否有技术公告:</label>
<select id="repairEnterCompanyTechnologyNotice" name="" class="js-example-basic-single select2-hidden-accessible" tabindex="-1" aria-hidden="true">
<option value="" checked>--请选择--</option>
<option value="1">是</option>
<option value="2">否</option>
</select>
</td>
<%-- 有技术公告 开始 --%>
<td class="ng-binding repairEnterCompanyQualityYes repairEnterCompanyTechnologyYes" style="position:relative;display: none;">
<label for="">是否有效:</label>
<select id="repairEnterCompanyEffectiveProblem" name="" class="js-example-basic-single select2-hidden-accessible" tabindex="-1" aria-hidden="true">
<option value="" checked>--请选择--</option>
<option value="1">是</option>
<option value="2">否</option>
</select>
</td>
<%-- 有效 开始 --%>
<td class="ng-binding repairEnterCompanyQualityYes repairEnterCompanyTechnologyYes repairEnterEffectiveYes" style="position:relative;display: none;" >
<label for="">技术公告号(最多15个字):</label>
<textarea id="" name="" style="width:70%;height:70px;" class="mc-textarea"></textarea>
</td>
<%-- 有效 结束 --%>
<%-- 无效 开始 --%>
<td class="ng-binding repairEnterCompanyQualityYes repairEnterCompanyTechnologyYes repairEnterEffectiveNo" style="position:relative;display: none;">
<label for="">
<select name="" id="">
<option value="">请选择</option>
<option value="EPQR">EPQR</option>
<option value="TA">TA</option>
<option value="技术公告号">技术公告号</option>
</select>
</label>
<input value="" id="" />
</td>
<%-- 无效 结束 --%>
<%-- 有技术公告 结束 --%>
<%-- 没有技术公告 开始 --%>
<td class="ng-binding repairEnterCompanyQualityYes repairEnterCompanyTechnologyNo" style="position:relative;display: none">
<label for="">
<select name="" id="">
<option value="">请选择</option>
<option value="EPQR">EPQR</option>
<option value="TA">TA</option>
</select>
</label>
<input value="" id="" />
</td>
<%-- 没有技术公告 结束 --%>
<%-- 是否有质量问题 选择是 结束 --%>
<%-- 是否有质量问题 选择否 开始 --%>
<td class="ng-binding repairEnterCompanyQualityNo" style="position:relative;display: none;">
<label for="">类型</label>
<select id="" name="" class="js-example-basic-single select2-hidden-accessible" tabindex="-1" aria-hidden="true">
<option value="" checked>--请选择--</option>
<option value="1">事故</option>
<option value="2">涉水</option>
<option value="3">人为错误</option>
<option value="4">外力损坏</option>
<option value="5">维护保养不当</option>
<option value="6">车辆属性</option>
<option value="7">其他外部因素</option>
</select>
</td>
<%-- 是否有质量问题 选择否 结束 --%>
<%-- 是否有质量问题 结束 --%>
</tr>
<%--<tr>
<th>DMS单号:</th>
<td class="ng-binding" style="position:relative;">
<!-- id="input43Wrap"> -->
@ -647,7 +972,7 @@
</tr>
<tr>
<td colspan="6" style="height:10px;"></td>
</tr>
</tr>--%>
</tbody>
</table>

View File

@ -2,6 +2,190 @@
pageEncoding="utf-8" %>
<script type="text/javascript" src="<%=webpath%>/js/DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
/**
* 是否选择车辆 选择其他 ,显示描述的文本框
* */
$("#repairCar").change(function () {
if($("#repairCar").val() == 2){
$("#repairCarDetailWrapper").show();
}else {
$("#repairCarDetailWrapper").hide();
}
})
/**
* 是否有质量问题
* */
$("#qualityProblem").change(function () {
/***
* 2 是 ‘未知’, 1 是 ‘是’, 3 是 ‘否’, 0 是 ‘请选择’
*/
if( $("#qualityProblem").val() == 2 ){
$(".qualityProblemUnknow").show().find('select').val("");
$(".qualityProblemYes").hide().find('select').val("");
} else if($("#qualityProblem").val() == 1){
$(".qualityProblemYes").show().find('select').val("");
$(".qualityProblemUnknow").hide().find('select').val("");
$(".technologyNoticeYes").hide().find('select').val("");
$(".technologyNoticeNo").hide().find('select').val("");
} else {
$(".qualityProblemUnknow").hide().find('select').val("");
$(".qualityProblemYes").hide().find('select').val("");
}
})
/**
* 是否有技术公告 1 : 是 2 : 否
* */
$("#technologyNotice").change(function () {
if( $("#technologyNotice").val() == 1 ){
$(".technologyNoticeYes").show().find('select').val("");
$(".technologyNoticeNo").hide().find('select').val("");
$(".effectiveProblemYes").hide().find('select').val("");
$('.effectiveProblemNo').hide().find('select').val("");
} else if( $("#technologyNotice").val() == 2 ){
$(".technologyNoticeYes").hide().find('select').val("");
$(".technologyNoticeNo").show().find('select').val("");
$(".effectiveProblemYes").hide().find('select').val("");
$('.effectiveProblemNo').hide().find('select').val("");
} else {
$(".technologyNoticeYes").hide().find('select').val("");
$(".technologyNoticeNo").hide().find('select').val("");
}
})
/**
* 是否有效 1 : 是 2 : 否
* */
$("#effectiveProblem").change(function () {
if($("#effectiveProblem").val() == 1){
$('.effectiveProblemYes').show().find('select').val("");
$(".effectiveProblemNo").hide().find('select').val("");
}else if($("#effectiveProblem").val() == 2){
$('.effectiveProblemYes').hide().find('select').val("");
$(".effectiveProblemNo").show().find('select').val("");
}else {
$('.effectiveProblemYes').hide().find('select').val("");
$(".effectiveProblemNo").hide().find('select').val("");
}
})
/**
* 维修 选择 1 : 搭电 , 2 : 打气 3 换胎 4 解档 5 :安装 6 其他处理
* */
$('#repairOptions').change(function () {
if( $('#repairOptions').val() == 1 ){
$("#betteryCheck").show();
$("#writeParts").hide();
$("#repairDescirbe").hide();
} else if( $('#repairOptions').val() == 5 ){
$("#betteryCheck").hide();
$("#writeParts").show();
$("#repairDescirbe").hide();
} else if( $('#repairOptions').val() == 6 ){
$("#betteryCheck").hide();
$("#writeParts").hide();
$("#repairDescirbe").show();
} else {
$("#betteryCheck").hide();
$("#writeParts").hide();
$("#repairDescirbe").hide();
}
})
/**
* 进店维修
* */
/**
* 是否有工单号 1 : 是 2
* */
$('#repairEnterCompanyOrderNumber').change(function () {
if($('#repairEnterCompanyOrderNumber').val() == 1){
$('#HasRepairOrderNumber').show();
$('#HasNotRepairOrderNumber').hide();
} else if($('#repairEnterCompanyOrderNumber').val() == 2){
$('#HasRepairOrderNumber').hide();
$('#HasNotRepairOrderNumber').show();
} else {
$('#HasRepairOrderNumber').hide();
$('#HasNotRepairOrderNumber').hide();
}
})
/**
* 维修选择框 1 已修复 2 正在维修 3 等待维修授权 4 :问题未再现 5 其他
* */
$('#repairEnterCompany').change(function () {
if( $('#repairEnterCompany').val() == 5 ){
$("#repairEnterCompanyOtherDetail").show();
}else {
$("#repairEnterCompanyOtherDetail").hide();
}
})
/**
* 是否质量问题 1 2 3 : 未知
* */
$("#repairEnterCompanyQuality").change(function () {
// 选择 是
if($("#repairEnterCompanyQuality").val() == 1 ){
$(".repairEnterCompanyQualityNo").hide().find('select').val("");
$('.repairEnterCompanyQualityYes').show().find('select').val("");
$(".repairEnterCompanyQualityUnknow").hide().find('select').val("");
$(".repairEnterCompanyTechnologyYes").hide().find('select').val("");
$(".repairEnterCompanyTechnologyNo").hide().find('select').val("");
} else if($("#repairEnterCompanyQuality").val() == 2){
$(".repairEnterCompanyQualityNo").show().find('select').val("");
$('.repairEnterCompanyQualityYes').hide().find('select').val("");
$(".repairEnterCompanyQualityUnknow").hide().find('select').val("");
} else if($("#repairEnterCompanyQuality").val() == 3){
$(".repairEnterCompanyQualityNo").hide().find('select').val("");
$('.repairEnterCompanyQualityYes').hide().find('select').val("");
$(".repairEnterCompanyQualityUnknow").show().find('select').val("");
} else {
$(".repairEnterCompanyQualityNo").hide().find('select').val("");
$('.repairEnterCompanyQualityYes').hide().find('select').val("");
$(".repairEnterCompanyQualityUnknow").hide().find('select').val("");
}
})
/**
* 是否有技术公告 1 : 是 2
* */
$('#repairEnterCompanyTechnologyNotice').change(function () {
if( $('#repairEnterCompanyTechnologyNotice').val() == 1 ){
$('.repairEnterCompanyTechnologyYes').show().find('select').val("");
$('.repairEnterCompanyTechnologyNo').hide().find('select').val("");
$('.repairEnterEffectiveYes').hide().find('select').val("");
$('.repairEnterEffectiveNo').hide().find('select').val("");
}else if($('#repairEnterCompanyTechnologyNotice').val() == 2) {
$('.repairEnterCompanyTechnologyYes').hide().find('select').val("");
$('.repairEnterCompanyTechnologyNo').show().find('select').val("");
}else {
$('.repairEnterCompanyTechnologyYes').hide().find('select').val("");
$('.repairEnterCompanyTechnologyNo').hide().find('select').val("");
}
})
/**
* 是否有效 1 2
* */
$('#repairEnterCompanyEffectiveProblem').change(function () {
if($('#repairEnterCompanyEffectiveProblem').val() == 1){
$('.repairEnterEffectiveYes').show().find('select').val("");
$('.repairEnterEffectiveNo').hide().find('select').val("");
} else if($('#repairEnterCompanyEffectiveProblem').val() == 2) {
$('.repairEnterEffectiveYes').hide().find('select').val("");
$('.repairEnterEffectiveNo').show().find('select').val("");
} else {
$('.repairEnterEffectiveYes').hide().find('select').val("");
$('.repairEnterEffectiveNo').hide().find('select').val("");
}
})
function submitMyInfo() {
var path = $("#mypaths").val();
var newPassword = $("#newPassword").val();