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 363162ea
authored
Dec 23, 2025
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 区域运营管理接口联调
1 parent
30239df0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
47 deletions
src/api/salesManagement.js
src/main.js
src/views/salesManagement/organize/editOrganize.vue
src/views/salesManagement/organize/regionalManage.vue
src/views/systemConfig/ShopConfig/storeGrossProfit/index.vue
src/api/salesManagement.js
View file @
363162e
...
@@ -35,7 +35,7 @@ export function updateRegionUser(data) {
...
@@ -35,7 +35,7 @@ export function updateRegionUser(data) {
data
.
method
=
'dj.api.smartcarlife.sale.region.updateRegionUser'
data
.
method
=
'dj.api.smartcarlife.sale.region.updateRegionUser'
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 区域运营模块接口
// 区域运营管理人员列表
// 区域运营管理人员列表
export
function
organizationUserList
(
data
)
{
export
function
organizationUserList
(
data
)
{
data
.
method
=
'dj.api.script.province.organization.list'
data
.
method
=
'dj.api.script.province.organization.list'
...
@@ -44,6 +44,6 @@ export function organizationUserList(data) {
...
@@ -44,6 +44,6 @@ export function organizationUserList(data) {
// 区域运营管理编辑
// 区域运营管理编辑
export
function
organizationUserUpdate
(
data
)
{
export
function
organizationUserUpdate
(
data
)
{
data
.
method
=
'dj.api.script.province.organization.up'
data
.
method
=
'dj.api.script.province.organization.up
d
'
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
\ No newline at end of file
\ No newline at end of file
src/main.js
View file @
363162e
...
@@ -172,7 +172,7 @@ function init() {
...
@@ -172,7 +172,7 @@ function init() {
// i18n,
// i18n,
render
:
(
h
)
=>
{
render
:
(
h
)
=>
{
// data.axios.baseURL =
// data.axios.baseURL =
// 'http://dj.
test
.glsx.com.cn/rop-dj-smartcarlife/router'
// 'http://dj.
beta
.glsx.com.cn/rop-dj-smartcarlife/router'
// data
// data
// console.log(data)
// console.log(data)
Vue
.
prototype
.
baseConfig
=
baseConfig
Vue
.
prototype
.
baseConfig
=
baseConfig
...
...
src/views/salesManagement/organize/editOrganize.vue
View file @
363162e
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
</div>
</div>
</div>
</div>
<!-- 展示字段不同,因此独立编辑 -->
<div
v-if=
"source === 'regional'"
style=
"padding: 20px"
v-loading=
"$store.state.d2admin.loading.value"
>
<div
v-if=
"source === 'regional'"
style=
"padding: 20px"
v-loading=
"$store.state.d2admin.loading.value"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
label-width=
"250px"
default-width=
"314px"
:isBlock=
"isBlock"
:form-ref=
"editChildRef"
:form-obj=
"editData"
:form-data=
"editFormDataRegional"
:form-rules=
"formRulesRegional"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
label-width=
"250px"
default-width=
"314px"
:isBlock=
"isBlock"
:form-ref=
"editChildRef"
:form-obj=
"editData"
:form-data=
"editFormDataRegional"
:form-rules=
"formRulesRegional"
>
</glsx-combi-form>
</glsx-combi-form>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<
script
>
<
script
>
import
{
deepClone
}
from
"@/common/util"
import
{
deepClone
}
from
"@/common/util"
import
{
regionUserList
,
updateRegionUser
}
from
'@api/salesManagement'
import
{
regionUserList
,
updateRegionUser
,
organizationUserUpdate
}
from
'@api/salesManagement'
import
{
merchantStaffByRoleList
}
from
'@api/index'
import
{
merchantStaffByRoleList
}
from
'@api/index'
export
default
{
export
default
{
name
:
"EditOrganize"
,
name
:
"EditOrganize"
,
...
@@ -95,7 +95,7 @@ export default {
...
@@ -95,7 +95,7 @@ export default {
isDisabled
:
true
isDisabled
:
true
},
{
},
{
label
:
'区域运营大区经理'
,
label
:
'区域运营大区经理'
,
name
:
'
operateUserId
'
,
name
:
'
regionalOperationsAreaManager
'
,
type
:
'select'
,
type
:
'select'
,
isClear
:
true
,
isClear
:
true
,
optionList
:
[],
optionList
:
[],
...
@@ -104,23 +104,22 @@ export default {
...
@@ -104,23 +104,22 @@ export default {
optionsName
:
'operateUserOpt'
,
optionsName
:
'operateUserOpt'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
changeAttr
:
(
value
,
targetItem
)
=>
{
console
.
log
(
value
,
targetItem
)
console
.
log
(
value
,
targetItem
)
this
.
editData
.
operateUserId
=
value
this
.
editData
.
regionalOperationsAreaManager
=
value
this
.
dealListDisable
()
//
this.dealListDisable()
}
}
},
{
},
{
label
:
'区域运营'
,
label
:
'区域运营'
,
name
:
'
salesList
'
,
name
:
'
regionalOperations
'
,
type
:
'select'
,
type
:
'select'
,
isClear
:
true
,
isClear
:
true
,
multiple
:
true
,
optionList
:
[],
optionList
:
[],
optionId
:
'uuid'
,
optionId
:
'uuid'
,
optionLabel
:
'staffName'
,
optionLabel
:
'staffName'
,
optionsName
:
'salesPersonOpt'
,
optionsName
:
'salesPersonOpt'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
changeAttr
:
(
value
,
targetItem
)
=>
{
console
.
log
(
value
,
targetItem
)
console
.
log
(
value
,
targetItem
)
this
.
editData
.
salesList
=
value
this
.
editData
.
regionalOperations
=
value
this
.
dealListDisable
()
//
this.dealListDisable()
}
}
}
}
],
],
...
@@ -137,6 +136,10 @@ export default {
...
@@ -137,6 +136,10 @@ export default {
this
.
routeInfo
.
userList
=
this
.
$route
.
query
.
userList
||
[]
this
.
routeInfo
.
userList
=
this
.
$route
.
query
.
userList
||
[]
this
.
editData
.
id
=
this
.
$route
.
query
.
id
this
.
editData
.
id
=
this
.
$route
.
query
.
id
this
.
editData
.
regionName
=
this
.
$route
.
query
.
regionName
this
.
editData
.
regionName
=
this
.
$route
.
query
.
regionName
if
(
this
.
$route
.
query
.
source
==
'regional'
){
this
.
editData
.
regionalOperationsAreaManager
=
this
.
$route
.
query
.
regionalOperationsAreaManager
this
.
editData
.
regionalOperations
=
this
.
$route
.
query
.
regionalOperations
}
this
.
source
=
this
.
$route
.
query
.
source
this
.
source
=
this
.
$route
.
query
.
source
this
.
getregionUserList
();
this
.
getregionUserList
();
this
.
getOptionsList
(
"editFormData"
,
false
)
this
.
getOptionsList
(
"editFormData"
,
false
)
...
@@ -261,14 +264,31 @@ export default {
...
@@ -261,14 +264,31 @@ export default {
handleConfirm
()
{
handleConfirm
()
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
valid
)
=>
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
source
===
'regional'
){
const
regionalParams
=
{
id
:
this
.
editData
.
id
,
regionalOperationsAreaManager
:
this
.
editData
.
regionalOperationsAreaManager
,
regionalOperations
:
this
.
editData
.
regionalOperations
,
areaManagerName
:
this
.
findInfo
(
this
.
editData
.
regionalOperationsAreaManager
).
staffName
||
''
,
regionalOperationsName
:
this
.
findInfo
(
this
.
editData
.
regionalOperations
).
staffName
||
''
,
sessionId
:
this
.
getParams
().
sessionId
,
}
console
.
log
(
"AAregionalParamsAA"
,
regionalParams
);
organizationUserUpdate
(
regionalParams
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
$message
.
success
(
"操作成功"
)
this
.
handleCancel
()
})
}
if
(
this
.
source
===
'organize'
){
const
params
=
this
.
getParams
()
const
params
=
this
.
getParams
()
console
.
log
(
params
)
updateRegionUser
(
params
).
then
(
res
=>
{
updateRegionUser
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
$message
.
success
(
"操作成功"
)
this
.
$message
.
success
(
"操作成功"
)
this
.
handleCancel
()
this
.
handleCancel
()
})
})
}
}
}
})
})
},
},
...
...
src/views/salesManagement/organize/regionalManage.vue
View file @
363162e
...
@@ -20,36 +20,27 @@
...
@@ -20,36 +20,27 @@
<
script
>
<
script
>
import
{
busTypeOpt
,
cooperModeOpt
,
flowSituateOpt
}
from
'../constant/baseData'
import
{
busTypeOpt
,
cooperModeOpt
,
flowSituateOpt
}
from
'../constant/baseData'
import
{
regionPage
}
from
'@api/salesManagement'
import
{
organizationUserList
}
from
'@api/salesManagement'
export
default
{
export
default
{
name
:
'Customer'
,
name
:
'Customer'
,
data
()
{
data
()
{
return
{
return
{
recordInfo
:
{},
recordInfo
:
{},
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
getListApi
:
regionPage
,
getListApi
:
organizationUserList
,
tableParams
:
{
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[{
tableColumns
:
[{
label
:
'省份名称'
,
label
:
'省份名称'
,
prop
:
'
region
Name'
prop
:
'
province
Name'
},{
},{
label
:
'区域运营大区经理'
,
label
:
'区域运营大区经理'
,
prop
:
'userList'
,
prop
:
'areaManagerName'
,
formatter
:
(
cellValue
)
=>
{
// 人员类型(1.大区经理,2.销售人员)
return
(
cellValue
.
userList
&&
cellValue
.
userList
.
length
)
?
(
cellValue
.
userList
.
filter
(
item
=>
item
.
userType
==
1
).
map
(
item
=>
item
.
userName
).
join
(
','
)
||
'-'
)
:
'-'
}
},
{
},
{
label
:
'区域运营'
,
label
:
'区域运营'
,
prop
:
'userList'
,
prop
:
'regionalOperationsName'
,
addHtml
:
'userList'
,
formatter
:
(
cellValue
)
=>
{
// 人员类型(1.大区经理,2.销售人员)
return
(
cellValue
.
userList
&&
cellValue
.
userList
.
length
)
?
cellValue
.
userList
.
filter
(
item
=>
item
.
userType
==
2
).
map
(
item
=>
item
.
userName
).
join
(
','
)
||
'-'
:
'-'
}
},
{
},
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
...
@@ -77,7 +68,9 @@
...
@@ -77,7 +68,9 @@
query
:
{
query
:
{
source
:
'regional'
,
source
:
'regional'
,
id
:
row
?.
id
||
''
,
id
:
row
?.
id
||
''
,
regionName
:
row
?.
regionName
||
''
,
regionName
:
row
?.
provinceName
||
''
,
regionalOperationsAreaManager
:
row
?.
regionalOperationsAreaManager
||
''
,
regionalOperations
:
row
?.
regionalOperations
||
''
,
userList
:
row
?.
userList
||
[]
userList
:
row
?.
userList
||
[]
}
}
})
})
...
...
src/views/systemConfig/ShopConfig/storeGrossProfit/index.vue
View file @
363162e
...
@@ -451,34 +451,31 @@
...
@@ -451,34 +451,31 @@
handleExport
()
{
handleExport
()
{
var
params
=
this
.
searchFormSearch
var
params
=
this
.
searchFormSearch
// if (params.merchantIds.length > 0) {
if
(
params
.
merchantIds
.
length
>
0
)
{
// params.merchantIds.forEach((item, index) => {
params
.
merchantIds
.
forEach
((
item
,
index
)
=>
{
// const merchantId = `merchantIds[${index}]`
const
merchantId
=
`merchantIds[
${
index
}
]`
// params[merchantId] = item
params
[
merchantId
]
=
item
// })
})
// delete params.merchantIds
delete
params
.
merchantIds
// }
}
// if (params.brandChildIds.length > 0) {
if
(
params
.
brandChildIds
.
length
>
0
)
{
// params.brandChildIds.forEach((item, index) => {
params
.
brandChildIds
.
forEach
((
item
,
index
)
=>
{
// const brandChildId = `brandChildIds[${index}]`
const
brandChildId
=
`brandChildIds[
${
index
}
]`
// params[brandChildId] = item
params
[
brandChildId
]
=
item
// })
})
// delete params.brandChildIds
delete
params
.
brandChildIds
// }
}
console
.
log
(
'AAparamsAA'
,
params
);
// 去除为null的值
// 去除为null的值
for
(
const
key
in
params
)
{
for
(
const
key
in
params
)
{
if
(
params
[
key
]
===
null
||
params
[
key
]
===
''
||
params
[
key
].
length
==
0
)
{
if
(
params
[
key
]
===
null
||
params
[
key
]
===
''
||
params
[
key
].
length
==
0
)
{
delete
params
[
key
]
delete
params
[
key
]
}
}
}
}
// params.method = 'dj.api.smartcarlife.employee.delivery.deal.rate.export.async'
params
.
method
=
'dj.api.smartcarlife.employee.delivery.deal.rate.export.async'
params
.
method
=
'dj.api.script.merchant.profit.record.async.export'
const
list
=
[
const
list
=
[
...
this
.
dowloadList
,
...
this
.
dowloadList
,
{
{
name
:
'
门店毛利额
'
,
name
:
'
个人交付成交率
'
,
exportParam
:
JSON
.
stringify
(
params
),
exportParam
:
JSON
.
stringify
(
params
),
status
:
'waiting'
,
status
:
'waiting'
,
timeid
:
new
Date
().
getTime
()
timeid
:
new
Date
().
getTime
()
...
...
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