ProductProfitEdit.html
2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<div id="tt" class="easyui-layout" fit="true" style="overflow-y: scroll">
<form name="productProfitEditForm" id="productProfitEditForm" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" id="id"/>
<div style="margin-top: 20px;margin-left: 30px">
<table border="0" style="width:95%;margin-top:5px;line-height:30px;" id="tab">
<tr style="height: 60px">
<td width="12%">商品编码<span class="requriedInput">*</span></td>
<td width="50%">
<input id="productId" name="productId" class="easyui-numberbox" style="width: 200px"/>
</td>
</tr>
<tr style="height: 60px" >
<td width="12%">平台服务费<span class="requriedInput">*</span></td>
<td width="20%">
<input id="profitRate" name="profitRate" class="easyui-numberbox" precision="2" max="100" style="width: 200px;" required="required"/>%
</td>
</tr>
<tr style="height: 60px" >
<td width="12%">平台服务费下限<span class="requriedInput">*</span></td>
<td width="20%">
<input id="profitMinPrice" name="profitMinPrice" class="easyui-numberbox" precision="2" min="0" style="width: 200px;" required="required"/>
</td>
</tr>
<tr style="height: 60px" >
<td width="12%">平台服务费上限<span class="requriedInput">*</span></td>
<td width="20%">
<input id="profitMaxPrice" name="profitMaxPrice" class="easyui-numberbox" precision="2" min="0" style="width: 200px;" required="required"/>
</td>
</tr>
</table>
</div>
</form>
</div>
<script>
$(function () {
$('#productProfitEditForm #id').val(editId);
if (editId > 0) {
$.post(contextPath + "/productProfit/detail", {
id: editId
}, function (data) {
$("#productProfitEditForm #productId").numberbox('readonly', true);
$("#productProfitEditForm").form("load", data.data);
});
}
});
</script>