Commit 7bef42b8 authored by ad's avatar ad

修改页面词语描述

parent effdda8f
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<tr> <tr>
<td>数量:</td> <td>数量:</td>
<td> <td>
<input type="text" class="form-control" ng-model="totalCount" placeholder="数量" required> <input type="number" ng-model="totalCount" placeholder="数量" required>
</td> </td>
<td>操作:</td> <td>操作:</td>
<td> <td>
...@@ -102,7 +102,9 @@ ...@@ -102,7 +102,9 @@
<td ng-if="item.plasticFilmType==2">入库</td> <td ng-if="item.plasticFilmType==2">入库</td>
<td>{{item.note}}</td> <td>{{item.note}}</td>
<td>{{item.name}}</td> <td>{{item.name}}</td>
<td ng-show="item.state==0"><a ng-click="updateFilmState(item)">确认审核</a></td> <td ng-show="item.state==0">
<button class="btn btn-info" ng-click="updateFilmState(item)">确认审核</button>
</td>
<td ng-show="item.state==1">已确认</td> <td ng-show="item.state==1">已确认</td>
</tr> </tr>
</tbody> </tbody>
......
...@@ -30,6 +30,9 @@ angular.module('AvatarCheck.filmManagement', ['ngRoute', 'AvatarCheck.http']) ...@@ -30,6 +30,9 @@ angular.module('AvatarCheck.filmManagement', ['ngRoute', 'AvatarCheck.http'])
plasticFilmType="1"; plasticFilmType="1";
} }
console.log(totalCount, plasticFilmType, note, name) console.log(totalCount, plasticFilmType, note, name)
if (!totalCount){
MessageService.showAlert("输入耗材数量格式不正确")
}else {
HttpService.insertFilm(totalCount, plasticFilmType, note, name,1,function (data) { HttpService.insertFilm(totalCount, plasticFilmType, note, name,1,function (data) {
$scope.totalCount=""; $scope.totalCount="";
$scope.note="" $scope.note=""
...@@ -40,6 +43,7 @@ angular.module('AvatarCheck.filmManagement', ['ngRoute', 'AvatarCheck.http']) ...@@ -40,6 +43,7 @@ angular.module('AvatarCheck.filmManagement', ['ngRoute', 'AvatarCheck.http'])
} }
}) })
} }
}
$scope.selectFilmManagement=function(){ $scope.selectFilmManagement=function(){
var date =$('#datepicker').val(); var date =$('#datepicker').val();
......
...@@ -33,7 +33,9 @@ angular.module('AvatarCheck.materialManagement', ['ngRoute', 'AvatarCheck.http'] ...@@ -33,7 +33,9 @@ angular.module('AvatarCheck.materialManagement', ['ngRoute', 'AvatarCheck.http']
cardType="1"; cardType="1";
} }
console.log(totalCount,note,cardType,cardBodyType,name,"---",totalCount>=1,"---"); console.log(totalCount,note,cardType,cardBodyType,name,"---",totalCount>=1,"---");
if (totalCount>=1){ if (!totalCount){
MessageService.showAlert("输入耗材数量格式不正确")
}else {
HttpService.insertCardBody(cardType,totalCount,note,cardBodyType,name,1,function (data) { HttpService.insertCardBody(cardType,totalCount,note,cardBodyType,name,1,function (data) {
$scope.totalCount=""; $scope.totalCount="";
$scope.note="" $scope.note=""
...@@ -43,8 +45,6 @@ angular.module('AvatarCheck.materialManagement', ['ngRoute', 'AvatarCheck.http'] ...@@ -43,8 +45,6 @@ angular.module('AvatarCheck.materialManagement', ['ngRoute', 'AvatarCheck.http']
MessageService.showAlert("添加成功") MessageService.showAlert("添加成功")
} }
}) })
}else {
MessageService.showAlert("输入耗材数量格式不正确")
} }
} }
......
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