Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 d5a5f816
authored
Dec 13, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
2 parents
502cfed6
e7db956e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
150 additions
and
100 deletions
src/views/couponManage/editCashCoupon.vue
src/views/homeSet/index.vue
src/views/memberCenter/center.vue
src/views/memberCenter/setmeal.vue
src/views/memberCenter/setmealAddUpdate.vue
src/views/productGroup/editProduct.vue
src/views/productStore/editProductDh.vue
src/views/couponManage/editCashCoupon.vue
View file @
d5a5f81
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<div
slot=
"proTable"
class=
"select-pro"
>
<div
slot=
"proTable"
class=
"select-pro"
>
<!-- <div style="height:70px" v-if="editForm.goodsRefList.length"></div> -->
<!-- <div style="height:70px" v-if="editForm.goodsRefList.length"></div> -->
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
style=
"padding-left:10px;
width:70vw;max-height:350px;overflow:
auto;"
>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
style=
"padding-left:10px;
margin-right:340px;max-height:350px;overflow:
auto;"
>
<
template
slot=
"goodsImage"
slot-scope=
"scope"
>
<
template
slot=
"goodsImage"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
</
template
>
</
template
>
...
...
src/views/homeSet/index.vue
View file @
d5a5f81
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<span
class=
"number"
>
上传
</span>
<span
class=
"number"
>
上传
</span>
<input
type=
"file"
style=
"opacity: 0;"
ref=
"file"
class=
"activity-img home-img-w-h"
accept=
"image/png, image/jpeg, image/gif, image/jpg"
@
change=
"e => handleImgChange(e, subIndex)"
/>
<input
type=
"file"
style=
"opacity: 0;"
ref=
"file"
class=
"activity-img home-img-w-h"
accept=
"image/png, image/jpeg, image/gif, image/jpg"
@
change=
"e => handleImgChange(e, subIndex)"
/>
</div>
</div>
<div
v-show=
"!subItem.bannerImg"
>
<div
v-show=
"!subItem.bannerImg"
style=
"margin-left: 40px;"
>
<el-button
type=
"text"
class=
"el-icon-delete"
@
click=
"handleBannerDelete(subIndex)"
></el-button>
<el-button
type=
"text"
class=
"el-icon-delete"
@
click=
"handleBannerDelete(subIndex)"
></el-button>
</div>
</div>
</div>
</div>
...
...
src/views/memberCenter/center.vue
View file @
d5a5f81
...
@@ -314,6 +314,7 @@ mounted () {
...
@@ -314,6 +314,7 @@ mounted () {
this
.
ruleForm
.
price
=
res
.
goodPrice
this
.
ruleForm
.
price
=
res
.
goodPrice
this
.
ruleForm
.
marketPrice
=
res
.
marketPrice
this
.
ruleForm
.
marketPrice
=
res
.
marketPrice
this
.
ruleForm
.
linkUrl
=
res
.
freeUrl
this
.
ruleForm
.
linkUrl
=
res
.
freeUrl
this
.
ruleForm
.
tryAble
=
res
.
tryAble
})
})
},
},
openEditWrap
()
{
openEditWrap
()
{
...
...
src/views/memberCenter/setmeal.vue
View file @
d5a5f81
...
@@ -4,7 +4,13 @@
...
@@ -4,7 +4,13 @@
<div
class=
"live-room container"
>
<div
class=
"live-room container"
>
<div
class=
"btnWrap"
>
<div
class=
"btnWrap"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleCreate"
icon=
"el-icon-plus"
>
创建套餐
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleCreate"
icon=
"el-icon-plus"
>
创建套餐
</el-button>
<el-button
:size=
"size"
@
click=
"isDialogVisible = true"
>
查看示例效果
</el-button>
<!-- @click="isDialogVisible = true" -->
<div
class=
"seeBtnWrap"
>
<el-button
:size=
"size"
@
click=
"previewPic"
>
查看示例效果
</el-button>
<div
class=
"demo-image__preview"
>
<el-image
ref=
"previewImg"
style=
"width: 110px; height: 32px"
:src=
"surl"
:preview-src-list=
"srcList"
></el-image>
</div>
</div>
</div>
</div>
<GLTable
ref=
"memberSetMealRef"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"memberSetMealRef"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<span
slot=
"list"
slot-scope=
"scope"
>
<span
slot=
"list"
slot-scope=
"scope"
>
...
@@ -28,21 +34,17 @@
...
@@ -28,21 +34,17 @@
</span>
</span>
</GLTable>
</GLTable>
</div>
</div>
<!-- btnCancelLabel="关闭" -->
<!-- btnCancelLabel="关闭" -->
<glsx-dialog
title=
"示例效果"
width=
"1142px"
:hasScroll=
"false"
:noBtnOk=
"true"
:noCancel=
"true"
:noClose=
"false"
typeName=
"primary"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<glsx-dialog
title=
"示例效果"
width=
"1142px"
:hasScroll=
"false"
:noBtnOk=
"true"
:noCancel=
"true"
:noClose=
"false"
typeName=
"primary"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<div
class=
"content-body"
>
<div
class=
"content-body"
>
<div
class=
"content-item col1"
>
<div
class=
"content-item col1"
>
<div
class=
"subTitle"
>
<div
class=
"subTitle"
>
1、管理后台先创建套餐
</div>
1、管理后台先创建套餐
</div>
<div
class=
"imageWrap"
>
<div
class=
"imageWrap"
>
<img
src=
"@/assets/table.png"
alt=
""
/>
<img
src=
"@/assets/table.png"
alt=
""
/>
</div>
</div>
</div>
</div>
<div
class=
"content-item col2"
>
<div
class=
"content-item col2"
>
<div
class=
"subTitle"
>
<div
class=
"subTitle"
>
2、小程序端进行展示
</div>
2、小程序端进行展示
</div>
<div
class=
"twoImageWrap"
>
<div
class=
"twoImageWrap"
>
<img
src=
"@/assets/card1.png"
alt=
""
/>
<img
src=
"@/assets/card1.png"
alt=
""
/>
<img
src=
"@/assets/card2.png"
alt=
""
/>
<img
src=
"@/assets/card2.png"
alt=
""
/>
...
@@ -55,13 +57,12 @@
...
@@ -55,13 +57,12 @@
<
script
>
<
script
>
import
glsxDialog
from
'@/components/glsx-dialog'
import
glsxDialog
from
'@/components/glsx-dialog'
import
url
from
"@/assets/empty.png"
import
url
from
'@/assets/empty.png'
import
{
getSetMealListApi
,
deleteSetMeal
,
upDownPackage
}
from
'@/api/modules/setmeal'
import
{
getSetMealListApi
,
deleteSetMeal
,
upDownPackage
}
from
'@/api/modules/setmeal'
import
{
getLoginCount
}
from
'@/api/modules/service'
import
{
getLoginCount
}
from
'@/api/modules/service'
import
{
stateList
}
from
'@/common/constant'
import
{
stateList
}
from
'@/common/constant'
import
tipPanel
from
'@/components/tipPanel/index.vue'
import
tipPanel
from
'@/components/tipPanel/index.vue'
export
default
{
export
default
{
components
:
{
components
:
{
tipPanel
,
tipPanel
,
...
@@ -70,6 +71,8 @@ export default {
...
@@ -70,6 +71,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
url
:
url
,
url
:
url
,
surl
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/memberCase.png'
,
srcList
:
[
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/memberCase.png'
],
isFirstShow
:
false
,
isFirstShow
:
false
,
panelContent
:
'会员套餐:将已经创建好的会员服务打包成一个套餐售卖给客户。'
,
panelContent
:
'会员套餐:将已经创建好的会员服务打包成一个套餐售卖给客户。'
,
size
:
'small'
,
size
:
'small'
,
...
@@ -134,9 +137,11 @@ export default {
...
@@ -134,9 +137,11 @@ export default {
created
()
{
created
()
{
this
.
getLoginCountFun
()
this
.
getLoginCountFun
()
},
},
mounted
()
{
mounted
()
{},
},
methods
:
{
methods
:
{
previewPic
()
{
this
.
$refs
.
previewImg
.
showViewer
=
true
},
getLoginCountFun
()
{
getLoginCountFun
()
{
//loginType:5是查会员套餐浏览次数
//loginType:5是查会员套餐浏览次数
getLoginCount
({
loginType
:
5
}).
then
(
res
=>
{
getLoginCount
({
loginType
:
5
}).
then
(
res
=>
{
...
@@ -162,7 +167,6 @@ export default {
...
@@ -162,7 +167,6 @@ export default {
this
.
$refs
.
memberSetMealRef
.
setTableHeightFun
()
this
.
$refs
.
memberSetMealRef
.
setTableHeightFun
()
}
}
},
},
//创建套餐
//创建套餐
handleCreate
()
{
handleCreate
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -245,6 +249,19 @@ export default {
...
@@ -245,6 +249,19 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.btnWrap
{
.btnWrap
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
.seeBtnWrap
{
margin-left
:
20px
;
display
:
inline-block
;
position
:
relative
;
.demo-image__preview
{
position
:
absolute
;
left
:
0px
;
top
:
0
;
width
:
68px
;
height
:
32px
;
opacity
:
0
;
}
}
}
}
/
deep
/
.el-dialog__header
{
/
deep
/
.el-dialog__header
{
...
...
src/views/memberCenter/setmealAddUpdate.vue
View file @
d5a5f81
...
@@ -239,7 +239,7 @@ export default {
...
@@ -239,7 +239,7 @@ export default {
},
},
//删除该条服务套餐(让item.serviceQuantity==0)
//删除该条服务套餐(让item.serviceQuantity==0)
closeChoseItemFun
(
item
,
index
)
{
closeChoseItemFun
(
item
,
index
)
{
this
.
totalPrice
=
(
this
.
totalPrice
*
100
-
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
this
.
totalPrice
=
(
(
this
.
totalPrice
*
100
-
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
).
toFixed
(
2
)
// item.serviceQuantity = 0
// item.serviceQuantity = 0
// this.allItemList.forEach(ele => {
// this.allItemList.forEach(ele => {
// if (ele.id == item.serviceId) {
// if (ele.id == item.serviceId) {
...
@@ -255,7 +255,7 @@ export default {
...
@@ -255,7 +255,7 @@ export default {
this
.
allItemList
.
forEach
(
item
=>
{
this
.
allItemList
.
forEach
(
item
=>
{
if
(
item
.
serviceQuantity
)
{
if
(
item
.
serviceQuantity
)
{
this
.
selectNum
++
this
.
selectNum
++
this
.
totalPrice
=
(
this
.
totalPrice
*
100
+
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
this
.
totalPrice
=
((
this
.
totalPrice
*
100
+
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
).
toFixed
(
2
)
}
}
})
})
},
},
...
@@ -406,7 +406,7 @@ export default {
...
@@ -406,7 +406,7 @@ export default {
this
.
setmealDialogVisible
=
false
this
.
setmealDialogVisible
=
false
this
.
totalPrice
=
0
this
.
totalPrice
=
0
this
.
choseItemList
.
forEach
(
item
=>
{
this
.
choseItemList
.
forEach
(
item
=>
{
this
.
totalPrice
=
(
this
.
totalPrice
*
100
+
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
this
.
totalPrice
=
((
this
.
totalPrice
*
100
+
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
).
toFixed
(
2
)
})
})
// this.totalPrice = this.choseItemList.reduce(function(preValue, choseItem) {
// this.totalPrice = this.choseItemList.reduce(function(preValue, choseItem) {
...
...
src/views/productGroup/editProduct.vue
View file @
d5a5f81
...
@@ -138,75 +138,77 @@
...
@@ -138,75 +138,77 @@
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
<table
class=
"table-spesc"
style=
"max-height: 400px; overflow: scroll;"
>
<div
style=
"max-height: 400px; overflow: scroll;"
>
<tbody>
<table
class=
"table-spesc"
>
<tr
<tbody>
style=
"border-bottom: 1px solid rgb(235, 235, 235); height: 54px; line-height: 54px;"
<tr
v-for=
"(subItem, subIndex) in nameToValSpecsList"
style=
"border-bottom: 1px solid rgb(235, 235, 235); height: 54px; line-height: 54px;"
:key=
"subIndex"
v-for=
"(subItem, subIndex) in nameToValSpecsList"
>
:key=
"subIndex"
<td
>
:style=
"{ width: specsWidth }"
<td
v-for=
"(n, idx) in subItem.specsValueList"
:style=
"{ width: specsWidth }"
:key=
"idx"
v-for=
"(n, idx) in subItem.specsValueList"
:title=
"n"
:key=
"idx"
>
{{ n }}
</td>
:title=
"n"
<td
:style=
"{ width: specsWidth }"
>
>
{{ n }}
</td>
<div
v-if=
"routeInfo.groupOrStore == 1"
>
<td
:style=
"{ width: specsWidth }"
>
<div
v-if=
"routeInfo.groupOrStore == 1"
>
<el-input
:disabled=
"isDisabled"
:class=
"{ 'border-red': (!(subItem.retailPrice + '') || +editForm.supplyPrice > +subItem.retailPrice) && submitted }"
placeholder=
"零售价"
v-model=
"subItem.retailPrice"
@
input
.
native=
"e => handleRetailPriceInput(e, subIndex)"
@
blur=
"handleRetailPriceBlur"
>
<el-popover
v-show=
"(!(subItem.retailPrice + '') || +editForm.supplyPrice > +subItem.retailPrice) && submitted"
slot=
"suffix"
placement=
"top"
title
width=
"90"
trigger=
"hover"
:content=
"!(subItem.retailPrice + '') ? '零售价是必填项' : '零售价要大于供货价'"
>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
</el-popover>
</el-input>
</div>
<el-input
<el-input
:disabled=
"isDisabled"
:disabled=
"isDisabled"
:class=
"{ 'border-red': (!(subItem.retailPrice + '') || +editForm.supplyPrice > +subItem.retailPrice) && submitted }"
v-else
placeholder=
"零售价"
placeholder=
"零售价"
v-model=
"subItem.retailPrice"
v-model=
"subItem.retailPrice"
@
input
.
native=
"e => handleRetailPriceInput(e, subIndex)"
@
input
.
native=
"e => handleRetailPriceInput(e, subIndex)"
@
blur=
"handleRetailPriceBlur"
@
blur=
"handleRetailPriceBlur"
></el-input>
</td>
<td
:style=
"{ width: specsWidth }"
>
<el-input
:disabled=
"isDisabled"
placeholder=
"库存"
v-model=
"subItem.stock"
:class=
"{ 'border-red': !(subItem.stock + '') && submitted }"
@
input
.
native=
"e => handleStockInput(e, subIndex)"
>
>
<el-popover
<el-popover
v-show=
"
(!(subItem.retailPrice + '') || +editForm.supplyPrice > +subItem.retailPrice
) && submitted"
v-show=
"
!(subItem.stock + ''
) && submitted"
slot=
"suffix"
slot=
"suffix"
placement=
"top"
placement=
"top"
title
title
width=
"90"
width=
"90"
trigger=
"hover"
trigger=
"hover"
:content=
"!(subItem.retailPrice + '') ? '零售价是必填项' : '零售价要大于供货价'
"
content=
"库存是必填项
"
>
>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
</el-popover>
</el-popover>
</el-input>
</el-input>
</div>
</td>
<el-input
</tr>
:disabled=
"isDisabled"
</tbody>
v-else
</table>
placeholder=
"零售价"
</div>
v-model=
"subItem.retailPrice"
@
input
.
native=
"e => handleRetailPriceInput(e, subIndex)"
@
blur=
"handleRetailPriceBlur"
></el-input>
</td>
<td
:style=
"{ width: specsWidth }"
>
<el-input
:disabled=
"isDisabled"
placeholder=
"库存"
v-model=
"subItem.stock"
:class=
"{ 'border-red': !(subItem.stock + '') && submitted }"
@
input
.
native=
"e => handleStockInput(e, subIndex)"
>
<el-popover
v-show=
"!(subItem.stock + '') && submitted"
slot=
"suffix"
placement=
"top"
title
width=
"90"
trigger=
"hover"
content=
"库存是必填项"
>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
</el-popover>
</el-input>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<
template
slot=
"retailPrice"
>
<
template
slot=
"retailPrice"
>
...
@@ -1322,7 +1324,7 @@ export default {
...
@@ -1322,7 +1324,7 @@ export default {
deleteAttrList
.
forEach
(
item
=>
{
deleteAttrList
.
forEach
(
item
=>
{
delete
params
[
item
]
delete
params
[
item
]
})
})
console
.
log
(
params
)
//
console.log(params)
this
.
$apis
.
proManage
.
insertOrUpdateProApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
proManage
.
insertOrUpdateProApi
(
params
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
...
...
src/views/productStore/editProductDh.vue
View file @
d5a5f81
<!-- 商品编辑 - 带货 -->
<!-- 商品编辑 - 带货 -->
<
template
>
<
template
>
<div
class=
"edit-product-dh marketing p-t-20"
>
<div
class=
"edit-product-dh marketing p-t-20
edit-box
"
>
<div
class=
"container edit-container"
>
<div
class=
"container edit-container"
>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<div
class=
"flex"
style=
"margin-top: 20px;"
>
<div
class=
"flex"
style=
"margin-top: 20px;"
>
<div
style=
"width: 440px; text-align: center;
"
>
<div
class=
"main-img-box
"
>
<img
class=
"main-img"
:src=
"mainImgUrl"
/>
<
!--
<
img
class=
"main-img"
:src=
"mainImgUrl"
/>
<div>
<div>
<div
class=
"flex"
>
<div
class=
"flex"
>
<p
class=
"arrow left-arrow"
@
click=
"handleMoveImg('left')"
></p>
<p
class=
"arrow left-arrow"
@
click=
"handleMoveImg('left')"
></p>
...
@@ -16,7 +16,18 @@
...
@@ -16,7 +16,18 @@
</div>
</div>
<p
class=
"arrow right-arrow"
@
click=
"handleMoveImg('right')"
></p>
<p
class=
"arrow right-arrow"
@
click=
"handleMoveImg('right')"
></p>
</div>
</div>
</div>
</div>
-->
<!--
<img
v-if=
"!wechatImgList.length"
class=
"inner-img"
src=
"@/assets/product-default.png"
/>
-->
<el-carousel
height=
"420px"
>
<el-carousel-item
v-for=
"item in editForm.goodsDetailImageList"
:key=
"item"
>
<video
v-if=
"item.resType == 3"
class=
"inner-img"
:src=
"item.content"
></video>
<img
class=
"inner-img"
:src=
"item.content"
/>
</el-carousel-item>
</el-carousel>
</div>
</div>
<div
style=
"width: calc(100% - 440px);"
>
<div
style=
"width: calc(100% - 440px);"
>
<p
class=
"pro-name txt-ellipsis"
>
{{
editForm
.
goodsName
}}
</p>
<p
class=
"pro-name txt-ellipsis"
>
{{
editForm
.
goodsName
}}
</p>
...
@@ -25,38 +36,44 @@
...
@@ -25,38 +36,44 @@
</div>
</div>
<div
v-if=
"specificationDetailList.length"
class=
"flex"
style=
"margin-top: 20px;"
id=
"specificationDetailList"
>
<div
v-if=
"specificationDetailList.length"
class=
"flex"
style=
"margin-top: 20px;"
id=
"specificationDetailList"
>
<span
class=
"spesc-label"
:style=
"
{ width: labelWidth }">规格明细:
</span>
<span
class=
"spesc-label"
:style=
"
{ width: labelWidth }">规格明细:
</span>
<div
style=
"width: calc(100% - 100px);"
>
<div
style=
"width: calc(100% - 100px);
padding-right: 20px;
"
>
<table
class=
"table-spesc"
>
<table
class=
"table-spesc"
>
<tbody>
<tbody>
<tr>
<tr
style=
"background: #F4F6FC; box-shadow: 0px 1px 5px 0px rgba(38, 38, 38, 0.1);"
>
<td
:style=
"
{ width: specsWidth }" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">
{{
subItem
.
specificationName
}}
</td>
<td
:style=
"
{ width: specsWidth, padding: '17px 0' }" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">
{{
subItem
.
specificationName
}}
</td>
<td
:style=
"
{ width: specsWidth }">零售价(元)
</td>
<td
:style=
"
{ width: specsWidth, padding: '17px 0' }">零售价(元)
</td>
<td
:style=
"
{ width: specsWidth }">供货价
</td>
<td
:style=
"
{ width: specsWidth, padding: '17px 0' }">供货价
</td>
<td
:style=
"
{ width: specsWidth }">利润
</td>
<td
:style=
"
{ width: specsWidth, padding: '17px 0' }">利润
</td>
<td
:style=
"
{ width: specsWidth }">库存
</td>
<td
:style=
"
{ width: specsWidth, padding: '17px 0' }">库存
</td>
</tr>
</tbody>
</table>
<table
class=
"table-spesc"
style=
"max-height: 400px;"
>
<tbody>
<tr
style=
"border-bottom: 1px solid rgb(235, 235, 235);"
v-for=
"(item, index) in nameToValSpecsList"
:key=
"index"
>
<td
:style=
"
{ width: specsWidth }" v-for="(n, idx) in item.specsValueList" :key="idx">
{{
n
}}
</td>
<td
:style=
"
{ width: specsWidth }">
<el-input
:disabled=
"isDisabled"
:class=
"
{ 'border-red': (!(item.retailPrice + '') || +item.supplyPrice > +item.retailPrice)
&&
submitted }" placeholder="零售价" v-model="item.retailPrice" @input.native="e => handleInput(e, index)">
<el-popover
v-show=
"(!(item.retailPrice + '') || +item.supplyPrice > +item.retailPrice) && submitted"
slot=
"suffix"
placement=
"top"
title=
""
width=
"90"
trigger=
"hover"
:content=
"!(item.retailPrice + '') ? '零售价是必填项' : '零售价要大于供货价'"
>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
</el-popover>
</el-input>
</td>
<td
:style=
"
{ width: specsWidth }">
{{
item
.
supplyPrice
}}
元
</td>
<td
:style=
"
{ width: specsWidth }">
{{
(
item
.
retailPrice
-
item
.
supplyPrice
).
toFixed
(
2
)
}}
元
</td>
<td
:style=
"
{ width: specsWidth }">
{{
item
.
stock
}}
件
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
<div
style=
"max-height: 400px; overflow: scroll;"
>
<table
class=
"table-spesc"
>
<tbody>
<tr
style=
"border-bottom: 1px solid rgb(235, 235, 235); height: 54px; line-height: 54px;"
v-for=
"(item, index) in nameToValSpecsList"
:key=
"index"
>
<td
:style=
"
{ width: specsWidth }" v-for="(n, idx) in item.specsValueList" :key="idx">
{{
n
}}
</td>
<td
:style=
"
{ width: specsWidth }">
<el-input
:disabled=
"isDisabled"
:class=
"
{ 'border-red': (!(item.retailPrice + '') || +item.supplyPrice > +item.retailPrice)
&&
submitted }" placeholder="零售价" v-model="item.retailPrice" @input.native="e => handleInput(e, index)">
<el-popover
v-show=
"(!(item.retailPrice + '') || +item.supplyPrice > +item.retailPrice) && submitted"
slot=
"suffix"
placement=
"top"
title=
""
width=
"90"
trigger=
"hover"
:content=
"!(item.retailPrice + '') ? '零售价是必填项' : '零售价要大于供货价'"
>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
</el-popover>
</el-input>
</td>
<td
:style=
"
{ width: specsWidth }">
{{
item
.
supplyPrice
}}
元
</td>
<td
:style=
"
{ width: specsWidth }">
{{
(
item
.
retailPrice
-
item
.
supplyPrice
).
toFixed
(
2
)
}}
元
</td>
<td
:style=
"
{ width: specsWidth }">
{{
item
.
stock
}}
件
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<glsx-combi-form
v-if=
"!specificationDetailList.length"
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
></glsx-combi-form>
<glsx-combi-form
v-if=
"!specificationDetailList.length"
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
></glsx-combi-form>
<div
style=
"width: 375px; margin: 0 0 10px 40px;"
v-for=
"(item, index) in editForm.goodsDescList"
:key=
"index"
>
<div
v-show=
"item.resType == 2"
>
{{
item
.
content
}}
</div>
<img
style=
"width: 375px; width: 375px;"
v-show=
"item.resType == 1"
:src=
"item.content"
/>
</div>
</div>
</div>
<div
class=
"footer"
:style=
"
{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<div
class=
"footer"
:style=
"
{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
...
@@ -369,9 +386,21 @@ export default {
...
@@ -369,9 +386,21 @@ export default {
vertical-align
:
top
;
vertical-align
:
top
;
}
}
.edit-product-dh
.main-img
{
/*
.edit-product-dh .main-img {
width: 375px;
width: 375px;
height: 375px;
height: 375px;
} */
.edit-product-dh
.inner-img
{
width
:
420px
;
height
:
420px
;
}
.edit-product-dh
.main-img-box
{
width
:
440px
;
/* height: 440px; */
text-align
:
center
;
padding
:
0
20px
;
}
}
/* .edit-product-dh .flex {
/* .edit-product-dh .flex {
...
@@ -424,6 +453,7 @@ export default {
...
@@ -424,6 +453,7 @@ export default {
.edit-product-dh
.supply-price
{
.edit-product-dh
.supply-price
{
font-size
:
26px
;
font-size
:
26px
;
color
:
#FF6D00
;
color
:
#FF6D00
;
margin-top
:
10px
;
}
}
.edit-product-dh
.border-red
{
.edit-product-dh
.border-red
{
...
...
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