Authored by kuangjiahua

返佣品牌页面修改

... ... @@ -4,8 +4,11 @@
<table cellspacing="0" border="0" align="center" style="width:90%;margin-top:0px;line-height:10px;height:200px;" id="sknRebateEditTable">
<tr>
<td width="30%" align="left">品牌:</span></td>
<td width="70%" align="left" colspan="3">
<input class="easyui-combobox" id="brand" style="width: 200px;" >
<td width="70%" align="left" colspan="3" id="brandIdTR">
<input class="easyui-combobox" id="brand" style="width: 200px;">
</td>
<td width="70%" align="left" colspan="3" id="brandNameTR" hidden>
<span id="brandName" hidden></span>
</td>
</tr>
<tr>
... ... @@ -67,8 +70,11 @@
var data = window.self.paramObject.brandRebateData;
if (data){
brandCombobox.combobox("editable", true);
brandCombobox.combobox("setValue", data.brand);
brandCombobox.myCombobox("setValue", data.brand);
$("#brandIdTR").hide();
var brandNameSpan = $("#brandNameTR");
brandNameSpan.show();
brandNameSpan.html(data.name);
if(data.type == 1){
$(":radio[name='type'][value='1']").prop("checked",true);
}else if(data.type == 2){
... ...
... ... @@ -61,7 +61,6 @@
});
$("#brand").myCombobox({
editable: false,
valueField : "value",
textField : "text",
required:false,
... ... @@ -191,10 +190,13 @@
}
if(id != 0){
param.id = id;
param.name = window.self.paramObject.brandRebateData.name;
}else{
param.name = $("#brandRebateEditForm #brand").combobox("getText");
}
param.rebatePercentStr = rebate == "" ? 0 : rebate;
param.brand = brand;
param.name = $("#brandRebateEditForm #brand").combobox("getText");
return true;
},
success: function (data) {
... ...