|
@@ -4,7 +4,7 @@
|
|
|
*/
|
|
*/
|
|
|
define(['app/app'], function (app) {
|
|
define(['app/app'], function (app) {
|
|
|
"use strict";
|
|
"use strict";
|
|
|
- app.register.controller('vendorOrderCtrl', ['$scope', '$rootScope', 'Purchase', 'ngTableParams', 'BaseService', 'toaster', '$state', '$filter', 'Return', 'Change', '$modal', 'PuExProcess', 'Recommendation', 'DateUtil', 'Loading', 'bankInfoService', 'Logistics', 'Distributor', 'SessionService','Rate', function ($scope, $rootScope, Purchase, ngTableParams, BaseService, toaster, $state, $filter, Return, Change, $modal, PuExProcess, Recommendation, DateUtil, Loading, bankInfoService, Logistics, Distributor, SessionService, Rate) {
|
|
|
|
|
|
|
+ app.register.controller('vendorOrderCtrl', ['$scope', '$rootScope', 'Purchase', 'ngTableParams', 'BaseService', 'toaster', '$state', '$filter', 'Return', 'Change', '$modal', 'PuExProcess', 'Recommendation', 'DateUtil', 'Loading', 'bankInfoService', 'Logistics', 'Distributor', 'SessionService','Rate','StoreInfo', function ($scope, $rootScope, Purchase, ngTableParams, BaseService, toaster, $state, $filter, Return, Change, $modal, PuExProcess, Recommendation, DateUtil, Loading, bankInfoService, Logistics, Distributor, SessionService, Rate, StoreInfo) {
|
|
|
$rootScope.active = 'vendor_order';
|
|
$rootScope.active = 'vendor_order';
|
|
|
|
|
|
|
|
// 加密过滤器
|
|
// 加密过滤器
|
|
@@ -54,10 +54,15 @@ define(['app/app'], function (app) {
|
|
|
if ($rootScope.store && ($scope.yrscStore == $rootScope.store.uuid)) {
|
|
if ($rootScope.store && ($scope.yrscStore == $rootScope.store.uuid)) {
|
|
|
$scope.isYrscStore = true;
|
|
$scope.isYrscStore = true;
|
|
|
}
|
|
}
|
|
|
- if ($rootScope.applyInfo.type == 'CONSIGNMENT' || $rootScope.applyStatus == 'PREPARE'){
|
|
|
|
|
- $scope.isCONSIGNMENT = true;
|
|
|
|
|
- $scope.storeType = 'mall';
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ StoreInfo.findShopOwnerApplyByNormalStatus({}, {}, function (result) {
|
|
|
|
|
+ if (!result.data) {
|
|
|
|
|
+ $scope.isCONSIGNMENT = true;
|
|
|
|
|
+ $scope.storeType = 'mall';
|
|
|
|
|
+ }else if (result.data.type == 'CONSIGNMENT' || result.data.status == 'PREPARE'){
|
|
|
|
|
+ $scope.isCONSIGNMENT = true;
|
|
|
|
|
+ $scope.storeType = 'mall';
|
|
|
|
|
+ }}, function (error) {
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
var unavailableReasons = {
|
|
var unavailableReasons = {
|
|
|
315: '已注销',
|
|
315: '已注销',
|