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 dda4bbd0
authored
Feb 23, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
功能代码提交
1 parent
22e2686e
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
558 additions
and
24 deletions
src/api/shopConfig.js
src/common/constants.js
src/router/modules/906_systemSettings.js
src/views/systemConfig/ShopConfig/components/flagDialog.vue
src/views/systemConfig/ShopConfig/index.vue
src/views/systemConfig/inStoreManage/components/flagDialog.vue
src/views/systemConfig/inStoreManage/index.vue
src/views/systemConfig/ruleReview/index.vue
src/api/shopConfig.js
View file @
dda4bbd
...
@@ -67,3 +67,21 @@ export function findSellerMerchantStaffList(data) {
...
@@ -67,3 +67,21 @@ export function findSellerMerchantStaffList(data) {
data
.
method
=
`
${
path
}
workbench.findSellerMerchantStaffList`
data
.
method
=
`
${
path
}
workbench.findSellerMerchantStaffList`
return
request
(
data
)
return
request
(
data
)
}
}
// 获取门店标签树
export
function
queryLabelGroupTree
(
data
)
{
data
.
method
=
`
${
path
}
serviceMerchant.queryLabelGroupTree`
return
request
(
data
)
}
// 门店标签详情
export
function
shopLabelDetail
(
data
)
{
data
.
method
=
`
${
path
}
serviceMerchant.shopLabelDetail`
return
request
(
data
)
}
// 修改门店标签
export
function
updateShopLabel
(
data
)
{
data
.
method
=
`
${
path
}
serviceMerchant.updateShopLabel`
return
request
(
data
)
}
src/common/constants.js
View file @
dda4bbd
...
@@ -798,3 +798,12 @@ export const partnerTypeList = [
...
@@ -798,3 +798,12 @@ export const partnerTypeList = [
{
confId
:
1
,
confName
:
"普通"
},
{
confId
:
1
,
confName
:
"普通"
},
{
confId
:
2
,
confName
:
"个体"
}
{
confId
:
2
,
confName
:
"个体"
}
]
]
// 驻店管理 所属业务对应
export
const
sceneForInStore
=
[
{
confId
:
"1"
,
confValue
:
"1.1"
},
{
confId
:
"4"
,
confValue
:
"1.2"
},
{
confId
:
"3"
,
confValue
:
"1.3"
},
{
confId
:
"0"
,
confValue
:
"2.1"
},
{
confId
:
"2"
,
confValue
:
"2.2"
}
]
src/router/modules/906_systemSettings.js
View file @
dda4bbd
...
@@ -712,6 +712,12 @@ export const routerName = {
...
@@ -712,6 +712,12 @@ export const routerName = {
parentId
:
"9061908"
parentId
:
"9061908"
}
}
]
]
},
{
authId
:
"9061910"
,
parentId
:
"90619"
,
label
:
"门店标签"
,
handle
:
"handleShopLabelFlag"
}
}
],
],
component
:
_import
(
"systemConfig/ShopConfig/index"
)
component
:
_import
(
"systemConfig/ShopConfig/index"
)
...
...
src/views/systemConfig/ShopConfig/components/flagDialog.vue
0 → 100644
View file @
dda4bbd
<!-- 门店标签 -->
<
template
>
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
class=
"accountDailog"
@
handleClick=
"handleAddConfirm"
>
<div
class=
"detail-dialog"
>
<el-form
ref=
"flagFrom"
class=
"flagFrom d2-container-content"
:model=
"infoForm"
label-width=
"250px"
v-loading=
"$store.state.d2admin.loading.value"
>
<el-form-item
label=
"门店名称:"
class=
"flag-div"
>
{{
info
.
merchantName
}}
</el-form-item>
<el-form-item
label=
"商户号:"
class=
"flag-div"
>
{{
info
.
merchantId
}}
</el-form-item>
<el-form-item
label=
""
v-for=
"(item, index1) in commLabelUnitList"
v-if=
"item.commLabelGroupInfo.groupType == '2'"
class=
"flag-div"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
{{
item
.
commLabelGroupInfo
.
groupName
}}
</span>
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
placement=
"right"
>
<div
slot=
"content"
>
说明:勾选应用场景,当前的费用类目会自动应用于对应场景的分账规则中,可在分账规则中进行配置并使用;
</div>
<span
class=
"tips-icon"
/>
</el-tooltip>
:
</span>
<span
v-for=
"(obj, index2) in item.commLabelList"
class=
"label-span"
>
{{
obj
.
labelName
}}
</span>
</el-form-item>
<el-form-item
label=
""
v-for=
"(item, index1) in groupUnitList"
v-if=
"item.groupType == '1'"
class=
"flag-div"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
{{
item
.
groupName
}}
</span>
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
placement=
"right"
>
<div
slot=
"content"
>
说明:勾选应用场景,当前的费用类目会自动应用于对应场景的分账规则中,可在分账规则中进行配置并使用;
</div>
<span
class=
"tips-icon"
/>
</el-tooltip>
:
</span>
<span
v-for=
"(obj, index2) in item.labelUnitList"
class=
"label-span"
:class=
"
{ 'label-span-choose': obj.choose }"
@click="chooseLabel(index1,index2,obj,item)">
{{
obj
.
labelName
}}
</span>
</el-form-item>
</el-form>
</div>
</baseDialog>
</
template
>
<
script
>
// import { sceneCodeList, transferTypeList } from '@/common/constants.js'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
queryLabelGroupTree
,
shopLabelDetail
,
updateShopLabel
}
from
'@/api/shopConfig.js'
export
default
{
name
:
'FlagDialog'
,
data
()
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
infoForm
:
{
},
dialogConfig
:
{
title
:
'门店标签'
,
width
:
'1080px'
},
editChildRef
:
'editChildRef'
,
baseData
:
{
},
groupUnitList
:
[],
commLabelUnitList
:
[]
}
},
props
:
{
flagVisible
:
{
type
:
Boolean
,
default
:
false
},
info
:
{
type
:
Object
,
default
:
null
}
},
watch
:
{
},
computed
:
{
visible
:
{
get
()
{
return
this
.
flagVisible
},
set
(
newVal
)
{
this
.
$emit
(
'dialogClose'
,
{
flag
:
newVal
,
attrName
:
'flagVisible'
})
}
},
},
mounted
()
{
this
.
queryLabelGroupTree
()
// this.shopLabelDetail()
},
methods
:
{
queryLabelGroupTree
()
{
var
params
=
{}
params
.
pageSize
=
100
queryLabelGroupTree
(
params
).
then
(
res
=>
{
console
.
log
(
res
);
this
.
groupUnitList
=
deepClone
(
res
.
groupUnitList
)
this
.
shopLabelDetail
()
})
},
shopLabelDetail
()
{
var
params
=
{}
params
.
merchantId
=
this
.
info
.
merchantId
shopLabelDetail
(
params
).
then
(
res
=>
{
console
.
log
(
res
);
this
.
commLabelUnitList
=
deepClone
(
res
.
commLabelUnitList
)
let
baseModifiableIds
=
[]
//返回的已标记标签ID集合
this
.
commLabelUnitList
&&
this
.
commLabelUnitList
.
forEach
((
item
)
=>
{
if
(
item
.
commLabelGroupInfo
.
groupType
==
'1'
)
{
item
.
commLabelList
.
forEach
(
obj
=>
{
baseModifiableIds
.
push
(
obj
.
labelId
)
})
}
})
console
.
log
(
'aaa'
,
baseModifiableIds
);
//判断需要回显的标签
this
.
groupUnitList
=
this
.
groupUnitList
.
map
(
item
=>
{
if
(
item
.
groupType
==
'1'
)
{
//可标识标签
item
.
labelUnitList
=
item
.
labelUnitList
.
map
(
el
=>
{
if
(
baseModifiableIds
.
findIndex
(
o
=>
o
==
el
.
labelId
)
!=
-
1
)
{
el
.
choose
=
true
}
else
{
el
.
choose
=
false
}
return
el
})
}
return
item
})
console
.
log
(
'bbb'
,
this
.
groupUnitList
);
})
},
chooseLabel
(
idx1
,
idx2
,
obj
,
group
)
{
if
(
group
.
groupType
==
'1'
)
{
this
.
groupUnitList
[
idx1
].
labelUnitList
[
idx2
].
choose
=
!
obj
.
choose
this
.
groupUnitList
=
deepClone
(
this
.
groupUnitList
)
}
},
handleAddConfirm
()
{
var
info
=
deepClone
(
this
.
info
)
var
params
=
{}
params
.
merchantId
=
info
.
merchantId
params
.
labelIdAddList
=
[]
//需新增的标签id列表
params
.
labelIdDelList
=
[]
//需取消的标签id列表
let
baseModifiableIds
=
[]
//返回的已标记标签ID集合
this
.
commLabelUnitList
&&
this
.
commLabelUnitList
.
forEach
((
item
)
=>
{
if
(
item
.
commLabelGroupInfo
.
groupType
==
'1'
)
{
item
.
commLabelList
.
forEach
(
obj
=>
{
baseModifiableIds
.
push
(
obj
.
labelId
)
})
}
})
console
.
log
(
'baseModifiableIds'
,
baseModifiableIds
);
let
flagItem
=
[]
//这次更改过标记的标签ID集合
this
.
groupUnitList
.
forEach
((
item
)
=>
{
if
(
item
.
groupType
==
'1'
)
{
item
.
labelUnitList
.
forEach
(
obj
=>
{
if
(
obj
.
hasOwnProperty
(
"choose"
))
flagItem
.
push
(
obj
)
})
}
})
console
.
log
(
'flagItem'
,
flagItem
);
let
flagItem_ids_Y
=
[]
//这次已标识
let
flagItem_ids_N
=
[]
//这次取消标识
flagItem
&&
flagItem
.
forEach
((
item
)
=>
{
if
(
item
.
choose
)
{
flagItem_ids_Y
.
push
(
item
.
labelId
)
}
else
{
flagItem_ids_N
.
push
(
item
.
labelId
)
}
})
console
.
log
(
'flagItem_ids_Y'
,
flagItem_ids_Y
);
console
.
log
(
'flagItem_ids_N'
,
flagItem_ids_N
);
//拿这次标识的标签ID集合和之前返回的标签做对比,如果这次标识为已标记状态的ID没有在返回的标签里,则是这次新增的
flagItem_ids_Y
&&
flagItem_ids_Y
.
map
(
item
=>
{
if
(
baseModifiableIds
.
findIndex
(
o
=>
o
==
item
)
==
-
1
)
{
params
.
labelIdAddList
.
push
(
item
)
}
})
//拿这次标识的标签ID集合和之前返回的标签做对比,如果这次标识为取消标记状态的ID在返回的标签里,则是这次取消掉的
flagItem_ids_N
&&
flagItem_ids_N
.
map
(
item
=>
{
if
(
baseModifiableIds
.
findIndex
(
o
=>
o
==
item
)
!=
-
1
)
{
params
.
labelIdDelList
.
push
(
item
)
}
})
console
.
log
(
'params.labelIdAddList'
,
params
.
labelIdAddList
);
console
.
log
(
'params.labelIdDelList'
,
params
.
labelIdDelList
);
updateShopLabel
(
params
).
then
(
res
=>
{
this
.
notice
.
okTips
(
'操作成功'
)
this
.
visible
=
true
})
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.flagFrom.d2-container-content
{
margin-top
:
0
!important
;
}
.detail-dialog
{
//
margin
:
20px
0
;
.flag-div
{
//
width
:
100%
;
height
:
40
rpx
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
28
rpx
;
line-height
:
40
rpx
;
//
.flag-div-label
{
//
width
:
20%
;
//
color
:
#666666
;
//
text-align
:
right
;
//
}
//
.flag-div-detail
{
//
width
:
70%
;
//
color
:
#333333
;
//
}
.label-span
{
margin-right
:
10px
;
max-width
:
250px
;
height
:
26px
;
background
:
#fafbfe
;
border
:
1px
solid
#e8e8ea
;
border-radius
:
4px
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
14px
;
color
:
#666666
;
padding
:
4px
8px
;
}
.label-span-choose
{
margin-right
:
10px
;
max-width
:
250px
;
height
:
26px
;
border
:
1px
solid
#185efe
;
border-radius
:
4px
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
14px
;
color
:
#185efe
;
padding
:
4px
8px
;
}
}
}
</
style
>
src/views/systemConfig/ShopConfig/index.vue
View file @
dda4bbd
...
@@ -113,6 +113,11 @@
...
@@ -113,6 +113,11 @@
:info=
"recordInfo"
:info=
"recordInfo"
v-if=
"qRcodeVisible"
v-if=
"qRcodeVisible"
@
dialogClose=
"dialogClose"
/>
@
dialogClose=
"dialogClose"
/>
<!-- 门店标签 -->
<flag-dialog
:flag-visible=
"flagVisible"
:info=
"recordInfo"
v-if=
"flagVisible"
@
dialogClose=
"flagDialogClose"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -124,10 +129,12 @@ import { shopSettingList, listYqRef } from '@/api/shopConfig.js'
...
@@ -124,10 +129,12 @@ import { shopSettingList, listYqRef } from '@/api/shopConfig.js'
import
{
merchantOutputValueTargetExport
,
merchantOutputValueTargetImport
}
from
'@api/index'
import
{
merchantOutputValueTargetExport
,
merchantOutputValueTargetImport
}
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
flagDialog
from
'./components/flagDialog'
export
default
{
export
default
{
name
:
'ShopConfigIndex'
,
name
:
'ShopConfigIndex'
,
components
:
{
components
:
{
qrcodeDialog
qrcodeDialog
,
flagDialog
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -139,7 +146,8 @@ export default {
...
@@ -139,7 +146,8 @@ export default {
merchantId
:
''
,
merchantId
:
''
,
orderTime
:
''
,
orderTime
:
''
,
areaSupervision
:
''
,
areaSupervision
:
''
,
residentManager
:
''
residentManager
:
''
,
shopLabelFlag
:
''
},
},
searchFormSearch
:
{},
searchFormSearch
:
{},
showFormData
:
[{
showFormData
:
[{
...
@@ -180,11 +188,14 @@ export default {
...
@@ -180,11 +188,14 @@ export default {
isClear
:
true
isClear
:
true
},
},
{
{
label
:
'驻店负责人'
,
label
:
'门店标签'
,
name
:
'residentManager'
,
name
:
'shopLabelFlag'
,
type
:
'input'
,
type
:
'select'
,
maxlength
:
'20'
,
isClear
:
true
,
isClear
:
true
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
optionsName
:
'shopLabelFlagList'
}],
}],
getListApi
:
shopSettingList
,
getListApi
:
shopSettingList
,
tableParams
:
{
tableParams
:
{
...
@@ -217,8 +228,11 @@ export default {
...
@@ -217,8 +228,11 @@ export default {
label
:
'区域督导'
,
label
:
'区域督导'
,
prop
:
'areaSupervision'
prop
:
'areaSupervision'
},
{
},
{
label
:
'驻店负责人'
,
label
:
'门店标签'
,
prop
:
'residentManager'
prop
:
'shopLabelFlag'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
shopLabelFlag
==
'Y'
?
'有'
:
'无'
}
},
{
},
{
label
:
'部署状态'
,
label
:
'部署状态'
,
prop
:
'deployScene'
,
prop
:
'deployScene'
,
...
@@ -253,7 +267,11 @@ export default {
...
@@ -253,7 +267,11 @@ export default {
areaList
:
[],
areaList
:
[],
businessNature
:
businessNature
,
businessNature
:
businessNature
,
storeType
:
storeType
,
storeType
:
storeType
,
provinceInfoList
:
[]
provinceInfoList
:
[],
shopLabelFlagList
:
[
{
confId
:
'Y'
,
confValue
:
"有"
},
{
confId
:
'N'
,
confValue
:
"无"
}
]
},
},
recordInfo
:
null
,
recordInfo
:
null
,
fileVisible
:
false
,
fileVisible
:
false
,
...
@@ -267,11 +285,7 @@ export default {
...
@@ -267,11 +285,7 @@ export default {
fileName
:
[{
required
:
true
,
message
:
"请上传文件"
,
trigger
:
"change"
}]
fileName
:
[{
required
:
true
,
message
:
"请上传文件"
,
trigger
:
"change"
}]
},
},
qRcodeVisible
:
false
,
qRcodeVisible
:
false
,
testRow
:
{
flagVisible
:
false
merchantId
:
44211653
// "merchantName": "晨星测试客户15",
// "channelType": 1,
}
}
}
},
},
computed
:
{
computed
:
{
...
@@ -410,7 +424,8 @@ export default {
...
@@ -410,7 +424,8 @@ export default {
merchantId
:
''
,
merchantId
:
''
,
orderTime
:
''
,
orderTime
:
''
,
areaSupervision
:
''
,
areaSupervision
:
''
,
residentManager
:
''
residentManager
:
''
,
shopLabelFlag
:
''
}
}
this
.
$refs
.
recordTable
.
refreshTable
()
this
.
$refs
.
recordTable
.
refreshTable
()
},
},
...
@@ -532,7 +547,19 @@ export default {
...
@@ -532,7 +547,19 @@ export default {
info
:
row
info
:
row
}
}
})
})
},
//门店标签
handleShopLabelFlag
(
row
)
{
console
.
log
(
row
)
this
.
recordInfo
=
row
this
.
flagVisible
=
!
this
.
flagVisible
},
flagDialogClose
(
obj
)
{
this
[
obj
.
attrName
]
=
!
this
[
obj
.
attrName
]
if
(
obj
.
flag
)
{
this
.
$refs
.
recordTable
.
refreshTable
()
}
}
},
}
}
}
}
...
...
src/views/systemConfig/inStoreManage/components/flagDialog.vue
0 → 100644
View file @
dda4bbd
<!-- 员工标签 -->
<
template
>
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
class=
"accountDailog"
@
handleClick=
"handleAddConfirm"
>
<div
class=
"detail-dialog"
>
<el-form
ref=
"flagFrom"
class=
"flagFrom d2-container-content"
:model=
"infoForm"
label-width=
"250px"
v-loading=
"$store.state.d2admin.loading.value"
>
<el-form-item
label=
"员工姓名:"
class=
"flag-div"
>
{{
info
.
staffName
}}
</el-form-item>
<el-form-item
label=
"服务门店:"
class=
"flag-div"
>
<el-select
v-model=
"shopMerchant"
placeholder=
"请选择"
class=
"el_select itd"
@
change=
"staffLabelDetail"
>
<el-option
v-for=
"item in info.shopMerchantList"
:key=
"item.merchantId"
:value=
"item.merchantId"
:label=
"item.merchantName + ' ' + item.merchantId"
/>
</el-select>
</el-form-item>
<el-form-item
label=
""
v-for=
"(item, index1) in commLabelUnitList"
class=
"flag-div"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
{{
item
.
commLabelGroupInfo
.
groupName
}}
</span>
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
placement=
"right"
>
<div
slot=
"content"
>
说明:勾选应用场景,当前的费用类目会自动应用于对应场景的分账规则中,可在分账规则中进行配置并使用;
</div>
<span
class=
"tips-icon"
/>
</el-tooltip>
:
</span>
<span
v-for=
"(obj, index2) in item.commLabelList"
class=
"label-span"
>
{{
obj
.
labelName
}}
</span>
</el-form-item>
</el-form>
</div>
</baseDialog>
</
template
>
<
script
>
// import { sceneCodeList, transferTypeList } from '@/common/constants.js'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
staffLabelDetail
}
from
'@/api/inStoreManage.js'
export
default
{
name
:
'FlagDialog'
,
data
()
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
infoForm
:
{
},
dialogConfig
:
{
title
:
'员工标签'
,
width
:
'1080px'
},
editChildRef
:
'editChildRef'
,
baseData
:
{
},
commLabelUnitList
:
[],
shopMerchant
:
''
}
},
props
:
{
flagVisible
:
{
type
:
Boolean
,
default
:
false
},
info
:
{
type
:
Object
,
default
:
null
}
},
watch
:
{
},
computed
:
{
visible
:
{
get
()
{
return
this
.
flagVisible
},
set
(
newVal
)
{
this
.
$emit
(
'dialogClose'
,
{
flag
:
newVal
,
attrName
:
'flagVisible'
})
}
},
},
mounted
()
{
this
.
shopMerchant
=
this
.
info
.
shopMerchantList
[
0
].
merchantId
this
.
staffLabelDetail
()
},
methods
:
{
staffLabelDetail
()
{
var
params
=
{}
params
.
staffUuid
=
this
.
info
.
staffUuid
params
.
merchantId
=
this
.
shopMerchant
staffLabelDetail
(
params
).
then
(
res
=>
{
console
.
log
(
res
);
this
.
commLabelUnitList
=
deepClone
(
res
.
commLabelUnitList
)
})
},
handleAddConfirm
()
{
this
.
visible
=
true
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.flagFrom.d2-container-content
{
margin-top
:
0
!important
;
}
.detail-dialog
{
.itd
{
width
:
400px
;
}
.flag-div
{
//
width
:
100%
;
height
:
40
rpx
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
28
rpx
;
line-height
:
40
rpx
;
//
.flag-div-label
{
//
width
:
20%
;
//
color
:
#666666
;
//
text-align
:
right
;
//
}
//
.flag-div-detail
{
//
width
:
70%
;
//
color
:
#333333
;
//
}
.label-span
{
margin-right
:
10px
;
max-width
:
250px
;
height
:
26px
;
background
:
#fafbfe
;
border
:
1px
solid
#e8e8ea
;
border-radius
:
4px
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
14px
;
color
:
#666666
;
padding
:
4px
8px
;
}
}
}
</
style
>
src/views/systemConfig/inStoreManage/index.vue
View file @
dda4bbd
...
@@ -42,19 +42,25 @@
...
@@ -42,19 +42,25 @@
</d2-table>
</d2-table>
</div>
</div>
</d2-container>
</d2-container>
<!-- 门店标签 -->
<flag-dialog
:flag-visible=
"flagVisible"
:info=
"recordInfo"
v-if=
"flagVisible"
@
dialogClose=
"flagDialogClose"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
sceneForShop
}
from
'@/common/constants.js'
import
{
sceneForShop
,
sceneForInStore
}
from
'@/common/constants.js'
import
{
withdrawOrderRecordPage
,
rewithdraw
}
from
'@api/withdrawalManage'
import
{
withdrawOrderRecordPage
,
rewithdraw
}
from
'@api/withdrawalManage'
import
{
staffPage
}
from
'@api/inStoreManage'
import
{
staffPage
}
from
'@api/inStoreManage'
import
flagDialog
from
'./components/flagDialog'
export
default
{
export
default
{
name
:
'TransferAccountsList'
,
name
:
'TransferAccountsList'
,
components
:
{
components
:
{
flagDialog
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -126,18 +132,29 @@ export default {
...
@@ -126,18 +132,29 @@ export default {
},
{
},
{
label
:
'手机号'
,
label
:
'手机号'
,
prop
:
'phoneNumber'
,
prop
:
'phoneNumber'
,
width
:
'1
6
0px'
width
:
'1
2
0px'
},
{
},
{
label
:
'园区店'
,
label
:
'园区店'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
,
width
:
'
16
0px'
,
width
:
'
20
0px'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
merchantName
+
' '
+
cellValue
.
merchantId
return
cellValue
.
merchantName
+
' '
+
cellValue
.
merchantId
}
}
},
{
},
{
label
:
'所属业务'
,
label
:
'所属业务'
,
prop
:
'staffSceneLabel'
,
prop
:
'staffSceneLabel'
,
width
:
'160px'
width
:
'160px'
,
formatter
:
(
cellValue
)
=>
{
let
showHtml
=
'-'
if
(
cellValue
.
staffSceneLabel
)
{
let
arr
=
cellValue
.
staffSceneLabel
.
split
(
","
)
arr
=
arr
.
map
(
o
=>
{
return
sceneForInStore
.
find
(
el
=>
el
.
confId
==
o
).
confValue
})
showHtml
=
arr
.
join
(
','
)
}
return
showHtml
}
},
{
},
{
label
:
"服务门店"
,
label
:
"服务门店"
,
prop
:
"shopMerchantList"
,
prop
:
"shopMerchantList"
,
...
@@ -187,6 +204,7 @@ export default {
...
@@ -187,6 +204,7 @@ export default {
{
confId
:
'N'
,
confValue
:
"无"
}
{
confId
:
'N'
,
confValue
:
"无"
}
]
]
},
},
flagVisible
:
false
}
}
},
},
...
@@ -246,10 +264,18 @@ export default {
...
@@ -246,10 +264,18 @@ export default {
this
.
$refs
.
recordTable
.
refreshTable
(
false
,
true
)
this
.
$refs
.
recordTable
.
refreshTable
(
false
,
true
)
},
},
handleViewLabel
()
{
//员工标签
console
.
log
(
'1111111111'
);
handleViewLabel
(
row
)
{
console
.
log
(
row
)
this
.
recordInfo
=
row
this
.
flagVisible
=
!
this
.
flagVisible
},
flagDialogClose
(
obj
)
{
this
[
obj
.
attrName
]
=
!
this
[
obj
.
attrName
]
if
(
obj
.
flag
)
{
this
.
$refs
.
recordTable
.
refreshTable
()
}
}
},
},
},
...
...
src/views/systemConfig/ruleReview/index.vue
View file @
dda4bbd
...
@@ -159,6 +159,11 @@ export default {
...
@@ -159,6 +159,11 @@ export default {
prop
:
'effectStartDate'
,
prop
:
'effectStartDate'
,
width
:
'150px'
,
width
:
'150px'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
const
nowDate
=
Util
.
dateFormate
(
new
Date
(),
'YYYY-MM-DD'
)
console
.
log
(
nowDate
);
console
.
log
(
Util
.
dateFormate
(
cellValue
.
effectStartDate
,
'YYYY-MM-DD'
));
console
.
log
(
Util
.
dateFormate
(
cellValue
.
effectStartDate
,
'YYYY-MM-DD'
)
>
nowDate
);
if
(
cellValue
.
effectDateType
==
2
)
{
if
(
cellValue
.
effectDateType
==
2
)
{
return
'立即生效'
return
'立即生效'
}
else
{
}
else
{
...
@@ -214,6 +219,9 @@ export default {
...
@@ -214,6 +219,9 @@ export default {
})
})
},
},
mounted
()
{
mounted
()
{
// const nowDate = Util.dateFormate(new Date(), 'YYYY-MM-DD')
// console.log(nowDate);
this
.
getBaseData
()
this
.
getBaseData
()
},
},
...
...
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