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 d5d35b48
authored
Mar 14, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改经营业务类型和主营品牌
1 parent
77f499f1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
96 additions
and
63 deletions
src/views/account/addAccount.vue
src/views/account/components/baseInfo.vue
src/views/account/detailAccount.vue
src/views/account/editAccount.vue
src/views/approvalConfig/createGuide.vue
src/views/approvalConfig/index.vue
src/views/baseInfo/editInfo.vue
src/views/account/addAccount.vue
View file @
d5d35b4
...
@@ -137,7 +137,7 @@ export default {
...
@@ -137,7 +137,7 @@ export default {
status
:
''
,
status
:
''
,
merchantFiles
:
[],
merchantFiles
:
[],
merchantType
:
1
,
merchantType
:
1
,
business
Sco
pe
:
[],
business
Ty
pe
:
[],
parentId
:
''
,
parentId
:
''
,
isloginName
:
false
isloginName
:
false
},
},
...
@@ -181,7 +181,7 @@ export default {
...
@@ -181,7 +181,7 @@ export default {
deep
:
true
deep
:
true
},
},
accountAddForm
:
{
accountAddForm
:
{
handler
()
{
handler
()
{
this
.
editStatus
=
true
this
.
editStatus
=
true
},
},
deep
:
true
deep
:
true
...
@@ -296,16 +296,18 @@ export default {
...
@@ -296,16 +296,18 @@ export default {
params
.
bussinessBegintime
=
params
.
bussinessTime
[
0
]
params
.
bussinessBegintime
=
params
.
bussinessTime
[
0
]
params
.
bussinessEndtime
=
params
.
bussinessTime
[
1
]
params
.
bussinessEndtime
=
params
.
bussinessTime
[
1
]
}
}
if
(
params
.
business
Sco
pe
)
{
if
(
params
.
business
Ty
pe
)
{
params
.
business
Scope
=
params
.
businessSco
pe
.
join
(
','
)
params
.
business
Type
=
params
.
businessTy
pe
.
join
(
','
)
}
}
params
.
merchantBrand
=
this
.
$refs
.
baseInfoForm
.
$refs
.
brandTree
.
getCheckedKeys
().
join
(
','
)
const
getCheckedArr
=
this
.
$refs
.
baseInfoForm
.
$refs
.
brandListTree
.
getCheckedArr
const
merchantBrandMain
=
getCheckedArr
.
map
(
item
=>
item
.
id
)
params
.
merchantBrandMain
=
merchantBrandMain
.
join
(
','
)
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
params
.
channelId
=
this
.
accountDetail
.
channelId
params
.
channelId
=
this
.
accountDetail
.
channelId
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
.
accounttypeId
=
this
.
accounttypeId
.
join
(
','
)
params
.
accounttypeId
=
this
.
accounttypeId
.
join
(
','
)
params
.
merchantFiles
=
JSON
.
stringify
(
params
.
merchantFiles
)
params
.
merchantFiles
=
JSON
.
stringify
(
params
.
merchantFiles
)
params
.
merchantModel
=
this
.
accountDetail
.
merchantModel
params
.
merchantModel
=
this
.
accountDetail
.
merchantModel
...
@@ -317,6 +319,7 @@ export default {
...
@@ -317,6 +319,7 @@ export default {
merchant
=
'saveMerchant'
merchant
=
'saveMerchant'
}
}
document
.
querySelector
(
'#app'
).
scrollTop
=
0
document
.
querySelector
(
'#app'
).
scrollTop
=
0
console
.
log
(
params
)
Promise
.
all
([
pm1
,
pm2
]).
then
(()
=>
{
Promise
.
all
([
pm1
,
pm2
]).
then
(()
=>
{
this
.
$apis
.
store
[
merchant
](
params
).
then
(
res
=>
{
this
.
$apis
.
store
[
merchant
](
params
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
...
@@ -342,7 +345,7 @@ export default {
...
@@ -342,7 +345,7 @@ export default {
}
}
this
.
$apis
.
store
.
findAllDictData
(
params
).
then
(
res
=>
{
this
.
$apis
.
store
.
findAllDictData
(
params
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
if
(
dictType
==
'business_
sco
pe'
)
{
if
(
dictType
==
'business_
ty
pe'
)
{
this
.
businessOption
=
res
this
.
businessOption
=
res
}
}
}
}
...
@@ -390,6 +393,9 @@ export default {
...
@@ -390,6 +393,9 @@ export default {
})
})
},
},
getCarbrandTree
()
{
getCarbrandTree
()
{
// this.$apis.baseInfo.brandList({ needCarSeries: true }).then(res => {
// this.brandData = res
// })
this
.
$apis
.
store
.
getCarbrandTree
({}).
then
(
res
=>
{
this
.
$apis
.
store
.
getCarbrandTree
({}).
then
(
res
=>
{
this
.
brandData
=
res
this
.
brandData
=
res
})
})
...
@@ -401,9 +407,10 @@ export default {
...
@@ -401,9 +407,10 @@ export default {
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
accountAddForm
.
parentId
=
this
.
$route
.
params
.
id
this
.
accountAddForm
.
parentId
=
this
.
$route
.
params
.
id
this
.
$refs
.
baseInfoForm
.
checkBusinessType
()
this
.
findMerchantDetail
()
this
.
findMerchantDetail
()
this
.
getCarbrandTree
()
this
.
getCarbrandTree
()
this
.
findAllDictData
(
'business_
sco
pe'
)
this
.
findAllDictData
(
'business_
ty
pe'
)
}
}
}
}
</
script
>
</
script
>
...
...
src/views/account/components/baseInfo.vue
View file @
d5d35b4
...
@@ -78,16 +78,16 @@
...
@@ -78,16 +78,16 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"
12
"
>
<el-col
:span=
"
24
"
>
<el-form-item
label=
"
营业范围
"
>
<el-form-item
label=
"
经营业务类型
"
>
<el-checkbox-group
v-model=
"accountAddForm.business
Sco
pe"
>
<el-checkbox-group
v-model=
"accountAddForm.business
Ty
pe"
>
<el-checkbox
v-for=
"item in business
Option"
:label=
"item.dictValue
"
:key=
"item"
>
{{
item
.
dictLabel
}}
</el-checkbox>
<el-checkbox
v-for=
"item in business
Type"
: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"
>
<
!--
<
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>
<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-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>
<i
class=
"el-icon-remove el-icon-btn"
@
click=
"removeBusinessScope"
v-else
></i>
</div>
</div>
-->
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -101,10 +101,11 @@
...
@@ -101,10 +101,11 @@
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"主营品牌"
>
<el-form-item
label=
"主营品牌"
>
<el-input
size=
"small"
v-model=
"filterText"
></el-input>
<select-brand
:brandListTree=
"brandListTree"
ref=
"brandListTree"
></select-brand>
<!--
<el-input
size=
"small"
v-model=
"filterText"
></el-input>
<div
class=
"brand-tree"
>
<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>
<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>
</div>
-->
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -141,10 +142,12 @@
...
@@ -141,10 +142,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'
export
default
{
export
default
{
name
:
'base'
,
name
:
'base'
,
components
:
{
components
:
{
mapView
mapView
,
SelectBrand
},
},
props
:
{
props
:
{
accountAddForm
:
{
accountAddForm
:
{
...
@@ -187,7 +190,8 @@ export default {
...
@@ -187,7 +190,8 @@ export default {
{
required
:
true
,
message
:
'请输入联系电话'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请输入联系电话'
,
trigger
:
'blur'
},
{
validator
:
validatePhone
,
trigger
:
'blur'
}
{
validator
:
validatePhone
,
trigger
:
'blur'
}
]
]
}
},
brandListTree
:
[]
}
}
},
},
watch
:
{
watch
:
{
...
@@ -196,6 +200,42 @@ export default {
...
@@ -196,6 +200,42 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
checkBrandList
(
merchantBrandMain
)
{
this
.
$set
(
this
.
accountAddForm
,
'merchantBrandMain'
,
merchantBrandMain
)
if
(
!
this
.
accountAddForm
.
merchantBrandMain
)
{
this
.
accountAddForm
.
merchantBrandMain
=
[]
}
else
{
this
.
accountAddForm
.
merchantBrandMain
=
this
.
accountAddForm
.
merchantBrandMain
.
split
(
','
)
}
this
.
$refs
.
brandListTree
.
getCheckList
(
this
.
accountAddForm
.
merchantBrandMain
)
},
checkBusinessType
(
type
)
{
if
(
!
type
)
{
this
.
accountAddForm
.
businessType
=
[
1
,
2
,
3
,
4
,
5
,
6
]
}
else
{
const
businessType
=
type
.
split
(
','
)
this
.
$set
(
this
.
accountAddForm
,
'businessType'
,
businessType
.
map
(
item
=>
(
item
=
parseInt
(
item
)))
)
}
},
async
brandList
()
{
this
.
$refs
.
brandListTree
.
loading
=
true
this
.
businessType
=
await
this
.
$apis
.
store
.
findAllDictData
({
dictType
:
'business_type'
})
const
brandListTree
=
await
this
.
$apis
.
baseInfo
.
brandList
({
needCarSeries
:
true
})
brandListTree
.
forEach
(
item
=>
{
let
child
=
item
.
childs
child
.
forEach
(
k
=>
{
delete
k
.
childs
})
})
this
.
brandListTree
=
brandListTree
this
.
$nextTick
(()
=>
{
this
.
$refs
.
brandListTree
.
loading
=
false
})
},
hanleSelectMap
()
{
hanleSelectMap
()
{
this
.
dialogMapVisible
=
true
this
.
dialogMapVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -275,7 +315,9 @@ export default {
...
@@ -275,7 +315,9 @@ export default {
}
}
},
},
mounted
()
{}
mounted
()
{
this
.
brandList
()
}
}
}
</
script
>
</
script
>
...
...
src/views/account/detailAccount.vue
View file @
d5d35b4
...
@@ -126,9 +126,9 @@
...
@@ -126,9 +126,9 @@
</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>
<!-- roleData.businessScopName = roleData.businessScopName ? roleData.businessScopName + ',' + roleData.businessScopeCustomize : roleData.businessScopeCustomize -->
<!-- roleData.businessScopName = roleData.businessScopName ? roleData.businessScopName + ',' + roleData.businessScopeCustomize : roleData.businessScopeCustomize -->
<span
class=
"itemValue"
>
{{ firstPageObj.business
ScopName ? firstPageObj.businessScopName + ',' + firstPageObj.businessScopeCustomize : firstPageObj.businessScopeCustomize ? firstPageObj.businessScopeCustomiz
e : '-' }}
</span>
<span
class=
"itemValue"
>
{{ firstPageObj.business
TypeName ? firstPageObj.businessTypeNam
e : '-' }}
</span>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
...
...
src/views/account/editAccount.vue
View file @
d5d35b4
...
@@ -306,14 +306,17 @@ export default {
...
@@ -306,14 +306,17 @@ export default {
params
.
bussinessBegintime
=
''
params
.
bussinessBegintime
=
''
params
.
bussinessEndtime
=
''
params
.
bussinessEndtime
=
''
}
}
if
(
params
.
business
Sco
pe
)
{
if
(
params
.
business
Ty
pe
)
{
params
.
business
Scope
=
params
.
businessSco
pe
.
join
(
','
)
params
.
business
Type
=
params
.
businessTy
pe
.
join
(
','
)
}
}
params
.
merchantBrand
=
this
.
$refs
.
baseInfoForm
.
$refs
.
brandTree
.
getCheckedKeys
().
join
(
','
)
//
params.merchantBrand = this.$refs.baseInfoForm.$refs.brandTree.getCheckedKeys().join(',')
params
.
isloginName
?
(
params
.
isloginName
=
1
)
:
(
params
.
isloginName
=
0
)
params
.
isloginName
?
(
params
.
isloginName
=
1
)
:
(
params
.
isloginName
=
0
)
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
getCheckedArr
=
this
.
$refs
.
baseInfoForm
.
$refs
.
brandListTree
.
getCheckedArr
const
merchantBrandMain
=
getCheckedArr
.
map
(
item
=>
item
.
id
)
params
.
merchantBrandMain
=
merchantBrandMain
.
join
(
','
)
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
)
{
...
@@ -359,7 +362,7 @@ export default {
...
@@ -359,7 +362,7 @@ export default {
})
})
},
},
renderView
(
res
)
{
renderView
(
res
)
{
let
{
isloginName
,
bussinessBegintime
,
bussinessEndtime
,
lat
,
lng
,
merchantAddress
,
merchantName
,
merchantAbbreviation
,
merchantType
,
merchantOrgcode
,
merchantLegalPerson
,
merchantLegalPersonPhone
,
residentContact
,
residentPhone
,
merchantLoginAccount
,
merchantLoginPassword
,
merchantAccountLevel
,
businessScope
,
businessScopeCustomize
,
merchantBrand
,
merchantFileResponses
,
merchantModel
,
accountTypes
,
accountType
,
accounttypeId
,
channelId
,
status
,
parentId
}
=
res
let
{
isloginName
,
bussinessBegintime
,
bussinessEndtime
,
lat
,
merchantBrandMain
,
businessType
,
lng
,
merchantAddress
,
merchantName
,
merchantAbbreviation
,
merchantType
,
merchantOrgcode
,
merchantLegalPerson
,
merchantLegalPersonPhone
,
residentContact
,
residentPhone
,
merchantLoginAccount
,
merchantLoginPassword
,
merchantAccountLevel
,
businessScope
,
businessScopeCustomize
,
merchantBrand
,
merchantFileResponses
,
merchantModel
,
accountTypes
,
accountType
,
accounttypeId
,
channelId
,
status
,
parentId
}
=
res
this
.
accountInfoForm
.
merchantLoginAccount
=
merchantLoginAccount
this
.
accountInfoForm
.
merchantLoginAccount
=
merchantLoginAccount
this
.
accountInfoForm
.
merchantLoginPassword
=
merchantLoginPassword
this
.
accountInfoForm
.
merchantLoginPassword
=
merchantLoginPassword
this
.
accountTypes
=
accountTypes
this
.
accountTypes
=
accountTypes
...
@@ -399,7 +402,7 @@ export default {
...
@@ -399,7 +402,7 @@ export default {
for
(
let
i
in
merchantBrand
)
{
for
(
let
i
in
merchantBrand
)
{
merchantBrand
[
i
]
=
parseInt
(
merchantBrand
[
i
])
merchantBrand
[
i
]
=
parseInt
(
merchantBrand
[
i
])
}
}
this
.
$refs
.
baseInfoForm
.
$refs
.
brandTree
.
setCheckedKeys
(
merchantBrand
)
//
this.$refs.baseInfoForm.$refs.brandTree.setCheckedKeys(merchantBrand)
this
.
accountAddForm
=
Object
.
assign
(
this
.
accountAddForm
,
{
this
.
accountAddForm
=
Object
.
assign
(
this
.
accountAddForm
,
{
isloginName
:
isloginName
?
true
:
false
,
isloginName
:
isloginName
?
true
:
false
,
lat
,
lat
,
...
@@ -418,8 +421,11 @@ export default {
...
@@ -418,8 +421,11 @@ export default {
parentId
,
parentId
,
channelId
,
channelId
,
status
,
status
,
accounttypeId
:
accountType
accounttypeId
:
accountType
,
merchantBrandMain
})
})
this
.
$refs
.
baseInfoForm
.
checkBrandList
(
merchantBrandMain
)
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/approvalConfig/createGuide.vue
View file @
d5d35b4
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2022-03-03 17:45:22
* @Date: 2022-03-03 17:45:22
* @LastEditTime: 2022-03-
04 16:53:04
* @LastEditTime: 2022-03-
14 21:52:43
* @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\approvalConfig\createGuide.vue
* @FilePath: \scrm-micro-settings\src\views\approvalConfig\createGuide.vue
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</div>
</div>
<div
class=
"step-content"
>
<div
class=
"step-content"
>
打开企微后台登录地址:
打开企微后台登录地址:
<el-link
type=
"primary"
target=
"_blank"
:underline=
"false"
href=
"https://work.weixin.qq.com/
wework_admin/loginpage_wx?from=myhome"
>
https://work.weixin.qq.com/wework_admin/loginpage_wx?from=myhome
</el-link>
<el-link
type=
"primary"
target=
"_blank"
:underline=
"false"
href=
"https://work.weixin.qq.com/
login"
>
https://work.weixin.qq.com/login
</el-link>
企微管理员用企微或者微信扫码进行登录
企微管理员用企微或者微信扫码进行登录
</div>
</div>
</div>
</div>
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<div
class=
"step-title"
style=
"margin-bottom: 16px"
>
在【嘀加企微管家】应用页下方,根据接入方式,找到对应功能(自建应用模式和应用代开发模式为2存1,不会同时出现,企微管理员只需关注“审批设置”在企微后台那里 展示,点进去配置即可)
</div>
<div
class=
"step-title"
style=
"margin-bottom: 16px"
>
在【嘀加企微管家】应用页下方,根据接入方式,找到对应功能(自建应用模式和应用代开发模式为2存1,不会同时出现,企微管理员只需关注“审批设置”在企微后台那里 展示,点进去配置即可)
</div>
<div
class=
"half-step"
>
<div
class=
"half-step"
>
<div
class=
"half-title"
>
自建应用模式:
</div>
<div
class=
"half-title"
>
自建应用模式:
</div>
<div
class=
"half-content third-content"
>
在【开发者接口】模块,找到“审批接口”,点击【设置】,进入设置页
</div>
<div
class=
"half-content third-content"
:style=
"
{ height: thirdHeight + 'px' }"
>在【开发者接口】模块,找到“审批接口”,点击【设置】,进入设置页
</div>
<img
class=
"step3-img"
src=
"../../../src/assets/guide/02@3x.png"
alt=
""
/>
<img
class=
"step3-img"
src=
"../../../src/assets/guide/02@3x.png"
alt=
""
/>
</div>
</div>
<div
class=
"half-step m-l-md"
>
<div
class=
"half-step m-l-md"
>
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
</div>
</div>
<div
class=
"half-step m-l-md"
>
<div
class=
"half-step m-l-md"
>
<div
class=
"half-title"
>
应用代开发模式:
</div>
<div
class=
"half-title"
>
应用代开发模式:
</div>
<div
class=
"half-content five-content"
>
需进入模板的配置页,在浏览器链接中,复制如图位置的字符,即可获取审批 模板的ID
</div>
<div
class=
"half-content five-content"
:style=
"
{ height: fiveHeight + 'px' }"
>需进入模板的配置页,在浏览器链接中,复制如图位置的字符,即可获取审批 模板的ID
</div>
<img
class=
"step5-img"
src=
"../../../src/assets/guide/09@3x.png"
alt=
""
/>
<img
class=
"step5-img"
src=
"../../../src/assets/guide/09@3x.png"
alt=
""
/>
</div>
</div>
</div>
</div>
...
@@ -104,23 +104,15 @@ export default {
...
@@ -104,23 +104,15 @@ export default {
footerLeft
:
0
,
footerLeft
:
0
,
footerWidth
:
0
,
footerWidth
:
0
,
// 当屏幕太小导致换行,出现对不齐问题
// 当屏幕太小导致换行,出现对不齐问题
fiveHeight
:
2
0
,
fiveHeight
:
4
0
,
thirdHeight
:
2
0
thirdHeight
:
4
0
}
}
},
},
mounted
()
{
mounted
()
{
// setTimeout(() => {
// this.lineHeight = document.querySelector('.guide-content').clientHeight - 92
// this.resize()
window
.
onresize
=
()
=>
{
window
.
onresize
=
()
=>
{
// this.resize()
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
thirdHeight
=
document
.
querySelector
(
'.third-content'
).
clientHeight
this
.
fiveHeight
=
document
.
querySelector
(
'.five-content'
).
clientHeight
}
}
// window.addEventListener('resize', this.resize())
// }, 1000 / 60)
},
},
beforeDestroy
()
{
beforeDestroy
()
{
// 事件注销
// 事件注销
...
@@ -129,20 +121,6 @@ export default {
...
@@ -129,20 +121,6 @@ export default {
methods
:
{
methods
:
{
handleCancel
()
{
handleCancel
()
{
this
.
$router
.
push
({
path
:
'/approvalConfig/index'
})
this
.
$router
.
push
({
path
:
'/approvalConfig/index'
})
},
resize
()
{
// this.resetData()
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
thirdHeight
=
document
.
querySelector
(
'.third-content'
).
clientHeight
this
.
fiveHeight
=
document
.
querySelector
(
'.five-content'
).
clientHeight
},
resetData
()
{
this
.
lineHeight
=
2200
this
.
footerLeft
=
0
this
.
footerWidth
=
0
this
.
fiveHeight
=
20
this
.
thirdHeight
=
20
}
}
}
}
}
}
...
...
src/views/approvalConfig/index.vue
View file @
d5d35b4
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2022-03-02 18:28:20
* @Date: 2022-03-02 18:28:20
* @LastEditTime: 2022-03-1
2 14:18:52
* @LastEditTime: 2022-03-1
4 21:49:57
* @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\approvalConfig\index.vue
* @FilePath: \scrm-micro-settings\src\views\approvalConfig\index.vue
...
@@ -77,7 +77,6 @@ export default {
...
@@ -77,7 +77,6 @@ export default {
this
.
getApprove
()
this
.
getApprove
()
},
},
mounted
()
{
mounted
()
{
this
.
oldConfig
=
util
.
deepClone
(
this
.
config
)
this
.
clientHeight
=
document
.
documentElement
.
scrollHeight
-
140
this
.
clientHeight
=
document
.
documentElement
.
scrollHeight
-
140
},
},
methods
:
{
methods
:
{
...
@@ -121,6 +120,7 @@ export default {
...
@@ -121,6 +120,7 @@ export default {
// const merchantId = 44209572
// const merchantId = 44209572
this
.
$apis
.
approvalConfig
.
getApproveDetail
({
merchantId
}).
then
(
res
=>
{
this
.
$apis
.
approvalConfig
.
getApproveDetail
({
merchantId
}).
then
(
res
=>
{
this
.
config
.
approveTemplateId
=
res
this
.
config
.
approveTemplateId
=
res
this
.
oldConfig
=
util
.
deepClone
(
this
.
config
)
})
})
}
}
}
}
...
...
src/views/baseInfo/editInfo.vue
View file @
d5d35b4
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2022-03-07 14:32:50
* @Date: 2022-03-07 14:32:50
* @LastEditTime: 2022-03-
07 14:43:18
* @LastEditTime: 2022-03-
14 21:32:45
* @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
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
<el-input
v-model=
"infoForm.merchantAddress"
placeholder=
"请选择商户地址"
readonly=
"readonly"
></el-input>
<el-input
v-model=
"infoForm.merchantAddress"
placeholder=
"请选择商户地址"
readonly=
"readonly"
></el-input>
<el-button
@
click=
"hanleSelectMap"
type=
"primary"
>
选择地址
</el-button>
<el-button
@
click=
"hanleSelectMap"
type=
"primary"
>
选择地址
</el-button>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"业务类型"
>
<el-form-item
size=
"small"
label=
"
经营
业务类型"
>
<el-checkbox-group
v-model=
"infoForm.businessType"
>
<el-checkbox-group
v-model=
"infoForm.businessType"
>
<el-checkbox
:label=
"item.dictValue"
v-for=
"item in businessType"
:key=
"item.dictValue"
>
{{
item
.
dictLabel
}}
</el-checkbox>
<el-checkbox
:label=
"item.dictValue"
v-for=
"item in businessType"
:
disabled=
"item.dictValue
<
= 6" :
key="item.dictValue">
{{
item
.
dictLabel
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"营业时间"
class=
"time-row"
>
<el-form-item
size=
"small"
label=
"营业时间"
class=
"time-row"
>
...
@@ -88,7 +88,7 @@ export default {
...
@@ -88,7 +88,7 @@ export default {
channelId
channelId
}
}
if
(
!
businessType
)
{
if
(
!
businessType
)
{
this
.
infoForm
.
businessType
=
[]
this
.
infoForm
.
businessType
=
[
1
,
2
,
3
,
4
,
5
,
6
]
}
else
{
}
else
{
const
businessType
=
this
.
infoForm
.
businessType
.
split
(
','
)
const
businessType
=
this
.
infoForm
.
businessType
.
split
(
','
)
this
.
infoForm
.
businessType
=
businessType
.
map
(
item
=>
(
item
=
parseInt
(
item
)))
this
.
infoForm
.
businessType
=
businessType
.
map
(
item
=>
(
item
=
parseInt
(
item
)))
...
@@ -139,7 +139,7 @@ export default {
...
@@ -139,7 +139,7 @@ export default {
if
(
params
.
bussinessTime
)
{
if
(
params
.
bussinessTime
)
{
params
.
bussinessBegintime
=
params
.
bussinessTime
[
0
]
params
.
bussinessBegintime
=
params
.
bussinessTime
[
0
]
params
.
bussinessEndtime
=
params
.
bussinessTime
[
1
]
params
.
bussinessEndtime
=
params
.
bussinessTime
[
1
]
}
else
{
}
else
{
params
.
bussinessBegintime
=
''
params
.
bussinessBegintime
=
''
params
.
bussinessEndtime
=
''
params
.
bussinessEndtime
=
''
}
}
...
...
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