Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_REFACTORING
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangyusheng
YX_IDENT_REFACTORING
Commits
6afbba91
Commit
6afbba91
authored
Dec 26, 2018
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改任务单页面、
修改交接单页面、 修改报表页面
parent
527d107c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
87 additions
and
62 deletions
+87
-62
service.js
src/main/resources/static/js/services/service.js
+8
-7
cycleSheet.html
...in/resources/static/tpl/layout/cycleSheet/cycleSheet.html
+2
-2
cycleSheet.js
...main/resources/static/tpl/layout/cycleSheet/cycleSheet.js
+12
-0
receipt.html
src/main/resources/static/tpl/layout/receipt/receipt.html
+61
-48
receipt.js
src/main/resources/static/tpl/layout/receipt/receipt.js
+4
-5
No files found.
src/main/resources/static/js/services/service.js
View file @
6afbba91
...
@@ -428,9 +428,9 @@ app.service('MessageService', function (ngDialog) {
...
@@ -428,9 +428,9 @@ app.service('MessageService', function (ngDialog) {
getCountyListByTaskListId
:
function
(
taskStateId
,
success
){
getCountyListByTaskListId
:
function
(
taskStateId
,
success
){
$http
({
$http
({
method
:
'GET'
,
method
:
'GET'
,
url
:
"../user/getCountyList
ByTaskListId
"
+
urlTimeStamp
(),
url
:
"../user/getCountyList"
+
urlTimeStamp
(),
params
:{
params
:{
task
State
Id
:
taskStateId
taskId
:
taskStateId
}
}
}).
then
(
function
successCallback
(
response
)
{
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
success
(
response
.
data
)
...
@@ -474,10 +474,11 @@ app.service('MessageService', function (ngDialog) {
...
@@ -474,10 +474,11 @@ app.service('MessageService', function (ngDialog) {
method
:
'GET'
,
method
:
'GET'
,
url
:
"../user/getReceiptList"
+
urlTimeStamp
(),
url
:
"../user/getReceiptList"
+
urlTimeStamp
(),
params
:{
params
:{
start
Tim
e
:
startTime
,
start
Dat
e
:
startTime
,
end
Tim
e
:
endTime
end
Dat
e
:
endTime
}
}
}).
then
(
function
successCallback
(
response
)
{
}).
then
(
function
successCallback
(
response
)
{
console
.
log
(
response
.
data
,
"-------------response.data------"
)
success
(
response
.
data
)
success
(
response
.
data
)
},
function
(
err
){
},
function
(
err
){
var
errA
=
{
Error
:
true
,
ReturnCode
:
err
.
status
,
ReturnMsg
:
"API访问返回错误"
}
var
errA
=
{
Error
:
true
,
ReturnCode
:
err
.
status
,
ReturnMsg
:
"API访问返回错误"
}
...
@@ -487,10 +488,10 @@ app.service('MessageService', function (ngDialog) {
...
@@ -487,10 +488,10 @@ app.service('MessageService', function (ngDialog) {
getprintReceipt
:
function
(
startTime
,
endTime
,
success
){
getprintReceipt
:
function
(
startTime
,
endTime
,
success
){
$http
({
$http
({
method
:
'GET'
,
method
:
'GET'
,
url
:
"../user/
getConnec
tList"
+
urlTimeStamp
(),
url
:
"../user/
printReceip
tList"
+
urlTimeStamp
(),
params
:{
params
:{
start
Tim
e
:
startTime
,
start
Dat
e
:
startTime
,
end
Tim
e
:
endTime
end
Dat
e
:
endTime
}
}
}).
then
(
function
successCallback
(
response
)
{
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
success
(
response
.
data
)
...
...
src/main/resources/static/tpl/layout/cycleSheet/cycleSheet.html
View file @
6afbba91
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
</td>
</td>
<td>
{{city.state}}
</td>
<td>
{{city.state}}
</td>
<td
ng-if=
"userState<=4"
><a
ng-click=
"showTable(city.taskId)"
>
组号列表
</a></td>
<td
ng-if=
"userState<=4"
><a
ng-click=
"showTable(city.taskId)"
>
组号列表
</a></td>
<td
ng-if=
"userState>4"
><a
ng-click=
"showTable(city.taskId)"
>
区县列表
</a></td>
<td
ng-if=
"userState>4"
><a
ng-click=
"showTable
County
(city.taskId)"
>
区县列表
</a></td>
<td><a
ng-click=
"finishClick(city.taskId,userState)"
>
完成
</a></td>
<td><a
ng-click=
"finishClick(city.taskId,userState)"
>
完成
</a></td>
</tr>
</tr>
<tr
ng-show=
"showtable==city.taskId && userState<=4"
>
<tr
ng-show=
"showtable==city.taskId && userState<=4"
>
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
</td>
</td>
</tr>
</tr>
<tr
ng-show=
"showtable==city.taskId && userState>4"
>
<tr
ng-show=
"showtable
County
==city.taskId && userState>4"
>
<td></td>
<td></td>
<td
colspan=
"4"
>
<td
colspan=
"4"
>
<table
style=
"font-size:0.9em;color: #000;"
class=
"table"
>
<table
style=
"font-size:0.9em;color: #000;"
class=
"table"
>
...
...
src/main/resources/static/tpl/layout/cycleSheet/cycleSheet.js
View file @
6afbba91
...
@@ -348,6 +348,18 @@ app.controller('cycleSheetCtrl', ['$scope', '$rootScope', '$http', '$state', '$f
...
@@ -348,6 +348,18 @@ app.controller('cycleSheetCtrl', ['$scope', '$rootScope', '$http', '$state', '$f
getGroupListData
(
$scope
.
showtable
);
getGroupListData
(
$scope
.
showtable
);
}
}
$scope
.
showtableCounty
=
-
1
;
$scope
.
showTableCounty
=
function
(
taskID
)
{
if
(
$scope
.
showtableCounty
!=
taskID
)
{
$scope
.
showtableCounty
=
taskID
;
}
else
{
$scope
.
showtableCounty
=
-
1
;
}
console
.
log
(
$scope
.
showtableCounty
,
"---$scope.showtableCounty--"
);
getCountyListData
(
$scope
.
showtableCounty
);
}
$scope
.
showTableGroup
=
function
(
specialCardList
)
{
$scope
.
showTableGroup
=
function
(
specialCardList
)
{
console
.
log
(
"--specialCardList--"
,
specialCardList
);
console
.
log
(
"--specialCardList--"
,
specialCardList
);
ngDialog
.
open
({
ngDialog
.
open
({
...
...
src/main/resources/static/tpl/layout/receipt/receipt.html
View file @
6afbba91
...
@@ -10,53 +10,67 @@
...
@@ -10,53 +10,67 @@
<input
type=
"text"
ng-model=
"nowDate"
value=
"currentDetailDate"
id=
"wdate2"
class=
"Wdate"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm',autoPickDate:'true'})"
>
<input
type=
"text"
ng-model=
"nowDate"
value=
"currentDetailDate"
id=
"wdate2"
class=
"Wdate"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm',autoPickDate:'true'})"
>
<input
type=
"submit"
class=
"btn btn-primary"
value=
"查询"
ng-click=
"myClick()"
>
<input
type=
"submit"
class=
"btn btn-primary"
value=
"查询"
ng-click=
"myClick()"
>
</div>
</div>
<div
style=
"padding: 10px;background-color: #fff;border: 1px solid #CCC;border-radius: 10px;"
>
<div>
<div
ng-if=
"receiptData.length>0"
>
<table
class=
"table table-hover"
style=
"margin-top:10px;"
>
<thead>
<th></th>
<th>
普通证
</th>
<!--<th><a ng-click="showSpecialCardInfo()">快证</a></th>-->
<th>
快证
</th>
<th>
异地KS邮
</th>
<th>
异地KS普
</th>
<th>
异地邮
</th>
<th>
异地普
</th>
<th>
军人证
</th>
<th>
KS普
</th>
<th>
KS邮
</th>
<th>
邮寄证
</th>
<th>
小计
</th>
<th>
盒数
</th>
</thead>
<tbody>
<tr
ng-repeat=
"county in receiptData"
>
<td
width=
"100px"
>
{{county.countyName}}
</td>
<td
width=
"100px"
>
{{county.PTZ}}
</td>
<td
width=
"100px"
>
{{county.KZ}}
</td>
<td
width=
"100px"
>
{{county.YDKSY}}
</td>
<td
width=
"100px"
>
{{county.YDKSP}}
</td>
<td
width=
"100px"
>
{{county.YDY}}
</td>
<td
width=
"100px"
>
{{county.YDP}}
</td>
<td
width=
"100px"
>
{{county.JRZ}}
</td>
<td
width=
"100px"
>
{{county.KSP}}
</td>
<td
width=
"100px"
>
{{county.KSY}}
</td>
<td
width=
"100px"
>
{{county.YJZ}}
</td>
<td
width=
"100px"
>
{{county.sum}}
</td>
<td
width=
"100px"
>
{{county.boxCount}}
</td>
<!--<td width="100px" ng-repeat="item in county track by $index" ng-if="$index!=12 && $index!=13">-->
<!--<span ng-if="item!=0">{{item}}</span>-->
<!--<span ng-if="item==0"></span>-->
<!--</td>-->
</tr>
</tbody>
</table>
</div>
<div
ng-if=
"receiptData.length==0"
style=
"font-size:1.5em;"
>
当天暂无报表数据。
</div>
<div
ng-if=
"receiptData.length!=0"
style=
"font-size:1.5em;"
>
<input
type=
"button"
class=
"btn btn-primary"
value=
"下载交接单"
ng-click=
"printReceipt()"
>
<input
type=
"button"
class=
"btn btn-primary"
value=
"下载回执单"
ng-click=
"printOfficialReceipt()"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<
div
class=
"loading"
>
<
!--<div class="loading">--
>
<
span></span
>
<
!--<span></span>--
>
<
span></span
>
<
!--<span></span>--
>
<
span></span
>
<
!--<span></span>--
>
<
span></span
>
<
!--<span></span>--
>
<
span></span
>
<
!--<span></span>--
>
<
/div
>
<
!--</div>--
>
</div>
</div>
<div
style=
"padding: 10px;background-color: #fff;border: 1px solid #CCC;border-radius: 10px;"
>
<div>
<div
ng-if=
"receiptData.length>0"
>
<table
class=
"table table-hover"
style=
"margin-top:10px;"
>
<thead>
<th></th>
<th>
普通证
</th>
<!--<th><a ng-click="showSpecialCardInfo()">快证</a></th>-->
<th>
快证
</th>
<th>
异地KS邮
</th>
<th>
异地KS普
</th>
<th>
异地邮
</th>
<th>
异地普
</th>
<th>
军人证
</th>
<th>
KS普
</th>
<th>
KS邮
</th>
<th>
邮寄证
</th>
<th>
小计
</th>
<th>
盒数
</th>
</thead>
<tbody>
<tr
ng-repeat=
"county in receiptData"
>
<td
width=
"100px"
>
{{county[12]}}
</td>
<td
width=
"100px"
ng-repeat=
"item in county track by $index"
ng-if=
"$index!=12 && $index!=13"
>
<span
ng-if=
"item!=0"
>
{{item}}
</span>
<span
ng-if=
"item==0"
></span>
</td>
</tr>
</tbody>
</table>
</div>
<div
ng-if=
"receiptData.length==0"
style=
"font-size:1.5em;"
>
当天暂无报表数据。
</div>
<div
ng-if=
"receiptData.length!=0 && receiptData[0][11] != 0"
style=
"font-size:1.5em;"
>
<input
type=
"button"
class=
"btn btn-primary"
value=
"下载交接单"
ng-click=
"printReceipt()"
>
<input
type=
"button"
class=
"btn btn-primary"
value=
"下载回执单"
ng-click=
"printOfficialReceipt()"
>
</div>
</div>
</div>
\ No newline at end of file
src/main/resources/static/tpl/layout/receipt/receipt.js
View file @
6afbba91
...
@@ -32,8 +32,8 @@ app.controller('receiptCtrl', ['$scope', '$rootScope', '$http', '$state', '$filt
...
@@ -32,8 +32,8 @@ app.controller('receiptCtrl', ['$scope', '$rootScope', '$http', '$state', '$filt
$scope
.
currentDetailDate
=
getNowFormatDetailDate
();
$scope
.
currentDetailDate
=
getNowFormatDetailDate
();
// $scope.nowDataEight = new Date().format("yyyy-MM-dd 08:00");
// $scope.nowDataEight = new Date().format("yyyy-MM-dd 08:00");
var
date
=
new
Date
();
var
date
=
new
Date
();
$scope
.
nowDataEight
=
$filter
(
'date'
)(
"yyyy-MM-dd 08:00"
);
$scope
.
nowDataEight
=
$filter
(
'date'
)(
date
,
"yyyy-MM-dd 08:00"
);
$scope
.
nowDate
=
$filter
(
'date'
)(
"yyyy-MM-dd hh:mm"
);
$scope
.
nowDate
=
$filter
(
'date'
)(
date
,
"yyyy-MM-dd hh:mm"
);
var
changeDataFormat
=
function
(
date
)
{
var
changeDataFormat
=
function
(
date
)
{
var
yyyyMMdd
=
date
.
split
(
" "
)[
0
];
var
yyyyMMdd
=
date
.
split
(
" "
)[
0
];
...
@@ -45,12 +45,11 @@ app.controller('receiptCtrl', ['$scope', '$rootScope', '$http', '$state', '$filt
...
@@ -45,12 +45,11 @@ app.controller('receiptCtrl', ['$scope', '$rootScope', '$http', '$state', '$filt
var
mm
=
hhmm
.
split
(
":"
)[
1
];
var
mm
=
hhmm
.
split
(
":"
)[
1
];
return
yyyy
+
MM
+
dd
+
hh
+
mm
;
return
yyyy
+
MM
+
dd
+
hh
+
mm
;
}
}
$scope
.
receiptData
=
[];
var
getReceiptData
=
function
(
startTime
,
endTime
)
{
var
getReceiptData
=
function
(
startTime
,
endTime
)
{
HttpService
.
getReceiptData
(
startTime
,
endTime
,
function
(
data
)
{
HttpService
.
getReceiptData
(
startTime
,
endTime
,
function
(
data
)
{
$scope
.
receiptData
=
data
.
respData
;
$scope
.
receiptData
=
data
.
respData
;
console
.
log
(
$scope
.
receiptData
)
})
})
}
}
getReceiptData
(
changeDataFormat
(
$scope
.
nowDataEight
),
changeDataFormat
(
$scope
.
nowDate
))
getReceiptData
(
changeDataFormat
(
$scope
.
nowDataEight
),
changeDataFormat
(
$scope
.
nowDate
))
...
...
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