Commit fc05e127 authored by dahai's avatar dahai

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

parents d89297fd 5d461a68
......@@ -37,7 +37,7 @@
<tr>
<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>
......@@ -102,7 +102,9 @@
<td ng-if="item.plasticFilmType==2">入库</td>
<td>{{item.note}}</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>
</tr>
</tbody>
......
......@@ -30,6 +30,9 @@ angular.module('AvatarCheck.filmManagement', ['ngRoute', 'AvatarCheck.http'])
plasticFilmType="1";
}
console.log(totalCount, plasticFilmType, note, name)
if (!totalCount){
MessageService.showAlert("输入耗材数量格式不正确")
}else {
HttpService.insertFilm(totalCount, plasticFilmType, note, name,1,function (data) {
$scope.totalCount="";
$scope.note=""
......@@ -40,6 +43,7 @@ angular.module('AvatarCheck.filmManagement', ['ngRoute', 'AvatarCheck.http'])
}
})
}
}
$scope.selectFilmManagement=function(){
var date =$('#datepicker').val();
......
......@@ -33,7 +33,9 @@ angular.module('AvatarCheck.materialManagement', ['ngRoute', 'AvatarCheck.http']
cardType="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) {
$scope.totalCount="";
$scope.note=""
......@@ -43,8 +45,6 @@ angular.module('AvatarCheck.materialManagement', ['ngRoute', 'AvatarCheck.http']
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