Browse Source

订单添加,无法获取店铺id

wangxiaoming 5 years ago
parent
commit
6ebc6ae6ac
1 changed files with 12 additions and 10 deletions
  1. 12 10
      watero-rst-web/src/main/webapp/common/js/salesOrder/salesOrder.js

+ 12 - 10
watero-rst-web/src/main/webapp/common/js/salesOrder/salesOrder.js

@@ -181,16 +181,18 @@ function  storeProductColor() {
 
 function getStoreId() {
     var storeId;
-    if(isUpdate){
-        storeId = $(".init_store").val();
-    }else{
-        var $options=$("#datalist_1").children();
-        for(var i=0;i<$options.length;i++){
-            if($options.eq(i).val().trim()==$("#store_1").val().trim()){
-                storeId = $options.eq(i).attr("data-id");
-            }
-        }
-    }
+    storeId = $("#salesStoreId").val();
+    //
+    // if(isUpdate){
+    //     storeId = $(".init_store").val();
+    // }else{
+    //     var $options=$("#datalist_1").children();
+    //     for(var i=0;i<$options.length;i++){
+    //         if($options.eq(i).val().trim()==$("#store_1").val().trim()){
+    //             storeId = $options.eq(i).attr("data-id");
+    //         }
+    //     }
+    // }
     return storeId;
 }