Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
9809a98a
Commit
9809a98a
authored
Aug 12, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a73e55c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
23 deletions
+28
-23
pintuanActive.vue
src/components/pintuan/pintuanActive.vue
+18
-13
groupStep.vue
src/components/pintuan/pintuanPlugin/groupStep.vue
+10
-10
No files found.
src/components/pintuan/pintuanActive.vue
View file @
9809a98a
...
...
@@ -150,8 +150,8 @@
<i
class=
"elzk el-tooltip el-icon-info"
></i>
</el-tooltip>
</
template
>
<goodsSpe
v-show=
"IsShowSpec"
@
getSpecList=
"getSpecList"
@
getSpecPriceList=
"getSpecPriceList"
:SpecList=
"TempSpecList"
:SpecPriceList=
"TempSpecPriceList"
></goodsSpe>
<goodsSpe
v-show=
"IsShowSpec"
@
getSpecList=
"getSpecList"
@
getSpecPriceList=
"getSpecPriceList"
:Spec
List=
"TempSpecList"
:Spec
PriceList=
"TempSpecPriceList"
></goodsSpe>
</el-form-item>
<el-form-item
label=
"商品货号"
>
<el-input
v-model=
"addMsg.Goods_no"
size=
"small"
:disabled=
"true"
placeholder=
"请输入商品货号"
...
...
@@ -392,8 +392,8 @@
</el-card>
</el-tab-pane>
<el-tab-pane
label=
"阶梯团设置"
>
<groupStep
:Goods=
"addMsg"
:GroupList=
"GroupList"
@
getGroup=
"getGroup"
:SpecList=
"TempSpec
List"
:
GroupPriceList=
"TempGroupPriceList"
:
SpecPriceList=
"TempSpecPriceList"
></groupStep>
<groupStep
@
getGroup=
"getGroup"
:SpecList=
"TempSpecList"
:GroupPriceList=
"TempGroupPrice
List"
:SpecPriceList=
"TempSpecPriceList"
></groupStep>
</el-tab-pane>
<el-tab-pane
label=
"分销价设置"
>
<distributePrice
:shareGroup_list=
"shareGroup_list"
></distributePrice>
...
...
@@ -531,7 +531,7 @@
GroupList
:
[],
//阶梯价格列表
TempSpecList
:
[],
//规格列表
TempSpecPriceList
:
[],
//规格价格列表
TempGroupPriceList
:
[],
//阶梯团价
TempGroupPriceList
:
[],
//阶梯团价
serviceDig
:
false
,
serviceList
:
[],
//新增服务弹出数据
...
...
@@ -566,7 +566,7 @@
ActivityId
:
this
.
addMsg
.
ActivityId
}
this
.
apipost
(
"/api/GroupBuy/GetGroupbuyActivity"
,
qMsg
,
res
=>
{
console
.
log
(
"GetGroupbuyActivity"
,
res
);
console
.
log
(
"GetGroupbuyActivity"
,
res
.
data
.
data
);
if
(
res
.
data
.
resultCode
==
1
)
{
let
Mydata
=
res
.
data
.
data
;
this
.
addMsg
.
StartTime
=
Mydata
.
StartTimeStr
;
...
...
@@ -603,16 +603,21 @@
this
.
addMsg
.
App_share_title
=
Mydata
.
App_share_title
;
this
.
addMsg
.
App_share_pic
=
Mydata
.
App_share_pic
;
this
.
addMsg
.
IsCustomSpecification
=
Mydata
.
IsCustomSpecification
;
if
(
Mydata
.
SpecificationList
&&
Mydata
.
SpecificationList
.
length
>
0
)
{
if
(
Mydata
.
SpecificationList
&&
Mydata
.
SpecificationList
.
length
>
0
)
{
this
.
addMsg
.
SpecificationList
=
Mydata
.
SpecificationList
;
//规格赋值
this
.
TempSpecList
=
Mydata
.
SpecificationList
;
}
if
(
Mydata
.
SpecificationPriceList
&&
Mydata
.
SpecificationPriceList
.
length
>
0
)
{
if
(
Mydata
.
SpecificationPriceList
&&
Mydata
.
SpecificationPriceList
.
length
>
0
)
{
this
.
addMsg
.
SpecificationPriceList
=
Mydata
.
SpecificationPriceList
;
//规格列表赋值
this
.
TempSpecPriceList
=
JSON
.
parse
(
JSON
.
stringify
(
Mydata
.
SpecificationPriceList
));
}
this
.
IsShowSpec
=
true
;
if
(
Mydata
.
GroupList
&&
Mydata
.
GroupList
.
length
>
0
)
{
this
.
addMsg
.
GroupList
=
Mydata
.
GroupList
;
this
.
TempGroupPriceList
=
Mydata
.
GroupList
;
}
this
.
IsShowSpec
=
true
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -746,15 +751,15 @@
},
//获取子组件group_list
getGroup
(
group_list
)
{
this
.
shareGroup_list
=
group_list
this
.
TempGroupPriceList
=
group_list
;
this
.
addMsg
.
GroupList
=
group_list
;
},
//获取子组件规格
getSpecList
(
val
){
getSpecList
(
val
)
{
this
.
addMsg
.
SpecificationList
=
val
;
},
//获取子组件规格价格列表
getSpecPriceList
(
val
){
getSpecPriceList
(
val
)
{
this
.
addMsg
.
SpecificationPriceList
=
val
;
}
}
...
...
src/components/pintuan/pintuanPlugin/groupStep.vue
View file @
9809a98a
...
...
@@ -18,13 +18,13 @@
<div
class=
"header-require"
>
拼团人数
</div>
</
template
>
<
template
slot-scope=
"scope"
>
<el-input
v-model=
"scope.row.
people_n
um"
size=
"small"
type=
"text"
maxlength=
"5"
<el-input
v-model=
"scope.row.
People_N
um"
size=
"small"
type=
"text"
maxlength=
"5"
oninput=
"this.value = this.value.replace(/[^0-9]/, '')"
placeholder=
"请输入拼团人数"
></el-input>
</
template
>
</el-table-column>
<el-table-column
label=
"团长优惠"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<el-input
type=
"text"
v-model=
"scope.row.
preferential_p
rice"
size=
"small"
placeholder=
"请输入团长优惠"
>
<el-input
type=
"text"
v-model=
"scope.row.
Preferential_P
rice"
size=
"small"
placeholder=
"请输入团长优惠"
>
</el-input>
</
template
>
</el-table-column>
...
...
@@ -33,7 +33,7 @@
<div
class=
"header-require"
>
拼团时间
</div>
</
template
>
<
template
slot-scope=
"scope"
>
<el-input
v-model=
"scope.row.
pintuan_t
ime"
maxlength=
"4"
type=
"text"
size=
"small"
<el-input
v-model=
"scope.row.
Pintuan_T
ime"
maxlength=
"4"
type=
"text"
size=
"small"
oninput=
"this.value = this.value.replace(/[^0-9]/, '')"
placeholder=
"请输入拼团时间"
>
<template
slot=
"append"
>
小时
</
template
>
</el-input>
...
...
@@ -41,7 +41,7 @@
</el-table-column>
<el-table-column
label=
"最多开团数量"
:render-header=
"delegation"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model=
"scope.row.
group_n
um"
type=
"text"
size=
"small"
maxlength=
"5"
<el-input
v-model=
"scope.row.
Group_N
um"
type=
"text"
size=
"small"
maxlength=
"5"
oninput=
"this.value = this.value.replace(/[^0-9]/, '')"
placeholder=
"请输入团长数量"
>
<template
slot=
"append"
>
个
</
template
>
</el-input>
...
...
@@ -65,7 +65,7 @@
<el-card
v-for=
"(item, index) in group_list"
style=
"margin-top: 24px;"
:key=
"index"
shadow=
"never"
>
<div
slot=
"header"
>
<el-tag
type=
"danger"
>
{{item.
people_n
um}}人团
</el-tag>
<el-tag
type=
"danger"
>
{{item.
People_N
um}}人团
</el-tag>
</div>
<el-form-item>
<div>
价格与库存
</div>
...
...
@@ -92,10 +92,9 @@
};
},
watch
:
{
'GroupList'
:
{
'Group
Price
List'
:
{
handler
:
function
(
val
,
oldval
)
{
this
.
group_list
=
JSON
.
parse
(
JSON
.
stringify
(
val
));
console
.
log
(
"this.group_list"
,
this
.
group_list
);
},
},
'SpecList'
:
{
...
...
@@ -167,10 +166,11 @@
})
}
this
.
group_list
.
push
({
people_n
um
:
2
,
preferential_p
rice
:
1
,
pintuan_t
ime
:
1
,
People_N
um
:
2
,
Preferential_P
rice
:
1
,
Pintuan_T
ime
:
1
,
goods_id
:
0
,
Group_Num
:
0
,
StepPriceList
:
attr
});
this
.
$emit
(
'getGroup'
,
this
.
group_list
);
//params是传递的参数
...
...
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