Commit e820f312 authored by eddie.woo's avatar eddie.woo

reset form

parent afa5fe89
...@@ -108,8 +108,13 @@ ...@@ -108,8 +108,13 @@
//关闭配置框 //关闭配置框
$scope.cancelModal = function () { $scope.cancelModal = function () {
// $('#configForm')[0].reset(); $scope.formParam = {
$scope.formParam = {} startDate: null,
endDate: null,
};
$('#configForm')[0].reset();
$scope.isShowBaseCrCode = false;
$scope.isAccount = false;
}; };
//编辑 //编辑
...@@ -217,6 +222,9 @@ ...@@ -217,6 +222,9 @@
{'key': '贷方发生额', 'val': 5}, {'key': '贷方发生额', 'val': 5},
], ],
onSelectionChanged: function (e) { onSelectionChanged: function (e) {
if (!e.selectedItem) {
return;
}
if (4 === e.selectedItem.val || 5 === e.selectedItem.val) { if (4 === e.selectedItem.val || 5 === e.selectedItem.val) {
$scope.isShowBaseCrCode = true; $scope.isShowBaseCrCode = true;
}else { }else {
...@@ -238,6 +246,9 @@ ...@@ -238,6 +246,9 @@
{'key': '手工录入', 'val': 2}, {'key': '手工录入', 'val': 2},
], ],
onSelectionChanged: function (e) { onSelectionChanged: function (e) {
if (!e.selectedItem) {
return;
}
if (1 === e.selectedItem.val) { if (1 === e.selectedItem.val) {
$scope.isAccount = true; $scope.isAccount = true;
}else { }else {
......
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