Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
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 5eb6e402
authored
Mar 31, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
屏蔽经营业务类型、主营品牌
1 parent
5ed4b33d
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
34 additions
and
41 deletions
src/views/account/addAccount.vue
src/views/account/components/baseInfo.vue
src/views/account/components/selectProduct.vue
src/views/account/detailAccount.vue
src/views/account/editAccount.vue
src/views/baseInfo/editInfo.vue
src/views/baseInfo/index.vue
src/views/followUp/components/addSale.vue
src/views/account/addAccount.vue
View file @
5eb6e40
...
@@ -299,8 +299,8 @@ export default {
...
@@ -299,8 +299,8 @@ export default {
if
(
params
.
businessType
)
{
if
(
params
.
businessType
)
{
params
.
businessType
=
params
.
businessType
.
join
(
','
)
params
.
businessType
=
params
.
businessType
.
join
(
','
)
}
}
const
merchantBrandList
=
this
.
$refs
.
baseInfoForm
.
$refs
.
brandListTree
.
getMerchantBrandList
()
//
const merchantBrandList = this.$refs.baseInfoForm.$refs.brandListTree.getMerchantBrandList()
params
.
merchantBrandListJson
=
JSON
.
stringify
(
merchantBrandList
)
//
params.merchantBrandListJson = JSON.stringify(merchantBrandList)
params
.
isloginName
?
(
params
.
isloginName
=
1
)
:
(
params
.
isloginName
=
0
)
params
.
isloginName
?
(
params
.
isloginName
=
1
)
:
(
params
.
isloginName
=
0
)
params
.
merchantAccountLevel
=
this
.
accountDetail
.
merchantAccountLevel
params
.
merchantAccountLevel
=
this
.
accountDetail
.
merchantAccountLevel
params
.
status
=
1
params
.
status
=
1
...
...
src/views/account/components/baseInfo.vue
View file @
5eb6e40
...
@@ -78,18 +78,13 @@
...
@@ -78,18 +78,13 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"24"
>
<
!--
<
el-col
:span=
"24"
>
<el-form-item
label=
"经营业务类型"
>
<el-form-item
label=
"经营业务类型"
>
<el-checkbox-group
v-model=
"accountAddForm.businessType"
>
<el-checkbox-group
v-model=
"accountAddForm.businessType"
>
<el-checkbox
v-for=
"item in businessType"
:label=
"item.dictValue"
:disabled=
"item.dictValue
<
= 6" :key="item">
{{
item
.
dictLabel
}}
</el-checkbox>
<el-checkbox
v-for=
"item in businessType"
:label=
"item.dictValue"
:disabled=
"item.dictValue
<
= 6" :key="item">
{{
item
.
dictLabel
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
<!--
<div
class=
"scrm-flex-center"
v-for=
"(item, index) in businessScopeCustomize"
:key=
"index"
>
<el-input
size=
"small"
v-model=
"businessScopeCustomize[index].name"
placeholder=
"请自定义营业范围,建议不超过10个"
></el-input>
<i
class=
"el-icon-circle-plus el-icon-btn"
@
click=
"addBusinessScope"
v-if=
"index == businessScopeCustomize.length - 1"
></i>
<i
class=
"el-icon-remove el-icon-btn"
@
click=
"removeBusinessScope"
v-else
></i>
</div>
-->
</el-form-item>
</el-form-item>
</el-col>
</el-col>
-->
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -99,15 +94,11 @@
...
@@ -99,15 +94,11 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"12"
>
<
!--
<
el-col
:span=
"12"
>
<el-form-item
label=
"主营品牌"
>
<el-form-item
label=
"主营品牌"
>
<select-brand
:brandListTree=
"brandListTree"
ref=
"brandListTree"
></select-brand>
<select-brand
:brandListTree=
"brandListTree"
ref=
"brandListTree"
></select-brand>
<!--
<el-input
size=
"small"
v-model=
"filterText"
></el-input>
<div
class=
"brand-tree"
>
<el-tree
:data=
"brandData"
show-checkbox
default-expand-all
node-key=
"id"
ref=
"brandTree"
highlight-current
:props=
"defaultProps"
:filter-node-method=
"filterNode"
@
check=
"clickDeal"
></el-tree>
</div>
-->
</el-form-item>
</el-form-item>
</el-col>
</el-col>
-->
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"门店照片"
>
<el-form-item
label=
"门店照片"
>
<div
class=
"store-upload-list"
>
<div
class=
"store-upload-list"
>
...
@@ -142,12 +133,12 @@
...
@@ -142,12 +133,12 @@
<
script
>
<
script
>
import
util
from
'@/utils/util'
import
util
from
'@/utils/util'
import
mapView
from
'@/components/mapView/index'
import
mapView
from
'@/components/mapView/index'
import
SelectBrand
from
'../../baseInfo/selectBrand.vue'
//
import SelectBrand from '../../baseInfo/selectBrand.vue'
export
default
{
export
default
{
name
:
'base'
,
name
:
'base'
,
components
:
{
components
:
{
mapView
,
mapView
SelectBrand
//
SelectBrand
},
},
props
:
{
props
:
{
accountAddForm
:
{
accountAddForm
:
{
...
@@ -201,7 +192,7 @@ export default {
...
@@ -201,7 +192,7 @@ export default {
},
},
methods
:
{
methods
:
{
checkBrandList
(
chant
)
{
checkBrandList
(
chant
)
{
let
merchantBrandMain
=
chant
.
filter
(
item
=>
item
)
let
merchantBrandMain
=
chant
.
filter
(
item
=>
item
)
this
.
$set
(
this
.
accountAddForm
,
'merchantBrandMain'
,
merchantBrandMain
)
this
.
$set
(
this
.
accountAddForm
,
'merchantBrandMain'
,
merchantBrandMain
)
console
.
log
(
this
.
accountAddForm
.
merchantBrandMain
)
console
.
log
(
this
.
accountAddForm
.
merchantBrandMain
)
if
(
!
this
.
accountAddForm
.
merchantBrandMain
)
{
if
(
!
this
.
accountAddForm
.
merchantBrandMain
)
{
...
@@ -228,7 +219,7 @@ export default {
...
@@ -228,7 +219,7 @@ export default {
const
brandListTree
=
await
this
.
$apis
.
baseInfo
.
brandList
({})
const
brandListTree
=
await
this
.
$apis
.
baseInfo
.
brandList
({})
brandListTree
.
forEach
(
item
=>
{
brandListTree
.
forEach
(
item
=>
{
let
child
=
item
.
children
let
child
=
item
.
children
if
(
!
child
)
return
if
(
!
child
)
return
child
.
forEach
(
k
=>
{
child
.
forEach
(
k
=>
{
delete
k
.
children
delete
k
.
children
})
})
...
@@ -318,7 +309,7 @@ export default {
...
@@ -318,7 +309,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
brandList
()
//
this.brandList()
}
}
}
}
</
script
>
</
script
>
...
...
src/views/account/components/selectProduct.vue
View file @
5eb6e40
...
@@ -181,7 +181,7 @@ export default {
...
@@ -181,7 +181,7 @@ export default {
})
})
this
.
loading
=
false
this
.
loading
=
false
this
.
tabName
=
this
.
tabMenu
[
0
].
accounttypeId
this
.
tabName
=
this
.
tabMenu
[
0
].
accounttypeId
this
.
productTab
=
this
.
tabMenu
[
0
].
productsArr
[
0
]
.
productId
this
.
productTab
=
this
.
tabMenu
[
0
].
productsArr
[
0
]
?
this
.
tabMenu
[
0
].
productsArr
[
0
].
productId
:
''
// const arr = res.map(i => i.accounttypeId)
// const arr = res.map(i => i.accounttypeId)
// this.tabMenu.map(i => arr.includes(i.accounttypeId))
// this.tabMenu.map(i => arr.includes(i.accounttypeId))
// console.log(this.tabMenu, arr)
// console.log(this.tabMenu, arr)
...
...
src/views/account/detailAccount.vue
View file @
5eb6e40
...
@@ -125,18 +125,17 @@
...
@@ -125,18 +125,17 @@
{{ firstPageObj.merchantAddress || '-' }}
{{ firstPageObj.merchantAddress || '-' }}
</span>
</span>
</el-col>
</el-col>
<el-col
:span=
"10"
class=
"flexCol"
>
<
!-- <
el-col :span="10" class="flexCol">
<span class="itemName itemNameCol2">经营业务类型:</span>
<span class="itemName itemNameCol2">经营业务类型:</span>
<!-- <span class="itemValue">{{ firstPageObj.businessScopName ? firstPageObj.businessScopName + ',' + firstPageObj.businessScopeCustomize : firstPageObj.businessScopeCustomize ? firstPageObj.businessScopeCustomize : '-' }}</span> -->
<span class="itemValue">{{ firstPageObj.businessTypeName ? firstPageObj.businessTypeName : '-' }}</span>
<span class="itemValue">{{ firstPageObj.businessTypeName ? firstPageObj.businessTypeName : '-' }}</span>
</el-col>
</el-col>
-->
</el-row>
</el-row>
<el-row>
<
!-- <
el-row>
<el-col :span="12" class="flexCol">
<el-col :span="12" class="flexCol">
<span class="itemName">主营品牌:</span>
<span class="itemName">主营品牌:</span>
<span class="itemValue">{{ firstPageObj.merchantBrandName || '-' }}</span>
<span class="itemValue">{{ firstPageObj.merchantBrandName || '-' }}</span>
</el-col>
</el-col>
</el-row>
</el-row>
-->
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/views/account/editAccount.vue
View file @
5eb6e40
...
@@ -267,7 +267,9 @@ export default {
...
@@ -267,7 +267,9 @@ export default {
if
(
valid
)
resolve
()
if
(
valid
)
resolve
()
setTimeout
(()
=>
{
setTimeout
(()
=>
{
var
isError
=
document
.
getElementsByClassName
(
'is-error'
)
var
isError
=
document
.
getElementsByClassName
(
'is-error'
)
isError
[
0
].
querySelector
(
'input'
).
focus
()
if
(
isError
[
0
])
{
isError
[
0
].
querySelector
(
'input'
).
focus
()
}
},
100
)
},
100
)
})
})
})
})
...
@@ -276,7 +278,9 @@ export default {
...
@@ -276,7 +278,9 @@ export default {
if
(
valid
)
resolve
()
if
(
valid
)
resolve
()
setTimeout
(()
=>
{
setTimeout
(()
=>
{
var
isError
=
document
.
getElementsByClassName
(
'is-error'
)
var
isError
=
document
.
getElementsByClassName
(
'is-error'
)
isError
[
0
].
querySelector
(
'input'
).
focus
()
if
(
isError
[
0
])
{
isError
[
0
].
querySelector
(
'input'
).
focus
()
}
},
100
)
},
100
)
})
})
})
})
...
@@ -314,8 +318,8 @@ export default {
...
@@ -314,8 +318,8 @@ export default {
let
businessScopeCustomize
=
this
.
businessScopeCustomize
.
map
(
item
=>
item
.
name
)
let
businessScopeCustomize
=
this
.
businessScopeCustomize
.
map
(
item
=>
item
.
name
)
params
.
businessScopeCustomize
=
businessScopeCustomize
.
join
(
','
)
params
.
businessScopeCustomize
=
businessScopeCustomize
.
join
(
','
)
params
.
merchantFiles
=
JSON
.
stringify
(
params
.
merchantFiles
)
params
.
merchantFiles
=
JSON
.
stringify
(
params
.
merchantFiles
)
const
merchantBrandList
=
this
.
$refs
.
baseInfoForm
.
$refs
.
brandListTree
.
getMerchantBrandList
()
//
const merchantBrandList = this.$refs.baseInfoForm.$refs.brandListTree.getMerchantBrandList()
params
.
merchantBrandListJson
=
JSON
.
stringify
(
merchantBrandList
)
//
params.merchantBrandListJson = JSON.stringify(merchantBrandList)
Promise
.
all
([
pm1
,
pm2
]).
then
(()
=>
{
Promise
.
all
([
pm1
,
pm2
]).
then
(()
=>
{
this
.
$apis
.
store
.
updateMerchant
(
params
).
then
(
res
=>
{
this
.
$apis
.
store
.
updateMerchant
(
params
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
...
@@ -424,8 +428,8 @@ export default {
...
@@ -424,8 +428,8 @@ export default {
merchantBrandMain
merchantBrandMain
})
})
merchantBrandMain
=
merchantBrandMain
.
replaceAll
(
';'
,
','
).
split
(
','
)
merchantBrandMain
=
merchantBrandMain
.
replaceAll
(
';'
,
','
).
split
(
','
)
this
.
$refs
.
baseInfoForm
.
checkBrandList
(
merchantBrandMain
)
//
this.$refs.baseInfoForm.checkBrandList(merchantBrandMain)
this
.
$refs
.
baseInfoForm
.
checkBusinessType
(
businessType
)
//
this.$refs.baseInfoForm.checkBusinessType(businessType)
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
baseInfoForm
.
$refs
.
baseForm
.
validate
()
this
.
$refs
.
baseInfoForm
.
$refs
.
baseForm
.
validate
()
this
.
editStatus
=
false
this
.
editStatus
=
false
...
...
src/views/baseInfo/editInfo.vue
View file @
5eb6e40
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2022-03-07 14:32:50
* @Date: 2022-03-07 14:32:50
* @LastEditTime: 2022-03-
14 21:04:10
* @LastEditTime: 2022-03-
28 15:53:38
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-settings\src\views\baseInfo\editInfo.vue
* @FilePath: \scrm-micro-settings\src\views\baseInfo\editInfo.vue
...
@@ -66,7 +66,7 @@ export default {
...
@@ -66,7 +66,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
brandList
()
//
this.brandList()
},
},
methods
:
{
methods
:
{
async
brandList
()
{
async
brandList
()
{
...
@@ -96,10 +96,9 @@ export default {
...
@@ -96,10 +96,9 @@ export default {
}
}
console
.
log
(
this
.
infoForm
.
businessType
)
console
.
log
(
this
.
infoForm
.
businessType
)
const
brandListTree
=
await
this
.
$apis
.
baseInfo
.
brandList
({})
const
brandListTree
=
await
this
.
$apis
.
baseInfo
.
brandList
({})
console
.
log
(
brandListTree
)
brandListTree
.
forEach
(
item
=>
{
brandListTree
.
forEach
(
item
=>
{
let
child
=
item
.
children
let
child
=
item
.
children
if
(
!
child
)
return
if
(
!
child
)
return
child
.
forEach
(
k
=>
{
child
.
forEach
(
k
=>
{
delete
k
.
children
delete
k
.
children
})
})
...
@@ -109,7 +108,7 @@ export default {
...
@@ -109,7 +108,7 @@ export default {
if
(
!
this
.
infoForm
.
merchantBrandMain
)
{
if
(
!
this
.
infoForm
.
merchantBrandMain
)
{
this
.
infoForm
.
merchantBrandMain
=
[]
this
.
infoForm
.
merchantBrandMain
=
[]
}
else
{
}
else
{
this
.
infoForm
.
merchantBrandMain
=
this
.
infoForm
.
merchantBrandMain
.
replaceAll
(
';'
,
','
).
split
(
','
)
this
.
infoForm
.
merchantBrandMain
=
this
.
infoForm
.
merchantBrandMain
.
replaceAll
(
';'
,
','
).
split
(
','
)
}
}
this
.
$refs
.
brandListTree
.
getCheckList
(
this
.
infoForm
.
merchantBrandMain
)
this
.
$refs
.
brandListTree
.
getCheckList
(
this
.
infoForm
.
merchantBrandMain
)
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
...
src/views/baseInfo/index.vue
View file @
5eb6e40
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
{{
blocInfo
.
merchantName
}}
{{
blocInfo
.
merchantName
}}
<span
class=
"min_text"
>
(商户号:
{{
blocInfo
.
merchantNo
}}
)
</span>
<span
class=
"min_text"
>
(商户号:
{{
blocInfo
.
merchantNo
}}
)
</span>
</div>
</div>
<
GLButton
type=
"primary"
:size=
"size"
@
click=
"editInfo"
fn=
"修改企业信息"
>
修改企业信息
</GLButton
>
<
!--
<GLButton
type=
"primary"
:size=
"size"
@
click=
"editInfo"
fn=
"修改企业信息"
>
修改企业信息
</GLButton>
--
>
<!--
<el-button
type=
"primary"
:size=
"size"
@
click=
"editInfo"
>
修改企业信息
</el-button>
-->
<!--
<el-button
type=
"primary"
:size=
"size"
@
click=
"editInfo"
>
修改企业信息
</el-button>
-->
</div>
</div>
...
...
src/views/followUp/components/addSale.vue
View file @
5eb6e40
...
@@ -36,11 +36,11 @@
...
@@ -36,11 +36,11 @@
</div>
</div>
<div
class=
"sale-type-desc"
>
跟进员工类型最多新增30个,已新增
{{
empType
.
length
-
empTypeF
.
length
}}
个
</div>
<div
class=
"sale-type-desc"
>
跟进员工类型最多新增30个,已新增
{{
empType
.
length
-
empTypeF
.
length
}}
个
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"负责的业务类型"
v-if=
"typeIndex != 2 && typeIndex != 4"
>
<
!--
<
el-form-item
label=
"负责的业务类型"
v-if=
"typeIndex != 2 && typeIndex != 4"
>
<el-checkbox-group
v-model=
"selectBusiness"
@
change=
"selectType"
>
<el-checkbox-group
v-model=
"selectBusiness"
@
change=
"selectType"
>
<el-checkbox
:disabled=
"(typeIndex == 0 && item.id != 1) || (typeIndex == 1 && item.id == 1)"
v-for=
"item in businessType"
:key=
"item"
:label=
"item.id"
>
{{
item
.
businessName
}}
</el-checkbox>
<el-checkbox
:disabled=
"(typeIndex == 0 && item.id != 1) || (typeIndex == 1 && item.id == 1)"
v-for=
"item in businessType"
:key=
"item"
:label=
"item.id"
>
{{
item
.
businessName
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</el-form-item>
</el-form-item>
-->
<el-form-item
style=
"text-align: center"
>
<el-form-item
style=
"text-align: center"
>
<el-button
@
click=
"onCancel"
size=
"small"
>
取消
</el-button>
<el-button
@
click=
"onCancel"
size=
"small"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit"
size=
"small"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit"
size=
"small"
>
确定
</el-button>
...
...
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