Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mingPayPc
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fengzhaoyu
mingPayPc
Commits
133cac0e
Commit
133cac0e
authored
5 years ago
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
访客测试
parent
d8745655
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
132 additions
and
32 deletions
+132
-32
.env.production
.env.production
+2
-2
.env.test
.env.test
+3
-0
package.json
package.json
+1
-0
HistoricalVisitors.vue
...components/pages/VisitorManagement/HistoricalVisitors.vue
+126
-30
No files found.
.env.production
View file @
133cac0e
NODE_ENV = 'production'
NODE_ENV = 'production'
VUE_APP_API_URL = 'https://gateway-beta.mingwork.com'
VUE_APP_API_URL = 'https://gateway.mingwork.com'
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.env.test
0 → 100644
View file @
133cac0e
NODE_ENV
=
'test'
VUE_APP_API_URL
=
'https://gateway-beta.mingwork.com'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
package.json
View file @
133cac0e
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
"devserve"
:
"vue-cli-service serve --model development"
,
"devserve"
:
"vue-cli-service serve --model development"
,
"build"
:
"vue-cli-service build"
,
"build"
:
"vue-cli-service build"
,
"probuild"
:
"vue-cli-service build --mode production"
,
"probuild"
:
"vue-cli-service build --mode production"
,
"test"
:
"vue-cli-service build --mode test"
,
"lint"
:
"vue-cli-service lint"
"lint"
:
"vue-cli-service lint"
},
},
"dependencies"
:
{
"dependencies"
:
{
...
...
This diff is collapsed.
Click to expand it.
src/components/pages/VisitorManagement/HistoricalVisitors.vue
View file @
133cac0e
...
@@ -21,18 +21,82 @@
...
@@ -21,18 +21,82 @@
:open=
"endOpen"
:open=
"endOpen"
@
openChange=
"handleEndOpenChange"
@
openChange=
"handleEndOpenChange"
/>
/>
<a-button
type=
"primary"
@
click=
"
getStatisticalProductPage
"
>
查询
</a-button>
<a-button
type=
"primary"
@
click=
"
queryRecordList
"
>
查询
</a-button>
</div>
</div>
<!--
<a-table
:columns=
"columns"
:dataSource=
"dataSource"
rowKey=
"productId"
:pagination=
"pagination"
@
change=
"handleTableChange"
>
<a-table
:columns=
"columns"
:dataSource=
"dataSource"
style=
"margin-top: 20px;"
rowKey=
"recordId"
:pagination=
"pagination"
@
change=
"handleTableChange"
>
<span
slot=
"productIcon"
slot-scope=
"productIcon"
>
<span
slot=
"visitorList"
slot-scope=
"visitorList"
>
<img
style=
"width: 100px"
:src=
"productIcon"
alt=
""
/>
<span
v-for=
"(item, index) in visitorList"
:key=
"item.visitorId"
>
{{
index
===
visitorList
.
length
-
1
?
item
.
name
:
`${item.name
}
,`
}}
<
/span
>
<
/span
>
<span
slot=
"productName"
></span>
<span
slot=
"productPrice"
slot-scope=
"productPrice"
>
{{
productPrice
.
toFixed
(
2
)
}}
<
/span
>
<
/span
>
<span
slot=
"productStatisticalQuantity"
></span>
<
span
slot
=
"companyName"
><
/span
>
</a-table>
-->
<
span
slot
=
"purpose"
><
/span
>
<
span
slot
=
"byVisitorName"
><
/span
>
<
span
slot
=
"startTime"
slot
-
scope
=
"startTime, record"
>
{{
startTime
}}
-
{{
record
.
endTime
}}
<
/span
>
<
span
slot
=
"processStatus"
slot
-
scope
=
"processStatus"
>
{{
processStatus
===
'invite'
?
'已邀请'
:
processStatus
===
'reach'
?
'已接待'
:
'已取消'
}}
<
/span
>
<
span
slot
=
"byVisitorName"
><
/span
>
<
span
slot
=
"action"
slot
-
scope
=
"text, record"
>
<
a
@
click
=
"showModal(record)"
>
查看详情
<
/a
>
<
/span
>
<
/a-table
>
<
a
-
modal
v
-
model
=
"visible"
title
=
"访客详情"
:
footer
=
"null"
>
<
div
class
=
"recordDetails"
>
<
div
>
<
label
>
到访情况
<
/label
>
<
div
>
{{
showModalData
.
processStatus
===
'invite'
?
'已邀请'
:
showModalData
.
processStatus
===
'reach'
?
'已接待'
:
'已取消'
}}
<
/div
>
<
/div
>
<
div
>
<
label
>
主访客
<
/label
>
<
div
>
{{
showModalData
.
visitorName
}}
{{
showModalData
.
mobile
}}
<
/div
>
<
/div
>
<
div
>
<
label
>
随行访客
<
/label
>
<
div
>
<
p
v
-
for
=
"item in showModalData.visitorList"
:
key
=
"item.visitorId"
v
-
show
=
"item.mobile !== showModalData.mobile"
>
{{
item
.
name
}}
{{
item
.
mobile
}}
<
/p
>
<
/div
>
<
/div
>
<
div
>
<
label
>
访客公司
<
/label
>
<
div
>
{{
showModalData
.
companyName
}}
<
/div
>
<
/div
>
<
div
>
<
label
>
被约时间
<
/label
>
<
div
>
{{
showModalData
.
inviteTime
}}
<
/div
>
<
/div
>
<
div
>
<
label
>
被访人
<
/label
>
<
div
>
{{
showModalData
.
byVisitorName
}}
<
/div
>
<
/div
>
<
div
>
<
label
>
开始时间
<
/label
>
<
div
>
{{
showModalData
.
startTime
}}
<
/div
>
<
/div
>
<
div
>
<
label
>
结束时间
<
/label
>
<
div
>
{{
showModalData
.
endTime
}}
<
/div
>
<
/div
>
<
div
>
<
label
>
来访目的
<
/label
>
<
div
>
{{
showModalData
.
purpose
}}
<
/div
>
<
/div
>
<
div
>
<
label
>
到访地址
<
/label
>
<
div
>
{{
showModalData
.
visitAddress
}}
<
/div
>
<
/div
>
<
div
>
<
label
>
周知人员
<
/label
>
<
div
><
span
v
-
for
=
"item in showModalData.participatorUserList"
:
key
=
"item.ddUserId"
style
=
"margin-right: 10px;"
><
/span></
div
>
<
/div
>
<
div
>
<
label
>
备注
<
/label
>
<
div
>
{{
showModalData
.
remark
}}
<
/div
>
<
/div
>
<
/div
>
<
/a-modal
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -58,31 +122,50 @@ export default {
...
@@ -58,31 +122,50 @@ export default {
total
:
0
total
:
0
}
,
}
,
columns
:
[{
columns
:
[{
title
:
'产品图'
,
title
:
'访客姓名'
,
dataIndex
:
'productIcon'
,
dataIndex
:
'visitorList'
,
scopedSlots
:
{
customRender
:
'productIcon'
}
scopedSlots
:
{
customRender
:
'visitorList'
}
}
,
{
title
:
'访客单位'
,
dataIndex
:
'companyName'
}
,
{
}
,
{
title
:
'
菜名
'
,
title
:
'
来访目的
'
,
dataIndex
:
'p
roductNam
e'
dataIndex
:
'p
urpos
e'
}
,
{
}
,
{
title
:
'售出(份数)'
,
title
:
'被访人'
,
dataIndex
:
'productStatisticalQuantity'
dataIndex
:
'byVisitorName'
}
,
{
title
:
'被约时间'
,
dataIndex
:
'startTime'
,
scopedSlots
:
{
customRender
:
'startTime'
}
}
,
{
title
:
'状态'
,
dataIndex
:
'processStatus'
,
scopedSlots
:
{
customRender
:
'processStatus'
}
}
,
{
title
:
'操作'
,
dataIndex
:
'action'
,
scopedSlots
:
{
customRender
:
'action'
}
}
],
}
],
dataSource
:
[]
dataSource
:
[],
showModalData
:
{
}
,
visible
:
false
}
}
}
,
}
,
created
()
{
created
()
{
let
date
=
new
Date
()
let
year
=
date
.
getFullYear
()
let
month
=
date
.
getMonth
()
+
1
let
day
=
(
new
Date
(
year
,
month
,
0
).
getDate
().
toString
()).
length
>
1
?
new
Date
(
year
,
month
,
0
).
getDate
()
:
'0'
+
new
Date
(
year
,
month
,
0
).
getDate
()
this
.
startTime
=
`
${
year
}
-
${
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
}
-01`
this
.
endTime
=
`
${
year
}
-
${
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
}
-
${
day
}
`
this
.
startValue
=
this
.
moment
(
`
${
year
}
-
${
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
}
-01`
,
'YYYY-MM-DD'
)
this
.
endValue
=
this
.
moment
(
`
${
year
}
-
${
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
}
-
${
day
}
`
,
'YYYY-MM-DD'
)
this
.
queryRecordList
()
this
.
queryRecordList
()
}
,
}
,
methods
:
{
methods
:
{
showModal
(
record
)
{
this
.
showModalData
=
record
this
.
visible
=
true
}
,
// handleOk (e)
{
// this.visible = false
//
}
,
// handleCancel (e)
{
// this.visible = false
//
}
,
moment
,
moment
,
disabledStartDate
(
startValue
)
{
disabledStartDate
(
startValue
)
{
const
endValue
=
this
.
endValue
const
endValue
=
this
.
endValue
...
@@ -114,14 +197,16 @@ export default {
...
@@ -114,14 +197,16 @@ export default {
}
,
}
,
queryRecordList
()
{
queryRecordList
()
{
let
RecordListData
=
{
let
RecordListData
=
{
startTime
:
`
${
this
.
startTime
}
00:00:00`
,
visitorName
:
this
.
visitorName
,
endTime
:
`
${
this
.
endTime
}
23:59:59`
,
byVisitorName
:
this
.
byVisitorName
,
startTime
:
this
.
startTime
?
`${this.startTime
}
00:00:00`
:
''
,
endTime
:
this
.
endTime
?
`${this.endTime
}
23:59:59`
:
''
,
pageNumber
:
10
,
pageNumber
:
10
,
currentPage
:
this
.
pagination
.
current
currentPage
:
this
.
pagination
.
current
}
}
$http
.
post
(
`/admin/visitor/
query
RecordList`
,
RecordListData
).
then
((
res
)
=>
{
$http
.
post
(
`/admin/visitor/
get
RecordList`
,
RecordListData
).
then
((
res
)
=>
{
if
(
res
.
data
.
resultC
ode
===
0
)
{
if
(
res
.
data
.
c
ode
===
0
)
{
this
.
dataSource
=
res
.
data
.
data
.
list
this
.
dataSource
=
res
.
data
.
data
.
records
this
.
pagination
.
total
=
res
.
data
.
data
.
total
this
.
pagination
.
total
=
res
.
data
.
data
.
total
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
$message
.
error
(
res
.
data
.
message
)
...
@@ -149,4 +234,15 @@ export default {
...
@@ -149,4 +234,15 @@ export default {
.
searchBox
input
{
.
searchBox
input
{
margin
-
right
:
20
px
;
margin
-
right
:
20
px
;
}
}
.
recordDetails
>
div
{
width
:
100
%
;
display
:
flex
;
margin
:
10
px
;
}
.
recordDetails
>
div
label
{
width
:
120
px
;
font
-
weight
:
bolder
;
margin
-
right
:
10
px
;
text
-
align
:
right
;
}
<
/style
>
<
/style
>
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