Explorar o código

Merge branch 'master' of http://git.iamberry.com/hexiugang/iamberry-common-parent

# Conflicts:
#	watero-rst-core/src/main/java/com.iamberry.rst.core/cm/SalesOrder.java
liujiankang %!s(int64=5) %!d(string=hai) anos
pai
achega
5d72a8abc0

+ 18 - 2
watero-rst-web/src/main/webapp/WEB-INF/views/order/salesOrder/list_wait_send_order.ftl

@@ -72,7 +72,7 @@
             <input type="text" class="input-text" style="width:100px;margin-bottom: 3px;font-size: 10px;" value="${(req.salesAddressTel)!}" placeholder="收件人手机" id="salesAddressTel" name="salesAddressTel">
 
             <#--<input type="text" class="input-text" style="width:150px;margin-bottom: 3px;" value="${(req.itemProductName)!}" placeholder="产品名称/颜色/69码" id="itemProductName" name="itemProductName">-->
-            <select class="select" name="colorId" id="colorId" style="height: 31px;width: 100px;font-size: 10px;">
+            <select class="chosen" name="colorId" id="colorId" >
                 <option value="">产品名称(颜色)</option>
                 <#list productColorList as productColor>
                     <option <#if (req.colorId)??><#if req.colorId == productColor.colorId>selected="selected"</#if></#if> value="${productColor.colorId}">${productColor.productName}(${productColor.colorName})</option>
@@ -432,8 +432,24 @@
                 }
             });
         });
-
     }
+    $('.chosen').chosen({
+        no_results_text: "没有找到结果!",//搜索无结果时显示的提示
+        search_contains:true,   //关键字模糊搜索。设置为true,只要选项包含搜索词就会显示;设置为false,则要求从选项开头开始匹配
+        allow_single_deselect:true, //单选下拉框是否允许取消选择。如果允许,选中选项会有一个x号可以删除选项
+        disable_search: false, //禁用搜索。设置为true,则无法搜索选项。
+        disable_search_threshold: 0, //当选项少等于于指定个数时禁用搜索。
+        inherit_select_classes: true, //是否继承原下拉框的样式类,此处设为继承
+        placeholder_text_single: '选择国家', //单选选择框的默认提示信息,当选项为空时会显示。如果原下拉框设置了data-placeholder,会覆盖这里的值。
+        width: '200px', //设置chosen下拉框的宽度。即使原下拉框本身设置了宽度,也会被width覆盖。
+        max_shown_results: 1000, //下拉框最大显示选项数量
+        display_disabled_options: false,
+        single_backstroke_delete: false, //false表示按两次删除键才能删除选项,true表示按一次删除键即可删除
+        case_sensitive_search: false, //搜索大小写敏感。此处设为不敏感
+        group_search: false, //选项组是否可搜。此处搜索不可搜
+        include_group_label_in_selected: true //选中选项是否显示选项分组。false不显示,true显示。默认false。
+    });
+    $("#colorId").trigger("chosen:updated");//初始化
 </script>
 </body>
 </html>

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 3 - 3
watero-rst-web/src/main/webapp/WEB-INF/views/order/salesOrder/sales_order_list.ftl


+ 7 - 13
watero-rst-web/src/main/webapp/WEB-INF/views/order/salesOrder/update_order.ftl

@@ -241,10 +241,13 @@
                                 <tr class="text-c">
                                     <input type="hidden" class="item_id" id="" value="${item.itemId}">
                                     <input type="hidden" class="color_id" id="" value="${item.itemColorId}">
+                                    <input type="hidden" class="color_price" id="" value="${((item.itemProductPrice/100)?string("0.##"))!''}" >
+                                    <input type="hidden" class="color_discount" id="" value="${((item.itemProductDiscount/100)?string("0.##"))!''}" >
+                                    <input type="hidden" class="item_total" <#if orderType==1 || orderType==3 > readonly="readonly" isUpdate="2"<#else> isUpdate="1"</#if> id="" value="${((item.itemTotal/100)?string("0.##"))!''}" >
                                     <td>${item.itemProductName}</td>
                                     <td>${item.itemProductColor}</td>
-                                    <td style="width: 40px;"><input type="text" class="input-text input-number color_price decimal_input" style="text-align: center;" value="${((item.itemProductPrice/100)?string("0.##"))!''}"  name="" id="" placeholder="售价" onkeyup="keyFunDecimal($(this),9999999,0)" myMinVal="0" myMaxVal="9999999"></td>
-                                    <td style="width: 40px;"><input type="text" class="input-text input-number color_discount decimal_input" style="text-align: center;" value="${((item.itemProductDiscount/100)?string("0.##"))!''}"  name="" id="" placeholder="售价" onkeyup="keyFunDecimal($(this),9999999,0)" myMinVal="0" myMaxVal="9999999"></td>
+                                    <td>${((item.itemProductPrice/100)?string("0.##"))!''}</td>
+                                    <td>${((item.itemProductDiscount/100)?string("0.##"))!''}</td>
                                     <td style="width: 40px;display: none;"><input type="hidden" class="input-text input-number item_cost decimal_input" style="text-align: center;" value="${((item.itemCost/100)?string("0.##"))!''}"  name="" id="" placeholder="成本价" onkeyup="keyFunDecimal($(this),9999999,0)" myMinVal="0" myMaxVal="9999999"></td>                                    <td>${item.itemColorBar}</td>
                                     <td style="width: 30px;">
                                         <input type="text"
@@ -257,17 +260,8 @@
                                                onkeyup="keyFun($(this),999,1)"
                                                onpaste="keyFun($(this),999,1)">
                                     </td>
-                                    <td style="width: 40px;">
-                                        <input type="text"
-                                               class="input-text input-number item_total decimal_input"
-                                               style="text-align: center;" value="${((item.itemTotal/100)?string("0.##"))!''}"
-                                               name="" id="" placeholder="售价" onkeyup="keyFunDecimal($(this),9999999,0)" myMinVal="0" myMaxVal="9999999"
-                                                <#if orderType==1 || orderType==3 >
-                                                    readonly="readonly"   isUpdate="2"
-                                                <#else>
-                                                    isUpdate="1"
-                                                </#if>
-                                        >
+                                    <td class="item_totalTd">
+                                        ${((item.itemTotal/100)?string("0.##"))!''}
                                     </td>
                                     <td><a href="javascript:void(0)" class="del_product all_down" onclick="delProduct($(this))">删除</a></td>
                                 </tr>

+ 2 - 1
watero-rst-web/src/main/webapp/WEB-INF/views/order/store/add.ftl

@@ -86,12 +86,13 @@
             </div>
             <div class="col-4"> </div>
         </div>
-
+        <span style="margin-left: 50px;"><strong>提示:新增店铺后,需要联系销售人员将此店铺和客户信息绑定</strong></span>
         <div class="row cl">
             <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                 <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
             </div>
         </div>
+
     </form>
 </div>
 </body>

+ 18 - 1
watero-rst-web/src/main/webapp/common/js/salesOrder/salesOrder.js

@@ -403,7 +403,7 @@ function setSelectProduct(colorIds){
                     for(var i=0;i<data.returnMsg.productColorList.length;i++){
                         var productColor = data.returnMsg.productColorList[i];
                         var discount = accDiv(productColor.colorDiscount,100);
-                        html += '<tr class="text-c">' +
+                        /*html += '<tr class="text-c">' +
                             '<input type="hidden" class="color_id" id="" value="'+ productColor.colorId +'" >' +
                             ' <td>'+ cufte(productColor.productName) +'</td>' +
                             ' <td>'+ cufte(productColor.colorName) +'</td>' +
@@ -413,6 +413,20 @@ function setSelectProduct(colorIds){
                             ' <td style="width: 30px;"><input type="text" class="input-text input-number item-num" style="text-align: center" value="1"  name="" id="" placeholder="产品数量" onkeyup="keyFun($(this),999,1)" onpaste="keyFun($(this),999,1)"></td>' +
                             ' <td style="width: 40px;"><input type="text" class="input-text input-number item_total" isUpdate="1" style="text-align: center" value="'+ accDiv(productColor.colorDiscount,100) +'"  name="" id="" placeholder="小结" onkeyup="keyFunDecimal($(this),9999999,0)" myMinVal="0" myMaxVal="9999999"></td>' +
                             ' <td><a href="javascript:void(0)" class="del_product all_down" onclick="delProduct($(this))" >删除</a></td>' +
+                            ' </tr>';*/
+                        html += '<tr class="text-c">' +
+                            '<input type="hidden" class="color_id" id="" value="'+ productColor.colorId +'" >' +
+                            '<input type="hidden" class="color_price" id="" value="'+ accDiv(productColor.colorPrice,100) +'" >' +
+                            '<input type="hidden" class="color_discount" id="" value="'+ accDiv(productColor.colorDiscount,100) +'" >' +
+                            '<input type="hidden" class="item_total" isUpdate="1" id="" value="'+ accDiv(productColor.colorDiscount,100) +'" >' +
+                            ' <td>'+ cufte(productColor.productName) +'</td>' +
+                            ' <td>'+ cufte(productColor.colorName) +'</td>' +
+                            ' <td>'+ accDiv(productColor.colorPrice,100) +'</td>' +
+                            ' <td>'+ accDiv(productColor.colorDiscount,100) +'</td>' +
+                            ' <td>'+ cufte(productColor.colorBar) +'</td>' +
+                            ' <td style="width: 30px;"><input type="text" class="input-text input-number item-num" style="text-align: center" value="1"  name="" id="" placeholder="产品数量" onkeyup="keyFun($(this),999,1)" onpaste="keyFun($(this),999,1)"></td>' +
+                            ' <td class="item_totalTd">'+ accDiv(productColor.colorDiscount,100) +'</td>' +
+                            ' <td><a href="javascript:void(0)" class="del_product all_down" onclick="delProduct($(this))" >删除</a></td>' +
                             ' </tr>';
                     }
                 }else{
@@ -455,6 +469,7 @@ function calculatePrice(){
         var isUpdate = $(this).find(".item_total").attr("isUpdate");
         if(isUpdate == "1"){
             $(this).find(".item_total").val(total);
+            $(this).find(".item_totalTd").html(total);
         }else{
             total = $(this).find(".item_total").val();
             total = Number(total);
@@ -507,9 +522,11 @@ function sharePrice(){
 
         if(i === length -1){
             $(this).find(".item_total").val(accSub(salesPayMoneyTest,remainingAmount));
+            $(this).find(".item_totalTd").html(accSub(salesPayMoneyTest,remainingAmount));
         }else{
             remainingAmount = accAdd(msg,remainingAmount);
             $(this).find(".item_total").val(msg);
+            $(this).find(".item_totalTd").html(msg);
         }
     });
 }