Edit.html
5.74 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<%include '../common/__ui/header'%>
<%include '../common/__partail/ListHeader'%>
<div class="contentpanel">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-body nopadding">
<form id="new-class-form" class="form-horizontal form-bordered" method="post" action="<%action%>">
</form>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-success">保存</button>
<a href="/erpproduct/sort/index" class="btn btn-danger">取消</a>
</div>
</div>
</div>
</div>
</div>
<script type="text/template" id="template">
<div class="form-group">
<label class="col-md-2 control-label">
物理类目<span class="red">*</span>
</label>
<div class="col-md-5">
<input id="sortName" class="form-control" required type="text" value="[[sortName]]" placeholder="品类名称">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">
品类缩写<span class="red">*</span>
</label>
<div class="col-md-5">
<input id="sortInitials" class="form-control" required type="text" value="[[sortInitials]]" placeholder="品类缩写">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">
分类
</label>
<div class="col-md-5">
<div id="sortTree"></div>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">性别
<span class="red">*</span>
</label>
<div class="col-md-5">
<select id="gender" value="[[gender]]" tabindex="3" class="form-control height40" name="gender">
<option value="3">通用</option>
<option value="1">男</option>
<option value="2">女</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">图标
<span class="red"></span>
</label>
<div class="col-md-5">
<input type="file" id="sortIco" name="sortIco" value="[[sortIco]]">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">排序
<span class="red">*</span>
</label>
<div class="col-md-5">
<input id="orderBy" class="form-control" required value="[[orderBy]]" type="number" placeholder="">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">状态</label>
<div class="col-md-5 form-inline">
<div class="radio">
<label><input type="radio" value="1" name="status">开启</label>
</div>
<div class="radio" style="margin-left: 10px">
<label><input type="radio" value="0" name="status">关闭</label>
</div>
<input id="status" type="hidden" value="[[status||'0']]" for="radio">
</div>
</div>
<div class="form-group category-min-level-3" display="sortLevel && sortLevel != 1 && sortLevel != 2" id="taxRate_div">
<label class="col-md-2 control-label">发票税率 <span class="red">*</span></label>
<div class="col-sm-8">
<label class="radio-inline">
<input type="radio" name="taxRate" value="0"/>0</label>
<label class="radio-inline">
<input type="radio" name="taxRate" value="0.06"/>0.06</label>
<label class="radio-inline">
<input type="radio" name="taxRate" value="0.1"/>0.10</label>
<label class="radio-inline">
<input type="radio" name="taxRate" value="0.11"/>0.11</label>
<label class="radio-inline">
<input type="radio" name="taxRate" value="0.13"/>0.13</label>
<label class="radio-inline">
<input type="radio" name="taxRate" value="0.16"/>0.16</label>
<label class="radio-inline">
<input type="radio" name="taxRate" value="0.17"/>0.17</label>
</div>
<input type="hidden" id="taxRate" value="[[taxRate]]" for="radio">
</div>
<div class="form-group category-min-level-3" display="sortLevel && sortLevel != 1 && sortLevel != 2" id="composite-rate-div">
<label class="col-md-2 control-label">综合税率 <span class="red">*</span></label>
<div class="col-sm-5">
<input type="text" id="compositeRate" class="form-control" value="[[compositeRate]]">
</div>
</div>
<div class="form-group category-min-level-3" display="sortLevel && sortLevel != 1 && sortLevel != 2" id="net-weight-div">
<label class="col-md-2 control-label">净重 <span class="red"></span></label>
<div class="col-sm-5">
<div class="input-group">
<input type="text" id="netWeight" class="form-control" type="number" value="[[netWeight]]">
<div class="input-group-addon"> kg</div>
</div>
</div>
</div>
<div class="form-group category-min-level-3" display="sortLevel && sortLevel != 1 && sortLevel != 2" id="gross-weight-div">
<label class="col-md-2 control-label">毛重</label>
<div class="col-sm-5">
<div class="input-group">
<input type="text" id="grossWeight" class="form-control" type="number" value="[[grossWeight]]">
<div class="input-group-addon"> kg</div>
</div>
</div>
</div>
<input id="id" class="form-control" type="hidden" value="[[id]]">
</script>
<%include '../common/__ui/footer'%>