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 591f7c07
authored
May 23, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加serviceCode
1 parent
a7f740ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
src/views/ContractManager/addTmpl.vue
src/views/serviceConfig/addService.vue
src/views/serviceConfig/index.vue
src/views/ContractManager/addTmpl.vue
View file @
591f7c0
...
@@ -149,7 +149,7 @@ export default {
...
@@ -149,7 +149,7 @@ export default {
},
},
getParams
(){
getParams
(){
const
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
contentObj
)
const
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
contentObj
)
params
.
useConditions
=
params
.
useConditions
.
replace
(
/<span.*
?
class.*
?
keyname="
(
.*
?)
\
"
.*
?
<
\/
span>/g
,
'$1'
)
params
.
useConditions
=
params
.
useConditions
.
replace
(
/<span.*
?
class.*
?
keyname="
(
.*
?)
".*
?
<
\/
span>/g
,
'$1'
)
return
params
return
params
},
},
commitTemplate
(){
commitTemplate
(){
...
...
src/views/serviceConfig/addService.vue
View file @
591f7c0
...
@@ -350,6 +350,7 @@ export default {
...
@@ -350,6 +350,7 @@ export default {
jumpListPage
(){
jumpListPage
(){
this
.
$router
.
push
(
'/serviceConfig/index'
)
this
.
$router
.
push
(
'/serviceConfig/index'
)
},
},
// 查看基本信息详情
// 查看基本信息详情
getServiceDetail
(){
getServiceDetail
(){
this
.
$apis
.
serviceConfig
.
getServiceDetailApi
({
id
:
this
.
routeInfo
?.
id
}).
then
(
res
=>
{
this
.
$apis
.
serviceConfig
.
getServiceDetailApi
({
id
:
this
.
routeInfo
?.
id
}).
then
(
res
=>
{
...
@@ -393,6 +394,7 @@ export default {
...
@@ -393,6 +394,7 @@ export default {
delImage
(
e
){
delImage
(
e
){
this
.
formObj
[
e
.
attr
]
=
''
this
.
formObj
[
e
.
attr
]
=
''
},
},
// 获取责任和条件
getConfigList
()
{
getConfigList
()
{
this
.
$apis
.
serviceConfig
.
getCommonConfig
({}).
then
(
res
=>
{
this
.
$apis
.
serviceConfig
.
getCommonConfig
({}).
then
(
res
=>
{
if
(
!
res
)
return
;
if
(
!
res
)
return
;
...
@@ -403,6 +405,8 @@ export default {
...
@@ -403,6 +405,8 @@ export default {
}
}
})
})
},
},
// 添加购买条件或者除外责任
createConfig
(
type
){
createConfig
(
type
){
const
{
id
,
value
}
=
this
.
curEditCondition
const
{
id
,
value
}
=
this
.
curEditCondition
if
(
!
value
)
{
if
(
!
value
)
{
...
...
src/views/serviceConfig/index.vue
View file @
591f7c0
...
@@ -232,12 +232,14 @@
...
@@ -232,12 +232,14 @@
addClause
(
type
,
row
)
{
addClause
(
type
,
row
)
{
// 1新增 2查看 3编辑
// 1新增 2查看 3编辑
const
{
id
}
=
row
||
{}
const
{
id
,
serviceCode
,
serviceName
}
=
row
||
{}
let
query
=
{
let
query
=
{
type
type
}
}
if
(
type
!=
1
){
if
(
type
!=
1
){
query
.
id
=
id
query
.
id
=
id
query
.
serviceCode
=
serviceCode
query
.
serviceName
=
serviceName
}
}
const
queryStr
=
encodeURIComponent
(
JSON
.
stringify
(
query
))
const
queryStr
=
encodeURIComponent
(
JSON
.
stringify
(
query
))
this
.
$router
.
push
(
'/serviceConfig/addService/'
+
queryStr
)
this
.
$router
.
push
(
'/serviceConfig/addService/'
+
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