Kaynağa Gözat

卖家待审核数量请求

yangc 8 yıl önce
ebeveyn
işleme
ee5be9a54c

+ 4 - 0
src/main/webapp/resources/js/common/query/vendor.js

@@ -30,6 +30,10 @@ define(['ngResource'], function() {
 			getTransactionInfo : {
 				url : 'basic/vendor/transactionInfo',
 				method : 'GET'
+			},
+			getNotDealApplyCount: {
+				url: 'basic/enterprise/applyCount',
+				method: 'GET'
 			}
 		});
 	}]).factory('TakeSelf', ['$resource', function($resource) {

+ 7 - 1
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_index_ctrl.js

@@ -22,9 +22,15 @@ define(['app/app', 'calendar'], function(app) {
         }, function (response) {
             toaster.pop('error', '获取商家的交易信息失败');
         });
+        
+        VendorService.getNotDealApplyCount({businessCode: $scope.userInfo.enterprise}, function (data) {
+
+        },function (err) {
+            toaster.pop('error', '获取未处理审批数据失败');
+        })
 
         var num = $filter('number')(0.1, 6);
-        console.log(num);
+        // console.log(num);
 
         /**
          *  日历组件

+ 13 - 0
src/main/webapp/resources/view/vendor/forstore/vendor_index.html

@@ -29,6 +29,18 @@
     .seller_data dl dd span.enName{
         max-width: 305px;
     }
+    .count-result {
+        position: absolute;
+        left: 80px;
+        top: 54px;
+    }
+    .count-result span {
+        color: #f51c24;
+        margin: 0 !important;
+        vertical-align: middle;
+        position: relative;
+        bottom: 2px;
+    }
 </style>
 <div class="user_right fr">
     <div class="right_l">
@@ -39,6 +51,7 @@
                     <span ng-bind="userInfo.userName" class="user" title="{{userInfo.userName}}"><br/><!--<em>账户余额:¥68899.99</em>--></span>
                     <span ng-bind="'|&nbsp;' + (vendor.enName || '个人账户')" class="enName" title="{{vendor.enName}}"><br/> <!--<em>账户余额:¥68899.99</em>--></span>
                     <a ui-sref="vendor_account_management" href="#/account/management/">账户设置&nbsp;》</a>
+                    <span class="count-result">待审核:<span>10</span></span>
                     <!--<p><img src="static/img/vendor/images/sell_grade.png"/>专有服务:******</p>-->
                 </dd>
             </dl>