Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
010d77e1
Commit
010d77e1
authored
Apr 18, 2019
by
ken.q.you
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 社会信用代码 verify---Ken
parent
cab15ab1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
4 deletions
+36
-4
edit-organization-modal.ctrl.js
...s/edit-organization-modal/edit-organization-modal.ctrl.js
+36
-4
No files found.
atms-web/src/main/webapp/app/common/controls/edit-organization-modal/edit-organization-modal.ctrl.js
View file @
010d77e1
...
...
@@ -107,7 +107,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
var
saveInternationalOrg
=
function
()
{
$scope
.
orgControlForm
.
$setSubmitted
();
if
(
saveVerify
())
return
;
var
editModel
=
$scope
.
editOrgModel
;
// 是否为境外企业
...
...
@@ -197,8 +197,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
}
};
var
saveLocalOrg
=
function
()
{
$scope
.
orgControlForm
.
$setSubmitted
();
var
saveVerify
=
function
()
{
var
fail
=
false
;
...
...
@@ -218,8 +217,41 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
return
false
;
}
});
var
taxPlayer
=
$scope
.
editOrgModel
.
taxPayerNumber
;
if
(
!
(
taxPlayer
.
length
===
18
)){
SweetAlert
.
error
(
$translate
.
instant
(
'UnifiedSocialCreditCode'
)
+
"长度必须为18位"
);
fail
=
true
;
return
fail
;
};
if
(
fail
)
return
;
return
fail
;
}
var
saveLocalOrg
=
function
()
{
$scope
.
orgControlForm
.
$setSubmitted
();
// var fail = false;
// if($('.localRequired').attr("required")==="required"){
// $('.localRequired').each( function (index,ele){
// if(null==ele.value||""===ele.value){
// SweetAlert.error("请检查必填项");
// fail = true;
// return false;
// }
// });
// };
// $('.orgAreaRequired').each( function (index,ele){
// if(null==ele.innerText||""===ele.innerText){
// SweetAlert.error("请检查必填项");
// fail = true;
// return false;
// }
// });
console
.
log
(
saveVerify
());
if
(
saveVerify
())
return
;
var
hasSpecialChar
=
window
.
PWC
.
hasSpecialChar
(
$scope
.
editOrgModel
.
name
);
if
(
hasSpecialChar
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment