Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
ln-medicalAppointment-pc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
孙海亮
ln-medicalAppointment-pc
Commits
89d8e598
Commit
89d8e598
authored
3 years ago
by
huangyecong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加体检中心接口
parent
9dcfb796
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
39 deletions
+59
-39
combo.vue
src/views/flow/components/combo.vue
+5
-1
selectInstitution.vue
src/views/flow/components/selectInstitution.vue
+46
-30
index.vue
src/views/flow/index.vue
+8
-8
No files found.
src/views/flow/components/combo.vue
View file @
89d8e598
...
@@ -95,7 +95,11 @@ export default {
...
@@ -95,7 +95,11 @@ export default {
},
},
methods
:
{
methods
:
{
onChange
(
checkedValues
)
{
onChange
(
checkedValues
)
{
window
.
localStorage
.
setItem
(
'
chooseId
'
,
JSON
.
stringify
(
this
.
chooseId
))
const
chooseList
=
[]
chooseList
.
push
({
id
:
this
.
chooseId
})
window
.
localStorage
.
setItem
(
'
chooseList
'
,
JSON
.
stringify
(
chooseList
))
console
.
log
(
"
选择体检套餐chooseId===
"
,
this
.
chooseId
)
console
.
log
(
"
选择体检套餐chooseId===
"
,
this
.
chooseId
)
},
},
},
},
...
...
This diff is collapsed.
Click to expand it.
src/views/flow/components/selectInstitution.vue
View file @
89d8e598
...
@@ -51,8 +51,8 @@
...
@@ -51,8 +51,8 @@
v-for=
"(item, index) in mechanismList"
v-for=
"(item, index) in mechanismList"
:key=
"index"
:key=
"index"
:class=
"index === selectIndex ? 'active' : ''"
:class=
"index === selectIndex ? 'active' : ''"
@
click=
"clickTab(index)"
@
click=
"clickTab(index
,(item.id)
)"
>
{{
item
.
supplierName
}}
</span
>
{{
item
.
supplierName
}}
-
{{
item
.
id
}}
</span
>
>
</div>
</div>
</div>
</div>
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<ul
class=
"hospital_box"
>
<ul
class=
"hospital_box"
>
<li
v-for=
"(item, index) in hospitalList"
:key=
"index"
>
<li
v-for=
"(item, index) in hospitalList"
:key=
"index"
>
<div>
<div>
<p
class=
"top"
>
{{
item
.
n
ame
}}
</p>
<p
class=
"top"
>
{{
item
.
checkUnitN
ame
}}
</p>
<p
class=
"bottom"
>
{{
item
.
address
}}
</p>
<p
class=
"bottom"
>
{{
item
.
address
}}
</p>
</div>
</div>
<button
<button
...
@@ -94,6 +94,7 @@
...
@@ -94,6 +94,7 @@
<
script
>
<
script
>
import
api
from
'
@/api/customer
'
import
api
from
'
@/api/customer
'
import
reserveDate
from
'
../../../components/reserve-date
'
import
reserveDate
from
'
../../../components/reserve-date
'
import
{
log
}
from
'
util
'
export
default
{
export
default
{
name
:
'
selectInstitution
'
,
name
:
'
selectInstitution
'
,
components
:
{
components
:
{
...
@@ -113,43 +114,27 @@ export default {
...
@@ -113,43 +114,27 @@ export default {
provinceList
:
[
'
上海市
'
],
provinceList
:
[
'
上海市
'
],
areaList
:
[
'
静安区
'
],
areaList
:
[
'
静安区
'
],
mechanismList
:
[],
mechanismList
:
[],
hospitalList
:
[
hospitalList
:
[],
{
supplierIds
:
""
,
//体检中心ids,默认显示全部
name
:
'
上海张江分院
'
,
address
:
'
上海市浦东新区海科路777号
'
,
},
{
name
:
'
上海张江分院
'
,
address
:
'
上海市浦东新区海科路777号
'
,
},
{
name
:
'
上海张江分院
'
,
address
:
'
上海市浦东新区海科路777号
'
,
},
{
isDisabled
:
true
,
name
:
'
上海张江分院
'
,
address
:
'
上海市浦东新区海科路777号
'
,
},
],
}
}
},
},
created
()
{
created
()
{
this
.
getProvinceList
()
this
.
getProvinceList
()
//省
this
.
getSupplierList
()
//获取体检机构
this
.
getSupplierList
()
//获取体检机构
this
.
getShopByDistrictCode
()
//根据体检结构-显示可选择的体检中心,默认显示全部
},
},
methods
:
{
methods
:
{
// 省
// 省
async
getProvinceList
()
{
async
getProvinceList
()
{
const
query
=
{
const
query
=
{
customerSex
:
''
,
customerSex
:
'
M
'
,
customerMaritalStatus
:
''
,
customerMaritalStatus
:
'
02
'
,
chooseList
:
[],
chooseList
:
[
{
id
:
1069
}
],
payList
:
[],
payList
:
[],
}
}
await
api
.
getProvinceList
().
then
((
res
)
=>
{
await
api
.
getProvinceList
(
query
).
then
((
res
)
=>
{
console
.
log
(
'
省=
'
,
res
)
console
.
log
(
'
省=
'
,
res
)
})
})
// await this.getCityListByProvinceCode()
// await this.getCityListByProvinceCode()
...
@@ -173,6 +158,7 @@ export default {
...
@@ -173,6 +158,7 @@ export default {
// this.id
// this.id
api
.
getSupplierList
({
servicepackageId
:
'
1043
'
}).
then
((
res
)
=>
{
api
.
getSupplierList
({
servicepackageId
:
'
1043
'
}).
then
((
res
)
=>
{
if
(
res
.
returnCode
==
'
0000
'
)
{
if
(
res
.
returnCode
==
'
0000
'
)
{
const
data
=
res
.
content
this
.
mechanismList
=
[
this
.
mechanismList
=
[
{
{
status
:
'
0
'
,
status
:
'
0
'
,
...
@@ -180,16 +166,46 @@ export default {
...
@@ -180,16 +166,46 @@ export default {
},
},
...
res
.
content
,
...
res
.
content
,
]
]
console
.
log
(
'
获取体检机构=
'
,
this
.
mechanismList
)
// 提取所有的体检机构ids,并用逗号隔开,比如:1004,1007
this
.
supplierIds
=
data
.
map
(
function
(
e
,
i
){
return
e
.
id
}).
join
(
'
,
'
)
console
.
log
(
'
this.supplierIds===
'
,
this
.
supplierIds
)
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
returnMsg
)
this
.
$message
.
error
(
res
.
returnMsg
)
}
}
})
})
},
},
// 选择体检机构
// 选择体检机构
clickTab
(
index
)
{
clickTab
(
index
,
id
)
{
this
.
selectIndex
=
index
this
.
selectIndex
=
index
console
.
log
(
"
选择体检机构id
"
,
index
,
id
);
this
.
supplierIds
=
id
// 点击选择体检机构,显示该机构下的体检中心
this
.
getShopByDistrictCode
()
},
// 根据体检机构-获取体检中心列表
getShopByDistrictCode
()
{
const
params
=
{
customerSex
:
'
M
'
,
//性别
customerMaritalStatus
:
'
02
'
,
//婚姻状况
chooseList
:
[{
id
:
1069
}],
//必选服务
payList
:
[],
provinceCode
:
null
,
//省编号
cityCode
:
''
,
//市编号
areaCode
:
''
,
//区号
supplierIds
:
this
.
supplierIds
,
//体检机构d
location
:
'
,
'
,
//经纬度
servicepackageId
:
1043
,
//客户id
}
api
.
getShopByDistrictCode
(
params
).
then
((
res
)
=>
{
if
(
res
.
returnCode
===
'
0000
'
){
this
.
hospitalList
=
res
.
content
}
})
},
},
// 打开日期弹框
// 打开日期弹框
openDatePicker
(
item
)
{
openDatePicker
(
item
)
{
...
...
This diff is collapsed.
Click to expand it.
src/views/flow/index.vue
View file @
89d8e598
...
@@ -41,15 +41,13 @@
...
@@ -41,15 +41,13 @@
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
<!-- v-if="false" -->
<!--
<Combos
:id=
"id"
/>
-->
<Combos
:id=
"id"
/>
<SelectInstitution
:id=
"id"
/>
<!--
<Detail
v-if=
"!next"
/>
-->
<!--
<Detail
/>
-->
<!--
<SelectInstitution
:id=
"id"
/>
-->
</div>
</div>
</div>
</div>
<div
class=
"btn"
>
<div
class=
"btn"
>
<!-- v-if="!next" -->
<a-button
type=
"primary"
@
click=
"nextStep"
v-if=
"!next"
>
下一步
</a-button>
<a-button
type=
"primary"
@
click=
"nextStep"
>
下一步
</a-button>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -88,7 +86,9 @@ export default {
...
@@ -88,7 +86,9 @@ export default {
this
.
getCustomerDetail
()
//客户信息
this
.
getCustomerDetail
()
//客户信息
},
},
methods
:
{
methods
:
{
nextStep
()
{},
nextStep
()
{
this
.
next
=
true
},
// 获取客户信息
// 获取客户信息
getCustomerDetail
()
{
getCustomerDetail
()
{
...
@@ -96,7 +96,7 @@ export default {
...
@@ -96,7 +96,7 @@ export default {
if
(
res
.
returnCode
==
'
0000
'
)
{
if
(
res
.
returnCode
==
'
0000
'
)
{
const
{
name
,
sex
,
idNo
,
phone
,
birthDate
,
maritalStatus
}
=
res
.
content
const
{
name
,
sex
,
idNo
,
phone
,
birthDate
,
maritalStatus
}
=
res
.
content
this
.
customerInfo
=
{
name
,
sex
,
idNo
,
phone
,
birthDate
,
maritalStatus
}
this
.
customerInfo
=
{
name
,
sex
,
idNo
,
phone
,
birthDate
,
maritalStatus
}
console
.
log
(
'
customerInfo=
'
,
this
.
customerInfo
)
console
.
table
(
'
客户信息
customerInfo=
'
,
this
.
customerInfo
)
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
returnMsg
)
this
.
$message
.
error
(
res
.
returnMsg
)
}
}
...
...
This diff is collapsed.
Click to expand it.
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