Duan_xu 3 years ago
parent
commit
28de36b9b0

+ 1 - 0
src/main/java/com/caimei/modules/product/dao/ProductDao.java

@@ -17,6 +17,7 @@ public interface ProductDao extends CrudDao<Product> {
     List<ActType> getAllActType();
 
 
+
     int saveSort(@Param("sort") String sort, @Param("id") String id);
 
     int findLadderPriceByNum(@Param("productID") String productID);

+ 2 - 2
src/main/resources/mappings/modules/product/ProductMapper.xml

@@ -537,8 +537,8 @@
 						   costProportional = #{costProportional},
 						   costCheckFlag = #{costCheckFlag},
 						   precisehKey = #{precisehKey},
-						   actSort = #{actSort}.
-# 			               announType-1
+						   actSort = #{actSort},
+						   newvalidFlag=#{newvalidFlag}
 
 		WHERE productID = #{id}
 	</update>

+ 13 - 13
src/main/webapp/WEB-INF/views/modules/order/cmPayShopList.jsp

@@ -592,7 +592,7 @@
                 <a id="applyShopOtherFee" href="${ctx}/order/cmPayShop/shopOtherFeeForm?shopOrderId=${s.shopOrderID}">付第三方申请</a>
                 <c:if test="${s.paying ne '1' and s.payStatus eq '1' and !s.modifyPayable}">
                     <shiro:hasPermission name="order:cmPayShop:modifyPay">
-                        <a id="applypayWay"  href="${ctx}/shopOrder/toChangePayShopAmount?shopOrderID=${s.shopOrderID}">修改成本</a>
+                        <a onclick="applypayWay(${s.shopReceiptStatus},${s.payWay})"  href="${ctx}/shopOrder/toChangePayShopAmount?shopOrderID=${s.shopOrderID}">修改成本</a>
                     </shiro:hasPermission>
                 </c:if>
                 <c:if test="${(s.modifyPayable and s.paying ne '1') || s.payStatus eq '2'}">
@@ -693,6 +693,10 @@
 <div class="pagination">${page}</div>
 
 <script>
+
+
+
+
     (function () {
         var payTableEle = $('.pay-table'),
             payProductEle = $('.pay-product-item');
@@ -899,21 +903,17 @@
             window.location.href = '${ctx}/order/cmPayShop/applyEdit' + params;
         });
 
-        //付第三方
-
-        $('#applypayWay').on('click', function () {
-
-            var shopReceiptStatus=$('#shopReceiptStatus').val();
-            var payWay=$('#payWay').val();
+        //线上支付的子订单不能直接修改成本
+        function applypayWay(shopReceiptStatus,payWay) {
             console.log(payWay)
-            debugger
             console.log(shopReceiptStatus)
-
-             if (payWay == 1 && shopReceiptStatus==2) {
-                alertx('线上支付的子订单不能直接修改成本!');
+            if (payWay == 1 && shopReceiptStatus==2) {
+                alertx('线上支付的子订单不能直接修改成本!')
                 return false;
-             }
-            });
+            }
+
+        }
+
 
             $('#applyShopOtherFee').on('click', function () {
             if (checked.length > 1) {

+ 16 - 1
src/main/webapp/WEB-INF/views/modules/product-new/secondHand.jsp

@@ -25,6 +25,7 @@
     <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
     <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
     <input id="searchProductCategory" name="searchProductCategory" value="2" type="hidden">
+
     <div class="ul-form">
         <div class="flex-wrap">
             <div class="item">
@@ -102,6 +103,14 @@
                 <label>卖家:</label>
                 <form:input path="contactName" htmlEscape="false" maxlength="30" class="input-medium"/>
             </div>
+            <div class="item">
+                <label>发布类型:</label>
+                <form:select path="announType" class="input-medium">
+                    <form:option value="" label="请选择"/>
+                    <form:option value="1" label="二手预成交商品"/>
+                    <form:option value="2" label="二手估价商品"/>
+                </form:select>
+            </div>
             <div class="item">
                 <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" style="margin-left:20px;"/>
             </div>
@@ -409,7 +418,8 @@
     }
 
     // 审核(二手)
-    function auditThisBySencodeProduct(id,costPrice){
+    function auditThisBySencodeProduct(id,costPrice,price){
+
         var html = "<div id='auditBox'>"
             + "<div class='bd-row'>"
             + "    <span><font color='red'>*</font>审核:</span>"
@@ -420,6 +430,11 @@
             + "</div>"
             + "</div>";
         var submit = function (v, h, f) {
+            if(costPrice =='' || price == ''){
+                $.jBox.tip("审核通过前请先填写交易价和成本", 'error', {focusId: "validFlag"});
+                return false;
+            }
+
             if (f.auditStatus == '') {
                 $.jBox.tip("请选择状态", 'error', {focusId: "validFlag"});
                 return false;

+ 1 - 1
src/main/webapp/WEB-INF/views/modules/product/cmSecondDetailForm.jsp

@@ -403,7 +403,7 @@
         <label class="control-label"><font color="red">*</font>商品品牌:</label>
         <div class="controls">
             <form:select path="brandID" class="input-medium required">
-                <form:option value=" ">请选择</form:option>
+                <form:option value="">请选择</form:option>
                 <c:forEach items="${brandList}" var="brand">
                     <form:option value="${brand.id}">${brand.name}</form:option>
                 </c:forEach>

+ 3 - 3
src/main/webapp/WEB-INF/views/modules/product/cmSecondHandDetailForm.jsp

@@ -592,15 +592,15 @@
         <form:input path="townId" Id="townId" type="hidden" value="${cmSecondHandDetail.townId}"/>
         <label class="control-label"><font color="red">*</font>联系地址:</label>
         <div>
-            <form:select path="province" class="input-xlarge required" id="province"
+            <form:select path="province" class="input-xlarge " id="province"
                          onchange="loadCity()" style="width:100px;">
                 <form:option value="" label="省" provinceId=""/>
             </form:select>&nbsp;&nbsp;
-            <form:select path="city" class="input-xlarge required" id="city" onchange="loadTown()"
+            <form:select path="city" class="input-xlarge " id="city" onchange="loadTown()"
                          style="width:100px;">
                 <form:option value="" label="市" cityId=""/>
             </form:select>&nbsp;&nbsp;
-            <form:select path="town" class="input-xlarge required" id="town" style="width:100px;">
+            <form:select path="town" class="input-xlarge " id="town" style="width:100px;">
                 <form:option value="" label="区"/>
             </form:select>&nbsp;&nbsp;
             <form:input path="address" htmlEscape="false" maxlength="100" class="input-xlarge required"/>