Commit ae7ea062 authored by 顾俭's avatar 顾俭

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

parent a2729c78
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
<div class="row"> <div class="row">
<div class="col-md-8"> <div class="col-md-8">
<h1 class="pam" ng-show="okStatus">条码状态:有效</h1> <h1 class="pam" ng-show="okStatus">条码状态:有效</h1>
<h1 class="pam" ng-show="!okStatus">条码状态:无效</h1>
<h5 class="pam">{{dtlMessage}}</h5> <h5 class="pam">{{dtlMessage}}</h5>
</div> </div>
</div> </div>
......
...@@ -13,14 +13,9 @@ angular.module('IOne').controller('BarcodeQueryController', function ($scope, Co ...@@ -13,14 +13,9 @@ angular.module('IOne').controller('BarcodeQueryController', function ($scope, Co
BarcodeService.getBarcodeStatus($scope.queryCondition.factory.factoryUid, $scope.queryCondition.barcode).then( BarcodeService.getBarcodeStatus($scope.queryCondition.factory.factoryUid, $scope.queryCondition.barcode).then(
function (response) { function (response) {
if (response.data.code == '0') { if (response.data.code == '0') {
$scope.okStatus = true;
$scope.dtlMessage = response.data.message; $scope.dtlMessage = response.data.message;
if ($scope.dtlMessage.charAt($scope.dtlMessage.length - 1) == 'Y') { UtilService.showInfo(response.data.message);
$scope.okStatus = true;
UtilService.showInfo(response.data.message);
} else {
$scope.okStatus = false;
UtilService.showWarn(response.data.message);
}
} else { } else {
UtilService.showError(response.data.message); UtilService.showError(response.data.message);
$scope.dtlMessage = response.data.message; $scope.dtlMessage = response.data.message;
......
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