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
55ad30f3
Commit
55ad30f3
authored
Nov 27, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BugFixed] fixed approval result undefind
parent
79b3576e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
43 deletions
+28
-43
app-approve.ctrl.js
...main/webapp/app/framework/app-approve/app-approve.ctrl.js
+28
-43
No files found.
atms-web/src/main/webapp/app/framework/app-approve/app-approve.ctrl.js
View file @
55ad30f3
...
...
@@ -31,6 +31,7 @@
//*************************************************************************************************
$scope
.
randomCounter
=
0
;
$scope
.
allResults
=
[];
$scope
.
queryResults
=
[];
$scope
.
checkedOrgs
=
{};
$scope
.
orgList
=
[];
$scope
.
orderYear
=
true
;
...
...
@@ -125,17 +126,14 @@
return
_
.
contains
(
_
.
values
(
$scope
.
checkedOrgs
),
i
.
organizationName
);
});
}
if
(
$scope
.
serviceTypeId
)
{
temp
=
_
.
filter
(
temp
,
function
(
i
)
{
return
$scope
.
serviceTypeId
==
i
.
serviceTypeID
;
});
}
if
(
vatSessionService
.
year
)
{
if
(
$scope
.
serviceTypeId
===
enums
.
serviceType
.
VAT
)
{
temp
=
_
.
filter
(
temp
,
function
(
i
)
{
if
(
i
.
startPeriod
<=
vatSessionService
.
month
&&
i
.
endPeriod
>=
vatSessionService
.
month
&&
i
.
year
==
vatSessionService
.
year
)
{
if
(
i
.
period
==
vatSessionService
.
month
)
{
return
i
;
}
});
}
else
if
(
$scope
.
serviceTypeId
===
enums
.
serviceType
.
CIT
)
{
...
...
@@ -164,28 +162,6 @@
var
counter
=
0
;
var
setWarningToTrue
=
false
;
temp
.
forEach
(
function
(
project
)
{
setWarningToTrue
=
false
;
project
.
finalStatus
=
setLayoutStatusTitle
(
project
.
projectStatusList
);
project
.
periodDate
=
$scope
.
currentSelectedYear
+
"."
+
$scope
.
currentSelectedMonth
;
var
oneDemoData
=
_
.
find
(
demoData
,
function
(
one
)
{
return
one
.
id
===
project
.
id
});
if
(
project
.
serviceTypeID
===
enums
.
serviceType
.
VAT
)
{
if
(
project
.
projectStatusList
!==
null
&&
project
.
projectStatusList
[
vatSessionService
.
month
]
!==
undefined
&&
project
.
projectStatusList
[
vatSessionService
.
month
]
!==
10
&&
oneDemoData
!==
undefined
)
{
project
.
taxAmount
=
oneDemoData
.
taxAmount
;
project
.
prepadidTaxAmount
=
oneDemoData
.
prepadidTaxAmount
;
project
.
taxRate
=
oneDemoData
.
taxRate
;
project
.
hasWarning
=
oneDemoData
.
hasWarning
;
}
}
counter
++
;
});
$scope
.
queryResults
=
temp
;
$scope
.
projectMsg
=
$translate
.
instant
(
'ProjectResultMsg'
).
formatObj
({
"ProjectNum"
:
$scope
.
queryResults
.
length
});
...
...
@@ -283,15 +259,6 @@
};
$scope
.
changeStartDate
=
function
(
e
)
{
if
(
e
&&
e
.
date
)
{
var
tempYear
=
e
.
date
.
getFullYear
();
var
tempMonth
=
e
.
date
.
getMonth
()
+
1
;
$scope
.
currentSelectedStartMonth
=
tempMonth
;
$scope
.
currentSelectedStartYear
=
tempYear
;
}
};
$scope
.
changeDate
=
function
(
e
)
{
if
(
e
&&
e
.
date
)
{
var
isDateUpdated
=
false
;
...
...
@@ -308,15 +275,15 @@
$scope
.
currentSelectedYear
=
tempYear
;
if
(
isDateUpdated
)
{
//$scope.$apply(function () {
// $scope.conditionChange = !$scope.conditionChange;
//});
$timeout
(
function
()
{
$scope
.
conditionChange
=
!
$scope
.
conditionChange
;
});
}
if
(
$scope
.
serviceTypeId
!==
enums
.
serviceType
.
AssetsManage
)
{
$scope
.
query
();
}
}
};
...
...
@@ -577,8 +544,18 @@
var
loadApprovalFromDB
=
function
()
{
vatApproveService
.
approvalTasks
().
success
(
function
(
data
)
{
if
(
data
)
{
data
.
forEach
(
function
(
p
)
{
if
(
PWC
.
isHavePermissionForOrg
(
p
.
organizationId
,
vatSessionService
.
userPermission
))
{
$scope
.
allResults
.
push
(
p
);
}
});
$scope
.
queryResults
=
_
.
clone
(
$scope
.
allResults
);
$scope
.
gridOptions
=
{
dataSource
:
data
,
bindingOptions
:
{
"dataSource"
:
"queryResults"
},
keyExpr
:
"instanceId"
,
showBorders
:
true
,
columns
:
[
...
...
@@ -597,7 +574,15 @@
}
}
},
{
caption
:
'审批意见'
,
width
:
'15%'
,
dataField
:
"approvalResult"
},
{
caption
:
'审批意见'
,
width
:
'15%'
,
calculateCellValue
:
function
(
data
)
{
if
(
data
.
approvalResult
==
'undefined'
){
return
''
;
}
else
{
return
data
.
approvalResult
;
}
}
},
{
caption
:
'提审时间'
,
width
:
'7.5%'
,
dataField
:
"createTime"
},
{
caption
:
'审批时间'
,
width
:
'7.5%'
,
dataField
:
"approvalTime"
}
],
...
...
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