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
61649b25
Commit
61649b25
authored
Mar 02, 2019
by
gary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、fixbug
parent
8d2b4f76
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
101 additions
and
78 deletions
+101
-78
basicData.json
...b/src/main/webapp/app-resources/i18n/en-us/basicData.json
+4
-3
basicData.json
...b/src/main/webapp/app-resources/i18n/zh-CN/basicData.json
+2
-0
organization-manage.ctrl.js
...astructure/organizationManage/organization-manage.ctrl.js
+24
-19
organization-manage.html
...nfrastructure/organizationManage/organization-manage.html
+3
-3
edit-equity-change-modal.ctrl.js
...edit-equity-change-modal/edit-equity-change-modal.ctrl.js
+16
-4
edit-equity-modal.ctrl.js
...mmon/controls/edit-equity-modal/edit-equity-modal.ctrl.js
+15
-30
edit-equity-modal.html
.../common/controls/edit-equity-modal/edit-equity-modal.html
+1
-1
edit-organization-modal.ctrl.js
...s/edit-organization-modal/edit-organization-modal.ctrl.js
+21
-5
edit-organization-modal.html
...rols/edit-organization-modal/edit-organization-modal.html
+15
-13
No files found.
atms-web/src/main/webapp/app-resources/i18n/en-us/basicData.json
View file @
61649b25
...
...
@@ -149,5 +149,6 @@
"ErrorMesssage"
:
"Error Message"
,
"ImportPartialSuccess"
:
"Import with some errors"
,
"ImportErrorMsg"
:
"Three are {NumberOfError} error(s),Please revise and import again(only import the error record(s))."
,
"CustomerImportDataFormatError"
:
"Import customer list with data format error"
}
\ No newline at end of file
"CustomerImportDataFormatError"
:
"Import customer list with data format error"
,
"UnSave"
:
"You need save first!"
}
\ No newline at end of file
atms-web/src/main/webapp/app-resources/i18n/zh-CN/basicData.json
View file @
61649b25
...
...
@@ -402,6 +402,7 @@
"VendorListManageVLNameRequired"
:
"供应商名称不能为空"
,
"WordLibraryTitle"
:
"字库"
,
"notAllowDisableMessage"
:
"机构中已关联,不允许停用"
,
"UnSave"
:
"未点击保存按钮!"
,
"~MustBeEndOneApp"
:
"I Must be the End One, please!"
}
\ No newline at end of file
atms-web/src/main/webapp/app/admin/infrastructure/organizationManage/organization-manage.ctrl.js
View file @
61649b25
...
...
@@ -2176,7 +2176,6 @@
},
function
(
isConfirm
)
{
if
(
isConfirm
)
{
// 选中
updateOrgExtraInfo
(
$scope
.
selectCompany
.
id
);
}
...
...
@@ -2184,24 +2183,27 @@
};
var
updateOrgExtraInfo
=
function
(
id
)
{
var
data
=
$scope
.
editOrgExtraModel
;
data
.
organizationId
=
id
;
orgService
.
updateOrgExtraInfoByOrgId
(
data
).
success
(
function
(
data
)
{
if
(
data
&&
!
data
.
result
)
{
SweetAlert
.
warning
(
$translate
.
instant
(
data
.
resultMsg
));
debugger
;
var
editData
=
$scope
.
editOrgExtraModel
;
editData
.
organizationId
=
id
;
orgService
.
updateOrgExtraInfoByOrgId
(
editData
).
success
(
function
(
res
)
{
if
(
res
&&
!
res
.
result
)
{
SweetAlert
.
warning
(
$translate
.
instant
(
res
.
resultMsg
));
return
;
}
orgService
.
getSingleOrgExtra
(
id
).
success
(
function
(
data
)
{
if
(
data
==
null
)
{
SweetAlert
.
warning
(
$translate
.
instant
(
data
.
resultMsg
));
return
;
}
$scope
.
selectCompanyExtra
=
data
;
$scope
.
editOrgExtraModel
=
angular
.
copy
(
data
);
generalSelectCompanyExtraText
();
$scope
.
updateOrgExtraCancel
();
SweetAlert
.
success
(
$translate
.
instant
(
'OrganizationExtraInfoEditSuccess'
));
});
if
(
res
)
{
orgService
.
getSingleOrgExtra
(
id
).
success
(
function
(
data
)
{
if
(
data
==
null
)
{
SweetAlert
.
warning
(
$translate
.
instant
(
data
.
resultMsg
));
return
;
}
$scope
.
editOrgExtraModel
=
angular
.
copy
(
data
);
generalSelectCompanyExtraText
();
$scope
.
updateOrgExtraCancel
();
$scope
.
selectCompanyExtra
=
data
;
SweetAlert
.
success
(
$translate
.
instant
(
'OrganizationExtraInfoEditSuccess'
));
});
}
});
};
...
...
@@ -2232,16 +2234,19 @@
var
generalSelectCompanyText
=
function
(){
if
(
$scope
.
selectCompany
.
engageNationalProhibitIndustry
!=
null
){
$scope
.
selectCompany
.
engageNationalProhibitIndustry
=
$scope
.
selectCompany
.
engageNationalProhibitIndustry
?
"是"
:
"否"
;
$scope
.
selectCompany
.
engageNationalProhibitIndustry
Str
=
$scope
.
selectCompany
.
engageNationalProhibitIndustry
?
"是"
:
"否"
;
}
if
(
$scope
.
selectCompany
.
nationalEconomicIndustry
!=
null
){
$scope
.
nationalEconomicIndustryList
.
map
(
function
(
value
,
index
){
if
(
value
.
code
===
$scope
.
selectCompany
.
nationalEconomicIndustry
)
{
$scope
.
selectCompany
.
nationalEconomicIndustry
=
value
.
code
+
"-"
+
value
.
type
;
$scope
.
selectCompany
.
nationalEconomicIndustry
Str
=
value
.
code
+
"-"
+
value
.
type
;
return
;
}
});
if
(
null
==
$scope
.
selectCompany
.
nationalEconomicIndustryStr
||
""
===
$scope
.
selectCompany
.
nationalEconomicIndustryStr
){
$scope
.
selectCompany
.
nationalEconomicIndustryStr
=
$scope
.
selectCompany
.
nationalEconomicIndustry
;
}
}
};
...
...
atms-web/src/main/webapp/app/admin/infrastructure/organizationManage/organization-manage.html
View file @
61649b25
...
...
@@ -140,7 +140,7 @@
<div
class=
"form-group"
ng-show=
"!isInternational"
>
<div
class=
"col-sm-12"
>
<span
class=
"control-label"
>
{{'NationalEconomicIndustry' | translate}}:
<span
title=
"{{selectCompany.nationalEconomicIndustry}}"
>
{{selectCompany.nationalEconomicIndustry }}
</span></span>
title=
"{{selectCompany.nationalEconomicIndustry}}"
>
{{selectCompany.nationalEconomicIndustry
Str
}}
</span></span>
</div>
</div>
<div
class=
"form-group"
>
...
...
@@ -203,7 +203,7 @@
<div
class=
"form-group"
ng-show=
"!isInternational"
>
<div
class=
"col-sm-12"
>
<span
class=
"control-label"
>
{{'EngageNationalProhibitIndustry' | translate}}:
<span
title=
"{{selectCompany.engageNationalProhibitIndustry}}"
>
{{selectCompany.engageNationalProhibitIndustry}}
</span></span>
title=
"{{selectCompany.engageNationalProhibitIndustry}}"
>
{{selectCompany.engageNationalProhibitIndustry
Str
}}
</span></span>
</div>
</div>
</div>
...
...
@@ -785,7 +785,7 @@
<div
class=
"form-group"
ng-show=
"isInternational"
>
<div
class=
"col-sm-12"
>
<span
class=
"control-label"
>
{{'FiscalYearDeadline' | translate}}:
<span
title=
"{{selectCompanyExtra.fiscalYearDeadline}}"
>
{{selectCompanyExtra.fiscalYearDeadline
}}
</span>
title=
"{{selectCompanyExtra.fiscalYearDeadline}}"
>
{{selectCompanyExtra.fiscalYearDeadline
|date:'yyyy-MM-dd'
}}
</span>
<input
class=
"input-group"
style=
"display: none"
ng-model=
"editOrgExtraModel.fiscalYearDeadline"
title=
"{{selectCompanyExtra.fiscalYearDeadline}}"
...
...
atms-web/src/main/webapp/app/common/controls/edit-equity-change-modal/edit-equity-change-modal.ctrl.js
View file @
61649b25
...
...
@@ -5,6 +5,10 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', '
var
selectedModel
=
'.editEquityChangeControlPop'
;
//'#addOrgControlPop' + $scope.dimensionId;
$scope
.
pleaseSelect
=
$translate
.
instant
(
'PleaseSelect'
);
$scope
.
startDate
=
new
Date
(
new
Date
().
getFullYear
()
-
20
,
1
,
1
);
$scope
.
endDate
=
new
Date
(
new
Date
().
getFullYear
()
+
20
,
1
,
1
);
$scope
.
viewMode
=
1
;
$scope
.
showPage
=
function
(
pageIndex
)
{
...
...
@@ -233,6 +237,7 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', '
$scope
.
orgHasAccountMapping
=
false
;
orgService
.
getSingleOrg
(
orgId
).
success
(
function
(
orgData
)
{
orgData
.
updateTime
=
$filter
(
'date'
)(
orgData
.
updateTime
,
'yyyy-MM-dd'
);
$scope
.
selectCompany
=
orgData
;
$scope
.
editOrgModel
=
orgData
;
});
...
...
@@ -449,11 +454,18 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', '
};
var
initDatePicker
=
function
()
{
$
(
'.changeDatepicker'
).
datepicker
({
format
:
"yyyy/mm/dd"
,
startDate
:
new
Date
().
formatDateTime
(
'yyyy-MM-dd'
),
minuteStep
:
10
var
ele
=
$
(
".changeDatepicker"
);
ele
.
datepicker
({
startDate
:
$scope
.
startDate
,
endDate
:
$scope
.
endDate
,
viewMode
:
$scope
.
viewMode
,
minViewMode
:
$scope
.
viewMode
,
autoclose
:
true
,
//选中之后自动隐藏日期选择框
clearBtn
:
true
,
//清除按钮
todayBtn
:
false
,
//今日按钮
format
:
'yyyy-mm-dd'
//日期格式,详见 http://bootstrap-datepicker.readthedocs.org/en/release/options.html#format
});
ele
.
datepicker
(
"setDate"
,
new
Date
().
formatDateTime
(
'yyyy-mm-dd'
));
};
(
function
initialize
()
{
...
...
atms-web/src/main/webapp/app/common/controls/edit-equity-modal/edit-equity-modal.ctrl.js
View file @
61649b25
...
...
@@ -6,6 +6,8 @@ controller('editEquityModalController', ['$scope', '$log', '$translate', 'uiGrid
$scope
.
pleaseSelect
=
$translate
.
instant
(
'PleaseSelect'
);
$scope
.
updated
=
false
;
var
defaultSelcectRegion
=
{
id
:
0
,
name
:
''
,
...
...
@@ -169,6 +171,7 @@ controller('editEquityModalController', ['$scope', '$log', '$translate', 'uiGrid
equityService
.
insert
(
equities
).
success
(
function
(
data
)
{
if
(
data
)
{
refreshEquity
(
$scope
.
selectedOrganization
.
id
);
$scope
.
updated
=
true
;
return
;
}
else
{
SweetAlert
.
success
(
$translate
.
instant
(
'SaveFail'
));
...
...
@@ -185,6 +188,7 @@ controller('editEquityModalController', ['$scope', '$log', '$translate', 'uiGrid
equityService
.
update
(
equityData
).
success
(
function
(
data
)
{
if
(
data
)
{
refreshEquity
(
$scope
.
selectedOrganization
.
id
);
$scope
.
updated
=
true
;
return
;
}
else
{
SweetAlert
.
success
(
$translate
.
instant
(
'UpdateFail'
));
...
...
@@ -200,6 +204,7 @@ controller('editEquityModalController', ['$scope', '$log', '$translate', 'uiGrid
equityService
.
delete
(
$scope
.
equityId
,
removeList
).
success
(
function
(
data
)
{
if
(
data
)
{
refreshEquity
(
$scope
.
selectedOrganization
.
id
);
$scope
.
updated
=
true
;
return
;
}
else
{
SweetAlert
.
success
(
$translate
.
instant
(
'DeleteFail'
));
...
...
@@ -364,36 +369,6 @@ controller('editEquityModalController', ['$scope', '$log', '$translate', 'uiGrid
}
};
// 设置时间控件
var
setDatepickerRow
=
function
(
rowData
)
{
$
(
"#"
+
rowData
.
fromID
).
datepicker
({
minViewMode
:
1
,
autoclose
:
true
,
language
:
"zh-CN"
,
format
:
"yyyy-mm"
});
$
(
"#"
+
rowData
.
toID
).
datepicker
({
minViewMode
:
1
,
autoclose
:
true
,
language
:
"zh-CN"
,
format
:
"yyyy-mm"
});
$
(
"#"
+
rowData
.
fromID
).
on
(
'changeDate'
,
function
()
{
if
(
$
(
"#"
+
rowData
.
fromID
).
val
===
''
)
{
}
else
{
$
(
"#"
+
rowData
.
toID
).
datepicker
(
'setStartDate'
,
$
(
"#"
+
rowData
.
fromID
).
val
());
}
});
// 默认的错误信息先设置为空
rowData
.
startDateError
=
null
;
rowData
.
endDateError
=
null
;
};
// 说明
$scope
.
resources
=
{
OrganizationName
:
$translate
.
instant
(
'OrganizationName'
),
...
...
@@ -450,6 +425,16 @@ controller('editEquityModalController', ['$scope', '$log', '$translate', 'uiGrid
$scope
.
operateType
=
null
;
});
$scope
.
confirm
=
function
()
{
if
(
$scope
.
updated
){
$scope
.
updated
=
false
;
$
(
'.confirmBtn'
).
attr
(
"data-dismiss"
,
"modal"
);
$scope
.
operateType
=
null
;
}
else
{
SweetAlert
.
warning
(
$translate
.
instant
(
'UnSave'
));
}
};
$scope
.
closeModal
=
function
()
{
$scope
.
operateType
=
null
;
};
...
...
atms-web/src/main/webapp/app/common/controls/edit-equity-modal/edit-equity-modal.html
View file @
61649b25
...
...
@@ -49,7 +49,7 @@
<div
class=
"modal-footer"
id=
"orgModalFooter"
style=
"padding-left:139px;"
>
<button
type=
"submit"
class=
"btn btn-primary
"
ng-click=
"closeModal()"
data-dismiss=
"modal
"
>
<button
type=
"submit"
class=
"btn btn-primary
confirmBtn"
ng-click=
"confirm()
"
>
{{'Confirm' | translate}}
</button>
<button
type=
"button"
class=
"btn btn-third"
ng-click=
"closeModal()"
data-dismiss=
"modal"
>
...
...
atms-web/src/main/webapp/app/common/controls/edit-organization-modal/edit-organization-modal.ctrl.js
View file @
61649b25
...
...
@@ -5,7 +5,9 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
var
selectedModel
=
'.addOrgControlPop'
;
//'#addOrgControlPop' + $scope.dimensionId;
$scope
.
pleaseSelect
=
$translate
.
instant
(
'PleaseSelect'
);
$scope
.
startDate
=
new
Date
(
new
Date
().
getFullYear
()
-
20
,
1
,
1
);
$scope
.
endDate
=
new
Date
(
new
Date
().
getFullYear
()
+
20
,
1
,
1
);
$scope
.
viewMode
=
1
;
var
defaultSelcectRegion
=
{
id
:
0
,
...
...
@@ -180,6 +182,11 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
if
(
$scope
.
componentSelectedArea
)
{
editModel
.
areaID
=
$scope
.
selectedAreaId
;
}
if
((
typeof
$scope
.
editOrgModel
.
foundationDate
)
===
"string"
){
if
(
""
!==
(
$scope
.
editOrgModel
.
foundationDate
))
{
$scope
.
editOrgModel
.
foundationDate
=
new
Date
(
Date
.
parse
(
$scope
.
editOrgModel
.
foundationDate
.
replace
(
/-/g
,
"/"
)));
}
}
//账套
if
(
$scope
.
orgAccountList
)
{
...
...
@@ -991,6 +998,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
// 登记状态
$scope
.
regStatusList
=
constant
.
RegStatusList
;
$scope
.
architectureTypeList
=
constant
.
ArchitectureTypeList
;
$scope
.
nationalEconomicIndustryList
=
constant
.
NationalEconomicIndustryList
;
$scope
.
trueFalse
=
constant
.
trueFalse
;
debugger
;
$
(
'.localRequired'
).
attr
(
"required"
,
true
);
...
...
@@ -1063,11 +1071,19 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
};
var
initDatePicker
=
function
()
{
$
(
'.startDatepicker'
).
datepicker
({
format
:
"yyyy/mm/dd"
,
startDate
:
new
Date
().
formatDateTime
(
'yyyy-MM-dd'
),
minuteStep
:
10
var
ele
=
$
(
".startDatepicker"
);
ele
.
datepicker
({
startDate
:
$scope
.
startDate
,
endDate
:
$scope
.
endDate
,
viewMode
:
$scope
.
viewMode
,
minViewMode
:
$scope
.
viewMode
,
autoclose
:
true
,
//选中之后自动隐藏日期选择框
clearBtn
:
true
,
//清除按钮
todayBtn
:
false
,
//今日按钮
format
:
'yyyy/mm/dd'
//日期格式,详见 http://bootstrap-datepicker.readthedocs.org/en/release/options.html#format
});
ele
.
datepicker
(
"setDate"
,
new
Date
().
formatDateTime
(
'yyyy/mm/dd'
));
};
// 获取修改机构的时候,自定义维度列表
...
...
atms-web/src/main/webapp/app/common/controls/edit-organization-modal/edit-organization-modal.html
View file @
61649b25
...
...
@@ -63,14 +63,11 @@
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
></span>
{{'OrganizationNameEn' |
translate}}:
</label>
<div
class=
"col-sm-9"
ng-class=
"{'has-error':orgControlForm.englishName.$invalid && (orgControlForm.englishName.$dirty || orgControlForm.$submitted)}"
>
<div
class=
"col-sm-9"
>
<input
class=
"form-control"
id=
"englishName"
ng-model=
"editOrgModel.englishName"
name=
"englishName"
placeholder=
"{{resources.OrganizationNameEn}}"
ng-keyup=
"nameKeyUp()"
maxlength=
"100"
>
<p
ng-show=
"editOrgModel.nameError"
class=
"has-error label"
>
{{editOrgModel.nameError}}
</p>
</div>
</div>
...
...
@@ -115,14 +112,14 @@
<!--注册地-->
<div
class=
"form-group"
ng-show=
"isLocal"
>
<label
for=
"regist
rationLocation
"
class=
"col-sm-3 control-label"
>
{{'RegistrationLocation'
<label
for=
"regist
erAddress
"
class=
"col-sm-3 control-label"
>
{{'RegistrationLocation'
| translate}}:
</label>
<div
class=
"col-sm-9"
ng-class=
"{'has-error':orgControlForm.regist
rationLocation.$invalid && (orgControlForm.registrationLocation
.$dirty || orgControlForm.$submitted)}"
>
<input
class=
"form-control"
name=
"regist
rationLocation
"
id=
"regist
rationLocation
"
ng-model=
"editOrgModel.regist
rationLocation
"
placeholder=
"{{resources.
RegistrationLocation}}"
maxlength=
"5
0"
>
ng-class=
"{'has-error':orgControlForm.regist
erAddress.$invalid && (orgControlForm.registerAddress
.$dirty || orgControlForm.$submitted)}"
>
<input
class=
"form-control"
name=
"regist
erAddress
"
id=
"regist
erAddress
"
ng-model=
"editOrgModel.regist
erAddress
"
placeholder=
"{{resources.
registerAddress}}"
maxlength=
"10
0"
>
</div>
</div>
...
...
@@ -145,10 +142,15 @@
| translate}}:
</label>
<div
class=
"col-sm-9"
ng-class=
"{'has-error':orgControlForm.nationalEconomicIndustry.$invalid && (orgControlForm.nationalEconomicIndustry.$dirty || orgControlForm.$submitted)}"
>
<input
class=
"form-control"
name=
"nationalEconomicIndustry"
<
!--<
input class="form-control" name="nationalEconomicIndustry"
id="nationalEconomicIndustry"
ng-model="editOrgModel.nationalEconomicIndustry"
placeholder=
"{{resources.NationalEconomicIndustry}}"
maxlength=
"50"
>
placeholder="{{resources.NationalEconomicIndustry}}" maxlength="50">-->
<select
class=
"form-control"
id=
'nationalEconomicIndustry'
name=
"nationalEconomicIndustry"
ng-model=
"editOrgModel.nationalEconomicIndustry"
ng-options=
"x.code as x.type for x in nationalEconomicIndustryList"
>
<option
value=
""
>
{{resources.NationalEconomicIndustry}}
</option>
</select>
</div>
</div>
...
...
@@ -303,7 +305,7 @@
<select
class=
"form-control"
id=
'engageNationalProhibitIndustry'
name=
"engageNationalProhibitIndustry"
ng-model=
"editOrgModel.engageNationalProhibitIndustry"
ng-options=
"x.code as x.type for x in trueFalse"
>
<option
value=
""
>
{{resources.
e
ngageNationalProhibitIndustry}}
</option>
<option
value=
""
>
{{resources.
E
ngageNationalProhibitIndustry}}
</option>
</select>
<p
ng-show=
"orgControlForm.engageNationalProhibitIndustry.$error.required && (orgControlForm.engageNationalProhibitIndustry.$dirty || orgControlForm.$submitted)"
class=
"has-error label"
>
...
...
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