Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 1a5799db
authored
Apr 07, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
商品管理-会员价,带货模式
1 parent
5cabd198
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
94 additions
and
13 deletions
src/views/productGroup/editProduct.vue
src/views/productGroup/editProduct.vue
View file @
1a5799d
...
...
@@ -94,7 +94,9 @@
<span
class=
"associationLists-X"
>
{{
editForm
.
relatedDiscountType
}}
</span>
<span
class=
"associationLists-X"
>
{{
editForm
.
relatedUseChannel
}}
</span>
<span
class=
"associationLists"
v-if=
"routeInfo.addOrEdit !== 3"
><el-button
type=
"text"
@
click=
"del()"
>
删除
</el-button></span>
<span
class=
"associationLists"
v-if=
"routeInfo.addOrEdit !== 3"
>
<el-button
type=
"text"
@
click=
"del()"
>
删除
</el-button>
</span>
</div>
</div>
</
template
>
...
...
@@ -167,8 +169,28 @@
<
template
slot=
"originalPrice"
>
<p
class=
"edit-tips"
>
作为商品划线展示的价格
</p>
</
template
>
<
template
slot=
"supplyPrice"
>
<
!-- <
template slot="supplyPrice">
<p class="edit-tips">作为货源供给门店的价格</p>
</template> -->
<
template
slot=
"memberPrice"
>
<p
class=
"edit-tips"
>
作为会员商城购买的价格
</p>
</
template
>
<
template
slot=
"takeGoodMode"
slot-scope=
"scope"
>
<el-radio-group
:disabled=
"isDisabled"
v-model=
"editForm[scope.scope.name]"
>
<div
v-for=
"(n, idx) in baseData.takeGoodModeList"
:key=
"idx"
>
<el-radio
:label=
"n.confId"
class=
"take-good-mode-block"
>
<span
class=
"mode-radio"
>
{{
n
.
confName
}}
</span>
<span
class=
"mode-radio radio-tip-txt"
@
click
.
stop
.
prevent=
"e => handleCancelBubble(e)"
>
{{
scope
.
scope
.
tipObj
[
n
.
confId
]
}}
</span>
<el-form-item
v-show=
"n.confId == '1'"
prop=
"profitRatio"
label=
"分润比例:"
>
<el-input
v-model=
"editForm.profitRatio"
:disabled=
"editForm[scope.scope.name] != '1'"
placeholder=
"请输入分润比例"
><span
slot=
"append"
>
%
</span></el-input>
</el-form-item>
<el-form-item
v-show=
"n.confId == '2'"
prop=
"supplyPrice"
label=
"供货价:"
>
<el-input
v-model=
"editForm.supplyPrice"
:disabled=
"editForm[scope.scope.name] != '2'"
placeholder=
"请输入供货价"
><span
slot=
"append"
>
元
</span></el-input>
<!--
<p
class=
"edit-tips"
>
作为货源供给门店的价格
</p>
-->
</el-form-item>
</el-radio>
</div>
</el-radio-group>
</
template
>
<div
slot=
"selectMerchant"
slot-scope=
"scope"
class=
"select-merchant"
>
<el-button
:disabled=
"isDisabled"
type=
"default"
@
click=
"handleRelateStoreClose(scope)"
>
{{ editForm.supplyMerchantList.length ? '更换门店' : '+选择门店' }}
</el-button>
...
...
@@ -466,7 +488,10 @@ export default {
// specificationDetailList: [],
retailPrice
:
''
,
originalPrice
:
''
,
takeGoodMode
:
2
,
supplyPrice
:
''
,
profitRatio
:
''
,
memberPrice
:
''
,
goodsStock
:
''
,
deliveryType
:
2
,
install
:
'Y'
,
...
...
@@ -655,13 +680,32 @@ export default {
suffixSlot
:
'originalPrice'
,
isDisabled
:
false
},
// {
// label: '供货价',
// name: 'supplyPrice',
// type: 'input',
// append: '元',
// width: '320px',
// suffixSlot: 'supplyPrice',
// isDisabled: false
// },
{
label
:
'
供货
价'
,
name
:
'
supply
Price'
,
label
:
'
会员
价'
,
name
:
'
member
Price'
,
type
:
'input'
,
append
:
'元'
,
width
:
'320px'
,
suffixSlot
:
'supplyPrice'
,
suffixSlot
:
'memberPrice'
,
isDisabled
:
false
},
{
label
:
'带货模式'
,
name
:
'takeGoodMode'
,
addHtml
:
'takeGoodMode'
,
tipObj
:
{
'1'
:
'集团上架自己的商品分发到门店,每个月安装分润比例分成给门店'
,
'2'
:
'门店需要配置零售价并上架商品,需要集团设置供货价给门店'
},
isDisabled
:
false
},
{
...
...
@@ -765,7 +809,17 @@ export default {
dialogImageUrl
:
''
,
baseData
:
{
classifyList
:
[],
zoneList
:
[]
zoneList
:
[],
takeGoodModeList
:
[
{
confId
:
1
,
confName
:
'集团总控'
},
{
confId
:
2
,
confName
:
'门店总控'
}
]
}
}
},
...
...
@@ -793,6 +847,14 @@ export default {
'editForm.supplyPrice'
(
newValue
,
oldValue
)
{
this
.
editForm
.
supplyPrice
=
limitPrice
(
newValue
,
oldValue
,
5
,
2
)
},
// 分润比例
'editForm.profitRatio'
(
newValue
,
oldValue
)
{
this
.
editForm
.
profitRatio
=
limitPrice
(
newValue
,
oldValue
,
1
,
2
)
},
// 会员价
'editForm.memberPrice'
(
newValue
,
oldValue
)
{
this
.
editForm
.
memberPrice
=
limitPrice
(
newValue
,
oldValue
,
5
,
2
)
},
// 库存
'editForm.goodsStock'
(
newValue
,
oldValue
)
{
this
.
editForm
.
goodsStock
=
limitPrice
(
newValue
,
oldValue
,
10
,
0
,
0
,
10000000000
,
'zNumReg'
)
...
...
@@ -887,6 +949,7 @@ export default {
})
})
},
handleCancelBubble
(
e
)
{
},
// 小程序展示
getWechatImgList
()
{
this
.
wechatImgList
=
[]
...
...
@@ -932,11 +995,11 @@ export default {
{
name
:
'zoneId'
,
pIdx
:
0
},
{
name
:
'supplyPrice'
,
pIdx
:
1
}
// {
// name: 'supplyPrice',
// pIdx: 1
// }
]
this
.
hideOrShowAttr
(
attrObj
)
this
.
externalFormList
.
splice
(
3
,
1
)
...
...
@@ -1220,15 +1283,18 @@ export default {
classifyIdList
:
res
.
classifyList
.
map
(
item
=>
item
.
id
),
originalPrice
:
(
res
.
originalPrice
/
100
).
toFixed
(
2
),
retailPrice
:
''
,
takeGoodMode
:
res
.
takeGoodMode
||
2
,
memberPrice
:
res
.
memberPrice
?
(
res
.
memberPrice
/
100
).
toFixed
(
2
)
:
''
,
goodsStock
:
res
.
goodsStock
+
''
,
supplyPrice
:
res
.
supplyPrice
?
(
res
.
supplyPrice
/
100
).
toFixed
(
2
)
:
''
,
profitRatio
:
res
.
profitRatio
?
(
res
.
profitRatio
/
100
).
toFixed
(
2
)
:
''
,
describeTxt
:
''
,
relatedCouponId
:
''
,
descImgList
:
[],
businessType
:
[]
}
this
.
editForm
.
businessType
=
this
.
editForm
.
businessTypeList
.
filter
(
item
=>
item
.
isChoose
==
1
).
map
(
item
=>
item
.
businessType
)
console
.
log
(
this
.
editForm
)
//
console.log(this.editForm)
if
(
res
.
relatedCoupon
)
{
this
.
editForm
.
relatedCouponId
=
res
.
relatedCoupon
.
id
this
.
editForm
.
relatedCouponName
=
res
.
relatedCoupon
.
couponName
...
...
@@ -1372,7 +1438,7 @@ export default {
}
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
var
deleteAttrList
=
[
'descImgList'
,
'describeTxt'
,
'specificationList'
]
var
priceList
=
[
'retailPrice'
,
'originalPrice'
,
'supplyPrice'
,
'expressFee'
]
var
priceList
=
[
'retailPrice'
,
'originalPrice'
,
'supplyPrice'
,
'expressFee'
,
'memberPrice'
]
if
(
this
.
routeInfo
.
addOrEdit
==
2
)
{
params
.
id
=
this
.
routeInfo
.
id
}
...
...
@@ -1468,7 +1534,7 @@ export default {
.
then
(()
=>
{
this
.
cancelJump
()
})
.
catch
(()
=>
{})
.
catch
(()
=>
{
})
}
else
{
this
.
cancelJump
()
}
...
...
@@ -1537,6 +1603,21 @@ export default {
.edit-pro
.w-320
{
width
:
320px
;
}
.edit-pro
.take-good-mode-block
{
display
:
flex
;
align-items
:
center
;
}
.edit-pro
.mode-radio
{
height
:
32px
;
line-height
:
32px
;
margin-right
:
12px
;
}
.edit-pro
.take-good-mode-block
.el-radio__input
{
height
:
32px
;
}
.edit-pro
.take-good-mode-block
.el-radio__input.is-checked
+
.el-radio__label
.radio-tip-txt
{
color
:
#606266
;
}
.edit-pro
.wechat-container
.wechat-footer
{
position
:
absolute
;
width
:
252px
;
...
...
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