|
|
@@ -1995,7 +1995,7 @@ define([ 'app/app', 'jquery-uploadify' ], function(app) {
|
|
|
$scope.saveBatchPutOnProperty = function() {
|
|
|
var isPass = $scope.validateBatchPutOnProperty();
|
|
|
if (!isPass) {
|
|
|
- return ;
|
|
|
+ return false;
|
|
|
}
|
|
|
$scope.uasBatchPutOnProperty.fluctuateRate = $scope.uasBatchPutOnProperty.editFluctuateRate / 100;
|
|
|
$scope.uasBatchPutOnProperty.minDelivery = $scope.uasBatchPutOnProperty.editMinDelivery;
|
|
|
@@ -2019,6 +2019,14 @@ define([ 'app/app', 'jquery-uploadify' ], function(app) {
|
|
|
* 批量上架信息
|
|
|
*/
|
|
|
$scope.batchPutOn = function () {
|
|
|
+ var isFluctuateRateChange = $scope.uasBatchPutOnProperty.editFluctuateRate == $scope.uasBatchPutOnProperty.fluctuateRate * 100;
|
|
|
+ var isMinDeliveryChange = $scope.uasBatchPutOnProperty.editMinDelivery == $scope.uasBatchPutOnProperty.minDelivery;
|
|
|
+ var isMaxDeliveryChange = $scope.uasBatchPutOnProperty.editMaxDelivery == $scope.uasBatchPutOnProperty.maxDelivery;
|
|
|
+ if (isFluctuateRateChange || isMinDeliveryChange || isMaxDeliveryChange) {
|
|
|
+ toaster.pop('warning', '提示', '批量上架配置信息被修改,请保存批量上架配置信息之后再上架');
|
|
|
+ return ;
|
|
|
+ // $scope.saveBatchPutOnProperty();
|
|
|
+ }
|
|
|
Material.batchPutOn(null, null, function (data) {
|
|
|
toaster.pop('success', '成功', data.message);
|
|
|
}, function (response) {
|