|
|
@@ -2915,20 +2915,22 @@ define([ 'app/app', 'jquery-uploadify' ], function(app) {
|
|
|
else if (!productReplaceList[i].ptrBranden) {
|
|
|
$scope.errorObj[i].brand = 1;
|
|
|
}
|
|
|
- productReplaceList[i].detno = i + 1;
|
|
|
+ // productReplaceList[i].detno = i + 1;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if ($scope.errorObj[i].code == 1 || $scope.errorObj[i].brand == 1) {
|
|
|
toaster.pop('error', '请填完整信息');
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- var _productReplaceList = productReplaceList.filter(function(item, index) {
|
|
|
+ var _productReplaceList = productReplaceList.filter(function(item) {
|
|
|
return !item['index']
|
|
|
})
|
|
|
|
|
|
+ for(var j = 0; j < _productReplaceList.length; j++) {
|
|
|
+ _productReplaceList[j].detno = j + 1;
|
|
|
+ }
|
|
|
console.log(_productReplaceList)
|
|
|
|
|
|
|