|
@@ -177,8 +177,8 @@ define(['app/app'], function (app) {
|
|
|
var obj = {
|
|
var obj = {
|
|
|
start : 1,
|
|
start : 1,
|
|
|
end : getMaxNumber(toBeSale, standard.editMinBuyQty),
|
|
end : getMaxNumber(toBeSale, standard.editMinBuyQty),
|
|
|
- rMBPrice : null,
|
|
|
|
|
- uSDPrice : null
|
|
|
|
|
|
|
+ RMBPrice : null,
|
|
|
|
|
+ USDPrice : null
|
|
|
}
|
|
}
|
|
|
standard.editQtyPrices.push(obj);
|
|
standard.editQtyPrices.push(obj);
|
|
|
}else {
|
|
}else {
|
|
@@ -225,7 +225,7 @@ define(['app/app'], function (app) {
|
|
|
}else if(qty < price.end) {
|
|
}else if(qty < price.end) {
|
|
|
var end = price.end;
|
|
var end = price.end;
|
|
|
price.end = qty -1;
|
|
price.end = qty -1;
|
|
|
- var obj = {start : qty, end : end, rMBPrice : null, uSDPrice : null};
|
|
|
|
|
|
|
+ var obj = {start : qty, end : end, RMBPrice : null, USDPrice : null};
|
|
|
standard.editQtyPrices.splice(i + 1 , 0 , obj);
|
|
standard.editQtyPrices.splice(i + 1 , 0 , obj);
|
|
|
standard.insertQty = null;
|
|
standard.insertQty = null;
|
|
|
return ;
|
|
return ;
|
|
@@ -479,25 +479,25 @@ define(['app/app'], function (app) {
|
|
|
}
|
|
}
|
|
|
//目前系统中存在双币别,与现有的逻辑冲突,暂时先用企业地址确定币别
|
|
//目前系统中存在双币别,与现有的逻辑冲突,暂时先用企业地址确定币别
|
|
|
if($scope.$$putOn.currency.indexOf('USD') > -1) {
|
|
if($scope.$$putOn.currency.indexOf('USD') > -1) {
|
|
|
- if(!fragments[i].uSDPrice) {
|
|
|
|
|
|
|
+ if(!fragments[i].USDPrice) {
|
|
|
toaster.pop('warning', '第' +(i + 1)+'个分段的单价($)为空,请填写后再次提交!');
|
|
toaster.pop('warning', '第' +(i + 1)+'个分段的单价($)为空,请填写后再次提交!');
|
|
|
return result;
|
|
return result;
|
|
|
- }else if(isNaN(fragments[i].uSDPrice)){
|
|
|
|
|
|
|
+ }else if(isNaN(fragments[i].USDPrice)){
|
|
|
toaster.pop('warning', '第' +(i + 1)+'个分段的单价($)信息必须是数字');
|
|
toaster.pop('warning', '第' +(i + 1)+'个分段的单价($)信息必须是数字');
|
|
|
return result;
|
|
return result;
|
|
|
- }else if(Number(fragments[i].uSDPrice) < 0) {
|
|
|
|
|
|
|
+ }else if(Number(fragments[i].USDPrice) < 0) {
|
|
|
toaster.pop('warning', '第' +(i + 1)+'个分段的单价($)信息必须是大于零的数字');
|
|
toaster.pop('warning', '第' +(i + 1)+'个分段的单价($)信息必须是大于零的数字');
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if($scope.$$putOn.currency.indexOf('RMB') > -1) {
|
|
if($scope.$$putOn.currency.indexOf('RMB') > -1) {
|
|
|
- if(!fragments[i].rMBPrice) {
|
|
|
|
|
|
|
+ if(!fragments[i].RMBPrice) {
|
|
|
toaster.pop('warning', '第' +(i + 1)+'个分段的单价(¥)为空,请填写后再次提交!');
|
|
toaster.pop('warning', '第' +(i + 1)+'个分段的单价(¥)为空,请填写后再次提交!');
|
|
|
return result;
|
|
return result;
|
|
|
- }else if(isNaN(fragments[i].rMBPrice)){
|
|
|
|
|
|
|
+ }else if(isNaN(fragments[i].RMBPrice)){
|
|
|
toaster.pop('warning', '第' +(i + 1)+'个分段的单价(¥)信息必须是数字');
|
|
toaster.pop('warning', '第' +(i + 1)+'个分段的单价(¥)信息必须是数字');
|
|
|
return result;
|
|
return result;
|
|
|
- }else if(Number(fragments[i].rMBPrice) < 0) {
|
|
|
|
|
|
|
+ }else if(Number(fragments[i].RMBPrice) < 0) {
|
|
|
toaster.pop('warning', '第' +(i + 1)+'个分段的单价(¥)信息必须是大于零的数字');
|
|
toaster.pop('warning', '第' +(i + 1)+'个分段的单价(¥)信息必须是大于零的数字');
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
@@ -519,17 +519,17 @@ define(['app/app'], function (app) {
|
|
|
}else if(isNaN(num)){
|
|
}else if(isNaN(num)){
|
|
|
toaster.pop('warning', '价格的信息必须只能包含数字');
|
|
toaster.pop('warning', '价格的信息必须只能包含数字');
|
|
|
if(isRMB) {
|
|
if(isRMB) {
|
|
|
- price.rMBPrice = null;
|
|
|
|
|
|
|
+ price.RMBPrice = null;
|
|
|
}else {
|
|
}else {
|
|
|
- price.uSDPrice = null;
|
|
|
|
|
|
|
+ price.USDPrice = null;
|
|
|
}
|
|
}
|
|
|
return ;
|
|
return ;
|
|
|
}else if(Number(num) <= 0) {
|
|
}else if(Number(num) <= 0) {
|
|
|
toaster.pop('warning', '价格的信息必须是大于零的数字');
|
|
toaster.pop('warning', '价格的信息必须是大于零的数字');
|
|
|
if(isRMB) {
|
|
if(isRMB) {
|
|
|
- price.rMBPrice = null;
|
|
|
|
|
|
|
+ price.RMBPrice = null;
|
|
|
}else {
|
|
}else {
|
|
|
- price.uSDPrice = null;
|
|
|
|
|
|
|
+ price.USDPrice = null;
|
|
|
}
|
|
}
|
|
|
return ;
|
|
return ;
|
|
|
}
|
|
}
|
|
@@ -625,6 +625,12 @@ define(['app/app'], function (app) {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ $scope.updatePrice = function () {
|
|
|
|
|
+ StandardPutOnAdminService.updateQtyPrice({},{},function (data) {
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 一键更新
|
|
* 一键更新
|
|
|
*/
|
|
*/
|