Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
welfare
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
达摩4.0重构
welfare
Commits
e864c8d3
Commit
e864c8d3
authored
Mar 02, 2021
by
萱草
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: bug修改
parent
20dd3d47
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
12 deletions
+18
-12
index.html
dist/index.html
+0
-0
app.a0a63180.js
dist/js/app.a0a63180.js
+0
-0
chunk-3339acd5.f072e948.js
dist/js/chunk-3339acd5.f072e948.js
+0
-0
update-real-cost.vue
src/views/gift-manage/module/update-real-cost.vue
+9
-6
update-real-stock.vue
src/views/gift-manage/module/update-real-stock.vue
+9
-6
No files found.
dist/index.html
View file @
e864c8d3
This diff is collapsed.
Click to expand it.
dist/js/app.
c68bde7f
.js
→
dist/js/app.
a0a63180
.js
View file @
e864c8d3
This diff is collapsed.
Click to expand it.
dist/js/chunk-3339acd5.
a827230f
.js
→
dist/js/chunk-3339acd5.
f072e948
.js
View file @
e864c8d3
This diff is collapsed.
Click to expand it.
src/views/gift-manage/module/update-real-cost.vue
View file @
e864c8d3
...
...
@@ -112,10 +112,12 @@ export default {
giftSkuStrand
:
skuList
[
i
].
giftSkuStrand
,
// 礼品sku规格信息
giftId
:
skuList
[
i
].
giftId
});
for
(
let
j
=
0
;
j
<
JSON
.
parse
(
skuList
[
i
].
giftSkuStrand
).
length
;
j
++
)
{
mapData
[
i
].
id
.
push
(
JSON
.
parse
(
skuList
[
i
].
giftSkuStrand
)[
j
].
specStandardValueId
);
if
(
skuList
[
i
].
giftSkuStrand
){
for
(
let
j
=
0
;
j
<
JSON
.
parse
(
skuList
[
i
].
giftSkuStrand
).
length
;
j
++
)
{
mapData
[
i
].
id
.
push
(
JSON
.
parse
(
skuList
[
i
].
giftSkuStrand
)[
j
].
specStandardValueId
);
}
mapData
[
i
].
mapId
=
mapData
[
i
].
id
.
join
(
'_'
);
}
mapData
[
i
].
mapId
=
mapData
[
i
].
id
.
join
(
'_'
);
}
for
(
let
item
of
mapData
)
{
skuSellObj
[
item
.
mapId
]
=
{
...
...
@@ -133,8 +135,7 @@ export default {
this
.
skuSellObj
=
deepClone
(
skuSellObj
);
console
.
log
(
this
.
skuSellObj
);
}
this
.
goodsStandardInfo
=
JSON
.
parse
(
this
.
giftSpecInfo
);
// 礼品规格信息
console
.
log
(
this
.
goodsStandardInfo
);
this
.
goodsStandardInfo
=
this
.
giftSpecInfo
?
JSON
.
parse
(
this
.
giftSpecInfo
)
:
[];
// 礼品规格信息
if
(
this
.
goodsStandardInfo
.
length
>
0
)
{
this
.
isStdImg
=
this
.
goodsStandardInfo
[
0
].
standardimg
===
2
?
true
:
false
;
}
else
{
...
...
@@ -142,6 +143,8 @@ export default {
}
if
(
this
.
goodsStandardInfo
.
length
>
0
)
{
this
.
getSkuList
();
}
else
{
this
.
giftSkuId
=
skuList
[
0
].
giftSkuId
;
}
}
});
...
...
@@ -225,7 +228,7 @@ export default {
}
this
.
skuSellObj
=
deepClone
(
this
.
skuSellObj
);
this
.
costPrice
=
this
.
skuSellObj
[
this
.
goodsSkuList
[
0
].
mapId
].
giftSkuCostPrice
;
this
.
giftSkuId
=
this
.
skuSellObj
[
this
.
goodsSkuList
[
0
].
mapId
].
giftSkuId
;
//
this.giftSkuId = this.skuSellObj[this.goodsSkuList[0].mapId].giftSkuId;
this
.
refash
=
!
this
.
refash
;
},
combine
(
arr
)
{
...
...
src/views/gift-manage/module/update-real-stock.vue
View file @
e864c8d3
...
...
@@ -134,10 +134,12 @@ export default {
giftSkuStrand
:
skuList
[
i
].
giftSkuStrand
,
// 礼品sku规格信息
giftId
:
skuList
[
i
].
giftId
});
for
(
let
j
=
0
;
j
<
JSON
.
parse
(
skuList
[
i
].
giftSkuStrand
).
length
;
j
++
)
{
mapData
[
i
].
id
.
push
(
JSON
.
parse
(
skuList
[
i
].
giftSkuStrand
)[
j
].
specStandardValueId
);
if
(
skuList
[
i
].
giftSkuStrand
){
for
(
let
j
=
0
;
j
<
JSON
.
parse
(
skuList
[
i
].
giftSkuStrand
).
length
;
j
++
)
{
mapData
[
i
].
id
.
push
(
JSON
.
parse
(
skuList
[
i
].
giftSkuStrand
)[
j
].
specStandardValueId
);
}
mapData
[
i
].
mapId
=
mapData
[
i
].
id
.
join
(
'_'
);
}
mapData
[
i
].
mapId
=
mapData
[
i
].
id
.
join
(
'_'
);
}
for
(
let
item
of
mapData
)
{
skuSellObj
[
item
.
mapId
]
=
{
...
...
@@ -155,8 +157,7 @@ export default {
this
.
skuSellObj
=
deepClone
(
skuSellObj
);
console
.
log
(
this
.
skuSellObj
);
}
this
.
goodsStandardInfo
=
JSON
.
parse
(
this
.
giftSpecInfo
);
// 礼品规格信息
console
.
log
(
this
.
goodsStandardInfo
);
this
.
goodsStandardInfo
=
this
.
giftSpecInfo
?
JSON
.
parse
(
this
.
giftSpecInfo
)
:
[];
// 礼品规格信息
if
(
this
.
goodsStandardInfo
.
length
>
0
)
{
this
.
isStdImg
=
this
.
goodsStandardInfo
[
0
].
standardimg
===
2
?
true
:
false
;
}
else
{
...
...
@@ -164,6 +165,8 @@ export default {
}
if
(
this
.
goodsStandardInfo
.
length
>
0
)
{
this
.
getSkuList
();
}
else
{
this
.
giftSkuId
=
skuList
[
0
].
giftSkuId
;
}
}
});
...
...
@@ -290,7 +293,7 @@ export default {
}
}
this
.
skuSellObj
=
deepClone
(
this
.
skuSellObj
);
this
.
giftSkuId
=
this
.
skuSellObj
[
this
.
goodsSkuList
[
0
].
mapId
].
giftSkuId
;
//
this.giftSkuId = this.skuSellObj[this.goodsSkuList[0].mapId].giftSkuId;
console
.
log
(
this
.
skuSellObj
);
this
.
refash
=
!
this
.
refash
;
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment