view.vm
5.61 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
<link href="/css/style.css" rel="stylesheet" type="text/css" />
<div class="main">
<div class="g-datum">
<ul>
<li><span class="spw">供应商品</span>
<span>$!{presale.title}</span>
</li>
<li><span class="spw">供应价格</span>
<span>
#set($minPrice = ${presale.price} / 100.00)
$!numberTool.format("0.00", $!{minPrice})元/$!{presale.unitName}
</span>
</li>
<li><span class="spw">供应量</span>
<span>$!{presale.count}$!{presale.unitName}</span>
</li>
<li><span class="spw">商品产地</span>
<span>$!{presale.producingArea}</span>
</li>
<li><span class="spw">发布时间</span>
<span>$!dateTool.format('yyyy-MM-dd HH:mm:ss',${presale.ctime})</span>
</li>
<li><span class="spw">审核状态</span>
<span>
#if($!{presale.status}==1) 待审核
#elseif($!{presale.status}==2)审核通过
#elseif($!{presale.status}==3)审核失败
#elseif($!{presale.status}==4)过期
#end
</span>
</li>
#if($presale.imgs && $presale.imgs.size()>0)
<li><span class="spw">图片:</span>
#foreach(${item} in ${presale.imgs})
<span><img src="$!{item}" /></span>
#end
</li>
#end
<li><span class="spw">详细描述</span>
<span>$!{presale.desc}</span>
</li>
#if($!{presale.status} && $!{presale.status}==3)
<li><span class="spw">审核失败原因:</span>
<span>$!{presale.reason}</span>
</li>
#end
## <li class="clear u-heightauto" style="text-align: center;">
## #if($!{presale.status}==1)
## <input type="button" class="btn btn-sm btn-primary btn-clear" value="审批" tabindex="0" style="margin-top: 20px;display: inline;" onclick="XUI.PPS.showAuditDlg($!{presale.id},'/titan/supply/audit',1)"/>
## #end
##
## </li>
</ul>
</div>
</div>
<!-- modal -->
<div class="modal fade" id="auditModal" tabindex="-1" role="dialog" aria-labelledby="auditModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header" id="modaltitle">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">商品审核</h4>
</div>
<div class="modal-body">
<form class="form-horizontal">
<div class="alert alert-danger" id="auditAlert" style="width:521px;display: none;">
<strong>注意!</strong>强制下架后商品状态将变更为审核不通过!<br>
</div>
<filedset>
<div class="form-group" id="auditResult">
<label class="col-sm-3 control-label" for="radioDiv">审核结果 :</label>
<label class="col-sm-2 radio inline"><input type="radio" name="audit" id="audit_ok" value="2" checked>通过</input></label>
<label class="col-sm-2 radio inline"><input type="radio" name="audit" id="audit_no" value="3">不通过</input></label>
</div>
<div class="form-group" id="feedback" style="display:none">
<label class="col-sm-3 control-label" id="feedbackLabel"for="selectFeedback"></label>
<select id="selectFeedback" class="span2 align-middle" style="height:28px">
#foreach(${msg} in ${auditMsg})
<option value="$!{velocityCount}">$!{msg.name}</option>
#end
<option value="-1">手动输入</option>
</select>
</div>
<div class="form-group " id="feedbackArea" class="col-sm-3 no-padding-right" style="display:none">
<label class="col-sm-3 control-label" for="selectDiv"></label>
<textarea name="feedback" id="feedback" style="width:350px;height:110px;"></textarea>
</div>
</filedset>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary" name="confirmAudit">确认</button>
</div>
</div>
</div>
</div>
<script src="/assets/js/jquery.js"></script>
<script src="/assets/js/riotjs/riotjs.js"></script>
<script type="text/javascript"
src="http://static.1n4j.com/static/newStatic/common/js/base/sea.js"></script>
<script src="/assets/products/list.js"></script>
<script src="http://static.1n4j.com/static/newStatic/pnr/dist/js/javascript/sell/manageProduct.js"></script>
<script src="/assets/products/product.search.categroy.js"></script>
<link href="/css/user_common.css?v=0.0002" rel="stylesheet" type="text/css">
<link href="/css/manageProduct.css?v=0.0002" rel="stylesheet" type="text/css">
<script>
$(document).ready(function(){
XUI.PPS.init();
});
</script>