|
@@ -124,6 +124,23 @@
|
|
|
<form:options items="${brandList}" itemLabel="name" itemValue="id" htmlEscape="false"/>
|
|
|
</form:select>
|
|
|
</div>
|
|
|
+ <div class="item">
|
|
|
+ <label>新品参与状态:</label>
|
|
|
+ <form:select path="newProductType" class="input-medium">
|
|
|
+ <form:option value="" label="请选择"/>
|
|
|
+ <form:option value="1" label="参与"/>
|
|
|
+ <form:option value="2" label="未参与"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>新品审核状态:</label>
|
|
|
+ <form:select path="newvalidFlag" class="input-medium">
|
|
|
+ <form:option value="" label="请选择"/>
|
|
|
+ <form:option value="1" label="审核通过"/>
|
|
|
+ <form:option value="2" label="审核未通过"/>
|
|
|
+ <form:option value="3" label="待审核"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
<div class="item">
|
|
|
<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" style="margin-left:20px;"/>
|
|
|
<input class="btn btn-primary" onclick="window.location='${ctx}/product/new/productEdit?shopType=2'" value="发布特殊供应商商品"/>
|
|
@@ -149,7 +166,8 @@
|
|
|
<th>价格可见度</th>
|
|
|
<th>线上分帐号</th>
|
|
|
<th>状态</th>
|
|
|
- <th>新品展示审核状态</th>
|
|
|
+ <th>新品参与状态</th>
|
|
|
+ <th>新品审核状态</th>
|
|
|
<th>提交时间</th>
|
|
|
<shiro:hasPermission name="product:product:edit"><th>操作</th></shiro:hasPermission>
|
|
|
</tr>
|
|
@@ -255,20 +273,29 @@
|
|
|
</c:if>
|
|
|
</td>
|
|
|
<td>
|
|
|
+
|
|
|
+ <c:if test="${product.newProductType eq 2}">
|
|
|
+ <font color="darkorange">未参与</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${product.newProductType eq null}">
|
|
|
+ <font color="red">___</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${product.newProductType eq 1}">
|
|
|
+ <font color="darkorange">参与</font>
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
<c:if test="${product.newvalidFlag eq 1}">
|
|
|
<font color="green">审核通过</font>
|
|
|
</c:if>
|
|
|
- <c:if test="${product.newvalidFlag eq 2}">
|
|
|
- <font color="darkorange">未参与</font>
|
|
|
- </c:if>
|
|
|
<c:if test="${product.newvalidFlag eq 3}">
|
|
|
+ <font color="green">待审核</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${product.newvalidFlag eq 2}">
|
|
|
<font color="red">审核未通过</font>
|
|
|
</c:if>
|
|
|
<c:if test="${product.newvalidFlag eq null}">
|
|
|
- <font color="red">未进行过此操作</font>
|
|
|
- </c:if>
|
|
|
- <c:if test="${product.newvalidFlag eq 0}">
|
|
|
- <font color="darkorange">参与</font>
|
|
|
+ <font color="red">___</font>
|
|
|
</c:if>
|
|
|
</td>
|
|
|
<td>
|
|
@@ -317,8 +344,9 @@
|
|
|
<a href="javascript:;" onclick="jumpHref('${ctx}/product/new/imageList?id=${product.id}&searchName=${searchName}&searchShopID=${searchShopID}&searchShopName=${searchShopName}&searchBigTypeID=${searchBigTypeID}&searchSmallTypeID=${searchSmallTypeID}&searchTinyTypeID=${searchTinyTypeID}&searchValidFlag=${searchValidFlag}&searchActStatus=${searchActStatus}&searchProductType=${searchProductType}&searchBrandID=${searchBrandID}&searchPreferredFlag=${searchPreferredFlag}&searchProductCategory=${searchProductCategory}')">图片管理</a>
|
|
|
<a href="javascript:;" onclick="jumpHref('${ctx}/product/hehe/edit?id=${product.id}&searchName=${searchName}&searchShopID=${searchShopID}&searchShopName=${searchShopName}&searchBigTypeID=${searchBigTypeID}&searchSmallTypeID=${searchSmallTypeID}&searchTinyTypeID=${searchTinyTypeID}&searchValidFlag=${searchValidFlag}&searchActStatus=${searchActStatus}&searchProductType=${searchProductType}&searchBrandID=${searchBrandID}&searchPreferredFlag=${searchPreferredFlag}&searchProductCategory=${searchProductCategory}')">参与呵呵商城</a><br>
|
|
|
<c:if test="${product.validFlag eq 1 or product.validFlag eq 8}">
|
|
|
- <a class="red" href="javascript:void(0);" onclick="auditThis(${product.id},'${product.brand.name}',${product.brand.status},'${product.costCheckFlag}','${product.costPrice}','${product.costProportional}','${product.newvalidFlag}','${product.showTime}','${product.addTime}')">审核</a>
|
|
|
+ <c:if test="${(product.newProductType != 1 || product.newProductType eq null)}"> <a class="red" href="javascript:void(0);" onclick="auditThis(${product.id},'${product.brand.name}','${product.brand.status}','${product.costCheckFlag}','${product.costPrice}','${product.costProportional}','${product.newvalidFlag}','${product.showTime}','${product.addTime}','${product.newProductType}')">上架审核</a></c:if>
|
|
|
</c:if>
|
|
|
+ <c:if test="${product.newProductType eq 1 || product.newvalidFlag != 1}"><a class="red" href="javascript:void(0);" onclick="auditThis(${product.id},'${product.brand.name}','${product.brand.status}','${product.costCheckFlag}','${product.costPrice}','${product.costProportional}','${product.newvalidFlag}','${product.showTime}','${product.addTime}','${product.newProductType}','${product.validFlag}')">新品展示审核</a></c:if>
|
|
|
<c:if test="${product.validFlag ne 10 && product.validFlag ne 1 && product.validFlag ne 8}">
|
|
|
<a class="red" href="javascript:void(0);" onclick="validChange(${product.id}, 10)">冻结</a>
|
|
|
</c:if>
|
|
@@ -532,7 +560,7 @@
|
|
|
}
|
|
|
|
|
|
// 审核(正常)
|
|
|
- function auditThis(id,name,status,costCheckFlag,costPrice,costProportional,newvalidFlag,showtime,addtime) {
|
|
|
+ function auditThis(id,name,status,costCheckFlag,costPrice,costProportional,newvalidFlag,showtime,addtime,newProductType,validFlag) {
|
|
|
// 商品成本判断
|
|
|
if(null == costCheckFlag || "" == costCheckFlag){
|
|
|
alertx("成本价未填写,请编辑成本价后再审核");
|
|
@@ -569,22 +597,15 @@
|
|
|
+ " <option value='2'>审核通过</option>"
|
|
|
+ " <option value='8'>审核未通过</option>"
|
|
|
+ " <select/>"
|
|
|
- + "</div>";
|
|
|
+ + "</div>"
|
|
|
+ + "</div>";
|
|
|
var html = "<div id='auditBox'>"
|
|
|
- + "<div class='bd-row'>"
|
|
|
- + " <span><font color='red'>*</font>商品上架审核:</span>"
|
|
|
- + " <select name='validFlag' id='validFlag'>"
|
|
|
- + " <option value=''>请选择</option>"
|
|
|
- + " <option value='2'>审核通过</option>"
|
|
|
- + " <option value='8'>审核未通过</option>"
|
|
|
- + " <select/>"
|
|
|
- + "</div>"
|
|
|
+ "<div class='bd-row'>"
|
|
|
+ " <span><font color='red'>*</font>新品展示审核:</span>"
|
|
|
+ " <select name='newvalidFlag' id='newvalidFlag'>"
|
|
|
+ " <option value=''>请选择</option>"
|
|
|
+ " <option value='1'>审核通过</option>"
|
|
|
- + " <option value='3'>审核未通过</option>"
|
|
|
+ + " <option value='2'>审核未通过</option>"
|
|
|
+ " <select/> "
|
|
|
+ "</div>"
|
|
|
+ " <span id='err' hidden=hidden style='color: red'>请选择审核结果</span>"
|
|
@@ -606,7 +627,10 @@
|
|
|
data.setDate(data.getDate()+90);
|
|
|
var dtime = new Date(data);
|
|
|
commTime = dtime.toLocaleString()
|
|
|
-
|
|
|
+ if(validFlag == 2 && newProductType == 1){
|
|
|
+ f.validFlag=validFlag;
|
|
|
+ console.log("t"+f.validFlag)
|
|
|
+ }
|
|
|
$.post("${ctx}/product/new/auditProduct", {
|
|
|
'productID': id,
|
|
|
'validFlag': f.validFlag,
|
|
@@ -621,8 +645,11 @@
|
|
|
}
|
|
|
}, "JSON");
|
|
|
};
|
|
|
- if(newvalidFlag !=2){
|
|
|
+ debugger
|
|
|
+ console.log(validFlag+"f"+newProductType)
|
|
|
+ if(validFlag == 2 && newProductType == 1){
|
|
|
$.jBox(html, {title: "审核", submit: submit});
|
|
|
+
|
|
|
}else {
|
|
|
$.jBox(htmls, {title: "审核", submit: submit});
|
|
|
}
|