Commit e6c7fcbf authored by 鲁鑫's avatar 鲁鑫

ECN变更选择原材料接口

parent 45f1a04b
......@@ -16,21 +16,36 @@ function initialize(){
function bindEvent(){
$('#pd').searchbox({
type: "system", name: "queryPd",
type: "system", name: "sapMaterialSelect",
checkbox:true,
checkboxIndex:"productCode",
textIndex:"productName",
valueIndex:"productCode",
checkboxIndex:"MATNR",
textIndex:"MAKTX",
valueIndex:"MATNR",
getParam: function (item) {
return {
filterValue:$("#brandCode").val()
//filterValue:$("#brandCode").val()
}
},
onChange: function (value, data) {
$('#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);
//$('#productName').val(value.text);
//$('#changedProductName').val(value.text);
$('#changedProductName').val(value.text);
}
});
......
......@@ -64,7 +64,7 @@
</div>
<x:title title="REVISED SPEC 变更后产品信息" name="group"/>
<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 class="hg-form-row">
<x:inputC name="changedProductName" required="true" label="产品名称" labelCol="2" fieldCol="10"/>
......
......@@ -54,7 +54,7 @@
<tr>
<td class="left">DATE日期:<br/><@formatDate date=fillinDate/></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>
</table>
<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