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 8e02f3b3
authored
Dec 25, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
0702bcae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
27 deletions
src/components/Editor/index.vue
src/views/ContractManager/prodIndex.vue
src/views/beforeSale/editEquity.vue
src/components/Editor/index.vue
View file @
8e02f3b
...
@@ -91,7 +91,7 @@ export default Vue.extend({
...
@@ -91,7 +91,7 @@ export default Vue.extend({
editorConfig
:
{
editorConfig
:
{
placeholder
:
'请输入内容...'
placeholder
:
'请输入内容...'
},
},
mode
:
'
default'
// or 'simple'
mode
:
'
simple'
// 设置simple,选中文字不会出现hoverBar
}
}
},
},
methods
:
{
methods
:
{
...
@@ -133,11 +133,11 @@ export default Vue.extend({
...
@@ -133,11 +133,11 @@ export default Vue.extend({
display
:
flex
;
display
:
flex
;
.editor
{
.editor
{
background
:
#fff
;
background
:
#fff
;
/deep/
.w-e-text-container
{
/
/
/
deep/
.w-e-text-container
{
.w-e-hover-bar
{
//
.w-e-hover-bar
{
display
:
none
;
//
display
:
none
;
}
//
}
}
//
}
}
}
.content-label
{
.content-label
{
flex-shrink
:
0
;
flex-shrink
:
0
;
...
...
src/views/ContractManager/prodIndex.vue
View file @
8e02f3b
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<span
slot=
"numberSlot"
slot-scope=
"scope"
>
{{
scope
.
index
+
1
}}
</span>
<span
slot=
"numberSlot"
slot-scope=
"scope"
>
{{
scope
.
index
+
1
}}
</span>
<div
class=
"sub-tabel"
slot=
"labelRelationDetailDTOList"
slot-scope=
"scope"
v-if=
"scope.scope.skuPackageList && scope.scope.skuPackageList.length"
>
<div
class=
"sub-tabel"
slot=
"labelRelationDetailDTOList"
slot-scope=
"scope"
v-if=
"scope.scope.skuPackageList && scope.scope.skuPackageList.length"
>
<GLTable
ref=
"sonTableRef"
:hasPage=
"false"
:tableData=
"scope.scope.skuPackageList"
:tableParams=
"sonTableParams"
:hasNum=
"false"
>
<GLTable
ref=
"sonTableRef"
:hasPage=
"false"
:tableData=
"scope.scope.skuPackageList"
:tableParams=
"sonTableParams"
:hasNum=
"false"
>
<span
slot=
"serviceItemSlot"
slot-scope=
"row"
:data=
"scope.scope"
>
{{
getServiceItemFn
(
scope
.
scope
.
packageType
,
row
.
scope
)
}}
</span>
<span
slot=
"serviceItemSlot"
slot-scope=
"row"
:data=
"scope.scope"
>
{{
scope
.
scope
.
packageType
==
1
?
row
.
scope
.
serviceItems
||
'--'
:
'--'
}}
</span>
<span
slot=
"auth-button"
slot-scope=
"row"
:data=
"scope.scope"
>
<span
slot=
"auth-button"
slot-scope=
"row"
:data=
"scope.scope"
>
<el-button
type=
"text"
v-if=
"scope.scope.packageType == 1"
@
click=
"handlePdf(row.scope)"
>
打印
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.packageType == 1"
@
click=
"handlePdf(row.scope)"
>
打印
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.packageType == 1"
@
click=
"editContract(row.scope)"
>
编辑
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.packageType == 1"
@
click=
"editContract(row.scope)"
>
编辑
</el-button>
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<div>
<div>
<ul>
<ul>
<li
v-for=
"ele in goodInfoList"
:key=
"ele.key"
>
<li
v-for=
"ele in goodInfoList"
:key=
"ele.key"
>
<label
for=
""
class=
"label"
>
{{
ele
.
label
}}
:
</label>
<label
for=
""
class=
"label"
>
{{
ele
.
key
==
'serviceItems'
&&
detailData
.
packageType
==
2
?
'部位'
:
ele
.
label
}}
:
</label>
<span
class=
"val"
>
<span
class=
"val"
>
{{
item
[
ele
.
key
]
||
'--'
}}
{{
item
[
ele
.
key
]
||
'--'
}}
<span
v-if=
"ele.key == 'servicePeriod' && item[ele.key]"
>
年
</span>
<span
v-if=
"ele.key == 'servicePeriod' && item[ele.key]"
>
年
</span>
...
@@ -75,7 +75,7 @@ const throttle = function(fn, time) {
...
@@ -75,7 +75,7 @@ const throttle = function(fn, time) {
}
}
const
MAIN_INFO_LIST
=
[
const
MAIN_INFO_LIST
=
[
{
{
key
:
'packageType'
,
key
:
'packageType
Name
'
,
label
:
'类目'
label
:
'类目'
},
},
{
{
...
@@ -294,11 +294,6 @@ export default {
...
@@ -294,11 +294,6 @@ export default {
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
getServiceItemFn
(
type
,
row
)
{
let
componentArr
=
row
.
componentType
?.
split
(
','
)
||
[]
let
serviceItems
=
type
==
2
?
componentArr
.
map
(
item
=>
PROD_ENUM
[
item
]).
join
(
'/'
)
:
row
.
serviceItems
return
serviceItems
||
'--'
},
viewProdDetail
(
row
)
{
viewProdDetail
(
row
)
{
this
.
detailData
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
this
.
detailData
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
this
.
detailData
.
skuPackageList
.
forEach
(
ele
=>
{
this
.
detailData
.
skuPackageList
.
forEach
(
ele
=>
{
...
@@ -311,7 +306,7 @@ export default {
...
@@ -311,7 +306,7 @@ export default {
ele
.
serviceItems
=
serviceItems
ele
.
serviceItems
=
serviceItems
}
}
})
})
this
.
detailData
.
packageType
=
row
.
packageType
==
1
?
'权益类'
:
'延保类'
this
.
detailData
.
packageType
Name
=
row
.
packageType
==
1
?
'权益类'
:
'延保类'
this
.
drawer
=
true
this
.
drawer
=
true
},
},
getParams
()
{
getParams
()
{
...
...
src/views/beforeSale/editEquity.vue
View file @
8e02f3b
...
@@ -1005,7 +1005,6 @@ export default {
...
@@ -1005,7 +1005,6 @@ export default {
}
}
},
},
inputTdoVal
()
{
inputTdoVal
()
{
console
.
log
(
this
.
TDOTableData
)
if
(
this
.
equityRadio
==
1
)
{
if
(
this
.
equityRadio
==
1
)
{
this
.
handleProductArrParam
(
this
.
tempAttributeList
,
this
.
packageCodeList
)
this
.
handleProductArrParam
(
this
.
tempAttributeList
,
this
.
packageCodeList
)
}
else
{
}
else
{
...
@@ -1293,7 +1292,6 @@ export default {
...
@@ -1293,7 +1292,6 @@ export default {
}
}
})
})
}
}
console
.
log
(
blackArr
,
codeList
,
'codeList'
)
// codeList为已选中产品的packageCode
// codeList为已选中产品的packageCode
for
(
let
i
=
0
;
i
<
blackArr
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
blackArr
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
blackArr
[
i
].
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
blackArr
[
i
].
length
;
j
++
)
{
...
@@ -1552,7 +1550,7 @@ export default {
...
@@ -1552,7 +1550,7 @@ export default {
params
.
tireFlag
=
1
params
.
tireFlag
=
1
}
}
this
.
$apis
.
beforeSale
.
getNewPackageListApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
beforeSale
.
getNewPackageListApi
(
params
).
then
(
res
=>
{
this
.
allProdList
=
res
this
.
allProdList
=
res
||
[]
res
.
forEach
((
item
,
index
)
=>
{
res
.
forEach
((
item
,
index
)
=>
{
let
obj
=
null
let
obj
=
null
let
id
=
-
1
let
id
=
-
1
...
@@ -2116,22 +2114,28 @@ export default {
...
@@ -2116,22 +2114,28 @@ export default {
},
},
// 检查轮胎信息是否已填
// 检查轮胎信息是否已填
checkTDOTableDataFn
()
{
checkTDOTableDataFn
()
{
const
allPageCodeList
=
this
.
equityRadio
==
1
?
this
.
packageCodeList
:
this
.
autoPackageCodeList
console
.
log
(
allPageCodeList
,
this
.
TDOTableData
)
let
isEmpty
=
false
let
isEmpty
=
false
try
{
try
{
this
.
packageCodeList
.
forEach
(
item
=>
{
allPageCodeList
.
forEach
(
item
=>
{
for
(
let
key
in
this
.
TDOTableData
[
item
][
'tireDTONew'
])
{
if
(
this
.
TDOTableData
[
item
])
{
if
(
!
this
.
TDOTableData
[
item
][
'tireDTONew'
][
key
])
{
for
(
let
key
in
this
.
TDOTableData
[
item
][
'tireDTONew'
])
{
throw
new
Error
(
true
)
if
(
!
this
.
TDOTableData
[
item
][
'tireDTONew'
][
key
])
{
throw
new
Error
(
true
)
}
}
}
}
for
(
let
key
in
this
.
TDOTableData
[
item
][
'tireBatchNew'
])
{
for
(
let
key
in
this
.
TDOTableData
[
item
][
'tireBatchNew'
])
{
if
(
!
this
.
TDOTableData
[
item
][
'tireBatchNew'
][
key
])
{
if
(
!
this
.
TDOTableData
[
item
][
'tireBatchNew'
][
key
])
{
throw
new
Error
(
true
)
throw
new
Error
(
true
)
}
}
}
}
else
{
throw
new
Error
(
false
)
}
}
})
})
}
catch
(
error
)
{
}
catch
(
error
)
{
isEmpty
=
true
isEmpty
=
error
.
message
==
'true'
}
}
return
isEmpty
return
isEmpty
},
},
...
...
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