|
@@ -17,10 +17,9 @@
|
|
.input-dic{float: left;margin:5px 10px 0 0;font-size: 12px;}
|
|
.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{list-style-type: none;padding: 10px;background-color: #f5f5f5;width: 60%;float: left;margin: 0;}
|
|
.add-list>li{margin: 10px 0;}
|
|
.add-list>li{margin: 10px 0;}
|
|
- .my-textarea{padding: 5px 10px;width: 80%;border:1px solid rgba(0,0,0,.1);}
|
|
|
|
|
|
+ .my-textarea{padding: 5px 10px;width: 65%;border:1px solid rgba(0,0,0,.1);margin-left: 12.5%;}
|
|
.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-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-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]{-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;}
|
|
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;}
|
|
.huanhang{ float:left}
|
|
.huanhang{ float:left}
|
|
@@ -32,8 +31,9 @@
|
|
<article class="page-container">
|
|
<article class="page-container">
|
|
<form class="form form-horizontal" id="form-admin-add">
|
|
<form class="form form-horizontal" id="form-admin-add">
|
|
<div class="input-box">
|
|
<div class="input-box">
|
|
- <label class="form-label col-2 col-sm-2 huanhang">维修产品:</label>
|
|
|
|
- <div class="formControls col-9 col-sm-9 text-c huanhang" style="margin-bottom: 15px;">
|
|
|
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;">维修产品:</label>
|
|
|
|
+ <div class="col-9 col-sm-9 text-c">
|
|
|
|
+ <div class="radio-box" style="margin-right: -40%;">
|
|
<table class="table table-border table-bg table-bordered" style="width: 420px;">
|
|
<table class="table table-border table-bg table-bordered" style="width: 420px;">
|
|
<thead>
|
|
<thead>
|
|
<tr class="text-c">
|
|
<tr class="text-c">
|
|
@@ -47,7 +47,10 @@
|
|
<#list productList as product>
|
|
<#list productList as product>
|
|
<tr>
|
|
<tr>
|
|
<td>
|
|
<td>
|
|
- <input type="radio" onclick="emptyingNumber();" id="radio-1${product.productId!''}" name="productId" value="${product.productId!''}" <#if product_index == 0>checked</#if>/>${product.productName!''}
|
|
|
|
|
|
+ <div class="col-xs-12 col-sm-12 skin-minimal">
|
|
|
|
+ <input type="radio" id="radio-X${product.productId!''}" name="productId" value="${product.productId!''}" <#if product_index == 0>checked</#if>/>
|
|
|
|
+ <label for="radio-X${product.productId!''}"> ${product.productName!''}</label>
|
|
|
|
+ </div>
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
<select name="colorId${product.productId!''}" id="colorId${product.productId!''}" style="width:90%" class="my-select">
|
|
<select name="colorId${product.productId!''}" id="colorId${product.productId!''}" style="width:90%" class="my-select">
|
|
@@ -69,101 +72,97 @@
|
|
</#if>
|
|
</#if>
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- <#--<#if (productList?size > 0)>
|
|
|
|
- <#list productList as product>
|
|
|
|
- <input type="radio" id="radio-${product.productId!''}" name="productId" value="${product.productId!''}" <#if product_index == 0>checked</#if>/>${product.productName!''}
|
|
|
|
- <select name="colorId${product.productId!''}" id="colorId${product.productId!''}" style="width:60px" class="select">
|
|
|
|
- <#if (product.colorList?size > 0)>
|
|
|
|
- <#list product.colorList as colorList>
|
|
|
|
- <option value ="${colorList.colorId!''}">${colorList.colorName!''}</option>
|
|
|
|
- </#list>
|
|
|
|
- <#else>
|
|
|
|
- <option value ="">暂无颜色</option>
|
|
|
|
- </#if>
|
|
|
|
- </select>
|
|
|
|
- <input class="input-text" type="text" id="maintenanceEquipmentNumber${product.productId!''}" name="maintenanceEquipmentNumber${product.productId!''}" style="width: 20%;" placeholder="机器编号" /><br>
|
|
|
|
- </#list>
|
|
|
|
- </#if>-->
|
|
|
|
-
|
|
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
- <#--<div class="input-box">
|
|
|
|
- <span class="input-dic" style="margin-top: 0"> </span>
|
|
|
|
-
|
|
|
|
- <label for="radio-2" style="margin-left: 50px;">
|
|
|
|
- <input type="radio" id="radio-2" name="detectProductType" value="2"/>配件
|
|
|
|
- <select name="productId2" class="select" style="width:100px">
|
|
|
|
- <#if (listFittings ?size > 0)>
|
|
|
|
- <#list listFittings as list>
|
|
|
|
- <option value ="${list.fittingsId}">${list.fittingsName}</option>
|
|
|
|
- </#list>
|
|
|
|
- <#else >
|
|
|
|
- <option value ="">暂无配件,请先添加配件</option>
|
|
|
|
- </#if>
|
|
|
|
- </select>
|
|
|
|
- </label>
|
|
|
|
- </div>-->
|
|
|
|
-
|
|
|
|
- <div class="input-box"><span class="input-dic spanhidth">维修日期</span><input class="my-input-date" type="text" style="width: 76%;" name="maintenanceContent_Date" id="maintenanceContentDate" onClick="WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d'})" placeholder="请选择检测日期" readonly="readonly"/> </div>
|
|
|
|
-
|
|
|
|
<div class="input-box">
|
|
<div class="input-box">
|
|
- <span class="input-dic" style="margin-top: 0">维修结果</span>
|
|
|
|
- <label for="radio-3" style="margin-left: 2.3%;">
|
|
|
|
- <input type="radio" id="radio-3" name="maintenanceState" value="1" checked/>正在维修
|
|
|
|
- </label>
|
|
|
|
- <label for="radio-4" style="margin-left: 9%;">
|
|
|
|
- <input type="radio" id="radio-4" name="maintenanceState" value="2"/>已完成
|
|
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;">维修日期:</label>
|
|
|
|
+ <div class="formControls col-7 col-sm-7 text-c huanhang" style="margin-left: -4.5%;">
|
|
|
|
+ <input class="my-input-date" type="text" name="maintenanceContent_Date" id="maintenanceContentDate" onClick="WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d'})" placeholder="请选择维修日期" readonly="readonly"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
|
|
- </label>
|
|
|
|
|
|
+ <div class="input-box">
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;">维修结果:</label>
|
|
|
|
+ <div class="col-8 col-sm-8 text-c skin-minimal" >
|
|
|
|
+ <div class="radio-box">
|
|
|
|
+ <input type="radio" id="radio-3" name="maintenanceState" value="1" checked/>
|
|
|
|
+ <label for="radio-3">正在维修</label>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="radio-box">
|
|
|
|
+ <input type="radio" id="radio-4" name="maintenanceState" value="2"/>
|
|
|
|
+ <label for="radio-4">已完成</label>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="input-box">
|
|
<div class="input-box">
|
|
- <span class="input-dic" style="margin-top: 0">是否可返修</span>
|
|
|
|
- <label for="radio-5">
|
|
|
|
- <input type="radio" id="radio-5" name="maintenanceIsRepair" value="1" checked/>不可返修
|
|
|
|
- </label>
|
|
|
|
- <label for="radio-6" style="margin-left: 9.3%;">
|
|
|
|
- <input type="radio" id="radio-6" name="maintenanceIsRepair" value="2"/>可返修
|
|
|
|
- </label>
|
|
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;">是否可返修:</label>
|
|
|
|
+ <div class=" col-8 col-sm-8 text-c skin-minimal">
|
|
|
|
+ <div class="radio-box">
|
|
|
|
+ <input type="radio" id="radio-5" name="maintenanceIsRepair" value="1" checked/>
|
|
|
|
+ <label for="radio-5">不可返修</label>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="radio-box">
|
|
|
|
+ <input type="radio" id="radio-6" name="maintenanceIsRepair" value="2"/>
|
|
|
|
+ <label for="radio-6">可返修</label>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="input-box">
|
|
<div class="input-box">
|
|
- <span class="input-dic" style="margin-top: 0">是否可入库</span>
|
|
|
|
- <label for="radio-7">
|
|
|
|
- <input type="radio" id="radio-7" name="maintenanceIsWarehousing" value="2" checked/>已入库
|
|
|
|
- </label>
|
|
|
|
- <label for="radio-8" style="margin-left: 11.6%;">
|
|
|
|
- <input type="radio" id="radio-8" name="maintenanceIsWarehousing" value="1"/>未入库
|
|
|
|
- </label>
|
|
|
|
- <label for="radio-9" style="margin-left: 50px;">
|
|
|
|
- <input type="radio" id="radio-9" name="maintenanceIsWarehousing" value="3"/>无法入库
|
|
|
|
- </label>
|
|
|
|
|
|
+ <label class="col-3 col-sm-3 huanhang" style="text-align: right;">是否可入库:</label>
|
|
|
|
+ <div class="formControls col-10 col-sm-10 text-c skin-minimal">
|
|
|
|
+ <div class="radio-box">
|
|
|
|
+ <input type="radio" id="radio-7" name="maintenanceIsWarehousing" value="2" checked/>
|
|
|
|
+ <label for="radio-7">已入库</label>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="radio-box">
|
|
|
|
+ <input type="radio" id="radio-8" name="maintenanceIsWarehousing" value="1"/>
|
|
|
|
+ <label for="radio-8">未入库</label>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="radio-box">
|
|
|
|
+ <input type="radio" id="radio-9" name="maintenanceIsWarehousing" value="3"/>
|
|
|
|
+ <label for="radio-9">无法入库</label>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="input-box">
|
|
<div class="input-box">
|
|
- <span class="input-dic spanhidth">备注</span>
|
|
|
|
- <textarea rows="3" cols="20" name="maintenanceDesc" id="maintenanceDesc" class="my-textarea" placeholder="请详细备注签收的内容,便于以后复查。如果转入生产,则生产部门同事可查看!"></textarea>
|
|
|
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;">备注:</label>
|
|
|
|
+ <div class="formControls col-xs-9 col-sm-9">
|
|
|
|
+ <div class="radio-box">
|
|
|
|
+ <textarea rows="3" style="width: 200%;margin-left: -15%;margin-top: 5%;" cols="20" name="maintenanceDesc" id="maintenanceDesc" class="my-textarea" placeholder="请详细备注签收的内容,便于以后复查。如果转入生产,则生产部门同事可查看!"></textarea>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <div>
|
|
|
|
|
|
+ <div style="margin-left: 35%;">
|
|
<button type="button" class="my-btn-submit" onclick="add();">确认提交</button>
|
|
<button type="button" class="my-btn-submit" onclick="add();">确认提交</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
</article>
|
|
</article>
|
|
<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
- function emptyingNumber() {
|
|
|
|
- $("input[name='productId']").each(function () {
|
|
|
|
- $("#maintenanceEquipmentNumber"+$(this).val()).val("");
|
|
|
|
|
|
+
|
|
|
|
+ /*初始化单选框样式*/
|
|
|
|
+ $(function(){
|
|
|
|
+ $('input[name="productId"]').on('ifChecked', function(event){
|
|
|
|
+ $("input[name='productId']").each(function () {
|
|
|
|
+ $("#maintenanceEquipmentNumber"+$(this).val()).val("");
|
|
|
|
+ });
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ $('.skin-minimal input').iCheck({
|
|
|
|
+ checkboxClass: 'icheckbox-blue',
|
|
|
|
+ radioClass: 'iradio-blue',
|
|
|
|
+ increaseArea: '20%'
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
|
|
function add() {
|
|
function add() {
|
|
var maintenanceContentDate = $("#maintenanceContentDate").val();
|
|
var maintenanceContentDate = $("#maintenanceContentDate").val();
|
|
if( maintenanceContentDate == null || maintenanceContentDate == "" ){
|
|
if( maintenanceContentDate == null || maintenanceContentDate == "" ){
|
|
- layer.msg('请选择检测日期',{icon: 5,time:1000});
|
|
|
|
|
|
+ layer.msg('请选择维修日期',{icon: 5,time:1000});
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|