Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
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 ac45f926
authored
Dec 09, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
5ed3de43
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
542 additions
and
161 deletions
src/components/selectSingleProDialog/index.vue
src/views/seckillActivity/editCrowdFund.vue
src/components/selectSingleProDialog/index.vue
View file @
ac45f92
...
@@ -86,6 +86,7 @@ export default {
...
@@ -86,6 +86,7 @@ export default {
goodsSources
:
[
1
,
3
],
goodsSources
:
[
1
,
3
],
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
100000
,
pageSize
:
100000
,
deliveryType
:
1
,
merchantId
:
this
.
merchantId
merchantId
:
this
.
merchantId
}
}
var
that
=
this
var
that
=
this
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
ac45f92
<!-- 众筹活动 -->
<!-- 众筹活动 -->
<
template
>
<
template
>
<div
v-loading=
"loading"
class=
"edit-activity"
>
<div
v-loading=
"loading"
class=
"edit-activity"
>
<!-- 导航 -->
<!-- 导航 -->
<el-tabs
:tab-position=
"tabPosition"
v-model=
"tabName"
class=
"nav-tabs"
@
tab-click=
"whereToGo(tabName)"
>
<el-tabs
:tab-position=
"tabPosition"
<el-tab-pane
label=
"基本信息"
name=
"basic"
></el-tab-pane>
v-model=
"tabName"
<el-tab-pane
label=
"活动配置"
name=
"config"
></el-tab-pane>
class=
"nav-tabs"
@
tab-click=
"whereToGo(tabName)"
>
<el-tab-pane
label=
"基本信息"
name=
"basic"
></el-tab-pane>
<el-tab-pane
label=
"活动配置"
name=
"config"
></el-tab-pane>
<el-tab-pane
name=
"activityServices"
>
<el-tab-pane
name=
"activityServices"
>
<span
class=
"p-l-23"
slot=
"label"
>
服务说明
</span>
<span
class=
"p-l-23"
slot=
"label"
>
服务说明
</span>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
name=
"activityCommoditys"
>
<el-tab-pane
name=
"activityCommoditys"
>
<span
class=
"p-l-23"
slot=
"label"
>
商品答疑
</span>
<span
class=
"p-l-23"
slot=
"label"
>
商品答疑
</span>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
name=
"activityExperienceDTOs"
>
<el-tab-pane
name=
"activityExperienceDTOs"
>
<span
class=
"p-l-23"
slot=
"label"
>
服务评价
</span>
<span
class=
"p-l-23"
slot=
"label"
>
服务评价
</span>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
name=
"live"
>
<el-tab-pane
name=
"live"
>
<span
class=
"p-l-23"
slot=
"label"
>
直播配置
</span>
<span
class=
"p-l-23"
slot=
"label"
>
直播配置
</span>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
<div
class=
"marketing edit-box"
>
<div
class=
"marketing edit-box"
>
<!-- 基本信息 -->
<!-- 基本信息 -->
<div
class=
"container edit-container"
style=
"min-height: 520px !important;"
>
<div
class=
"container edit-container"
<p
class=
"edit-title"
id=
"basic"
>
基本信息
</p>
style=
"min-height: 520px !important;"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<p
class=
"edit-title"
id=
"basic"
>
基本信息
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<div
slot=
"merchantHtml"
>
<div
slot=
"merchantHtml"
>
<el-button
type=
"default"
class=
"el-icon-plus"
v-if=
"!isDisabled"
@
click=
"handleRelateStoreClose"
>
选择门店
</el-button>
<el-button
type=
"default"
<div
class=
"merchantNameLabel"
v-if=
"editForm.merchantName"
>
class=
"el-icon-plus"
v-if=
"!isDisabled"
@
click=
"handleRelateStoreClose"
>
选择门店
</el-button>
<div
class=
"merchantNameLabel"
v-if=
"editForm.merchantName"
>
<p>
所属门店
</p>
<p>
所属门店
</p>
<div
class=
"merchantName ellipsis-1"
>
{{
editForm
.
merchantName
}}
</div>
<div
class=
"merchantName ellipsis-1"
>
{{
editForm
.
merchantName
}}
</div>
</div>
</div>
</div>
</div>
<div
slot=
"activityImg"
class=
"edit-tips m-t-8"
>
展示在首页的活动详情页
</div>
<div
slot=
"activityImg"
<template
slot=
"activityTimeHtml"
slot-scope=
"scope"
>
class=
"edit-tips m-t-8"
>
展示在首页的活动详情页
</div>
<el-date-picker
v-model=
"editForm.activityTime"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:default-time=
"['00:00:00', '23:59:59']"
:disabled=
"isDisabled"
@
change=
"e => handleTimeChange(e, scope.scope)"
></el-date-picker>
<template
slot=
"activityTimeHtml"
slot-scope=
"scope"
>
<el-date-picker
v-model=
"editForm.activityTime"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:default-time=
"['00:00:00', '23:59:59']"
:disabled=
"isDisabled"
@
change=
"e => handleTimeChange(e, scope.scope)"
></el-date-picker>
</
template
>
</
template
>
<div
slot=
"goodsHtml"
style=
"width:700px"
>
<div
slot=
"goodsHtml"
<el-button
type=
"default"
class=
"el-icon-plus"
v-if=
"!isDisabled"
@
click=
"handleRelateProClose"
>
选择商品
</el-button>
style=
"width:700px"
>
<div
v-if=
"selectedProInfo.id && !specificationDetailList.length"
style=
"margin-top: 10px"
>
<el-button
type=
"default"
class=
"el-icon-plus"
v-if=
"!isDisabled"
@
click=
"handleRelateProClose"
>
选择商品
</el-button>
<div
v-if=
"selectedProInfo.id && !specificationDetailList.length"
style=
"margin-top: 10px"
>
<p>
<p>
<img
class=
"img-60"
:src=
"selectedProInfo.goodsImage"
/>
<img
class=
"img-60"
零售价 {{ (selectedProInfo.retailPrice / 100).toFixed(2) }}元
商品库存 {{ selectedProInfo.goodsStock }}件
:src=
"selectedProInfo.goodsImage"
/>
零售价 {{ (selectedProInfo.retailPrice / 100).toFixed(2) }}元
商品库存 {{ selectedProInfo.goodsStock }}件
</p>
</p>
<el-form-item
label=
"众筹价:"
prop=
"crowdFundingPrice"
id=
"crowdFundingPrice"
>
<el-form-item
label=
"众筹价:"
<el-input
v-model=
"editForm.crowdFundingPrice"
style=
"width: 150px"
:disabled=
"isDisabled"
><span
slot=
"append"
>
元
</span></el-input>
prop=
"crowdFundingPrice"
<span
class=
"balancePayment"
>
尾款: {{ editForm.crowdFundingPrice | filterBalancePayment(editForm.activityPrice) }}
</span>
id=
"crowdFundingPrice"
>
<el-input
v-model=
"editForm.crowdFundingPrice"
style=
"width: 150px"
:disabled=
"isDisabled"
><span
slot=
"append"
>
元
</span></el-input>
<span
class=
"balancePayment"
>
尾款:
{{ editForm.crowdFundingPrice | filterBalancePayment(editForm.activityPrice) }}
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"定金:"
prop=
"activityPrice"
id=
"activityPrice"
>
<el-form-item
label=
"定金:"
<el-input
v-model=
"editForm.activityPrice"
style=
"width: 150px"
:disabled=
"isDisabled"
><span
slot=
"append"
>
元
</span></el-input>
prop=
"activityPrice"
id=
"activityPrice"
>
<el-input
v-model=
"editForm.activityPrice"
style=
"width: 150px"
:disabled=
"isDisabled"
><span
slot=
"append"
>
元
</span></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"活动库存:"
prop=
"goodsStock"
id=
"goodsStock"
>
<el-form-item
label=
"活动库存:"
<el-input
v-model=
"editForm.goodsStock"
style=
"width: 150px"
:disabled=
"isDisabled"
><span
slot=
"append"
>
件
</span></el-input>
prop=
"goodsStock"
id=
"goodsStock"
>
<el-input
v-model=
"editForm.goodsStock"
style=
"width: 150px"
:disabled=
"isDisabled"
><span
slot=
"append"
>
件
</span></el-input>
</el-form-item>
</el-form-item>
</div>
</div>
</div>
</div>
<div
slot=
"specificationsHtml"
v-if=
"specificationDetailList.length"
class=
"flex"
style=
"min-width: 600px"
id=
"specificationDetailList"
>
<div
slot=
"specificationsHtml"
v-if=
"specificationDetailList.length"
class=
"flex"
style=
"min-width: 600px"
id=
"specificationDetailList"
>
<div
style=
"width: calc(100%)"
>
<div
style=
"width: calc(100%)"
>
<table
class=
"table-spesc"
style=
"width: calc(100%)"
>
<table
class=
"table-spesc"
style=
"width: calc(100%)"
>
<tbody>
<tbody>
<tr>
<tr>
<td
:style=
"{ width: specsWidth }"
v-for=
"(subItem, subIndex) in specificationDetailList"
:key=
"subIndex"
>
{{ subItem.specificationName }}
</td>
<td
:style=
"{ width: specsWidth }"
v-for=
"(subItem, subIndex) in specificationDetailList"
:key=
"subIndex"
>
{{ subItem.specificationName }}
</td>
<td
:style=
"{ width: specsWidth }"
>
零售价(元)
</td>
<td
:style=
"{ width: specsWidth }"
>
零售价(元)
</td>
<td
:style=
"{ width: specsWidth }"
>
库存
</td>
<td
:style=
"{ width: specsWidth }"
>
库存
</td>
<td
:style=
"{ width: specsWidth }"
>
设置秒杀价
</td>
<td
:style=
"{ width: specsWidth }"
>
设置秒杀价
</td>
...
@@ -67,31 +127,55 @@
...
@@ -67,31 +127,55 @@
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
<table
class=
"table-spesc"
style=
"max-height: 400px"
>
<table
class=
"table-spesc"
style=
"max-height: 400px"
>
<tbody>
<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)"
<td
:style=
"{ width: specsWidth }"
v-for=
"(n, idx) in item.specsValueList"
:key=
"idx"
>
{{ n }}
</td>
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.retailPrice }}元
</td>
<td
:style=
"{ width: specsWidth }"
>
{{ item.stock }}件
</td>
<td
:style=
"{ width: specsWidth }"
>
{{ item.stock }}件
</td>
<td
:style=
"{ width: specsWidth }"
>
<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>
<td
:style=
"{ width: specsWidth }"
>
<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>
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</div>
</div>
</div>
</div>
<
template
slot=
"limitPurchaseFlag"
slot-scope=
"scope"
>
<
template
slot=
"limitPurchaseFlag"
<el-radio-group
v-model=
"editForm[scope.scope.name]"
@
change=
"handleIsLimit"
>
slot-scope=
"scope"
>
<el-radio
v-for=
"(item, index) in scope.scope.optionList"
:key=
"index"
:label=
"item[scope.scope.optionId]"
:disabled=
"isDisabled"
>
{{
item
[
scope
.
scope
.
optionLabel
]
}}
</el-radio>
<el-radio-group
v-model=
"editForm[scope.scope.name]"
@
change=
"handleIsLimit"
>
<el-radio
v-for=
"(item, index) in scope.scope.optionList"
:key=
"index"
:label=
"item[scope.scope.optionId]"
:disabled=
"isDisabled"
>
{{
item
[
scope
.
scope
.
optionLabel
]
}}
</el-radio>
</el-radio-group>
</el-radio-group>
<p
v-if=
"editForm[scope.scope.name] == 2"
id=
"limitPurchaseNumber"
style=
"color: #333333;"
>
<p
v-if=
"editForm[scope.scope.name] == 2"
id=
"limitPurchaseNumber"
style=
"color: #333333;"
>
每人限购
每人限购
<el-form-item
prop=
"limitPurchaseNumber"
>
<el-form-item
prop=
"limitPurchaseNumber"
>
<el-input
v-model=
"editForm.limitPurchaseNumber"
placeholder=
"请输入限购次数"
:disabled=
"isDisabled"
></el-input>
<el-input
v-model=
"editForm.limitPurchaseNumber"
placeholder=
"请输入限购次数"
:disabled=
"isDisabled"
></el-input>
</el-form-item>
</el-form-item>
件
件
</p>
</p>
...
@@ -100,35 +184,76 @@
...
@@ -100,35 +184,76 @@
</div>
</div>
<!-- 活动配置 -->
<!-- 活动配置 -->
<div
class=
"container edit-container crowd-config"
>
<div
class=
"container edit-container crowd-config"
>
<p
class=
"edit-title"
id=
"config"
>
活动配置
</p>
<p
class=
"edit-title"
<glsx-combi-form
class=
"edit-form-container"
ref=
"configEditFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"configEditFormData"
:formRules=
"editRule"
>
id=
"config"
>
活动配置
</p>
<
template
slot=
"customerServiceFlag"
slot-scope=
"scope"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"configEditFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"configEditFormData"
:formRules=
"editRule"
>
<
template
slot=
"customerServiceFlag"
slot-scope=
"scope"
>
<el-radio-group
v-model=
"editForm[scope.scope.name]"
>
<el-radio-group
v-model=
"editForm[scope.scope.name]"
>
<el-radio
v-for=
"(item, index) in scope.scope.optionList"
:key=
"index"
:label=
"item[scope.scope.optionId]"
>
{{
item
[
scope
.
scope
.
optionLabel
]
}}
</el-radio>
<el-radio
v-for=
"(item, index) in scope.scope.optionList"
:key=
"index"
:label=
"item[scope.scope.optionId]"
>
{{
item
[
scope
.
scope
.
optionLabel
]
}}
</el-radio>
</el-radio-group>
</el-radio-group>
<div
class=
"customer-service"
v-if=
"editForm[scope.scope.name] == 2"
id=
"customerServiceFlag"
>
<div
class=
"customer-service"
<glsx-combi-form
class=
"edit-form-container"
ref=
"customerEditFormRef"
:isEdit=
"true"
:isBlock=
"false"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"customerEditFormData"
:formRules=
"editRule"
></glsx-combi-form>
v-if=
"editForm[scope.scope.name] == 2"
id=
"customerServiceFlag"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"customerEditFormRef"
:isEdit=
"true"
:isBlock=
"false"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"customerEditFormData"
:formRules=
"editRule"
></glsx-combi-form>
</div>
</div>
</
template
>
</
template
>
<
template
slot=
"activityMusic"
slot-scope=
"scope"
>
<
template
slot=
"activityMusic"
slot-scope=
"scope"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<div
class=
"music-box flex-center"
v-for=
"(item, index) in musicList"
:key=
"index"
@
click=
"handleMusicChange(index)"
>
<div
class=
"music-box flex-center"
<div
class=
"music-icon"
@
click
.
stop=
"handleMusic(item, index)"
>
v-for=
"(item, index) in musicList"
:key=
"index"
@
click=
"handleMusicChange(index)"
>
<div
class=
"music-icon"
@
click
.
stop=
"handleMusic(item, index)"
>
<div
:class=
"[index != playObj.idx ? 'icon-start' : 'icon-stop']"
></div>
<div
:class=
"[index != playObj.idx ? 'icon-start' : 'icon-stop']"
></div>
<img
src=
"@/assets/seckillActivity/icon-music-default.png"
/>
<img
src=
"@/assets/seckillActivity/icon-music-default.png"
/>
</div>
</div>
<div
class=
"music-name"
>
<div
class=
"music-name"
>
<p
class=
"ellipsis-1"
style=
"max-width: 90%;"
>
{{
item
.
name
}}
</p>
<p
class=
"ellipsis-1"
style=
"max-width: 90%;"
>
{{
item
.
name
}}
</p>
.mp3
.mp3
</div>
</div>
<img
v-show=
"item.isCheck"
:class=
"
{ 'icon-check': item.isCheck }" src="@/assets/seckillActivity/icon-check.png" />
<img
v-show=
"item.isCheck"
:class=
"
{ 'icon-check': item.isCheck }"
src="@/assets/seckillActivity/icon-check.png" />
</div>
</div>
</div>
</div>
<el-upload
class=
"m-t-10"
action=
""
accept=
"audio/mp3, audio/m4a"
:show-file-list=
"false"
:http-request=
"handleMusicUpload"
:before-upload=
"e => handleMusicBeforeUpload(e, scope.scope)"
:file-list=
"fileList"
>
<el-upload
class=
"m-t-10"
<el-button
class=
"el-icon-plus"
size=
"small"
type=
"default"
>
背景音乐
</el-button>
action=
""
accept=
"audio/mp3, audio/m4a"
:show-file-list=
"false"
:http-request=
"handleMusicUpload"
:before-upload=
"e => handleMusicBeforeUpload(e, scope.scope)"
:file-list=
"fileList"
>
<el-button
class=
"el-icon-plus"
size=
"small"
type=
"default"
>
背景音乐
</el-button>
</el-upload>
</el-upload>
<audio
v-if=
"playObj.src"
style=
"display: none;"
id=
"music-audio"
controls
>
<audio
v-if=
"playObj.src"
<source
type=
"audio/mpeg"
:src=
"playObj.src"
/>
style=
"display: none;"
id=
"music-audio"
controls
>
<source
type=
"audio/mpeg"
:src=
"playObj.src"
/>
</audio>
</audio>
<!--
<div
v-if=
"editForm[scope.scope.name]"
class=
"flex"
>
<!--
<div
v-if=
"editForm[scope.scope.name]"
class=
"flex"
>
<audio
controls
>
<audio
controls
>
...
@@ -138,33 +263,69 @@
...
@@ -138,33 +263,69 @@
</div>
-->
</div>
-->
</
template
>
</
template
>
<
template
slot=
"fictitious"
>
<
template
slot=
"fictitious"
>
<div
class=
"fictitious"
id=
"fictitious"
>
<div
class=
"fictitious"
<el-form-item
label=
"参团:"
prop=
"fictitiousGroupQuantity"
labelWidth=
"60px"
>
id=
"fictitious"
>
<el-input
v-model=
"editForm.fictitiousGroupQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"参团人数"
></el-input>
<el-form-item
label=
"参团:"
prop=
"fictitiousGroupQuantity"
labelWidth=
"60px"
>
<el-input
v-model=
"editForm.fictitiousGroupQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"参团人数"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
id=
"fictitiousLadderQuantity"
label=
"阶梯人数:"
prop=
"fictitiousLadderQuantity"
labelWidth=
"90px"
>
<el-form-item
id=
"fictitiousLadderQuantity"
<el-input
v-model=
"editForm.fictitiousLadderQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"阶梯人数"
></el-input>
label=
"阶梯人数:"
prop=
"fictitiousLadderQuantity"
labelWidth=
"90px"
>
<el-input
v-model=
"editForm.fictitiousLadderQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"阶梯人数"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
id=
"fictitiousViewQuantity"
label=
"浏览:"
prop=
"fictitiousViewQuantity"
labelWidth=
"60px"
>
<el-form-item
id=
"fictitiousViewQuantity"
<el-input
v-model=
"editForm.fictitiousViewQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"浏览人数"
></el-input>
label=
"浏览:"
prop=
"fictitiousViewQuantity"
labelWidth=
"60px"
>
<el-input
v-model=
"editForm.fictitiousViewQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"浏览人数"
></el-input>
</el-form-item>
</el-form-item>
</div>
</div>
</
template
>
</
template
>
<div
slot=
"activityBigImg"
class=
"edit-tips m-t-8"
>
建议尺寸750*1258
</div>
<div
slot=
"activityBigImg"
<div
slot=
"activityVideos"
class=
"edit-tips m-t-8"
>
最多上传6个视频
</div>
class=
"edit-tips m-t-8"
>
建议尺寸750*1258
</div>
<div
slot=
"posterImg"
class=
"edit-tips m-t-8"
>
建议尺寸640*1008
</div>
<div
slot=
"activityVideos"
<div
class=
"form-describe-box"
slot=
"formDescribe"
>
class=
"edit-tips m-t-8"
>
最多上传6个视频
</div>
<div
slot=
"posterImg"
class=
"edit-tips m-t-8"
>
建议尺寸640*1008
</div>
<div
class=
"form-describe-box"
slot=
"formDescribe"
>
<el-checkbox-group
v-model=
"editForm.formDescribeCheck"
>
<el-checkbox-group
v-model=
"editForm.formDescribeCheck"
>
<el-checkbox
v-for=
"(item, index) in formDescribeCheckList"
:label=
"item.value"
:key=
"index"
>
{{ item.label }}
</el-checkbox>
<el-checkbox
v-for=
"(item, index) in formDescribeCheckList"
:label=
"item.value"
:key=
"index"
>
{{ item.label }}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
<div
v-for=
"(item, index) in formDescribeList"
:key=
"index"
class=
"form-describe flex-default"
>
<div
v-for=
"(item, index) in formDescribeList"
<el-input
class=
"describe-input"
v-model=
"item.value"
placeholder=
"请输入"
maxlength=
"20"
></el-input>
:key=
"index"
class=
"form-describe flex-default"
>
<el-input
class=
"describe-input"
v-model=
"item.value"
placeholder=
"请输入"
maxlength=
"20"
></el-input>
<p
class=
"describe-delete"
>
<p
class=
"describe-delete"
>
<img
v-show=
"!(index == 0 && formDescribeList.length == 1)"
@
click=
"handleDescribeDelete(index)"
src=
"@/assets/icon-delete.png"
/>
<img
v-show=
"!(index == 0 && formDescribeList.length == 1)"
@
click=
"handleDescribeDelete(index)"
src=
"@/assets/icon-delete.png"
/>
</p>
</p>
</div>
</div>
<el-button
class=
"btn-basic"
v-show=
"formDescribeList.length < describeNum"
:size=
"size"
type=
"text"
@
click=
"handleDescribeAdd"
>
<el-button
class=
"btn-basic"
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
v-show=
"formDescribeList.length < describeNum"
:size=
"size"
type=
"text"
@
click=
"handleDescribeAdd"
>
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
新增表单
新增表单
</el-button>
</el-button>
</div>
</div>
...
@@ -175,93 +336,184 @@
...
@@ -175,93 +336,184 @@
</el-radio-group>
</el-radio-group>
</div>
</div>
<!-- 服务说明 -->
<!-- 服务说明 -->
<div
slot=
"activityServices"
id=
"activityServices"
class=
"flex-default"
>
<div
slot=
"activityServices"
<span
class=
"custom-label arrow"
slot=
"label"
@
click=
"handleArrow('activityServices')"
:style=
"{ width: defaultLabelWidth }"
>
id=
"activityServices"
<i
:class=
"[arrowFlagObj.activityServices == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"
></i>
class=
"flex-default"
>
<span
class=
"custom-label arrow"
slot=
"label"
@
click=
"handleArrow('activityServices')"
:style=
"{ width: defaultLabelWidth }"
>
<i
:class=
"[arrowFlagObj.activityServices == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"
></i>
服务说明:
服务说明:
</span>
</span>
<div
class=
"form-show-box"
>
<div
class=
"form-show-box"
>
<div
:class=
"['btn-box', arrowFlagObj.activityServices == 'open' && editForm.activityServices.length ? 'line' : '']"
>
<div
<el-button
:class=
"[editForm.activityServices.length < 9 ? 'btn-basic' : 'btn-disable']"
:size=
"size"
type=
"text"
@
click=
"handleAddItem('services', 'activityServices', 9)"
>
:class=
"['btn-box', arrowFlagObj.activityServices == 'open' && editForm.activityServices.length ? 'line' : '']"
>
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
<el-button
:class=
"[editForm.activityServices.length < 9 ? 'btn-basic' : 'btn-disable']"
:size=
"size"
type=
"text"
@
click=
"handleAddItem('services', 'activityServices', 9)"
>
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
新增一项
新增一项
</el-button>
</el-button>
</div>
</div>
<div
:class=
"['form-show-block', arrowFlagObj.activityServices == 'close' ? 'form-close' : 'form-open']"
>
<div
<div
v-for=
"(item, index) in editForm.activityServices"
:key=
"index"
:class=
"['form-show-item', editForm.activityServices.length > index + 1 ? 'line' : '']"
>
:class=
"['form-show-block', arrowFlagObj.activityServices == 'close' ? 'form-close' : 'form-open']"
>
<glsx-combi-form
class=
"p-t-20"
ref=
"serviceEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"serviceEditFormData"
:formRules=
"serviceEditRule"
></glsx-combi-form>
<div
v-for=
"(item, index) in editForm.activityServices"
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityServices.length - 1 ? 'last-btn-delete' : '']"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('services', 'activityServices', index)"
>
:key=
"index"
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
:class=
"['form-show-item', editForm.activityServices.length > index + 1 ? 'line' : '']"
>
<glsx-combi-form
class=
"p-t-20"
ref=
"serviceEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"serviceEditFormData"
:formRules=
"serviceEditRule"
></glsx-combi-form>
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityServices.length - 1 ? 'last-btn-delete' : '']"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('services', 'activityServices', index)"
>
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
</el-button>
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 商品答疑 -->
<!-- 商品答疑 -->
<div
slot=
"activityCommoditys"
id=
"activityCommoditys"
class=
"flex-default"
>
<div
slot=
"activityCommoditys"
<span
class=
"custom-label arrow"
slot=
"label"
@
click=
"handleArrow('activityCommoditys')"
:style=
"{ width: defaultLabelWidth }"
>
id=
"activityCommoditys"
<i
:class=
"[arrowFlagObj.activityCommoditys == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"
></i>
class=
"flex-default"
>
<span
class=
"custom-label arrow"
slot=
"label"
@
click=
"handleArrow('activityCommoditys')"
:style=
"{ width: defaultLabelWidth }"
>
<i
:class=
"[arrowFlagObj.activityCommoditys == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"
></i>
商品答疑:
商品答疑:
</span>
</span>
<div
class=
"form-show-box"
>
<div
class=
"form-show-box"
>
<div
:class=
"['btn-box', arrowFlagObj.activityCommoditys == 'open' && editForm.activityCommoditys.length ? 'line' : '']"
>
<div
<el-button
:class=
"[editForm.activityCommoditys.length < 9 ? 'btn-basic' : 'btn-disable']"
:size=
"size"
type=
"text"
@
click=
"handleAddItem('commoditys', 'activityCommoditys', 9)"
>
:class=
"['btn-box', arrowFlagObj.activityCommoditys == 'open' && editForm.activityCommoditys.length ? 'line' : '']"
>
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
<el-button
:class=
"[editForm.activityCommoditys.length < 9 ? 'btn-basic' : 'btn-disable']"
:size=
"size"
type=
"text"
@
click=
"handleAddItem('commoditys', 'activityCommoditys', 9)"
>
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
新增一项
新增一项
</el-button>
</el-button>
</div>
</div>
<div
:class=
"['form-show-block', arrowFlagObj.activityCommoditys == 'close' ? 'form-close' : 'form-open']"
>
<div
<div
v-for=
"(item, index) in editForm.activityCommoditys"
:key=
"index"
:class=
"['form-show-item', editForm.activityCommoditys.length > index + 1 ? 'line' : '']"
>
:class=
"['form-show-block', arrowFlagObj.activityCommoditys == 'close' ? 'form-close' : 'form-open']"
>
<glsx-combi-form
class=
"p-t-20"
ref=
"commoditysEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"commoditysEditFormData"
:formRules=
"commoditysEditRule"
></glsx-combi-form>
<div
v-for=
"(item, index) in editForm.activityCommoditys"
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityCommoditys.length - 1 ? 'last-btn-delete' : '']"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('commoditys', 'activityCommoditys', index)"
>
:key=
"index"
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
:class=
"['form-show-item', editForm.activityCommoditys.length > index + 1 ? 'line' : '']"
>
<glsx-combi-form
class=
"p-t-20"
ref=
"commoditysEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"commoditysEditFormData"
:formRules=
"commoditysEditRule"
></glsx-combi-form>
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityCommoditys.length - 1 ? 'last-btn-delete' : '']"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('commoditys', 'activityCommoditys', index)"
>
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
</el-button>
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 服务评价 -->
<!-- 服务评价 -->
<div
slot=
"activityExperienceDTOs"
id=
"activityExperienceDTOs"
class=
"flex-default"
>
<div
slot=
"activityExperienceDTOs"
<span
class=
"custom-label arrow"
slot=
"label"
@
click=
"handleArrow('activityExperienceDTOs')"
:style=
"{ width: defaultLabelWidth }"
>
id=
"activityExperienceDTOs"
<i
:class=
"[arrowFlagObj.activityExperienceDTOs == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"
></i>
class=
"flex-default"
>
<span
class=
"custom-label arrow"
slot=
"label"
@
click=
"handleArrow('activityExperienceDTOs')"
:style=
"{ width: defaultLabelWidth }"
>
<i
:class=
"[arrowFlagObj.activityExperienceDTOs == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"
></i>
服务评价:
服务评价:
</span>
</span>
<div
class=
"form-show-box"
>
<div
class=
"form-show-box"
>
<div
:class=
"['btn-box', arrowFlagObj.activityExperienceDTOs == 'open' && editForm.activityExperienceDTOs.length ? 'line' : '']"
>
<div
<el-button
:class=
"[editForm.activityExperienceDTOs.length < 9 ? 'btn-basic' : 'btn-disable']"
:size=
"size"
type=
"text"
@
click=
"handleAddItem('experiences', 'activityExperienceDTOs', 9)"
>
:class=
"['btn-box', arrowFlagObj.activityExperienceDTOs == 'open' && editForm.activityExperienceDTOs.length ? 'line' : '']"
>
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
<el-button
:class=
"[editForm.activityExperienceDTOs.length < 9 ? 'btn-basic' : 'btn-disable']"
:size=
"size"
type=
"text"
@
click=
"handleAddItem('experiences', 'activityExperienceDTOs', 9)"
>
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
新增一项
新增一项
</el-button>
</el-button>
</div>
</div>
<div
:class=
"['form-show-block', arrowFlagObj.activityExperienceDTOs == 'close' ? 'form-close' : 'form-open']"
>
<div
<div
v-for=
"(item, index) in editForm.activityExperienceDTOs"
:key=
"index"
:class=
"['form-show-item', editForm.activityExperienceDTOs.length > index + 1 ? 'line' : '']"
>
:class=
"['form-show-block', arrowFlagObj.activityExperienceDTOs == 'close' ? 'form-close' : 'form-open']"
>
<div
v-for=
"(item, index) in editForm.activityExperienceDTOs"
:key=
"index"
:class=
"['form-show-item', editForm.activityExperienceDTOs.length > index + 1 ? 'line' : '']"
>
<div
class=
"head-box"
>
<div
class=
"head-box"
>
<img
class=
"icon-head"
src=
"@/assets/seckillActivity/icon-default-head.png"
/>
<img
class=
"icon-head"
src=
"@/assets/seckillActivity/icon-default-head.png"
/>
<span>
虚拟人物{{ index + 1 }}
</span>
<span>
虚拟人物{{ index + 1 }}
</span>
</div>
</div>
<glsx-combi-form
class=
"p-t-20"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"experiencesEditFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"p-t-20"
<div
slot=
"activityExperienceImgs"
class=
"edit-tips m-t-8"
>
建议尺寸:图片大小不超过5m,最多可添加9张图片
</div>
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"experiencesEditFormData"
:formRules=
"editRule"
>
<div
slot=
"activityExperienceImgs"
class=
"edit-tips m-t-8"
>
建议尺寸:图片大小不超过5m,最多可添加9张图片
</div>
</glsx-combi-form>
</glsx-combi-form>
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityExperienceDTOs.length - 1 ? 'last-btn-delete' : '']"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('experiences', 'activityExperienceDTOs', index)"
>
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityExperienceDTOs.length - 1 ? 'last-btn-delete' : '']"
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('experiences', 'activityExperienceDTOs', index)"
>
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
</el-button>
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 员工注册链接 -->
<!-- 员工注册链接 -->
<div
slot=
"employeeRegistrationLinkFlag"
slot-scope=
"scope"
>
<div
slot=
"employeeRegistrationLinkFlag"
slot-scope=
"scope"
>
<el-radio-group
v-model=
"editForm[scope.scope.name]"
>
<el-radio-group
v-model=
"editForm[scope.scope.name]"
>
<el-radio
v-for=
"(item, index) in scope.scope.optionList"
:key=
"index"
:label=
"item[scope.scope.optionId]"
>
{{ item[scope.scope.optionLabel] }}
</el-radio>
<el-radio
v-for=
"(item, index) in scope.scope.optionList"
:key=
"index"
:label=
"item[scope.scope.optionId]"
>
{{ item[scope.scope.optionLabel] }}
</el-radio>
</el-radio-group>
</el-radio-group>
</div>
</div>
<
template
slot=
"appointmentContacts"
>
<
template
slot=
"appointmentContacts"
>
<div
class=
"appointmentContactsClass"
>
<div
class=
"appointmentContactsClass"
>
<el-form-item
label=
"姓名:"
prop=
"reservationInstallContactsName"
labelWidth=
"60px"
>
<el-form-item
label=
"姓名:"
<el-input
v-model=
"editForm.reservationInstallContactsName"
style=
"width: 432px;display: block;"
maxlength=
"10"
placeholder=
"请输入姓名"
></el-input>
prop=
"reservationInstallContactsName"
labelWidth=
"60px"
>
<el-input
v-model=
"editForm.reservationInstallContactsName"
style=
"width: 432px;display: block;"
maxlength=
"10"
placeholder=
"请输入姓名"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"电话:"
prop=
"reservationInstallContactsPhone"
labelWidth=
"60px"
class=
"phoneClass"
>
<el-form-item
label=
"电话:"
<el-input
v-model=
"editForm.reservationInstallContactsPhone"
style=
"width: 432px"
maxlength=
"11"
placeholder=
"请输入电话"
></el-input>
prop=
"reservationInstallContactsPhone"
labelWidth=
"60px"
class=
"phoneClass"
>
<el-input
v-model=
"editForm.reservationInstallContactsPhone"
style=
"width: 432px"
maxlength=
"11"
placeholder=
"请输入电话"
></el-input>
</el-form-item>
</el-form-item>
</div>
</div>
</
template
>
</
template
>
...
@@ -269,49 +521,122 @@
...
@@ -269,49 +521,122 @@
<
template
slot=
"reportConfigure"
>
<
template
slot=
"reportConfigure"
>
<div
class=
"reportConfigure-bag"
>
<div
class=
"reportConfigure-bag"
>
<el-tabs
v-model=
"reportFlag"
>
<el-tabs
v-model=
"reportFlag"
>
<el-tab-pane
label=
"进行中战报"
name=
"1"
>
<el-tab-pane
label=
"进行中战报"
<el-form-item
label=
"产值活动报告:"
prop=
"produceReportSummary"
labelWidth=
"100px"
>
name=
"1"
>
<el-input
v-model=
"editForm.activityActionReport.produceReportSummary"
placeholder=
"根据以往经验,活动前三天转发效果最好,赶紧督促大家转发起来吧"
type=
"textarea"
maxlength=
"200"
show-word-limit
style=
"width:580px;height:79px;"
rows=
"3"
></el-input>
<el-form-item
label=
"产值活动报告:"
prop=
"produceReportSummary"
labelWidth=
"100px"
>
<el-input
v-model=
"editForm.activityActionReport.produceReportSummary"
placeholder=
"根据以往经验,活动前三天转发效果最好,赶紧督促大家转发起来吧"
type=
"textarea"
maxlength=
"200"
show-word-limit
style=
"width:580px;height:79px;"
rows=
"3"
></el-input>
</el-form-item>
</el-form-item>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"已结束战报"
name=
"2"
>
<el-tab-pane
label=
"已结束战报"
<el-form-item
label=
"客户资产分析总结:"
prop=
"customerAssetSummary"
labelWidth=
"140px"
style=
"margin-left: 27px;margin-bottom: 0px;"
>
name=
"2"
>
<el-input
v-model=
"editForm.activityActionReport.customerAssetSummary"
placeholder=
"请输入"
type=
"textarea"
maxlength=
"200"
show-word-limit
style=
"width:580px;height:79px;"
rows=
"3"
></el-input>
<el-form-item
label=
"客户资产分析总结:"
prop=
"customerAssetSummary"
labelWidth=
"140px"
style=
"margin-left: 27px;margin-bottom: 0px;"
>
<el-input
v-model=
"editForm.activityActionReport.customerAssetSummary"
placeholder=
"请输入"
type=
"textarea"
maxlength=
"200"
show-word-limit
style=
"width:580px;height:79px;"
rows=
"3"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"触达通道分析总结:"
prop=
"touchPassageSummary"
labelWidth=
"140px"
style=
"margin-left: 27px;margin-top: 10px;"
>
<el-form-item
label=
"触达通道分析总结:"
<el-input
v-model=
"editForm.activityActionReport.touchPassageSummary"
placeholder=
"请输入"
type=
"textarea"
maxlength=
"200"
show-word-limit
style=
"width:580px;height:79px;"
rows=
"3"
></el-input>
prop=
"touchPassageSummary"
labelWidth=
"140px"
style=
"margin-left: 27px;margin-top: 10px;"
>
<el-input
v-model=
"editForm.activityActionReport.touchPassageSummary"
placeholder=
"请输入"
type=
"textarea"
maxlength=
"200"
show-word-limit
style=
"width:580px;height:79px;"
rows=
"3"
></el-input>
</el-form-item>
</el-form-item>
<div
class=
"reportConfigureList"
>
<div
class=
"reportConfigureList"
>
<span
class=
"reportConfigureLabel"
>
标杆门店数据:
</span>
<span
class=
"reportConfigureLabel"
>
标杆门店数据:
</span>
<el-form-item
label=
"分享数(次)"
prop=
"signMerchantShareCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-form-item
label=
"分享数(次)"
<el-input
v-model=
"editForm.activityActionReport.signMerchantShareCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
prop=
"signMerchantShareCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-input
v-model=
"editForm.activityActionReport.signMerchantShareCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"浏览数(次)"
prop=
"signMerchantBrowseCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-form-item
label=
"浏览数(次)"
<el-input
v-model=
"editForm.activityActionReport.signMerchantBrowseCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
prop=
"signMerchantBrowseCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-input
v-model=
"editForm.activityActionReport.signMerchantBrowseCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"访客数(人)"
prop=
"signMerchantVisitorCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-form-item
label=
"访客数(人)"
<el-input
v-model=
"editForm.activityActionReport.signMerchantVisitorCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
prop=
"signMerchantVisitorCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-input
v-model=
"editForm.activityActionReport.signMerchantVisitorCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"订单数(单)"
prop=
"signMerchantOrderCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-form-item
label=
"订单数(单)"
<el-input
v-model=
"editForm.activityActionReport.signMerchantOrderCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
prop=
"signMerchantOrderCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-input
v-model=
"editForm.activityActionReport.signMerchantOrderCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"总产值(万)"
prop=
"signMerchantProduceCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-form-item
label=
"总产值(万)"
<el-input
v-model=
"editForm.activityActionReport.signMerchantProduceCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
prop=
"signMerchantProduceCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-input
v-model=
"editForm.activityActionReport.signMerchantProduceCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
</div>
</div>
<div
class=
"reportConfigureList"
>
<div
class=
"reportConfigureList"
>
<span
class=
"reportConfigureLabel"
>
短信触达数据:
</span>
<span
class=
"reportConfigureLabel"
>
短信触达数据:
</span>
<el-form-item
label=
"目标客户数(人)"
prop=
"noteTouchCustomerCount"
labelWidth=
"100px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-form-item
label=
"目标客户数(人)"
<el-input
v-model=
"editForm.activityActionReport.noteTouchCustomerCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
prop=
"noteTouchCustomerCount"
labelWidth=
"100px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-input
v-model=
"editForm.activityActionReport.noteTouchCustomerCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"访客数(人)"
prop=
"noteTouchVisitorCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-form-item
label=
"访客数(人)"
<el-input
v-model=
"editForm.activityActionReport.noteTouchVisitorCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
prop=
"noteTouchVisitorCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-input
v-model=
"editForm.activityActionReport.noteTouchVisitorCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"订单数(单)"
prop=
"noteTouchOrderCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-form-item
label=
"订单数(单)"
<el-input
v-model=
"editForm.activityActionReport.noteTouchOrderCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
prop=
"noteTouchOrderCount"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-input
v-model=
"editForm.activityActionReport.noteTouchOrderCount"
style=
"width: 136px;height:32px;"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"转化率(%)"
prop=
"noteTouchConversionRate"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-form-item
label=
"转化率(%)"
<el-input
v-model=
"editForm.activityActionReport.noteTouchConversionRate"
style=
"width: 136px;height:32px;"
readonly
></el-input>
prop=
"noteTouchConversionRate"
labelWidth=
"70px"
style=
"margin: 0px 8px 0px 0px;"
>
<el-input
v-model=
"editForm.activityActionReport.noteTouchConversionRate"
style=
"width: 136px;height:32px;"
readonly
></el-input>
</el-form-item>
</el-form-item>
</div>
</div>
</el-tab-pane>
</el-tab-pane>
...
@@ -321,25 +646,46 @@
...
@@ -321,25 +646,46 @@
<!-- 直播配置 -->
<!-- 直播配置 -->
<div
slot=
"live"
>
<div
slot=
"live"
>
<el-switch
v-model=
"editForm.liveFlag"
></el-switch>
<el-switch
v-model=
"editForm.liveFlag"
></el-switch>
<div
class=
"customer-service"
v-if=
"editForm.liveFlag"
id=
"liveFlag"
>
<div
class=
"customer-service"
<glsx-combi-form
class=
"edit-form-container"
ref=
"liveEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"editForm"
:formData=
"liveEditFormData"
:formRules=
"liveEditRule"
>
v-if=
"editForm.liveFlag"
<div
slot=
"groupQrCode"
class=
"edit-tips m-t-8"
>
注:用于直播间内加群展示;请上传2M以内的jpg、jpeg、png图片,建议图片尺寸284*284
</div>
id=
"liveFlag"
>
<div
v-if=
"!editForm.floatingMaskDiagram"
slot=
"defaultImg"
class=
"default-live-img"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"liveEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"editForm"
:formData=
"liveEditFormData"
:formRules=
"liveEditRule"
>
<div
slot=
"groupQrCode"
class=
"edit-tips m-t-8"
>
注:用于直播间内加群展示;请上传2M以内的jpg、jpeg、png图片,建议图片尺寸284*284
</div>
<div
v-if=
"!editForm.floatingMaskDiagram"
slot=
"defaultImg"
class=
"default-live-img"
>
<img
:src=
"defaultFloatingMaskDiagram"
/>
<img
:src=
"defaultFloatingMaskDiagram"
/>
</div>
</div>
<div
slot=
"floatingMaskDiagram"
class=
"edit-tips m-t-8"
>
注:用于直播间内浮动元素展示;请上传2M以内的gif、jpg、jpeg、png图片,建议图片尺寸120*176
</div>
<div
slot=
"floatingMaskDiagram"
<div
v-if=
"!editForm.liveBroadcastRoomCover"
slot=
"defaultImgCover"
class=
"default-live-img"
>
class=
"edit-tips m-t-8"
>
注:用于直播间内浮动元素展示;请上传2M以内的gif、jpg、jpeg、png图片,建议图片尺寸120*176
</div>
<div
v-if=
"!editForm.liveBroadcastRoomCover"
slot=
"defaultImgCover"
class=
"default-live-img"
>
<img
:src=
"defaultImgObj.COVER_LIVE"
/>
<img
:src=
"defaultImgObj.COVER_LIVE"
/>
</div>
</div>
<div
v-if=
"!editForm.liveBroadcastRoomEndCover"
slot=
"defaultImgEndCover"
class=
"default-live-img"
>
<div
v-if=
"!editForm.liveBroadcastRoomEndCover"
slot=
"defaultImgEndCover"
class=
"default-live-img"
>
<img
:src=
"defaultImgObj.COVER_REPLAY"
/>
<img
:src=
"defaultImgObj.COVER_REPLAY"
/>
</div>
</div>
<div
slot=
"liveBroadcastRoomEndCover"
class=
"edit-tips m-t-8"
>
注:用于活动中直播小窗口展示;请上传2M以内的gif、jpg、jpeg、png图片,建议图片尺寸164*252
</div>
<div
slot=
"liveBroadcastRoomEndCover"
class=
"edit-tips m-t-8"
>
注:用于活动中直播小窗口展示;请上传2M以内的gif、jpg、jpeg、png图片,建议图片尺寸164*252
</div>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
</div>
</div>
<!-- 收款模式 -->
<!-- 收款模式 -->
<div
slot=
"paymentModel"
class=
"paymentModelSlot"
>
<div
slot=
"paymentModel"
class=
"paymentModelSlot"
>
<el-radio-group
v-model=
"editForm.paymentModel"
>
<el-radio-group
v-model=
"editForm.paymentModel"
>
<el-radio
:label=
"1"
>
广联收定金和尾款
</el-radio>
<el-radio
:label=
"1"
>
广联收定金和尾款
</el-radio>
<el-radio
:label=
"2"
>
广联收定金门店收尾款
</el-radio>
<el-radio
:label=
"2"
>
广联收定金门店收尾款
</el-radio>
...
@@ -350,17 +696,42 @@
...
@@ -350,17 +696,42 @@
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
<GLFooter>
<GLFooter>
<el-button
@
click=
"handleCancel"
size=
"medium"
>
{{ routeInfo.addOrEdit != 'detail' ? '取消' : '返回' }}
</el-button>
<el-button
@
click=
"handleCancel"
<el-button
@
click=
"handleWechat"
size=
"medium"
>
预览
</el-button>
size=
"medium"
>
{{ routeInfo.addOrEdit != 'detail' ? '取消' : '返回' }}
</el-button>
<el-button
v-if=
"routeInfo.addOrEdit != 'detail'"
type=
"primary"
@
click=
"handleConfirm"
size=
"medium"
:loading=
"loading"
>
提交
</el-button>
<el-button
@
click=
"handleWechat"
size=
"medium"
>
预览
</el-button>
<el-button
v-if=
"routeInfo.addOrEdit != 'detail'"
type=
"primary"
@
click=
"handleConfirm"
size=
"medium"
:loading=
"loading"
>
提交
</el-button>
</GLFooter>
</GLFooter>
<!-- 展示 -->
<!-- 展示 -->
<GLDialog
bigTitle=
"预览"
mode=
"big"
:visible
.
sync=
"wechatVisible"
@
onOk=
"handleWechat"
@
onCancel=
"handleWechat"
>
<GLDialog
bigTitle=
"预览"
<crowdEditWechat
ref=
"crowdEditWechat"
:editForm=
"editForm"
:countDownObj=
"countDownObj"
></crowdEditWechat>
mode=
"big"
:visible
.
sync=
"wechatVisible"
@
onOk=
"handleWechat"
@
onCancel=
"handleWechat"
>
<crowdEditWechat
ref=
"crowdEditWechat"
:editForm=
"editForm"
:countDownObj=
"countDownObj"
></crowdEditWechat>
</GLDialog>
</GLDialog>
<select-single-pro-dialog
v-if=
"isSingleSelectVisible"
:merchantId=
"editForm.merchantId"
:isSingleSelectVisible=
"isSingleSelectVisible"
:propSearch=
"{ deliveryType: 1 }"
:selectedProInfo=
"selectedProInfo"
@
handleSingleSelectConfirm=
"handleSingleSelectConfirm"
@
handleSingleSelectClose=
"handleSingleSelectClose(true)"
></select-single-pro-dialog>
<select-single-pro-dialog
v-if=
"isSingleSelectVisible"
:merchantId=
"editForm.merchantId"
:isSingleSelectVisible=
"isSingleSelectVisible"
:propSearch=
"{ deliveryType: 1 }"
:selectedProInfo=
"selectedProInfo"
@
handleSingleSelectConfirm=
"handleSingleSelectConfirm"
@
handleSingleSelectClose=
"handleSingleSelectClose(true)"
>
</select-single-pro-dialog>
<!-- :storeSelected="selectedList" -->
<!-- :storeSelected="selectedList" -->
<select-store
v-if=
"relateStoreVisible"
ref=
"relateStore"
:dialogVisible=
"relateStoreVisible"
:storeSelected=
"selectedList"
:merchantInfo=
"editForm.merchantId"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
>
<select-store
v-if=
"relateStoreVisible"
ref=
"relateStore"
:dialogVisible=
"relateStoreVisible"
:storeSelected=
"selectedList"
:merchantInfo=
"editForm.merchantId"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
>
<!-- <el-row slot>
<!-- <el-row slot>
<el-form :model="storeSearchForm"
<el-form :model="storeSearchForm"
ref="relate"
ref="relate"
...
@@ -404,7 +775,7 @@ export default {
...
@@ -404,7 +775,7 @@ export default {
selectStore
selectStore
},
},
data
()
{
data
()
{
var
validatorPhone
=
function
(
rule
,
value
,
callback
)
{
var
validatorPhone
=
function
(
rule
,
value
,
callback
)
{
if
(
value
&&
!
/^
(
0|86|17951
)?(
13
[
0-9
]
|15
[
0123456789
]
|17
[
678
]
|18
[
0-9
]
|14
[
57
])[
0-9
]{8}
$/
.
test
(
value
))
{
if
(
value
&&
!
/^
(
0|86|17951
)?(
13
[
0-9
]
|15
[
0123456789
]
|17
[
678
]
|18
[
0-9
]
|14
[
57
])[
0-9
]{8}
$/
.
test
(
value
))
{
callback
(
new
Error
(
'手机号格式错误'
))
callback
(
new
Error
(
'手机号格式错误'
))
}
else
{
}
else
{
...
@@ -1354,6 +1725,10 @@ export default {
...
@@ -1354,6 +1725,10 @@ export default {
'editForm.activityPrice'
(
newValue
,
oldValue
)
{
'editForm.activityPrice'
(
newValue
,
oldValue
)
{
this
.
editForm
.
activityPrice
=
limitPrice
(
newValue
,
oldValue
,
5
,
2
,
0
)
this
.
editForm
.
activityPrice
=
limitPrice
(
newValue
,
oldValue
,
5
,
2
,
0
)
},
},
'editForm.crowdFundingPrice'
(
newValue
,
oldValue
)
{
this
.
editForm
.
crowdFundingPrice
=
limitPrice
(
newValue
,
oldValue
,
5
,
2
,
0
)
},
'editForm.goodsStock'
(
newValue
,
oldValue
)
{
'editForm.goodsStock'
(
newValue
,
oldValue
)
{
this
.
editForm
.
goodsStock
=
limitPrice
(
newValue
,
oldValue
,
5
,
0
,
0
)
this
.
editForm
.
goodsStock
=
limitPrice
(
newValue
,
oldValue
,
5
,
0
,
0
)
},
},
...
@@ -1678,7 +2053,7 @@ export default {
...
@@ -1678,7 +2053,7 @@ export default {
},
},
// 音乐
// 音乐
handleMusicUpload
()
{},
handleMusicUpload
()
{
},
musicUpload
(
e
,
targetItem
)
{
musicUpload
(
e
,
targetItem
)
{
var
reader
=
new
FileReader
()
var
reader
=
new
FileReader
()
...
@@ -1869,6 +2244,9 @@ export default {
...
@@ -1869,6 +2244,9 @@ export default {
this
.
editForm
.
activityPrice
=
(
info
.
activityPrice
/
100
).
toFixed
(
2
)
this
.
editForm
.
activityPrice
=
(
info
.
activityPrice
/
100
).
toFixed
(
2
)
this
.
editForm
.
goodsStock
=
info
.
goodsStock
+
''
this
.
editForm
.
goodsStock
=
info
.
goodsStock
+
''
}
}
if
(
info
.
crowdFundingPrice
!=
null
)
{
this
.
editForm
.
crowdFundingPrice
=
(
info
.
crowdFundingPrice
/
100
).
toFixed
(
2
)
}
// 预估销量
// 预估销量
if
(
info
.
predictVolume
)
{
if
(
info
.
predictVolume
)
{
this
.
editForm
.
predictVolume
=
(
info
.
predictVolume
/
100
).
toFixed
(
2
)
this
.
editForm
.
predictVolume
=
(
info
.
predictVolume
/
100
).
toFixed
(
2
)
...
@@ -1934,7 +2312,7 @@ export default {
...
@@ -1934,7 +2312,7 @@ export default {
}
}
// 复制
// 复制
if
(
this
.
routeInfo
.
addOrEdit
==
'copy'
)
{
if
(
this
.
routeInfo
.
addOrEdit
==
'copy'
)
{
let
resetArr
=
[{
name
:
'id'
},
{
name
:
'activityTime'
,
type
:
'array'
},
{
name
:
'liveBroadcastRoomId'
},
{
name
:
'groupQrCode'
},
{
name
:
'floatingMaskDiagram'
},
{
name
:
'liveBroadcastRoomCover'
},
{
name
:
'liveBroadcastRoomEndCover'
},
{
name
:
'selectedProInfo'
,
type
:
'Object'
},
{
name
:
'goodsId'
},
{
name
:
'activityPrice'
},
{
name
:
'goodsStock'
}]
let
resetArr
=
[{
name
:
'id'
},
{
name
:
'activityTime'
,
type
:
'array'
},
{
name
:
'liveBroadcastRoomId'
},
{
name
:
'groupQrCode'
},
{
name
:
'floatingMaskDiagram'
},
{
name
:
'liveBroadcastRoomCover'
},
{
name
:
'liveBroadcastRoomEndCover'
},
{
name
:
'selectedProInfo'
,
type
:
'Object'
},
{
name
:
'goodsId'
},
{
name
:
'activityPrice'
},
{
name
:
'
crowdFundingPrice'
},
{
name
:
'
goodsStock'
}]
this
.
copyReset
(
resetArr
)
this
.
copyReset
(
resetArr
)
}
}
// 兼容以前众筹活动没有战报内容配置,展示页面
// 兼容以前众筹活动没有战报内容配置,展示页面
...
@@ -1998,6 +2376,7 @@ export default {
...
@@ -1998,6 +2376,7 @@ export default {
var
param
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
var
param
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
param
.
marketingType
=
3
param
.
marketingType
=
3
param
.
activityPrice
=
(
param
.
activityPrice
*
100
).
toFixed
(
0
)
//存的分,需乘100
param
.
activityPrice
=
(
param
.
activityPrice
*
100
).
toFixed
(
0
)
//存的分,需乘100
param
.
crowdFundingPrice
=
(
param
.
crowdFundingPrice
*
100
).
toFixed
(
0
)
//存的分,需乘100
if
(
this
.
routeInfo
.
id
&&
this
.
routeInfo
.
addOrEdit
!=
'copy'
)
{
if
(
this
.
routeInfo
.
id
&&
this
.
routeInfo
.
addOrEdit
!=
'copy'
)
{
param
.
id
=
this
.
routeInfo
.
id
param
.
id
=
this
.
routeInfo
.
id
}
}
...
@@ -2011,9 +2390,10 @@ export default {
...
@@ -2011,9 +2390,10 @@ export default {
delete
param
.
activityPrice
delete
param
.
activityPrice
delete
param
.
goodsStock
delete
param
.
goodsStock
param
.
specificationDetailList
=
[]
param
.
specificationDetailList
=
[]
this
.
nameToValSpecsList
.
forEach
(
function
(
item
)
{
this
.
nameToValSpecsList
.
forEach
(
function
(
item
)
{
var
obj
=
{
var
obj
=
{
retailPrice
:
(
item
.
activityPrice
*
100
).
toFixed
(
0
),
//存的分,需乘100
retailPrice
:
(
item
.
activityPrice
*
100
).
toFixed
(
0
),
//存的分,需乘100
crowdFundingPrice
:
(
item
.
crowdFundingPrice
*
100
).
toFixed
(
0
),
//存的分,需乘100
stock
:
item
.
goodsStock
,
stock
:
item
.
goodsStock
,
specificationData
:
item
.
specificationData
,
specificationData
:
item
.
specificationData
,
specificationKey
:
item
.
specificationKey
specificationKey
:
item
.
specificationKey
...
@@ -2265,7 +2645,7 @@ export default {
...
@@ -2265,7 +2645,7 @@ export default {
.
then
(()
=>
{
.
then
(()
=>
{
this
.
cancelJump
()
this
.
cancelJump
()
})
})
.
catch
(()
=>
{})
.
catch
(()
=>
{
})
}
else
{
}
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