Commit e6c7fcbf authored by 鲁鑫's avatar 鲁鑫

ECN变更选择原材料接口

parent 45f1a04b
...@@ -16,21 +16,36 @@ function initialize(){ ...@@ -16,21 +16,36 @@ function initialize(){
function bindEvent(){ function bindEvent(){
$('#pd').searchbox({ $('#pd').searchbox({
type: "system", name: "queryPd", type: "system", name: "sapMaterialSelect",
checkbox:true, checkbox:true,
checkboxIndex:"productCode", checkboxIndex:"MATNR",
textIndex:"productName", textIndex:"MAKTX",
valueIndex:"productCode", valueIndex:"MATNR",
getParam: function (item) { getParam: function (item) {
return { return {
filterValue:$("#brandCode").val() //filterValue:$("#brandCode").val()
} }
}, },
onChange: function (value, data) { onChange: function (value, data) {
$('#pd').val(value.value); $('#pd').val(value.value);
$('#productName').val(value.text);
}
});
$('#changedPd').searchbox({
type: "system", name: "sapMaterialSelect",
checkbox:true,
checkboxIndex:"MATNR",
textIndex:"MAKTX",
valueIndex:"MATNR",
getParam: function (item) {
return {
//filterValue:$("#brandCode").val()
}
},
onChange: function (value, data) {
$('#changedPd').val(value.value); $('#changedPd').val(value.value);
//$('#productName').val(value.text); $('#changedProductName').val(value.text);
//$('#changedProductName').val(value.text);
} }
}); });
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</div> </div>
<x:title title="REVISED SPEC 变更后产品信息" name="group"/> <x:title title="REVISED SPEC 变更后产品信息" name="group"/>
<div class="hg-form-row"> <div class="hg-form-row">
<x:inputC name="changedPd" required="true" label="产品代号" labelCol="2" maxLength="64" fieldCol="10"/> <x:inputC name="changedPd" required="true" label="产品代号" labelCol="2" maxLength="64" fieldCol="10" wrapper="select"/>
</div> </div>
<div class="hg-form-row"> <div class="hg-form-row">
<x:inputC name="changedProductName" required="true" label="产品名称" labelCol="2" fieldCol="10"/> <x:inputC name="changedProductName" required="true" label="产品名称" labelCol="2" fieldCol="10"/>
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<tr> <tr>
<td class="left">DATE日期:<br/><@formatDate date=fillinDate/></td> <td class="left">DATE日期:<br/><@formatDate date=fillinDate/></td>
<td class="left">BRAND品牌名称:<br/>${brandName?default("")?html}</td> <td class="left">BRAND品牌名称:<br/>${brandName?default("")?html}</td>
<td class="left">CHANGE REQUESTED BY (DEPT/NAME)变更申请部门/姓名:<br/>${deptName?default("")?html}</td> <td class="left">CHANGE REQUESTED BY (DEPT/NAME)变更申请部门/姓名:<br/>${changePerson?default("")?html}</td>
</tr> </tr>
</table> </table>
<table class="tableBorder"> <table class="tableBorder">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment