Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
member
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
member
member
Commits
0e690c56
Commit
0e690c56
authored
Oct 26, 2022
by
huaying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 微信转pos
parent
6f080033
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
95 additions
and
8 deletions
+95
-8
index.css
elethem/index.css
+4
-3
wxToPosDialog.vue
src/components/allCustomers/components/wxToPosDialog.vue
+74
-0
customerDetail.vue
src/components/allCustomers/customerDetail.vue
+7
-1
info.js
src/components/allCustomers/info.js
+6
-2
url.js
src/components/axios/url.js
+1
-0
index.css
static/css/index.css
+3
-2
No files found.
elethem/index.css
View file @
0e690c56
...
...
@@ -3971,11 +3971,12 @@
.el-dialog__headerbtn
:focus
.el-dialog__close
,
.el-dialog__headerbtn
:hover
.el-dialog__close
{
color
:
#2F54EB
;
}
.el-dialog__title
{
line-height
:
24px
;
font-size
:
18px
;
line-height
:
22px
;
font-size
:
16px
!important
;
font-weight
:
500
;
color
:
#303133
;
}
.el-dialog__body
{
padding
:
2
0px
20px
10px
20px
;
padding
:
1
0px
20px
10px
20px
;
color
:
#606266
;
font-size
:
14px
;
}
.el-dialog__footer
{
src/components/allCustomers/components/wxToPosDialog.vue
0 → 100644
View file @
0e690c56
<
template
>
<el-dialog
title=
"微信转POS"
:visible
.
sync=
"dialogVisible"
custom-class=
"customer-dialog"
@
close=
"cancel"
width=
"420px"
>
<p
style=
"margin-bottom: 8px"
>
确认将此客户的微信信息删除吗?删除后:
</p>
<p
style=
"margin-bottom: 8px"
>
1、此客户的会员类型将从微信会员转为POS会员;
<br/>
2、该客户与微信侧的关联信息将被清除(公众号和小程序);
<br/>
3、与该客户相关的数据统计将产生影响如微信会员数、POS转微信会员数等
</p>
<p>
删除后不可恢复,请谨慎操作!
</p>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"cancel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"okBtn"
>
确定
</el-button>
</span>
</el-dialog>
</
template
>
<
script
>
import
{
doFetchGet
}
from
'../../axios/api'
;
import
url
from
'../../axios/url'
;
export
default
{
props
:
{
dialogVisible
:
{
type
:
Boolean
,
default
:
false
,
},
memberId
:
{
type
:
String
,
default
:
''
}
},
data
()
{
return
{
};
},
methods
:
{
cancel
()
{
this
.
$emit
(
'update:dialogVisible'
,
false
);
},
okBtn
()
{
doFetchGet
(
url
.
weChantToPos
,{
mid
:
this
.
memberId
}).
then
((
res
)
=>
{
if
(
res
.
data
.
errorCode
==
0
){
this
.
cancel
();
this
.
$emit
(
'refresh'
);
this
.
$message
.
success
(
'操作成功'
);
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
})
}
}
};
</
script
>
<
style
lang=
"less"
>
.customer-dialog
{
/deep/.el-dialog__header{
font-size
:
16px
!important
;
}
}
</
style
>
<
style
lang=
"less"
scoped
>
.customer-dialog
{
background
:
#000000
;
opacity
:
0.5
;
p
{
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#303133
;
line-height
:
20px
;
}
}
</
style
>
\ No newline at end of file
src/components/allCustomers/customerDetail.vue
View file @
0e690c56
...
...
@@ -6,10 +6,13 @@
<h2
class=
"item-title"
>
<i
class=
"vertical-line"
/><span>
{{
section
.
title
}}
</span>
</h2>
<el-button
type=
"text"
v-if=
"section.name==='basic' && getCodeAuth('memberEditInfo')"
<div>
<el-button
type=
"text"
v-if=
"section.name==='basic' && getCodeAuth('memberEditInfo')"
@
click=
"baseinfoDialogVisible=true"
:limit-code=
"getCode('memberEditInfo')"
>
编辑
</el-button>
<el-button
type=
"text"
v-if=
"section.name==='basic' && getCodeAuth('wxToPOS') && member.customerType == 'wxOpenCarMember'"
:limit-code=
"getCode('wxToPOS')"
style=
"margin-left:12px"
@
click=
"weChantDialogVisible=true"
>
微信转POS
</el-button>
</div>
</div>
<div
:class=
"[section.class]"
>
<!-- 基本信息 -->
...
...
@@ -817,6 +820,9 @@
:memberId=
"memberId"
@
refresh=
"initData"
/>
<!-- 微信转POS弹窗 -->
<wxToPosDialog
:dialogVisible
.
sync=
"weChantDialogVisible"
:memberId=
"memberId"
@
refresh=
"initData"
></wxToPosDialog>
</div>
</template>
<
script
>
...
...
src/components/allCustomers/info.js
View file @
0e690c56
...
...
@@ -10,6 +10,7 @@ import url from '../../components/axios/url';
import
{
doFetch
,
doFetchqs
,
doFetchGet
}
from
'../../components/axios/api'
;
import
authMethods
from
'@/mixins/auth'
;
import
CustomerLog
from
'./components/customerLog.vue'
;
import
wxToPosDialog
from
'./components/wxToPosDialog.vue'
;
import
{
checkFalse
,
checkStatus
,
...
...
@@ -174,7 +175,9 @@ export default {
},
// { title: '客户日志', name: 'log', class: 'log-info-contain' },
],
marketingRecordNum
:
0
marketingRecordNum
:
0
,
// 微信转POS
weChantDialogVisible
:
false
,
};
},
watch
:
{
...
...
@@ -515,6 +518,7 @@ export default {
customersubstoreDialog
,
customerlabelDialog
,
IconLabelValue
,
CustomerLog
CustomerLog
,
wxToPosDialog
,
},
};
src/components/axios/url.js
View file @
0e690c56
...
...
@@ -121,6 +121,7 @@ const urlConfig = {
frozenMemberExportExcel
:
'/api-admin/frozen-member-export-excel'
,
// 异常会员搜索结果导出
cliqueMemberRelation
:
'/api-member/clique-member-relation'
,
//判断是否有展示会员导入的权限 1不可,2,null可
weChantToPos
:
'/api-member/member-change-wechat-member-pos'
}
const
defaultUrl
=
Object
.
assign
({},
urlConfig
);
...
...
static/css/index.css
View file @
0e690c56
...
...
@@ -3975,8 +3975,9 @@
.el-dialog__headerbtn
:focus
.el-dialog__close
,
.el-dialog__headerbtn
:hover
.el-dialog__close
{
color
:
#2F54EB
;
}
.el-dialog__title
{
line-height
:
24px
;
font-size
:
18px
;
line-height
:
22px
;
font-size
:
16px
!important
;
font-weight
:
500
;
color
:
#303133
;
}
.el-dialog__body
{
padding
:
20px
20px
10px
20px
;
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