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 5f548bf8
authored
Dec 20, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复轮胎历史数据bug
1 parent
253769cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
22 deletions
src/views/beforeSale/editEquity.vue
src/views/config/index.vue
src/views/beforeSale/editEquity.vue
View file @
5f548bf
...
...
@@ -301,6 +301,7 @@ export default {
PC0005
:
''
,
PC0007
:
''
},
allProdList
:
[],
tdo_list
:
TDO_LiST
,
TDOTableData
:
{},
footerLeft
:
'0'
,
...
...
@@ -1271,20 +1272,7 @@ export default {
}
}
}
if
(
isGetDetail
)
{
blackArr
.
forEach
(
element
=>
{
element
?.
forEach
(
item
=>
{
if
(
item
.
value
.
attributeGroup
==
'tireDTONew'
||
item
.
value
.
attributeGroup
==
'tireBatchNew'
)
{
if
(
!
this
.
TDOTableData
[
item
.
name
])
this
.
$set
(
this
.
TDOTableData
,
item
.
name
,
{})
if
(
this
.
TDOTableData
[
item
.
name
]
&&
!
this
.
TDOTableData
[
item
.
name
][
item
.
value
.
attributeGroup
])
{
this
.
$set
(
this
.
TDOTableData
[
item
.
name
],
item
.
value
.
attributeGroup
,
{})
}
this
.
$set
(
this
.
TDOTableData
[
item
.
name
][
item
.
value
.
attributeGroup
],
item
.
value
.
sort
,
item
.
value
.
attributeValue
)
}
})
})
console
.
log
(
this
.
TDOTableData
,
'isGetDetail'
)
}
else
{
if
(
!
isGetDetail
)
{
codeList
.
forEach
((
item
,
index
)
=>
{
if
(
this
.
TDOTableData
[
item
])
{
for
(
let
key
in
this
.
TDOTableData
[
item
])
{
...
...
@@ -1564,6 +1552,7 @@ export default {
params
.
tireFlag
=
1
}
this
.
$apis
.
beforeSale
.
getNewPackageListApi
(
params
).
then
(
res
=>
{
this
.
allProdList
=
res
res
.
forEach
((
item
,
index
)
=>
{
let
obj
=
null
let
id
=
-
1
...
...
@@ -1727,7 +1716,15 @@ export default {
}
packCode
.
push
(
item
.
packageCode
)
const
_curProdTarget
=
this
.
allProdList
.
find
(
el
=>
el
.
packageCode
==
item
.
packageCode
)
const
hasTire
=
_curProdTarget
?.
groupAttributeList
?.
find
(
el
=>
el
.
attributeGroup
==
'tireDTONew'
||
el
.
attributeGroup
==
'tireBatchNew'
)
if
(
hasTire
&&
!
this
.
TDOTableData
[
item
.
packageCode
])
{
this
.
$set
(
this
.
TDOTableData
,
item
.
packageCode
,
JSON
.
parse
(
JSON
.
stringify
(
TDO_OBJ
)))
}
item
.
attributeDTOList
.
forEach
(
el
=>
{
if
(
this
.
TDOTableData
[
item
.
packageCode
]
&&
(
el
.
attributeGroup
==
'tireDTONew'
||
el
.
attributeGroup
==
'tireBatchNew'
))
{
this
.
$set
(
this
.
TDOTableData
[
item
.
packageCode
][
el
.
attributeGroup
],
el
.
sort
,
el
.
attributeValue
)
}
attrList
.
push
({
...
el
,
packageCode
:
item
.
packageCode
,
...
...
src/views/config/index.vue
View file @
5f548bf
...
...
@@ -8,7 +8,7 @@
<!--
<el-button
size=
"small"
@
click=
"toggleAll"
>
全选
</el-button>
-->
<!--
<el-checkbox
v-model=
"checkbox"
@
change=
"toggleAll"
style=
"margin-left:20px"
>
全选
</el-checkbox>
-->
<div
style=
"float: right;"
class=
"primary_plain_btn"
>
<el-button
size=
"small"
plain
@
click=
"batchOpenSale()"
>
批量开通驻店
销
售
</el-button>
<el-button
size=
"small"
plain
@
click=
"batchOpenSale()"
>
批量开通驻店
零
售
</el-button>
<el-button
size=
"small"
plain
@
click=
"batchOperation(1)"
>
批量开通
</el-button>
<el-button
size=
"small"
@
click=
"batchOperation(2)"
>
批量关闭
</el-button>
<el-button
size=
"small"
@
click=
"exportTable"
>
导出
</el-button>
...
...
@@ -270,11 +270,20 @@ export default {
batchOpenSale
(){
const
data
=
this
.
$refs
.
table
?.
mutiSelectArr
?.[
this
.
tableParams
.
mutiSelectName
]
||
[]
if
(
!
data
?.
length
)
return
this
.
$message
.
error
(
'请选择需要开通的商户'
)
const
ids
=
data
.
map
(
item
=>
item
.
id
)
this
.
$apis
.
openconfig
.
batchOpenSaleModeApi
({
ids
,
saleMode
:
2
}).
then
(
res
=>
{
if
(
res
){
this
.
$message
.
success
(
'操作成功'
)
this
.
$refs
.
table
.
refreshTable
()
this
.
$confirm
(
'确定批量开通驻店零售吗'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
const
ids
=
data
.
map
(
item
=>
item
.
id
)
this
.
$apis
.
openconfig
.
batchOpenSaleModeApi
({
ids
,
saleMode
:
2
}).
then
(
res
=>
{
if
(
res
){
this
.
$message
.
success
(
'操作成功'
)
this
.
$refs
.
table
.
refreshTable
()
}
})
}
}
})
},
...
...
@@ -304,8 +313,7 @@ export default {
this
.
$confirm
(
content
[
status
],
'提示'
,
{
confirmButtonText
:
'是'
,
cancelButtonText
:
'否'
,
type
:
'warning'
,
center
:
true
type
:
'warning'
})
.
then
(()
=>
{
let
target
=
'openConfigs'
...
...
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