Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
a73a012a
Commit
a73a012a
authored
Nov 22, 2022
by
NGO THI HONG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug null task key, reply no null of warning url
parent
e15b1f6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
abweb/js/pickup/pickup.js
+12
-12
No files found.
abweb/js/pickup/pickup.js
View file @
a73a012a
...
...
@@ -600,15 +600,15 @@ PICKUP.initWarningReportWithInspectType = function (report) {
* @param {*} reportTypeMsg
* @returns
*/
PICKUP
.
initWarningReportWithAnswerReportType
=
function
(
report
,
reportTypeMsg
)
{
PICKUP
.
initWarningReportWithAnswerReportType
=
function
(
report
,
reportType
,
reportType
Msg
)
{
let
ele
=
$
(
"<li class='card mb-2'>"
+
'<a href="javascript:PICKUP.sendReportFormFromWarningReport (
\'
'
+
report
.
operationId
+
"',"
+
PICKUP
.
REPORT_TYPE
.
WITHREPLY
+
',
null, null,null,'
+
report
.
replyNo
+
',
\'
'
+
report
.
taskKey
+
"', null,null,"
+
report
Type
+
");
\"
class='h-100 d-block px-3 py-2 text-decoration-none text-dark position-relative'>"
+
"<div class='position-absolute translate-middle top-50 left-0 ml-3'><div class='type-icon'>"
+
"<span class='questionary'></span></div></div><div class='pl-5 h-100 d-flex align-items-center'><div class='w-100'>"
+
...
...
@@ -712,9 +712,9 @@ PICKUP.createReportWithWarningList = function (operationListOld) {
break
;
case
PICKUP
.
REPORT_TYPE
.
WITHREPLY
:
// report answer
if
(
operationList
[
i
].
taskType
==
PICKUP
.
REPLYREPORT_TASK_TYPE
.
REPORT
)
{
operationNameLi
=
PICKUP
.
initWarningReportWithAnswerReportType
(
operationList
[
i
],
msgLevelReport
);
operationNameLi
=
PICKUP
.
initWarningReportWithAnswerReportType
(
operationList
[
i
],
PICKUP
.
REPLYREPORT_TASK_TYPE
.
REPORT
,
msgLevelReport
);
}
else
{
operationNameLi
=
PICKUP
.
initWarningReportWithAnswerReportType
(
operationList
[
i
],
msgLevelAnswer
);
operationNameLi
=
PICKUP
.
initWarningReportWithAnswerReportType
(
operationList
[
i
],
PICKUP
.
REPLYREPORT_TASK_TYPE
.
ANSWER
,
msgLevelAnswer
);
}
break
;
case
PICKUP
.
REPORT_TYPE
.
WORKFLOW
:
// continouswork
...
...
@@ -781,24 +781,24 @@ PICKUP.sendReportFormFromContinuousWork = function (operationId, taskKey, proces
* @param {*} replyNo
*/
PICKUP
.
sendReportFormFromWarningReport
=
function
(
operationId
,
reportType
,
taskKey
,
processKey
,
phaseNo
,
replyNo
)
{
//Trans
i
tion to the report form or operation list screen
//Trans
ac
tion to the report form or operation list screen
sessionStorage
.
setItem
(
'pickUpType'
,
CONSTANT
.
PICK_UP_TYPE
.
WARNING_REPORT
);
sessionStorage
.
setItem
(
'operationId'
,
operationId
);
let
url
=
'reportForm.html?operationId='
+
operationId
;
switch
(
reportType
)
{
case
PICKUP
.
REPORT_TYPE
.
REPORTONLY
:
url
+=
'&taskKey'
+
taskKey
;
url
+=
'&taskKey
=
'
+
taskKey
;
break
;
case
PICKUP
.
REPORT_TYPE
.
INSPECT
:
url
+=
'&taskKey'
+
taskKey
;
url
+=
'&taskKey
=
'
+
taskKey
;
break
;
case
PICKUP
.
REPORT_TYPE
.
WITHREPLY
:
url
+=
'&taskKey'
+
taskKey
;
url
+=
'&replyN
O
'
+
replyNo
;
url
+=
'&taskKey
=
'
+
taskKey
;
url
+=
'&replyN
o=
'
+
replyNo
;
break
;
case
PICKUP
.
REPORT_TYPE
.
WORKFLOW
:
url
+=
'&processKey'
+
processKey
;
url
+=
'&phaseNo'
+
phaseNo
;
url
+=
'&processKey
=
'
+
processKey
;
url
+=
'&phaseNo
=
'
+
phaseNo
;
break
;
}
...
...
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