Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7792002d
authored
Mar 15, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
邀约详情,日历组件,列表;按钮组件逻辑
1 parent
3d0259ea
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
413 additions
and
43 deletions
src/components/d2-auth/d2-auth-btn.js
src/router/routes.js
src/views/customer/recordList.vue
src/views/goods/commodity.vue
src/views/goods/invitation-component/AppointTable.vue
src/views/goods/invitation-component/TimeDate.vue
src/views/goods/invitation-component/css/timeDateStyle.scss
src/views/goods/invitation-component/images/header-man-grey.png
src/views/goods/invitation-component/images/header-woman-grey.png
src/views/goods/invitation-component/images/header-woman.png
src/views/goods/invitation-component/images/icon-phone-grey.png
src/views/goods/invitation-component/images/icon-phone.png
src/views/goods/invitation.vue
src/views/goods/product.vue
src/components/d2-auth/d2-auth-btn.js
View file @
7792002
...
@@ -37,7 +37,7 @@ export default {
...
@@ -37,7 +37,7 @@ export default {
type
:
Object
,
type
:
Object
,
default
:
null
default
:
null
},
},
showBtn
Name
:
{
showBtn
Ids
:
{
type
:
Array
,
type
:
Array
,
default
:
[]
default
:
[]
},
},
...
@@ -54,7 +54,7 @@ export default {
...
@@ -54,7 +54,7 @@ export default {
* mapping 非必填 但: 当列表中的操作选项 根据 某个字段 变化的话 必填 且 必须 注明 field: 字段名
* mapping 非必填 但: 当列表中的操作选项 根据 某个字段 变化的话 必填 且 必须 注明 field: 字段名
* label 当传入label 字段时 标识明确指定渲染该label 的按钮
* label 当传入label 字段时 标识明确指定渲染该label 的按钮
* size 按钮样式,默认mini
* size 按钮样式,默认mini
* showBtn
Name
按需显示按钮
* showBtn
Ids
按需显示按钮
*/
*/
const
{
const
{
category
,
category
,
...
@@ -62,7 +62,7 @@ export default {
...
@@ -62,7 +62,7 @@ export default {
mapping
,
mapping
,
label
,
label
,
size
,
size
,
showBtn
Name
showBtn
Ids
}
=
ctx
.
props
}
=
ctx
.
props
let
curBtns
=
[]
let
curBtns
=
[]
/**
/**
...
@@ -94,7 +94,7 @@ export default {
...
@@ -94,7 +94,7 @@ export default {
* 循环最终显示的按钮列表
* 循环最终显示的按钮列表
* 并渲染到页面
* 并渲染到页面
*/
*/
curBtns
=
showBtn
Name
.
length
?
curBtns
.
filter
(
item
=>
showBtnName
.
includes
(
item
.
label
))
:
curBtns
curBtns
=
showBtn
Ids
.
length
?
curBtns
.
filter
(
item
=>
showBtnIds
.
includes
(
item
.
authId
))
:
curBtns
curBtns
.
forEach
(
btn
=>
{
curBtns
.
forEach
(
btn
=>
{
// var judgeRes = data ? (data.yqMerchantId === _this.$store.state.d2admin.user.info.detail.merchantId) : true
// var judgeRes = data ? (data.yqMerchantId === _this.$store.state.d2admin.user.info.detail.merchantId) : true
// var isShow = !btn.judgeShow ? true : judgeRes
// var isShow = !btn.judgeShow ? true : judgeRes
...
...
src/router/routes.js
View file @
7792002
...
@@ -287,7 +287,6 @@ export const resources = {
...
@@ -287,7 +287,6 @@ export const resources = {
authId
:
'9030601'
,
authId
:
'9030601'
,
parentId
:
'90306'
,
parentId
:
'90306'
,
label
:
'再次电联'
,
label
:
'再次电联'
,
type
:
'primary'
,
handle
:
'handleMoreCall'
handle
:
'handleMoreCall'
// ruleObj: {
// ruleObj: {
// attr: 'status',
// attr: 'status',
...
@@ -300,7 +299,6 @@ export const resources = {
...
@@ -300,7 +299,6 @@ export const resources = {
authId
:
'9030602'
,
authId
:
'9030602'
,
parentId
:
'90306'
,
parentId
:
'90306'
,
label
:
'取消预约'
,
label
:
'取消预约'
,
type
:
'primary'
,
handle
:
'handleCancel'
handle
:
'handleCancel'
},
{
},
{
authId
:
'9030603'
,
authId
:
'9030603'
,
...
...
src/views/customer/recordList.vue
View file @
7792002
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<auth-button
<auth-button
category=
"Button"
category=
"Button"
style=
"
{display: inline-block}"
style=
"
{display: inline-block}"
showBtn
Name="['预录客户
']"
showBtn
Ids="['9020201
']"
>
</auth-button>
>
</auth-button>
<span
class=
"table-header-left-txt"
>
已预录客户列表
{{
total
}}
条记录。
</span>
<span
class=
"table-header-left-txt"
>
已预录客户列表
{{
total
}}
条记录。
</span>
</span>
</span>
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<span
class=
"btn-tips"
><img
src=
"../../assets/icon-warn.png"
>
所有号码已启用隐私号码保护功能!
</span>
<span
class=
"btn-tips"
><img
src=
"../../assets/icon-warn.png"
>
所有号码已启用隐私号码保护功能!
</span>
<auth-button
<auth-button
category=
"Button"
category=
"Button"
showBtn
Name=
"['一键导入
']"
showBtn
Ids=
"['9020202
']"
></auth-button>
></auth-button>
</span>
</span>
</d2-table-header>
</d2-table-header>
...
...
src/views/goods/commodity.vue
View file @
7792002
...
@@ -39,13 +39,13 @@
...
@@ -39,13 +39,13 @@
<auth-button
<auth-button
category=
"Button"
category=
"Button"
style=
"
{display: inline-block}"
style=
"
{display: inline-block}"
showBtn
Name="['新增商品
']"
showBtn
Ids="['9030201
']"
>
</auth-button>
>
</auth-button>
</span>
</span>
<auth-button
<auth-button
category=
"Button"
category=
"Button"
style=
"
{display: inline-block}"
style=
"
{display: inline-block}"
showBtn
Name="['导出
']"
showBtn
Ids="['9030202
']"
>
</auth-button>
>
</auth-button>
</d2-table-header>
</d2-table-header>
<d2-table
<d2-table
...
...
src/views/goods/invitation-component/AppointTable.vue
View file @
7792002
<!-- 邀约详情 -->
<!-- 邀约详情 -->
<
template
>
<
template
>
<div
class=
"appoint-table"
>
<div
class=
"appoint-table"
>
<div
class=
"appoint-header"
>
<p>
今日邀约详情
</p>
</div>
<div
class=
"appoint-table-content"
>
<table
<table
cellpadding=
'0'
cellpadding=
'0'
cellspacing=
'0'
cellspacing=
'0'
>
>
<tr
>
<tr
class=
"appoint-table-header"
>
<td>
邀约时间
</td>
<td>
邀约时间
</td>
<td>
邀约详情
</td>
<td>
邀约详情
</td>
<td>
服务状态
</td>
<td>
服务状态
</td>
</tr>
</tr>
<template
v-if=
"detailData.length"
>
<tr
<tr
v-for=
"(item, index) in detailData"
v-for=
"(item, index) in detailData"
:key=
"index"
:key=
"index"
...
@@ -18,7 +23,7 @@
...
@@ -18,7 +23,7 @@
<td
class=
"flex"
>
<td
class=
"flex"
>
<img
<img
class=
"detail-header"
class=
"detail-header"
:src=
"item.info.sex === 1 ? './header-man.jpg' : './header-woman.jp
g'"
:src=
"item.info.sex === 1 ? './images/header-man-grey.png' : './images/header-woman.pn
g'"
/>
/>
<block
class=
"detail-info"
>
<block
class=
"detail-info"
>
<p>
{{
item
.
info
.
name
}}
</p>
<p>
{{
item
.
info
.
name
}}
</p>
...
@@ -42,8 +47,13 @@
...
@@ -42,8 +47,13 @@
{{
item
.
status
===
1
?
'完成服务'
:
'未到店'
}}
{{
item
.
status
===
1
?
'完成服务'
:
'未到店'
}}
</td>
</td>
</tr>
</tr>
</
template
>
<tr
v-else
>
<td
colspan=
"3"
>
无数据
</td>
</tr>
</table>
</table>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -58,7 +68,7 @@ export default {
...
@@ -58,7 +68,7 @@ export default {
{
'hour'
:
'15:00'
},
{
'hour'
:
'16:00'
},
{
'hour'
:
'15:00'
},
{
'hour'
:
'16:00'
},
{
'hour'
:
'17:00'
},
{
'hour'
:
'18:00'
}],
{
'hour'
:
'17:00'
},
{
'hour'
:
'18:00'
}],
detailData
:
[{
detailData
:
[{
time
:
'9:00'
,
time
:
'
上午
9:00'
,
info
:
{
info
:
{
header
:
''
,
header
:
''
,
name
:
'张三'
,
name
:
'张三'
,
...
@@ -70,7 +80,7 @@ export default {
...
@@ -70,7 +80,7 @@ export default {
// 0 - 未到店; 1 - 完成服务
// 0 - 未到店; 1 - 完成服务
status
:
0
status
:
0
},
{
},
{
time
:
'9:00'
,
time
:
'
上午
9:00'
,
info
:
{
info
:
{
header
:
''
,
header
:
''
,
name
:
'张兰'
,
name
:
'张兰'
,
...
@@ -81,7 +91,62 @@ export default {
...
@@ -81,7 +91,62 @@ export default {
// 0 - 未到店; 1 - 完成服务
// 0 - 未到店; 1 - 完成服务
status
:
1
status
:
1
},
{
},
{
time
:
'10:00'
,
time
:
'上午10:00'
,
info
:
{
header
:
''
,
name
:
'张一二'
,
sex
:
1
,
project
:
'预约项目'
,
phone
:
''
},
// 0 - 未到店; 1 - 完成服务
status
:
0
},
{
time
:
'上午10:00'
,
info
:
{
header
:
''
,
name
:
'张一二'
,
sex
:
1
,
project
:
'预约项目'
,
phone
:
''
},
// 0 - 未到店; 1 - 完成服务
status
:
0
},
{
time
:
'上午10:00'
,
info
:
{
header
:
''
,
name
:
'张一二'
,
sex
:
1
,
project
:
'预约项目'
,
phone
:
''
},
// 0 - 未到店; 1 - 完成服务
status
:
0
},
{
time
:
'上午10:00'
,
info
:
{
header
:
''
,
name
:
'张一二'
,
sex
:
1
,
project
:
'预约项目'
,
phone
:
''
},
// 0 - 未到店; 1 - 完成服务
status
:
0
},
{
time
:
'上午10:00'
,
info
:
{
header
:
''
,
name
:
'张一二'
,
sex
:
1
,
project
:
'预约项目'
,
phone
:
''
},
// 0 - 未到店; 1 - 完成服务
status
:
0
},
{
time
:
'上午10:00'
,
info
:
{
info
:
{
header
:
''
,
header
:
''
,
name
:
'张一二'
,
name
:
'张一二'
,
...
@@ -115,19 +180,38 @@ export default {
...
@@ -115,19 +180,38 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.appoint-table
{
.appoint-table
{
width
:
50
%
;
width
:
49
%
;
min-width
:
536px
;
min-width
:
536px
;
padding
:
20px
;
margin-right
:
10px
;
box-shadow
:
0
0
11px
0
rgba
(
207
,
207
,
207
,
0.5
);
p
{
margin
:
0
0
;
}
.flex
{
.flex
{
display
:
flex
;
display
:
flex
;
}
}
.appoint-header
{
font-size
:
16px
;
color
:
#6c6f71
;
margin-bottom
:
16px
;
}
.appoint-table-header
{
height
:
40px
;
}
.appoint-table-content
{
height
:
533px
;
overflow-y
:
scroll
;
}
table
{
table
{
width
:
98%
;
width
:
98%
;
color
:
#
333
;
color
:
#
666666
;
border
:
1px
solid
#
cfd3d5
;
border
:
1px
solid
#
e5e6e7
;
border-width
:
1px
0
0
1px
;
border-width
:
1px
0
0
1px
;
td
{
td
{
font-size
:
12px
;
padding
:
0px
10px
;
padding
:
0px
10px
;
border
:
1px
solid
#
cfd3d5
;
border
:
1px
solid
#
e5e6e7
;
border-width
:
0px
1px
1px
0px
;
border-width
:
0px
1px
1px
0px
;
border-spacing
:
0
;
border-spacing
:
0
;
text-align
:
center
;
text-align
:
center
;
...
@@ -135,8 +219,8 @@ export default {
...
@@ -135,8 +219,8 @@ export default {
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
.detail-header
{
.detail-header
{
height
:
7
0px
;
height
:
3
0px
;
width
:
7
0px
;
width
:
3
0px
;
border-radius
:
50%
;
border-radius
:
50%
;
margin
:
6px
10px
;
margin
:
6px
10px
;
}
}
...
@@ -149,9 +233,6 @@ export default {
...
@@ -149,9 +233,6 @@ export default {
height
:
70px
;
height
:
70px
;
line-height
:
70px
;
line-height
:
70px
;
overflow
:
hidden
;
overflow
:
hidden
;
p
{
margin
:
0
0
;
}
}
}
.secret-phone
{
.secret-phone
{
position
:
absolute
;
position
:
absolute
;
...
@@ -164,7 +245,8 @@ export default {
...
@@ -164,7 +245,8 @@ export default {
height
:
100%
;
height
:
100%
;
}
}
.two-tip
{
.two-tip
{
background-color
:
#cccccc
;
color
:
#ffffff
;
background-color
:
#4ECB73
;
}
}
}
}
.secret-phone
:hover
{
.secret-phone
:hover
{
...
...
src/views/goods/invitation-component/TimeDate.vue
View file @
7792002
<!-- 日期时间 - 选择器 -->
<!-- 日期时间 - 选择器 -->
<
template
>
<
template
>
<div
class=
"time-selector"
>
<div
class=
"time-selector"
>
<el-button
icon=
"el-icon-d-arrow-left"
type=
"text"
:disabled=
"currentWeek === 1"
@
click=
"handleWeek(false)"
></el-button>
<div
class=
"time-selector-header"
>
<p>
邀约日历
</p>
<p>
2020年
</p>
</div>
<div
class=
"time-selector-container"
>
<block
class=
"date-left-tips"
>
<div
class=
"date-tips-time"
>
<p>
上午9:00
</p>
<p>
中午12:00
</p>
<p>
晚上18:00
</p>
</div>
<p
class=
"date-y-line"
></p>
</block>
<el-button
icon=
"el-icon-d-arrow-left"
type=
"text"
class=
"arrow-left-icon"
:disabled=
"currentWeek === 1"
@
click=
"handleWeek(false)"
></el-button>
<block>
<div
class=
"date-picker"
>
<div
class=
"date-picker"
>
<div
<div
class=
"wrapper"
class=
"wrapper"
...
@@ -19,7 +39,7 @@
...
@@ -19,7 +39,7 @@
width=
"200"
width=
"200"
open-delay=
"600"
open-delay=
"600"
trigger=
"hover"
trigger=
"hover"
:disabled=
"info.status !== 1
"
:disabled=
"info.status === 0
"
>
>
<div>
<div>
<p>
1、客户姓名,时间,项目
</p>
<p>
1、客户姓名,时间,项目
</p>
...
@@ -27,14 +47,22 @@
...
@@ -27,14 +47,22 @@
<p>
余位数:8
</p>
<p>
余位数:8
</p>
</div>
</div>
<el-button
<el-button
class=
"col-width hour-block
"
:class=
"
{'col-width': true, 'hour-block': true, 'status-full': info.status === 2, 'status-remain': info.status === 1 }
"
slot="reference"
slot="reference"
:disabled=
"((item.date == new Date().toLocaleDateString()) && (+hoursList[infoIndex].hour.split(':')[0]
<
= new Date().getHours())) || (info.status === 2)"
@click="handleAppoint(item, infoIndex)"
@click="handleAppoint(item, infoIndex)"
>
{{
appointStatusList
[
info
.
status
]
}}
</el-button>
>
{{
appointStatusList
[
info
.
status
]
}}
</el-button>
</el-popover>
</el-popover>
</p>
</p>
</span>
</span>
</div>
</div>
<p
class=
"date-x-line"
></p>
<div
class=
"date-picker"
>
<div
class=
"wrapper"
v-for=
"(item, index) in dateList.slice(currentWeek * 7 - 7, currentWeek * 7)"
:key=
"index"
>
<el-button
<el-button
type=
"text"
type=
"text"
:class=
"
{'date-btn': true, 'col-width': true, 'active': item.active}"
:class=
"
{'date-btn': true, 'col-width': true, 'active': item.active}"
...
@@ -45,7 +73,14 @@
...
@@ -45,7 +73,14 @@
</el-button>
</el-button>
</div>
</div>
</div>
</div>
<el-button
icon=
"el-icon-d-arrow-right"
type=
"text"
:disabled=
"currentWeek === 5"
@
click=
"handleWeek(true)"
></el-button>
</block>
<el-button
icon=
"el-icon-d-arrow-right"
type=
"text"
:disabled=
"currentWeek === 5"
@
click=
"handleWeek(true)"
></el-button>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -89,12 +124,12 @@ export default {
...
@@ -89,12 +124,12 @@ export default {
methods
:
{
methods
:
{
// 日期选择
// 日期选择
handleSelectDate
(
currentIndex
)
{
handleSelectDate
(
currentIndex
)
{
this
.
dateList
[
this
.
dateIndex
].
active
=
false
//
this.dateList[this.dateIndex].active = false
this
.
dateIndex
=
currentIndex
//
this.dateIndex = currentIndex
this
.
dateList
[
currentIndex
].
active
=
true
//
this.dateList[currentIndex].active = true
},
},
handleAppoint
(
date
,
hourIndex
)
{
handleAppoint
(
date
,
hourIndex
)
{
this
.
$emit
(
'handleAppoint'
,
{
date
:
date
.
date
,
hour
:
this
.
hoursList
[
hourIndex
].
hour
})
//
this.$emit('handleAppoint', { date: date.date, hour: this.hoursList[hourIndex].hour })
},
},
handleWeek
(
isAdd
)
{
handleWeek
(
isAdd
)
{
isAdd
?
this
.
currentWeek
++
:
this
.
currentWeek
--
isAdd
?
this
.
currentWeek
++
:
this
.
currentWeek
--
...
...
src/views/goods/invitation-component/css/timeDateStyle.scss
View file @
7792002
.time-selector
{
.time-selector
{
padding
:
20px
;
box-shadow
:
0
0
11px
0
rgba
(
207
,
207
,
207
,
0
.50
);
.time-selector-header
{
display
:
flex
;
justify-content
:
space-between
;
font-size
:
16px
;
color
:
#6C6F71
;
p
{
margin-top
:
0
;
}
}
.time-selector-container
{
position
:
relative
;
width
:
50%
;
width
:
50%
;
height
:
100%
;
height
:
100%
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
// align-items: center;
color
:
#A1A1A1
;
p
{
p
{
margin
:
0
0
;
margin
:
0
0
;
}
}
.arrow-left-icon
{
position
:
absolute
;
left
:
73px
;
top
:
46%
;
}
.col-width
{
.col-width
{
width
:
80px
;
width
:
62px
;
height
:
44px
;
}
}
.date-picker
{
.date-left-tips
{
display
:
flex
;
display
:
flex
;
align-self
:
flex-start
;
font-size
:
12px
;
.date-tips-time
{
width
:
32px
;
margin-right
:
18px
;
p
{
width
:
32px
;
position
:
absolute
;
text-align
:
right
;
}
p
:nth-child
(
2
)
{
top
:
140px
;
}
p
:nth-child
(
3
)
{
top
:
403px
;
}
}
.date-y-line
{
height
:
441px
;
width
:
1px
;
background-color
:
rgba
(
207
,
207
,
207
,
0
.50
);
}
}
.date-x-line
{
position
:
relative
;
height
:
1px
;
width
:
100%
;
width
:
100%
;
background-color
:
rgba
(
207
,
207
,
207
,
0
.50
);
margin
:
20px
0
8px
;
}
// .date-x-line::before {
// content: '';
// position: absolute;
// display: inline-block;
// width: 9px;
// height: 9px;
// background-color: #FDAB27;
// border-radius: 50%;
// top: -5px;
// }
.date-picker
{
display
:
flex
;
width
:
434px
;
overflow-x
:
scroll
;
overflow-x
:
scroll
;
margin
:
0
8
px
;
padding-left
:
40
px
;
.wrapper
{
.wrapper
{
width
:
100%
;
width
:
100%
;
.hour-block
{
.hour-block
{
text-align
:
center
;
text-align
:
center
;
background
:
#F7F7F7
;
border
:
1px
solid
#ffffff
;
border-radius
:
0
;
}
.hour-block.status-full
{
color
:
#ffffff
;
background
:
#FDAB27
;
border
:
1px
solid
#FFFFFF
;
}
.hour-block.status-remain
{
color
:
#ffffff
;
background
:
#4ECB73
;
border
:
1px
solid
#FFFFFF
;
}
}
.date-btn
{
.date-btn
{
position
:
relative
;
position
:
relative
;
color
:
#333
;
font-size
:
12px
;
color
:
#A1A1A1
;
&
.active
{
color
:
#666666
;
}
// &.active::before {
// content: '';
// position: absolute;
// display: inline-block;
// width: 9px;
// height: 9px;
// background-color: #FDAB27;
// border-radius: 50%;
// }
// &.active {
// &.active {
// color: #68c9d0;
// color: #68c9d0;
...
@@ -46,4 +150,5 @@
...
@@ -46,4 +150,5 @@
}
}
}
}
}
}
}
}
}
src/views/goods/invitation-component/images/header-man-grey.png
0 → 100644
View file @
7792002
3.89 KB
src/views/goods/invitation-component/images/header-woman-grey.png
0 → 100644
View file @
7792002
4.21 KB
src/views/goods/invitation-component/images/header-woman.png
0 → 100644
View file @
7792002
4.25 KB
src/views/goods/invitation-component/images/icon-phone-grey.png
0 → 100644
View file @
7792002
1.14 KB
src/views/goods/invitation-component/images/icon-phone.png
0 → 100644
View file @
7792002
1.2 KB
src/views/goods/invitation.vue
View file @
7792002
...
@@ -12,6 +12,91 @@
...
@@ -12,6 +12,91 @@
@
handleAppoint=
"handleAppoint"
@
handleAppoint=
"handleAppoint"
></time-date>
></time-date>
</div>
</div>
<div
class=
"d2-container-content"
>
<el-form
:inline=
"true"
>
<el-form-item
label=
"日期:"
>
<el-date-picker
v-model=
"searchForm.date"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
""
>
<el-input
v-model=
"searchForm.name"
placeholder=
"客户姓名或车架号"
></el-input>
</el-form-item>
<el-form-item>
<el-button
v-show=
"activeName === 'first'"
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
查询
</el-button>
<el-button
v-show=
"activeName === 'second'"
:id=
"tableSecondParams.btnId"
size=
"small"
type=
"primary"
style=
"margin-left: 0px;"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-tabs
v-model=
"activeName"
type=
"card"
>
<el-tab-pane
name=
"first"
>
<span
slot=
"label"
><i
class=
"el-icon-date"
></i>
已预约(16)
</span>
<d2-table
ref=
"invitationFirstTable"
:hasNum=
"false"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
>
<auth-button
:data=
"scope.scope"
showBtnIds=
"['9030601', '9030602', '9030603', '9030604']"
></auth-button>
</
template
>
</d2-table>
</el-tab-pane>
<el-tab-pane
name=
"second"
>
<span
slot=
"label"
><i
class=
"el-icon-date"
></i>
待预约(18)
</span>
<d2-table
ref=
"invitationSecondTable"
:hasNum=
"false"
:searchForm=
"searchForm"
:tableParams=
"tableSecondParams"
:getListApi=
"getListApi"
>
<
template
slot=
"auth-button"
slot-scope=
"scope"
>
<auth-button
:data=
"scope.scope"
showBtnIds=
"['9030605', '9030606', '9030607']"
></auth-button>
</
template
>
</d2-table>
</el-tab-pane>
</el-tabs>
</div>
<d2-dialog
<d2-dialog
title=
"正在为客户预约"
title=
"正在为客户预约"
:isVisible=
"appointDialogVisible"
:isVisible=
"appointDialogVisible"
...
@@ -81,10 +166,10 @@
...
@@ -81,10 +166,10 @@
</template>
</template>
<
script
>
<
script
>
import
{
getList
}
from
'@api/commodity'
import
{
afterTodayOptions
,
appointDays
}
from
'@/common/constants'
import
{
afterTodayOptions
,
appointDays
}
from
'@/common/constants'
import
TimeDate
from
'./invitation-component/TimeDate'
import
TimeDate
from
'./invitation-component/TimeDate'
import
AppointTable
from
'./invitation-component/AppointTable'
import
AppointTable
from
'./invitation-component/AppointTable'
// import TimeDateTemp from './invitation-component/TimeDateTemp'
export
default
{
export
default
{
name
:
'invitation'
,
name
:
'invitation'
,
data
()
{
data
()
{
...
@@ -114,7 +199,70 @@ export default {
...
@@ -114,7 +199,70 @@ export default {
{
'hour'
:
'11:00'
},
{
'hour'
:
'12:00'
},
{
'hour'
:
'11:00'
},
{
'hour'
:
'12:00'
},
{
'hour'
:
'13:00'
},
{
'hour'
:
'14:00'
},
{
'hour'
:
'13:00'
},
{
'hour'
:
'14:00'
},
{
'hour'
:
'15:00'
},
{
'hour'
:
'16:00'
},
{
'hour'
:
'15:00'
},
{
'hour'
:
'16:00'
},
{
'hour'
:
'17:00'
},
{
'hour'
:
'18:00'
}]
{
'hour'
:
'17:00'
},
{
'hour'
:
'18:00'
}],
// table
activeName
:
'first'
,
searchForm
:
{
date
:
''
,
name
:
''
},
getListApi
:
getList
,
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
tableOption
:
true
,
tableColumns
:
[{
label
:
'操作日期'
,
prop
:
''
},
{
label
:
'客户信息'
,
prop
:
'customerInfo'
,
addHtml
:
'customerInfo'
},
{
label
:
'状态'
,
prop
:
'status'
},
{
label
:
'预约信息'
,
prop
:
'customerInfo'
,
addHtml
:
''
},
{
label
:
'备注信息'
,
prop
:
'customerInfo'
,
addHtml
:
''
}]
},
tableSecondParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
)
+
'second'
,
listName
:
'list'
,
tableOption
:
true
,
tableColumns
:
[{
label
:
'操作日期'
,
prop
:
''
},
{
label
:
'客户信息'
,
prop
:
'customerInfo'
,
addHtml
:
'customerInfo'
},
{
label
:
'录入时间'
,
prop
:
'status'
},
{
label
:
'来源'
,
prop
:
'customerInfo'
,
addHtml
:
''
},
{
label
:
'状态'
,
prop
:
'customerInfo'
,
addHtml
:
''
},
{
label
:
'操作记录'
,
prop
:
'customerInfo'
,
addHtml
:
''
},
{
label
:
'备注信息'
,
prop
:
'customerInfo'
,
addHtml
:
''
}]
}
}
}
},
},
...
@@ -154,7 +302,9 @@ export default {
...
@@ -154,7 +302,9 @@ export default {
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.invitation
{
.invitation
{
.header
{
.header
{
min-width
:
1176px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-around
;
padding
:
20px
20px
;
padding
:
20px
20px
;
}
}
}
}
...
...
src/views/goods/product.vue
View file @
7792002
...
@@ -39,13 +39,13 @@
...
@@ -39,13 +39,13 @@
<auth-button
<auth-button
category=
"Button"
category=
"Button"
style=
"
{display: inline-block}"
style=
"
{display: inline-block}"
showBtn
Name="['新增素材
']"
showBtn
Ids="['9030101
']"
>
</auth-button>
>
</auth-button>
</span>
</span>
<auth-button
<auth-button
category=
"Button"
category=
"Button"
style=
"
{display: inline-block}"
style=
"
{display: inline-block}"
showBtn
Name="['导出
']"
showBtn
Ids="['9030103
']"
>
</auth-button>
>
</auth-button>
</d2-table-header>
</d2-table-header>
<d2-table
<d2-table
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment