|
@@ -30,21 +30,23 @@
|
|
|
<body>
|
|
|
<div class="pd-20">
|
|
|
<form class="form form-horizontal" id="form-admin-add">
|
|
|
- <div class="input-box">
|
|
|
- <span class="input-dic spanhidth">批次:</span>
|
|
|
- <select class="my-select" name="batchId" id="batchId">
|
|
|
- <#if (listptsBatch ?size > 0)>
|
|
|
- <#list listptsBatch as list>
|
|
|
- <option value ="${list.batchId}">${list.batchNo}</option>
|
|
|
- </#list>
|
|
|
- <#else >
|
|
|
- <option value ="">暂无批次,请先添加批次</option>
|
|
|
- </#if>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
+ <div class="input-box">
|
|
|
+ <span class="input-dic spanhidth">批次:</span>
|
|
|
+ <select class="my-select" name="batchId" id="batchId">
|
|
|
+ <#if (listptsBatch ?size > 0)>
|
|
|
+ <#list listptsBatch as list>
|
|
|
+ <option value ="${list.batchId}" softwareVersionNo="${list.softwareVersionNo!''}" bomName="${list.bomName!''}(${list.bomVersion!''})">${list.batchNo}</option>
|
|
|
+ </#list>
|
|
|
+ <#else >
|
|
|
+ <option value ="">暂无批次,请先添加批次</option>
|
|
|
+ </#if>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
<div class="input-box">
|
|
|
<span class="input-dic spanhidth">软件版本:</span>
|
|
|
- <select class="my-select" name="versionId" id="versionId">
|
|
|
+ <span class="input-dic spanhidth" id="softwareVersionNo" style="width: 76%;text-align: left;padding-left: 10px; margin-bottom: 10px;height: 30px;"></span>
|
|
|
+ <#-- <input class="my-input" type="text" style="width: 76%;" name="machineLine" id="machineLine" value="A1"/>-->
|
|
|
+ <#--<select class="my-select" name="versionId" id="versionId">
|
|
|
<#if (listVersion ?size > 0)>
|
|
|
<#list listVersion as list>
|
|
|
<option value ="${list.machineVersionId}">${list.machineVersionName}</option>
|
|
@@ -52,23 +54,24 @@
|
|
|
<#else >
|
|
|
<option value ="">暂无软件版本,请先添加软件版本</option>
|
|
|
</#if>
|
|
|
- </select>
|
|
|
+ </select>-->
|
|
|
</div>
|
|
|
<div class="input-box">
|
|
|
<span class="input-dic spanhidth">Bom单:</span>
|
|
|
- <select class="my-select" name="bomId" id="bomId">
|
|
|
- <#if listBom??>
|
|
|
- <#if (listBom ?size > 0)>
|
|
|
- <#list listBom as list>
|
|
|
- <option value ="${list.bomId}">${list.bomName}</option>
|
|
|
- </#list>
|
|
|
- <#else >
|
|
|
- <option value ="">暂无Bom,请先添加Bom单</option>
|
|
|
- </#if>
|
|
|
- <#else >
|
|
|
- <option value ="">暂无Bom,请先添加Bom单</option>
|
|
|
- </#if>
|
|
|
- </select>
|
|
|
+ <span class="input-dic spanhidth" id="bomName" style="width: 76%;text-align: left;padding-left: 10px; margin-bottom: 15px;height: 30px;"></span>
|
|
|
+ <#--<select class="my-select" name="bomId" id="bomId">
|
|
|
+ <#if listBom??>
|
|
|
+ <#if (listBom ?size > 0)>
|
|
|
+ <#list listBom as list>
|
|
|
+ <option value ="${list.bomId}">${list.bomName}</option>
|
|
|
+ </#list>
|
|
|
+ <#else >
|
|
|
+ <option value ="">暂无Bom,请先添加Bom单</option>
|
|
|
+ </#if>
|
|
|
+ <#else >
|
|
|
+ <option value ="">暂无Bom,请先添加Bom单</option>
|
|
|
+ </#if>
|
|
|
+ </select>-->
|
|
|
</div>
|
|
|
<div class="input-box">
|
|
|
<span class="input-dic" style="margin-top: 0">是否翻新机:</span>
|
|
@@ -80,7 +83,9 @@
|
|
|
</label>
|
|
|
</div>
|
|
|
|
|
|
- <div class="input-box"><span class="input-dic spanhidth">拉线:</span><input class="my-input" type="text" style="width: 76%;" name="machineLine" id="machineLine" value="A1"/> </div>
|
|
|
+ <div class="input-box"><span class="input-dic spanhidth">拉线:</span>
|
|
|
+ <input class="my-input" type="text" style="width: 76%;" name="machineLine" id="machineLine" value="A1"/>
|
|
|
+ </div>
|
|
|
<div class="input-box"><span class="input-dic spanhidth">机器数量:</span><input class="my-input" type="text" style="width: 76%;" name="number" id="number" value="4" placeholder="每次最少生成一个机器"/> </div>
|
|
|
<div class="input-box">如果遇到批次,软件版本,BOM不清晰时,请联系POA(刘经理)</div>
|
|
|
|
|
@@ -94,15 +99,26 @@
|
|
|
<#--<script type="text/javascript" src="${path}/common/admin/js/tips.js"></script>-->
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
+ $(function(){
|
|
|
+ var version = $("#batchId").find("option:selected").attr("softwareVersionNo");
|
|
|
+ var bomName = $("#batchId").find("option:selected").attr("bomName");
|
|
|
+ $("#softwareVersionNo").html(version);
|
|
|
+ $("#bomName").html(bomName);
|
|
|
+ })
|
|
|
+
|
|
|
/*监听批次修改Bom bom单*/
|
|
|
$("#batchId").change(function(){
|
|
|
var batchId = $(this).val();
|
|
|
- getBom(batchId);
|
|
|
+ var version = $("#batchId").find("option:selected").attr("softwareVersionNo");
|
|
|
+ var bomName = $("#batchId").find("option:selected").attr("bomName");
|
|
|
+ $("#softwareVersionNo").html(version);
|
|
|
+ $("#bomName").html(bomName);
|
|
|
+ //getBom(batchId);
|
|
|
});
|
|
|
|
|
|
|
|
|
/*获取bom信息,赋值在页面上*/
|
|
|
- function getBom(batchId){
|
|
|
+ /* function getBom(batchId){
|
|
|
var bom = new Object();
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
@@ -128,7 +144,7 @@
|
|
|
});
|
|
|
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
function dataCharm() {
|
|
|
|
|
@@ -138,17 +154,17 @@
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- var versionId = $("#versionId").val();
|
|
|
- if(versionId == null || versionId == "" || typeof(versionId)=="undefined"){
|
|
|
- layer.msg("必须选择一个软件版本,没有软件版本请到产品列表中添加软件版本",{icon: 5,time:3000});
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- var bomId = $("#bomId").val();
|
|
|
- if(bomId == null || bomId == "" || typeof(bomId)=="undefined"){
|
|
|
- layer.msg("必须选择一个Bom单,没有Bom单请到Bom单列表添加Bom单",{icon: 5,time:3000});
|
|
|
- return false;
|
|
|
- }
|
|
|
+// var versionId = $("#versionId").val();
|
|
|
+// if(versionId == null || versionId == "" || typeof(versionId)=="undefined"){
|
|
|
+// layer.msg("必须选择一个软件版本,没有软件版本请到产品列表中添加软件版本",{icon: 5,time:3000});
|
|
|
+// return false;
|
|
|
+// }
|
|
|
+
|
|
|
+// var bomId = $("#bomId").val();
|
|
|
+// if(bomId == null || bomId == "" || typeof(bomId)=="undefined"){
|
|
|
+// layer.msg("必须选择一个Bom单,没有Bom单请到Bom单列表添加Bom单",{icon: 5,time:3000});
|
|
|
+// return false;
|
|
|
+// }
|
|
|
|
|
|
var machineLine = $("#machineLine").val();
|
|
|
if(machineLine == null || machineLine == "" || typeof(machineLine)=="undefined"){
|