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 6cf8eb38
authored
Feb 22, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
功能代码提交
1 parent
716f9bf3
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
498 additions
and
102 deletions
public/menuIcon/inStoreManage.png
src/api/inStoreManage.js
src/api/shopConfig.js
src/common/constants.js
src/router/modules/906_systemSettings.js
src/views/financeManage/transferAccountsManage/index.vue
src/views/index/components/outputValueDialog.vue
src/views/systemConfig/ShopConfig/shopSet.vue
src/views/systemConfig/inStoreManage/index.vue
src/views/systemConfig/ruleReview/examineDetail.vue
src/views/systemConfig/ruleReview/index.vue
public/menuIcon/inStoreManage.png
0 → 100644
View file @
6cf8eb3
457 Bytes
src/api/inStoreManage.js
0 → 100644
View file @
6cf8eb3
import
request
from
"./request"
import
RequestMethods
from
"./request.methods"
const
path
=
"dj.api.smartcarlife."
// 驻店管理标签明细
export
function
staffLabelDetail
(
data
)
{
data
.
method
=
`
${
path
}
staff.labelDetail`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 分页查询驻店管理
export
function
staffPage
(
data
)
{
data
.
method
=
`
${
path
}
staff.page`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 获取员工标签树
export
function
queryLabelGroupTree
(
data
)
{
data
.
method
=
`
${
path
}
staff.queryLabelGroupTree`
return
request
(
data
,
RequestMethods
.
POST
)
}
src/api/shopConfig.js
View file @
6cf8eb3
...
@@ -61,3 +61,9 @@ export function updateStaffBatch(data) {
...
@@ -61,3 +61,9 @@ export function updateStaffBatch(data) {
data
.
method
=
`merchants.api.staff.updateStaffBatch`
data
.
method
=
`merchants.api.staff.updateStaffBatch`
return
request
(
data
)
return
request
(
data
)
}
}
// 查询业务负责人
export
function
findSellerMerchantStaffList
(
data
)
{
data
.
method
=
`
${
path
}
workbench.findSellerMerchantStaffList`
return
request
(
data
)
}
src/common/constants.js
View file @
6cf8eb3
...
@@ -678,8 +678,15 @@ export const applyStatus = [
...
@@ -678,8 +678,15 @@ export const applyStatus = [
// 店面配置 业务性质
// 店面配置 业务性质
export
const
businessNature
=
[
export
const
businessNature
=
[
{
confId
:
1
,
confName
:
"直营渠道"
},
{
confId
:
1
,
confName
:
"直营渠道"
},
{
confId
:
2
,
confName
:
"直营4S店"
}
{
confId
:
2
,
confName
:
"直营4S店"
},
{
confId
:
3
,
confName
:
"合资收购"
}
]
]
// 店面配置 业务性质
export
const
businessNatureShow
=
{
1
:
"直营渠道"
,
2
:
"直营4S店"
,
3
:
"合资收购"
}
// 店面配置 门店类型
// 店面配置 门店类型
export
const
storeType
=
[
export
const
storeType
=
[
{
confId
:
1
,
confName
:
"嘀加"
},
{
confId
:
1
,
confName
:
"嘀加"
},
...
@@ -763,8 +770,8 @@ export const stockManagementModeList = [
...
@@ -763,8 +770,8 @@ export const stockManagementModeList = [
// 转账管理-预警状态
// 转账管理-预警状态
export
const
warningStatus
=
[
export
const
warningStatus
=
[
{
confId
:
1
,
confValue
:
"正常"
},
{
confId
:
"Y"
,
confValue
:
"正常"
},
{
confId
:
2
,
confValue
:
"异常"
}
{
confId
:
"N"
,
confValue
:
"异常"
}
]
]
// 规则审核-类型
// 规则审核-类型
...
@@ -772,6 +779,10 @@ export const ruleReview_type = [
...
@@ -772,6 +779,10 @@ export const ruleReview_type = [
{
confId
:
1
,
confValue
:
"清分"
},
{
confId
:
1
,
confValue
:
"清分"
},
{
confId
:
3
,
confValue
:
"对账"
}
{
confId
:
3
,
confValue
:
"对账"
}
]
]
export
const
ruleReview_type_show
=
{
1
:
"清分"
,
3
:
"对账"
}
// 规则审核-状态
// 规则审核-状态
export
const
ruleReview_status
=
[
export
const
ruleReview_status
=
[
...
...
src/router/modules/906_systemSettings.js
View file @
6cf8eb3
...
@@ -910,5 +910,24 @@ export const routerName = {
...
@@ -910,5 +910,24 @@ export const routerName = {
activePath
:
"/ruleReview"
activePath
:
"/ruleReview"
},
},
component
:
_import
(
"systemConfig/ruleReview/examineDetail"
)
component
:
_import
(
"systemConfig/ruleReview/examineDetail"
)
},
90626
:
{
path
:
"/inStoreManage"
,
name
:
"inStoreManage"
,
meta
:
{
title
:
"驻店管理"
,
authId
:
"90626"
,
parentId
:
"906"
,
cache
:
false
},
auth
:
[
{
authId
:
"9062601"
,
parentId
:
"90626"
,
label
:
"查看标签"
,
handle
:
"handleViewLabel"
}
],
component
:
_import
(
"systemConfig/inStoreManage/index"
)
}
}
}
}
src/views/financeManage/transferAccountsManage/index.vue
View file @
6cf8eb3
...
@@ -161,7 +161,8 @@ export default {
...
@@ -161,7 +161,8 @@ export default {
withdrawTradeNo
:
''
,
withdrawTradeNo
:
''
,
transferAccountsDate
:
''
,
transferAccountsDate
:
''
,
transferType
:
''
,
transferType
:
''
,
platformMerchantId
:
''
platformMerchantId
:
''
,
warnStatus
:
''
},
},
searchFormSearch
:
{},
searchFormSearch
:
{},
showFormData
:
[{
showFormData
:
[{
...
@@ -238,7 +239,7 @@ export default {
...
@@ -238,7 +239,7 @@ export default {
optionsName
:
'PlatformMerchantList'
optionsName
:
'PlatformMerchantList'
},
{
},
{
label
:
'预警状态'
,
label
:
'预警状态'
,
name
:
'warn
ing
Status'
,
name
:
'warnStatus'
,
type
:
'select'
,
type
:
'select'
,
isClear
:
true
,
isClear
:
true
,
optionList
:
[],
optionList
:
[],
...
@@ -386,18 +387,18 @@ export default {
...
@@ -386,18 +387,18 @@ export default {
},
},
{
{
label
:
'预警状态'
,
label
:
'预警状态'
,
prop
:
'
s
tatus'
,
prop
:
'
warnS
tatus'
,
width
:
'100px'
,
width
:
'100px'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
this
.
baseData
.
statusList
.
find
(
item
=>
item
.
confId
===
cellValue
.
s
tatus
)?.
confValue
return
this
.
baseData
.
warningStatusList
.
find
(
item
=>
item
.
confId
===
cellValue
.
warnS
tatus
)?.
confValue
}
}
},
},
{
{
label
:
'预警原因'
,
label
:
'预警原因'
,
prop
:
'
status
'
,
prop
:
'
warnReason
'
,
width
:
'100px'
,
width
:
'100px'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
transferTime
?
Util
.
dateFormate
(
cellValue
.
transferTime
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
return
cellValue
.
warnReason
?
cellValue
.
warnReason
:
'--'
}
}
},
},
{
{
...
@@ -523,7 +524,8 @@ export default {
...
@@ -523,7 +524,8 @@ export default {
withdrawTradeNo
:
''
,
withdrawTradeNo
:
''
,
transferAccountsDate
:
''
,
transferAccountsDate
:
''
,
transferType
:
''
,
transferType
:
''
,
platformMerchantId
:
''
platformMerchantId
:
''
,
warnStatus
:
''
}
}
this
.
$refs
.
recordTable
.
refreshTable
(
false
,
true
)
this
.
$refs
.
recordTable
.
refreshTable
(
false
,
true
)
},
},
...
...
src/views/index/components/outputValueDialog.vue
View file @
6cf8eb3
...
@@ -54,10 +54,14 @@
...
@@ -54,10 +54,14 @@
width=
"200"
/>
width=
"200"
/>
<el-table-column
prop=
"merchantId"
<el-table-column
prop=
"merchantId"
label=
"商户号"
label=
"商户号"
width=
"
20
0"
/>
width=
"
12
0"
/>
<el-table-column
prop=
"
merchantId
"
<el-table-column
prop=
"
businessType
"
label=
"业务性质"
label=
"业务性质"
width=
"200"
/>
width=
"120"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
businessType
?
businessNatureShow
[
scope
.
row
.
businessType
]
:
''
}}
</span>
</
template
>
</el-table-column>
<!-- <el-table-column prop="outputValue" label="场景在营" width="220">
<!-- <el-table-column prop="outputValue" label="场景在营" width="220">
<template slot-scope="scope">
<template slot-scope="scope">
<el-select v-model="scope.row['businessScene']" class="select" multiple collapse-tags placeholder="请选择">
<el-select v-model="scope.row['businessScene']" class="select" multiple collapse-tags placeholder="请选择">
...
@@ -221,7 +225,7 @@
...
@@ -221,7 +225,7 @@
<
script
>
<
script
>
import
{
limitPrice
}
from
'@/common/format'
import
{
limitPrice
}
from
'@/common/format'
import
{
sceneCodeList
}
from
'@/common/constants'
import
{
sceneCodeList
,
businessNatureShow
}
from
'@/common/constants'
import
{
downLoadFile
}
from
'@/common/util'
import
{
downLoadFile
}
from
'@/common/util'
// import moment from 'moment'
// import moment from 'moment'
// import orderManage from "@api/orderManage"
// import orderManage from "@api/orderManage"
...
@@ -274,8 +278,9 @@ export default {
...
@@ -274,8 +278,9 @@ export default {
},
},
hasPage
:
true
,
hasPage
:
true
,
// 分页组件配置
// 分页组件配置
layout
:
'sizes,total,->,prev,pager,next,jumper'
layout
:
'sizes,total,->,prev,pager,next,jumper'
,
// outputVisible: true
// outputVisible: true
businessNatureShow
:
businessNatureShow
}
}
},
},
computed
:
{
computed
:
{
...
...
src/views/systemConfig/ShopConfig/shopSet.vue
View file @
6cf8eb3
...
@@ -103,26 +103,26 @@
...
@@ -103,26 +103,26 @@
<span
class=
"item-tips"
>
注:设置店面的驻店负责人,可配置驻店月份绩效
</span>
<span
class=
"item-tips"
>
注:设置店面的驻店负责人,可配置驻店月份绩效
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"1.1业务负责人:"
<el-form-item
label=
"1.1业务负责人:"
prop=
"
residentManager
"
>
prop=
"
boutiqueDirectorUserId
"
>
<el-select
v-model=
"form.
businessType
"
<el-select
v-model=
"form.
shopMerchantConfig.boutiqueDirectorUserId
"
placeholder=
"请选择"
placeholder=
"请选择"
class=
"el_select itd"
>
class=
"el_select itd"
>
<el-option
v-for=
"item in
businessNature
"
<el-option
v-for=
"item in
sellerMerchantStaffList
"
:key=
"item.
conf
Id"
:key=
"item.
user
Id"
:
value=
"item.confId
"
:
label=
"item.userName
"
:
label=
"item.confName
"
/>
:
value=
"item.userId
"
/>
</el-select>
</el-select>
<span
class=
"item-tips"
>
注:获取账户中心创建在广联数科下的员工,角色类型选广联销售
</span>
<span
class=
"item-tips"
>
注:获取账户中心创建在广联数科下的员工,角色类型选广联销售
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"2.1业务负责人:"
<el-form-item
label=
"2.1业务负责人:"
prop=
"
residentManager
"
>
prop=
"
quotationDirectorUserId
"
>
<el-select
v-model=
"form.
businessType
"
<el-select
v-model=
"form.
shopMerchantConfig.quotationDirectorUserId
"
placeholder=
"请选择"
placeholder=
"请选择"
class=
"el_select itd"
>
class=
"el_select itd"
>
<el-option
v-for=
"item in
businessNature
"
<el-option
v-for=
"item in
sellerMerchantStaffList
"
:key=
"item.
conf
Id"
:key=
"item.
user
Id"
:
value=
"item.confId
"
:
label=
"item.userName
"
:
label=
"item.confName
"
/>
:
value=
"item.userId
"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
...
@@ -203,17 +203,37 @@
...
@@ -203,17 +203,37 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"阳光激励费:"
<el-form-item
label=
"阳光激励费:"
prop=
"sunlightIncentiveCost"
>
prop=
"sunlightIncentiveCost"
>
<div>
<span
class=
"rateInput_s"
>
精品升级
</span>
<el-input
class=
"rateInput_t"
<el-input
class=
"rateInput_t"
v-model=
"form.sunlightIncentiveCost
"
v-model=
"form.shopMerchantConfig.boutiqueSunshineInspiration
"
@
input=
"sunlightIncentiveCost
_handleInput"
@
input=
"boutiqueSunshineInspiration
_handleInput"
placeholder=
"请输入比例"
/>
%
placeholder=
"请输入比例"
/>
%
</div>
<div
class=
"rateInput_d"
>
<span
class=
"rateInput_s"
>
会员权益升级
</span>
<el-input
class=
"rateInput_t"
v-model=
"form.shopMerchantConfig.quotationSunshineInspiration"
@
input=
"quotationSunshineInspiration_handleInput"
placeholder=
"请输入比例"
/>
%
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"市场激励费:"
<el-form-item
label=
"市场激励费:"
prop=
"marketIncentiveCost"
>
prop=
"marketIncentiveCost"
>
<div>
<span
class=
"rateInput_s"
>
精品升级
</span>
<el-input
class=
"rateInput_t"
v-model=
"form.shopMerchantConfig.boutiqueMarketInspiration"
@
input=
"boutiqueMarketInspiration_handleInput"
placeholder=
"请输入比例"
/>
%
</div>
<div
class=
"rateInput_d"
>
<span
class=
"rateInput_s"
>
会员权益升级
</span>
<el-input
class=
"rateInput_t"
<el-input
class=
"rateInput_t"
v-model=
"form.marketIncentiveCost
"
v-model=
"form.shopMerchantConfig.quotationMarketInspiration
"
@
input=
"marketIncentiveCost
_handleInput"
@
input=
"quotationMarketInspiration
_handleInput"
placeholder=
"请输入比例"
/>
%
placeholder=
"请输入比例"
/>
%
</div>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<div
class=
"btnCon"
>
<div
class=
"btnCon"
>
...
@@ -235,7 +255,7 @@
...
@@ -235,7 +255,7 @@
<
script
>
<
script
>
import
{
deepClone
}
from
'@/common/util'
import
{
deepClone
}
from
'@/common/util'
import
{
getShopSetting
,
listByMerchantIdAndYear
,
shopSetting
}
from
'@/api/shopConfig.js'
import
{
getShopSetting
,
listByMerchantIdAndYear
,
shopSetting
,
findSellerMerchantStaffList
}
from
'@/api/shopConfig.js'
import
{
serviceGetMerchantList
}
from
'@api/merchant'
import
{
serviceGetMerchantList
}
from
'@api/merchant'
import
{
findMerchantStaffList
}
from
'@api/index'
import
{
findMerchantStaffList
}
from
'@api/index'
import
{
businessNature
,
sceneForShop
}
from
'@/common/constants.js'
import
{
businessNature
,
sceneForShop
}
from
'@/common/constants.js'
...
@@ -265,8 +285,13 @@ export default {
...
@@ -265,8 +285,13 @@ export default {
currentMonthOutputValue
:
''
,
currentMonthOutputValue
:
''
,
nextMonthOutputValue
:
''
,
nextMonthOutputValue
:
''
,
serviceMerchantServiceChargeConfig
:
{},
serviceMerchantServiceChargeConfig
:
{},
sunlightIncentiveCost
:
''
,
shopMerchantConfig
:
{}
marketIncentiveCost
:
''
// boutiqueSunshineInspiration: '',
// quotationSunshineInspiration: '',
// boutiqueMarketInspiration: '',
// quotationMarketInspiration: '',
// boutiqueDirectorUserId: '',
// quotationDirectorUserId: ''
},
},
outputValueListByYear
:
[],
outputValueListByYear
:
[],
year
:
''
,
year
:
''
,
...
@@ -300,9 +325,12 @@ export default {
...
@@ -300,9 +325,12 @@ export default {
oldVal
:
{
oldVal
:
{
passageServiceChargeFlag
:
''
,
passageServiceChargeFlag
:
''
,
gasCardServiceChargeFlag
:
''
,
gasCardServiceChargeFlag
:
''
,
sunlightIncentiveCost
:
''
,
boutiqueSunshineInspiration
:
''
,
marketIncentiveCost
:
''
quotationSunshineInspiration
:
''
,
boutiqueMarketInspiration
:
''
,
quotationMarketInspiration
:
''
},
},
sellerMerchantStaffList
:
[]
}
}
},
},
...
@@ -322,6 +350,7 @@ export default {
...
@@ -322,6 +350,7 @@ export default {
this
.
findMerchantStaffList
()
this
.
findMerchantStaffList
()
this
.
getSelectList
(
this
.
info
)
this
.
getSelectList
(
this
.
info
)
this
.
listByMerchantIdAndYear
(
this
.
year
)
this
.
listByMerchantIdAndYear
(
this
.
year
)
this
.
findSellerMerchantStaffList
()
},
},
methods
:
{
methods
:
{
...
@@ -342,6 +371,9 @@ export default {
...
@@ -342,6 +371,9 @@ export default {
//未设置过时,手续费默认为打开并且费率为2
//未设置过时,手续费默认为打开并且费率为2
this
.
form
.
serviceMerchantServiceChargeConfig
=
{
'passageServiceCharge'
:
2
,
'passageServiceChargeFlag'
:
'Y'
,
'gasCardServiceCharge'
:
2
,
'gasCardServiceChargeFlag'
:
'Y'
}
this
.
form
.
serviceMerchantServiceChargeConfig
=
{
'passageServiceCharge'
:
2
,
'passageServiceChargeFlag'
:
'Y'
,
'gasCardServiceCharge'
:
2
,
'gasCardServiceChargeFlag'
:
'Y'
}
}
}
if
(
!
this
.
form
.
shopMerchantConfig
)
{
this
.
form
.
shopMerchantConfig
=
{
'boutiqueDirectorUserId'
:
''
,
'quotationDirectorUserId'
:
''
,
'boutiqueSunshineInspiration'
:
''
,
'quotationSunshineInspiration'
:
''
,
'boutiqueMarketInspiration'
:
''
,
'quotationMarketInspiration'
:
''
}
}
console
.
log
(
this
.
form
)
console
.
log
(
this
.
form
)
if
(
this
.
form
.
list
&&
this
.
form
.
list
.
length
>
0
)
{
if
(
this
.
form
.
list
&&
this
.
form
.
list
.
length
>
0
)
{
this
.
form
.
list
=
this
.
form
.
list
.
map
(
item
=>
{
this
.
form
.
list
=
this
.
form
.
list
.
map
(
item
=>
{
...
@@ -548,6 +580,19 @@ export default {
...
@@ -548,6 +580,19 @@ export default {
return
return
}
}
}
}
let
shopMerchantConfig
=
_params
.
shopMerchantConfig
_params
.
boutiqueDirectorUserId
=
shopMerchantConfig
.
boutiqueDirectorUserId
if
(
shopMerchantConfig
.
boutiqueDirectorUserId
)
{
_params
.
boutiqueDirectorName
=
this
.
sellerMerchantStaffList
.
find
(
item
=>
item
.
userId
===
shopMerchantConfig
.
boutiqueDirectorUserId
)?.
userName
}
_params
.
quotationDirectorUserId
=
shopMerchantConfig
.
quotationDirectorUserId
if
(
shopMerchantConfig
.
quotationDirectorUserId
)
{
_params
.
quotationDirectorName
=
this
.
sellerMerchantStaffList
.
find
(
item
=>
item
.
userId
===
shopMerchantConfig
.
quotationDirectorUserId
)?.
userName
}
_params
.
boutiqueSunshineInspiration
=
shopMerchantConfig
.
boutiqueSunshineInspiration
_params
.
quotationSunshineInspiration
=
shopMerchantConfig
.
quotationSunshineInspiration
_params
.
boutiqueMarketInspiration
=
shopMerchantConfig
.
boutiqueMarketInspiration
_params
.
quotationMarketInspiration
=
shopMerchantConfig
.
quotationMarketInspiration
console
.
log
(
_params
)
console
.
log
(
_params
)
shopSetting
({
dataString
:
JSON
.
stringify
(
_params
)
}).
then
(
res
=>
{
shopSetting
({
dataString
:
JSON
.
stringify
(
_params
)
}).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
...
@@ -588,17 +633,36 @@ export default {
...
@@ -588,17 +633,36 @@ export default {
}
}
},
},
gasCardServiceCharge_handleInput
(
newVal
)
{
gasCardServiceCharge_handleInput
(
newVal
)
{
this
.
form
.
serviceMerchantServiceChargeConfig
.
gasCardServiceCharge
=
limitPrice
(
newVal
,
this
.
oldVal
.
gasCardServiceCharge
,
3
,
2
,
0
,
100
)
this
.
form
.
s
hopMerchantConfig
.
s
erviceMerchantServiceChargeConfig
.
gasCardServiceCharge
=
limitPrice
(
newVal
,
this
.
oldVal
.
gasCardServiceCharge
,
3
,
2
,
0
,
100
)
this
.
oldVal
.
gasCardServiceCharge
=
this
.
form
.
serviceMerchantServiceChargeConfig
.
gasCardServiceCharge
this
.
oldVal
.
gasCardServiceCharge
=
this
.
form
.
serviceMerchantServiceChargeConfig
.
gasCardServiceCharge
},
},
sunlightIncentiveCost_handleInput
(
newVal
)
{
boutiqueSunshineInspiration_handleInput
(
newVal
)
{
this
.
form
.
sunlightIncentiveCost
=
limitPrice
(
newVal
,
this
.
oldVal
.
sunlightIncentiveCost
,
3
,
2
,
0
,
100
)
this
.
form
.
shopMerchantConfig
.
boutiqueSunshineInspiration
=
limitPrice
(
newVal
,
this
.
oldVal
.
boutiqueSunshineInspiration
,
3
,
2
,
0
,
100
)
this
.
oldVal
.
sunlightIncentiveCost
=
this
.
form
.
sunlightIncentiveCost
this
.
oldVal
.
boutiqueSunshineInspiration
=
this
.
form
.
shopMerchantConfig
.
boutiqueSunshineInspiration
},
quotationSunshineInspiration_handleInput
(
newVal
)
{
this
.
form
.
shopMerchantConfig
.
quotationSunshineInspiration
=
limitPrice
(
newVal
,
this
.
oldVal
.
quotationSunshineInspiration
,
3
,
2
,
0
,
100
)
this
.
oldVal
.
quotationSunshineInspiration
=
this
.
form
.
shopMerchantConfig
.
quotationSunshineInspiration
},
boutiqueMarketInspiration_handleInput
(
newVal
)
{
this
.
form
.
shopMerchantConfig
.
boutiqueMarketInspiration
=
limitPrice
(
newVal
,
this
.
oldVal
.
boutiqueMarketInspiration
,
3
,
2
,
0
,
100
)
this
.
oldVal
.
boutiqueMarketInspiration
=
this
.
form
.
shopMerchantConfig
.
boutiqueMarketInspiration
},
quotationMarketInspiration_handleInput
(
newVal
)
{
this
.
form
.
shopMerchantConfig
.
quotationMarketInspiration
=
limitPrice
(
newVal
,
this
.
oldVal
.
quotationMarketInspiration
,
3
,
2
,
0
,
100
)
this
.
oldVal
.
quotationMarketInspiration
=
this
.
form
.
shopMerchantConfig
.
quotationMarketInspiration
},
},
marketIncentiveCost_handleInput
(
newVal
)
{
this
.
form
.
marketIncentiveCost
=
limitPrice
(
newVal
,
this
.
oldVal
.
marketIncentiveCost
,
3
,
2
,
0
,
100
)
findSellerMerchantStaffList
()
{
this
.
oldVal
.
marketIncentiveCost
=
this
.
form
.
marketIncentiveCost
findSellerMerchantStaffList
({}).
then
((
result
)
=>
{
this
.
sellerMerchantStaffList
=
result
.
map
((
item
)
=>
{
return
{
userId
:
item
.
uuid
,
userName
:
item
.
staffName
}
}
})
})
},
}
}
}
}
...
@@ -855,4 +919,11 @@ export default {
...
@@ -855,4 +919,11 @@ export default {
.rateInput_t
{
.rateInput_t
{
width
:
150px
;
width
:
150px
;
}
}
.rateInput_s
{
display
:
inline-block
;
width
:
100px
;
}
.rateInput_d
{
margin-top
:
20px
;
}
</
style
>
</
style
>
src/views/systemConfig/inStoreManage/index.vue
0 → 100644
View file @
6cf8eb3
<!-- 驻店管理 - 列表 -->
<
template
>
<div>
<!-- class="order-detail" -->
<d2-container>
<!--
<div
class=
"offline-account"
>
-->
<div
class=
"header"
slot=
"header"
style=
"padding: 10px 20px;"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:labelWidth=
"labelWidth"
:form-data=
"showFormData"
/>
<div
class=
"up-btns"
>
<el-button
@
click=
"handleSearch"
size=
"small"
type=
"primary"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</div>
</div>
<!--
</d2-container>
<d2-container>
-->
<div
class=
"d2-container-content"
>
<d2-table-header>
<auth-button
category=
"Button"
/>
</d2-table-header>
<d2-table
ref=
"recordTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<auth-button
:data=
"scope.scope"
/>
</div>
</d2-table>
</div>
</d2-container>
</div>
</
template
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
sceneForShop
}
from
'@/common/constants.js'
import
{
withdrawOrderRecordPage
,
rewithdraw
}
from
'@api/withdrawalManage'
import
{
staffPage
}
from
'@api/inStoreManage'
export
default
{
name
:
'TransferAccountsList'
,
components
:
{
},
data
()
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
labelWidth
:
'100px'
,
searchForm
:
{
staffName
:
''
,
phoneNumber
:
''
,
allMerchantName
:
''
,
sceneType
:
''
,
allMerchantId
:
''
,
staffLabelFlag
:
''
},
searchFormSearch
:
{},
showFormData
:
[{
label
:
'员工姓名'
,
name
:
'staffName'
,
type
:
'input'
,
maxlength
:
'50'
,
isClear
:
true
},
{
label
:
'手机号'
,
name
:
'phoneNumber'
,
type
:
'input'
,
inputType
:
"number"
,
maxlength
:
'11'
,
isClear
:
true
},
{
label
:
'商户'
,
name
:
'allMerchantName'
,
type
:
'input'
,
maxlength
:
'50'
,
isClear
:
true
},
{
label
:
'所属业务'
,
name
:
'sceneType'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
optionsName
:
'sceneForShop'
},
{
label
:
'商户号'
,
name
:
'allMerchantId'
,
type
:
'input'
,
inputType
:
'number'
,
maxlength
:
'20'
,
isClear
:
true
},
{
label
:
'员工标签'
,
name
:
'staffLabelFlag'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
optionsName
:
'staffLabelFlagList'
}],
getListApi
:
staffPage
,
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
// tableOption: { width: '200px' },
tableOption
:
true
,
tableColumns
:
[{
label
:
'姓名'
,
prop
:
'staffName'
,
width
:
'160px'
},
{
label
:
'手机号'
,
prop
:
'phoneNumber'
,
width
:
'160px'
},
{
label
:
'园区店'
,
prop
:
'merchantName'
,
width
:
'160px'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
merchantName
+
' '
+
cellValue
.
merchantId
}
},
{
label
:
'所属业务'
,
prop
:
'staffSceneLabel'
,
width
:
'160px'
},
{
label
:
"服务门店"
,
prop
:
"shopMerchantList"
,
html
:
true
,
formatter
:
(
cellValue
)
=>
{
if
(
cellValue
.
shopMerchantList
)
{
return
cellValue
.
shopMerchantList
.
reduce
(
(
merchString
,
item
)
=>
{
merchString
=
merchString
+
`<p>
${
item
.
merchantName
}
${
item
.
merchantId
}
</p>`
return
merchString
},
""
)
}
else
{
return
""
}
}
},
{
label
:
"服务商"
,
prop
:
"serviceMerchantList"
,
html
:
true
,
formatter
:
(
cellValue
)
=>
{
if
(
cellValue
.
serviceMerchantList
)
{
return
cellValue
.
serviceMerchantList
.
reduce
(
(
merchString
,
item
)
=>
{
merchString
=
merchString
+
`<p>
${
item
.
merchantName
}
${
item
.
merchantId
}
</p>`
return
merchString
},
""
)
}
else
{
return
""
}
}
},
{
label
:
'员工标签'
,
prop
:
'staffLabelFlag'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
staffLabelFlag
==
'Y'
?
'有'
:
'无'
}
}]
},
baseData
:
{
sceneForShop
:
deepClone
(
sceneForShop
),
staffLabelFlagList
:
[
{
confId
:
'Y'
,
confValue
:
"有"
},
{
confId
:
'N'
,
confValue
:
"无"
}
]
},
}
},
computed
:
{
...
mapState
({
dowloadList
:
(
state
)
=>
state
.
d2admin
.
user
.
dowloadList
})
},
mounted
()
{
this
.
getBaseData
()
},
methods
:
{
...
mapActions
({
get
:
'd2admin/base/get'
,
close
:
'd2admin/page/close'
}),
...
mapActions
(
'd2admin/user'
,
[
'actionSetDownloadList'
]),
async
getBaseData
()
{
this
.
getOptionsList
()
},
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
)
resolve
()
})
},
getOptionsList
()
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
)
{
if
(
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
.
showFormData
[
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
.
showFormData
[
index
].
optionId
]
=
''
temp
[
this
.
showFormData
[
index
].
optionLabel
]
=
'全部'
this
.
baseData
[
item
.
optionsName
].
unshift
(
temp
)
}
this
.
$set
(
this
.
showFormData
[
index
],
'optionList'
,
this
.
baseData
[
item
.
optionsName
])
}
})
},
handleSearch
()
{
this
.
$refs
.
recordTable
.
refreshTable
(
false
,
true
)
},
handleReset
()
{
this
.
searchForm
=
{
staffName
:
''
,
phoneNumber
:
''
,
allMerchantName
:
''
,
sceneType
:
''
,
allMerchantId
:
''
,
staffLabelFlag
:
''
}
this
.
$refs
.
recordTable
.
refreshTable
(
false
,
true
)
},
handleViewLabel
()
{
console
.
log
(
'1111111111'
);
}
},
}
</
script
>
<
style
scoped
>
.count-txt
{
font-weight
:
700
;
color
:
#2a58ad
;
margin
:
0
2px
;
}
.leftSpan
{
display
:
inline-block
;
box-sizing
:
border-box
;
margin-right
:
10px
;
}
</
style
>
src/views/systemConfig/ruleReview/examineDetail.vue
View file @
6cf8eb3
...
@@ -2,15 +2,22 @@
...
@@ -2,15 +2,22 @@
<d2-Container>
<d2-Container>
<div
class=
"merchant-checkdetail"
>
<div
class=
"merchant-checkdetail"
>
<div
class=
"merchant-title"
>
<div
class=
"merchant-title"
>
<span>
商户名称:我是4S点名称
</span>
<span>
商户名称:
{{
merchantRow
.
merchantName
}}
</span>
<span>
业务场景:精品升级
</span>
<span>
业务场景:
{{
sceneList
[
merchantRow
.
sceneType
]
}}
</span>
<span>
类型:清分
</span>
<span>
类型:
{{
ruleReviewType
[
merchantRow
.
ruleType
]
}}
</span>
<span>
生效时间:2024-01-01
</span>
<span>
生效时间:
{{
merchantRow
.
effectStartDateShow
}}
</span>
</div>
<div
class=
"merchant-info"
>
<!-- 分账 -->
<ledgerAccount
v-if=
"merchantRow.ruleType == 1"
:items=
"checkDetailItem"
/>
<!-- 对账 -->
<reconciliation
v-if=
"merchantRow.ruleType == 3"
:form-item=
"checkRecordList"
:items=
"checkRecordList.goodsTypeGroupReconciliationRules || []"
/>
</div>
</div>
<ledgerAccount
:items=
"checkDetailItem"
/>
<div
class=
"btns"
>
<div
class=
"btns"
>
<el-button
@
click=
"handleConfirm"
<el-button
@
click=
"handleConfirm"
size=
"small"
type=
"primary"
>
type=
"primary"
>
审核
审核
</el-button>
</el-button>
...
@@ -21,10 +28,10 @@
...
@@ -21,10 +28,10 @@
<
script
>
<
script
>
import
ledgerAccount
from
'../merchant/merchantStep/components/ledgerAccount.vue'
import
ledgerAccount
from
'../merchant/merchantStep/components/ledgerAccount.vue'
import
{
import
reconciliation
from
'../merchant/merchantStep/components/reconciliation.vue'
getDistributeRuleApi
,
import
{
ruleAuditDetail
,
ruleAuditPass
}
from
'@api/ruleReview'
// getEffectRuleApi
import
{
sceneList
,
ruleReview_type_show
}
from
'@/common/constants.js'
}
from
"@api/merchant"
import
{
Util
,
deepClone
}
from
'@/common/util'
export
default
{
export
default
{
name
:
"ExamineDetail"
,
name
:
"ExamineDetail"
,
props
:
{},
props
:
{},
...
@@ -35,66 +42,43 @@ export default {
...
@@ -35,66 +42,43 @@ export default {
// 分账数据
// 分账数据
checkDetailItem
:
{},
checkDetailItem
:
{},
// 对账数据
// 对账数据
// checkRecordList: {}
checkRecordList
:
{},
sceneList
:
deepClone
(
sceneList
),
ruleReviewType
:
deepClone
(
ruleReview_type_show
)
}
}
},
},
created
()
{
created
()
{
this
.
getRowItem
()
this
.
getRowItem
()
},
},
mounted
()
{
mounted
()
{
// 分账
this
.
getRuleAuditDetail
()
this
.
getDistributeRule
()
},
},
methods
:
{
methods
:
{
async
init
()
{
async
init
()
{
// if (this.activeName == "first") {
this
.
getRuleAuditDetail
()
// 分账
this
.
getDistributeRule
()
// } else {
// 对账
// this.getEffectRule()
// }
},
},
// 分账
async
getRuleAuditDetail
()
{
async
getDistributeRule
()
{
const
params
=
{
const
params
=
{
merchantId
:
this
.
merchantRow
.
merchantId
,
id
:
this
.
merchantRow
.
id
sceneType
:
this
.
merchantRow
.
scene
,
expenseCategroyRulsBuildType
:
2
}
}
const
res
=
await
getDistributeRuleApi
(
params
)
const
res
=
await
ruleAuditDetail
(
params
)
console
.
log
(
'res: '
,
res
)
console
.
log
(
'res: '
,
res
)
this
.
checkDetailItem
=
res
this
.
checkDetailItem
=
res
.
merchantSettleDistributeRule
this
.
checkRecordList
=
res
.
merchantReconciliationRule
},
},
// 对账
// async getEffectRule() {
// const params = {
// merchantId: this.merchantRow.merchantId,
// sceneType: this.merchantRow.scene
// }
// const res = await getEffectRuleApi(params)
// console.log(res)
// this.checkRecordList = res
// // this.checkRecordList = res?.goodsTypeGroupReconciliationRules
// // console.log('res: ', res)
// },
getRowItem
()
{
getRowItem
()
{
const
params
=
this
.
$route
.
query
?.
params
const
params
=
this
.
$route
.
query
?.
params
if
(
params
)
{
if
(
params
)
{
this
.
merchantRow
=
JSON
.
parse
(
params
)
this
.
merchantRow
=
JSON
.
parse
(
params
)
if
(
this
.
merchantRow
.
effectDateType
==
2
)
{
this
.
merchantRow
.
effectStartDateShow
=
'立即生效'
}
else
{
this
.
merchantRow
.
effectStartDateShow
=
this
.
merchantRow
.
effectStartDate
?
Util
.
dateFormate
(
this
.
merchantRow
.
effectStartDate
,
'YYYY-MM-DD'
)
:
'--'
}
// console.log("is.merchantRow", this.merchantRow)
// console.log("is.merchantRow", this.merchantRow)
}
}
},
},
// handleClick(tab) {
// 审核
// // console.log(tab.name)
// this.activeName = tab.name
// this.init()
// },
// handleType(num) {
// this.activeType = num
// },
// 保存
handleConfirm
()
{
handleConfirm
()
{
this
.
$confirm
(
'审核通过后,当前规则会自动应用并生效,可在商户管理-历史记录中查询。'
,
'提示'
,
{
this
.
$confirm
(
'审核通过后,当前规则会自动应用并生效,可在商户管理-历史记录中查询。'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
...
@@ -102,9 +86,10 @@ export default {
...
@@ -102,9 +86,10 @@ export default {
type
:
'warning'
,
type
:
'warning'
,
closeOnClickModal
:
false
closeOnClickModal
:
false
}).
then
(()
=>
{
}).
then
(()
=>
{
// rewithdraw({ orderCode: row.orderCode }).then(res => {
ruleAuditPass
({
id
:
this
.
merchantRow
.
id
}).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
//
})
})
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
console
.
log
(
err
)
})
})
...
@@ -112,7 +97,7 @@ export default {
...
@@ -112,7 +97,7 @@ export default {
},
},
components
:
{
components
:
{
ledgerAccount
,
ledgerAccount
,
//
reconciliation
reconciliation
},
},
computed
:
{}
computed
:
{}
}
}
...
@@ -137,6 +122,9 @@ $color: #2a58ad;
...
@@ -137,6 +122,9 @@ $color: #2a58ad;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.merchant-info
{
margin-top
:
20px
;
}
.type
{
.type
{
margin-top
:
6px
;
margin-top
:
6px
;
...
...
src/views/systemConfig/ruleReview/index.vue
View file @
6cf8eb3
...
@@ -38,7 +38,8 @@
...
@@ -38,7 +38,8 @@
<div
slot=
"auth-button"
<div
slot=
"auth-button"
slot-scope=
"scope"
>
slot-scope=
"scope"
>
<!-- 审核 -->
<!-- 审核 -->
<span
style=
"margin-right: 10px;"
>
<span
style=
"margin-right: 10px;"
v-if=
"scope.scope.auditStatus == 1"
>
<auth-button
:data=
"scope.scope"
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9062401']"
/>
:show-btn-ids=
"['9062401']"
/>
</span>
</span>
...
@@ -123,7 +124,7 @@ export default {
...
@@ -123,7 +124,7 @@ export default {
optionLabel
:
'confValue'
,
optionLabel
:
'confValue'
,
optionsName
:
'statusList'
optionsName
:
'statusList'
}],
}],
getListApi
:
withdrawOrderRecord
Page
,
getListApi
:
ruleAudit
Page
,
tableParams
:
{
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
listName
:
'list'
,
...
@@ -161,7 +162,7 @@ export default {
...
@@ -161,7 +162,7 @@ export default {
if
(
cellValue
.
effectDateType
==
2
)
{
if
(
cellValue
.
effectDateType
==
2
)
{
return
'立即生效'
return
'立即生效'
}
else
{
}
else
{
return
cellValue
.
effectStartDate
?
Util
.
dateFormate
(
cellValue
.
effectStartDate
,
'YYYY-MM-DD
HH:mm:ss
'
)
:
'--'
return
cellValue
.
effectStartDate
?
Util
.
dateFormate
(
cellValue
.
effectStartDate
,
'YYYY-MM-DD'
)
:
'--'
}
}
}
}
},
},
...
@@ -182,7 +183,7 @@ export default {
...
@@ -182,7 +183,7 @@ export default {
prop
:
'createdDate'
,
prop
:
'createdDate'
,
width
:
'150px'
,
width
:
'150px'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
createdDate
?
Util
.
dateFormate
(
cellValue
.
createdDate
,
'YYYY-MM-DD HH:mm
:ss
'
)
:
'--'
return
cellValue
.
createdDate
?
Util
.
dateFormate
(
cellValue
.
createdDate
,
'YYYY-MM-DD HH:mm'
)
:
'--'
}
}
},
},
{
{
...
@@ -194,7 +195,7 @@ export default {
...
@@ -194,7 +195,7 @@ export default {
prop
:
'auditDate'
,
prop
:
'auditDate'
,
width
:
'150px'
,
width
:
'150px'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
auditDate
?
Util
.
dateFormate
(
cellValue
.
auditDate
,
'YYYY-MM-DD HH:mm
:ss
'
)
:
'--'
return
cellValue
.
auditDate
?
Util
.
dateFormate
(
cellValue
.
auditDate
,
'YYYY-MM-DD HH:mm'
)
:
'--'
}
}
}
}
]
]
...
@@ -264,8 +265,8 @@ export default {
...
@@ -264,8 +265,8 @@ export default {
//审核
//审核
handleReview
(
row
)
{
handleReview
(
row
)
{
row
.
merchantId
=
44211847
//
row.merchantId = 44211847
row
.
scene
=
1
//
row.scene = 1
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"examineDetail"
,
name
:
"examineDetail"
,
...
...
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