|
|
@@ -61,14 +61,19 @@ define([ 'app/app', 'jquery-uploadify' ], function(app) {
|
|
|
// $scope.sortByERP = type == $scope.sortByERP ? 'none' : type;
|
|
|
loadData();
|
|
|
}
|
|
|
-
|
|
|
- if ($location.$$path.endsWith('vendor_material_unstandard_erp')) {
|
|
|
- $scope.tab = 'unstandard_material';
|
|
|
- // $scope.standard_tab = 'unstandard';
|
|
|
- $scope.param.type = "nStandard";
|
|
|
- // $scope.param.sorting = {code : 'ASC'};
|
|
|
- $scope.isBatch = false;
|
|
|
- }
|
|
|
+ //
|
|
|
+ // var startWith = function (str, s) {
|
|
|
+ // var reg = new RegExp(str + '$');
|
|
|
+ // return reg.test(str);
|
|
|
+ // };
|
|
|
+ //
|
|
|
+ // if (startWith($location.$$path, 'vendor_material_unstandard_erp')) {
|
|
|
+ // $scope.tab = 'unstandard_material';
|
|
|
+ // // $scope.standard_tab = 'unstandard';
|
|
|
+ // $scope.param.type = "nStandard";
|
|
|
+ // // $scope.param.sorting = {code : 'ASC'};
|
|
|
+ // $scope.isBatch = false;
|
|
|
+ // }
|
|
|
|
|
|
$scope.goods = { breakUp: 1, isSelfSupport: 1, prices: [{}] };
|
|
|
$scope.isSelfSupport = true;
|