Edit.html
9.05 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
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>
<style type="text/css" media="all">
.fileinput-button {
width: 284px;
height: 200px;
}
.fileinput-button .fileinput-button-icon {
height: auto;
line-height: auto;
}
input[type=file] {
height: 200px;
width: 284px;
}
</style>
<div class="data.contentDatapanel">
<form id="add-form" class="form-horizontal form-bordered" type="<%type%>" action="<%action%>">
<div class="panel-group">
<div class="panel-group" id="editor-group">
<% if data %>
<input type="hidden" id="id" value="<%data.id%>">
<%/if%>
<div class="pannel">
<div class="panel-heading">
<div style="color: red;padding-left: 5px;">套餐商品不可参加分期、秒杀、限定、预售、定金预售,设定后无法生效</div>
</div>
<div class="panel-body">
<div class="row">
<% if data %>
<div class="form-group">
<label class="col-sm-2 control-label">组合套餐号:</label>
<div class="col-sm-3"> <p class="form-control-static"><% data.id %></p> </div>
</div>
<%/if%>
<div class="form-group">
<label class="col-sm-2 control-label">套餐名称:</label>
<div class="col-sm-3">
<input type="text" id="bundleName" class="form-control" required maxlength="32" value="<% if data%><% data.bundleName %><%/if%>">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">有效时间:</label>
<div class="col-sm-2">
<input id="beginTimeStr" data-time="" value="<%if data%><% data.beginTimeStr %><%/if%>" type="text" class="form-control" jsaction="date:end:endTimeStr" placeholder="开始时间" readonly required>
</div>
<div class="col-sm-1" style="width: 28px;">~</div>
<div class="col-sm-2">
<input id="endTimeStr" data-time="" value="<%if data%><% data.endTimeStr %><%/if%>" type="text" class="form-control" jsaction="date:start:beginTimeStr" placeholder="结束时间" readonly required>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" style="margin-right: 10px;">选择店铺:</label>
<select id="shop" name="shopId" style="width:15%;" tabindex="-1" title="" value="<%if data%><% data.shopId %><%/if%>" class="form-control">
<option value="-1">请选择店铺</option>
</select>
<input type="hidden" id="productSkn" value="<%if data%><%data.productSkn%><%/if%>">
<input type="hidden" id="edit-discount" value="<%if data%><%data.discount%><%/if%>">
</div>
<div class="form-group">
<div class="col-sm-2">
</div>
<div class="col-sm-8">
<table style="width:100%;border-collapse:separate; border-spacing:10px;" id="bundleItem">
<tr>
<td style="width:10%">店铺:</td>
<td>
<span class="help-inline red" id="shopLable"><%if data%><%data.shopName%><%/if%></span>
<input type="hidden" id="shopId" value="<%if data%><%data.shopId%><%/if%>">
</td>
</tr>
<tr>
<td style="width:10%">折扣配置:</td>
<td><input type="text" id="discount" placeholder="折扣" class="form-control" required maxlength="10" value="" style="width:40%" />
<span class="help-inline red">支持0.01-0.99之间的数字</span>
</td>
</tr>
<tr>
<td>套餐商品配置:</td>
<td>
<%if data%> <%else%><input class="btn btn-success add-bundle-btn" type="button" value="添加一组"></input> <%/if%>
</td>
</tr>
<tr>
<td colSpan="2">
<table style="width:100%;padding:10px" border="1">
<thead>
<tr >
<td align="center" style="width:60%">SKN </td>
<td align="center" style="width:20%">折扣</td>
<td align="center" style="width:20%">操作</td>
</tr>
</thead>
<tbody id="budle-table">
<tr>
<td>
<input type="text" name="productSkn" value="" style="margin-left:5px;width:23%">
<input type="text" name="productSkn" value="" style="margin-left:5px;width:23%">
<input type="text" name="productSkn" value="" style="margin-left:5px;width:23%">
<input type="text" name="productSkn" value="" style="margin-left:5px;width:23%">
</td>
<td align="center">
<input type="text" name="bundleDiscount" placeholder="折扣" class="form-control" required maxlength="10" value="0.95" style="width:40%;padding: 4px;margin: 7px;">
</td>
<td align="center">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="pannel">
<div class="col-md-10"></div>
<div class="col-md-2">
<input id="add-btn" class="btn btn-success add-btn" type="button" value="保存"></input>
<a class="btn btn-default btn-sm" href="/product/bundle/index">取消</a>
</div>
</div>
</div>
</form>
</div>