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 9e6c52d9
authored
Jan 17, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.2' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
into v1.0.2
2 parents
f4357d7c
125cf006
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
156 additions
and
228 deletions
package.json
src/App.vue
src/api/modules/service.js
src/components/glsx-combi-form/index.vue
src/views/classifyList/editClassify.vue
src/views/couponManage/editCashCoupon.vue
src/views/homeSet/index.vue
src/views/memberCenter/serviceAddUpdateLook.vue
src/views/orderManage/index.vue
src/views/productGroup/components/commentDetail.vue
src/views/seckillActivity/editActivity.vue
src/views/zoneList/editZone.vue
package.json
View file @
9e6c52d
...
...
@@ -13,7 +13,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.3.
5
"
,
"glsx-components"
:
"^1.3.
6
"
,
"lodash"
:
"^4.17.21"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
...
...
src/App.vue
View file @
9e6c52d
...
...
@@ -59,31 +59,32 @@ export default {
#app
{
padding
:
0px
20px
20px
40px
;
//
overflow-y
:
auto
;
margin-right
:
20px
;
height
:
100%
;
}
.el-switch__label--left
{
position
:
relative
;
margin-left
:
-20px
;
left
:
45px
;
color
:
#fff
;
z-index
:
-1111
;
}
.el-switch__core
{
width
:
50px
!important
;
}
.el-switch__label--right
{
position
:
relative
;
right
:
46px
;
color
:
#fff
;
z-index
:
-1111
;
}
.el-switch__label--right.is-active
{
z-index
:
1111
;
color
:
#fff
!important
;
}
.el-switch__label--left.is-active
{
z-index
:
1111
;
color
:
#999999
!important
;
}
.el-switch__label--left
{
position
:
relative
;
margin-left
:
-20px
;
left
:
45px
;
color
:
#fff
;
z-index
:
-1111
;
}
.el-switch__core
{
width
:
50px
!important
;
}
.el-switch__label--right
{
position
:
relative
;
right
:
46px
;
color
:
#fff
;
z-index
:
-1111
;
}
.el-switch__label--right.is-active
{
z-index
:
1111
;
color
:
#fff
!important
;
}
.el-switch__label--left.is-active
{
z-index
:
1111
;
color
:
#999999
!important
;
}
</
style
>
>
src/api/modules/service.js
View file @
9e6c52d
import
{
http
,
http2
}
from
'@/main'
import
{
http
}
from
'@/main'
// const defaultPath = 'scrm.api.live.'
//计算提示面板出现的次数,第一次显示,之后不显示
const
getLoginCount
=
params
=>
{
params
.
method
=
'entmicro.api.common.findLoginCount'
return
http
2
({
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
src/components/glsx-combi-form/index.vue
View file @
9e6c52d
...
...
@@ -3,7 +3,7 @@
<div
class=
"glsx-combi-form"
>
<el-form
:ref=
"formRef"
:inline=
"true"
:model=
"formObj"
:rules=
"formRules"
size=
"small"
class=
"glsx-combi-form-block"
>
<template
v-for=
"(item, index) in formData"
>
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:id=
"item.name"
:labelWidth=
"isEdit ? '144px' : labelWidth"
:class=
"
{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px': '30px', ...item.style }" :label="item.label" :prop="item.name">
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:id=
"item.name"
:labelWidth=
"isEdit ? '144px' : labelWidth"
:class=
"
{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px'
: '30px', ...item.style }" :label="item.label" :prop="item.name">
<span
v-if=
"!item.isHide && item.tips"
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
{{
item
.
label
}}
</span>
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
:content=
"item.tips"
:placement=
"item.placement || 'top'"
>
...
...
@@ -12,11 +12,11 @@
{{
item
.
label
}}
</span>
<span
v-else-if=
"!item.isHide && item.label"
slot=
"label"
>
<span
class=
"combi-form-label"
:style=
"
{ width: item.labelWidth ?
(item.labelWidth + labelPaddingRight) + 'px' : '', 'padding-right': isEdit ? '12px' : (labelPaddingRight + 'px')
}">
{{
item
.
label
}}
</span>
<span
class=
"combi-form-label"
:style=
"
{ width: item.labelWidth ?
item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px'
}">
{{
item
.
label
}}
</span>
</span>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"item"
></slot>
<div
v-else-if=
"item.type === 'input'"
>
<el-input
:placeholder=
"item.placeholder || '请输入' + item.label"
v-model
.
trim=
"formObj[item.name]"
:disabled=
"item.isDisabled"
:maxlength=
"item.maxlength"
:clearable=
"item.isClear || false"
:type=
"item.inputType || 'text'"
:rows=
"item.rows || 2"
:style=
"
{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)"
>
<el-input
:placeholder=
"item.placeholder || '请输入' + item.label"
v-model
.
trim=
"formObj[item.name]"
:disabled=
"item.isDisabled"
:maxlength=
"item.maxlength"
:clearable=
"item.isClear || false"
:type=
"item.inputType || 'text'"
:rows=
"item.rows || 2"
:style=
"
{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)">
<span
v-if=
"item.prepend"
slot=
"prepend"
>
{{
item
.
prepend
}}
</span>
<span
v-if=
"item.append"
slot=
"append"
>
{{
item
.
append
}}
</span>
</el-input>
...
...
@@ -63,8 +63,8 @@
<div
v-if=
"Array.isArray(formObj[item.name]) ? formObj[item.name].length
< item
.
maxPhotoNum
:
!
formObj
[
item
.
name
]"
class=
"activity-img img-w-h"
>
<div
class=
"add"
:style=
"
{ top: item.maxPhotoNum == 1 ? '50%' : '40%' }">+
</div>
<span
v-if=
"item.maxPhotoNum > 1"
class=
"number"
>
{{
formObj
[
item
.
name
].
length
}}
/
{{
item
.
maxPhotoNum
}}
</span>
<input
v-if=
"item.uploadType == 'video'"
type=
"file"
style=
"opacity: 0
;
"
:id=
"item.name + 'file'"
ref=
"file"
class=
"activity-img img-w-h"
accept=
"video/mp4"
@
change=
"e => handleUploadChange(e, item)"
/>
<input
v-else
type=
"file"
style=
"opacity: 0
;
"
:id=
"item.name + 'file'"
ref=
"file"
class=
"activity-img img-w-h"
accept=
"image/png, image/jpeg, image/gif, image/jpg"
@
change=
"e => handleUploadChange(e, item)"
/>
<input
v-if=
"item.uploadType == 'video'"
type=
"file"
style=
"opacity: 0"
:id=
"item.name + 'file'"
ref=
"file"
class=
"activity-img img-w-h"
accept=
"video/mp4"
@
change=
"e => handleUploadChange(e, item)"
/>
<input
v-else
type=
"file"
style=
"opacity: 0"
:id=
"item.name + 'file'"
ref=
"file"
class=
"activity-img img-w-h"
accept=
"image/png, image/jpeg, image/gif, image/jpg"
@
change=
"e => handleUploadChange(e, item)"
/>
</div>
</div>
<template>
...
...
@@ -99,10 +99,10 @@
</template>
<slot
name=
"footer"
></slot>
</el-form>
<el-dialog
v-if=
"isImgVisible"
title=
"查看"
:visible
.
sync=
"isImgVisible"
>
<el-dialog
v-if=
"isImgVisible"
title=
"查看"
:visible
.
sync=
"isImgVisible"
:close-on-click-modal=
"false"
>
<div
class=
"dialog-look"
>
<video
v-if=
"dialogObj.uploadType == 'video'"
class=
"dialog-video"
controls
>
<source
:src=
"dialogObj.url"
type=
"video/mp4"
>
<source
:src=
"dialogObj.url"
type=
"video/mp4"
/
>
</video>
<img
v-else
class=
"dialog-img"
width=
"100%"
:src=
"dialogObj.url"
alt=
""
/>
</div>
...
...
@@ -353,7 +353,7 @@ export default {
.glsx-combi-form
.activity-img
{
position
:
relative
;
color
:
#999999
;
background-color
:
#
F7F7F
7
;
background-color
:
#
f7f7f
7
;
border
:
1px
dotted
#d9d9d9
;
cursor
:
pointer
;
}
...
...
@@ -433,16 +433,16 @@ export default {
/* 图片上传 */
.glsx-combi-form
.el-tag.el-tag--info
.el-tag__close
{
color
:
#
E8E8EA
;
color
:
#
e8e8ea
;
background-color
:
#5850ff
!important
;
}
.glsx-combi-form
.el-tag.el-tag--info
{
border-color
:
#5850ff
;
}
.glsx-combi-form
.el-tag--plain.el-tag--info
.el-tag__close
:hover
{
background-color
:
#
E8E8EA
;
background-color
:
#
e8e8ea
;
}
.glsx-combi-form
.el-tag.el-tag--info
.el-tag__close
:hover
{
background-color
:
#
E8E8EA
;
background-color
:
#
e8e8ea
;
}
</
style
>
src/views/classifyList/editClassify.vue
View file @
9e6c52d
...
...
@@ -7,10 +7,10 @@
<div
slot=
"selectProBtn"
slot-scope=
"scope"
class=
"select-pro"
>
<el-button
type=
"default"
@
click=
"handleMutiProClose(scope)"
>
{{
editForm
.
goodsRefList
.
length
?
'更换商品'
:
'+选择商品'
}}
</el-button>
</div>
<div
slot=
"proTable"
class=
"select-pro"
style=
"padding-left: 20px
;
"
>
<div
slot=
"proTable"
class=
"select-pro"
style=
"padding-left: 20px"
>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
>
<template
slot=
"goodsImage"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
</
template
>
<span
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleProDelete(scope)"
>
删除
</el-button>
...
...
@@ -112,7 +112,7 @@ export default {
prop
:
'retailPrice'
}
]
}
,
}
}
},
...
...
@@ -145,7 +145,7 @@ export default {
goodsImage
:
item
.
goods
.
goodsImage
})
})
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
editStatus
=
false
})
})
...
...
@@ -174,7 +174,7 @@ export default {
this
.
$messageBox
.
confirm
(
'是否删除该商品?'
,
'删除'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'error'
,
//
type: 'error',
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
var
idx
=
this
.
editForm
.
goodsRefList
.
findIndex
(
item
=>
item
.
id
==
obj
.
scope
.
id
)
...
...
@@ -221,12 +221,13 @@ export default {
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
cancelJump
()
})
.
catch
(()
=>
{})
.
then
(()
=>
{
this
.
cancelJump
()
})
.
catch
(()
=>
{})
}
else
{
this
.
cancelJump
()
this
.
cancelJump
()
}
}
}
...
...
src/views/couponManage/editCashCoupon.vue
View file @
9e6c52d
<!-- 编辑代金券 -->
<
template
>
<div
class=
"edit-share marketing p-t-20 edit-box"
>
<div
class=
"container edit-container"
style=
"position: relative
;
"
>
<div
class=
"container edit-container"
style=
"position: relative"
>
<div
class=
"right_show"
>
<div
class=
"card-top"
></div>
<div
class=
"card_one"
>
...
...
@@ -14,17 +14,12 @@
<div
class=
"ctime"
>
<span
class=
"ctime_name"
>
有效期:
</span>
<span
class=
"ctime_content"
v-if=
"editForm.effectiveType == 3"
>
无限制
</span>
<span
class=
"ctime_content"
v-if=
"editForm.effectiveType == 1"
>
{{
editForm
.
effectiveDays
}}
天
</span>
<span
class=
"ctime_content"
v-if=
"editForm.effectiveType == 1"
>
{{
editForm
.
effectiveDays
}}
天
</span>
<span
class=
"ctime_content"
v-if=
"editForm.effectiveType == 2"
>
{{
couponTime
}}
</span>
</div>
<div
class=
"ctime"
>
<span
class=
"ctime_name"
>
使用限制:
</span>
<span
class=
"ctime_content"
>
{{
editForm
.
useBarriers
==
1
?
'无限制'
:
'满'
+
editForm
.
full
+
'可用'
}}
</span>
<span
class=
"ctime_content"
>
{{
editForm
.
useBarriers
==
1
?
'无限制'
:
'满'
+
editForm
.
full
+
'可用'
}}
</span>
</div>
</div>
<div
class=
"card_two"
>
...
...
@@ -33,17 +28,7 @@
</div>
</div>
<p
class=
"edit-title"
>
{{
title
}}
代金券
</p>
<glsx-combi-form
class=
"edit-form-container"
style=
"min-height: 570px;"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container"
style=
"min-height: 570px"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<template
slot=
"useChannelHtml"
>
<el-radio
v-model=
"editForm.useChannel"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
线上商品
</el-radio>
<el-radio
v-model=
"editForm.useChannel"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
到店核销
</el-radio>
...
...
@@ -51,68 +36,34 @@
<
template
slot=
"effectiveHtml"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"3"
:disabled=
"apear != 'couponAdd'"
>
无有效期
</el-radio>
<br
/>
<el-form-item
prop=
"effectiveTime"
ref=
"effectiveTime"
style=
"margin-top: 12px;display: block;"
>
<el-form-item
prop=
"effectiveTime"
ref=
"effectiveTime"
style=
"margin-top: 12px; display: block"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"daterange"
style=
"width:295px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOption"
:disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"daterange"
style=
"width: 295px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOption"
:disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
</el-radio>
</el-form-item>
<el-form-item
prop=
"effectiveDays"
ref=
"effectiveDays"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
领取后
<el-input
v-model=
"editForm.effectiveDays"
style=
"width:100px;margin-left:5px;margin-right:5px"
:disabled=
"apear != 'couponAdd' || editForm.effectiveType != 1"
/>
天内有效
<el-input
v-model=
"editForm.effectiveDays"
style=
"width: 100px; margin-left: 5px; margin-right: 5px"
:disabled=
"apear != 'couponAdd' || editForm.effectiveType != 1"
/>
天内有效
</el-radio>
</el-form-item>
</
template
>
<
template
slot=
"useBarriersHtml"
>
<el-radio
v-model=
"editForm.useBarriers"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
无限制
</el-radio>
<el-form-item
prop=
"full"
ref=
"full"
>
<el-radio
v-model=
"editForm.useBarriers"
label=
"2"
:disabled=
"apear != 'couponAdd' || editForm.useChannel == 2"
>
<el-radio
v-model=
"editForm.useBarriers"
label=
"2"
:disabled=
"apear != 'couponAdd' || editForm.useChannel == 2"
>
订单满
<el-input
v-model=
"editForm.full"
placeholder=
"输入金额(元)"
style=
"width: 110px;margin-left:5px;margin-right:5px"
:disabled=
"apear != 'couponAdd' || editForm.useBarriers != 2"
/>
元可用
<el-input
v-model=
"editForm.full"
placeholder=
"输入金额(元)"
style=
"width: 110px; margin-left: 5px; margin-right: 5px"
:disabled=
"apear != 'couponAdd' || editForm.useBarriers != 2"
/>
元可用
</el-radio>
</el-form-item>
</
template
>
<
template
slot=
"denominationHtml"
>
<el-input
v-model=
"editForm.denomination"
style=
"width: 150px"
:disabled=
"apear != 'couponAdd'"
@
blur
.
native
.
capture=
"editForm.useChannel == 1 && denominationBlur($event)"
>
<el-input
v-model=
"editForm.denomination"
style=
"width: 150px"
:disabled=
"apear != 'couponAdd'"
@
blur
.
native
.
capture=
"editForm.useChannel == 1 && denominationBlur($event)"
>
<span
slot=
"append"
>
元
</span>
</el-input>
<span
style=
"color:red;margin-left:15px"
v-if=
"priceFlag && editForm.useChannel == 1"
>
{{
selectedAllProList
.
length
?
'存在零售价低于代金券的商品'
:
'系统暂无已创建的商品,请先创建好商品后再配置代金券'
}}
</span>
<span
style=
"color: red; margin-left: 15px"
v-if=
"priceFlag && editForm.useChannel == 1"
>
{{
selectedAllProList
.
length
?
'存在零售价低于代金券的商品'
:
'系统暂无已创建的商品,请先创建好商品后再配置代金券'
}}
</span>
</
template
>
<!-- 只有使用途径为线上商品时才有效,到店核销时屏蔽 -->
<
template
slot=
"goodsHtml"
>
...
...
@@ -125,13 +76,7 @@
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<div
slot=
"proTable"
class=
"select-pro"
>
<!-- <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;margin-right:340px;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"
>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
</
template
>
...
...
@@ -141,14 +86,7 @@
</GLTable>
</div>
<
template
slot=
"useDescriptionHtml"
>
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 320px"
:autosize=
"
{ minRows: 2, maxRows: 4 }"
maxlength="200"
:disabled="apear == 'couponSee'"
/>
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 320px"
:autosize=
"
{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="apear == 'couponSee'" />
</
template
>
</glsx-combi-form>
</div>
...
...
@@ -157,14 +95,7 @@
<el-button
v-if=
"apear != 'couponSee'"
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
v-if=
"apear == 'couponSee'"
@
click=
"handleCancel"
>
返回
</el-button>
</div>
<select-muti-pro-forcoupon-dialog
v-if=
"isMutiSelectVisible"
:isMutiSelectVisible=
"isMutiSelectVisible"
:searchForm=
"searchProForm"
:selectedProList=
"selectedProList"
@
handleMutiSelectConfirm=
"handleMutiSelectConfirm"
@
handleMutiSelectClose=
"handleMutiSelectClose"
></select-muti-pro-forcoupon-dialog>
<select-muti-pro-forcoupon-dialog
v-if=
"isMutiSelectVisible"
:isMutiSelectVisible=
"isMutiSelectVisible"
:searchForm=
"searchProForm"
:selectedProList=
"selectedProList"
@
handleMutiSelectConfirm=
"handleMutiSelectConfirm"
@
handleMutiSelectClose=
"handleMutiSelectClose"
></select-muti-pro-forcoupon-dialog>
</div>
</template>
...
...
@@ -497,7 +428,7 @@ export default {
this
.
$messageBox
.
confirm
(
'是否删除该商品?'
,
'删除'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'error'
,
//
type: 'error',
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
var
idx
=
this
.
editForm
.
goodsRefList
.
findIndex
(
item
=>
item
.
id
==
obj
.
scope
.
id
)
...
...
src/views/homeSet/index.vue
View file @
9e6c52d
...
...
@@ -21,12 +21,12 @@
<div
class=
"banner-upload-box"
>
<div
class=
""
>
<div
class=
"flex"
>
<div
v-show=
"!subItem.bannerImg"
class=
"activity-img home-img-w-h"
style=
"margin-bottom: 11px
;
"
>
<div
v-show=
"!subItem.bannerImg"
class=
"activity-img home-img-w-h"
style=
"margin-bottom: 11px"
>
<div
class=
"add"
>
+
</div>
<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
v-show=
"!subItem.bannerImg"
style=
"margin-left: 40px
;
"
>
<div
v-show=
"!subItem.bannerImg"
style=
"margin-left: 40px"
>
<el-button
type=
"text"
class=
"el-icon-delete"
@
click=
"handleBannerDelete(subIndex)"
></el-button>
</div>
</div>
...
...
@@ -46,15 +46,16 @@
<span>
banner链接
</span>
<div
class=
"banner-link"
>
<el-radio-group
v-model=
"subItem.bannerType"
>
<el-radio
v-for=
"(m, n) in bannerRadioList"
:key=
"n"
:label=
"m.confId"
>
{{
m.confName
}}
</el-radio>
<el-radio
v-for=
"(m, n) in bannerRadioList"
:key=
"n"
:label=
"m.confId"
>
{{
m.confName
}}
</el-radio>
</el-radio-group>
<div
v-show=
"subItem.bannerType != '0'"
class=
"link-block"
>
<div
v-show=
"(subItem.bannerType == '1' && !subItem.goodsId) || (subItem.bannerType == '2' && !subItem.imgLinkUrl) || (subItem.bannerType == '3' && !subItem.videoLinkUrl)"
>
<el-button
class=
"banner-btn"
type=
"primary"
:size=
"size"
@
click=
"handleBnnerLinkClick(scope.scope, subIndex)"
>
选择
<el-button
class=
"banner-btn"
type=
"primary"
:size=
"size"
@
click=
"handleBnnerLinkClick(scope.scope, subIndex)"
>
选择
<input
v-if=
"subItem.bannerType == '2'"
type=
"file"
ref=
"file"
class=
"upload-btn"
accept=
"image/png, image/jpeg, image/jpg"
@
change=
"e => handleUploadChange(e, item)"
/>
<input
v-if=
"subItem.bannerType == '3'"
type=
"file"
ref=
"file"
class=
"upload-btn"
accept=
"video/mp4"
@
change=
"e => handleUploadVideoChange(e, item)"
/>
</el-button>
<p
class=
"banner-tips-txt"
>
点击banner后跳转{{
subItem.bannerType == '1' ? '商品' : (subItem.bannerType == '2' ? '图文介绍' : '视频介绍')
}}
</p>
<p
class=
"banner-tips-txt"
>
点击banner后跳转{{
subItem.bannerType == '1' ? '商品' : subItem.bannerType == '2' ? '图文介绍' : '视频介绍'
}}
</p>
</div>
<!-- 选择商品 -->
<div
v-show=
"subItem.bannerType == '1' && subItem.goodsId"
class=
"flex-grow"
>
...
...
@@ -103,7 +104,7 @@
</div>
<
template
slot=
"customerServerSuffix"
slot-scope=
"scope"
>
<el-button
v-show=
"!scope.scope.optionList.length"
type=
"text"
></el-button>
<p
style=
"color: #5850ff
;
"
@
click=
"handleNoServer"
>
请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员
</p>
<p
style=
"color: #5850ff"
@
click=
"handleNoServer"
>
请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员
</p>
</
template
>
<!-- <div slot="serviceTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable>
...
...
@@ -111,7 +112,7 @@
</glsx-combi-form>
</div>
</div>
<div
class=
"wechat-container m-r-20"
style=
"margin-top: 59px
;
"
>
<div
class=
"wechat-container m-r-20"
style=
"margin-top: 59px"
>
<div
class=
"wechat-box"
>
<img
class=
"w-100-per"
src=
"@/assets/phone.png"
/>
<img
class=
"wechant-back"
src=
"@/assets/home-set.png"
/>
...
...
@@ -124,11 +125,11 @@
</el-carousel>
</div>
<div
class=
"wechant-notice"
>
<img
class=
"img-14"
src=
"@/assets/icon_notice.png"
>
<img
class=
"img-14"
src=
"@/assets/icon_notice.png"
/
>
<span>
<marquee
width=
"200px"
height=
"14px"
scrolldelay=
"160"
>
{{
editForm.noticeContent
}}
</marquee>
<marquee
width=
"200px"
height=
"14px"
scrolldelay=
"160"
>
{{
editForm.noticeContent
}}
</marquee>
</span>
</div>
</div>
</div>
</div>
</div>
...
...
@@ -137,23 +138,18 @@
</div>
<select-single-pro-dialog
v-if=
"isSingleSelectVisible"
:isSingleSelectVisible=
"isSingleSelectVisible"
:selectedProInfo=
"selectedProInfo"
@
handleSingleSelectConfirm=
"handleSingleSelectConfirm"
@
handleSingleSelectClose=
"handleSingleSelectClose"
></select-single-pro-dialog>
<!-- 在线客服 -->
<glsx-dialog
class=
"server-dialog"
title=
"在线客服"
width=
"712px"
:noBtnOk=
"true"
:isVisible
.
sync=
"isConsultantVisible"
@
confirmDialog=
"handleConsultantConfirm"
@
closeDialog=
"handleConsultantClose"
>
<glsx-dialog
class=
"server-dialog"
title=
"在线客服"
width=
"712px"
:noBtnOk=
"true"
:isVisible
.
sync=
"isConsultantVisible"
@
confirmDialog=
"handleConsultantConfirm"
@
closeDialog=
"handleConsultantClose"
>
<div
class=
"server-container"
>
<img
src=
"@/assets/no-server.png"
/>
<img
src=
"@/assets/no-server.png"
/>
<p
class=
"server-txt"
>
系统暂无已创建的在线客服
</p>
</div>
<
template
slot=
"btn-middle"
>
<GLButton
type=
"primary"
:size=
"size"
fn=
"创建客服"
@
click=
"handleConsultantConfirm"
>
创建客服
</GLButton>
<GLButton
type=
"primary"
:size=
"size"
fn=
"创建客服"
@
click=
"handleConsultantConfirm"
>
创建客服
</GLButton>
</
template
>
</glsx-dialog>
<el-dialog
v-if=
"isImgVisible"
:visible
.
sync=
"isImgVisible"
class=
"dialog-look"
>
<video
v-if=
"dialogObj.uploadType == 'video'"
class=
"dialog-video"
controls
>
<source
:src=
"dialogObj.url"
type=
"video/mp4"
>
<source
:src=
"dialogObj.url"
type=
"video/mp4"
/
>
</video>
<img
v-else
class=
"dialog-img"
width=
"100%"
:src=
"dialogObj.url"
alt=
""
/>
</el-dialog>
...
...
@@ -308,7 +304,7 @@ export default {
this
.
editForm
.
customerServerUserTitle
=
tempObj
.
staffTitle
this
.
customerServerList
.
push
({
customerServerName
:
tempObj
.
staffName
,
customerServerUserTitle
:
tempObj
.
staffTitle
,
customerServerUserTitle
:
tempObj
.
staffTitle
})
}
}
...
...
@@ -366,10 +362,10 @@ export default {
imgLinkUrl
:
''
,
videoLinkUrl
:
''
}
if
(
item
.
bannerType
==
'2'
)
{
if
(
item
.
bannerType
==
'2'
)
{
params
.
imgLinkUrl
=
item
.
linkUrl
}
if
(
item
.
bannerType
==
'3'
)
{
if
(
item
.
bannerType
==
'3'
)
{
params
.
videoLinkUrl
=
item
.
linkUrl
}
if
(
item
.
goods
)
{
...
...
@@ -397,7 +393,7 @@ export default {
this
.
$messageBox
.
confirm
(
'是否删除该banner?'
,
'删除'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'error'
,
//
type: 'error',
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
this
.
editForm
[
attrName
].
splice
(
subIndex
,
1
)
...
...
@@ -457,14 +453,14 @@ export default {
handleBnnerLinkClick
(
targetItem
,
idx
)
{
this
.
curBanner
.
idx
=
idx
this
.
curBanner
.
targetItem
=
targetItem
switch
(
this
.
editForm
.
bannerList
[
idx
].
bannerType
)
{
case
'1'
:
switch
(
this
.
editForm
.
bannerList
[
idx
].
bannerType
)
{
case
'1'
:
this
.
handleSinglePro
(
targetItem
,
idx
)
break
;
break
case
'2'
:
break
;
break
case
'3'
:
break
;
break
}
},
// banner - 图片上传
...
...
@@ -569,7 +565,7 @@ export default {
linkUrl
:
''
,
goods
:
{}
})
if
(
item
.
bannerType
==
'1'
&&
item
.
goodsId
)
{
if
(
item
.
bannerType
==
'1'
&&
item
.
goodsId
)
{
params
.
bannerList
[
idx
].
goodsId
=
item
.
goodsId
params
.
bannerList
[
idx
].
goods
=
{
id
:
item
.
goods
.
id
,
...
...
@@ -577,13 +573,13 @@ export default {
goodsImage
:
item
.
goods
.
goodsImage
}
}
if
(
item
.
bannerType
==
'2'
&&
item
.
imgLinkUrl
)
{
if
(
item
.
bannerType
==
'2'
&&
item
.
imgLinkUrl
)
{
params
.
bannerList
[
idx
].
linkUrl
=
item
.
imgLinkUrl
}
if
(
item
.
bannerType
==
'3'
&&
item
.
videoLinkUrl
)
{
if
(
item
.
bannerType
==
'3'
&&
item
.
videoLinkUrl
)
{
params
.
bannerList
[
idx
].
linkUrl
=
item
.
videoLinkUrl
}
if
((
item
.
bannerType
==
'1'
&&
!
item
.
goodsId
)
||
(
item
.
bannerType
==
'2'
&&
!
item
.
imgLinkUrl
)
||
(
item
.
bannerType
==
'3'
&&
!
item
.
videoLinkUrl
))
{
if
((
item
.
bannerType
==
'1'
&&
!
item
.
goodsId
)
||
(
item
.
bannerType
==
'2'
&&
!
item
.
imgLinkUrl
)
||
(
item
.
bannerType
==
'3'
&&
!
item
.
videoLinkUrl
))
{
params
.
bannerList
[
idx
].
bannerType
=
0
}
})
...
...
@@ -610,7 +606,7 @@ export default {
position
:
absolute
;
top
:
56px
;
left
:
19px
;
border
:
1px
solid
#
D8D8D
8
;
border
:
1px
solid
#
d8d8d
8
;
}
.home-set
.wechat-container
.wechat-box
.wechant-banner-img
{
position
:
absolute
;
...
...
@@ -681,8 +677,8 @@ export default {
width
:
100%
;
height
:
72px
;
text-align
:
center
;
background-color
:
#
F7F7F
7
;
border
:
1px
solid
#
DCDFE
6
;
background-color
:
#
f7f7f
7
;
border
:
1px
solid
#
dcdfe
6
;
}
.home-set
.link-block
.banner-btn
{
position
:
relative
;
...
...
src/views/memberCenter/serviceAddUpdateLook.vue
View file @
9e6c52d
...
...
@@ -517,12 +517,12 @@ export default {
.numWrap
{
display
:
inline-block
;
background-color
:
#fff
;
min-width
:
34px
;
height
:
22px
;
text-align
:
center
;
line-height
:
22px
;
margin
:
0
2px
;
vertical-align
:
text-bottom
;
}
.addsubBtn
{
background-color
:
#fff
;
...
...
src/views/orderManage/index.vue
View file @
9e6c52d
...
...
@@ -15,10 +15,8 @@
</span>
</div>
<div>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData1"
>
</glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData2"
>
</glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData1"
></glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData2"
></glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData3"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
type=
"default"
@
click=
"handleReset"
>
重置
</el-button>
...
...
@@ -113,7 +111,7 @@
<
script
>
import
*
as
dayjs
from
'dayjs'
import
url
from
"@/assets/empty.png"
import
url
from
'@/assets/empty.png'
import
{
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
exportFn
}
from
'@/common/constant'
export
default
{
name
:
'orderManage'
,
...
...
@@ -684,7 +682,7 @@ export default {
})
},
// 确认收货 - end
setTableFinishFun
()
{
//接收到的数据为空
this
.
$refs
.
allOrderRef
.
data
.
length
?
(
this
.
$refs
.
allOrderRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
allOrderRef
.
setTableHeightFun
()
...
...
src/views/productGroup/components/commentDetail.vue
View file @
9e6c52d
<!-- 查看产品 - 评价信息 -->
<
template
>
<div
class=
"comment-detail container edit-container"
>
<div
style=
"padding: 20px;"
>
<!-- 表格区域 开始 -->
<GLTable
ref=
"commentRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"starLevel"
slot-scope=
"scope"
>
<img
v-for=
"(item, index) in scope.scope.starLevel"
:key=
"index"
class=
"icon-star"
src=
"@/assets/icon-star.png"
/>
</div>
<div
slot=
"goodsImage"
class=
"table-image"
slot-scope=
"scope"
>
<span
v-if=
"!scope.scope.imgUrls"
>
-
</span>
<img
v-else
class=
"img-60"
:src=
"scope.scope.imgUrls[0]"
@
click=
"handleImgLook(scope.scope.imgUrls)"
/>
</div>
</GLTable>
<el-dialog
v-if=
"isImgVisible"
title=
"查看"
:visible
.
sync=
"isImgVisible"
>
<div
class=
"dialog-look"
>
<span
v-for=
"(item, index) in dialogObj.imgUrls"
:key=
"index"
>
<el-image
style=
"width: 200px; height: 200px; margin-right: 10px;"
:src=
"item"
:preview-src-list=
"[item]"
></el-image>
</span>
</div>
</el-dialog>
<div
class=
"comment-detail container edit-container"
>
<div
style=
"padding: 20px"
>
<!-- 表格区域 开始 -->
<GLTable
ref=
"commentRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"starLevel"
slot-scope=
"scope"
>
<img
v-for=
"(item, index) in scope.scope.starLevel"
:key=
"index"
class=
"icon-star"
src=
"@/assets/icon-star.png"
/>
</div>
<div
slot=
"goodsImage"
class=
"table-image"
slot-scope=
"scope"
>
<span
v-if=
"!scope.scope.imgUrls"
>
-
</span>
<img
v-else
class=
"img-60"
:src=
"scope.scope.imgUrls[0]"
@
click=
"handleImgLook(scope.scope.imgUrls)"
/>
</div>
</GLTable>
<el-dialog
v-if=
"isImgVisible"
title=
"查看"
:visible
.
sync=
"isImgVisible"
:close-on-click-modal=
"false"
>
<div
class=
"dialog-look"
>
<span
v-for=
"(item, index) in dialogObj.imgUrls"
:key=
"index"
>
<el-image
style=
"width: 200px; height: 200px; margin-right: 10px"
:src=
"item"
:preview-src-list=
"[item]"
></el-image>
</span>
</div>
</el-dialog>
</div>
</div>
</div>
</
template
>
<
script
>
import
url
from
"@/assets/empty.png"
import
url
from
'@/assets/empty.png'
export
default
{
name
:
'commentDetail'
,
data
()
{
...
...
@@ -88,7 +88,7 @@ export default {
resolve
()
})
},
setTableFinishFun
()
{
//接收到的数据为空
this
.
$refs
.
commentRef
.
data
.
length
?
(
this
.
$refs
.
commentRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
commentRef
.
setTableHeightFun
()
...
...
@@ -104,5 +104,4 @@ export default {
}
}
</
script
>
<
style
>
</
style
>
<
style
></
style
>
src/views/seckillActivity/editActivity.vue
View file @
9e6c52d
...
...
@@ -11,7 +11,7 @@
</
template
>
<div
slot=
"goodsHtml"
>
<el-button
type=
"primary"
v-if=
"apear != 'see'"
@
click=
"handleRelateProClose"
>
选择商品
</el-button>
<div
v-if=
"selectedProInfo.id && !specificationDetailList.length"
style=
"margin-top:10px"
>
<div
v-if=
"selectedProInfo.id && !specificationDetailList.length"
style=
"margin-top:
10px"
>
<p>
<img
class=
"img-60"
:src=
"selectedProInfo.goodsImage"
/>
零售价 {{ (selectedProInfo.retailPrice / 100).toFixed(2) }}元
商品库存 {{ selectedProInfo.goodsStock }}件
...
...
@@ -25,8 +25,8 @@
</div>
</div>
<div
slot=
"specificationsHtml"
v-if=
"specificationDetailList.length"
class=
"flex"
style=
"min-width: 600px"
id=
"specificationDetailList"
>
<div
style=
"width: calc(100%)
;
"
>
<table
class=
"table-spesc"
style=
"width: calc(100%)
;
"
>
<div
style=
"width: calc(100%)"
>
<table
class=
"table-spesc"
style=
"width: calc(100%)"
>
<tbody>
<tr>
<td
:style=
"{ width: specsWidth }"
v-for=
"(subItem, subIndex) in specificationDetailList"
:key=
"subIndex"
>
{{ subItem.specificationName }}
</td>
...
...
@@ -37,19 +37,17 @@
</tr>
</tbody>
</table>
<table
class=
"table-spesc"
style=
"max-height: 400px
;
"
>
<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"
>
<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 }"
>
{{ item.retailPrice }}元
</td>
<td
:style=
"{ width: specsWidth }"
>
{{ item.stock }}件
</td>
<td
:style=
"{ width: specsWidth }"
>
<el-input
:disabled=
"isDisabled"
placeholder=
"秒杀价"
style=
"width:90%"
v-model=
"item.activityPrice"
@
input=
"item.activityPrice = activityPrice_input($event, item.retailPrice)"
>
</el-input>
<el-input
:disabled=
"isDisabled"
placeholder=
"秒杀价"
style=
"width: 90%"
v-model=
"item.activityPrice"
@
input=
"item.activityPrice = activityPrice_input($event, item.retailPrice)"
></el-input>
</td>
<td
:style=
"{ width: specsWidth }"
>
<el-input
:disabled=
"isDisabled"
placeholder=
"活动库存"
style=
"width:90%"
v-model=
"item.goodsStock"
@
input=
"item.goodsStock = goodsStock_input($event, item.stock)"
>
</el-input>
<el-input
:disabled=
"isDisabled"
placeholder=
"活动库存"
style=
"width: 90%"
v-model=
"item.goodsStock"
@
input=
"item.goodsStock = goodsStock_input($event, item.stock)"
></el-input>
</td>
</tr>
</tbody>
...
...
@@ -146,18 +144,20 @@ export default {
activityImg
:
[{
required
:
true
,
message
:
'请选择活动宣传图'
,
trigger
:
'change'
}],
promotion
:
[{
required
:
true
,
message
:
'请输入活动宣传语'
,
trigger
:
'change'
}],
activityTime
:
[{
required
:
true
,
message
:
'活动时间不能为空'
,
trigger
:
'change'
}],
activityPrice
:
[{
required
:
true
,
message
:
'请设置秒杀价'
,
trigger
:
'change'
},
activityPrice
:
[
{
required
:
true
,
message
:
'请设置秒杀价'
,
trigger
:
'change'
},
{
validator
:
(
rule
,
value
,
callback
)
=>
{
return
value
>=
+
(
this
.
selectedProInfo
.
retailPrice
/
100
).
toFixed
(
2
)
?
callback
(
new
Error
(
'秒杀价
不能大于等
于零售价'
))
:
callback
()
return
value
>=
+
(
this
.
selectedProInfo
.
retailPrice
/
100
).
toFixed
(
2
)
?
callback
(
new
Error
(
'秒杀价
必须小
于零售价'
))
:
callback
()
},
trigger
:
'change'
}
],
goodsStock
:
[{
required
:
true
,
message
:
'请设置活动库存'
,
trigger
:
'change'
},
goodsStock
:
[
{
required
:
true
,
message
:
'请设置活动库存'
,
trigger
:
'change'
},
{
validator
:
(
rule
,
value
,
callback
)
=>
{
return
value
>
=
this
.
selectedProInfo
.
goodsStock
?
callback
(
new
Error
(
'活动库存不能大于等
于商品库存'
))
:
callback
()
return
value
>
this
.
selectedProInfo
.
goodsStock
?
callback
(
new
Error
(
'活动库存不能大
于商品库存'
))
:
callback
()
},
trigger
:
'change'
}
...
...
@@ -248,10 +248,10 @@ export default {
deep
:
true
},
'editForm.activityPrice'
(
newValue
,
oldValue
)
{
this
.
editForm
.
activityPrice
=
limitPrice
(
newValue
,
oldValue
,
5
,
2
,
0
,
(
this
.
selectedProInfo
.
retailPrice
/
100
).
toFixed
(
2
)
)
this
.
editForm
.
activityPrice
=
limitPrice
(
newValue
,
oldValue
,
5
,
2
,
0
)
},
'editForm.goodsStock'
(
newValue
,
oldValue
)
{
this
.
editForm
.
goodsStock
=
limitPrice
(
newValue
,
oldValue
,
5
,
0
,
0
,
this
.
selectedProInfo
.
goodsStock
)
this
.
editForm
.
goodsStock
=
limitPrice
(
newValue
,
oldValue
,
5
,
0
,
0
)
}
},
...
...
@@ -299,7 +299,7 @@ export default {
}
},
handleSingleSelectClose
(
isCancel
=
false
)
{
if
(
isCancel
)
{
if
(
isCancel
)
{
this
.
selectedProInfo
.
id
&&
this
.
getGoodInfo
(
this
.
selectedProInfo
.
id
)
}
this
.
isSingleSelectVisible
=
!
this
.
isSingleSelectVisible
...
...
@@ -432,7 +432,7 @@ export default {
form
.
activityPrice
=
(
info
.
activityPrice
/
100
).
toFixed
(
2
)
form
.
goodsStock
=
info
.
goodsStock
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
editStatus
=
false
})
})
...
...
@@ -465,7 +465,7 @@ export default {
delete
param
.
activityPrice
delete
param
.
goodsStock
param
.
specificationDetailList
=
[]
this
.
nameToValSpecsList
.
forEach
(
function
(
item
)
{
this
.
nameToValSpecsList
.
forEach
(
function
(
item
)
{
var
obj
=
{
retailPrice
:
(
item
.
activityPrice
*
100
).
toFixed
(
0
),
//存的分,需乘100
stock
:
item
.
goodsStock
,
...
...
@@ -544,12 +544,13 @@ export default {
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
cancelJump
()
})
.
catch
(()
=>
{})
.
then
(()
=>
{
this
.
cancelJump
()
})
.
catch
(()
=>
{})
}
else
{
this
.
cancelJump
()
this
.
cancelJump
()
}
}
}
...
...
src/views/zoneList/editZone.vue
View file @
9e6c52d
...
...
@@ -155,7 +155,7 @@ export default {
this
.
editForm
.
merchantList
.
forEach
(
item
=>
{
item
.
merchantNo
=
item
.
merchantId
})
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
editStatus
=
false
})
})
...
...
@@ -178,7 +178,7 @@ export default {
this
.
$messageBox
.
confirm
(
'是否删除该门店?'
,
'删除'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'error'
,
//
type: 'error',
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
var
idx
=
this
.
editForm
.
merchantList
.
findIndex
(
item
=>
item
.
merchantNo
==
obj
.
scope
.
merchantNo
)
...
...
@@ -228,12 +228,13 @@ export default {
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
cancelJump
()
})
.
catch
(()
=>
{})
.
then
(()
=>
{
this
.
cancelJump
()
})
.
catch
(()
=>
{})
}
else
{
this
.
cancelJump
()
this
.
cancelJump
()
}
}
}
...
...
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