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
783a5125
Commit
783a5125
authored
Mar 17, 2019
by
kevin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#
parent
a13a5497
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
152 additions
and
4 deletions
+152
-4
cit.json
atms-web/src/main/webapp/app-resources/i18n/zh-CN/cit.json
+4
-1
entryList-modal.ctrl.js
...pp/app/cit/report/entryList-modal/entryList-modal.ctrl.js
+4
-0
entryLog-modal.ctrl.js
...bapp/app/cit/report/entryLog-modal/entryLog-modal.ctrl.js
+84
-0
entryLog-modal.html
.../webapp/app/cit/report/entryLog-modal/entryLog-modal.html
+16
-0
entryLog-modal.js
...in/webapp/app/cit/report/entryLog-modal/entryLog-modal.js
+14
-0
entryLog-modal.less
.../webapp/app/cit/report/entryLog-modal/entryLog-modal.less
+19
-0
tax-report-cell-detail-modal.ctrl.js
...rt-cell-detail-modal/tax-report-cell-detail-modal.ctrl.js
+9
-3
tax-report-cell-detail-modal.html
...eport-cell-detail-modal/tax-report-cell-detail-modal.html
+2
-0
No files found.
atms-web/src/main/webapp/app-resources/i18n/zh-CN/cit.json
View file @
783a5125
...
...
@@ -1183,6 +1183,8 @@
"QMYETotalFirst"
:
"期末余额合计(借-贷)"
,
"QMYETotalend"
:
"期末余额合计(贷-借)"
,
"Backfill any adjusted total value back to the adjusted amount"
:
"单选任意合计值回填至调整后金额"
,
"BackAdjustAmount"
:
"调整后金额"
"BackAdjustAmount"
:
"调整后金额"
,
"OperateDate"
:
"操作日期"
}
\ No newline at end of file
atms-web/src/main/webapp/app/cit/report/entryList-modal/entryList-modal.ctrl.js
View file @
783a5125
...
...
@@ -47,6 +47,8 @@
$log.debug($scope.selectedItems);*/
$scope
.
doCalcute
(
selectedItems
.
selectedRowsData
);
//更新日志
$scope
.
relObj
},
allowColumnResizing
:
true
,
...
...
@@ -118,6 +120,7 @@
$scope
.
hideCellAttachmentModel
=
function
()
{
$
(
'#entryListModal'
).
modal
(
'hide'
);
entityInit
();
}
//
...
...
@@ -135,6 +138,7 @@
v1
+=
v1
+
parseFloat
(
item
.
accountedDr
);
v2
+=
v2
+
parseFloat
(
item
.
accountedCr
);
}
_index
++
;
});
$scope
.
entry
.
JFFSETotal
=
v1
;
$scope
.
entry
.
DFFSETotal
=
v2
;
...
...
atms-web/src/main/webapp/app/cit/report/entryLog-modal/entryLog-modal.ctrl.js
0 → 100644
View file @
783a5125
citModule
.
controller
(
'entryLogModalController'
,
[
'$log'
,
'apiInterceptor'
,
'Upload'
,
'$scope'
,
'$q'
,
'$translate'
,
'$uibModal'
,
'$document'
,
'$rootScope'
,
'SweetAlert'
,
'enums'
,
'vatReportService'
,
'loginContext'
,
'vatSessionService'
,
'stdAccountService'
,
'vatCommonService'
,
'formulaService'
,
'KeyValueConfigService'
,
'modelConfigurationService'
,
'$timeout'
,
'cellCommentService'
,
'modifiedReportCellService'
,
function
(
$log
,
apiInterceptor
,
Upload
,
$scope
,
$q
,
$translate
,
$uibModal
,
$document
,
$rootScope
,
SweetAlert
,
enums
,
vatReportService
,
loginContext
,
vatSessionService
,
stdAccountService
,
vatCommonService
,
formulaService
,
KeyValueConfigService
,
modelConfigurationService
,
$timeout
,
cellCommentService
,
modifiedReportCellService
)
{
$scope
.
dataGridOptions
=
{
bindingOptions
:
{
columns
:
'entryLogColumns'
,
dataSource
:
'relObj.entryLogSource'
},
loadPanel
:
{
enabled
:
false
},
scrolling
:
{
mode
:
"standard"
},
selection
:
{
mode
:
"multiple"
},
sorting
:
{
mode
:
'single'
},
filterRow
:
{
visible
:
true
},
searchPanel
:
{
visible
:
true
,
width
:
240
,
placeholder
:
$translate
.
instant
(
'SearchPlaceholder'
)
},
allowColumnResizing
:
true
,
hoverStateEnabled
:
true
,
showBorders
:
true
,
showRowLines
:
true
,
showColumnLines
:
true
,
};
//设置数据源表格的列
var
getEntryLogColumns
=
function
()
{
var
dataGridColumns
;
dataGridColumns
=
[
{
dataField
:
'index'
,
caption
:
$translate
.
instant
(
'ImportErrorPopUpNoCol'
),
alignment
:
'center'
},
{
dataField
:
'accountingDate'
,
caption
:
$translate
.
instant
(
'OperateDate'
),
alignment
:
'left'
,
dataType
:
'date'
,
customizeText
:
function
(
cellInfo
)
{
if
(
cellInfo
&&
cellInfo
.
value
)
{
return
new
Date
(
cellInfo
.
value
).
dateTimeToString
(
'yyyyMMdd'
);
}
return
""
;
}
},
{
dataField
:
'voucherNum'
,
caption
:
$translate
.
instant
(
'VoucherCode'
),
alignment
:
'center'
},
{
dataField
:
'description'
,
caption
:
$translate
.
instant
(
'Operate'
),
alignment
:
'center'
}
];
return
dataGridColumns
;
};
$scope
.
entryLogColumns
=
getEntryLogColumns
();
$scope
.
hideCellAttachmentModel
=
function
()
{
$
(
'#entryListModal'
).
modal
(
'hide'
);
}
}
]);
\ No newline at end of file
atms-web/src/main/webapp/app/cit/report/entryLog-modal/entryLog-modal.html
0 → 100644
View file @
783a5125
<div
class=
"modal fade"
id=
"entryListModal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
>
<div
class=
"modal-dialog modal-lg"
style=
"width: 1200px;"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<span
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
ng-click=
"hideCellAttachmentModel()"
>
×
</span>
<h4
class=
"modal-title"
translate=
"Remarks"
></h4>
</div>
<div
class=
"dx-viewport"
>
<div
id=
"dataSourceGrid"
dx-data-grid=
"dataGridOptions"
></div>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
atms-web/src/main/webapp/app/cit/report/entryLog-modal/entryLog-modal.js
0 → 100644
View file @
783a5125
citModule
.
directive
(
'entryModal'
,
[
'$log'
,
function
(
$log
)
{
return
{
restrict
:
'E'
,
templateUrl
:
'/app/cit/report/entryLog-modal/entryLog-modal.html'
+
'?_='
+
Math
.
random
(),
scope
:
{
relObj
:
'='
},
controller
:
'entryLogModalController'
,
link
:
function
(
$scope
,
$element
,
$attr
)
{
}
}
}]);
\ No newline at end of file
atms-web/src/main/webapp/app/cit/report/entryLog-modal/entryLog-modal.less
0 → 100644
View file @
783a5125
@small-panel-height: 40px;
@small-panel-margin: 10px;
@small-panel-border-color: #E4E4E4;
@tab-not-selected: #bababa;
@focus: #c00;
@btn-color: white;
@btn-not-focus: #777;
#entryListModal{
.backColor{
background-color: #a09595b3;
}
.backColor{
h4 {
display: inline-block;
}
}
}
\ No newline at end of file
atms-web/src/main/webapp/app/cit/report/tax-report-cell-detail-modal/tax-report-cell-detail-modal.ctrl.js
View file @
783a5125
...
...
@@ -690,6 +690,12 @@
},
0
);
$
(
"#dataGridFooterSummary"
).
html
(
$translate
.
instant
(
'Conclusion'
)
+
' '
+
evalVal
.
formatAmount
(
precition
));
}
else
if
(
$scope
.
selectedTabIndex
===
enums
.
formulaDataSourceType
.
CIT_TBAM
){
evalVal
=
_
.
reduce
(
$scope
.
detail
.
dataGridSource
,
function
(
memo
,
x
)
{
return
memo
+
x
.
endBalance
;
},
0
);
$
(
"#dataGridFooterSummary"
).
html
(
$translate
.
instant
(
'Conclusion'
)
+
' '
+
evalVal
.
formatAmount
(
precition
));
}
else
{
// For 报表数据源 and BSPL数据源
if
(
$scope
.
detail
.
dataGridSource
&&
$scope
.
detail
.
dataGridSource
.
length
>
0
)
{
...
...
@@ -717,7 +723,6 @@
//设置数据源表格的列
var
getDataGridColumns
=
function
()
{
debugger
;
var
dataGridColumns
;
switch
(
$scope
.
detail
.
cellType
)
{
case
enums
.
formulaDataSourceType
.
TrialBalanceSource
:
...
...
@@ -1514,7 +1519,7 @@
}
return
dataGridColumns
;
};
//-----------------------------------------------------kevin insert ----------------------------------------------------------------
//监听穿透返回值(调整后金额)
$scope
.
$watch
(
'relObj.checkRadio'
,
function
(
n
,
o
)
{
if
(
$scope
.
detail
.
entryIndex
!=
undefined
){
...
...
@@ -1697,6 +1702,8 @@
return
dataGridColumns
;
};
//-------------------------------------------------------------------- end --------------------------------------------------------------
//添加数据源(发票|凭证)数据过滤
var
allDataFilter
=
function
(
config
,
data
)
{
var
dataGridColumns
;
...
...
@@ -1763,7 +1770,6 @@
});
addDataSource
();
}
//计算凭证的数值
function
calculateVoucherValue
(
voucher
)
{
return
voucher
.
direction
*
((
voucher
.
debitAmount
?
voucher
.
debitAmount
:
0
)
-
(
voucher
.
creditAmount
?
voucher
.
creditAmount
:
0
));
...
...
atms-web/src/main/webapp/app/cit/report/tax-report-cell-detail-modal/tax-report-cell-detail-modal.html
View file @
783a5125
...
...
@@ -303,6 +303,8 @@
<!--分录弹框-->
<entry-list-modal
id =
"entryListId"
rel-obj =
"relObj"
></entry-list-modal>
<entry-Log
id =
"entryLogId"
rel-obj =
"relObj"
></entry-Log>
</div>
<div
class=
"tax-report-cell-detail"
id=
"addSourceContainer"
></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