Commit fc05e127 authored by dahai's avatar dahai

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

parents d89297fd 5d461a68
...@@ -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,15 +30,19 @@ angular.module('AvatarCheck.filmManagement', ['ngRoute', 'AvatarCheck.http']) ...@@ -30,15 +30,19 @@ angular.module('AvatarCheck.filmManagement', ['ngRoute', 'AvatarCheck.http'])
plasticFilmType="1"; plasticFilmType="1";
} }
console.log(totalCount, plasticFilmType, note, name) console.log(totalCount, plasticFilmType, note, name)
HttpService.insertFilm(totalCount, plasticFilmType, note, name,1,function (data) { if (!totalCount){
$scope.totalCount=""; MessageService.showAlert("输入耗材数量格式不正确")
$scope.note="" }else {
if(data==false){ HttpService.insertFilm(totalCount, plasticFilmType, note, name,1,function (data) {
MessageService.showAlert("添加失败") $scope.totalCount="";
}else{ $scope.note=""
MessageService.showAlert("添加成功") if(data==false){
} MessageService.showAlert("添加失败")
}) }else{
MessageService.showAlert("添加成功")
}
})
}
} }
$scope.selectFilmManagement=function(){ $scope.selectFilmManagement=function(){
......
...@@ -33,18 +33,18 @@ angular.module('AvatarCheck.materialManagement', ['ngRoute', 'AvatarCheck.http'] ...@@ -33,18 +33,18 @@ 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){
HttpService.insertCardBody(cardType,totalCount,note,cardBodyType,name,1,function (data) {
$scope.totalCount="";
$scope.note=""
if(data==false){
MessageService.showAlert("添加失败")
}else{
MessageService.showAlert("添加成功")
}
})
}else {
MessageService.showAlert("输入耗材数量格式不正确") MessageService.showAlert("输入耗材数量格式不正确")
}else {
HttpService.insertCardBody(cardType,totalCount,note,cardBodyType,name,1,function (data) {
$scope.totalCount="";
$scope.note=""
if(data==false){
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