Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
蒋勇
zhichan
Commits
357c825e
Commit
357c825e
authored
Aug 14, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diagnosisSve update
parent
eb2bd0a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
center-order/app/base/service/impl/dbneed/diagnosisSve.js
+15
-6
No files found.
center-order/app/base/service/impl/dbneed/diagnosisSve.js
View file @
357c825e
...
...
@@ -97,18 +97,27 @@ class DiagnosisService extends ServiceBase {
return
system
.
getResultSuccess
(
res
);
}
// 过滤数组 筛选出选择过的资质
checkIsChoice
(
obj
)
{
console
.
log
(
obj
)
return
obj
.
isChoice
==
true
;
checkIsChoice
(
arr
)
{
if
(
!
arr
)
{
return
[];
}
function
filterArr
(
obj
)
{
return
obj
.
isChoice
==
true
;
}
console
.
log
(
arr
)
return
arr
.
filter
(
filterArr
);
}
async
diagnosisDetail
(
pobj
)
{
if
(
!
pobj
.
actionBody
.
diagnosisNo
)
{
return
system
.
getResultFail
(
-
5008
,
"诊断单号不能为空 "
);
}
let
diagnosisResult
=
await
this
.
dao
.
findOneByDiagnosisNo
(
pobj
.
actionBody
.
diagnosisNo
)
diagnosisResult
.
needQualifications_pic
=
diagnosisResult
.
qualifications_pic
.
filter
(
this
.
checkIsChoice
);
diagnosisResult
.
needBrand_pic
=
diagnosisResult
.
brand_pic
.
filter
(
this
.
checkIsChoice
);
diagnosisResult
.
needIndustry_pic
=
diagnosisResult
.
industry_pic
.
filter
(
this
.
checkIsChoice
);
diagnosisResult
.
needQualifications_pic
=
this
.
checkIsChoice
(
diagnosisResult
.
qualifications_pic
);
diagnosisResult
.
needBrand_pic
=
this
.
checkIsChoice
(
diagnosisResult
.
brand_pic
);
diagnosisResult
.
needIndustry_pic
=
this
.
checkIsChoice
(
diagnosisResult
.
industry_pic
);
// diagnosisResult.needQualifications_pic = diagnosisResult.qualifications_pic.filter(this.checkIsChoice);
// diagnosisResult.needBrand_pic = diagnosisResult.brand_pic.filter(this.checkIsChoice);
// diagnosisResult.needIndustry_pic = diagnosisResult.industry_pic.filter(this.checkIsChoice);
return
system
.
getResultSuccess
(
diagnosisResult
);
}
...
...
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