Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
E
etao-sjht-sd
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张志伟
etao-sjht-sd
提交
28452edf
提交
28452edf
编写于
8月 23, 2025
作者:
zhangzhiwei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
.
上级
7cfbe339
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
234 行增加
和
252 行删除
+234
-252
index.html
dist/index.html
+1
-1
app.43d747e667668ec5e9cd1b139a493cf4.css
dist/static/css/app.43d747e667668ec5e9cd1b139a493cf4.css
+1
-0
app.62556b3d72455819fde5f9ac3c5a980c.css
dist/static/css/app.62556b3d72455819fde5f9ac3c5a980c.css
+0
-1
0.fae18df2c0fe5bee18a6.js
dist/static/js/0.fae18df2c0fe5bee18a6.js
+4
-4
manifest.2d26e083c7b7eb381764.js
dist/static/js/manifest.2d26e083c7b7eb381764.js
+1
-1
AddActivityProduct.vue
...pages/marketing/activityCopy/model/AddActivityProduct.vue
+227
-245
未找到文件。
dist/index.html
浏览文件 @
28452edf
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
><link
rel=
icon
type=
image/x-icon
href=
./static/favicon.ico
><link
rel=
stylesheet
href=
//at.alicdn.com/t/font_1586872_yhll0m2jcs.css
><title>
EDS供货商
</title><link
href=
/static/css/app.62556b3d72455819fde5f9ac3c5a980c.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.ce6ce250fafdef5a6f4e.js
></script><script
type=
text/javascript
src=
/static/js/vendor.02a8d01969b52bb78b9a.js
></script><script
type=
text/javascript
src=
/static/js/app.e647228d38e85cf56243.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
><link
rel=
icon
type=
image/x-icon
href=
./static/favicon.ico
><link
rel=
stylesheet
href=
//at.alicdn.com/t/font_1586872_yhll0m2jcs.css
><title>
EDS供货商
</title><link
href=
/static/css/app.43d747e667668ec5e9cd1b139a493cf4.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.2d26e083c7b7eb381764.js
></script><script
type=
text/javascript
src=
/static/js/vendor.02a8d01969b52bb78b9a.js
></script><script
type=
text/javascript
src=
/static/js/app.e647228d38e85cf56243.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.43d747e667668ec5e9cd1b139a493cf4.css
0 → 100644
浏览文件 @
28452edf
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
dist/static/css/app.62556b3d72455819fde5f9ac3c5a980c.css
已删除
100644 → 0
浏览文件 @
7cfbe339
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
dist/static/js/0.
76ed2655edbf8d3e7509
.js
→
dist/static/js/0.
fae18df2c0fe5bee18a6
.js
浏览文件 @
28452edf
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
dist/static/js/manifest.
ce6ce250fafdef5a6f4e
.js
→
dist/static/js/manifest.
2d26e083c7b7eb381764
.js
浏览文件 @
28452edf
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
c
,
a
){
for
(
var
i
,
u
,
f
,
s
=
0
,
l
=
[];
s
<
r
.
length
;
s
++
)
u
=
r
[
s
],
t
[
u
]
&&
l
.
push
(
t
[
u
][
0
]),
t
[
u
]
=
0
;
for
(
i
in
c
)
Object
.
prototype
.
hasOwnProperty
.
call
(
c
,
i
)
&&
(
e
[
i
]
=
c
[
i
]);
for
(
n
&&
n
(
r
,
c
,
a
);
l
.
length
;)
l
.
shift
()();
if
(
a
)
for
(
s
=
0
;
s
<
a
.
length
;
s
++
)
f
=
o
(
o
.
s
=
a
[
s
]);
return
f
};
var
r
=
{},
t
=
{
6
:
0
};
function
o
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
t
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
t
.
exports
,
t
,
t
.
exports
,
o
),
t
.
l
=!
0
,
t
.
exports
}
o
.
e
=
function
(
e
){
var
n
=
t
[
e
];
if
(
0
===
n
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
n
)
return
n
[
2
];
var
r
=
new
Promise
(
function
(
r
,
o
){
n
=
t
[
e
]
=
[
r
,
o
]});
n
[
2
]
=
r
;
var
c
=
document
.
getElementsByTagName
(
"head"
)[
0
],
a
=
document
.
createElement
(
"script"
);
a
.
type
=
"text/javascript"
,
a
.
charset
=
"utf-8"
,
a
.
async
=!
0
,
a
.
timeout
=
12
e4
,
o
.
nc
&&
a
.
setAttribute
(
"nonce"
,
o
.
nc
),
a
.
src
=
o
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"76ed2655edbf8d3e7509"
,
3
:
"ca2708494961454b4374"
,
4
:
"c569c81ffe41d4800bf8"
,
5
:
"cb7f3344fd930f577a5c"
}[
e
]
+
".js"
;
var
i
=
setTimeout
(
u
,
12
e4
);
function
u
(){
a
.
onerror
=
a
.
onload
=
null
,
clearTimeout
(
i
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
a
.
onerror
=
a
.
onload
=
u
,
c
.
appendChild
(
a
),
r
},
o
.
m
=
e
,
o
.
c
=
r
,
o
.
d
=
function
(
e
,
n
,
r
){
o
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
o
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
o
.
d
(
n
,
"a"
,
n
),
n
},
o
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
o
.
p
=
"/"
,
o
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
c
,
a
){
for
(
var
i
,
u
,
f
,
s
=
0
,
l
=
[];
s
<
r
.
length
;
s
++
)
u
=
r
[
s
],
t
[
u
]
&&
l
.
push
(
t
[
u
][
0
]),
t
[
u
]
=
0
;
for
(
i
in
c
)
Object
.
prototype
.
hasOwnProperty
.
call
(
c
,
i
)
&&
(
e
[
i
]
=
c
[
i
]);
for
(
n
&&
n
(
r
,
c
,
a
);
l
.
length
;)
l
.
shift
()();
if
(
a
)
for
(
s
=
0
;
s
<
a
.
length
;
s
++
)
f
=
o
(
o
.
s
=
a
[
s
]);
return
f
};
var
r
=
{},
t
=
{
6
:
0
};
function
o
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
t
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
t
.
exports
,
t
,
t
.
exports
,
o
),
t
.
l
=!
0
,
t
.
exports
}
o
.
e
=
function
(
e
){
var
n
=
t
[
e
];
if
(
0
===
n
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
n
)
return
n
[
2
];
var
r
=
new
Promise
(
function
(
r
,
o
){
n
=
t
[
e
]
=
[
r
,
o
]});
n
[
2
]
=
r
;
var
c
=
document
.
getElementsByTagName
(
"head"
)[
0
],
a
=
document
.
createElement
(
"script"
);
a
.
type
=
"text/javascript"
,
a
.
charset
=
"utf-8"
,
a
.
async
=!
0
,
a
.
timeout
=
12
e4
,
o
.
nc
&&
a
.
setAttribute
(
"nonce"
,
o
.
nc
),
a
.
src
=
o
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"fae18df2c0fe5bee18a6"
,
3
:
"ca2708494961454b4374"
,
4
:
"c569c81ffe41d4800bf8"
,
5
:
"cb7f3344fd930f577a5c"
}[
e
]
+
".js"
;
var
i
=
setTimeout
(
u
,
12
e4
);
function
u
(){
a
.
onerror
=
a
.
onload
=
null
,
clearTimeout
(
i
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
a
.
onerror
=
a
.
onload
=
u
,
c
.
appendChild
(
a
),
r
},
o
.
m
=
e
,
o
.
c
=
r
,
o
.
d
=
function
(
e
,
n
,
r
){
o
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
o
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
o
.
d
(
n
,
"a"
,
n
),
n
},
o
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
o
.
p
=
"/"
,
o
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/pages/marketing/activityCopy/model/AddActivityProduct.vue
浏览文件 @
28452edf
<
style
>
.actHead
{
background
:
#ffe0cc
;
padding
:
10px
20px
;
color
:
#ff6600
;
border-radius
:
25px
;
margin-right
:
10px
;
}
</
style
>
<
template
>
<
template
>
<div
class=
"goods-list"
style=
"width: 1100px"
>
<div
class=
"goods-list"
v-loading=
"loading"
>
<el-dialog
<toptitle
name=
"添加活动商品"
>
top=
"3vh"
<el-button
type=
"primary"
@
click=
"goback"
>
title=
"查看活动规则"
返回
width=
"1040px"
</el-button>
:visible
.
sync=
"dialogVisible"
>
<img
:src=
"`https://img.edsmall.com/ROOT/ETao/resource/actHelp730.png?t=$
{new Date().getTime()}`" alt="">
</el-dialog>
<toptitle
name=
"活动报名"
>
</toptitle>
</toptitle>
<div
v-if=
"zoneList.length!=0"
>
<div
style=
"display: flex;align-items: center;width: 1200px"
>
<div
style=
"display: flex;justify-content: space-between;margin: 10px 15px"
>
<div
style=
"width: 45%"
>
<div
style=
"display: flex"
>
<p
style=
"margin-bottom: 10px"
>
未参加活动的商品
</p>
<div
class=
"actHead"
style=
"padding-right: 6px"
>
<div
class=
"search-wrap"
>
活动报名时间:
{{
applyEndDate
}}
&
nbsp
&
nbsp
<div
class=
"search-box"
>
<div
class=
"search-item"
>
<el-input
style=
"width: 220px"
clearable
v-model=
"params2.search"
placeholder=
"请输入商品SPU ID/SKU型号"
></el-input>
</div>
<div
class=
"search-item"
>
<el-button
type=
"primary"
@
click=
"onSearch"
>
搜索
</el-button>
</div>
</div>
</div>
<!--
<div
class=
"actHead"
@
click=
"dialogVisible=true"
style=
"cursor: pointer"
>
-->
</div>
<!--查看活动规则-->
<div>
<!--
</div>
-->
<el-table
<el-button
type=
"primary"
@
click=
"goback"
v-if=
"showUpdateBtn"
>
height=
"600px"
添加活动商品
style=
"overflow-y: scroll;width: 100%"
</el-button>
border
v-loading=
"loading"
ref=
"multipleTable"
:data=
"actSkuList2"
tooltip-effect=
"dark"
@
selection-change=
"handleSelectionChange"
stripe
>
<el-table-column
type=
"selection"
width=
"70"
align=
"center"
></el-table-column>
<el-table-column
prop=
"skuImg"
label=
"商品"
align=
"center"
width=
"100"
>
<template
slot-scope=
"scope"
>
<div
class=
""
>
<image-alert
showDefaultImg
:image=
"scope.row.mainImg"
></image-alert>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"spuModel"
label=
"SPU型号"
align=
"center"
width=
"100"
></el-table-column>
<el-table-column
prop=
"skuModel"
label=
"SKU型号"
align=
"center"
></el-table-column>
</el-table>
</div>
<div
class=
"pagination-box"
style=
"margin-top: 10px"
>
共{{total2}}条
<el-pagination
:page-size=
"20"
:current-page=
"params2.pageNum"
@
current-change=
"eventSizeChange2"
background
layout=
"prev, pager, next"
:total=
"total2"
>
</el-pagination>
</div>
</div>
</div>
</div>
<el-tabs
v-model=
"activeStatus"
@
tab-click=
"handleClick"
>
<div
style=
"width: 10%;text-align: center"
>
<el-tab-pane
:name=
"item.actId"
v-for=
"item in zoneList"
:key=
"item.actId"
>
<div
style=
"margin-bottom: 10px"
>
<span
slot=
"label"
>
{{
item
.
actName
}}
(
{{
item
.
count
}}
)
</span>
<el-button
type=
"primary"
@
click=
"addActGoods"
:loading=
"otherLoading"
>
确认添加>
</el-button>
</el-tab-pane>
</div>
</el-tabs>
<div>
<div
class=
"search-wrap"
>
<el-button
@
click=
"delActGoods"
:loading=
"otherLoading1"
>
<
确认剔除</
el-button
>
<div
class=
"search-box"
>
<div
class=
"search-item"
>
<span
class=
"label"
>
商品编号:
</span>
<el-input
class=
"input"
@
keyup
.
enter
.
native=
"onSearch"
clearable
v-model=
"params.search"
placeholder=
"请输入商品SPU ID/SKU型号"
></el-input>
</div>
<div
class=
"search-item"
v-if=
"isShowPreList"
>
<span
class=
"label"
>
专区:
</span>
<el-select
class=
"input"
style=
"width:120px;"
clearable
v-model=
"params.type"
placeholder=
"请选择专区"
>
<el-option
v-for=
"item in preList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"search-item"
>
<el-button
type=
"primary"
size=
"medium "
@
click=
"onSearch"
>
搜索
</el-button>
<el-button
size=
"medium "
@
click=
"onReset"
>
重置
</el-button>
</div>
</div>
</div>
</div>
</div>
<div>
<div
style=
"width: 45%"
>
<el-table
<p
style=
"margin-bottom: 10px"
>
参加活动的商品
</p>
v-loading=
"loading"
<div
class=
"search-wrap"
>
ref=
"multipleTable"
<div
class=
"search-box"
>
:data=
"actSkuList"
<div
class=
"search-item"
>
tooltip-effect=
"dark"
<el-input
style=
"width: 220px"
clearable
v-model=
"params.search"
style=
"width: 100%"
placeholder=
"请输入商品SPU ID/SKU型号"
></el-input>
@
selection-change=
"handleSelectionChange"
</div>
stripe
<div
class=
"search-item"
>
>
<el-button
type=
"primary"
@
click=
"onSearch2"
>
搜索
</el-button>
<el-table-column
type=
"selection"
width=
"70"
align=
"center"
></el-table-column>
<el-table-column
prop=
"skuImg"
label=
"商品"
align=
"center"
>
<template
slot-scope=
"scope"
>
<div
style=
"display: flex"
>
<div>
<img
style=
"width:80px"
:src=
"scope.row.mainImg"
alt=
""
>
</div>
<div>
<p>
SPU:
{{
scope
.
row
.
spuId
}}
</p>
<p
v-if=
"scope.row.zoneIcon"
><img
style=
"width:30px"
:src=
"scope.row.zoneIcon"
alt=
""
></p>
<p>
交货期:
{{
scope
.
row
.
deliveryTimeStr
}}
</p>
</div>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"skuModel"
label=
"SKU型号"
align=
"center"
></el-table-column>
<el-table-column
label=
"库存"
align=
"center"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<div>
库存数量:
{{
scope
.
row
.
stock
}}
</div>
<div>
占用库存:
{{
scope
.
row
.
virtualQty
}}
</div>
<div>
可用库存:
{{
scope
.
row
.
usableStock
}}
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"日常价"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<div>
供货价:
{{
scope
.
row
.
supplyPrice
}}
</div>
<div
v-if=
"!priceformulaId"
>
采购价:
{{
scope
.
row
.
purchasePrice
}}
</div>
<div
v-if=
"!priceformulaId"
>
优惠价:
{{
scope
.
row
.
salePrice
}}
</div>
<div
v-if=
"!priceformulaId"
>
零售价:
{{
scope
.
row
.
productPrice
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"actSkuAddDate"
label=
"添加时间"
align=
"center"
v-if=
"activeStatus!='defaultActRegist'"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"100px"
v-if=
"showUpdateBtn&&activeStatus!='defaultActRegist'"
>
<
template
slot-scope=
"scope"
>
<div
class=
"edit"
@
click=
"passExamineBL(0,scope.row.skuId)"
>
<span
>
剔除
</span>
</div>
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination-box"
>
<div
v-if=
"showUpdateBtn&&activeStatus!='defaultActRegist'"
>
<el-button
style=
"margin-right: 20px"
@
click=
"toggleSelection()"
>
全选
</el-button>
<div>
<span>
已选{{selection.length}}个商品
</span>
<el-button
size=
"mini"
@
click=
"passExamineBL(1)"
type=
"primary"
>
批量剔除
</el-button>
</div>
</div>
</div>
</div>
<pagination
</div>
@
eventSizeChange=
"eventSizeChange"
<div>
@
eventCurrentChange=
"eventCurrentChange"
<el-table
:total=
"total"
border
:pageSize=
"params.pageSize"
v-loading=
"loading"
:currentPage=
"params.pageNum"
ref=
"multipleTable"
:pagerCount=
'5'
:data=
"actSkuList"
></pagination>
tooltip-effect=
"dark"
height=
"600px"
style=
"overflow-y: scroll;width: 100%"
@
selection-change=
"handleSelectionChange2"
stripe
>
<el-table-column
type=
"selection"
width=
"70"
align=
"center"
></el-table-column>
<el-table-column
prop=
"skuImg"
label=
"商品"
align=
"center"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<div
class=
""
>
<image-alert
showDefaultImg
:image=
"scope.row.mainImg"
></image-alert>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"spuModel"
label=
"SPU型号"
align=
"center"
width=
"100"
></el-table-column>
<el-table-column
prop=
"skuModel"
label=
"SKU型号"
align=
"center"
></el-table-column>
</el-table>
</div>
<div
class=
"pagination-box"
style=
"margin-top: 10px"
>
共{{total}}条
<el-pagination
:page-size=
"20"
:current-page=
"params.pageNum"
@
current-change=
"eventSizeChange"
background
layout=
"prev, pager, next"
:total=
"total"
>
</el-pagination>
</div>
</div>
</div>
</div>
</div>
</div>
<div
style=
"text-align: center;margin-top: -10px"
v-else
>
<img
style=
"width: 600px;height: 400px"
src=
"../../../../static/img/index/noact.png"
alt=
""
>
<p
style=
"color: #999999;"
>
暂无相关活动,敬请期待!
</p>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
_getStorage
}
from
'@/utils/utils'
import
pagination
from
"@/components/common/pagination"
;
import
pagination
from
"@/components/common/pagination"
;
import
toptitle
from
"@/components/common/topTitle"
;
import
toptitle
from
"@/components/common/topTitle"
;
import
imageAlert
from
"@/components/common/imageAlert"
;
export
default
{
export
default
{
name
:
"list"
,
name
:
"list"
,
components
:
{
components
:
{
pagination
,
pagination
,
toptitle
,
toptitle
,
imageAlert
},
},
data
()
{
data
()
{
return
{
return
{
priceformulaId
:
null
,
otherLoading
:
false
,
showUpdateBtn
:
true
,
otherLoading1
:
false
,
isShowPreList
:
true
,
isAct
:
false
,
applyEndDate
:
""
,
dialogVisible
:
false
,
activeStatus
:
""
,
loading
:
false
,
loading
:
false
,
preList
:
[
{
value
:
99
,
label
:
"全部"
,
},
// {
// value: 1,
// label: "优选",
// }, {
// value: 2,
// label: "严选",
// },
{
value
:
11
,
label
:
"铂金"
,
},
{
value
:
10
,
label
:
"淘淘淘"
,
},
],
selection
:
[],
selection
:
[],
total
:
200
,
total
:
200
,
total2
:
200
,
params2
:
{
pageSize
:
20
,
pageNum
:
1
,
search
:
""
,
type
:
""
,
actType
:
""
,
},
params
:
{
params
:
{
pageSize
:
20
,
pageSize
:
20
,
pageNum
:
1
,
pageNum
:
1
,
search
:
""
,
search
:
""
,
type
:
99
,
type
:
""
,
actType
:
""
,
},
},
zoneList
:
[],
actSkuList
:
[],
actSkuList
:
[],
actSkuList2
:
[],
delSelection
:
[],
temType
:
null
,
temActId
:
null
,
delSelectionAct
:[],
};
};
},
},
mounted
()
{
mounted
()
{
this
.
priceformulaId
=
_getStorage
(
'priceformulaId'
)
if
(
this
.
$route
.
query
)
{
this
.
init
();
this
.
temType
=
this
.
$route
.
query
.
type
;
this
.
temActId
=
this
.
$route
.
query
.
actId
;
}
this
.
init
()
},
},
methods
:
{
methods
:
{
toggleSelection
()
{
init
(){
this
.
$refs
.
multipleTable
.
toggleAllSelection
();
this
.
getNotRegistsList
();
this
.
getRegisteredList
();
},
},
async
init
()
{
// 未参加活动的商品
await
this
.
getZoneList
();
getNotRegistsList
()
{
},
this
.
loading
=
true
;
goback
()
{
this
.
$axios
.
post
(
"/actregist/notRegistsList"
,
{
this
.
$router
.
push
(
"/marketing/AddActivityProduct"
);
...
this
.
params2
,
},
"actId"
:
this
.
temType
==
2
?
this
.
temActId
:
'f4f15eac-0699-11ed-9da2-7cd30aeb12-7z'
,
delActGoods
()
{
this
.
$axios
.
post
(
"/actLocalRegist/delActGoods"
,
{
skuIds
:
this
.
selection
,
"actId"
:
this
.
activeStatus
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
let
{
code
,
msg
}
=
res
.
data
;
let
{
code
,
data
}
=
res
.
data
;
if
(
code
==
200
)
{
if
(
code
===
200
)
{
this
.
getZoneList
();
this
.
actSkuList2
=
data
.
list
;
this
.
$message
.
success
(
msg
);
this
.
total2
=
parseInt
(
data
.
total
);
this
.
selection
=
[];
}
else
{
}
else
{
this
.
$message
.
error
(
msg
);
this
.
actSkuList2
=
[];
this
.
total2
=
0
;
}
}
this
.
loading
=
false
;
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
loading
=
false
;
});
});
},
},
passExamineBL
(
status
,
skuId
)
{
// 参加活动的商品
var
msg
=
status
==
1
?
"批量"
:
""
;
getRegisteredList
()
{
if
(
status
==
1
)
{
this
.
loading
=
true
;
if
(
this
.
selection
.
length
==
0
)
{
this
.
$axios
.
post
(
"/actregist/registered"
,
{
this
.
$message
(
"请选择要"
+
msg
+
"剔除的商品"
);
return
false
;
}
}
this
.
$confirm
(
"确定要"
+
msg
+
"剔除商品?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
if
(
status
==
0
)
{
this
.
selection
=
[
skuId
];
}
this
.
delActGoods
();
})
.
catch
(()
=>
{
});
},
getActSkuList
()
{
this
.
$axios
.
post
(
"/actLocalRegist/actSkuList"
,
{
...
this
.
params
,
...
this
.
params
,
"actId"
:
this
.
activeStatus
,
"actId"
:
this
.
temType
==
2
?
this
.
temActId
:
'f4f15eac-0699-11ed-9da2-7cd30aeb12-7z'
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
.
data
;
let
{
code
,
data
}
=
res
.
data
;
if
(
code
===
200
)
{
if
(
code
===
200
)
{
this
.
total
=
parseInt
(
data
.
total
);
this
.
total
=
parseInt
(
data
.
total
);
this
.
actSkuList
=
data
.
list
;
this
.
actSkuList
=
data
.
list
;
}
else
{
}
else
{
this
.
actSkuList
=
[]
this
.
actSkuList
=
[];
this
.
total
=
0
this
.
total
=
0
;
}
}
this
.
loading
=
false
;
}).
catch
(()
=>
{
this
.
loading
=
false
;
});
});
},
},
getZoneList
()
{
delActGoods
()
{
this
.
$axios
.
get
(
"/actLocalRegist/zoneList"
).
then
(
res
=>
{
if
(
this
.
delSelection
.
length
==
0
)
{
let
{
code
,
data
}
=
res
.
data
;
this
.
$message
.
warning
(
"请选择要剔除的商品"
);
if
(
code
===
200
)
{
return
;
this
.
showUpdateBtn
=
data
.
showUpdateBtn
}
this
.
applyEndDate
=
data
.
applyEndDate
;
let
params
=
{
this
.
zoneList
=
data
.
list
;
id
:
this
.
delSelectionAct
,
if
(
data
.
list
[
0
].
actType
==
1
||
data
.
list
[
0
].
actType
==
2
){
skuIds
:
this
.
delSelection
,
this
.
isShowPreList
=
false
actId
:
this
.
temType
==
2
?
this
.
temActId
:
'f4f15eac-0699-11ed-9da2-7cd30aeb12-7z'
,
}
}
if
(
this
.
activeStatus
==
0
||!
this
.
activeStatus
){
// if(this.temType==2){
this
.
activeStatus
=
data
.
list
[
0
].
actId
;
// params={
// id:this.delSelection
// }
// }
this
.
otherLoading1
=
true
;
this
.
$axios
.
post
(
"/actregist/delActGoods"
,
params
).
then
(
res
=>
{
let
{
code
,
msg
}
=
res
.
data
;
if
(
code
==
200
)
{
if
(
this
.
actSkuList
.
length
-
this
.
delSelection
.
length
==
0
){
this
.
params
.
pageNum
=
1
}
}
this
.
getActSkuList
();
this
.
init
()
this
.
$message
.
success
(
msg
);
this
.
otherLoading1
=
false
;
}
else
{
}
else
{
this
.
isAct
=
true
;
this
.
$message
.
error
(
msg
);
this
.
otherLoading1
=
false
;
}
}
}).
catch
(()
=>
{
this
.
otherLoading1
=
false
;
});
});
},
},
handleClick
(
e
)
{
addActGoods
()
{
let
actType
=
this
.
zoneList
[
Number
(
e
.
index
)].
actType
;
if
(
this
.
selection
.
length
==
0
)
{
if
(
actType
==
1
||
actType
==
2
){
this
.
$message
.
warning
(
"请选择要添加的商品"
);
this
.
isShowPreList
=
false
return
;
}
else
{
this
.
isShowPreList
=
true
}
}
this
.
params
.
pageNum
=
1
;
this
.
otherLoading
=
true
;
this
.
getActSkuList
();
this
.
$axios
.
post
(
"/actregist/addActGoods"
,
{
skuIds
:
this
.
selection
,
"actId"
:
this
.
temType
==
2
?
this
.
temActId
:
'f4f15eac-0699-11ed-9da2-7cd30aeb12-7z'
,
}).
then
(
res
=>
{
let
{
code
,
msg
}
=
res
.
data
;
if
(
code
==
200
)
{
if
(
this
.
actSkuList2
.
length
-
this
.
selection
.
length
==
0
)
{
this
.
params2
.
pageNum
=
1
;
}
this
.
init
()
this
.
$message
.
success
(
msg
);
this
.
otherLoading
=
false
;
}
else
{
this
.
otherLoading
=
false
;
this
.
$message
.
error
(
msg
);
}
}).
catch
(()
=>
{
this
.
otherLoading
=
false
;
});
},
},
onSearch
()
{
onSearch
()
{
this
.
params
.
pageNum
=
1
;
this
.
params
2
.
pageNum
=
1
;
this
.
get
ActSku
List
();
this
.
get
NotRegists
List
();
},
},
onReset
()
{
onSearch2
()
{
this
.
params
=
{
this
.
params
.
pageNum
=
1
;
pageSize
:
20
,
this
.
getRegisteredList
();
pageNum
:
1
,
search
:
""
,
type
:
99
,
};
this
.
getActSkuList
();
},
},
handleSelectionChange
(
e
)
{
handleSelectionChange
(
e
)
{
this
.
selection
=
[...
new
Set
(
e
.
map
(
t
=>
t
.
skuId
))];
this
.
selection
=
[...
new
Set
(
e
.
map
(
t
=>
t
his
.
temType
==
2
?
t
.
skuId
:
t
.
skuId
))];
},
},
eventSizeChange
(
e
)
{
handleSelectionChange2
(
e
)
{
this
.
params
.
pageSize
=
e
;
this
.
delSelectionAct
=
[...
new
Set
(
e
.
map
(
t
=>
t
.
skuActId
))];
this
.
getActSkuList
();
this
.
delSelection
=
[...
new
Set
(
e
.
map
(
t
=>
t
.
skuId
))];
},
eventSizeChange2
(
e
)
{
this
.
params2
.
pageNum
=
e
;
this
.
getNotRegistsList
();
},
},
event
Current
Change
(
e
)
{
event
Size
Change
(
e
)
{
this
.
params
.
pageNum
=
e
;
this
.
params
.
pageNum
=
e
;
this
.
getActSkuList
();
this
.
getRegisteredList
();
},
goback
(){
this
.
$router
.
push
(
"/marketing/activityMall-act"
);
},
},
},
},
};
};
...
@@ -376,6 +357,7 @@
...
@@ -376,6 +357,7 @@
.pagination-box
{
.pagination-box
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
// justify-content: space-between;
// justify-content: space-between;
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录