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 57510b55
authored
Nov 29, 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
86b312d6
728e0152
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
112 additions
and
130 deletions
src/components/glsx-combi-form/index.vue
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editDiscountCoupon.vue
src/views/couponManage/editExchangeCoupon.vue
src/views/couponManage/editMemberService.vue
src/views/couponManage/index.vue
src/views/couponManage/writeOffDetail.vue
src/views/memberCenter/center.vue
src/views/memberCenter/orderDetail.vue
src/views/memberCenter/setmealAddUpdate.vue
src/views/seckillActivity/editActivity.vue
src/views/seckillActivity/index.vue
src/components/glsx-combi-form/index.vue
View file @
57510b5
...
...
@@ -3,7 +3,7 @@
<div
class=
"glsx-combi-form"
>
<el-form
:ref=
"formRef"
:inline=
"true"
:model=
"formObj"
:label-width=
"labelWidth"
: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"
:class=
"
{ 'no-label': !item.label, isBlock: isBlock }" :style="{ ...item.style }" :label="item.label
? item.label + ':' : ''
" :prop="item.name">
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:id=
"item.name"
:class=
"
{ 'no-label': !item.label, isBlock: isBlock }" :style="{ ...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'"
>
...
...
src/views/couponManage/editCashCoupon.vue
View file @
57510b5
...
...
@@ -3,43 +3,40 @@
<div
class=
"edit-share marketing p-t-20"
>
<div
class=
"container edit-container"
>
<p
class=
"edit-title"
>
{{
title
}}
代金券
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"14
0
px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"14
4
px"
: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'"
@
change=
"clickUseChannel"
>
到店核销
</el-radio>
</
template
>
<
template
slot=
"effectiveHtml"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"3"
:disabled=
"apear!='couponAdd'"
>
无有效期
</el-radio><br>
<el-
radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear!='couponAdd'
"
>
<el-
form-item
prop=
"effectiveTime
"
>
<el-
form-item
prop=
"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"
:disabled=
"editForm.effectiveType != 2||apear!='couponAdd'"
clearable
>
</el-date-picker>
</el-form-item>
</el-radio><br>
<el-radio
v-model=
"editForm.effectiveType"
label=
"1"
:disabled=
"apear!='couponAdd'"
>
<el-form-item
prop=
"effectiveDays"
>
领取后
<el-input
v-model=
"editForm.effectiveDays"
style=
"width: 100px;"
:disabled=
"apear!='couponAdd'|| editForm.effectiveType != 1"
/>
天内有效
<!--
<el-input
v-model=
"editForm.effectiveDays"
style=
"width: 250px;"
:disabled=
"apear!='couponAdd'|| editForm.effectiveType != 1"
>
<span
slot=
"prepend"
>
领取后
</span>
<span
slot=
"append"
>
天内有效
</span>
</el-input>
-->
</el-form-item>
</el-radio>
</el-radio>
</el-form-item>
<el-form-item
prop=
"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-radio>
</el-form-item>
</
template
>
<
template
slot=
"useBarriersHtml"
>
<el-radio
v-model=
"editForm.useBarriers"
label=
"1"
:disabled=
"apear!='couponAdd'"
>
无限制
</el-radio>
<el-
radio
v-model=
"editForm.useBarriers"
label=
"2"
:disabled=
"apear!='couponAdd' || editForm.useChannel == 2
"
>
<el-
form-item
prop=
"full
"
>
订单满
<el-input
v-model=
"editForm.full"
placeholder=
"输入金额(元)"
style=
"width: 110px;
"
:disabled=
"apear!='couponAdd'|| editForm.useBarriers != 2"
/>
元可用
</el-
form-item
>
</el-
radio
>
<el-
form-item
prop=
"full
"
>
<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-
radio
>
</el-
form-item
>
</
template
>
<
template
slot=
"denominationHtml"
>
<el-input
v-model=
"editForm.denomination"
style=
"width: 150px"
:disabled=
"apear!='couponAdd'"
@
blur
.
native
.
capture=
"denominationBlur"
>
...
...
@@ -64,7 +61,7 @@
</GLTable>
</div>
<
template
slot=
"useDescriptionHtml"
>
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 3
08
px"
:autosize=
"
{ minRows: 2, maxRows: 4}" maxlength="200" :disabled="apear=='couponSee'" />
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 3
20
px"
:autosize=
"
{ minRows: 2, maxRows: 4}" maxlength="200" :disabled="apear=='couponSee'" />
</
template
>
</glsx-combi-form>
</div>
...
...
@@ -110,24 +107,11 @@
</div>
</div>
<div
class=
"footer"
:style=
"{ left: footerLeft + 'px', width: footerWidth + 'px' }"
>
<el-button
type=
"primary"
v-if=
"apear!='couponSee'"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
v-if=
"apear!='couponSee'"
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"primary"
v-if=
"apear!='couponSee'"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
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"
>
<!-- <template slot="search">
<div class="flex">
<el-form :inline="true" :model="searchProForm">
<el-form-item label="商品名称:">
<el-input :size="size" v-model="searchProForm.name" placeholder="请输入商品名称" maxlength="20" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button :size="size" type="primary" @click="handleConfigSearch">查询</el-button>
<el-button :size="size" @click="handleConfigReset">重置</el-button>
</el-form-item>
</el-form>
</div>
</template> -->
</select-muti-pro-forcoupon-dialog>
</div>
</template>
...
...
src/views/couponManage/editDiscountCoupon.vue
View file @
57510b5
...
...
@@ -5,27 +5,28 @@
<p
class=
"edit-title"
>
{{
title
}}
折扣劵
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<template
slot=
"effectiveHtml"
>
<el-
radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear!='couponAdd'
"
>
<el-
form-item
prop=
"effectiveTime
"
>
<el-
form-item
prop=
"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"
:disabled=
"editForm.effectiveType != 2||apear!='couponAdd'"
clearable
>
</el-date-picker>
</el-
form-item
>
</el-
radio><br
>
<el-
radio
v-model=
"editForm.effectiveType"
label=
"1"
:disabled=
"apear!='couponAdd'
"
>
<el-
form-item
prop=
"effectiveDays
"
>
领取后
<el-input
v-model=
"editForm.effectiveDays"
style=
"width: 100px;"
:disabled=
"apear!='couponAdd'|| editForm.effectiveType != 1"
/>
天内有效
</el-
form-item
>
</el-
radio
>
</el-date-picker>
</el-
radio
>
</el-
form-item
>
<el-
form-item
prop=
"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-
radio
>
</el-
form-item
>
</
template
>
<
template
slot=
"useDescriptionHtml"
>
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 3
08
px"
:autosize=
"
{ minRows: 2, maxRows: 4}" maxlength="200" :disabled="apear=='couponSee'" />
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 3
20
px"
:autosize=
"
{ minRows: 2, maxRows: 4}" maxlength="200" :disabled="apear=='couponSee'" />
</
template
>
</glsx-combi-form>
</div>
...
...
@@ -48,8 +49,8 @@
</div>
</div>
<div
class=
"footer"
:style=
"{ left: footerLeft + 'px', width: footerWidth + 'px' }"
>
<el-button
type=
"primary"
v-if=
"apear!='couponSee'"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
v-if=
"apear!='couponSee'"
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"primary"
v-if=
"apear!='couponSee'"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
v-if=
"apear=='couponSee'"
@
click=
"handleCancel"
>
返回
</el-button>
</div>
</div>
...
...
src/views/couponManage/editExchangeCoupon.vue
View file @
57510b5
...
...
@@ -5,27 +5,28 @@
<p
class=
"edit-title"
>
{{
title
}}
兑换券
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<template
slot=
"effectiveHtml"
>
<el-
radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear!='couponAdd'
"
>
<el-
form-item
prop=
"effectiveTime
"
>
<el-
form-item
prop=
"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"
:disabled=
"editForm.effectiveType != 2||apear!='couponAdd'"
clearable
>
</el-date-picker>
</el-
form-item
>
</el-
radio><br
>
<el-
radio
v-model=
"editForm.effectiveType"
label=
"1"
:disabled=
"apear!='couponAdd'
"
>
<el-
form-item
prop=
"effectiveDays
"
>
领取后
<el-input
v-model=
"editForm.effectiveDays"
style=
"width: 100px;"
:disabled=
"apear!='couponAdd'|| editForm.effectiveType != 1"
/>
天内有效
</el-
form-item
>
</el-
radio
>
</el-date-picker>
</el-
radio
>
</el-
form-item
>
<el-
form-item
prop=
"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-
radio
>
</el-
form-item
>
</
template
>
<
template
slot=
"useDescriptionHtml"
>
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 3
08
px"
:autosize=
"
{ minRows: 2, maxRows: 4}" maxlength="200" :disabled="apear=='couponSee'" />
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 3
20
px"
:autosize=
"
{ minRows: 2, maxRows: 4}" maxlength="200" :disabled="apear=='couponSee'" />
</
template
>
</glsx-combi-form>
</div>
...
...
@@ -48,8 +49,8 @@
</div>
</div>
<div
class=
"footer"
:style=
"{ left: footerLeft + 'px', width: footerWidth + 'px' }"
>
<el-button
type=
"primary"
v-if=
"apear!='couponSee'"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
v-if=
"apear!='couponSee'"
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"primary"
v-if=
"apear!='couponSee'"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
v-if=
"apear=='couponSee'"
@
click=
"handleCancel"
>
返回
</el-button>
</div>
</div>
...
...
src/views/couponManage/editMemberService.vue
View file @
57510b5
...
...
@@ -6,46 +6,47 @@
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<template
slot=
"effectiveHtml"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"3"
:disabled=
"apear!='couponAdd'"
>
无有效期
</el-radio><br>
<el-
radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear!='couponAdd'
"
>
<el-
form-item
prop=
"effectiveTime
"
>
<el-
form-item
prop=
"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"
:disabled=
"editForm.effectiveType != 2||apear!='couponAdd'"
clearable
>
</el-date-picker>
</el-
form-item
>
</el-
radio><br
>
<el-
radio
v-model=
"editForm.effectiveType"
label=
"1"
:disabled=
"apear!='couponAdd'
"
>
<el-
form-item
prop=
"effectiveDays
"
>
领取后
<el-input
v-model=
"editForm.effectiveDays"
style=
"width: 100px;"
:disabled=
"apear!='couponAdd'|| editForm.effectiveType != 1"
/>
天内有效
</el-
form-item
>
</el-
radio
>
</el-date-picker>
</el-
radio
>
</el-
form-item
>
<el-
form-item
prop=
"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-
radio
>
</el-
form-item
>
</
template
>
<
template
slot=
"useTypeHtml"
>
<el-radio
v-model=
"editForm.useType"
label=
"0"
:disabled=
"apear!='couponAdd'"
>
无限制
</el-radio><br>
<el-
radio
v-model=
"editForm.useType"
label=
"1"
:disabled=
"apear!='couponAdd'
"
>
<el-
form-item
prop=
"usageTimes
"
>
有效期内可使用
<el-input
v-model=
"editForm.usageTimes"
style=
"width: 100px;"
:disabled=
"apear!='couponAdd'|| editForm.useType != 1"
/>
次
</el-
form-item
>
</el-
radio><br
>
<el-
form-item
prop=
"usageTimes"
style=
"margin-top: 12px;display: block;
"
>
<el-
radio
v-model=
"editForm.useType"
label=
"1"
:disabled=
"apear!='couponAdd'
"
>
有效期内可使用
<el-input
v-model=
"editForm.usageTimes"
style=
"width: 100px;margin-left:5px;margin-right:5px"
:disabled=
"apear!='couponAdd'|| editForm.useType != 1"
/>
次
</el-
radio
>
</el-
form-item
>
<el-radio
v-model=
"editForm.useType"
label=
"2"
:disabled=
"apear!='couponAdd'"
>
<el-form-item
prop=
"useLimitDays"
>
有效期内
<el-input
v-model=
"editForm.useLimitDays"
style=
"width: 100px;"
:disabled=
"apear!='couponAdd'|| editForm.useType != 2"
/>
天
可使用
有效期内
<el-input
v-model=
"editForm.useLimitDays"
style=
"width: 100px;margin-left:5px;margin-right:5px"
:disabled=
"apear!='couponAdd'|| editForm.useType != 2"
/>
天可使用
</el-form-item>
<el-form-item
prop=
"usageTimes2"
>
<el-input
v-model=
"editForm.usageTimes2"
style=
"width: 100px;
"
:disabled=
"apear!='couponAdd'|| editForm.useType != 2"
/>
次
<el-input
v-model=
"editForm.usageTimes2"
style=
"width: 100px;
margin-right:5px"
:disabled=
"apear!='couponAdd'|| editForm.useType != 2"
/>
次
</el-form-item>
</el-radio>
</
template
>
<
template
slot=
"useDescriptionHtml"
>
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 3
08
px"
:autosize=
"
{ minRows: 2, maxRows: 4}" maxlength="200" :disabled="apear=='couponSee'" />
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 3
20
px"
:autosize=
"
{ minRows: 2, maxRows: 4}" maxlength="200" :disabled="apear=='couponSee'" />
</
template
>
</glsx-combi-form>
</div>
...
...
@@ -68,8 +69,8 @@
</div>
</div>
<div
class=
"footer"
:style=
"{ left: footerLeft + 'px', width: footerWidth + 'px' }"
>
<el-button
type=
"primary"
v-if=
"apear!='couponSee'"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
v-if=
"apear!='couponSee'"
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"primary"
v-if=
"apear!='couponSee'"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
v-if=
"apear=='couponSee'"
@
click=
"handleCancel"
>
返回
</el-button>
</div>
</div>
...
...
src/views/couponManage/index.vue
View file @
57510b5
...
...
@@ -11,8 +11,8 @@
<div>
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"100px"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleReset"
>
重置
</el-button>
</span>
</glsx-combi-form>
</div>
...
...
@@ -65,6 +65,7 @@ export default {
label
:
'名称'
,
name
:
'couponName'
,
type
:
'input'
,
width
:
'215px'
,
maxlength
:
20
},
// {
...
...
@@ -78,7 +79,7 @@ export default {
label
:
'优惠券类型'
,
name
:
'discountType'
,
type
:
'select'
,
width
:
'
160
px'
,
width
:
'
215
px'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
...
...
@@ -88,7 +89,7 @@ export default {
label
:
'优惠券状态'
,
name
:
'status'
,
type
:
'select'
,
width
:
'
160
px'
,
width
:
'
215
px'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
...
...
src/views/couponManage/writeOffDetail.vue
View file @
57510b5
...
...
@@ -5,10 +5,10 @@
<div>
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"100px"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"writeOff"
>
优惠券核销
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"goback"
>
返回
</el-button>
<el-button
:size=
"size"
@
click=
"goback"
>
返回
</el-button>
</span>
</glsx-combi-form>
</div>
...
...
src/views/memberCenter/center.vue
View file @
57510b5
...
...
@@ -237,7 +237,7 @@ export default {
//权益 - 弹窗
isDialogVisible
:
false
,
merchantData
:
{},
merchantId
:
44184606
//记得改
merchantId
:
0
//记得改 44184606
}
},
created
()
{
...
...
src/views/memberCenter/orderDetail.vue
View file @
57510b5
...
...
@@ -67,7 +67,8 @@
</el-table-column>
<el-table-column
prop=
"orderStatus"
label=
"状态"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
orderStatus
==
2
?
'待收货'
:
scope
.
row
.
orderStatus
==
3
?
'已完成'
:
scope
.
row
.
orderStatus
==
4
?
'售后中'
:
scope
.
row
.
orderStatus
==
2
?
'退款失败'
:
scope
.
row
.
orderStatus
==
2
?
'已退款'
:
''
}}
</span>
<span>
{{
scope
.
row
.
orderStatus
==
2
?
'待收货'
:
scope
.
row
.
orderStatus
==
3
?
'已完成'
:
scope
.
row
.
orderStatus
==
4
?
'售后中'
:
scope
.
row
.
orderStatus
==
5
?
'退款失败'
:
scope
.
row
.
orderStatus
==
6
?
'已退款'
:
''
}}
</span>
<div>
{{
scope
.
row
.
refundReason
}}
</div>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -113,25 +114,12 @@ export default {
this
.
$set
(
this
.
tableData
[
0
],
'totalPrice'
,
this
.
detail
.
originalPrice
)
this
.
$set
(
this
.
tableData
[
0
],
'realPayPrice'
,
this
.
detail
.
realPayPrice
)
this
.
$set
(
this
.
tableData
[
0
],
'orderStatus'
,
this
.
detail
.
orderStatus
)
this
.
$set
(
this
.
tableData
[
0
],
'refundReason'
,
this
.
detail
.
refundReason
)
}
else
{
this
.
$message
.
error
(
`
${
res
.
message
}
`
)
}
})
},
// setTableData() {
// this.$set(this.tableData[0], 'couponList', this.detail.couponList)
// this.$set(this.tableData[0], 'orderType', this.detail.orderType)
// this.$set(this.tableData[0], 'effectiveNum', this.detail.effectiveNum)
// this.$set(this.tableData[0], 'originalPrice', this.detail.originalPrice)
// this.$set(this.tableData[0], 'amount', 1)
// this.$set(this.tableData[0], 'totalPrice', this.detail.originalPrice)
// this.$set(this.tableData[0], 'realPayPrice', this.detail.realPayPrice)
// this.$set(this.tableData[0], 'orderStatus', this.detail.orderStatus)
// console.log(this.tableData[0], '表格数据')
// },
goBack
()
{
console
.
log
(
this
.
detail
,
'gggg'
)
this
.
$router
.
go
(
-
1
)
...
...
src/views/memberCenter/setmealAddUpdate.vue
View file @
57510b5
...
...
@@ -203,7 +203,7 @@ export default {
}
}
})
console
.
log
(
'编辑内容'
,
this
.
choseItemList
,
this
.
totalPrice
)
this
.
copyTotalPrice
=
this
.
totalPrice
this
.
copyRuleForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ruleForm
))
//深拷贝一份数据
this
.
copyChoseItemList
=
this
.
choseItemList
...
...
@@ -225,7 +225,7 @@ export default {
serviceQuantity
:
0
}
})
console
.
log
(
this
.
allItemList
,
'服务套餐'
)
if
(
this
.
id
)
{
this
.
getServiceInfo
()
//获取编辑详情
}
...
...
@@ -242,12 +242,12 @@ export default {
closeChoseItemFun
(
item
,
index
)
{
this
.
totalPrice
=
this
.
totalPrice
-
item
.
vipPrice
*
item
.
serviceQuantity
// item.serviceQuantity = 0
this
.
allItemList
.
forEach
(
ele
=>
{
if
(
ele
.
id
==
item
.
serviceId
)
{
ele
.
serviceQuantity
=
0
}
})
this
.
selectNumFun
()
//
this.allItemList.forEach(ele => {
//
if (ele.id == item.serviceId) {
//
ele.serviceQuantity = 0
//
}
//
})
//
this.selectNumFun()
this
.
choseItemList
.
splice
(
index
,
1
)
},
selectNumFun
()
{
...
...
@@ -402,6 +402,7 @@ export default {
serviceId
:
ele
.
id
}
})
console
.
log
(
'确定之后choseItemList'
,
this
.
choseItemList
)
this
.
setmealDialogVisible
=
false
},
handleClose
()
{
...
...
@@ -415,7 +416,7 @@ export default {
// //第二个参数这里是对象,不是number(n)
// return preValue + choseItem.vipPrice * choseItem.serviceQuantity
// }, 0)
this
.
getSetmealServiceFun
()
//
this.getSetmealServiceFun()
},
handleTipClose
()
{
this
.
isTipDialogVisible
=
false
...
...
src/views/seckillActivity/editActivity.vue
View file @
57510b5
...
...
@@ -5,7 +5,7 @@
<p
class=
"edit-title"
>
{{
title
}}
秒杀活动
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<template
slot=
"activityTimeHtml"
>
<
el-form-item
>
<
!--
<el-form-item>
--
>
<el-date-picker
v-model=
"editForm.activityTime"
type=
"datetimerange"
...
...
@@ -16,13 +16,12 @@
:picker-options=
"pickerOptions"
:disabled=
"isDisabled"
clearable
>
</el-date-picker>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
</
template
>
<div
slot=
"goodsHtml"
>
<el-button
type=
"primary"
v-if=
"apear!='see'"
@
click=
"handleRelateProClose"
>
选择商品
</el-button>
<div
v-if=
"selectedProInfo.id && !specificationDetailList.length"
>
<div
v-if=
"selectedProInfo.id && !specificationDetailList.length"
style=
"margin-top:10px"
>
<p>
<!-- <img ng-src="{{selectPro.goodsImage}}" style="width: 50px;height:50px;"/> -->
<img
class=
"img-60"
:src=
"selectedProInfo.goodsImage"
/>
零售价 {{(selectedProInfo.retailPrice/100).toFixed(2)}}元
...
...
@@ -83,8 +82,8 @@
</glsx-combi-form>
</div>
<div
class=
"footer"
:style=
"{ left: footerLeft + 'px', width: footerWidth + 'px' }"
>
<el-button
type=
"primary"
v-if=
"apear!='see'"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
v-if=
"apear!='see'"
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"primary"
v-if=
"apear!='see'"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
v-if=
"apear=='see'"
@
click=
"handleCancel"
>
返回
</el-button>
</div>
<select-single-pro-dialog
v-if=
"isSingleSelectVisible"
:isSingleSelectVisible=
"isSingleSelectVisible"
:selectedProInfo=
"selectedProInfo"
@
handleSingleSelectConfirm=
"handleSingleSelectConfirm"
@
handleSingleSelectClose=
"handleSingleSelectClose"
></select-single-pro-dialog>
...
...
@@ -136,7 +135,8 @@ export default {
promotion
:
''
,
activityTime
:
[],
activityPrice
:
''
,
goodsStock
:
''
goodsStock
:
''
,
goodsId
:
''
},
//商品列表
tableParams
:
{
...
...
@@ -160,8 +160,8 @@ export default {
searchProForm
:
{
name
:
''
},
selectedAllProList
:
[],
selectedProList
:
[],
//
selectedAllProList: [],
//
selectedProList: [],
editRule
:
{
activityName
:
[{
required
:
true
,
message
:
'请输入活动名称'
,
trigger
:
'change'
}],
activityImg
:
[{
required
:
true
,
message
:
'请选择活动宣传图'
,
trigger
:
'change'
}],
...
...
@@ -169,6 +169,7 @@ export default {
activityTime
:
[{
required
:
true
,
message
:
'活动时间不能为空'
,
trigger
:
'change'
}],
activityPrice
:
[{
required
:
true
,
message
:
'请设置秒杀价'
,
trigger
:
'change'
}],
goodsStock
:
[{
required
:
true
,
message
:
'请设置活动库存'
,
trigger
:
'change'
}],
goodsId
:
[{
required
:
true
,
message
:
'请选择商品'
,
trigger
:
[
'change'
,
'blur'
]
}],
},
editFormData
:
[
{
...
...
@@ -209,7 +210,7 @@ export default {
},
{
label
:
'商品'
,
name
:
''
,
name
:
'
goodsId
'
,
addHtml
:
'goodsHtml'
},
]
...
...
@@ -296,6 +297,7 @@ export default {
// this.editForm.goodsImage = selectedProInfo.goodsImage
this
.
handleSingleSelectClose
()
if
(
selectedProInfo
){
this
.
editForm
.
goodsId
=
selectedProInfo
.
id
this
.
getGoodInfo
(
selectedProInfo
.
id
)
}
},
...
...
@@ -498,14 +500,14 @@ export default {
handleConfirm
()
{
this
.
validateRules
()
var
flag
=
true
if
(
JSON
.
stringify
(
this
.
selectedProInfo
)
==
'{}'
){
this
.
$message
({
message
:
'未选择商品'
,
type
:
'error'
})
flag
=
false
}
//
var flag = true
//
if(JSON.stringify(this.selectedProInfo) == '{}'){
//
this.$message({
//
message: '未选择商品',
//
type: 'error'
//
})
//
flag = false
//
}
if
(
this
.
nameToValSpecsList
&&
this
.
nameToValSpecsList
.
length
>
0
){
for
(
var
key
in
this
.
nameToValSpecsList
)
{
var
item
=
this
.
nameToValSpecsList
[
key
]
...
...
@@ -528,6 +530,8 @@ export default {
}
}
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
console
.
log
(
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
);
if
(
valid
)
{
if
(
!
flag
){
return
...
...
src/views/seckillActivity/index.vue
View file @
57510b5
...
...
@@ -8,8 +8,8 @@
<div>
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"100px"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleReset"
>
重置
</el-button>
</span>
</glsx-combi-form>
</div>
...
...
@@ -64,13 +64,14 @@ export default {
label
:
'活动名称'
,
name
:
'activityName'
,
type
:
'input'
,
width
:
'215px'
,
maxlength
:
20
},
{
label
:
'状态'
,
name
:
'activityStatus'
,
type
:
'select'
,
width
:
'
160
px'
,
width
:
'
215
px'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
...
...
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