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
96dd4241
Commit
96dd4241
authored
Apr 19, 2019
by
kevin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_mysql' of
http://code.tech.tax.asia.pwcinternal.com/root/atms
into dev_mysql
parents
67582adc
11c7cf69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
299 additions
and
307 deletions
+299
-307
organization-manage.ctrl.js
...astructure/organizationManage/organization-manage.ctrl.js
+295
-306
cit-import-asset-list.html
...t/import/cit-import-asset-list/cit-import-asset-list.html
+4
-1
No files found.
atms-web/src/main/webapp/app/admin/infrastructure/organizationManage/organization-manage.ctrl.js
View file @
96dd4241
infrastructureModule
.
controller
(
'OrganizationManageController'
,
[
'$scope'
,
'$log'
,
'orgService'
,
'$interval'
,
'uiGridTreeViewConstants'
,
'uiGridConstants'
,
'SweetAlert'
,
'projectService'
,
'$translate'
,
'$timeout'
,
'organizationStructureService'
,
'areaRegionService'
,
'apiInterceptor'
,
'enterpriseAccountService'
,
'businessUnitService'
,
'userService'
,
'roleService'
,
'$q'
,
'permissionService'
,
'dimensionService'
,
'region'
,
'equityService'
,
'orgExtraService'
,
function
(
$scope
,
$log
,
orgService
,
$interval
,
uiGridTreeViewConstants
,
uiGridConstants
,
SweetAlert
,
projectService
,
$translate
,
$timeout
,
organizationStructureService
,
areaRegionService
,
apiInterceptor
,
enterpriseAccountService
,
businessUnitService
,
userService
,
roleService
,
$q
,
permissionService
,
dimensionService
,
region
,
equityService
,
orgExtraService
)
{
.
controller
(
'OrganizationManageController'
,
[
'$scope'
,
'$log'
,
'orgService'
,
'$interval'
,
'uiGridTreeViewConstants'
,
'uiGridConstants'
,
'SweetAlert'
,
'projectService'
,
'$translate'
,
'$timeout'
,
'organizationStructureService'
,
'areaRegionService'
,
'apiInterceptor'
,
'enterpriseAccountService'
,
'businessUnitService'
,
'userService'
,
'roleService'
,
'$q'
,
'permissionService'
,
'dimensionService'
,
'region'
,
'equityService'
,
'orgExtraService'
,
function
(
$scope
,
$log
,
orgService
,
$interval
,
uiGridTreeViewConstants
,
uiGridConstants
,
SweetAlert
,
projectService
,
$translate
,
$timeout
,
organizationStructureService
,
areaRegionService
,
apiInterceptor
,
enterpriseAccountService
,
businessUnitService
,
userService
,
roleService
,
$q
,
permissionService
,
dimensionService
,
region
,
equityService
,
orgExtraService
)
{
'use strict'
;
$scope
.
expanded
=
false
;
...
...
@@ -23,8 +23,8 @@
$scope
.
isNotHundred
=
false
;
$scope
.
editOrgExtraModel
=
{};
var
translate
=
{
Enabled
:
$translate
.
instant
(
'BusinessUnitActive'
),
//已启用
var
translate
=
{
Enabled
:
$translate
.
instant
(
'BusinessUnitActive'
),
//已启用
Disabled
:
$translate
.
instant
(
'BusinessUnitDisabled'
)
//已停用
};
...
...
@@ -46,7 +46,7 @@
if
(
$scope
.
isLoadComplete
)
{
var
y
=
$
(
".company-detail"
).
height
();
var
parent
=
$
(
'.org-right-container'
).
height
();
return
{
height
:
parent
-
y
+
'px'
};
return
{
height
:
parent
-
y
+
'px'
};
}
return
{};
...
...
@@ -117,8 +117,7 @@
});
if
(
findResult
)
{
return
findResult
.
name
;
}
else
{
}
else
{
return
''
;
}
},
...
...
@@ -128,8 +127,7 @@
});
if
(
findResult
)
{
return
findResult
.
name
;
}
else
{
}
else
{
return
''
;
}
}
...
...
@@ -261,25 +259,25 @@
},*/
columns
:
[
{
dataField
:
"id"
,
visible
:
false
,
allowHeaderFiltering
:
false
dataField
:
"id"
,
visible
:
false
,
allowHeaderFiltering
:
false
},
{
dataField
:
"eNum"
,
visible
:
false
,
visible
:
false
,
sortOrder
:
"asc"
,
allowHeaderFiltering
:
false
allowHeaderFiltering
:
false
},
{
dataField
:
"organizationId"
,
visible
:
false
,
allowHeaderFiltering
:
false
visible
:
false
,
allowHeaderFiltering
:
false
},
{
dataField
:
"investorName"
,
caption
:
$translate
.
instant
(
'InvestorName'
),
allowHeaderFiltering
:
false
allowHeaderFiltering
:
false
},
{
dataField
:
"investorEconomicNature"
,
...
...
@@ -317,7 +315,7 @@
},
{
dataField
:
"payableShareholderIdNum"
,
visible
:
false
,
visible
:
false
,
caption
:
$translate
.
instant
(
'PayableShareholderIdNum'
),
allowHeaderFiltering
:
false
},
...
...
@@ -339,10 +337,9 @@
],
onContentReady
:
function
(
e
)
{
$scope
.
orgEquityListInstance
=
e
.
component
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
}
},
loadPanel
:
{
...
...
@@ -401,7 +398,7 @@
{
dataField
:
"createTime"
,
caption
:
$translate
.
instant
(
'RevisionDate'
),
allowHeaderFiltering
:
false
,
allowHeaderFiltering
:
false
,
dataType
:
"date"
},
{
...
...
@@ -416,9 +413,9 @@
},
{
caption
:
$translate
.
instant
(
'Operation'
),
width
:
'10%'
,
cellTemplate
:
function
(
cellElement
,
cellInfo
)
{
if
(
cellInfo
.
rowIndex
===
0
)
{
width
:
'10%'
,
cellTemplate
:
function
(
cellElement
,
cellInfo
)
{
if
(
cellInfo
.
rowIndex
===
0
)
{
var
$button
=
$
(
"<button>"
)
.
text
(
" 撤销变更"
)
.
addClass
(
"btn"
)
...
...
@@ -449,10 +446,9 @@
},
onContentReady
:
function
(
e
)
{
$scope
.
equityDetailInstance
=
e
.
component
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
}
},
loadPanel
:
{
...
...
@@ -503,10 +499,10 @@
},
function
(
isConfirm
)
{
if
(
isConfirm
)
{
equityService
.
cancelChange
(
rowData
.
data
.
originalState
,
rowData
.
data
.
updateState
).
success
(
function
(
data
)
{
if
(
data
)
{
equityService
.
cancelChange
(
rowData
.
data
.
originalState
,
rowData
.
data
.
updateState
).
success
(
function
(
data
)
{
if
(
data
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'CancelChangeEquitySuccess'
));
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'CancelChangeEquityFailed'
));
}
});
...
...
@@ -520,18 +516,18 @@
//todo 绑定数据
dataSource
:
new
DevExpress
.
data
.
DataSource
({
load
:
function
(
loadOptions
)
{
if
(
key
.
rowIndex
===
1
)
{
if
(
key
.
rowIndex
===
1
)
{
var
deferred
=
$q
.
defer
();
return
equityService
.
getEquityById
(
key
.
data
.
id
).
success
(
function
(
response
)
{
deferred
.
resolve
({
data
:
response
,
totalCount
:
response
.
length
});
deferred
.
resolve
({
data
:
response
,
totalCount
:
response
.
length
});
}).
error
(
function
()
{
deferred
.
reject
(
"Data Loading Error"
);
});
return
deferred
.
promise
;
}
else
{
}
else
{
var
deferred
=
$q
.
defer
();
return
equityService
.
getEquityHisById
(
key
.
data
.
id
).
success
(
function
(
response
)
{
deferred
.
resolve
({
data
:
response
,
totalCount
:
response
.
length
});
deferred
.
resolve
({
data
:
response
,
totalCount
:
response
.
length
});
}).
error
(
function
()
{
deferred
.
reject
(
"Data Loading Error"
);
});
...
...
@@ -543,25 +539,25 @@
showBorders
:
true
,
columns
:
[
{
dataField
:
"id"
,
visible
:
false
,
allowHeaderFiltering
:
false
dataField
:
"id"
,
visible
:
false
,
allowHeaderFiltering
:
false
},
{
dataField
:
"eNum"
,
visible
:
false
,
visible
:
false
,
sortOrder
:
"asc"
,
allowHeaderFiltering
:
false
allowHeaderFiltering
:
false
},
{
dataField
:
"organizationId"
,
visible
:
false
,
allowHeaderFiltering
:
false
visible
:
false
,
allowHeaderFiltering
:
false
},
{
dataField
:
"investorName"
,
caption
:
$translate
.
instant
(
'InvestorName'
),
allowHeaderFiltering
:
false
allowHeaderFiltering
:
false
},
{
dataField
:
"investorEconomicNature"
,
...
...
@@ -599,7 +595,7 @@
},
{
dataField
:
"payableShareholderIdNum"
,
visible
:
false
,
visible
:
false
,
caption
:
$translate
.
instant
(
'PayableShareholderIdNum'
),
allowHeaderFiltering
:
false
},
...
...
@@ -618,15 +614,15 @@
caption
:
$translate
.
instant
(
'PayableContributionProportion'
),
allowHeaderFiltering
:
false
}
],
],
summary
:
{
totalItems
:
[{
column
:
"money"
,
customizeText
:
"总出资额(万元)"
,
customizeText
:
"总出资额(万元)"
,
summaryType
:
"sum"
},
{
column
:
"rate"
+
"%"
,
customizeText
:
"股权总比"
,
column
:
"rate"
+
"%"
,
customizeText
:
"股权总比"
,
summaryType
:
"sum"
}]
...
...
@@ -645,11 +641,11 @@
};
var
getEquityHistoryById
=
function
(
key
)
{
if
(
key
.
rowIndex
===
1
)
{
if
(
key
.
rowIndex
===
1
)
{
equityService
.
getEquityById
(
key
.
data
.
id
).
success
(
function
(
data
)
{
return
data
;
});
}
else
{
}
else
{
equityService
.
getEquityHisById
(
key
.
data
.
id
).
success
(
function
(
data
)
{
return
data
;
});
...
...
@@ -674,15 +670,15 @@
columns
:
[
{
dataField
:
"id"
,
visible
:
false
,
visible
:
false
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'id'
)
},{
},
{
dataField
:
"index"
,
width
:
'5%'
,
width
:
'5%'
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'SequenceNoCol'
)
},{
},
{
dataField
:
"groupName"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'TaxGroup'
),
...
...
@@ -691,7 +687,7 @@
displayExpr
:
"type"
,
valueExpr
:
"type"
}
},{
},
{
dataField
:
"taxDecCycle"
,
allowHeaderFiltering
:
true
,
caption
:
$translate
.
instant
(
'TaxDecCycle'
),
...
...
@@ -700,7 +696,7 @@
displayExpr
:
"type"
,
valueExpr
:
"type"
}
},{
},
{
dataField
:
"taxDecType"
,
allowHeaderFiltering
:
true
,
caption
:
$translate
.
instant
(
'TaxDecType'
)
...
...
@@ -708,19 +704,18 @@
],
onContentReady
:
function
(
e
)
{
$scope
.
TaxRuleListInstance
=
e
.
component
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
}
},
onEditingStart
:
function
(
e
)
{
onEditingStart
:
function
(
e
)
{
},
onInitNewRow
:
function
(
e
)
{
onInitNewRow
:
function
(
e
)
{
},
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
var
rowData
=
e
.
data
;
rowData
.
organizationId
=
$scope
.
selectCompany
.
id
;
delete
rowData
.
__KEY__
;
...
...
@@ -729,40 +724,40 @@
if
(
data
)
{
getTaxRuleList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'SaveFail'
));
}
});
},
onRowInserted
:
function
(
e
)
{
onRowInserted
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'SaveSuccess'
));
},
onRowUpdating
:
function
(
e
)
{
onRowUpdating
:
function
(
e
)
{
var
updateData
=
e
.
newData
;
updateData
.
id
=
e
.
key
.
id
;
orgExtraService
.
updateTaxRule
(
updateData
).
success
(
function
(
data
)
{
if
(
data
)
{
getTaxRuleList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'UpdateFail'
));
}
});
},
onRowUpdated
:
function
(
e
)
{
onRowUpdated
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'UpdateSuccess'
));
},
onRowRemoving
:
function
(
e
)
{
onRowRemoving
:
function
(
e
)
{
orgExtraService
.
deleteTaxRule
(
e
.
key
.
id
).
success
(
function
(
data
)
{
if
(
data
)
{
getTaxRuleList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'DeleteFail'
));
}
});
},
onRowRemoved
:
function
(
e
)
{
onRowRemoved
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'DeleteSuccess'
));
},
loadPanel
:
{
...
...
@@ -803,16 +798,16 @@
if
(
data
)
{
$scope
.
TaxRuleGridSource
=
data
;
for
(
var
i
=
1
;
i
<=
$scope
.
TaxRuleGridSource
.
length
;
i
++
)
{
$scope
.
TaxRuleGridSource
[
i
-
1
].
index
=
i
;
$scope
.
TaxRuleGridSource
[
i
-
1
].
index
=
i
;
}
}
});
};
$scope
.
visiableTaxRule
=
function
()
{
if
(
$scope
.
showTaxRule
)
{
if
(
$scope
.
showTaxRule
)
{
$scope
.
showTaxRule
=
false
;
}
else
{
}
else
{
$scope
.
showTaxRule
=
true
;
}
};
...
...
@@ -835,15 +830,15 @@
columns
:
[
{
dataField
:
"id"
,
visible
:
false
,
visible
:
false
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'id'
)
},{
},
{
dataField
:
"index"
,
width
:
'5%'
,
width
:
'5%'
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'SequenceNoCol'
)
},{
},
{
dataField
:
"invoiceTypeName"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'InvoiceTypeName'
),
...
...
@@ -852,7 +847,7 @@
displayExpr
:
"type"
,
valueExpr
:
"type"
}
},{
},
{
dataField
:
"unit"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'InvoiceUnit'
),
...
...
@@ -861,15 +856,15 @@
displayExpr
:
"type"
,
valueExpr
:
"type"
}
},{
},
{
dataField
:
"monthlyMaxTicketsPurchased"
,
allowHeaderFiltering
:
true
,
caption
:
$translate
.
instant
(
'MonthlyMaxTicketsPurchased'
)
},{
},
{
dataField
:
"singleInvoicingMaxLimit"
,
allowHeaderFiltering
:
true
,
caption
:
$translate
.
instant
(
'SingleInvoicingMaxLimit'
)
},{
},
{
dataField
:
"offlineBillingTimeLimit"
,
allowHeaderFiltering
:
true
,
caption
:
$translate
.
instant
(
'OfflineBillingTimeLimit'
)
...
...
@@ -877,19 +872,18 @@
],
onContentReady
:
function
(
e
)
{
$scope
.
invoiceInfoListInstance
=
e
.
component
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
}
},
onEditingStart
:
function
(
e
)
{
onEditingStart
:
function
(
e
)
{
},
onInitNewRow
:
function
(
e
)
{
onInitNewRow
:
function
(
e
)
{
},
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
var
rowData
=
e
.
data
;
rowData
.
organizationId
=
$scope
.
selectCompany
.
id
;
delete
rowData
.
__KEY__
;
...
...
@@ -898,40 +892,40 @@
if
(
data
)
{
getInvoiceInfoList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'SaveFail'
));
}
});
},
onRowInserted
:
function
(
e
)
{
onRowInserted
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'SaveSuccess'
));
},
onRowUpdating
:
function
(
e
)
{
onRowUpdating
:
function
(
e
)
{
var
updateData
=
e
.
newData
;
updateData
.
id
=
e
.
key
.
id
;
orgExtraService
.
updateInvoice
(
updateData
).
success
(
function
(
data
)
{
if
(
data
)
{
getInvoiceInfoList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'UpdateFail'
));
}
});
},
onRowUpdated
:
function
(
e
)
{
onRowUpdated
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'UpdateSuccess'
));
},
onRowRemoving
:
function
(
e
)
{
onRowRemoving
:
function
(
e
)
{
orgExtraService
.
deleteInvoice
(
e
.
key
.
id
).
success
(
function
(
data
)
{
if
(
data
)
{
getInvoiceInfoList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'DeleteFail'
));
}
});
},
onRowRemoved
:
function
(
e
)
{
onRowRemoved
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'DeleteSuccess'
));
},
loadPanel
:
{
...
...
@@ -972,16 +966,16 @@
if
(
data
)
{
$scope
.
InvoiceInfoGridSource
=
data
;
for
(
var
i
=
1
;
i
<=
$scope
.
InvoiceInfoGridSource
.
length
;
i
++
)
{
$scope
.
InvoiceInfoGridSource
[
i
-
1
].
index
=
i
;
$scope
.
InvoiceInfoGridSource
[
i
-
1
].
index
=
i
;
}
}
});
};
$scope
.
visiableInvoiceInfo
=
function
()
{
if
(
$scope
.
showInvoiceInfo
)
{
if
(
$scope
.
showInvoiceInfo
)
{
$scope
.
showInvoiceInfo
=
false
;
}
else
{
}
else
{
$scope
.
showInvoiceInfo
=
true
;
}
};
...
...
@@ -1006,55 +1000,54 @@
allowAdding
:
true
},
columns
:
[{
dataField
:
"id"
,
visible
:
false
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'id'
)
},
{
dataField
:
"index"
,
width
:
'5%'
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'SequenceNoCol'
)
},
{
dataField
:
"groupName"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'TaxGroup'
),
width
:
'30%'
,
lookup
:
{
dataSource
:
constant
.
GroupTypeList
,
displayExpr
:
"type"
,
valueExpr
:
"type"
}
},
dataField
:
"id"
,
visible
:
false
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'id'
)
},
{
dataField
:
"index"
,
width
:
'5%'
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'SequenceNoCol'
)
},
{
dataField
:
"groupName"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'TaxGroup'
),
width
:
'30%'
,
lookup
:
{
dataSource
:
constant
.
GroupTypeList
,
displayExpr
:
"type"
,
valueExpr
:
"type"
}
},
{
dataField
:
"returnRate"
,
allowHeaderFiltering
:
false
,
width
:
'15%'
,
width
:
'15%'
,
caption
:
$translate
.
instant
(
'ReturnRate'
)
},
{
dataField
:
"startDate"
,
allowHeaderFiltering
:
false
,
width
:
'25%'
,
width
:
'25%'
,
dataType
:
"date"
,
caption
:
$translate
.
instant
(
'StartingDate'
)
}
],
onContentReady
:
function
(
e
)
{
$scope
.
returnRateListInstance
=
e
.
component
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
}
},
onEditingStart
:
function
(
e
)
{
onEditingStart
:
function
(
e
)
{
},
onInitNewRow
:
function
(
e
)
{
onInitNewRow
:
function
(
e
)
{
},
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
var
rowData
=
e
.
data
;
rowData
.
organizationId
=
$scope
.
selectCompany
.
id
;
delete
rowData
.
__KEY__
;
...
...
@@ -1063,40 +1056,40 @@
if
(
data
)
{
getReturnRateInfoList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'SaveFail'
));
}
});
},
onRowInserted
:
function
(
e
)
{
onRowInserted
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'SaveSuccess'
));
},
onRowUpdating
:
function
(
e
)
{
onRowUpdating
:
function
(
e
)
{
var
updateData
=
e
.
newData
;
updateData
.
id
=
e
.
key
.
id
;
orgExtraService
.
updateReturnRate
(
updateData
).
success
(
function
(
data
)
{
if
(
data
)
{
getReturnRateInfoList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'UpdateFail'
));
}
});
},
onRowUpdated
:
function
(
e
)
{
onRowUpdated
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'UpdateSuccess'
));
},
onRowRemoving
:
function
(
e
)
{
onRowRemoving
:
function
(
e
)
{
orgExtraService
.
deleteReturnRate
(
e
.
key
.
id
).
success
(
function
(
data
)
{
if
(
data
)
{
getReturnRateInfoList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'DeleteFail'
));
}
});
},
onRowRemoved
:
function
(
e
)
{
onRowRemoved
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'DeleteSuccess'
));
},
loadPanel
:
{
...
...
@@ -1137,16 +1130,16 @@
if
(
data
)
{
$scope
.
ReturnGridSource
=
data
;
for
(
var
i
=
1
;
i
<=
$scope
.
ReturnGridSource
.
length
;
i
++
)
{
$scope
.
ReturnGridSource
[
i
-
1
].
index
=
i
;
$scope
.
ReturnGridSource
[
i
-
1
].
index
=
i
;
}
}
});
};
$scope
.
visiableReturnRateInfo
=
function
()
{
if
(
$scope
.
showReturnRateInfo
)
{
if
(
$scope
.
showReturnRateInfo
)
{
$scope
.
showReturnRateInfo
=
false
;
}
else
{
}
else
{
$scope
.
showReturnRateInfo
=
true
;
}
};
...
...
@@ -1177,6 +1170,11 @@
width
:
'10%'
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'SequenceNoCol'
)
},
{
dataField
:
"rate"
,
allowHeaderFiltering
:
false
,
width
:
'10%'
,
caption
:
$translate
.
instant
(
'AccountingRate'
)
},
{
dataField
:
"currencyFrom"
,
allowHeaderFiltering
:
false
,
...
...
@@ -1188,23 +1186,18 @@
width
:
'15%'
,
caption
:
$translate
.
instant
(
'CurrencyTo'
)
},
{
dataField
:
"startDate"
,
allowHeaderFiltering
:
false
,
width
:
'20%'
,
dataType
:
"date"
,
caption
:
$translate
.
instant
(
'StartingPeriod'
)
},
{
dataField
:
"endDate"
,
allowHeaderFiltering
:
false
,
width
:
'20%'
,
dataType
:
"date"
,
caption
:
$translate
.
instant
(
'EndPeriod'
)
},
{
dataField
:
"rate"
,
allowHeaderFiltering
:
false
,
width
:
'10%'
,
caption
:
$translate
.
instant
(
'AccountingRate'
)
}
dataField
:
"startDate"
,
allowHeaderFiltering
:
false
,
width
:
'20%'
,
dataType
:
"date"
,
caption
:
$translate
.
instant
(
'StartingPeriod'
)
},
{
dataField
:
"endDate"
,
allowHeaderFiltering
:
false
,
width
:
'20%'
,
dataType
:
"date"
,
caption
:
$translate
.
instant
(
'EndPeriod'
)
}
],
onContentReady
:
function
(
e
)
{
$scope
.
accountingRateListInstance
=
e
.
component
;
...
...
@@ -1213,13 +1206,13 @@
$scope
.
totalCount
=
totalCount
;
}
},
onEditingStart
:
function
(
e
)
{
onEditingStart
:
function
(
e
)
{
},
onInitNewRow
:
function
(
e
)
{
onInitNewRow
:
function
(
e
)
{
},
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
var
rowData
=
e
.
data
;
rowData
.
organizationId
=
$scope
.
selectCompany
.
id
;
delete
rowData
.
__KEY__
;
...
...
@@ -1228,40 +1221,40 @@
if
(
data
)
{
getAccountingRateInfoList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'SaveFail'
));
}
});
},
onRowInserted
:
function
(
e
)
{
onRowInserted
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'SaveSuccess'
));
},
onRowUpdating
:
function
(
e
)
{
onRowUpdating
:
function
(
e
)
{
var
updateData
=
e
.
newData
;
updateData
.
id
=
e
.
key
.
id
;
orgExtraService
.
updateAccountingRate
(
updateData
).
success
(
function
(
data
)
{
if
(
data
)
{
getAccountingRateInfoList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'UpdateFail'
));
}
});
},
onRowUpdated
:
function
(
e
)
{
onRowUpdated
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'UpdateSuccess'
));
},
onRowRemoving
:
function
(
e
)
{
onRowRemoving
:
function
(
e
)
{
orgExtraService
.
deleteAccountingRate
(
e
.
key
.
id
).
success
(
function
(
data
)
{
if
(
data
)
{
getAccountingRateInfoList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'DeleteFail'
));
}
});
},
onRowRemoved
:
function
(
e
)
{
onRowRemoved
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'DeleteSuccess'
));
},
loadPanel
:
{
...
...
@@ -1309,9 +1302,9 @@
};
$scope
.
visiableAccountingRateInfo
=
function
()
{
if
(
$scope
.
showAccountingRateInfo
)
{
if
(
$scope
.
showAccountingRateInfo
)
{
$scope
.
showAccountingRateInfo
=
false
;
}
else
{
}
else
{
$scope
.
showAccountingRateInfo
=
true
;
}
};
...
...
@@ -1383,19 +1376,18 @@
],
onContentReady
:
function
(
e
)
{
$scope
.
approvedLevyListInstance
=
e
.
component
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
}
},
onEditingStart
:
function
(
e
)
{
onEditingStart
:
function
(
e
)
{
},
onInitNewRow
:
function
(
e
)
{
onInitNewRow
:
function
(
e
)
{
},
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
var
rowData
=
e
.
data
;
rowData
.
organizationId
=
$scope
.
selectCompany
.
id
;
delete
rowData
.
__KEY__
;
...
...
@@ -1404,40 +1396,40 @@
if
(
data
)
{
getApprovedLevyList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'SaveFail'
));
}
});
},
onRowInserted
:
function
(
e
)
{
onRowInserted
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'SaveSuccess'
));
},
onRowUpdating
:
function
(
e
)
{
onRowUpdating
:
function
(
e
)
{
var
updateData
=
e
.
newData
;
updateData
.
id
=
e
.
key
.
id
;
orgExtraService
.
updateApprovedLevyInfo
(
updateData
).
success
(
function
(
data
)
{
if
(
data
)
{
getApprovedLevyList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'UpdateFail'
));
}
});
},
onRowUpdated
:
function
(
e
)
{
onRowUpdated
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'UpdateSuccess'
));
},
onRowRemoving
:
function
(
e
)
{
onRowRemoving
:
function
(
e
)
{
orgExtraService
.
deleteApprovedLevyInfo
(
e
.
key
.
id
).
success
(
function
(
data
)
{
if
(
data
)
{
getApprovedLevyList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'DeleteFail'
));
}
});
},
onRowRemoved
:
function
(
e
)
{
onRowRemoved
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'DeleteSuccess'
));
},
loadPanel
:
{
...
...
@@ -1485,9 +1477,9 @@
};
$scope
.
visiableApprovedLevyInfo
=
function
()
{
if
(
$scope
.
showApprovedLevyInfo
)
{
if
(
$scope
.
showApprovedLevyInfo
)
{
$scope
.
showApprovedLevyInfo
=
false
;
}
else
{
}
else
{
$scope
.
showApprovedLevyInfo
=
true
;
}
};
...
...
@@ -1509,44 +1501,43 @@
},
columns
:
[{
dataField
:
"id"
,
visible
:
false
,
visible
:
false
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'id'
)
},{
},
{
dataField
:
"index"
,
width
:
'5%'
,
width
:
'5%'
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'SequenceNoCol'
)
},{
},
{
dataField
:
"taxOfficerName"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'TaxOfficerName'
),
width
:
'25%'
},{
width
:
'25%'
},
{
dataField
:
"taxOfficerPhoneNum"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'TaxOfficerPhoneNum'
),
width
:
'25%'
},{
width
:
'25%'
},
{
dataField
:
"remark"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'TaxOfficerRemark'
),
width
:
'25%'
width
:
'25%'
}],
onContentReady
:
function
(
e
)
{
$scope
.
taxOfficerListInstance
=
e
.
component
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
}
},
onEditingStart
:
function
(
e
)
{
onEditingStart
:
function
(
e
)
{
},
onInitNewRow
:
function
(
e
)
{
onInitNewRow
:
function
(
e
)
{
},
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
var
rowData
=
e
.
data
;
rowData
.
organizationId
=
$scope
.
selectCompany
.
id
;
delete
rowData
.
__KEY__
;
...
...
@@ -1555,40 +1546,40 @@
if
(
data
)
{
getTaxOfficerList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'SaveFail'
));
}
});
},
onRowInserted
:
function
(
e
)
{
onRowInserted
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'SaveSuccess'
));
},
onRowUpdating
:
function
(
e
)
{
onRowUpdating
:
function
(
e
)
{
var
updateData
=
e
.
newData
;
updateData
.
id
=
e
.
key
.
id
;
orgExtraService
.
updateTaxOfficer
(
updateData
).
success
(
function
(
data
)
{
if
(
data
)
{
getTaxOfficerList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'UpdateFail'
));
}
});
},
onRowUpdated
:
function
(
e
)
{
onRowUpdated
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'UpdateSuccess'
));
},
onRowRemoving
:
function
(
e
)
{
onRowRemoving
:
function
(
e
)
{
orgExtraService
.
deleteTaxOfficer
(
e
.
key
.
id
).
success
(
function
(
data
)
{
if
(
data
)
{
getTaxOfficerList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'DeleteFail'
));
}
});
},
onRowRemoved
:
function
(
e
)
{
onRowRemoved
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'DeleteSuccess'
));
},
loadPanel
:
{
...
...
@@ -1636,9 +1627,9 @@
};
$scope
.
visiableTaxOfficerInfo
=
function
()
{
if
(
$scope
.
showTaxOfficerInfo
)
{
if
(
$scope
.
showTaxOfficerInfo
)
{
$scope
.
showTaxOfficerInfo
=
false
;
}
else
{
}
else
{
$scope
.
showTaxOfficerInfo
=
true
;
}
};
...
...
@@ -1687,19 +1678,18 @@
}],
onContentReady
:
function
(
e
)
{
$scope
.
employeeListInstance
=
e
.
component
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
}
},
onEditingStart
:
function
(
e
)
{
onEditingStart
:
function
(
e
)
{
},
onInitNewRow
:
function
(
e
)
{
onInitNewRow
:
function
(
e
)
{
},
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
var
rowData
=
e
.
data
;
rowData
.
organizationId
=
$scope
.
selectCompany
.
id
;
delete
rowData
.
__KEY__
;
...
...
@@ -1708,40 +1698,40 @@
if
(
data
)
{
getEmployeeList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'SaveFail'
));
}
});
},
onRowInserted
:
function
(
e
)
{
onRowInserted
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'SaveSuccess'
));
},
onRowUpdating
:
function
(
e
)
{
onRowUpdating
:
function
(
e
)
{
var
updateData
=
e
.
newData
;
updateData
.
id
=
e
.
key
.
id
;
orgExtraService
.
updateEmployee
(
updateData
).
success
(
function
(
data
)
{
if
(
data
)
{
getEmployeeList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'UpdateFail'
));
}
});
},
onRowUpdated
:
function
(
e
)
{
onRowUpdated
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'UpdateSuccess'
));
},
onRowRemoving
:
function
(
e
)
{
onRowRemoving
:
function
(
e
)
{
orgExtraService
.
deleteEmployee
(
e
.
key
.
id
).
success
(
function
(
data
)
{
if
(
data
)
{
getEmployeeList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'DeleteFail'
));
}
});
},
onRowRemoved
:
function
(
e
)
{
onRowRemoved
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'DeleteSuccess'
));
},
loadPanel
:
{
...
...
@@ -1789,9 +1779,9 @@
};
$scope
.
visiableEmployee
=
function
()
{
if
(
$scope
.
showEmployee
)
{
if
(
$scope
.
showEmployee
)
{
$scope
.
showEmployee
=
false
;
}
else
{
}
else
{
$scope
.
showEmployee
=
true
;
}
};
...
...
@@ -1853,19 +1843,18 @@
],
onContentReady
:
function
(
e
)
{
$scope
.
taxpayerQualificationListInstance
=
e
.
component
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
var
totalCount
=
e
.
component
.
totalCount
();
if
(
totalCount
>
0
)
{
$scope
.
totalCount
=
totalCount
;
}
},
onEditingStart
:
function
(
e
)
{
onEditingStart
:
function
(
e
)
{
},
onInitNewRow
:
function
(
e
)
{
onInitNewRow
:
function
(
e
)
{
},
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
onRowInserting
:
function
(
e
)
{
var
dataList
=
[];
var
rowData
=
e
.
data
;
rowData
.
organizationId
=
$scope
.
selectCompany
.
id
;
delete
rowData
.
__KEY__
;
...
...
@@ -1874,40 +1863,40 @@
if
(
data
)
{
getTaxpayerQualificationList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'SaveFail'
));
}
});
},
onRowInserted
:
function
(
e
)
{
onRowInserted
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'SaveSuccess'
));
},
onRowUpdating
:
function
(
e
)
{
onRowUpdating
:
function
(
e
)
{
var
updateData
=
e
.
newData
;
updateData
.
id
=
e
.
key
.
id
;
orgExtraService
.
updateTaxpayerQualification
(
updateData
).
success
(
function
(
data
)
{
if
(
data
)
{
getTaxpayerQualificationList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'UpdateFail'
));
}
});
},
onRowUpdated
:
function
(
e
)
{
onRowUpdated
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'UpdateSuccess'
));
},
onRowRemoving
:
function
(
e
)
{
onRowRemoving
:
function
(
e
)
{
orgExtraService
.
deleteTaxpayerQualification
(
e
.
key
.
id
).
success
(
function
(
data
)
{
if
(
data
)
{
getTaxpayerQualificationList
(
$scope
.
selectCompany
.
id
);
return
;
}
else
{
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'DeleteFail'
));
}
});
},
onRowRemoved
:
function
(
e
)
{
onRowRemoved
:
function
(
e
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'DeleteSuccess'
));
},
loadPanel
:
{
...
...
@@ -1955,9 +1944,9 @@
};
$scope
.
visiableTaxpayerQualification
=
function
()
{
if
(
$scope
.
showTaxpayerQualification
)
{
if
(
$scope
.
showTaxpayerQualification
)
{
$scope
.
showTaxpayerQualification
=
false
;
}
else
{
}
else
{
$scope
.
showTaxpayerQualification
=
true
;
}
};
...
...
@@ -1983,7 +1972,6 @@
};
// 保存启用、启用的操作结果
$scope
.
updateIsActive
=
function
()
{
$scope
.
isCanOrganizationIsActiveBtn
=
false
;
...
...
@@ -2162,16 +2150,16 @@
// TODO 将这个方法添加到切换功能里
$scope
.
updateOrgExtraCancel
=
function
()
{
$scope
.
selectCompanyExtra
=
$scope
.
comExtraOldData
;
$scope
.
selectCompanyExtra
.
unifiedSocialCreditCode
=
$scope
.
selectCompany
.
taxPayerNumber
;
$scope
.
selectCompanyExtra
.
unifiedSocialCreditCode
=
$scope
.
selectCompany
.
taxPayerNumber
;
$scope
.
editOrgExtraModel
=
$scope
.
editOldData
;
generalSelectCompanyExtraText
();
cancelWebChange
();
};
var
cancelWebChange
=
function
()
{
var
cancelWebChange
=
function
()
{
$
(
'.tax-extra-info-content .col-sm-8 span'
).
removeAttr
(
"hidden"
);
$
(
'.tax-reg-info-content .col-sm-4 span'
).
removeAttr
(
"hidden"
);
$
(
'.extra-organization-info .right-option .button2position'
).
attr
(
"hidden"
,
"hidden"
);
$
(
'.extra-organization-info .right-option .button2position'
).
attr
(
"hidden"
,
"hidden"
);
$
(
'.extra-organization-info .right-option .updOrgBtn'
).
removeAttr
(
"hidden"
);
for
(
var
i
=
0
;
i
<
$
(
'.tax-reg-info-content .col-sm-4 input'
).
length
;
i
++
)
{
$
(
'.tax-reg-info-content .col-sm-4 input'
)[
i
].
style
.
display
=
"none"
;
...
...
@@ -2232,23 +2220,23 @@
});
};
var
generalSelectCompanyExtraText
=
function
()
{
if
(
$scope
.
selectCompanyExtra
.
smallMeagerProfit
!=
null
)
{
$scope
.
selectCompanyExtra
.
smallMeagerProfit
=
$scope
.
selectCompanyExtra
.
smallMeagerProfit
?
"是"
:
"否"
;
var
generalSelectCompanyExtraText
=
function
()
{
if
(
$scope
.
selectCompanyExtra
.
smallMeagerProfit
!=
null
)
{
$scope
.
selectCompanyExtra
.
smallMeagerProfit
=
$scope
.
selectCompanyExtra
.
smallMeagerProfit
?
"是"
:
"否"
;
}
if
(
$scope
.
selectCompanyExtra
.
listedCompany
!=
null
)
{
$scope
.
selectCompanyExtra
.
listedCompany
=
$scope
.
selectCompanyExtra
.
listedCompany
?
"是"
:
"否"
;
if
(
$scope
.
selectCompanyExtra
.
listedCompany
!=
null
)
{
$scope
.
selectCompanyExtra
.
listedCompany
=
$scope
.
selectCompanyExtra
.
listedCompany
?
"是"
:
"否"
;
}
if
(
$scope
.
selectCompanyExtra
.
signTripartiteAgreement
!=
null
)
{
if
(
$scope
.
selectCompanyExtra
.
signTripartiteAgreement
!=
null
)
{
$scope
.
selectCompanyExtra
.
signTripartiteAgreement
=
$scope
.
selectCompanyExtra
.
signTripartiteAgreement
?
"是"
:
"否"
;
$scope
.
selectCompanyExtra
.
signTripartiteAgreement
?
"是"
:
"否"
;
}
if
(
$scope
.
selectCompanyExtra
.
completeRecordTotalInstitutions
!=
null
)
{
if
(
$scope
.
selectCompanyExtra
.
completeRecordTotalInstitutions
!=
null
)
{
$scope
.
selectCompanyExtra
.
completeRecordTotalInstitutions
=
$scope
.
selectCompanyExtra
.
completeRecordTotalInstitutions
?
"是"
:
"否"
;
$scope
.
selectCompanyExtra
.
completeRecordTotalInstitutions
?
"是"
:
"否"
;
}
if
(
$scope
.
selectCompanyExtra
.
regFinancialAccountingType
!=
null
)
{
$scope
.
regFinancialAccountingTypeList
.
map
(
function
(
value
,
index
)
{
if
(
$scope
.
selectCompanyExtra
.
regFinancialAccountingType
!=
null
)
{
$scope
.
regFinancialAccountingTypeList
.
map
(
function
(
value
,
index
)
{
if
(
value
.
code
===
$scope
.
selectCompanyExtra
.
regFinancialAccountingType
)
{
$scope
.
selectCompanyExtra
.
regFinancialAccountingType
=
value
.
type
;
return
;
...
...
@@ -2257,20 +2245,20 @@
}
};
var
generalSelectCompanyText
=
function
()
{
if
(
$scope
.
selectCompany
.
engageNationalProhibitIndustry
!=
null
)
{
$scope
.
selectCompany
.
engageNationalProhibitIndustryStr
=
$scope
.
selectCompany
.
engageNationalProhibitIndustry
?
"是"
:
"否"
;
var
generalSelectCompanyText
=
function
()
{
if
(
$scope
.
selectCompany
.
engageNationalProhibitIndustry
!=
null
)
{
$scope
.
selectCompany
.
engageNationalProhibitIndustryStr
=
$scope
.
selectCompany
.
engageNationalProhibitIndustry
?
"是"
:
"否"
;
}
if
(
$scope
.
selectCompany
.
nationalEconomicIndustry
!=
null
)
{
$scope
.
nationalEconomicIndustryList
.
map
(
function
(
value
,
index
)
{
if
(
$scope
.
selectCompany
.
nationalEconomicIndustry
!=
null
)
{
$scope
.
nationalEconomicIndustryList
.
map
(
function
(
value
,
index
)
{
if
(
value
.
code
===
$scope
.
selectCompany
.
nationalEconomicIndustry
)
{
$scope
.
selectCompany
.
nationalEconomicIndustryStr
=
value
.
code
+
"-"
+
value
.
type
;
$scope
.
selectCompany
.
nationalEconomicIndustryStr
=
value
.
code
+
"-"
+
value
.
type
;
return
;
}
});
if
(
null
==
$scope
.
selectCompany
.
nationalEconomicIndustryStr
||
""
===
$scope
.
selectCompany
.
nationalEconomicIndustryStr
)
{
$scope
.
selectCompany
.
nationalEconomicIndustryStr
=
$scope
.
selectCompany
.
nationalEconomicIndustry
;
if
(
null
==
$scope
.
selectCompany
.
nationalEconomicIndustryStr
||
""
===
$scope
.
selectCompany
.
nationalEconomicIndustryStr
)
{
$scope
.
selectCompany
.
nationalEconomicIndustryStr
=
$scope
.
selectCompany
.
nationalEconomicIndustry
;
}
}
};
...
...
@@ -2359,8 +2347,12 @@
if
(
data
&&
data
.
length
>
0
)
{
data
.
forEach
(
function
(
row
)
{
var
uniqRoleList
=
_
.
uniq
(
row
.
roleInfoList
,
function
(
item
)
{
return
item
.
name
});
row
.
roleNameList
=
_
.
map
(
uniqRoleList
,
function
(
x
)
{
return
x
.
name
;
}).
join
(
constant
.
comma
);
var
uniqRoleList
=
_
.
uniq
(
row
.
roleInfoList
,
function
(
item
)
{
return
item
.
name
});
row
.
roleNameList
=
_
.
map
(
uniqRoleList
,
function
(
x
)
{
return
x
.
name
;
}).
join
(
constant
.
comma
);
//var roleNames = _.pluck(row.roleInfoList, 'name');
//row.roleNameList = roleNames.join(',');
...
...
@@ -2371,7 +2363,7 @@
row
.
hasEditPermission
=
$scope
.
hasEditPermission
;
userRoleShowList
.
push
({
id
:
row
.
id
,
userName
:
row
.
userName
,
roleNameList
:
row
.
roleNameList
});
userRoleShowList
.
push
({
id
:
row
.
id
,
userName
:
row
.
userName
,
roleNameList
:
row
.
roleNameList
});
row
.
roleInfoList
.
forEach
(
function
(
role
)
{
var
one
=
_
.
find
(
roleStaticsList
,
function
(
data
)
{
return
data
.
id
===
role
.
id
;
...
...
@@ -2400,7 +2392,6 @@
$scope
.
selectOrganization
=
function
(
branch
)
{
var
org
=
branch
.
data
;
$scope
.
output
=
"You selected: "
+
org
.
id
;
...
...
@@ -2446,18 +2437,18 @@
$scope
.
isInternational
=
$scope
.
selectCompany
.
oversea
;
$scope
.
editOrgExtraModel
.
unifiedSocialCreditCode
=
$scope
.
selectCompany
.
taxPayerNumber
;
$scope
.
selectCompanyExtra
.
unifiedSocialCreditCode
=
$scope
.
selectCompany
.
taxPayerNumber
;
$scope
.
selectCompanyExtra
.
unifiedSocialCreditCode
=
$scope
.
selectCompany
.
taxPayerNumber
;
//加载用户权限list
loadUserRoleList
(
org
.
id
);
generalSelectCompanyText
();
cancelWebChange
();
// $scope.updateOrgExtraCancel()
// $scope.updateOrgExtraCancel()
});
orgService
.
getSingleOrgExtra
(
org
.
id
).
success
(
function
(
data
)
{
if
(
data
)
{
if
(
data
)
{
$scope
.
selectCompanyExtra
=
data
;
$scope
.
editOrgExtraModel
=
angular
.
copy
(
data
);
generalSelectCompanyExtraText
();
...
...
@@ -2981,8 +2972,6 @@
};
var
getAllRolePermission
=
function
()
{
roleService
.
getAllRolePermission
(
constant
.
serviceType
.
VAT
).
success
(
function
(
data
)
{
if
(
data
)
{
...
...
@@ -3007,10 +2996,10 @@
amountTotal
:
amountTotal
,
proportionTotal
:
proportionTotal
};
if
(
$scope
.
EquitySumInfo
.
proportionTotal
!==
100
)
{
$scope
.
isNotHundred
=
true
;
}
else
{
$scope
.
isNotHundred
=
false
;
if
(
$scope
.
EquitySumInfo
.
proportionTotal
!==
100
)
{
$scope
.
isNotHundred
=
true
;
}
else
{
$scope
.
isNotHundred
=
false
;
}
}
else
{
SweetAlert
.
warning
(
$translate
.
instant
(
'NoEquityInfo'
));
...
...
@@ -3018,7 +3007,7 @@
});
};
$scope
.
refreshEquityList
=
function
(){
$scope
.
refreshEquityList
=
function
()
{
getEquityListByOrgId
(
$scope
.
selectCompany
.
id
);
getEquityChangeList
(
$scope
.
selectCompany
.
name
);
};
...
...
@@ -3026,17 +3015,17 @@
var
confirmWarningWindow
=
function
(
title
,
text
)
{
var
deferred
=
$q
.
defer
();
SweetAlert
.
swal
({
title
:
title
,
text
:
text
,
type
:
"warning"
,
showCancelButton
:
true
,
confirmButtonColor
:
"#DD6B55"
,
allowOutsideClick
:
false
,
confirmButtonText
:
$translate
.
instant
(
'Confirm'
),
cancelButtonText
:
$translate
.
instant
(
'Cancel'
),
closeOnConfirm
:
false
,
closeOnCancel
:
true
},
title
:
title
,
text
:
text
,
type
:
"warning"
,
showCancelButton
:
true
,
confirmButtonColor
:
"#DD6B55"
,
allowOutsideClick
:
false
,
confirmButtonText
:
$translate
.
instant
(
'Confirm'
),
cancelButtonText
:
$translate
.
instant
(
'Cancel'
),
closeOnConfirm
:
false
,
closeOnCancel
:
true
},
function
(
isConfirm
)
{
deferred
.
resolve
(
isConfirm
);
});
...
...
@@ -3108,7 +3097,7 @@
$scope
.
getGridHeight
=
function
()
{
return
{
height
:
$
(
".dx-viewport"
).
height
()
+
"px"
};
return
{
height
:
$
(
".dx-viewport"
).
height
()
+
"px"
};
};
//获取当前角色对应的权限列表
...
...
atms-web/src/main/webapp/app/cit/import/cit-import-asset-list/cit-import-asset-list.html
View file @
96dd4241
...
...
@@ -229,8 +229,11 @@
<
/div
>
<
/div
>
<
div
class
=
"modal-footer"
>
<!--
<
button
style
=
"margin-left: 22px;"
type
=
"button"
class
=
"btn btn-primary"
ng
-
click
=
"saveAssetGroupInfo()"
-->
<!--
ng
-
disabled
=
"!hasEditPermission"
>
{{
'Confirm'
|
translate
}}
-->
<!--
<
/button>--
>
<
button
style
=
"margin-left: 22px;"
type
=
"button"
class
=
"btn btn-primary"
ng
-
click
=
"saveAssetGroupInfo()"
ng
-
disabled
=
"!hasEditPermission"
>
{{
'Confirm'
|
translate
}}
>
{{
'Confirm'
|
translate
}}
<
/button
>
<
button
type
=
"button"
class
=
"btn btn-third"
ng
-
click
=
"cancelAsset()"
ng
-
if
=
"!isDisabled"
ng
-
disabled
=
"isDisabled"
>
{{
'ButtonCancel'
|
translate
}}
...
...
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