Commit e7694d10 authored by 顾俭's avatar 顾俭

aship/aship#3 防伪码功能-作废重打:UI

parent 47834c37
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<div class="col-md-4"> <div class="col-md-4">
<div class="form-group"> <div class="form-group">
<label>营运中心</label> <label>营运中心</label>
<select class="form-control select2" ng-model="queryCondition.factory.factoryUid" required style="width: 100%;"> <select class="form-control select2" ng-model="queryCondition.factory.factoryUid" required style="width: 100%;" ng-change="barcodeChange()">
<option ng-repeat="factory in factories" value="{{factory.factoryUid}}">{{factory.name}}</option> <option ng-repeat=" factory in factories" value="{{factory.factoryUid}}">{{factory.name}}</option>
</select> </select>
</div> </div>
</div> </div>
......
angular.module('IOne').controller('BarcodeQueryController', function ($scope, Constants, $interval, $uibModal, UtilService, angular.module('IOne').controller('BarcodeQueryController', function ($scope, Constants, $interval, $uibModal, UtilService,
BaseFactoryFileService, AuthService, BarcodeService) { BaseFactoryFileService, AuthService, BarcodeService) {
$scope.queryCondition = { $scope.queryCondition = {
factory: {id: null}, factory: {factoryUid: null},
barcode: null barcode: null
}; };
...@@ -81,7 +81,7 @@ angular.module('IOne').controller('BarcodeQueryController', function ($scope, Co ...@@ -81,7 +81,7 @@ angular.module('IOne').controller('BarcodeQueryController', function ($scope, Co
BaseFactoryFileService.getByAccount().then(function (response) { BaseFactoryFileService.getByAccount().then(function (response) {
$scope.factories = response; $scope.factories = response;
if ($scope.factories.length > 0) { if ($scope.factories.length > 0) {
$scope.queryCondition.factory.id = $scope.factories[0].id; $scope.queryCondition.factory.factoryUid = $scope.factories[0].factoryUid;
} }
}); });
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment