|
@@ -27,21 +27,7 @@
|
|
|
<article class="page-container" style="padding: 10px;width: 600px;margin: 0 auto;">
|
|
|
<form action="${path}/admin/bom/save_bom" method="post" class="form form-horizontal" id="form-bom-add">
|
|
|
|
|
|
- <div class="row cl">
|
|
|
- <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>所属产品:</label>
|
|
|
- <div class="formControls col-xs-8 col-sm-9"> <span class="select-box">
|
|
|
- <select class="select" size="1" name="produceId" datatype="*" errormsg="请选择产品">
|
|
|
- <#if produceList?? && (produceList?size > 0) >
|
|
|
- <#list produceList as produce>
|
|
|
- <option value="${produce.produceId}" <#if produceId??><#if produceId ==produce.produceId >selected="selected"</#if></#if>>${produce.produceName}</option>
|
|
|
- </#list>
|
|
|
- <#else>
|
|
|
- <option value="">暂时没有产品,需要到生产产品页面添加产品</option>
|
|
|
- </#if>
|
|
|
- </select>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+
|
|
|
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-xs-4 col-sm-3">修改基础:</label>
|
|
@@ -164,29 +150,29 @@
|
|
|
var allComponents; //所有零件的集合
|
|
|
var staticProduceId; //产品id,用于判断产品更改
|
|
|
|
|
|
- $(function () {
|
|
|
- /*添加页面初始化,添加一个零件选择框*/
|
|
|
- addComponents("#","");
|
|
|
-
|
|
|
- var produceId = $("[name='produceId']").val();
|
|
|
- staticProduceId = produceId;
|
|
|
- getBomByProduce(produceId);
|
|
|
-
|
|
|
- /*监听产品选择*/
|
|
|
- $("[name='produceId']").change(function(){
|
|
|
- var produceId = $(this).val();
|
|
|
- getBomByProduce(produceId);
|
|
|
-
|
|
|
- delComponent(0,"all");
|
|
|
- addComponents("#","");
|
|
|
- })
|
|
|
-
|
|
|
- /*监听修改基础 bom单*/
|
|
|
- $("[name='bomId']").change(function(){
|
|
|
- var bomId = $(this).val();
|
|
|
- getBom(bomId);
|
|
|
- })
|
|
|
- })
|
|
|
+// $(function () {
|
|
|
+// /*添加页面初始化,添加一个零件选择框*/
|
|
|
+// addComponents("#","");
|
|
|
+//
|
|
|
+// var produceId = $("[name='produceId']").val();
|
|
|
+// staticProduceId = produceId;
|
|
|
+// getBomByProduce(produceId);
|
|
|
+//
|
|
|
+// /*监听产品选择*/
|
|
|
+// $("[name='produceId']").change(function(){
|
|
|
+// var produceId = $(this).val();
|
|
|
+// getBomByProduce(produceId);
|
|
|
+//
|
|
|
+// delComponent(0,"all");
|
|
|
+// addComponents("#","");
|
|
|
+// })
|
|
|
+//
|
|
|
+// /*监听修改基础 bom单*/
|
|
|
+// $("[name='bomId']").change(function(){
|
|
|
+// var bomId = $(this).val();
|
|
|
+// getBom(bomId);
|
|
|
+// })
|
|
|
+// })
|
|
|
|
|
|
/* 添加零件 */
|
|
|
function addComponents(componentsId,number) {
|