Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 1defe410
authored
Nov 30, 2021
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
2 parents
10fb785c
57510b55
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
84 additions
and
31 deletions
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/addCustomerGroup.vue
src/views/customerTransform/components/basicInfo.vue
src/views/customerTransform/detailCustomer.vue
src/views/home/index.vue
src/views/memberCenter/center.vue
src/views/memberCenter/orderDetail.vue
src/views/memberCenter/setmealAddUpdate.vue
src/views/customerTransform/addCustomer.vue
View file @
1defe41
...
@@ -150,12 +150,15 @@
...
@@ -150,12 +150,15 @@
type=
"date"
type=
"date"
value-format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
placeholder=
"选择日期"
placeholder=
"选择日期"
:picker-options=
"dateOptions"
@
change=
"changeValue"
></el-date-picker>
-
></el-date-picker>
-
<el-time-picker
<el-time-picker
v-model=
"basicForm.sendDate"
v-model=
"basicForm.sendDate"
size=
"small"
size=
"small"
value-format=
"HH:mm:ss"
value-format=
"HH:mm:ss"
placeholder=
"选择时间"
placeholder=
"选择时间"
:picker-options=
"timeOptions"
></el-time-picker>
></el-time-picker>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -278,7 +281,17 @@ export default {
...
@@ -278,7 +281,17 @@ export default {
// 是否有修改筛选成员
// 是否有修改筛选成员
isUpdate
:
true
,
isUpdate
:
true
,
tagging
:
[],
tagging
:
[],
groupNumber
:
''
groupNumber
:
''
,
dateOptions
:
{
disabledDate
(
time
)
{
let
now
=
new
Date
()
now
.
setTime
(
now
.
getTime
()
-
3600
*
1000
*
24
)
return
time
.
getTime
()
<
now
}
},
timeOptions
:
{
selectableRange
:
'00:00:00 - 23:59:59'
}
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -438,6 +451,22 @@ export default {
...
@@ -438,6 +451,22 @@ export default {
this
.
groupNumber
=
res
this
.
groupNumber
=
res
this
.
isUpdate
=
false
this
.
isUpdate
=
false
})
})
},
changeValue
(
v
)
{
console
.
log
(
v
,
Date
.
now
())
const
date
=
new
Date
(
v
).
getTime
()
if
(
date
<
Date
.
now
())
{
this
.
timeOptions
=
{
selectableRange
:
`
${
dayjs
()
.
add
(
1
,
'm'
)
.
format
(
'HH:mm'
)}
:00 - 23:59:59`
}
console
.
log
(
this
.
timeOptions
)
}
else
{
this
.
timeOptions
=
{
selectableRange
:
'00:00:00 - 23:59:59'
}
}
}
}
}
}
}
}
...
...
src/views/customerTransform/addCustomerGroup.vue
View file @
1defe41
...
@@ -52,12 +52,15 @@
...
@@ -52,12 +52,15 @@
type=
"date"
type=
"date"
value-format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
placeholder=
"选择日期"
placeholder=
"选择日期"
:picker-options=
"dateOptions"
@
change=
"changeValue"
></el-date-picker>
-
></el-date-picker>
-
<el-time-picker
<el-time-picker
v-model=
"basicForm.sendDate"
v-model=
"basicForm.sendDate"
size=
"small"
size=
"small"
value-format=
"HH:mm:ss"
value-format=
"HH:mm:ss"
placeholder=
"选择时间"
placeholder=
"选择时间"
:picker-options=
"timeOptions"
></el-time-picker>
></el-time-picker>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -97,6 +100,7 @@ import Vue from 'vue'
...
@@ -97,6 +100,7 @@ import Vue from 'vue'
import
WelcomeWords
from
'./components/welcomeWords.vue'
import
WelcomeWords
from
'./components/welcomeWords.vue'
import
SelectMembers
from
'./components/selectMembers.vue'
import
SelectMembers
from
'./components/selectMembers.vue'
import
Preview
from
'./components/preview.vue'
import
Preview
from
'./components/preview.vue'
import
*
as
dayjs
from
'dayjs'
export
default
{
export
default
{
components
:
{
components
:
{
WelcomeWords
,
WelcomeWords
,
...
@@ -166,7 +170,17 @@ export default {
...
@@ -166,7 +170,17 @@ export default {
]
]
},
},
membersVisible
:
false
,
membersVisible
:
false
,
key
:
new
Date
()
key
:
new
Date
(),
dateOptions
:
{
disabledDate
(
time
)
{
let
now
=
new
Date
()
now
.
setTime
(
now
.
getTime
()
-
3600
*
1000
*
24
)
return
time
.
getTime
()
<
now
}
},
timeOptions
:
{
selectableRange
:
'00:00:00 - 23:59:59'
}
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -246,6 +260,22 @@ export default {
...
@@ -246,6 +260,22 @@ export default {
})
})
}
}
})
})
},
changeValue
(
v
)
{
console
.
log
(
v
,
Date
.
now
())
const
date
=
new
Date
(
v
).
getTime
()
if
(
date
<
Date
.
now
())
{
this
.
timeOptions
=
{
selectableRange
:
`
${
dayjs
()
.
add
(
1
,
'm'
)
.
format
(
'HH:mm'
)}
:00 - 23:59:59`
}
console
.
log
(
this
.
timeOptions
)
}
else
{
this
.
timeOptions
=
{
selectableRange
:
'00:00:00 - 23:59:59'
}
}
}
}
}
}
}
}
...
...
src/views/customerTransform/components/basicInfo.vue
View file @
1defe41
...
@@ -185,7 +185,7 @@ export default {
...
@@ -185,7 +185,7 @@ export default {
}
}
.statistics-li
{
.statistics-li
{
display
:
inline-block
;
display
:
inline-block
;
width
:
142px
;
//
width
:
142px
;
color
:
#424242
;
color
:
#424242
;
font-size
:
14px
;
font-size
:
14px
;
text-align
:
center
;
text-align
:
center
;
...
@@ -193,6 +193,7 @@ export default {
...
@@ -193,6 +193,7 @@ export default {
&.statistics-border
{
&.statistics-border
{
padding-right
:
35
px
;
padding-right
:
35
px
;
margin-right
:
0
;
margin-right
:
0
;
padding-right
:
36px
;
border-right
:
1px
solid
#5850ff
;
border-right
:
1px
solid
#5850ff
;
}
}
.statistics-number
{
.statistics-number
{
...
...
src/views/customerTransform/detailCustomer.vue
View file @
1defe41
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
:class=
"[item.status == 0 ? 'unsend' : 'send']"
:class=
"[item.status == 0 ? 'unsend' : 'send']"
>
{{
item
.
status
==
0
?
'未'
:
'已'
}}
发送
</span>
>
{{
item
.
status
==
0
?
'未'
:
'已'
}}
发送
</span>
</div>
</div>
<div
class=
"info-num"
>
共
{{
item
.
customerCount
}}
个客户
</div>
<div
class=
"info-num"
>
共
{{
item
.
customerCount
?
item
.
customerCount
:
0
}}
个客户
</div>
</div>
</div>
<div
class=
"info-right"
>
<div
class=
"info-right"
>
<div
v-if=
"item.remindStatus == 1"
>
已提醒
</div>
<div
v-if=
"item.remindStatus == 1"
>
已提醒
</div>
...
@@ -68,6 +68,7 @@
...
@@ -68,6 +68,7 @@
<div
class=
"info-name"
>
<div
class=
"info-name"
>
{{
item
.
customerName
}}
{{
item
.
customerName
}}
<div
<div
class=
"customer-table"
:class=
"[item.status == 0 ? 'unsend' : 'send']"
:class=
"[item.status == 0 ? 'unsend' : 'send']"
>
{{
item
.
status
==
0
?
'未'
:
'已'
}}
送达
</div>
>
{{
item
.
status
==
0
?
'未'
:
'已'
}}
送达
</div>
</div>
</div>
...
@@ -260,6 +261,9 @@ export default {
...
@@ -260,6 +261,9 @@ export default {
color
:
#fff
;
color
:
#fff
;
border-radius
:
2px
;
border-radius
:
2px
;
}
}
.customer-table
{
display
:
table
;
}
div
{
div
{
margin-top
:
10px
;
margin-top
:
10px
;
font-size
:
14px
;
font-size
:
14px
;
...
...
src/views/home/index.vue
View file @
1defe41
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
title=
"浏览量"
title=
"浏览量"
width=
"200"
width=
"200"
trigger=
"hover"
trigger=
"hover"
content=
"购买活动商品的账号数量。"
content=
"
进入活动页面但未购买商品的张傲数量+
购买活动商品的账号数量。"
>
>
<img
slot=
"reference"
:src=
"iconUrl"
alt
/>
<img
slot=
"reference"
:src=
"iconUrl"
alt
/>
</el-popover>
</el-popover>
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
title=
"累计销量"
title=
"累计销量"
width=
"200"
width=
"200"
trigger=
"hover"
trigger=
"hover"
content=
"购买活动商品
的账号数量
。"
content=
"购买活动商品
付款金额的累加
。"
>
>
<img
slot=
"reference"
:src=
"iconUrl"
alt
/>
<img
slot=
"reference"
:src=
"iconUrl"
alt
/>
</el-popover>
</el-popover>
...
...
src/views/memberCenter/center.vue
View file @
1defe41
...
@@ -237,7 +237,7 @@ export default {
...
@@ -237,7 +237,7 @@ export default {
//权益 - 弹窗
//权益 - 弹窗
isDialogVisible
:
false
,
isDialogVisible
:
false
,
merchantData
:
{},
merchantData
:
{},
merchantId
:
44184606
//记得改
merchantId
:
0
//记得改 44184606
}
}
},
},
created
()
{
created
()
{
...
...
src/views/memberCenter/orderDetail.vue
View file @
1defe41
...
@@ -67,7 +67,8 @@
...
@@ -67,7 +67,8 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"orderStatus"
label=
"状态"
align=
"center"
>
<el-table-column
prop=
"orderStatus"
label=
"状态"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
orderStatus
==
2
?
'待收货'
:
scope
.
row
.
orderStatus
==
3
?
'已完成'
:
scope
.
row
.
orderStatus
==
4
?
'售后中'
:
scope
.
row
.
orderStatus
==
2
?
'退款失败'
:
scope
.
row
.
orderStatus
==
2
?
'已退款'
:
''
}}
</span>
<span>
{{
scope
.
row
.
orderStatus
==
2
?
'待收货'
:
scope
.
row
.
orderStatus
==
3
?
'已完成'
:
scope
.
row
.
orderStatus
==
4
?
'售后中'
:
scope
.
row
.
orderStatus
==
5
?
'退款失败'
:
scope
.
row
.
orderStatus
==
6
?
'已退款'
:
''
}}
</span>
<div>
{{
scope
.
row
.
refundReason
}}
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -113,25 +114,12 @@ export default {
...
@@ -113,25 +114,12 @@ export default {
this
.
$set
(
this
.
tableData
[
0
],
'totalPrice'
,
this
.
detail
.
originalPrice
)
this
.
$set
(
this
.
tableData
[
0
],
'totalPrice'
,
this
.
detail
.
originalPrice
)
this
.
$set
(
this
.
tableData
[
0
],
'realPayPrice'
,
this
.
detail
.
realPayPrice
)
this
.
$set
(
this
.
tableData
[
0
],
'realPayPrice'
,
this
.
detail
.
realPayPrice
)
this
.
$set
(
this
.
tableData
[
0
],
'orderStatus'
,
this
.
detail
.
orderStatus
)
this
.
$set
(
this
.
tableData
[
0
],
'orderStatus'
,
this
.
detail
.
orderStatus
)
this
.
$set
(
this
.
tableData
[
0
],
'refundReason'
,
this
.
detail
.
refundReason
)
}
else
{
}
else
{
this
.
$message
.
error
(
`
${
res
.
message
}
`
)
this
.
$message
.
error
(
`
${
res
.
message
}
`
)
}
}
})
})
},
},
// setTableData() {
// this.$set(this.tableData[0], 'couponList', this.detail.couponList)
// this.$set(this.tableData[0], 'orderType', this.detail.orderType)
// this.$set(this.tableData[0], 'effectiveNum', this.detail.effectiveNum)
// this.$set(this.tableData[0], 'originalPrice', this.detail.originalPrice)
// this.$set(this.tableData[0], 'amount', 1)
// this.$set(this.tableData[0], 'totalPrice', this.detail.originalPrice)
// this.$set(this.tableData[0], 'realPayPrice', this.detail.realPayPrice)
// this.$set(this.tableData[0], 'orderStatus', this.detail.orderStatus)
// console.log(this.tableData[0], '表格数据')
// },
goBack
()
{
goBack
()
{
console
.
log
(
this
.
detail
,
'gggg'
)
console
.
log
(
this
.
detail
,
'gggg'
)
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
...
...
src/views/memberCenter/setmealAddUpdate.vue
View file @
1defe41
...
@@ -203,7 +203,7 @@ export default {
...
@@ -203,7 +203,7 @@ export default {
}
}
}
}
})
})
console
.
log
(
'编辑内容'
,
this
.
choseItemList
,
this
.
totalPrice
)
this
.
copyTotalPrice
=
this
.
totalPrice
this
.
copyTotalPrice
=
this
.
totalPrice
this
.
copyRuleForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ruleForm
))
//深拷贝一份数据
this
.
copyRuleForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ruleForm
))
//深拷贝一份数据
this
.
copyChoseItemList
=
this
.
choseItemList
this
.
copyChoseItemList
=
this
.
choseItemList
...
@@ -225,7 +225,7 @@ export default {
...
@@ -225,7 +225,7 @@ export default {
serviceQuantity
:
0
serviceQuantity
:
0
}
}
})
})
console
.
log
(
this
.
allItemList
,
'服务套餐'
)
if
(
this
.
id
)
{
if
(
this
.
id
)
{
this
.
getServiceInfo
()
//获取编辑详情
this
.
getServiceInfo
()
//获取编辑详情
}
}
...
@@ -242,12 +242,12 @@ export default {
...
@@ -242,12 +242,12 @@ export default {
closeChoseItemFun
(
item
,
index
)
{
closeChoseItemFun
(
item
,
index
)
{
this
.
totalPrice
=
this
.
totalPrice
-
item
.
vipPrice
*
item
.
serviceQuantity
this
.
totalPrice
=
this
.
totalPrice
-
item
.
vipPrice
*
item
.
serviceQuantity
// item.serviceQuantity = 0
// item.serviceQuantity = 0
this
.
allItemList
.
forEach
(
ele
=>
{
//
this.allItemList.forEach(ele => {
if
(
ele
.
id
==
item
.
serviceId
)
{
//
if (ele.id == item.serviceId) {
ele
.
serviceQuantity
=
0
//
ele.serviceQuantity = 0
}
//
}
})
//
})
this
.
selectNumFun
()
//
this.selectNumFun()
this
.
choseItemList
.
splice
(
index
,
1
)
this
.
choseItemList
.
splice
(
index
,
1
)
},
},
selectNumFun
()
{
selectNumFun
()
{
...
@@ -402,6 +402,7 @@ export default {
...
@@ -402,6 +402,7 @@ export default {
serviceId
:
ele
.
id
serviceId
:
ele
.
id
}
}
})
})
console
.
log
(
'确定之后choseItemList'
,
this
.
choseItemList
)
this
.
setmealDialogVisible
=
false
this
.
setmealDialogVisible
=
false
},
},
handleClose
()
{
handleClose
()
{
...
@@ -415,7 +416,7 @@ export default {
...
@@ -415,7 +416,7 @@ export default {
// //第二个参数这里是对象,不是number(n)
// //第二个参数这里是对象,不是number(n)
// return preValue + choseItem.vipPrice * choseItem.serviceQuantity
// return preValue + choseItem.vipPrice * choseItem.serviceQuantity
// }, 0)
// }, 0)
this
.
getSetmealServiceFun
()
//
this.getSetmealServiceFun()
},
},
handleTipClose
()
{
handleTipClose
()
{
this
.
isTipDialogVisible
=
false
this
.
isTipDialogVisible
=
false
...
...
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