Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/feature-201815-liusw' into feature-201815-liusw

yujia 7 anni fa
parent
commit
cfb8757415

+ 4 - 2
src/main/java/com/uas/platform/b2c/prod/commodity/service/impl/GoodsServiceImpl.java

@@ -2554,10 +2554,12 @@ public class GoodsServiceImpl implements GoodsService {
         if (StringUtils.isEmpty(storeid)) {
             return null;
         }
-        pageInfo.expression(PredicateUtils.or(new SimpleExpression[]{PredicateUtils.eq("status", 601, true), PredicateUtils.eq("status", 602, true)}));
+
+        //pageInfo.expression(PredicateUtils.or(new SimpleExpression[]{PredicateUtils.eq("status", 601, true), PredicateUtils.eq("status", 602, true)}));
+        pageInfo.expression(PredicateUtils.eq("status", 601, true));
         pageInfo.sorting(Sort.Direction.DESC, "updateDate");
         pageInfo.expression(PredicateUtils.eq("storeid", storeid, false));
-        pageInfo.expression(PredicateUtils.ne("go_status",GOOD_SOLD_OUT,false));
+       // pageInfo.expression(PredicateUtils.ne("go_status",GOOD_SOLD_OUT,false));
         if (StringUtils.hasText(kindUuid)) {
             // 如果包含多个叶子类目ID,则获取所有的叶子类目对应的商品信息
             if ("其他".equals(kindUuid) || "-10".equals(kindUuid)) {

+ 34 - 26
src/main/webapp/resources/js/admin/controllers/AuditRegulpicListCtrl.js

@@ -195,10 +195,11 @@ define([ 'app/app' ], function(app) {
     $scope.dismiss = dismiss;
     $scope.BrandList = []
     $scope.reason = null;
-    $scope.keyword = ''
     $scope.spec = ''
-    $scope.item = item
-    /**
+    $scope.item = item;
+    $scope.keyword = item.brand ? item.brand.nameEn : '';
+    $scope.kindId = item.kind ? item.kind.nameCn : '';
+        /**
      * 品牌联想词
      */
     $scope.onBrandChange = function(name) {
@@ -227,32 +228,38 @@ define([ 'app/app' ], function(app) {
      */
     function saveReason() {
       var info = ''
-      if (!$scope.keyword || $scope.keyword === '') {
-        toaster.pop('error', '品牌为必填项');
-        return ;
-      }
-      if ($scope.kindPojo.first === '请选择一级类目') {
-        toaster.pop('error', '商城类目未选择');
-        return ;
-      }
-      if ($scope.kindPojo.second === '请选择二级类目' && $scope.kindInfo[$scope.kindPojo.first].children) {
-        toaster.pop('error', '商城类目未选择');
-        return ;
-      }
-      if ($scope.kindPojo.third === '请选择三级类目' && $scope.kindInfo[$scope.kindPojo.first].children[$scope.kindPojo.second].children) {
-        toaster.pop('error', '商城类目未选择');
-        return ;
-      }
-      if ($scope.kindPojo.third !== '请选择三级类目') {
-        info = $scope.kindPojo.third
-      } else if ($scope.kindPojo.second !== '请选择二级类目') {
-        info = $scope.kindPojo.second
+      if ($scope.kindId === '') {
+        if (!$scope.keyword || $scope.keyword === '') {
+          toaster.pop('error', '品牌为必填项');
+          return;
+        }
+        if ($scope.kindPojo.first === '请选择一级类目') {
+          toaster.pop('error', '商城一级类目未选择');
+          return;
+        }
+        if ($scope.kindPojo.second === ''
+            && $scope.kindInfo[$scope.kindPojo.first].children) {
+          toaster.pop('error', '商城二级类目未选择');
+          return;
+        }
+        if ($scope.kindPojo.third === ''
+            && $scope.kindInfo[$scope.kindPojo.first].children[$scope.kindPojo.second].children) {
+          toaster.pop('error', '商城三级类目未选择');
+          return;
+        }
+        if ($scope.kindPojo.third !== '') {
+          info = $scope.kindPojo.third
+        } else if ($scope.kindPojo.second !== '') {
+          info = $scope.kindPojo.second
+        } else if ($scope.kindPojo.first !== '') {
+          info = $scope.kindPojo.first
+        }
+        $scope.item.kindId = info.id
+        $scope.item.brandId = $scope.brandId
       }
-      $scope.item.kindId = info.id
-      $scope.item.brandId = $scope.brandId
       $scope.item.spec = $scope.spec !== '' ? $scope.spec : $scope.item.product.spec
+      toaster.pop('success', '提示',  '已提交,请稍等');
       StoreAdminListInformation.auditSuccess({}, $scope.item, function(data) {
-        console.log(data)
         if (data.success) {
           $modalInstance.close(data);
         } else {
@@ -320,6 +327,7 @@ define([ 'app/app' ], function(app) {
       } else {
         chooseAttach = responseData.data.uploadAttach
       }
+      toaster.pop('success', '提示',  '已提交,请稍等');
       StoreAdminListInformation.chooseAttach({}, {chooseAttach: chooseAttach, submit: item}, function(data) {
         $modalInstance.close(data);
       })

+ 8 - 2
src/main/webapp/resources/view/admin/modal/auditRegulpicpass_modal.html

@@ -81,7 +81,7 @@
     </div>
     <div class="form-group">
       <div class="col-sm-3 name"><em style="color: #ea0e0e">*</em>品牌:</div>
-      <div class="col-sm-9" style="position: relative;">
+      <div class="col-sm-9" style="position: relative;" ng-if="!item.brandId">
         <input type="text" ng-blur="onBrandBlur(keyword)"  ng-change="onBrandChange(keyword)" placeholder="请输入品牌名字" ng-model="keyword" class="form-control" style="width: 240px;height: 28px" />
         <ul class="listUl" ng-if="BrandList.value.length > 0">
           <li ng-repeat="item in BrandList.value" ng-click="setBrand(item.nameEn,item.id)">
@@ -89,10 +89,13 @@
           </li>
         </ul>
       </div>
+      <div class="col-sm-9" style="position: relative;" ng-if="item.brandId">
+        {{item.brand.nameEn}}
+      </div>
     </div>
     <div class="form-group">
       <div class="col-sm-3 name"><em style="color: #ea0e0e">*</em>商城类目:</div>
-      <div class="col-sm-9" >
+      <div class="col-sm-9" ng-if="!item.kindId">
         <div class="col-sm-4" style="padding: 0px;">
           <select class="form-control"
                   ng-model="kindPojo.first"
@@ -117,6 +120,9 @@
           </select>
         </div>
       </div>
+      <div class="col-sm-9" ng-if="item.kindId">
+        {{item.kind.nameCn}}
+      </div>
     </div>
     <div class="form-group">
       <div class="col-sm-3 name">规格:</div>

+ 1 - 1
src/main/webapp/resources/view/vendor/forstore/vendor_store_info.html

@@ -853,7 +853,7 @@
 					</div>
 				</div>
 				<div class="image_tip">
-					仅支持JPG、PNG、GIF格式,大小不超过3M,建议使用970*220px的图片
+					仅支持JPG、PNG、GIF格式,大小不超过3M,建议使用970*280px的图片
 					<a href="javascript:void(0)" class="model-btn" ng-click="showTemplate(true)" ng-if="canChooseTempalte">使用提供的模板</a>
 				</div>
 			</div>

+ 2 - 2
src/main/webapp/resources/view/vendor/forstore/vendor_store_maintain.html

@@ -1061,7 +1061,7 @@
 						 style="width: 660px;height: 155px;  left: 0; position: absolute;"></div>
 				</div>
 				<div class="image_tip">
-					仅支持JPG、PNG、GIF格式,大小不超过3M,建议使用970*220px的图片
+					仅支持JPG、PNG、GIF格式,大小不超过3M,建议使用970*280px的图片
 					<a href="javascript:void(0)" class="model-btn" ng-click="showTemplate(true)" >使用提供的模板</a>
 				</div>
 
@@ -1105,7 +1105,7 @@
 					</div>
 				</div>
 				<div class="image_tip">
-					仅支持JPG、PNG、GIF格式,大小不超过3M,建议使用970*220px的图片
+					仅支持JPG、PNG、GIF格式,大小不超过3M,建议使用970*280px的图片
 					<a href="#" class="model-btn" style="display: none;">使用提供的模板</a>
 				</div>
 			</div>

+ 2 - 2
src/main/webapp/resources/view/vendor/left_nav.html

@@ -58,9 +58,9 @@
 				<!-- 店铺申请中 !store && applyStatus == 'PREPARE' -->
 				<span  ui-sref="vendor_store_wait" ng-if="!store && applyStatus == 'PREPARE'">开店申请</span>
 				<!-- 我的店铺 !store && applyStatus == 'PASS' -->
-				<span  ui-sref="vendor_store_info" ng-if="!store && applyStatus == 'PASS'">店铺管理</span>
+				<span  ui-sref="vendor_store_info" ng-if="!store && applyStatus == 'PASS'">店铺维护</span>
 				<!-- 我的店铺 store -->
-				<span  ui-sref="vendor_store_maintain" ng-if="store && (!store.status || store.status === 'OPENED')">店铺管理</span>
+				<span  ui-sref="vendor_store_maintain" ng-if="store && (!store.status || store.status === 'OPENED')">店铺维护</span>
 				<!-- 我的店铺申述 store -->
 				<span  ui-sref="vendor_store_maintain" ng-if="store && store.status && store.status !== 'OPENED'">我的店铺</span>
 			</li>