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 44ddda36
authored
Aug 20, 2024
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
员工注册码
1 parent
efdccafd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
132 additions
and
3 deletions
src/api/shopConfig.js
src/views/systemConfig/ShopConfig/components/employeeDialog.vue
src/views/systemConfig/ShopConfig/index.vue
src/api/shopConfig.js
View file @
44ddda3
...
@@ -109,3 +109,8 @@ export function orderFieldSettingUpdate(data) {
...
@@ -109,3 +109,8 @@ export function orderFieldSettingUpdate(data) {
data
.
method
=
`
${
path
}
order.field.setting.update`
data
.
method
=
`
${
path
}
order.field.setting.update`
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
//员工注册码
export
function
employeeRegister
(
data
)
{
data
.
method
=
`
${
path
}
serviceMerchant.shopSetting`
return
request
(
data
,
RequestMethods
.
POST
)
}
src/views/systemConfig/ShopConfig/components/employeeDialog.vue
0 → 100644
View file @
44ddda3
<!--
* @Author: 王志慧 wangzh@didihu.com.cn
* @Date: 2024-08-20 10:57:01
* @LastEditors: 王志慧 wangzh@didihu.com.cn
* @LastEditTime: 2024-08-20 11:14:12
* @FilePath: \dj-car-life-system\src\views\systemConfig\ShopConfig\components\employeeDialog.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<
template
>
<d2-dialog
title=
"员工注册码"
:is-visible=
"employeeVisible"
class=
"qRcodeDailog"
width=
"750px"
btn-ok-label=
"下载"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
<div
class=
"employee-wrap"
>
<div
class=
"title"
>
员工注册码
</div>
<div
class=
"code"
></div>
</div>
</d2-dialog>
</
template
>
<
script
>
// alipayQrcode
import
{
employeeRegister
}
from
"@api/shopConfig"
export
default
{
name
:
"employeeDialog"
,
data
()
{
return
{
// 基本数据
baseData
:
{
merchantList
:
[]
},
qrCodeURL
:
""
}
},
props
:
{
employeeVisible
:
{
type
:
Boolean
,
default
:
false
},
info
:
{
type
:
Object
,
default
:
null
}
},
watch
:
{},
created
()
{},
components
:
{},
mounted
()
{
console
.
log
(
this
.
info
)
},
methods
:
{
// 下载图片 filename是图片名称
downImg
(
url
,
name
)
{
// 创建a标签 并设置其相关属性,最后触发其点击事件
const
a
=
document
.
createElement
(
"a"
)
const
clickEvent
=
document
.
createEvent
(
"MouseEvents"
)
a
.
setAttribute
(
"href"
,
url
)
a
.
setAttribute
(
"download"
,
name
)
a
.
setAttribute
(
"target"
,
"_blank"
)
clickEvent
.
initEvent
(
"click"
,
true
,
true
)
a
.
dispatchEvent
(
clickEvent
)
},
handleAddConfirm
()
{
this
.
downImg
()
},
handleClose
()
{
this
.
$emit
(
"dialogClose"
,
true
)
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.employee-wrap
{
display
:
flex
;
align-items
:
center
;
flex-direction
:
column
;
justify-content
:
center
;
.title
{
font-weight
:
500
;
font-size
:
14px
;
color
:
#333333
;
margin-bottom
:
8px
;
}
.code
{
width
:
120px
;
height
:
120px
;
background
:
#333333
;
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/systemConfig/ShopConfig/index.vue
View file @
44ddda3
...
@@ -107,6 +107,12 @@
...
@@ -107,6 +107,12 @@
v-if=
"qRcodeVisible"
v-if=
"qRcodeVisible"
@
dialogClose=
"dialogClose"
@
dialogClose=
"dialogClose"
/>
/>
<employee-dialog
:employee-visible=
"employeeVisible"
:info=
"recordInfo"
v-if=
"employeeVisible"
@
dialogClose=
"employeeDialogClose"
/>
<!-- 门店标签 -->
<!-- 门店标签 -->
<flag-dialog
<flag-dialog
:flag-visible=
"flagVisible"
:flag-visible=
"flagVisible"
...
@@ -128,12 +134,14 @@ import {
...
@@ -128,12 +134,14 @@ import {
}
from
"@api/index"
}
from
"@api/index"
import
{
businessNature
,
storeType
}
from
"@/common/constants.js"
import
{
businessNature
,
storeType
}
from
"@/common/constants.js"
import
qrcodeDialog
from
"./components/qRcodeDialog"
import
qrcodeDialog
from
"./components/qRcodeDialog"
import
employeeDialog
from
"./components/employeeDialog"
import
flagDialog
from
"./components/flagDialog"
import
flagDialog
from
"./components/flagDialog"
export
default
{
export
default
{
name
:
"ShopConfigIndex"
,
name
:
"ShopConfigIndex"
,
components
:
{
components
:
{
qrcodeDialog
,
qrcodeDialog
,
flagDialog
flagDialog
,
employeeDialog
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -262,7 +270,13 @@ export default {
...
@@ -262,7 +270,13 @@ export default {
prop
:
"areaSupervisionList"
,
prop
:
"areaSupervisionList"
,
width
:
"200px"
,
width
:
"200px"
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
let
areaSuper
=
(
cellValue
.
areaSupervisionList
&&
cellValue
.
areaSupervisionList
.
length
)
?
cellValue
.
areaSupervisionList
.
map
(
item
=>
item
.
userName
).
join
(
'/'
)
:
'-'
let
areaSuper
=
cellValue
.
areaSupervisionList
&&
cellValue
.
areaSupervisionList
.
length
?
cellValue
.
areaSupervisionList
.
map
((
item
)
=>
item
.
userName
)
.
join
(
"/"
)
:
"-"
return
areaSuper
return
areaSuper
}
}
},
},
...
@@ -330,6 +344,7 @@ export default {
...
@@ -330,6 +344,7 @@ export default {
fileName
:
[{
required
:
true
,
message
:
"请上传文件"
,
trigger
:
"change"
}]
fileName
:
[{
required
:
true
,
message
:
"请上传文件"
,
trigger
:
"change"
}]
},
},
qRcodeVisible
:
false
,
qRcodeVisible
:
false
,
employeeVisible
:
false
,
flagVisible
:
false
flagVisible
:
false
}
}
},
},
...
@@ -364,7 +379,11 @@ export default {
...
@@ -364,7 +379,11 @@ export default {
async
getBaseData
()
{
async
getBaseData
()
{
this
.
getOptionsList
()
this
.
getOptionsList
()
},
},
//员工注册码
employeeRegistrationCode
(
row
)
{
this
.
recordInfo
=
row
this
.
employeeVisible
=
!
this
.
employeeVisible
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
)
=>
{
return
new
Promise
((
resolve
)
=>
{
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
)
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
)
...
@@ -589,6 +608,9 @@ export default {
...
@@ -589,6 +608,9 @@ export default {
dialogClose
()
{
dialogClose
()
{
this
.
qRcodeVisible
=
!
this
.
qRcodeVisible
this
.
qRcodeVisible
=
!
this
.
qRcodeVisible
},
},
employeeDialogClose
()
{
this
.
employeeVisible
=
!
this
.
employeeVisible
},
// 工单配置
// 工单配置
handleSet
(
row
)
{
handleSet
(
row
)
{
...
...
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