Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 f00dd1d7
authored
Mar 15, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改所有门店适用编辑
1 parent
1c3466da
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
src/views/serviceConfig/addClause.vue
src/views/serviceConfig/index.vue
src/views/serviceConfig/addClause.vue
View file @
f00dd1d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"main-warp"
>
<div
class=
"main-warp"
>
<glsx-combi-form
ref=
"submitRef"
labelWidth=
"154px"
defaultWidth=
"284px"
:isInline=
"false"
:formObj=
"formObj"
:formData=
"formData"
:formRules=
"editRule"
>
<glsx-combi-form
ref=
"submitRef"
labelWidth=
"154px"
defaultWidth=
"284px"
:isInline=
"false"
:formObj=
"formObj"
:formData=
"formData"
:formRules=
"editRule"
>
<div
slot=
"merchantName"
>
<div
slot=
"merchantName"
>
<el-button
v-if=
"routeInfo.type
!=2
"
class=
"el-icon-plus"
@
click=
"selectMerchant()"
>
选择门店
</el-button>
<el-button
v-if=
"routeInfo.type
==1 || (routeInfo.type==3 && routeInfo.merchantId)
"
class=
"el-icon-plus"
@
click=
"selectMerchant()"
>
选择门店
</el-button>
<div
<div
class=
"merchantNameLabel"
class=
"merchantNameLabel"
v-if=
"formObj.merchantName && formObj.merchantId"
v-if=
"formObj.merchantName && formObj.merchantId"
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
<p>
所属门店
</p>
<p>
所属门店
</p>
<div
class=
"merchantName ellipsis-1"
>
{{
formObj
.
merchantName
}}
</div>
<div
class=
"merchantName ellipsis-1"
>
{{
formObj
.
merchantName
}}
</div>
</div>
</div>
<div
v-if=
"routeInfo.type!=1 && !routeInfo.merchantId"
>
所有门店适用
</div>
</div>
</div>
<div
class=
"equity-class"
slot=
"selectEquity"
>
<div
class=
"equity-class"
slot=
"selectEquity"
>
<div
class=
"equity-area"
v-for=
"item in formObj.serviceList"
:key=
"item.serviceCode"
>
<div
class=
"equity-area"
v-for=
"item in formObj.serviceList"
:key=
"item.serviceCode"
>
...
@@ -181,8 +182,20 @@ export default {
...
@@ -181,8 +182,20 @@ export default {
})
})
},
},
submit
(){
submit
(){
if
(
this
.
routeInfo
.
type
!=
1
&&
!
this
.
routeInfo
.
merchantId
){
this
.
$refs
.
submitRef
.
$refs
.
formRef
.
validateField
(
'serviceList'
,
valid
=>
{
if
(
valid
)
return
;
//检验单个规则空才是通过
this
.
addConfigApi
()
})
}
else
{
this
.
$refs
.
submitRef
.
$refs
.
formRef
.
validate
(
valid
=>
{
this
.
$refs
.
submitRef
.
$refs
.
formRef
.
validate
(
valid
=>
{
console
.
log
(
222
,
valid
)
if
(
!
valid
)
return
;
if
(
!
valid
)
return
;
this
.
addConfigApi
()
})
}
},
addConfigApi
(){
if
(
this
.
routeInfo
.
id
){
if
(
this
.
routeInfo
.
id
){
this
.
editService
()
this
.
editService
()
return
;
return
;
...
@@ -206,7 +219,6 @@ export default {
...
@@ -206,7 +219,6 @@ export default {
this
.
$router
.
push
(
'/serviceConfig/index'
)
this
.
$router
.
push
(
'/serviceConfig/index'
)
}
}
})
})
})
}
}
}
}
}
}
...
...
src/views/serviceConfig/index.vue
View file @
f00dd1d
...
@@ -210,12 +210,13 @@
...
@@ -210,12 +210,13 @@
addClause
(
type
,
row
)
{
addClause
(
type
,
row
)
{
// 1新增 2查看 3编辑
// 1新增 2查看 3编辑
const
{
id
}
=
row
||
{}
const
{
id
,
merchantId
}
=
row
||
{}
let
query
=
{
let
query
=
{
type
type
}
}
if
(
type
!=
1
){
if
(
type
!=
1
){
query
.
id
=
id
query
.
id
=
id
query
.
merchantId
=
merchantId
}
}
const
queryStr
=
encodeURIComponent
(
JSON
.
stringify
(
query
))
const
queryStr
=
encodeURIComponent
(
JSON
.
stringify
(
query
))
this
.
$router
.
push
(
'/serviceConfig/addClause/'
+
queryStr
)
this
.
$router
.
push
(
'/serviceConfig/addClause/'
+
queryStr
)
...
...
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