Commit 7eda7160 authored by 顾俭's avatar 顾俭

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

parent 66816545
...@@ -13,9 +13,13 @@ angular.module('IOne').controller('BarcodeQueryController', function ($scope, Co ...@@ -13,9 +13,13 @@ 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.dtlMessage = response.data.message;
if ($scope.dtlMessage.charAt($scope.dtlMessage.length - 1) == 'Y') {
$scope.okStatus = true; $scope.okStatus = true;
} else {
$scope.okStatus = false;
}
UtilService.showInfo(response.data.message); UtilService.showInfo(response.data.message);
$scope.dtlMessage = 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