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
6cb74496
Commit
6cb74496
authored
Nov 01, 2018
by
neo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_oracle' of code.tech.tax.asia.pwcinternal.com:root/atms into neo_jpa_withoutgen
parents
deee1db2
0f9061b2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
21 deletions
+23
-21
area-selector.ctrl.js
...p/app/common/controls/area-selector/area-selector.ctrl.js
+1
-1
edit-organization-modal.ctrl.js
...s/edit-organization-modal/edit-organization-modal.ctrl.js
+7
-4
vat-preview-input-invoice.ctrl.js
...t-preview-input-invoice/vat-preview-input-invoice.ctrl.js
+7
-8
vat-preview-input-invoice.html
.../vat-preview-input-invoice/vat-preview-input-invoice.html
+1
-1
vat-preview-output-invoice.ctrl.js
...preview-output-invoice/vat-preview-output-invoice.ctrl.js
+6
-6
vat-preview-output-invoice.html
...at-preview-output-invoice/vat-preview-output-invoice.html
+1
-1
No files found.
atms-web/src/main/webapp/app/common/controls/area-selector/area-selector.ctrl.js
View file @
6cb74496
...
@@ -36,7 +36,7 @@ controller('AreaSelectorController', ['$scope', 'areaService','$translate',
...
@@ -36,7 +36,7 @@ controller('AreaSelectorController', ['$scope', 'areaService','$translate',
$scope
.
selectArea
=
function
(
area
)
{
$scope
.
selectArea
=
function
(
area
)
{
$scope
.
selectedAreaName
=
area
.
name
;
$scope
.
selectedAreaName
=
area
.
name
;
$scope
.
selectedAreaId
=
area
.
id
;
$scope
.
selectedAreaId
=
area
.
ID
;
$scope
.
componentSelectedArea
=
area
;
$scope
.
componentSelectedArea
=
area
;
$
(
'.dropdown'
).
removeClass
(
'open'
);
$
(
'.dropdown'
).
removeClass
(
'open'
);
// $scope.onChange();
// $scope.onChange();
...
...
atms-web/src/main/webapp/app/common/controls/edit-organization-modal/edit-organization-modal.ctrl.js
View file @
6cb74496
...
@@ -45,6 +45,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
...
@@ -45,6 +45,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
$scope
.
selectProvince
=
null
;
$scope
.
selectProvince
=
null
;
$scope
.
selectRegionID
=
null
;
$scope
.
selectRegionID
=
null
;
$scope
.
componentSelectedArea
=
null
;
$scope
.
selectRegion
=
defaultSelcectRegion
;
$scope
.
selectRegion
=
defaultSelcectRegion
;
$scope
.
selectProjectIndustry
=
null
;
$scope
.
selectProjectIndustry
=
null
;
$scope
.
selectBusinessUnit
=
null
;
$scope
.
selectBusinessUnit
=
null
;
...
@@ -53,7 +54,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
...
@@ -53,7 +54,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
// 默认事业部
// 默认事业部
if
(
$scope
.
newOrganization
.
businessUnitID
)
{
if
(
$scope
.
newOrganization
.
businessUnitID
)
{
$scope
.
selectBusinessUnit
=
_
.
find
(
$scope
.
businessUnitList
,
function
(
num
)
{
$scope
.
selectBusinessUnit
=
_
.
find
(
$scope
.
businessUnitList
,
function
(
num
)
{
return
num
.
id
===
$scope
.
newOrganization
.
businessUnitID
;
return
num
.
ID
===
$scope
.
newOrganization
.
businessUnitID
;
});
});
}
}
...
@@ -158,8 +159,8 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
...
@@ -158,8 +159,8 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
editModel
.
businessUnitID
=
$scope
.
selectBusinessUnit
.
ID
;
editModel
.
businessUnitID
=
$scope
.
selectBusinessUnit
.
ID
;
}
}
//区域
//区域
if
(
$scope
.
s
electedArea
)
{
if
(
$scope
.
componentS
electedArea
)
{
editModel
.
areaID
=
$scope
.
selectedArea
.
ID
;
editModel
.
areaID
=
$scope
.
selectedArea
Id
;
}
}
//账套
//账套
...
@@ -375,7 +376,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
...
@@ -375,7 +376,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
//设置事业部
//设置事业部
var
businessUnitList
=
$scope
.
businessUnitList
;
var
businessUnitList
=
$scope
.
businessUnitList
;
$scope
.
selectBusinessUnit
=
_
.
find
(
businessUnitList
,
function
(
num
)
{
$scope
.
selectBusinessUnit
=
_
.
find
(
businessUnitList
,
function
(
num
)
{
return
num
.
id
===
orgData
.
businessUnitID
;
return
num
.
ID
===
orgData
.
businessUnitID
;
});
});
if
(
$scope
.
selectBusinessUnit
===
undefined
)
{
if
(
$scope
.
selectBusinessUnit
===
undefined
)
{
...
@@ -384,6 +385,8 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
...
@@ -384,6 +385,8 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
// $('#selectBusinessUnit').append('<option disabled selected="selected">' + orgData.businessUnitName + '</option>');
// $('#selectBusinessUnit').append('<option disabled selected="selected">' + orgData.businessUnitName + '</option>');
}
}
$scope
.
orgAccountList
=
[];
$scope
.
orgAccountList
=
[];
$scope
.
serviceList
=
[];
$scope
.
serviceList
=
[];
$scope
.
OrgAccountRowIndex
=
1
;
$scope
.
OrgAccountRowIndex
=
1
;
...
...
atms-web/src/main/webapp/app/vat/preview/vat-preview-input-invoice/vat-preview-input-invoice.ctrl.js
View file @
6cb74496
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
v
.
taxAmount
=
PWC
.
round
(
v
.
taxAmount
,
2
);
v
.
taxAmount
=
PWC
.
round
(
v
.
taxAmount
,
2
);
});
});
$scope
.
gridOptions
.
data
=
data
.
list
;
$scope
.
gridOptions
.
data
=
data
.
list
;
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
=
data
.
pageInfo
;
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
=
data
;
computeIncomeInvoiceItemPage
();
computeIncomeInvoiceItemPage
();
}
}
});
});
...
@@ -118,14 +118,14 @@
...
@@ -118,14 +118,14 @@
//计算页数,创建分页栏
//计算页数,创建分页栏
var
computeIncomeInvoiceItemPage
=
function
()
{
var
computeIncomeInvoiceItemPage
=
function
()
{
if
(
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
&&
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
total
Count
>
0
)
{
if
(
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
&&
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
total
>
0
)
{
var
totalPage
=
parseInt
(
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
total
Count
/
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
pageSize
);
var
totalPage
=
parseInt
(
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
total
/
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
pageSize
);
totalPage
=
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
totalCount
%
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
pageSize
==
0
?
totalPage
:
totalPage
+
1
;
totalPage
=
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
totalCount
%
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
pageSize
==
0
?
totalPage
:
totalPage
+
1
;
//计算本页记录数
//计算本页记录数
if
(
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
page
Index
===
totalPage
)
{
if
(
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
page
Num
===
totalPage
)
{
$scope
.
curPageItemCount
=
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
total
Count
%
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
pageSize
;
$scope
.
curPageItemCount
=
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
total
%
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
pageSize
;
}
}
else
{
else
{
$scope
.
curPageItemCount
=
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
pageSize
;
$scope
.
curPageItemCount
=
$scope
.
queryIncomeInvoiceItemResult
.
pageInfo
.
pageSize
;
...
@@ -144,6 +144,8 @@
...
@@ -144,6 +144,8 @@
$
(
'#totalInvoicePage'
).
css
(
'display'
,
'inline-block'
);
$
(
'#totalInvoicePage'
).
css
(
'display'
,
'inline-block'
);
}
else
{
}
else
{
//如果查询结果为0,则直接设置本页记录数为0
$scope
.
curPageItemCount
=
0
;
var
createPage
=
$
(
"#totalInvoicePage"
).
createPage
({
var
createPage
=
$
(
"#totalInvoicePage"
).
createPage
({
pageCount
:
0
,
pageCount
:
0
,
current
:
$scope
.
curIncomeInvoiceItemPage
,
current
:
$scope
.
curIncomeInvoiceItemPage
,
...
@@ -153,9 +155,6 @@
...
@@ -153,9 +155,6 @@
}
}
});
});
//如果查询结果为0,则直接设置本页记录数为0
$scope
.
curPageItemCount
=
0
;
$
(
'#totalInvoicePage'
).
css
(
'display'
,
'inline-block'
);
$
(
'#totalInvoicePage'
).
css
(
'display'
,
'inline-block'
);
}
}
};
};
...
...
atms-web/src/main/webapp/app/vat/preview/vat-preview-input-invoice/vat-preview-input-invoice.html
View file @
6cb74496
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<div
class=
"watermark"
ng-show=
"!gridOptions.data.length"
><span
translate=
"NoDataAvailable"
></span></div>
<div
class=
"watermark"
ng-show=
"!gridOptions.data.length"
><span
translate=
"NoDataAvailable"
></span></div>
</div>
</div>
<div
class=
"pagination-container"
>
<div
class=
"pagination-container"
>
<span>
本页{{curPageItemCount}}条记录,共{{queryIncomeInvoiceItemResult.pageInfo.total
Count
}}条记录
</span>
<span>
本页{{curPageItemCount}}条记录,共{{queryIncomeInvoiceItemResult.pageInfo.total}}条记录
</span>
<div
id=
"totalInvoicePage"
class=
"common-pagination"
style=
"display:none;"
>
<div
id=
"totalInvoicePage"
class=
"common-pagination"
style=
"display:none;"
>
</div>
</div>
</div>
</div>
...
...
atms-web/src/main/webapp/app/vat/preview/vat-preview-output-invoice/vat-preview-output-invoice.ctrl.js
View file @
6cb74496
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
v
.
taxAmount
=
PWC
.
round
(
v
.
taxAmount
,
2
);
v
.
taxAmount
=
PWC
.
round
(
v
.
taxAmount
,
2
);
});
});
$scope
.
gridOptions
.
data
=
data
.
list
;
$scope
.
gridOptions
.
data
=
data
.
list
;
$scope
.
queryOutputInvoiceResult
.
pageInfo
=
data
.
pageInfo
;
$scope
.
queryOutputInvoiceResult
.
pageInfo
=
data
;
computeOutputInvoiceItemPage
();
computeOutputInvoiceItemPage
();
}
}
}).
error
(
function
()
{
}).
error
(
function
()
{
...
@@ -104,13 +104,13 @@
...
@@ -104,13 +104,13 @@
//计算页数,创建分页栏
//计算页数,创建分页栏
var
computeOutputInvoiceItemPage
=
function
()
{
var
computeOutputInvoiceItemPage
=
function
()
{
if
(
$scope
.
queryOutputInvoiceResult
.
pageInfo
&&
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
total
Count
>
0
)
{
if
(
$scope
.
queryOutputInvoiceResult
.
pageInfo
&&
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
total
>
0
)
{
var
totalPage
=
parseInt
(
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
total
Count
/
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
pageSize
);
var
totalPage
=
parseInt
(
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
total
/
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
pageSize
);
totalPage
=
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
total
Count
%
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
pageSize
==
0
?
totalPage
:
totalPage
+
1
;
totalPage
=
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
total
%
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
pageSize
==
0
?
totalPage
:
totalPage
+
1
;
if
(
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
page
Index
===
totalPage
)
{
if
(
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
page
Num
===
totalPage
)
{
$scope
.
curPageItemCount
=
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
total
Count
%
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
pageSize
;
$scope
.
curPageItemCount
=
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
total
%
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
pageSize
;
}
}
else
{
else
{
$scope
.
curPageItemCount
=
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
pageSize
;
$scope
.
curPageItemCount
=
$scope
.
queryOutputInvoiceResult
.
pageInfo
.
pageSize
;
...
...
atms-web/src/main/webapp/app/vat/preview/vat-preview-output-invoice/vat-preview-output-invoice.html
View file @
6cb74496
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<div
class=
"watermark"
ng-show=
"!gridOptions.data.length"
><span
translate=
"NoDataAvailable"
></span></div>
<div
class=
"watermark"
ng-show=
"!gridOptions.data.length"
><span
translate=
"NoDataAvailable"
></span></div>
</div>
</div>
<div
class=
"pagination-container"
>
<div
class=
"pagination-container"
>
<span
>
本页{{curPageItemCount}}条记录,共{{queryOutputInvoiceResult.pageInfo.total
Count
}}条记录
</span>
<span
>
本页{{curPageItemCount}}条记录,共{{queryOutputInvoiceResult.pageInfo.total}}条记录
</span>
<div
id=
"totalInvoicePage"
class=
"common-pagination"
style=
"display:none;"
>
<div
id=
"totalInvoicePage"
class=
"common-pagination"
style=
"display:none;"
>
</div>
</div>
</div>
</div>
...
...
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