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
96a6a08a
Commit
96a6a08a
authored
Jun 03, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
02d25a01
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
11 deletions
+50
-11
goodsList.vue
src/components/CommodityMan/goodsList.vue
+12
-2
goodsListEdit.vue
src/components/CommodityMan/goodsListEdit.vue
+36
-4
PeaceDistribution.vue
src/components/UserMan/PeaceDistribution.vue
+1
-1
distributionOrder.vue
src/components/UserMan/distributionOrder.vue
+1
-4
No files found.
src/components/CommodityMan/goodsList.vue
View file @
96a6a08a
...
...
@@ -3,7 +3,7 @@
<div
class=
"head-title"
>
商品列表
<el-button
@
click=
"Export"
style=
"float:right;margin-top: -5px;margin-left:20px;"
size=
"small"
type=
"primary"
>
商品导出
</el-button>
<el-button
@
click=
"CommonJump('goodsListEdit')"
style=
"float:right;margin-top: -5px;margin-left:20px;"
size=
"small"
type=
"primary"
>
添加商品
</el-button>
<el-button
@
click=
"CommonJump('goodsListEdit'
,
{hpState:hpState}
)" style="float:right;margin-top: -5px;margin-left:20px;" size="small" type="primary">添加商品
</el-button>
<!--
<el-button
style=
"float:right;margin-top: -5px;margin-left:20px;"
size=
"small"
type=
"primary"
>
更新所有商品销量
</el-button>
-->
</div>
...
...
@@ -177,7 +177,7 @@
width=
"200"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<img
@
click=
"CommonJump('goodsListEdit',
{GoodsId:scope.row.Id})" style="width:32px;height:32px;margin:0 10px" src="../../assets/img/userman/edit.png" alt="">
<img
@
click=
"CommonJump('goodsListEdit',
{GoodsId:scope.row.Id
,hpState:hpState
})" style="width:32px;height:32px;margin:0 10px" src="../../assets/img/userman/edit.png" alt="">
<img
@
click=
"Delete(scope.row)"
style=
"width:32px;height:32px;margin:0 10px"
src=
"../../assets/img/userman/del.png"
alt=
""
>
</
template
>
</el-table-column>
...
...
@@ -434,14 +434,24 @@ export default {
keepGoodsIds
:
''
,
BuyGoodsNumState
:
true
,
BuyOrderNumState
:
true
,
hpState
:
0
,
}
},
created
(){
this
.
getList
();
this
.
getTree
();
this
.
getRule
();
this
.
getHpState
();
},
methods
:{
getHpState
(){
this
.
apipost
(
"/api/user/GetHpDistributorIsEnabled"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
hpState
=
res
.
data
.
data
;
}
})
},
goodChange
(
val
,
num
){
if
(
!
val
){
if
(
num
==
1
){
...
...
src/components/CommodityMan/goodsListEdit.vue
View file @
96a6a08a
...
...
@@ -147,10 +147,13 @@
</el-input>
</el-form-item>
<el-form-item
label=
"成本价"
>
<el-input
v-model=
"addMsg.CostPrice"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入内容"
<el-input
@
change=
"getSuggestPrice"
v-model=
"addMsg.CostPrice"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入内容"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
元
</el-button>
</el-input>
<span
v-if=
"SuggestPriceInfo.Status && SuggestPriceInfo.Status==1"
class=
"cred"
style=
"position: absolute;width: 400px;margin-left: 15px;"
>
建议零售价:¥{{SuggestPriceInfo.MPrice}}
</span>
</el-form-item>
<el-form-item
label=
"商品面议"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"如果开启面议,则商品无法在线支付"
placement=
"top-start"
...
...
@@ -735,7 +738,7 @@
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"flDig=false,addMsg.CategoryList=keepCategoryList,ExitCateList()"
>
取 消
</el-button>
<el-button
@
click=
"flDig = false"
size=
"small"
type=
"primary"
>
确 定
</el-button>
<el-button
@
click=
"flDig = false
,getSuggestPrice()
"
size=
"small"
type=
"primary"
>
确 定
</el-button>
</span>
</el-dialog>
<!-- 查看图例 -->
...
...
@@ -1013,11 +1016,15 @@
imgListIndex1
:
0
,
imgListIndex2
:
0
,
NewCategoryList
:[],
hpState
:
0
,
SuggestPriceInfo
:{},
};
},
created
()
{
if
(
this
.
$route
.
query
.
hpState
)
{
this
.
hpState
=
this
.
$route
.
query
.
hpState
;
}
},
mounted
()
{
this
.
$refs
.
ue
.
loadUe
();
...
...
@@ -1034,6 +1041,7 @@
},
methods
:
{
//
HySet
(){
this
.
memberList2
.
forEach
(
item
=>
{
this
.
memberCheck
.
forEach
(
check
=>
{
...
...
@@ -1571,6 +1579,7 @@
}
})
this
.
ExitCateList
();
this
.
getSuggestPrice
();
},
getTree
()
{
let
msg1
=
{
...
...
@@ -1603,6 +1612,7 @@
GoodsId
:
this
.
GoodsId
},
res
=>
{
this
.
addMsg
=
res
.
data
.
data
;
console
.
log
(
"this.addMsg"
,
this
.
addMsg
)
this
.
SpecificationPriceList
=
this
.
addMsg
.
SpecificationPriceList
;
this
.
SpecificationList
=
this
.
addMsg
.
SpecificationList
;
if
(
this
.
addMsg
.
SeparateDistributionType
==
1
)
{
...
...
@@ -1628,9 +1638,31 @@
item
.
Name
=
item
.
CategoryName
;
this
.
NewCategoryList
.
push
(
item
.
CategoryId
)
})
this
.
getSuggestPrice
()
})
},
getSuggestPrice
(){
if
(
this
.
hpState
==
1
&&
Number
(
this
.
addMsg
.
CostPrice
)
>
0
){
let
arr
=
[];
this
.
addMsg
.
CategoryList
.
forEach
(
item
=>
{
item
.
Name
=
item
.
CategoryName
;
arr
.
push
(
item
.
CategoryId
)
})
let
CategoryIds
=
arr
.
join
(
','
);
let
msg
=
{
CategoryIds
:
CategoryIds
,
CostPrice
:
this
.
addMsg
.
CostPrice
}
this
.
apipost
(
"/api/user/GetHpGoodsSuggestPrice"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
SuggestPriceInfo
=
res
.
data
.
data
;
console
.
log
(
"this.SuggestPriceInfo"
,
this
.
SuggestPriceInfo
)
}
})
}
},
getRule
()
{
let
msg1
=
{
pageIndex
:
1
,
...
...
src/components/UserMan/PeaceDistribution.vue
View file @
96a6a08a
...
...
@@ -76,7 +76,7 @@
label=
"返佣(名称/比例)"
>
<
template
slot-scope=
"scope"
>
<p
v-for=
"(item,index) in scope.row.RatioList"
:key=
"index"
type=
"success"
style=
"margin-right:6px"
>
{{
item
.
GradeName
}}
:
{{
item
.
CommissionRatio
}}
{{
item
.
GradeName
}}
:
{{
item
.
CommissionRatio
}}
%
</p>
</
template
>
</el-table-column>
...
...
src/components/UserMan/distributionOrder.vue
View file @
96a6a08a
...
...
@@ -155,10 +155,7 @@
<div
style=
"margin:0 auto;width:90%;margin-left:17%"
>
<div
v-for=
"(list,index2) in item.OrderCommissionList"
:key=
"index2"
style=
"margin: 10px;text-align:left"
>
<div>
<span
v-if=
"list.Grade==0"
>
自购返利
</span>
<span
v-if=
"list.Grade==1"
>
一级佣金
</span>
<span
v-if=
"list.Grade==2"
>
二级佣金
</span>
<span
v-if=
"list.Grade==3"
>
三级佣金
</span>
<span>
{{
list
.
GradeDescription
}}
</span>
<span
class=
"price"
>
¥
{{
list
.
Commission
}}
</span>
</div>
<div>
昵称:
{{
list
.
Name
}}
</div>
...
...
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