Commit 70cf5aa8 authored by suichenguang's avatar suichenguang

Merge remote-tracking branch 'origin/dev' into dev

parents fedf4f05 89a2b19e
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
提示 提示
</div> </div>
<div class="ui-dialog-content"> <div class="ui-dialog-content">
<div>确认删除{{startDate}}到{{endDate}}导入的{{total}}条记录吗?</div> <div>确认删除<span ng-if="startDate">{{startDate}}到{{endDate}}导入的</span>{{total}}条记录吗?</div>
</div> </div>
<div class="ui-dialog-confirm"> <div class="ui-dialog-confirm">
<button type="submit" class="btn btn-info" ng-click="confirmDelete()">确认删除</button> <button type="submit" class="btn btn-info" ng-click="confirmDelete()">确认删除</button>
......
...@@ -225,6 +225,7 @@ angular.module('AvatarCheck', [ ...@@ -225,6 +225,7 @@ angular.module('AvatarCheck', [
} }
$scope.addQuickCardProd = function(){ $scope.addQuickCardProd = function(){
console.log($scope.searchResult.workOrderData[0].CARD_TYPE_ID)
if($(".prod:checked").length>0){ if($(".prod:checked").length>0){
var idx = $(".prod:checked").val(); var idx = $(".prod:checked").val();
var check = idx.split("+"); var check = idx.split("+");
......
...@@ -350,6 +350,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -350,6 +350,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
if(angular.isUndefined(oldPackageName)){ if(angular.isUndefined(oldPackageName)){
oldPackageName=''; oldPackageName='';
} }
console.log(oldPackageName,date)
$http({ $http({
method: 'GET', method: 'GET',
url: "../LogApi/selectAnalysisLogCount"+urlTimeStamp(), url: "../LogApi/selectAnalysisLogCount"+urlTimeStamp(),
...@@ -365,6 +366,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -365,6 +366,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
if(angular.isUndefined(oldPackageName)){ if(angular.isUndefined(oldPackageName)){
oldPackageName=''; oldPackageName='';
} }
console.log(oldPackageName,date,currentPage,itemsPerPage)
$http({ $http({
method: 'GET', method: 'GET',
url: "../LogApi/selectByAnalysisLog"+urlTimeStamp(), url: "../LogApi/selectByAnalysisLog"+urlTimeStamp(),
......
...@@ -34,7 +34,6 @@ angular.module('AvatarCheck.analysisLog', ['ngRoute', 'AvatarCheck.http', 'tm.pa ...@@ -34,7 +34,6 @@ angular.module('AvatarCheck.analysisLog', ['ngRoute', 'AvatarCheck.http', 'tm.pa
$scope.getAnalyseLog = function(){ $scope.getAnalyseLog = function(){
console.log($('#datepicker').val());
HttpService.selectAnalyseLogCount($scope.oldPackageName,$("#datepicker").val(),function (data) { HttpService.selectAnalyseLogCount($scope.oldPackageName,$("#datepicker").val(),function (data) {
$scope.paginationConf.totalItems = data; $scope.paginationConf.totalItems = data;
console.log($scope.paginationConf.totalItems) console.log($scope.paginationConf.totalItems)
......
...@@ -99,37 +99,36 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http']) ...@@ -99,37 +99,36 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http'])
if(angular.isUndefined(pcs_name)){ if(angular.isUndefined(pcs_name)){
pcs_name=''; pcs_name='';
} }
if(startDate==''){ if((startDate!=''&&endDate=='')||(endDate!=''&&startDate=='')) {
startDate=$filter("date")(new Date(), "yyyy-MM-dd"); MessageService.showAlert("请选择起始日期和结束日期")
} }else{
if(endDate==''){ ngDialog.open({
endDate=$filter("date")(new Date(), "yyyy-MM-dd"); template: 'dialogs/confirmDeleteProdCards.html' + urlTimeStamp(),
} width: 600,
ngDialog.open({ cache: false,
template: 'dialogs/confirmDeleteProdCards.html' + urlTimeStamp(), closeByDocument:false,
width: 600, controller: ['$scope', function ($scope) {
cache: false, $scope.startDate = startDate;
closeByDocument:false, $scope.endDate = endDate;
controller: ['$scope', function ($scope) { HttpService.selectXmlDataCount(startPackageNo,endPackageNo,pcs_name,startDate,endDate,function(data){
$scope.startDate = startDate; $scope.total=data;
$scope.endDate = endDate; console.log($scope.total,"count")
HttpService.selectXmlDataCount(startPackageNo,endPackageNo,pcs_name,startDate,endDate,function(data){
$scope.total=data;
console.log($scope.total,"count")
})
$scope.confirmDelete = function () {
HttpService.deleteProdCards(startPackageNo,endPackageNo,pcs_name,startDate,endDate, function (data) {
if(data){
MessageService.showAlert("删除成功");
$scope.closeThisDialog();
reGet();
}else{
MessageService.showAlert("删除失败")
}
}) })
}; $scope.confirmDelete = function () {
HttpService.deleteProdCards(startPackageNo,endPackageNo,pcs_name,startDate,endDate, function (data) {
if(data){
MessageService.showAlert("删除成功");
$scope.closeThisDialog();
reGet();
}else{
MessageService.showAlert("删除失败")
}
})
};
}]
});
}
}]
});
} }
}); });
\ No newline at end of file
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