|
|
@@ -211,25 +211,6 @@ define([ 'app/app' ], function(app) {
|
|
|
//获取店铺的信息
|
|
|
StoreInfo.getUuidByEnuu({enUU : $rootScope.userInfo.enterprise.uu}, function(data) {
|
|
|
$scope.storeUuid = data.data;
|
|
|
- $modal.open({
|
|
|
- animation : true,
|
|
|
- templateUrl : 'static/view/common/modal/product_upload_modal.html',
|
|
|
- controller : 'rule_tip_ctrl',
|
|
|
- resolve : {
|
|
|
- type : function() {
|
|
|
- return 'upload';
|
|
|
- },
|
|
|
- tipModal : function() {
|
|
|
- return true;
|
|
|
- },
|
|
|
- success : function () {
|
|
|
- return false;
|
|
|
- },
|
|
|
- uuid: function () {
|
|
|
- return $scope.storeUuid;
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
}, function(response) {
|
|
|
toaster.pop('error', '获取店铺的信息失败, ' + response.data);
|
|
|
});
|
|
|
@@ -310,6 +291,26 @@ define([ 'app/app' ], function(app) {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+ $modal.open({
|
|
|
+ animation : true,
|
|
|
+ templateUrl : 'static/view/common/modal/product_upload_modal.html',
|
|
|
+ controller : 'rule_tip_ctrl',
|
|
|
+ resolve : {
|
|
|
+ type : function() {
|
|
|
+ return 'upload';
|
|
|
+ },
|
|
|
+ tipModal : function() {
|
|
|
+ return true;
|
|
|
+ },
|
|
|
+ success : function () {
|
|
|
+ return $scope.needShowTip;
|
|
|
+ },
|
|
|
+ uuid: function () {
|
|
|
+ return $scope.storeUuid;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
// 下载模板
|
|
|
$scope.download = function() {
|
|
|
var show = SessionService.get($scope.userInfo.userUU + "-releasetip");
|
|
|
@@ -332,29 +333,25 @@ define([ 'app/app' ], function(app) {
|
|
|
$scope.publish = function(event) {
|
|
|
if ($scope.pageParams.totalElements > 0) {
|
|
|
ReleaseProductByBatch.batchRelease({batch : $scope.result.batch}, null, function(data) {
|
|
|
- if ($scope.needShowTip) {
|
|
|
- $modal.open({
|
|
|
- animation : true,
|
|
|
- templateUrl : 'static/view/common/modal/product_upload_modal.html',
|
|
|
- controller : 'rule_tip_ctrl',
|
|
|
- resolve : {
|
|
|
- type : function() {
|
|
|
- return 'upload';
|
|
|
- },
|
|
|
- tipModal : function() {
|
|
|
- return true;
|
|
|
- },
|
|
|
- success : function () {
|
|
|
- return false;
|
|
|
- },
|
|
|
- uuid: function () {
|
|
|
- return null;
|
|
|
- }
|
|
|
+ $modal.open({
|
|
|
+ animation : true,
|
|
|
+ templateUrl : 'static/view/common/modal/product_upload_modal.html',
|
|
|
+ controller : 'rule_tip_ctrl',
|
|
|
+ resolve : {
|
|
|
+ type : function() {
|
|
|
+ return 'upload';
|
|
|
+ },
|
|
|
+ tipModal : function() {
|
|
|
+ return true;
|
|
|
+ },
|
|
|
+ success : function () {
|
|
|
+ return $scope.needShowTip;
|
|
|
+ },
|
|
|
+ uuid: function () {
|
|
|
+ return $scope.storeUuid;
|
|
|
}
|
|
|
- });
|
|
|
- } else {
|
|
|
-
|
|
|
- }
|
|
|
+ }
|
|
|
+ });
|
|
|
$scope.relTableParams.page(1);
|
|
|
$scope.relTableParams.reload();
|
|
|
$scope.result.success = 0;//设置成0,让前端用户不能点击
|