Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 723f869d
authored
Nov 11, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
跳转
1 parent
fb7c550c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
14 deletions
src/assets/css/public.scss
src/components/glsx-combi-form/index.vue
src/views/productGroup/editProduct.vue
src/assets/css/public.scss
View file @
723f869
...
@@ -140,6 +140,10 @@
...
@@ -140,6 +140,10 @@
background-color
:
rgba
(
242
,
242
,
242
,
1
);
background-color
:
rgba
(
242
,
242
,
242
,
1
);
}
}
.marketing
.message-Z-zinde
{
z-index
:
3000
!
important
;
}
.one-line-ellipsis
{
.one-line-ellipsis
{
display
:
-
webkit-box
;
display
:
-
webkit-box
;
overflow
:
hidden
;
overflow
:
hidden
;
...
...
src/components/glsx-combi-form/index.vue
View file @
723f869
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"glsx-combi-form"
>
<div
class=
"glsx-combi-form"
>
<el-form
:ref=
"formRef"
:inline=
"true"
:model=
"formObj"
:label-width=
"labelWidth"
:rules=
"formRules"
size=
"small"
class=
"glsx-combi-form-block"
>
<el-form
:ref=
"formRef"
:inline=
"true"
:model=
"formObj"
:label-width=
"labelWidth"
:rules=
"formRules"
size=
"small"
class=
"glsx-combi-form-block"
>
<template
v-for=
"(item, index) in formData"
>
<template
v-for=
"(item, index) in formData"
>
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:class=
"
{ 'no-label': !item.label, isBlock: isBlock }" :style="{ ...item.style }" :label="item.label ? item.label + ':' : ''" :prop="item.name">
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:
id=
"item.name"
:
class=
"
{ 'no-label': !item.label, isBlock: isBlock }" :style="{ ...item.style }" :label="item.label ? item.label + ':' : ''" :prop="item.name">
<span
v-if=
"!item.isHide && item.tips"
class=
"tips-block"
slot=
"label"
>
<span
v-if=
"!item.isHide && item.tips"
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
{{
item
.
label
}}
</span>
<span
class=
"tips-label"
>
{{
item
.
label
}}
</span>
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
:content=
"item.tips"
:placement=
"item.placement || 'top'"
>
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
:content=
"item.tips"
:placement=
"item.placement || 'top'"
>
...
...
src/views/productGroup/editProduct.vue
View file @
723f869
...
@@ -505,6 +505,8 @@ export default {
...
@@ -505,6 +505,8 @@ export default {
},
},
{
{
title
:
'分配门店'
,
title
:
'分配门店'
,
editChildRef
:
'editProRef3'
,
editRule
:
{},
editFormData
:
[
editFormData
:
[
{
{
label
:
'发送门店'
,
label
:
'发送门店'
,
...
@@ -703,7 +705,7 @@ export default {
...
@@ -703,7 +705,7 @@ export default {
this
.
$message
({
this
.
$message
({
message
:
'规格值最多不能超过8个'
,
message
:
'规格值最多不能超过8个'
,
type
:
'error'
,
type
:
'error'
,
customClass
:
'
zZindex
'
customClass
:
'
message-Z-zinde
'
})
})
return
true
return
true
}
}
...
@@ -711,7 +713,7 @@ export default {
...
@@ -711,7 +713,7 @@ export default {
this
.
$message
({
this
.
$message
({
message
:
spescInputVal
+
'规格值已经存在'
,
message
:
spescInputVal
+
'规格值已经存在'
,
type
:
'error'
,
type
:
'error'
,
customClass
:
'
zZindex
'
customClass
:
'
message-Z-zinde
'
})
})
return
true
return
true
}
}
...
@@ -908,12 +910,36 @@ export default {
...
@@ -908,12 +910,36 @@ export default {
this
.
isImgVisible
=
true
this
.
isImgVisible
=
true
this
.
dialogImageUrl
=
src
this
.
dialogImageUrl
=
src
},
},
// 跳转
whereToGo
(
id
)
{
document
.
getElementById
(
id
).
scrollIntoView
()
},
// 图片-描述-end
// 图片-描述-end
handleConfirm
()
{
handleConfirm
()
{
this
.
$refs
.
editFormRef
[
0
].
$refs
.
editProRef0
.
validate
(
valid0
=>
{
var
isJump
=
false
this
.
$refs
.
editFormRef
[
1
].
$refs
.
editProRef1
.
validate
(
valid1
=>
{
for
(
var
i
=
0
;
i
<
this
.
externalFormList
.
length
;
i
++
)
{
this
.
$refs
.
editFormRef
[
2
].
$refs
.
editProRef2
.
validate
(
valid2
=>
{
if
(
isJump
)
{
if
(
valid0
&&
valid1
&&
valid2
)
{
return
true
}
this
.
$refs
.
editFormRef
[
i
].
$refs
[
'editProRef'
+
i
].
validate
((
valid
,
errorObj
)
=>
{
if
(
!
valid
)
{
isJump
=
true
this
.
whereToGo
(
Object
.
keys
(
errorObj
)[
0
])
}
})
}
// this.$refs.editFormRef[0].$refs.editProRef0.validate((valid0, errorObj0) => {
// if (!valid0) {
// this.whereToGo(Object.keys(errorObj0)[0])
// return true
// }
// this.$refs.editFormRef[1].$refs.editProRef1.validate((valid1, errorObj1) => {
// if (!valid0) {
// this.whereToGo(Object.keys(errorObj1)[0])
// return true
// }
// this.$refs.editFormRef[2].$refs.editProRef2.validate(valid2 => {
// if (valid0 && valid1 && valid2) {
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
var
deleteAttrList
=
[
'descImgList'
,
'describeTxt'
]
var
deleteAttrList
=
[
'descImgList'
,
'describeTxt'
]
var
priceList
=
[
'retailPrice'
,
'originalPrice'
,
'supplyPrice'
,
'expressFee'
]
var
priceList
=
[
'retailPrice'
,
'originalPrice'
,
'supplyPrice'
,
'expressFee'
]
...
@@ -976,10 +1002,10 @@ export default {
...
@@ -976,10 +1002,10 @@ export default {
// this.handleCancel()
// this.handleCancel()
// }
// }
// })
// })
}
//
}
})
//
})
})
//
})
})
//
})
},
},
handleCancel
()
{
handleCancel
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -1042,7 +1068,4 @@ export default {
...
@@ -1042,7 +1068,4 @@ export default {
width
:
90px
;
width
:
90px
;
vertical-align
:
bottom
;
vertical-align
:
bottom
;
}
}
.zZindex
{
z-index
:
3000
!important
;
}
</
style
>
</
style
>
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