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 2a1b0768
authored
Apr 29, 2026
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
驻店管理、关店管理接口联调
1 parent
c3bbcc3e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
235 additions
and
339 deletions
src/api/resident.js
src/api/salesManagement.js
src/views/residentManage/inStoreManage/components/assignStoreDialog.vue
src/views/residentManage/inStoreManage/components/disableAccountDialog.vue
src/views/residentManage/inStoreManage/components/editStaff.vue
src/views/residentManage/inStoreManage/components/syncBeiSenDialog.vue
src/views/residentManage/inStoreManage/index.vue
src/views/salesManagement/closeStore/components/CloseStoreDetailDialog.vue
src/views/salesManagement/closeStore/index.vue
src/views/salesManagement/components/CustomerDetailDialog.vue
src/views/salesManagement/customer/index.vue
src/api/resident.js
View file @
2a1b076
...
...
@@ -805,7 +805,7 @@ export function findAllSceneByMerchantIdApi(data = {}) {
}
export
function
assignStoreApi
(
data
=
{})
{
data
.
method
=
"j.api.smartcarlife.staffBaseInfo.account.merchant.assign"
;
data
.
method
=
"
d
j.api.smartcarlife.staffBaseInfo.account.merchant.assign"
;
return
request
(
data
,
"post"
);
}
//北森岗位
...
...
src/api/salesManagement.js
View file @
2a1b076
...
...
@@ -9,95 +9,101 @@
import
request
from
"./request"
;
// 分页查询潜客数据
export
function
potentialCustomersPage
(
data
)
{
export
function
potentialCustomersPage
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.sale.potentialCustomers.page"
;
return
request
(
data
,
"post"
);
}
// 潜客详情数据
export
function
potentialCustomersDetail
(
data
)
{
export
function
potentialCustomersDetail
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.sale.potentialCustomers.detail"
;
return
request
(
data
,
"post"
);
}
// 首次绑定/重新绑定4S店
export
function
bind4SStore
(
data
)
{
export
function
bind4SStore
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.sale.potentialCustomers.bind"
;
return
request
(
data
,
"post"
);
}
// 潜客信息核验提交(与新增商户字段一致;method 待后端确认后替换)
export
function
potentialCustomersInfoVerify
(
data
)
{
data
.
method
=
'dj.api.smartcarlife.sale.potentialCustomers.infoVerify'
return
request
(
data
,
"post"
)
export
function
potentialCustomersInfoVerify
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.sale.potentialCustomers.infoVerify"
;
return
request
(
data
,
"post"
)
;
}
// 分页查询大区
export
function
regionPage
(
data
)
{
export
function
regionPage
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.sale.region.page"
;
return
request
(
data
,
"post"
);
}
// 获取大区人员
export
function
regionUserList
(
data
)
{
export
function
regionUserList
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.sale.region.userList"
;
return
request
(
data
,
"post"
);
}
// 更新大区人员
export
function
updateRegionUser
(
data
)
{
export
function
updateRegionUser
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.sale.region.updateRegionUser"
;
return
request
(
data
,
"post"
);
}
// 区域运营模块接口
// 区域运营管理人员列表
export
function
organizationUserList
(
data
)
{
export
function
organizationUserList
(
data
)
{
data
.
method
=
"dj.api.script.province.organization.list"
;
return
request
(
data
,
"post"
);
}
// 区域运营管理编辑
export
function
organizationUserUpdate
(
data
)
{
export
function
organizationUserUpdate
(
data
)
{
data
.
method
=
"dj.api.script.province.organization.upd"
;
return
request
(
data
,
"post"
);
}
// 关店管理列表/rop-dj-smartcarlife/router/dj.api.smartcarlife.sale.closeStore.page
export
function
closeStorePage
(
data
)
{
export
function
closeStorePage
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.sale.closeStore.page"
;
return
request
(
data
,
"post"
);
}
//是否关店
export
function
closeStoreConfirm
(
data
)
{
export
function
closeStoreConfirm
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.sale.closeStore.confirm"
;
return
request
(
data
,
"post"
);
}
// 关店详情
export
function
closeStoreDetail
(
data
)
{
export
function
closeStoreDetail
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.sale.closeStore.detail"
;
return
request
(
data
,
"post"
);
}
// 关店操作记录
export
function
closeStoreOperateLogList
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.sale.closeStore.operateLog.list"
;
return
request
(
data
,
"post"
);
}
/**
* 分页查询门店上架审批单
*/
export
function
storeApprovePageQuery
(
data
)
{
export
function
storeApprovePageQuery
(
data
)
{
data
.
method
=
"dj.api.oaapproval.store.approve.pageQuery"
;
return
request
(
data
,
"post"
);
}
/**
*创建门店上架审批单(草稿)
*创建门店上架审批单(草稿)
*/
export
function
storeApproveCreateDraft
(
data
)
{
export
function
storeApproveCreateDraft
(
data
)
{
data
.
method
=
"dj.api.oaapproval.store.approve.createDraft"
;
return
request
(
data
,
"post"
);
}
/**
*查询门店上架审批单详情
*查询门店上架审批单详情
*/
export
function
storeApproveQueryDetail
(
data
)
{
export
function
storeApproveQueryDetail
(
data
)
{
data
.
method
=
"dj.api.oaapproval.store.approve.queryDetail"
;
return
request
(
data
,
"post"
);
}
...
...
@@ -106,15 +112,15 @@ export function storeApproveQueryDetail (data) {
* 编辑门店上架审批单
*/
export
function
storeApproveEditDraft
(
data
)
{
export
function
storeApproveEditDraft
(
data
)
{
data
.
method
=
"dj.api.oaapproval.store.approve.editDraft"
;
return
request
(
data
,
"post"
);
}
/**
*
*
* 重新发起审批单
*/
export
function
storeApproveReSubmit
(
data
)
{
export
function
storeApproveReSubmit
(
data
)
{
data
.
method
=
"dj.api.oaapproval.store.approve.reSubmit"
;
return
request
(
data
,
"post"
);
}
src/views/residentManage/inStoreManage/components/assignStoreDialog.vue
View file @
2a1b076
...
...
@@ -16,8 +16,8 @@
</div>
<el-form-item
label=
"入职门店:"
prop=
"merchantId"
>
<el-select
v-model=
"infoForm.merchantId"
placeholder=
"请选择入职门店"
style=
"width: 432px"
re
mote
reserve-keyword
filterable
:remote-method=
"remoteMethod"
@
change=
"changeMerchant"
>
<el-select
v-model=
"infoForm.merchantId"
placeholder=
"请选择入职门店"
style=
"width: 432px"
re
serve-keyword
filterable
@
change=
"changeMerchant"
>
<el-option
v-for=
"(item, index) in merchantList"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantId"
></el-option>
</el-select>
...
...
@@ -71,6 +71,7 @@ export default {
merchantId
:
""
,
merchantName
:
""
,
sceneCodeList
:
[],
yqMerchantList
:
[]
},
formRules
:
{
merchantId
:
[
...
...
@@ -96,25 +97,21 @@ export default {
},
},
mounted
()
{
// Initialize form with defaults if available
const
initialMerchantName
=
this
.
detail
.
merchantName
||
(
this
.
detail
.
merchantList
&&
this
.
detail
.
merchantList
.
length
>
0
?
this
.
detail
.
merchantList
[
0
].
merchantName
:
""
)
;
const
initialMerchantId
=
this
.
detail
.
merchantId
||
(
this
.
detail
.
merchantList
&&
this
.
detail
.
merchantList
.
length
>
0
?
this
.
detail
.
merchantList
[
0
].
merchantId
:
""
)
;
this
.
findAllMerchantPage
()
const
initialMerchantName
=
this
.
detail
.
staffBeisenBaseInfoDTO
?
this
.
detail
.
staffBeisenBaseInfoDTO
.
merchantName
:
""
;
const
initialMerchantId
=
this
.
detail
.
staffBeisenBaseInfoDTO
?
this
.
detail
.
staffBeisenBaseInfoDTO
.
merchantId
:
""
;
if
(
initialMerchantName
)
{
this
.
merchantList
=
[{
merchantId
:
initialMerchantId
,
merchantName
:
initialMerchantName
}];
this
.
infoForm
.
merchantId
=
initialMerchantId
;
this
.
infoForm
.
merchantName
=
initialMerchantName
;
this
.
getSceneList
(
initialMerchantId
);
}
else
{
this
.
remoteMethod
(
""
);
}
},
methods
:
{
remoteMethod
(
query
)
{
findAllMerchantPage
(
query
)
{
const
params
=
{
currentPage
:
1
,
pageSize
:
50
,
merchantName
:
query
||
""
,
pageSize
:
99999
};
findAllMerchantPageApi
(
params
).
then
((
res
)
=>
{
this
.
merchantList
=
res
.
list
||
[];
...
...
@@ -123,6 +120,7 @@ export default {
changeMerchant
(
val
)
{
const
selected
=
this
.
merchantList
.
find
((
item
)
=>
item
.
merchantId
===
val
);
this
.
infoForm
.
merchantName
=
selected
?
selected
.
merchantName
:
""
;
this
.
infoForm
.
merchantId
=
selected
?
selected
.
merchantId
:
""
;
this
.
infoForm
.
sceneCodeList
=
[];
this
.
sceneOptionList
=
[];
this
.
updateRelatedYqMerchantNames
();
...
...
@@ -142,15 +140,23 @@ export default {
const
selectedScenes
=
this
.
sceneOptionList
.
filter
(
item
=>
this
.
infoForm
.
sceneCodeList
.
includes
(
item
.
baseSceneCode
)
);
const
names
=
[];
const
yqMerchantList
=
[];
this
.
infoForm
.
yqMerchantList
=
[];
selectedScenes
.
forEach
(
scene
=>
{
if
(
scene
.
yqMerchant
&&
scene
.
yqMerchant
.
merchantName
)
{
if
(
!
names
.
includes
(
scene
.
yqMerchant
.
merchantName
))
{
names
.
push
(
scene
.
yqMerchant
.
merchantName
);
}
if
(
scene
.
serviceList
&&
scene
.
serviceList
.
length
>
0
)
{
yqMerchantList
.
push
(...
scene
.
serviceList
);
}
});
this
.
relatedYqMerchantNames
=
names
.
join
(
","
);
//过滤重复的商家
yqMerchantList
.
forEach
(
item
=>
{
if
(
!
this
.
infoForm
.
yqMerchantList
.
some
(
yqMerchant
=>
yqMerchant
.
yqMerchantId
===
item
.
merchantId
))
{
this
.
infoForm
.
yqMerchantList
.
push
({
yqMerchantName
:
item
.
merchantName
,
yqMerchantId
:
item
.
merchantId
});
}
});
this
.
relatedYqMerchantNames
=
this
.
infoForm
.
yqMerchantList
.
map
(
item
=>
item
.
yqMerchantName
).
join
(
","
);
},
handleAddConfirm
()
{
this
.
$refs
.
editFormRef
.
validate
((
valid
)
=>
{
...
...
@@ -162,11 +168,7 @@ export default {
const
sceneList
=
selectedScenes
.
map
(
scene
=>
{
return
{
baseSceneCode
:
scene
.
baseSceneCode
,
sceneType
:
scene
.
sceneType
,
yqMerchantList
:
scene
.
yqMerchant
?
[{
yqMerchantName
:
scene
.
yqMerchant
.
merchantName
,
yqMerchantId
:
scene
.
yqMerchant
.
merchantId
}]
:
[]
sceneType
:
scene
.
sceneType
};
});
...
...
@@ -174,8 +176,9 @@ export default {
staffId
:
this
.
detail
.
staffId
||
this
.
detail
.
id
,
merchantName
:
this
.
infoForm
.
merchantName
,
merchantId
:
this
.
infoForm
.
merchantId
,
sceneList
:
sceneList
};
sceneList
:
sceneList
,
yqMerchantList
:
this
.
infoForm
.
yqMerchantList
}
assignStoreApi
(
params
).
then
(()
=>
{
this
.
$message
.
success
(
"分配门店成功"
);
...
...
src/views/residentManage/inStoreManage/components/disableAccountDialog.vue
View file @
2a1b076
<!-- 禁用账号弹窗 -->
<
template
>
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
@
handleClick=
"confirmDisable"
:config=
"baseDialogConfig"
>
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
@
handleClick=
"confirmDisable"
:config=
"baseDialogConfig"
>
<div
class=
"disable-dialog-content"
>
<div
style=
"background: #f8f8f8; padding: 15px; border-radius: 4px; margin-bottom: 20px;"
>
<div
style=
"font-weight: bold; margin-bottom: 10px; color: #333; font-size: 14px;"
>
基本信息
</div>
...
...
@@ -20,7 +21,8 @@
</div>
<div
style=
"display: flex; align-items: flex-start;"
>
<i
class=
"el-icon-warning"
style=
"color: #ff9900; font-size: 24px; margin-right: 12px; margin-top: 2px;"
></i>
<i
class=
"el-icon-warning"
style=
"color: #ff9900; font-size: 24px; margin-right: 12px; margin-top: 2px;"
></i>
<div>
<div
style=
"font-size: 16px; font-weight: bold; color: #333; margin-bottom: 8px;"
>
确认禁用该员工的门店账号?
</div>
<div
style=
"font-size: 14px; color: #999;"
>
禁用后,该账号将无法登录业务端开展业务。
</div>
...
...
@@ -72,8 +74,11 @@ export default {
},
baseDialogConfig
()
{
return
{
confirmText
:
"禁用"
,
cancelText
:
"取消"
,
showClose
:
true
,
appendToBody
:
false
,
// 是否将自身插入至 body 元素,有嵌套的弹窗时一定要设置
isShowFooter
:
true
,
cancel_name
:
"取 消"
,
confirm_name
:
"禁用"
,
}
},
merchantName
()
{
...
...
src/views/residentManage/inStoreManage/components/editStaff.vue
View file @
2a1b076
...
...
@@ -17,7 +17,8 @@
</div>
<div
class=
"info-item flex"
>
<label>
岗位:
</label>
<span>
{{
detail
.
jobType
||
"-"
}}
</span>
<span>
{{
detail
.
staffBeisenBaseInfoDTO
?
detail
.
staffBeisenBaseInfoDTO
.
oidJobPost
||
'-'
:
"-"
}}
</span>
</div>
<!--
<div
class=
"info-item flex"
>
<label>
适配业务:
</label>
...
...
@@ -207,7 +208,7 @@
<!-- N:未删除;I:禁用 -->
<el-switch
v-model=
"scope.scope.deletedFlag"
active-value=
"N"
inactive-value=
"I"
@
change=
"(e) => switchChange(scope.scope)"
></el-switch>
<span>
{{
scope
.
scope
.
deletedFlag
===
'
I
'
?
'禁用账号'
:
'启用账号'
}}
</span>
<span>
{{
scope
.
scope
.
deletedFlag
===
'
N
'
?
'禁用账号'
:
'启用账号'
}}
</span>
</
template
>
</d2-table>
...
...
@@ -668,16 +669,16 @@
</el-form>
<!-- 分配门店 -->
<AssignStoreDialog
v-if=
"allocateStoreVisible"
:visibleSync
.
sync=
"allocateStoreVisible"
:detail=
"detail"
:
jobTypeList=
"jobTypeList"
@
dialogClos
e=
"closeAllocateStoreDialog"
>
<AssignStoreDialog
v-if=
"allocateStoreVisible"
:visibleSync
.
sync=
"allocateStoreVisible"
:
detail=
"{ ...detail, staffId: queryData.id }"
@
refreshTabl
e=
"closeAllocateStoreDialog"
>
</AssignStoreDialog>
<!-- 分配门店 -->
<!-- <allocate-store-dialog :allocate-store-visible="allocateStoreVisible" :detail="detail" :jobTypeList="jobTypeList"
v-if="allocateStoreVisible" @dialogClose="closeAllocateStoreDialog"></allocate-store-dialog> -->
<!-- 北森同步 -->
<sync-bei-sen-dialog
:sync-bei-sen-visible=
"syncBeiSenVisible"
:detail=
"detail"
v-if=
"syncBeiSenVisible
"
@
dialogClose=
"closeSyncBeiSenDialog"
@
refreshDetail=
"getDetail"
></sync-bei-sen-dialog>
<sync-bei-sen-dialog
:sync-bei-sen-visible=
"syncBeiSenVisible"
:detail=
"detail"
:satffId=
"queryData.id
"
v-if=
"syncBeiSenVisible"
@
dialogClose=
"closeSyncBeiSenDialog"
@
refreshDetail=
"getDetail"
></sync-bei-sen-dialog>
<!-- 禁用账号二次确认弹窗 -->
<disable-account-dialog
:disable-dialog-visible=
"disableDialogVisible"
:current-row=
"currentDisableRow"
...
...
@@ -843,13 +844,7 @@ export default {
{
label
:
"适配业务"
,
prop
:
"staffSceneLabel"
,
formatter
:
(
row
)
=>
{
return
this
.
filterStr
(
row
.
staffSceneLabel
,
this
.
staffSceneLabelList
);
},
prop
:
"accountSceneStr"
},
{
label
:
"开通时间"
,
...
...
@@ -1303,23 +1298,24 @@ export default {
},
switchChange
(
row
)
{
this
.
currentDisableRow
=
row
;
this
.
disableDialogVisible
=
true
;
// N启用状态==》禁止二次弹窗
// if (row.deletedFlag === 'N') {
// // 当切换到禁用时,弹出自定义确认框
// this.currentDisableRow = row;
// this.disableDialogVisible = true;
// } else {
if
(
row
.
deletedFlag
===
'I'
)
{
// 当切换到禁用时,弹出自定义确认框
//添加阻止switch 切换状态
row
.
deletedFlag
=
'N'
;
this
.
currentDisableRow
=
row
;
this
.
disableDialogVisible
=
true
;
}
else
{
//
// 当切换到启用时,直接调用接口
//
beiSenEmployeeDisableApi({ accountId: row.id }).then(() => {
//
this.$message.success('账号已启用');
//
this.getDetail();
//
}).catch(() => {
//
row.deletedFlag = 'I'; // 恢复状态
//
});
//
}
// 当切换到启用时,直接调用接口
beiSenEmployeeDisableApi
({
accountId
:
row
.
id
}).
then
(()
=>
{
this
.
$message
.
success
(
'账号已启用'
);
this
.
getDetail
();
}).
catch
(()
=>
{
row
.
deletedFlag
=
'I'
;
// 恢复状态
});
}
},
closeDisableDialog
()
{
...
...
@@ -1578,13 +1574,13 @@ export default {
// 分配门店
handleAllocateStore
()
{
this
.
closeAllocateStoreDialog
()
;
this
.
allocateStoreVisible
=
!
this
.
allocateStoreVisible
;
},
closeAllocateStoreDialog
(
e
)
{
if
(
e
?.
flag
)
{
this
.
getDetail
();
}
this
.
getDetail
();
this
.
allocateStoreVisible
=
!
this
.
allocateStoreVisible
;
},
...
...
@@ -1627,24 +1623,7 @@ export default {
entryTime
:
new
Date
(
this
.
detail
.
entryTime
),
hireType
:
this
.
detail
.
hireType
||
this
.
detail
.
hireType
,
jobType
:
this
.
detail
.
jobType
==
this
.
detail
.
levelType
?
!
this
.
isEmpty
(
this
.
detail
.
nextMonthJobType
)
?
this
.
detail
.
nextMonthJobType
:
this
.
detail
.
jobType
:
this
.
detail
.
levelType
,
workingStatus
:
this
.
detail
.
workingStatus
,
mentorName
:
this
.
detail
.
mentorPhone
?
this
.
mentorPhoneList
?.
find
(
(
item
)
=>
item
.
confId
==
this
.
detail
.
mentorPhone
)?.
confValue
||
this
.
detail
.
mentorName
:
""
,
titleType
:
this
.
detail
.
titleType
,
mentorPhone
:
this
.
detail
.
mentorPhone
,
// basicSalary:
// this.detail.basicSalary == this.detail.baseSalary
// ? !this.isEmpty(this.detail.nextMonthBasicSalary)
...
...
src/views/residentManage/inStoreManage/components/syncBeiSenDialog.vue
View file @
2a1b076
...
...
@@ -3,21 +3,19 @@
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
@
handleClick=
"submitSyncBeiSen"
:config=
"baseDialogConfig"
>
<div
class=
"sync-beisen-dialog"
>
<div
style=
"display: flex; gap: 10px; margin-bottom: 20px;
"
>
<el-input
v-model=
"syncSearchForm.staffName"
placeholder=
"请输入姓名"
style=
"width: 200px
"
clearable
></el-input>
<el-input
v-model=
"syncSearchForm.mobilePhone"
placeholder=
"请输入手机号"
style=
"width: 200px
"
<div
class=
"search-container
"
>
<el-input
v-model=
"syncSearchForm.staffName"
placeholder=
"请输入姓名"
class=
"search-input
"
clearable
></el-input>
<el-input
v-model=
"syncSearchForm.mobilePhone"
placeholder=
"请输入手机号"
class=
"search-input
"
clearable
></el-input>
<el-button
type=
"primary"
@
click=
"handleSyncSearch"
>
查询
</el-button>
</div>
<div
v-loading=
"syncLoading"
style=
"min-height: 100px; max-height: 400px; overflow-y: auto; padding: 10px; border: 1px solid #EBEEF5; border-radius: 4px;"
>
<div
v-if=
"!syncResultList.length"
style=
"text-align: center; color: #909399; margin-top: 40px;"
>
<i
class=
"el-icon-document"
style=
"font-size: 40px; margin-bottom: 10px; display: block;"
></i>
未查询到匹配的北森员工数据
<div
v-loading=
"syncLoading"
class=
"result-container"
>
<div
v-if=
"!syncResultList.length"
class=
"empty-state"
>
<img
src=
"@/assets/empty.png"
alt=
""
class=
"empty-img"
>
<span
class=
"empty-text"
>
未查询到匹配的北森员工数据
</span>
</div>
<el-radio-group
v-else
v-model=
"selectedBeiSenUserId"
style=
"display: flex; flex-direction: column; gap: 15px;"
>
<el-radio-group
v-else
v-model=
"selectedBeiSenUserId"
class=
"radio-group-list"
>
<el-radio
v-for=
"item in syncResultList"
:key=
"item.userID"
:label=
"item.userID"
>
{{
item
.
name
}}
|
{{
item
.
mobilePhone
}}
</el-radio>
...
...
@@ -37,10 +35,10 @@ export default {
type
:
Boolean
,
default
:
false
,
},
detail
:
{
type
:
Object
,
default
:
()
=>
({})
,
}
,
satffId
:
{
type
:
Number
,
default
:
0
,
}
},
data
()
{
return
{
...
...
@@ -102,9 +100,12 @@ export default {
});
},
submitSyncBeiSen
()
{
if
(
!
this
.
selectedBeiSenUserId
)
return
;
if
(
!
this
.
selectedBeiSenUserId
)
{
this
.
$message
.
warning
(
"请选择北森员工"
);
return
;
}
const
params
=
{
staffId
:
this
.
detail
.
id
,
// detail is fetched from staffBaseInfoPageList/getDetail, usually has id
staffId
:
this
.
satffId
,
beiSenUserID
:
this
.
selectedBeiSenUserId
};
beiSenEmployeeSingleSyncApi
(
params
).
then
(()
=>
{
...
...
@@ -117,8 +118,51 @@ export default {
};
</
script
>
<
style
scoped
>
<
style
scoped
lang=
"scss"
>
.sync-beisen-dialog
{
padding
:
0
20px
;
}
.search-container
{
display
:
flex
;
gap
:
10px
;
margin-bottom
:
20px
;
}
.search-input
{
width
:
200px
;
}
.result-container
{
background-color
:
#F5F7FA
;
min-height
:
100px
;
max-height
:
400px
;
overflow-y
:
auto
;
padding
:
16px
;
border
:
1px
solid
#ECEEF5
;
border-radius
:
4px
;
}
.empty-state
{
margin-top
:
40px
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
}
.empty-img
{
width
:
64px
;
margin-bottom
:
10px
;
display
:
block
;
}
.empty-text
{
color
:
#999999
;
}
.radio-group-list
{
display
:
flex
;
flex-direction
:
column
;
gap
:
15px
;
}
</
style
>
src/views/residentManage/inStoreManage/index.vue
View file @
2a1b076
<!--
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2026-02-04 10:27:58
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2026-04-27 15:43:24
* @FilePath: \dj-car-life-system\src\views\residentManage\inStoreManage\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!-- 驻店管理 - 列表 -->
<
template
>
<div>
...
...
@@ -28,7 +21,10 @@
<d2-table-header>
<
template
#
left
>
<span
class=
"left"
>
<auth-button
category=
"Button"
:show-btn-ids=
"['9120506']"
/>
<span
class=
"tips_text"
>
仅展示「深圳嘀加」服务商的驻店员工,以及「广联数科」商户下员工
</span>
<!--
<auth-button
category=
"Button"
:show-btn-ids=
"['9120506']"
/>
-->
</span>
</
template
>
<span
style=
"display: inline-block; margin-right: 10px"
>
...
...
@@ -52,9 +48,7 @@
</span>
<auth-button
category=
"Button"
:show-btn-ids=
"['9120507']"
/>
</d2-table-header>
<span
class=
"tips_text"
>
仅展示「深圳嘀加」服务商的驻店员工,以及「广联数科」商户下员工
</span>
<d2-table
ref=
"recordTable"
:before-search-fn=
"beforeSearchFn"
class=
"inStoreTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
>
<
template
#
auth-button=
"scope"
>
...
...
@@ -62,7 +56,7 @@
<!--
<auth-button
:data=
"scope.scope"
/>
-->
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9120505']"
/>
<!-- 待激活 -->
<span
style=
"margin-left:10px;"
>
<span
style=
"margin-left:10px;"
v-if=
"scope.scope.workingStatus == 2"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9120516']"
/>
</span>
...
...
@@ -149,10 +143,9 @@ export default {
searchForm
:
{
staffName
:
""
,
staffPhone
:
""
,
staffSceneLabel
:
""
,
baseSceneCode
:
""
,
merchantName
:
""
,
hireType
:
""
,
jobType
:
""
,
oIdJobPostId
:
""
,
workingStatus
:
""
,
createdSource
:
""
,
directLeaderPhones
:
[],
...
...
@@ -187,7 +180,7 @@ export default {
},
{
label
:
"适配业务"
,
name
:
"
staffSceneLabel
"
,
name
:
"
baseSceneCode
"
,
type
:
"select"
,
isClear
:
true
,
optionList
:
[],
...
...
@@ -201,24 +194,14 @@ export default {
type
:
"input"
,
isClear
:
true
,
},
// {
// label: "招聘通道",
// name: "hireType",
// type: "select",
// isClear: true,
// optionList: [],
// optionId: "confId",
// optionLabel: "confValue",
// optionsName: "hireTypeList",
// },
{
label
:
"岗位"
,
name
:
"
jobType
"
,
name
:
"
oIdJobPostId
"
,
type
:
"select"
,
isClear
:
true
,
optionList
:
[],
optionId
:
"
confI
d"
,
optionLabel
:
"
confValu
e"
,
optionId
:
"
oi
d"
,
optionLabel
:
"
nam
e"
,
optionsName
:
"jobTypeList"
,
},
...
...
@@ -278,10 +261,10 @@ export default {
},
{
label
:
"适配业务"
,
prop
:
"
staffSceneLabel
"
,
prop
:
"
accountSceneStr
"
,
width
:
"160px"
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
staffSceneLabel
||
"-"
;
return
cellValue
.
accountSceneStr
||
"-"
;
},
},
{
...
...
@@ -304,23 +287,16 @@ export default {
},
{
label
:
"岗位"
,
prop
:
"jobType"
,
formatter
:
(
cellValue
)
=>
{
// return filterStr(
// cellValue.jobType,
// this.baseData.jobTypeList,
// cellValue.hireType,
// );
},
prop
:
"oidJobPost"
},
{
label
:
"渠道"
,
prop
:
"createdSource"
,
formatter
:
(
cellValue
)
=>
{
//
return filterStr(
//
cellValue.createdSource,
//
this.baseData.createdSourceList,
//
);
return
filterStr
(
cellValue
.
createdSource
,
this
.
baseData
.
createdSourceList
,
);
},
},
...
...
@@ -363,7 +339,7 @@ export default {
prop
:
"workingStatus"
,
width
:
"120px"
,
formatter
:
(
cellValue
)
=>
{
return
(
this
.
baseData
.
workingStatusList
.
find
(
item
=>
item
.
confId
==
=
cellValue
.
workingStatus
)
||
{}).
confValue
||
"-"
;
return
(
this
.
baseData
.
workingStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
workingStatus
)
||
{}).
confValue
||
"-"
;
},
...
...
@@ -395,12 +371,16 @@ export default {
],
createdSourceList
:
[
{
confId
:
"1"
,
confValue
:
"账户中心"
},
{
confId
:
"2"
,
confValue
:
"SCRM"
},
{
confId
:
"3"
,
confValue
:
"生意助手"
},
{
confId
:
"4"
,
confValue
:
"门店助手"
},
{
confId
:
"5"
,
confValue
:
"服务商SAAS"
},
{
confId
:
"6"
,
confValue
:
"D+"
},
{
confId
:
"7"
,
confValue
:
"员工版小程序"
},
{
confId
:
"8"
,
confValue
:
"北森同步"
},
// { confId: "2", confValue: "SCRM" },
// { confId: "4", confValue: "门店助手" },
// { confId: "6", confValue: "D+" },
// { confId: "7", confValue: "员工版小程序" },
],
commissionList
:
[],
},
...
...
@@ -485,15 +465,18 @@ export default {
getLeaderList
(),
getCommissionListApi
(),
getStaffSceneLabelList
(),
beiSenJobPostPageApi
()
beiSenJobPostPageApi
({
pageNum
:
1
,
paseSize
:
99999
})
]);
console
.
log
(
jobTypeList
,
'jobTypeList'
)
// 上级领导列表查询
this
.
baseData
.
directLeaderList
=
directLeaderList
;
// 工资绩效
this
.
baseData
.
commissionList
=
[{
staffName
:
"全部"
,
staffPhone
:
"all"
}].
concat
(
commissionList
);
this
.
baseData
.
staffSceneLabelList
=
staffSceneLabelList
;
this
.
baseData
.
jobTypeList
=
jobTypeList
;
this
.
baseData
.
jobTypeList
=
jobTypeList
.
list
;
getOptionsList
(
this
,
"showFormData"
,
true
);
getOptionsList
(
this
,
"showFormData"
,
false
,
"directLeaderPhones"
);
getOptionsList
(
this
,
"showFormData"
,
false
,
"commissionList"
);
...
...
@@ -555,10 +538,9 @@ export default {
staffName
:
""
,
salaryStaffPhone
:
""
,
staffPhone
:
""
,
staffSceneLabel
:
""
,
baseSceneCode
:
""
,
merchantName
:
""
,
hireType
:
""
,
jobType
:
""
,
oIdJobPostId
:
""
,
workingStatus
:
""
,
createdSource
:
""
,
directLeaderPhones
:
[],
...
...
src/views/salesManagement/closeStore/components/CloseStoreDetailDialog.vue
View file @
2a1b076
...
...
@@ -20,7 +20,7 @@
</div>
<!-- 关店风险 -->
<div
class=
"section-header mt-20"
>
<div
class=
"section-header mt-20"
v-if=
"detailInfo.hitRuleTypeName"
>
<span
class=
"section-title"
>
关店风险
</span>
</div>
<div
class=
"section-body"
>
...
...
@@ -38,8 +38,8 @@
<div
class=
"section-body"
>
<div
class=
"record-list"
>
<div
class=
"record-item"
v-for=
"(item, index) in recordList"
:key=
"index"
>
<div
class=
"record-col"
>
操作人:
<span
class=
"record-val"
>
{{
item
.
confirm
edByName
||
'-'
}}
</span></div>
<div
class=
"record-col"
>
操作时间:
<span
class=
"record-val"
>
{{
item
.
close
Time
||
'-'
}}
</span></div>
<div
class=
"record-col"
>
操作人:
<span
class=
"record-val"
>
{{
item
.
operat
edByName
||
'-'
}}
</span></div>
<div
class=
"record-col"
>
操作时间:
<span
class=
"record-val"
>
{{
item
.
operated
Time
||
'-'
}}
</span></div>
<div
class=
"record-col"
>
关店原因:
<span
class=
"record-val"
>
{{
getReasonText
(
item
)
}}
</span></div>
</div>
</div>
...
...
@@ -56,7 +56,7 @@
</template>
<
script
>
import
{
closeStoreDetail
}
from
'@api/salesManagement'
import
{
closeStoreDetail
,
closeStoreOperateLogList
}
from
'@api/salesManagement'
import
{
busTypeOpt
,
cooperModeOpt
}
from
'../../constant/baseData'
export
default
{
...
...
@@ -100,52 +100,40 @@ export default {
},
{
label
:
'业务类型'
,
name
:
'businessType
List
'
,
name
:
'businessType
s
'
,
type
:
'showTxt'
,
style
:
editItemStyle
,
txtStyle
:
contentStyle
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
businessTypeList
?
cellValue
.
businessTypeList
.
map
(
item
=>
busTypeOpt
.
find
(
opt
=>
opt
.
confId
==
item
.
businessType
)?.
confLabel
||
''
).
join
(
','
)
:
'-'
}
},
{
label
:
'合作模式'
,
name
:
'cooperationMode'
,
name
:
'cooperationMode
Name
'
,
type
:
'showTxt'
,
style
:
editItemStyle
,
txtStyle
:
contentStyle
,
formatter
:
(
cellValue
)
=>
{
return
cooperModeOpt
.
find
(
opt
=>
opt
.
confId
==
cellValue
.
cooperationMode
)?.
confLabel
||
'-'
}
txtStyle
:
contentStyle
},
{
label
:
'主营品牌'
,
name
:
'
brandList
'
,
name
:
'
mainBrands
'
,
type
:
'showTxt'
,
style
:
editItemStyle
,
txtStyle
:
contentStyle
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
brandList
?
cellValue
.
brandList
.
map
(
item
=>
item
.
subBrandName
).
join
(
','
)
:
'-'
}
txtStyle
:
contentStyle
},
{
label
:
'关联商户'
,
name
:
'
merchantName
'
,
name
:
'
relatedMerchant
'
,
type
:
'showTxt'
,
style
:
editItemStyle
,
txtStyle
:
contentStyle
,
formatter
:
(
cellValue
)
=>
{
return
((
cellValue
.
merchantName
||
''
)
+
(
cellValue
.
merchantId
?
(
'('
+
cellValue
.
merchantId
+
')'
)
:
''
))
||
'-'
}
txtStyle
:
contentStyle
},
{
label
:
'所在地区'
,
name
:
'area'
,
name
:
'area
Name
'
,
type
:
'showTxt'
,
style
:
editItemStyle
,
txtStyle
:
contentStyle
,
formatter
:
(
cellValue
)
=>
{
return
(
cellValue
.
province
Name
||
''
)
+
(
cellValue
.
city
||
''
)
+
(
cellValue
.
districtName
||
''
)
||
'-'
return
(
cellValue
.
area
Name
||
''
)
+
(
cellValue
.
city
||
''
)
+
(
cellValue
.
districtName
||
''
)
||
'-'
}
},
{
...
...
@@ -161,6 +149,7 @@ export default {
computed
:
{
visible
:
{
get
()
{
return
this
.
dialogVisible
},
set
(
val
)
{
...
...
@@ -168,14 +157,15 @@ export default {
}
}
},
watch
:
{
dialogVisible
(
val
)
{
if
(
val
&&
this
.
recordInfo
)
{
this
.
getDetail
()
}
mounted
()
{
if
(
this
.
visible
)
{
this
.
getDetail
()
this
.
closeStoreOperateLogList
()
}
},
methods
:
{
handleClose
()
{
this
.
visible
=
false
},
...
...
@@ -187,21 +177,18 @@ export default {
this
.
loading
=
false
if
(
res
)
{
this
.
detailInfo
=
{
...
this
.
detailInfo
,
...
res
}
this
.
recordList
=
res
.
recordList
||
[]
if
(
this
.
recordList
.
length
===
0
&&
this
.
detailInfo
.
status
===
3
)
{
this
.
recordList
.
push
({
confirmedByName
:
this
.
detailInfo
.
confirmedByName
||
this
.
detailInfo
.
followUpPersonName
,
closeTime
:
this
.
detailInfo
.
closeTime
,
confirmReason
:
this
.
detailInfo
.
confirmReason
,
confirmRemark
:
this
.
detailInfo
.
confirmRemark
})
}
}
}).
catch
(()
=>
{
this
.
loading
=
false
})
},
closeStoreOperateLogList
()
{
closeStoreOperateLogList
({
id
:
this
.
recordInfo
.
id
}).
then
(
res
=>
{
if
(
res
)
{
this
.
recordList
=
res
||
[]
}
})
},
getReasonText
(
item
)
{
if
(
!
item
.
confirmReason
)
return
'-'
;
if
(
item
.
confirmReason
===
'其他'
)
{
...
...
@@ -280,13 +267,13 @@ export default {
.risk-alert
{
display
:
flex
;
align-items
:
center
;
background-color
:
#
fff8f0
;
background-color
:
#
FEF4E8
;
border-radius
:
4px
;
padding
:
1
2px
16
px
;
padding
:
1
6px
20
px
;
.risk-icon
{
color
:
#ff9900
;
font-size
:
18
px
;
font-size
:
20
px
;
margin-right
:
10px
;
}
...
...
src/views/salesManagement/closeStore/index.vue
View file @
2a1b076
This diff is collapsed.
Click to expand it.
src/views/salesManagement/components/CustomerDetailDialog.vue
View file @
2a1b076
This diff is collapsed.
Click to expand it.
src/views/salesManagement/customer/index.vue
View file @
2a1b076
...
...
@@ -38,16 +38,9 @@
</div>
<div
slot=
"auth-button"
slot-scope=
"scope"
width=
"400"
>
<!-- 首次绑定 / 重新绑定 -->
<span
v-if=
"[4].includes(scope.scope.potentialCustomersStatus) || ([3].includes(scope.scope.potentialCustomersStatus) && scope.scope.isBind == '1')"
style=
"margin-right: 10px"
>
<span
v-if=
"[3, 4].includes(scope.scope.potentialCustomersStatus)"
style=
"margin-right: 10px"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9210102']"
/>
</span>
<!-- 信息核验 -->
<span
v-if=
"([3].includes(scope.scope.potentialCustomersStatus) && scope.scope.isBind == '0')"
style=
"margin-right: 10px"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9210104']"
/>
</span>
<!-- 详情 -->
<span>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9210103']"
/>
...
...
@@ -60,38 +53,6 @@
<customer-detail-dialog
:detail-visible=
"detailVisible"
:record-info=
"recordInfo"
v-if=
"detailVisible"
@
dialogClose=
"dialogClose"
/>
<!-- 首次绑定 / 重新绑定 -->
<info-verify-merchant-dialog
:visible
.
sync=
"infoVerifyVisible"
:customer-row=
"infoVerifyRow"
:submit-api=
"infoVerifySubmit"
:merchant-type-labels=
"['4S店']"
@
success=
"handleSearch"
>
<template
#
storeDetail=
"
{ customerRow }">
<div
v-if=
"customerRow && customerRow.id"
class=
"info-verify-store-detail"
>
<div
class=
"info-verify-store-detail__title"
>
门店详情
</div>
<div
class=
"info-verify-store-detail__grid"
>
<div
class=
"info-verify-store-detail__row"
>
<span
class=
"info-verify-store-detail__label"
>
门店名称
</span>
<span
class=
"info-verify-store-detail__value"
>
{{
customerRow
.
storeName
||
'-'
}}
</span>
</div>
<div
class=
"info-verify-store-detail__row"
>
<span
class=
"info-verify-store-detail__label"
>
所在地区
</span>
<span
class=
"info-verify-store-detail__value"
>
{{
[
customerRow
.
provinceName
,
customerRow
.
city
].
filter
(
Boolean
).
join
(
' '
)
||
'-'
}}
</span>
</div>
<div
class=
"info-verify-store-detail__row info-verify-store-detail__row--full"
>
<span
class=
"info-verify-store-detail__label"
>
详细地址
</span>
<span
class=
"info-verify-store-detail__value"
>
{{
customerRow
.
address
||
'-'
}}
</span>
</div>
</div>
</div>
</
template
>
</info-verify-merchant-dialog>
<glsk-form-dialog
v-if=
"editVisible"
:selectVisible=
"editVisible"
:dialogConfig=
"editDialogConfig"
label-width=
"104px"
dialog-width=
"520px"
:formRules=
"editRules"
:editData=
"editData"
:editFormData=
"editFormData"
:slotArr=
"slotArr"
:base-data=
"baseData"
@
handleClose=
"editVisible = false"
@
handleConfirm=
"handleEditConfirm"
>
...
...
@@ -113,9 +74,8 @@
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
busTypeOpt
,
cooperModeOpt
,
flowSituateOpt
,
potentialCustomerOpt
}
from
'../constant/baseData'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
potentialCustomersPage
,
regionUserList
,
bind4SStore
,
potentialCustomersInfoVerify
}
from
'@api/salesManagement'
import
{
potentialCustomersPage
,
regionUserList
,
bind4SStore
}
from
'@api/salesManagement'
import
CustomerDetailDialog
from
'../components/CustomerDetailDialog.vue'
import
InfoVerifyMerchantDialog
from
'@/components/merchantVerify/InfoVerifyMerchantDialog.vue'
import
{
getList
}
from
"@api/merchant"
// import { tmplTypeList } from "../constant/baseData"
import
{
getDistrictDetail
,
getBrandList
}
from
"@/api/shopConfig.js"
...
...
@@ -140,6 +100,10 @@ export default {
name
:
"3"
},
{
label
:
'已绑定'
,
name
:
"4"
},
{
label
:
'未签约'
,
name
:
"2"
}
...
...
@@ -155,10 +119,7 @@ export default {
flowSituation
:
''
,
salesPersonId
:
''
,
signedDate
:
''
,
expectedDate
:
''
,
isBind
:
''
,
merchantName
:
''
,
storeName
:
''
expectedDate
:
''
},
searchFormSearch
:
{},
showFormData
:
[{
...
...
@@ -262,28 +223,14 @@ export default {
type
:
'datePicker'
,
// pickerOptions: 'rangePickerOptions',
isClear
:
true
},
{
label
:
'信息核验'
,
name
:
'isBind'
,
type
:
'select'
,
optionList
:
[
{
value
:
''
,
label
:
'全部'
},
{
value
:
'1'
,
label
:
'是'
},
{
value
:
'0'
,
label
:
'否'
}
],
optionId
:
'value'
,
optionLabel
:
'label'
,
isClear
:
true
},
{
},
{
label
:
'门店名称'
,
name
:
'storeName'
,
type
:
'input'
,
maxlength
:
'50'
,
isClear
:
true
},
{
label
:
'
商户名称
'
,
label
:
'
关联商户
'
,
name
:
'merchantName'
,
type
:
'input'
,
maxlength
:
'50'
,
...
...
@@ -389,14 +336,6 @@ export default {
4
:
"greenSpot"
}[
cellValue
.
potentialCustomersStatus
]
}
},
{
label
:
'信息核验'
,
prop
:
'isBind'
,
formatter
:
(
cellValue
)
=>
{
if
(
cellValue
.
isBind
===
1
)
return
'是'
if
(
cellValue
.
isBind
===
0
)
return
'否'
return
'-'
}
}]
},
baseData
:
{
...
...
@@ -469,11 +408,7 @@ export default {
},
// 详情
detailVisible
:
false
,
recordInfo
:
null
,
// 信息核验(提交函数由 API 模块导入,便于替换为后端最终契约)
infoVerifyVisible
:
false
,
infoVerifyRow
:
null
,
infoVerifySubmit
:
potentialCustomersInfoVerify
recordInfo
:
null
}
},
computed
:
{
...
...
@@ -483,8 +418,7 @@ export default {
},
components
:
{
CustomerDetailDialog
,
InfoVerifyMerchantDialog
CustomerDetailDialog
},
directives
:
{
"el-select-loadmore"
:
{
...
...
@@ -558,10 +492,7 @@ export default {
apiFinish
()
{
this
.
tableLoading
=
false
},
handleInfoCheck
(
row
=
{})
{
this
.
infoVerifyRow
=
row
this
.
infoVerifyVisible
=
true
},
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
...
...
@@ -724,10 +655,7 @@ export default {
flowSituation
:
''
,
salesPersonId
:
''
,
signedDate
:
''
,
expectedDate
:
''
,
isBind
:
''
,
storeName
:
''
,
merchantName
:
''
,
expectedDate
:
''
}
this
.
baseData
.
cityList
=
[]
const
cityIdx
=
this
.
showFormData
.
findIndex
((
item
)
=>
item
.
name
==
'cityId'
)
...
...
@@ -818,42 +746,4 @@ export default {
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
}
.info-verify-store-detail
{
margin-bottom
:
16px
;
padding
:
12px
14px
;
background
:
#f7f8fa
;
border-radius
:
6px
;
border
:
1px
solid
#ebeef5
;
}
.info-verify-store-detail__title
{
font-size
:
14px
;
font-weight
:
600
;
color
:
#303133
;
margin-bottom
:
10px
;
}
.info-verify-store-detail__grid
{
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
8px
24px
;
}
.info-verify-store-detail__row
{
flex
:
1
1
40%
;
min-width
:
200px
;
font-size
:
13px
;
line-height
:
1.5
;
}
.info-verify-store-detail__row--full
{
flex
:
1
1
100%
;
}
.info-verify-store-detail__label
{
color
:
#909399
;
margin-right
:
8px
;
}
</
style
>
}
</
style
>
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