|
|
@@ -3710,6 +3710,10 @@ define(['app/app', 'jquery-uploadify'], function(app) {
|
|
|
toaster.pop('error', '型号为必填项');
|
|
|
return;
|
|
|
}
|
|
|
+ if (!$scope.Regul.minPackQty || $scope.Regul.minPackQty === '') {
|
|
|
+ toaster.pop('error', '最小包装数必填项');
|
|
|
+ return;
|
|
|
+ }
|
|
|
$scope.Regul.cmpImg = $scope.Regul.RegulImg === 'static/img/vendor/images/upload.png' ? '' : $scope.Regul.RegulImg
|
|
|
$scope.Regul.url = ($scope.Regul.Regulpic === $scope.Regul.iniUrlImg || $scope.Regul.Regulpic === $scope.Regul.iniRegulpic) ? '' : $scope.Regul.Regulpic
|
|
|
var str = JSON.stringify($scope.Regul)
|
|
|
@@ -3763,8 +3767,8 @@ define(['app/app', 'jquery-uploadify'], function(app) {
|
|
|
$scope.productUpOff.goods = {
|
|
|
prices: [{'start': $scope.productUpOff.minPackQty, rMBPrice: ''}],
|
|
|
selfSale: 1,
|
|
|
- breakUp: false,
|
|
|
- autoPublish: false,
|
|
|
+ breakUp: true,
|
|
|
+ autoPublish: $scope.productUpOff.goods.status === 601 || $scope.productUpOff.goods.status === 602 || false,
|
|
|
productid: $scope.productUpOff.id,
|
|
|
minDelivery: 1,
|
|
|
maxDelivery: 10,
|