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 7d3d9b7c
authored
Dec 07, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.2' of
http://192.168.3.233:8090/saas/scrm-micro-battles
into v3.2
2 parents
06466d83
b2df02b0
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
517 additions
and
651 deletions
src/api/modules/common.js
src/api/modules/orderManage.js
src/api/modules/seckillActivity.js
src/common/constant.js
src/components/glsx-combi-form/index.vue
src/components/glsx-combi-form/mapView.vue
src/components/glsx-table/index.vue
src/config/index.js
src/setup/qiankun.js
src/views/orderManage/components/selectStaff.vue
src/views/orderManage/index.vue
src/views/seckillActivity/components/selectStore.vue
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/dataBoard.vue
src/views/seckillActivity/editCrowdFund.vue
vue.config.js
src/api/modules/common.js
View file @
7d3d9b7
...
...
@@ -2,7 +2,8 @@ import { http, http_common, http2, http_merchant } from '@/main'
const
defaultPath
=
'scrm.api.carlife.'
const
getMerchantGoodsListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.goods.page.curMerchant'
// params.method = 'scrm.api.shopmall.goods.page.curMerchant'
params
.
method
=
'scrm.api.shopmall.goods.page.allMerchant'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
...
...
src/api/modules/orderManage.js
View file @
7d3d9b7
...
...
@@ -133,7 +133,7 @@ const updateOrderType = params => {
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
fals
e
returnAll
:
tru
e
})
}
...
...
src/api/modules/seckillActivity.js
View file @
7d3d9b7
...
...
@@ -15,7 +15,7 @@ const getActivityPageApi = params => {
//分页众筹活动
const
getCrowdfundListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.crowdfunding.activity.page'
params
.
method
=
'scrm.api.shopmall.
all.
crowdfunding.activity.page'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
...
...
@@ -26,7 +26,7 @@ const getCrowdfundListApi = params => {
// 众筹-导出
const
exportCrowdfundApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.crowdfunding.activity.export'
params
.
method
=
'scrm.api.shopmall.
all.
crowdfunding.activity.export'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
...
...
src/common/constant.js
View file @
7d3d9b7
...
...
@@ -84,7 +84,8 @@ const orderManageStatusList = [
// { confId: '7', confName: '待核销' },
// { confId: '8', confName: '已核销' },
{
confId
:
'9'
,
confName
:
'售后中'
},
{
confId
:
'10'
,
confName
:
'售后完成'
}
{
confId
:
'10'
,
confName
:
'售后完成'
},
{
confId
:
'11'
,
confName
:
'待审批'
}
]
const
orderSourceList
=
[
...
...
@@ -202,6 +203,21 @@ const stateList = [
}
]
const
businessType
=
[
{
optionId
:
1
,
optionLabel
:
'1.2'
},
{
optionId
:
2
,
optionLabel
:
'1.3'
},
{
optionId
:
3
,
optionLabel
:
'2.0'
}
]
function
getExplorer
()
{
var
ua
=
navigator
.
userAgent
.
toLocaleLowerCase
()
var
browserType
=
null
...
...
@@ -244,4 +260,4 @@ function setMinHeight(calssName = '.edit-container') {
document
.
querySelector
(
calssName
).
style
.
minHeight
=
minHeight
}
export
{
limitPrice
,
aToExport
,
orderManageStatusList
,
orderSourceList
,
deliveryTypeList
,
statusList
,
serviceStatusList
,
memberTypeList
,
stateList
,
orderTypesList
,
orderStatusList
,
afterSaleStatusList
,
exportFn
,
setMinHeight
,
downLoadFile
}
export
{
limitPrice
,
aToExport
,
businessType
,
orderManageStatusList
,
orderSourceList
,
deliveryTypeList
,
statusList
,
serviceStatusList
,
memberTypeList
,
stateList
,
orderTypesList
,
orderStatusList
,
afterSaleStatusList
,
exportFn
,
setMinHeight
,
downLoadFile
}
src/components/glsx-combi-form/index.vue
View file @
7d3d9b7
...
...
@@ -3,7 +3,7 @@
<div
:class=
"['glsx-combi-form', isEdit ? 'gl-form-page' : '']"
>
<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 ? '154px' : labelWidth"
:class=
"[
{ 'no-label': !item.label, isBlock: isBlock },
{ textBox: item.type == 'textBox'
}]" :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 ? '154px' : labelWidth"
:class=
"[
{ 'no-label': !item.label, isBlock: isBlock },
{'textBox':item.type=='textBox'
}]" :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-popover
placement=
"top"
width=
"200"
trigger=
"hover"
:content=
"item.tips"
>
...
...
@@ -157,17 +157,13 @@ export default {
// 默认是四个字符长度
default
:
'154px'
},
// labelPaddingRight: {
// type: Number,
// default: 15
// },
formData
:
{
type
:
Array
,
default
:
()
=>
[]
},
formObj
:
{
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
},
hasTitle
:
{
type
:
Boolean
,
...
...
@@ -175,12 +171,12 @@ export default {
},
formRules
:
{
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
},
// 搜索+输入框/搜索组合组件,搜索栏绑值
searchSelectObj
:
{
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
}
},
...
...
@@ -190,7 +186,7 @@ export default {
mapView
},
mounted
()
{},
mounted
()
{
},
methods
:
{
// 选择框-添加其他属性
...
...
@@ -449,6 +445,7 @@ export default {
background-color
:
#f7f7f7
;
border
:
1px
dotted
#d9d9d9
;
cursor
:
pointer
;
margin-top
:
10px
;
}
.glsx-combi-form
.activity-Input
{
...
...
src/components/glsx-combi-form/mapView.vue
View file @
7d3d9b7
...
...
@@ -77,7 +77,7 @@ export default {
map
.
addControl
(
new
AMap
.
ToolBar
())
this
.
geocoder
=
new
AMap
.
Geocoder
()
map
.
setDefaultCursor
(
'pointer'
)
AMap
.
plugin
([
'AMap.PlaceSearch'
],
function
()
{
AMap
.
plugin
([
'AMap.PlaceSearch'
],
function
()
{
//构造地点查询类
placeSearch
=
new
AMap
.
PlaceSearch
({
pageSize
:
8
,
// 单页显示结果条数
...
...
@@ -99,7 +99,7 @@ export default {
return
true
}
let
_this
=
this
placeSearch
.
search
(
query
,
function
(
status
,
result
)
{
placeSearch
.
search
(
query
,
function
(
status
,
result
)
{
if
(
status
===
'complete'
&&
result
.
poiList
.
pois
.
length
)
{
_this
.
adrList
=
result
.
poiList
.
pois
}
...
...
@@ -206,4 +206,4 @@ export default {
margin-right
:
6px
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/components/glsx-table/index.vue
View file @
7d3d9b7
<
template
>
<div
class=
"glsx-table"
>
<el-scrollbar
:native=
"false"
wrapStyle=
""
wrapClass=
""
viewClass=
""
viewStyle=
""
noresize=
"false"
tag=
"section"
>
<el-table
id=
"initTable"
:ref=
"tableParams.mutiSelectName + 'MutiTable' || 'MutiTable'"
:data=
"getListApi ? data : tableData"
:row-key=
"tableParams.mutiSelectUniqueKey || ''"
v-loading=
"loading"
:height=
"tableHeightValues"
:border=
"border"
:tableId=
"tableId"
:highlight-current-row=
"true"
:stripe=
"true"
@
sort-change=
"sortChange"
@
selection-change=
"handleSelect"
:size=
"size"
:header-cell-style=
"headerStyle"
>
<el-table-column
v-if=
"tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
type=
"selection"
width=
"55"
:selectable=
"checkSelectable"
:reserve-selection=
"true"
></el-table-column>
<el-table-column
v-if=
"hasNum"
align=
"center"
width=
"60px"
label=
"序号"
type=
"index"
:index=
"index => index + (page[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize] + 1"
></el-table-column>
<el-table-column
v-for=
"(item, index) in tableColumns"
:key=
"index"
:label=
"item.label"
:prop=
"item.prop"
:width=
"item.width"
:min-width=
"item.minWidth"
:align=
"item.align || 'center'"
:sortable=
"item.sortable"
>
<el-scrollbar
:native=
"false"
wrapStyle=
""
wrapClass=
""
viewClass=
""
viewStyle=
""
noresize=
"false"
tag=
"section"
>
<el-table
id=
"initTable"
:ref=
"tableParams.mutiSelectName + 'MutiTable' || 'MutiTable'"
:data=
"getListApi ? data : tableData"
:row-key=
"tableParams.mutiSelectUniqueKey || ''"
v-loading=
"loading"
:height=
"tableHeightValues"
:border=
"border"
:tableId=
"tableId"
:highlight-current-row=
"true"
:stripe=
"true"
@
sort-change=
"sortChange"
@
selection-change=
"handleSelect"
:size=
"size"
:header-cell-style=
"headerStyle"
>
<el-table-column
v-if=
"tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
type=
"selection"
width=
"55"
:selectable=
"checkSelectable"
:reserve-selection=
"true"
></el-table-column>
<el-table-column
v-if=
"hasNum"
align=
"center"
width=
"60px"
label=
"序号"
type=
"index"
:index=
"index => index + (page[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize] + 1"
>
</el-table-column>
<el-table-column
v-for=
"(item, index) in tableColumns"
:key=
"index"
:label=
"item.label"
:prop=
"item.prop"
:width=
"item.width"
:min-width=
"item.minWidth"
:align=
"item.align || 'center'"
:sortable=
"item.sortable"
>
<template
slot-scope=
"scope"
>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"scope.row"
:prop=
"item.prop"
:width=
"item.width"
></slot>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"scope.row"
:prop=
"item.prop"
:width=
"item.width"
></slot>
<template
v-else-if=
"item.formatter"
>
<span
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }" :title="item.formatter(scope.row)" v-text="item.formatter(scope.row)">
</span>
<span
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }"
:title="item.formatter(scope.row)"
v-text="item.formatter(scope.row)">
</span>
</
template
>
<
template
v-else-if=
"getListApi"
>
<span
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }" :title="scope.row[item.prop]" v-text="scope.row[item.prop]">
</span>
<span
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }"
:title="scope.row[item.prop]"
v-text="scope.row[item.prop]">
</span>
</
template
>
<
template
v-else
>
<span
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }" :title="tableData[scope.$index][item.prop]" v-text="tableData[scope.$index][item.prop]">
</span>
<span
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }"
:title="tableData[scope.$index][item.prop]"
v-text="tableData[scope.$index][item.prop]">
</span>
</
template
>
<
template
v-if=
"item.addSymbol"
>
<span
v-text=
"item.addSymbol"
></span>
</
template
>
</template>
</el-table-column>
<el-table-column
v-if=
"tableParams.tableOption"
label=
"操作"
:align=
"tableParams.tableOption.align || 'center'"
:width=
"tableParams.tableOption.width || '200'"
fixed=
"right"
>
<el-table-column
v-if=
"tableParams.tableOption"
label=
"操作"
:align=
"tableParams.tableOption.align || 'center'"
:width=
"tableParams.tableOption.width || '200'"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<slot
name=
"auth-button"
:scope=
"scope.row"
></slot>
<slot
name=
"auth-button"
:scope=
"scope.row"
></slot>
</
template
>
</el-table-column>
<
template
slot=
"empty"
class=
"emptyBg"
>
<img
class=
"noDataImg"
:src=
"noDataImg"
v-if=
"noDataImg"
alt=
""
/>
<
template
slot=
"empty"
class=
"emptyBg"
>
<img
class=
"noDataImg"
:src=
"noDataImg"
v-if=
"noDataImg"
alt=
""
/>
<div>
{{
noDataText
}}
</div>
<slot
name=
"additionalContent"
></slot>
</
template
>
</el-table>
</el-scrollbar>
<el-pagination
v-if=
"hasPage"
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page[this.pageConf.pageNum]"
:page-sizes=
"[10, 20, 30, 40]"
:page-size=
"page[this.pageConf.pageSize]"
:total=
"getListApi ? total : tableTotal"
:layout=
"layout"
></el-pagination>
<el-pagination
v-if=
"hasPage"
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page[this.pageConf.pageNum]"
:page-sizes=
"[10, 20, 30, 40]"
:page-size=
"page[this.pageConf.pageSize]"
:total=
"getListApi ? total : tableTotal"
:layout=
"layout"
></el-pagination>
</div>
</template>
...
...
@@ -76,7 +142,7 @@ export default {
},
headerStyle
:
{
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
},
//表格需要多传入一个id的情况
tableId
:
{
...
...
@@ -86,7 +152,7 @@ export default {
// 搜索条件
searchForm
:
{
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
},
// 是否定制表头
isCustomHead
:
{
...
...
src/config/index.js
View file @
7d3d9b7
...
...
@@ -19,8 +19,8 @@ export const fetchConfig = function(isEnv = true) {
// return Promise.resolve(cfg)
// }
//return window.fetch('https://', {}).then(res => res.json())
//
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config')
return
new
Http
().
get
(
'https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config'
)
return
new
Http
().
get
(
'https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config'
)
//
return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config')
}
export
const
config
=
{
install
(
vue
,
cfg
)
{
...
...
src/setup/qiankun.js
View file @
7d3d9b7
...
...
@@ -11,7 +11,7 @@ let router = null
let
instance
=
null
Vue
.
use
(
ElementUI
)
Vue
.
use
(
GLTable
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
})
{
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
,
merchantId
}
=
await
fetchConfig
()
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$merchantId
=
merchantId
...
...
@@ -28,8 +28,8 @@ export async function bootstrap({ history, common, messenger, globalState }) {
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
routes
=
getRoutes
(
routesData
)
subscribe
({
messenger
})
//
Vue.use(GLButton, { routes, routerBase })
Vue
.
use
(
GLButton
,
{
permissions
:
globalState
.
permissions
||
[
'1-1-1-1'
,
'2-1-1-1'
,
'3-1-1-1'
]
})
Vue
.
use
(
GLButton
,
{
routes
,
routerBase
})
//
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
}
export
async
function
mount
(
props
)
{
const
insts
=
render
(
props
.
routerBase
,
routes
)
...
...
src/views/orderManage/components/selectStaff.vue
View file @
7d3d9b7
...
...
@@ -167,7 +167,8 @@ export default {
},
handleClose
()
{
this
.
$emit
(
'handleStoreClose'
)
// console.log('handleStoreClose')
this
.
$emit
(
'handleStaffClose'
)
},
handleConfirm
()
{
if
(
!
this
.
staffUuid
)
...
...
src/views/orderManage/index.vue
View file @
7d3d9b7
...
...
@@ -109,16 +109,32 @@
<div
slot=
"assignName"
slot-scope=
"scope"
>
<div>
<img
class=
"img-36 pointer img-circle"
:src=
"scope.scope.assignStaffImageUrl || scope.scope.shareStaffImageUrl"
/>
<span>
{{ scope.scope.assignStaffName || scope.scope.shareStaffName }}
</span>
<
template
v-if=
"scope.scope.assignStaffName"
>
<img
class=
"img-36 pointer img-circle"
v-if=
"scope.scope.assignStaffImageUrl"
:src=
"scope.scope.assignStaffImageUrl"
/>
<span
class=
"m-l-10"
>
<span>
{{
scope
.
scope
.
assignStaffName
}}
</span>
</span>
</
template
>
<
template
v-else-if=
"scope.scope.shareStaffName"
>
<img
class=
"img-36 pointer img-circle"
v-if=
"scope.scope.shareStaffImageUrl"
:src=
"scope.scope.shareStaffImageUrl"
/>
<span
class=
"m-l-10"
>
<span>
{{
scope
.
scope
.
shareStaffName
}}
</span>
</span>
</
template
>
<
template
v-else
>
<span>
{{
scope
.
scope
.
assignStaffName
||
scope
.
scope
.
shareStaffName
||
'-'
}}
</span>
</
template
>
<span
@
click=
"handlerAssign(scope.scope)"
class=
"assignLabel"
>
指派
</span>
</div>
</div>
<div
slot=
"orderType"
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.scope.orderTyp
e"
<el-switch
:value=
"scope.scope.orderType == 1 ? true : fals
e"
class=
"switchStyle"
@
change=
"changeOrderType(scope.scope)"
active-text=
"是"
...
...
@@ -287,8 +303,9 @@
<
script
>
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
{
utils
}
from
'glsx-common'
import
selectStaff
from
'./components/selectStaff.vue'
import
{
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
exportFn
}
from
'@/common/constant'
import
{
businessType
,
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
exportFn
}
from
'@/common/constant'
export
default
{
name
:
'orderManage'
,
components
:
{
...
...
@@ -507,6 +524,15 @@ export default {
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'testSheetTypeList'
},
{
label
:
'业务场景'
,
name
:
'businessType'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'optionId'
,
optionLabel
:
'optionLabel'
,
optionsName
:
'businessTypeList'
}
],
// 快递信息
...
...
@@ -621,7 +647,7 @@ export default {
},
listeners
:
{
click
:
row
=>
{
this
.
secondConfirm
(
'退款'
,
'请确定是否发起退款?'
,
'orderManage'
,
'crowdFundRefundApi'
,
{
orderCode
:
row
.
orderCode
})
this
.
secondConfirm
(
'退款'
,
'请确定是否发起退款?'
,
'orderManage'
,
'crowdFundRefundApi'
,
{
orderCode
:
row
.
orderCode
}
,
()
=>
{
},
this
.
searchForm
.
requestSource
!=
0
)
}
}
},
...
...
@@ -689,7 +715,7 @@ export default {
},
condition
:
row
=>
{
// return true
return
row
.
afterSale
Status
==
11
return
row
.
order
Status
==
11
},
listeners
:
{
click
:
this
.
handleWriteOffApproval
...
...
@@ -786,6 +812,20 @@ export default {
width
:
160
},
{
label
:
'业务场景'
,
prop
:
'businessType'
,
width
:
120
,
formatter
:
cellValue
=>
{
let
type
=
cellValue
.
businessType
if
(
type
)
{
return
businessType
.
find
(
item
=>
item
.
optionId
==
type
).
optionLabel
}
else
{
return
'-'
}
}
},
{
label
:
'商品名称'
,
prop
:
''
,
width
:
'120'
,
...
...
@@ -879,7 +919,8 @@ export default {
testSheetTypeList
:
[
{
confId
:
'0'
,
confName
:
'否'
},
{
confId
:
'1'
,
confName
:
'是'
}
]
],
businessTypeList
:
utils
.
deepClone
(
businessType
)
}
}
},
...
...
@@ -968,21 +1009,23 @@ export default {
// 改变订单类型
changeOrderType
(
item
)
{
console
.
log
(
item
)
// return
let
params
=
{
o
rderCode
:
item
.
orderCode
,
subO
rderCode
:
item
.
orderCode
,
orderType
:
item
.
orderType
?
0
:
1
}
this
.
$apis
.
orderManage
.
updateOrderType
(
params
)
.
then
(
result
=>
{
this
.
handleSearch
()
})
.
catch
(
err
=>
{
console
.
log
(
err
)
})
this
.
secondConfirm
(
'测试单'
,
'测试单数据不纳入对应战报和喜报的排名展示'
,
'orderManage'
,
'updateOrderType'
,
params
,
false
)
// return
// this.$apis.orderManage
// .updateOrderType(params)
// .then(result => {
// this.handleSearch()
// })
// .catch(err => {
// console.log(err)
// })
},
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
)
{
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
,
isResetPage
=
true
)
{
this
.
$confirm
(
txt
,
title
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
...
...
@@ -996,7 +1039,8 @@ export default {
})
if
(
res
.
code
==
'0'
)
{
fn
&&
fn
()
this
.
handleSearch
()
// this.handleSearch()
isResetPage
?
this
.
handleSearch
()
:
this
.
$refs
.
allOrderRef
.
refreshTable
(
false
)
}
})
}
...
...
@@ -1080,7 +1124,7 @@ export default {
})
if
(
res
.
code
==
'0'
)
{
this
.
handleWriteOffClose
()
this
.
handleSearch
()
this
.
searchForm
.
requestSource
==
0
?
this
.
$refs
.
allOrderRef
.
refreshTable
(
false
)
:
this
.
handleSearch
()
}
})
}
...
...
@@ -1088,6 +1132,7 @@ export default {
},
handleStaffClose
()
{
console
.
log
(
'dialogVisible'
)
this
.
isStaffVisible
=
!
this
.
isStaffVisible
},
handleDialogConfirm
()
{
...
...
@@ -1096,7 +1141,7 @@ export default {
},
handleWriteOff
(
row
)
{
if
(
row
.
orderSource
==
4
)
{
this
.
secondConfirm
(
'订单核销'
,
'请确定是否核销此订单?'
,
'orderManage'
,
'crowdFundWriteOffApi'
,
{
orderCode
:
row
.
orderCode
})
this
.
secondConfirm
(
'订单核销'
,
'请确定是否核销此订单?'
,
'orderManage'
,
'crowdFundWriteOffApi'
,
{
orderCode
:
row
.
orderCode
}
,
()
=>
{
},
this
.
searchForm
.
requestSource
!=
0
)
return
true
}
this
.
isWriteOffVisible
=
!
this
.
isWriteOffVisible
...
...
@@ -1126,7 +1171,7 @@ export default {
})
if
(
res
.
code
==
'0'
)
{
this
.
handleExamineClose
()
this
.
handleSearch
()
this
.
searchForm
.
requestSource
==
0
?
this
.
$refs
.
allOrderRef
.
refreshTable
(
false
)
:
this
.
handleSearch
()
}
})
},
...
...
src/views/seckillActivity/components/selectStore.vue
View file @
7d3d9b7
...
...
@@ -15,11 +15,13 @@
<span
slot=
"footer"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"
getList
"
>
查询
</el-button>
@
click=
"
resetTable
"
>
查询
</el-button>
</span>
</glsx-combi-form>
<!-- : :hasPage="false"
:hasNum="false" :tableData="storeList" -->
:getListApi="getListApi"
:tableData="storeList" -->
<GLTable
ref=
"storeRef"
:noDataImg=
"url"
:tableTotal=
"total"
...
...
@@ -27,7 +29,8 @@
:tableParams=
"tableParams"
:pageConf=
"pageConf"
@
refreshTable=
"getList"
:getListApi=
"getListApi"
:tableData=
"storeList"
:hasNum=
"false"
:setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"radioHtml"
class=
"store-table"
...
...
@@ -58,7 +61,7 @@ export default {
},
getListApi
:
this
.
$apis
.
common
.
getMerchantList
,
total
:
0
,
//
storeList: [],
storeList
:
[],
heightBox
:
200
,
merchantId
:
''
,
merchantName
:
''
,
...
...
@@ -81,10 +84,15 @@ export default {
labelWidth
:
'10px'
}
],
pageConfig
:
{
pageSize
:
10
,
currentPage
:
1
},
// 表格
// getListApi: this.$apis.common.getstaffTreeListApi,
tableParams
:
{
listName
:
'list'
,
// tableOption: true,
// 行数据的key
// mutiSelectUniqueKey: 'staffId',
...
...
@@ -99,17 +107,24 @@ export default {
width
:
80
,
addHtml
:
'radioHtml'
},
//
{
//
label: '序号',
//
prop: 'idx',
//
width: 80
//
},
{
label
:
'序号'
,
prop
:
'idx'
,
width
:
80
},
{
label
:
'商户名称'
,
prop
:
'merchantName'
,
formatter
:
cellValue
=>
{
return
cellValue
.
merchantName
||
'-'
}
},
{
label
:
'商户id'
,
prop
:
'merchantNo'
,
formatter
:
cellValue
=>
{
return
cellValue
.
merchantNo
||
'-'
}
}
]
},
...
...
@@ -144,30 +159,44 @@ export default {
let
clientHeight
=
document
.
documentElement
.
clientHeight
this
.
heightBox
=
clientHeight
-
0.15
*
clientHeight
-
425
this
.
merchantId
=
this
.
merchantInfo
//
this.getList()
this
.
getList
()
},
methods
:
{
getList
()
{
getList
(
pageCon
)
{
console
.
log
(
pageCon
,
'pageCon'
)
pageCon
&&
(
this
.
pageConfig
=
pageCon
)
var
params
=
{
merchantId
:
this
.
merchantId
,
...
this
.
searchForm
,
...
this
.
pageConfig
// merchantId: '44209390',
...
this
.
searchForm
}
// this.$apis.common.getSimpleMerchantList(params).then(res => {
// console.log(res)
// this.storeList = res
// // this.storeList = res.staffUnitList
// // this.total = res.total
// // var page = this.$refs.staffRef.page
// // // 添加序号
// this.storeList.forEach((item, index) => {
// item.idx = index + 1
// })
// this.$refs.staffRef.tableHeightValues = '460px'
// })
},
console
.
log
(
params
)
this
.
$apis
.
common
.
getMerchantList
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
storeList
=
res
.
list
this
.
total
=
res
.
total
// // this.storeList = res.staffUnitList
// // var page = this.$refs.staffRef.page
// // // 添加序号
// pageConfig
let
nowIndex
=
this
.
pageConfig
.
pageSize
*
(
this
.
pageConfig
.
currentPage
-
1
)
console
.
log
(
nowIndex
)
this
.
storeList
.
forEach
((
item
,
index
)
=>
{
item
.
idx
=
index
+
1
+
nowIndex
})
console
.
log
(
this
.
storeList
)
// this.$refs.staffRef.tableHeightValues = '460px'
// })
})
},
resetTable
()
{
this
.
$refs
.
storeRef
&&
this
.
$refs
.
storeRef
.
refreshTable
()
this
.
getList
()
},
setTableFinishFun
()
{
// console.log(this.$refs.staffRef.data)
// this.storeList = this.$refs.staffRef.data
...
...
src/views/seckillActivity/crowdFundList.vue
View file @
7d3d9b7
...
...
@@ -161,7 +161,9 @@ export default {
fn
:
'编辑众筹'
},
condition
:
row
=>
{
return
row
.
activityStatus
==
'1'
||
row
.
activityStatus
==
'2'
||
row
.
activityStatus
==
'3'
// 结束的直播不能再开
return
[
'1'
,
'2'
].
includes
(
row
.
activityStatus
)
// return ['1','2','3'].includes(row.activityStatus )
},
listeners
:
{
click
:
row
=>
{
...
...
@@ -389,7 +391,7 @@ export default {
},
mounted
()
{
//
this.getOptionsList('searchFormData')
this
.
getOptionsList
(
'searchFormData'
)
// const {
// $GLBUTTION_PERMISSIONS: { routes = [], routerBase }
// } = this
...
...
src/views/seckillActivity/dataBoard.vue
View file @
7d3d9b7
...
...
@@ -94,21 +94,28 @@
type=
"default"
@
click=
"handleExport('dailyOrders')"
>
导出
</el-button>
</div>
<el-table
:data=
"DailyOrderQuantityListFormat"
<el-table
v-if=
"DailyOrderQuantityList.length"
:data=
"DailyOrderQuantityListFormat"
style=
"width: 100%"
>
<el-table-column
:formatter=
"formatterHeader"
label=
""
></el-table-column>
<!-- width="140px" -->
<el-table-column
v-for=
"(item, index) in DailyOrderQuantityList"
:key=
"index"
:prop=
"item"
width=
"140px"
:label=
"item.day"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
$index
?
item
.
currentOrderQuantity
:
item
.
specificDate
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:formatter=
"formatterEnd"
fixed=
"right"
label=
"总计"
></el-table-column>
</el-table>
<div
v-else
>
<img
src=
"url"
alt=
""
/>
</div>
</div>
</div>
<div
class=
"data-board-box"
>
...
...
@@ -139,14 +146,13 @@
@
click=
"handleExport('liveData')"
>
导出
</el-button>
</div>
<!-- :searchForm="tableSearchForm" -->
<GLTable
ref=
"dataTableRef"
<GLTable
ref=
"dataTableRef
DetailPage
"
:getListApi=
"getLiveDetailPage"
:noDataImg=
"url"
:tableParams=
"liveTableParams"
:searchForm=
"LiveTableSearchForm"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
:beforeSearchFn=
"beforeSearchFn"
>
<div
slot=
"weChatName"
class=
"flex-align"
slot-scope=
"scope"
>
...
...
@@ -195,6 +201,7 @@ export default {
return
{
url
,
dataList
,
totalCount
:
0
,
searchForm
:
{
statDate
:
dayjs
().
format
(
'YYYY-MM-DD'
)
},
...
...
@@ -202,6 +209,7 @@ export default {
baseData
:
{
searchOrderStatusList
:
orderManageStatusList
.
filter
(
item
=>
[
'1'
,
'3'
,
'21'
,
'22'
,
'6'
,
'9'
].
includes
(
item
.
confId
))
},
DailyOrderQuantityList
:
[],
DailyOrderQuantityListFormat
:
[{},
{}],
searchFormData
:
[
{
...
...
@@ -213,7 +221,8 @@ export default {
}
],
searchRankForm
:
{
statDimension
:
'1'
statDimension
:
'1'
,
shareName
:
''
},
searchFormRankData
:
[
{
...
...
@@ -225,6 +234,12 @@ export default {
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'statusList'
},
{
label
:
'员工名称'
,
name
:
'shareName'
,
type
:
'input'
,
maxlength
:
100
}
],
getListApi
:
this
.
$apis
.
seckillActivity
.
getRankListApi
,
...
...
@@ -376,11 +391,17 @@ export default {
.
getDailyOrderQuantityStatistics
({
id
:
this
.
activityId
})
.
then
(
result
=>
{
console
.
log
(
result
)
// let totalCount = {
// currentOrderQuantity: 0,
// specificDate: '',
// day: '总计'
// }
if
(
result
.
length
)
{
this
.
DailyOrderQuantityList
=
result
.
reduce
((
arr
,
item
,
index
)
=>
{
return
arr
},
[]
)
this
.
totalCount
=
result
.
reduce
((
total
,
item
,
index
,
arr
)
=>
{
return
(
total
+=
item
.
currentOrderQuantity
)
},
0
)
}
// result.push(totalCount)
this
.
DailyOrderQuantityList
=
result
||
[]
})
.
catch
(
err
=>
{
...
...
@@ -390,6 +411,7 @@ export default {
getParams
()
{
let
{
activityId
}
=
this
.
$route
.
query
,
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchRankForm
))
console
.
log
(
params
)
params
.
activityId
=
activityId
return
params
},
...
...
@@ -428,12 +450,11 @@ export default {
//接收到的数据为空
this
.
$refs
.
dataTableRef
.
data
.
length
?
(
this
.
$refs
.
dataTableRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
dataTableRef
.
setTableHeightFun
()
},
formatterHeader
(
row
,
column
)
{
if
(
row
==
0
)
{
return
'活动日期'
}
else
{
return
'订单量'
}
formatterHeader
(
row
,
column
,
cellValue
,
index
)
{
return
index
==
0
?
'活动日期'
:
'订单量'
},
formatterEnd
(
row
,
column
,
cellValue
,
index
)
{
return
index
==
1
?
this
.
totalCount
:
''
}
}
}
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
7d3d9b7
<!-- 众筹活动 -->
<
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-tab-pane
label=
"基本信息"
name=
"basic"
></el-tab-pane>
<el-tab-pane
label=
"活动配置"
name=
"config"
></el-tab-pane>
<el-tabs
:tab-position=
"tabPosition"
v-model=
"tabName"
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"
>
<span
class=
"p-l-23"
slot=
"label"
>
服务说明
</span>
<span
class=
"p-l-23"
slot=
"label"
>
服务说明
</span>
</el-tab-pane>
<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
name=
"activityExperienceDTOs"
>
<span
class=
"p-l-23"
slot=
"label"
>
服务评价
</span>
<span
class=
"p-l-23"
slot=
"label"
>
服务评价
</span>
</el-tab-pane>
<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-tabs>
<div
class=
"marketing edit-box"
>
<!-- 基本信息 -->
<div
class=
"container edit-container"
style=
"min-height: 520px !important;"
>
<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
class=
"container edit-container"
style=
"min-height: 520px !important;"
>
<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"
>
<el-button
type=
"default"
class=
"el-icon-plus"
v-if=
"!isDisabled"
@
click=
"handleRelateStoreClose"
>
选择门店
</el-button>
<span
v-if=
"editForm.merchantName"
class=
"merchantNameLabel"
>
门店名称:
{{
editForm
.
merchantName
}}
</span>
<el-button
type=
"default"
class=
"el-icon-plus"
v-if=
"!isDisabled"
@
click=
"handleRelateStoreClose"
>
选择门店
</el-button>
<div
class=
"merchantNameLabel"
v-if=
"editForm.merchantName"
>
<p>
所属门店
</p>
<div
class=
"merchantName ellipsis-1"
>
{{
editForm
.
merchantName
}}
</div>
</div>
</div>
<div
slot=
"activityImg"
class=
"edit-tips m-t-8"
>
展示在首页的活动详情页
</div>
<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>
<div
slot=
"activityImg"
class=
"edit-tips m-t-8"
>
展示在首页的活动详情页
</div>
<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
>
<div
slot=
"goodsHtml"
>
<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"
>
<div
slot=
"goodsHtml"
style=
"width:700px"
>
<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>
<img
class=
"img-60"
:src=
"selectedProInfo.goodsImage"
/>
零售价 {{ (selectedProInfo.retailPrice / 100).toFixed(2) }}元
商品库存 {{ selectedProInfo.goodsStock }}件
<img
class=
"img-60"
:src=
"selectedProInfo.goodsImage"
/>
零售价 {{ (selectedProInfo.retailPrice / 100).toFixed(2) }}元
商品库存 {{ selectedProInfo.goodsStock }}件
</p>
<el-form-item
label=
"定金:"
prop=
"activityPrice"
id=
"activityPrice"
>
<el-input
v-model=
"editForm.activityPrice"
style=
"width: 150px"
:disabled=
"isDisabled"
><span
slot=
"append"
>
元
</span></el-input>
<span
class=
"balancePayment"
>
尾款:
{{ editForm.crowdFundingPrice - editForm.activityPrice || '' }}
</span>
<el-form-item
label=
"定金:"
prop=
"activityPrice"
id=
"activityPrice"
>
<el-input
v-model=
"editForm.activityPrice"
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
label=
"众筹价:"
prop=
"crowdFundingPrice"
id=
"crowdFundingPrice"
>
<el-input
v-model=
"editForm.crowdFundingPrice"
style=
"width: 150px"
:disabled=
"isDisabled"
><span
slot=
"append"
>
元
</span></el-input>
<el-form-item
label=
"众筹价:"
prop=
"crowdFundingPrice"
id=
"crowdFundingPrice"
>
<el-input
v-model=
"editForm.crowdFundingPrice"
style=
"width: 150px"
:disabled=
"isDisabled"
><span
slot=
"append"
>
元
</span></el-input>
</el-form-item>
<el-form-item
label=
"活动库存:"
prop=
"goodsStock"
id=
"goodsStock"
>
<el-input
v-model=
"editForm.goodsStock"
style=
"width: 150px"
:disabled=
"isDisabled"
><span
slot=
"append"
>
件
</span></el-input>
<el-form-item
label=
"活动库存:"
prop=
"goodsStock"
id=
"goodsStock"
>
<el-input
v-model=
"editForm.goodsStock"
style=
"width: 150px"
:disabled=
"isDisabled"
><span
slot=
"append"
>
件
</span></el-input>
</el-form-item>
</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%)"
>
<table
class=
"table-spesc"
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>
<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>
...
...
@@ -123,55 +67,31 @@
</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"
>
<td
:style=
"{ width: specsWidth }"
v-for=
"(n, idx) in item.specsValueList"
:key=
"idx"
>
{{ n }}
</td>
<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>
</table>
</div>
</div>
<
template
slot=
"limitPurchaseFlag"
slot-scope=
"scope"
>
<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>
<
template
slot=
"limitPurchaseFlag"
slot-scope=
"scope"
>
<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>
<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-input
v-model=
"editForm.limitPurchaseNumber"
placeholder=
"请输入限购次数"
:disabled=
"isDisabled"
></el-input>
<el-input
v-model=
"editForm.limitPurchaseNumber"
placeholder=
"请输入限购次数"
:disabled=
"isDisabled"
></el-input>
</el-form-item>
件
</p>
...
...
@@ -180,76 +100,35 @@
</div>
<!-- 活动配置 -->
<div
class=
"container edit-container crowd-config"
>
<p
class=
"edit-title"
id=
"config"
>
活动配置
</p>
<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"
>
<p
class=
"edit-title"
id=
"config"
>
活动配置
</p>
<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
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>
<div
class=
"customer-service"
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
class=
"customer-service"
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>
</
template
>
<
template
slot=
"activityMusic"
slot-scope=
"scope"
>
<
template
slot=
"activityMusic"
slot-scope=
"scope"
>
<div
class=
"flex"
>
<div
class=
"music-box flex-center"
v-for=
"(item, index) in musicList"
:key=
"index"
@
click=
"handleMusicChange(index)"
>
<div
class=
"music-icon"
@
click
.
stop=
"handleMusic(item, index)"
>
<div
class=
"music-box flex-center"
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>
<img
src=
"@/assets/seckillActivity/icon-music-default.png"
/>
</div>
<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
</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>
<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-button
class=
"el-icon-plus"
size=
"small"
type=
"default"
>
背景音乐
</el-button>
<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-button
class=
"el-icon-plus"
size=
"small"
type=
"default"
>
背景音乐
</el-button>
</el-upload>
<audio
v-if=
"playObj.src"
style=
"display: none;"
id=
"music-audio"
controls
>
<source
type=
"audio/mpeg"
:src=
"playObj.src"
/>
<audio
v-if=
"playObj.src"
style=
"display: none;"
id=
"music-audio"
controls
>
<source
type=
"audio/mpeg"
:src=
"playObj.src"
/>
</audio>
<!--
<div
v-if=
"editForm[scope.scope.name]"
class=
"flex"
>
<audio
controls
>
...
...
@@ -259,69 +138,33 @@
</div>
-->
</
template
>
<
template
slot=
"fictitious"
>
<div
class=
"fictitious"
id=
"fictitious"
>
<el-form-item
label=
"参团:"
prop=
"fictitiousGroupQuantity"
labelWidth=
"60px"
>
<el-input
v-model=
"editForm.fictitiousGroupQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"参团人数"
></el-input>
<div
class=
"fictitious"
id=
"fictitious"
>
<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
id=
"fictitiousLadderQuantity"
label=
"阶梯人数:"
prop=
"fictitiousLadderQuantity"
labelWidth=
"90px"
>
<el-input
v-model=
"editForm.fictitiousLadderQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"阶梯人数"
></el-input>
<el-form-item
id=
"fictitiousLadderQuantity"
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
id=
"fictitiousViewQuantity"
label=
"浏览:"
prop=
"fictitiousViewQuantity"
labelWidth=
"60px"
>
<el-input
v-model=
"editForm.fictitiousViewQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"浏览人数"
></el-input>
<el-form-item
id=
"fictitiousViewQuantity"
label=
"浏览:"
prop=
"fictitiousViewQuantity"
labelWidth=
"60px"
>
<el-input
v-model=
"editForm.fictitiousViewQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"浏览人数"
></el-input>
</el-form-item>
</div>
</
template
>
<div
slot=
"activityBigImg"
class=
"edit-tips m-t-8"
>
建议尺寸750*1258
</div>
<div
slot=
"activityVideos"
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"
>
<div
slot=
"activityBigImg"
class=
"edit-tips m-t-8"
>
建议尺寸750*1258
</div>
<div
slot=
"activityVideos"
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
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>
<div
v-for=
"(item, index) in formDescribeList"
:key=
"index"
class=
"form-describe flex-default"
>
<el-input
class=
"describe-input"
v-model=
"item.value"
placeholder=
"请输入"
maxlength=
"20"
></el-input>
<div
v-for=
"(item, index) in formDescribeList"
: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"
>
<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>
</div>
<el-button
class=
"btn-basic"
v-show=
"formDescribeList.length < describeNum"
:size=
"size"
type=
"text"
@
click=
"handleDescribeAdd"
>
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
<el-button
class=
"btn-basic"
v-show=
"formDescribeList.length < describeNum"
:size=
"size"
type=
"text"
@
click=
"handleDescribeAdd"
>
<img
class=
"icon-add"
src=
"@/assets/seckillActivity/icon-add.png"
/>
新增表单
</el-button>
</div>
...
...
@@ -332,184 +175,93 @@
</el-radio-group>
</div>
<!-- 服务说明 -->
<div
slot=
"activityServices"
id=
"activityServices"
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>
<div
slot=
"activityServices"
id=
"activityServices"
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>
<div
class=
"form-show-box"
>
<div
:class=
"['btn-box', arrowFlagObj.activityServices == 'open' && editForm.activityServices.length ? 'line' : '']"
>
<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"
/>
<div
:class=
"['btn-box', arrowFlagObj.activityServices == 'open' && editForm.activityServices.length ? 'line' : '']"
>
<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>
</div>
<div
:class=
"['form-show-block', arrowFlagObj.activityServices == 'close' ? 'form-close' : 'form-open']"
>
<div
v-for=
"(item, index) in editForm.activityServices"
:key=
"index"
: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"
/>
<div
:class=
"['form-show-block', arrowFlagObj.activityServices == 'close' ? 'form-close' : 'form-open']"
>
<div
v-for=
"(item, index) in editForm.activityServices"
:key=
"index"
: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>
</div>
</div>
</div>
</div>
<!-- 商品答疑 -->
<div
slot=
"activityCommoditys"
id=
"activityCommoditys"
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>
<div
slot=
"activityCommoditys"
id=
"activityCommoditys"
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>
<div
class=
"form-show-box"
>
<div
:class=
"['btn-box', arrowFlagObj.activityCommoditys == 'open' && editForm.activityCommoditys.length ? 'line' : '']"
>
<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"
/>
<div
:class=
"['btn-box', arrowFlagObj.activityCommoditys == 'open' && editForm.activityCommoditys.length ? 'line' : '']"
>
<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>
</div>
<div
:class=
"['form-show-block', arrowFlagObj.activityCommoditys == 'close' ? 'form-close' : 'form-open']"
>
<div
v-for=
"(item, index) in editForm.activityCommoditys"
:key=
"index"
: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"
/>
<div
:class=
"['form-show-block', arrowFlagObj.activityCommoditys == 'close' ? 'form-close' : 'form-open']"
>
<div
v-for=
"(item, index) in editForm.activityCommoditys"
:key=
"index"
: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>
</div>
</div>
</div>
</div>
<!-- 服务评价 -->
<div
slot=
"activityExperienceDTOs"
id=
"activityExperienceDTOs"
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>
<div
slot=
"activityExperienceDTOs"
id=
"activityExperienceDTOs"
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>
<div
class=
"form-show-box"
>
<div
:class=
"['btn-box', arrowFlagObj.activityExperienceDTOs == 'open' && editForm.activityExperienceDTOs.length ? 'line' : '']"
>
<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"
/>
<div
:class=
"['btn-box', arrowFlagObj.activityExperienceDTOs == 'open' && editForm.activityExperienceDTOs.length ? 'line' : '']"
>
<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>
</div>
<div
: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=
"['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"
>
<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>
</div>
<glsx-combi-form
class=
"p-t-20"
: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
class=
"p-t-20"
: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>
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityExperienceDTOs.length - 1 ? 'last-btn-delete' : '']"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('experiences', 'activityExperienceDTOs', index)"
>
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityExperienceDTOs.length - 1 ? 'last-btn-delete' : '']"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('experiences', 'activityExperienceDTOs', index)"
>
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
</el-button>
</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
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>
</div>
<
template
slot=
"appointmentContacts"
>
<div
class=
"appointmentContactsClass"
>
<el-form-item
label=
"姓名:"
prop=
"reservationInstallContactsName"
labelWidth=
"60px"
>
<el-input
v-model=
"editForm.reservationInstallContactsName"
style=
"width: 432px;display: block;"
maxlength=
"10"
placeholder=
"请输入姓名"
></el-input>
<el-form-item
label=
"姓名:"
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
label=
"电话:"
prop=
"reservationInstallContactsPhone"
labelWidth=
"60px"
class=
"phoneClass"
>
<el-input
v-model=
"editForm.reservationInstallContactsPhone"
style=
"width: 432px"
maxlength=
"11"
placeholder=
"请输入电话"
></el-input>
<el-form-item
label=
"电话:"
prop=
"reservationInstallContactsPhone"
labelWidth=
"60px"
class=
"phoneClass"
>
<el-input
v-model=
"editForm.reservationInstallContactsPhone"
style=
"width: 432px"
maxlength=
"11"
placeholder=
"请输入电话"
></el-input>
</el-form-item>
</div>
</
template
>
...
...
@@ -517,122 +269,49 @@
<
template
slot=
"reportConfigure"
>
<div
class=
"reportConfigure-bag"
>
<el-tabs
v-model=
"reportFlag"
>
<el-tab-pane
label=
"进行中战报"
name=
"1"
>
<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-tab-pane
label=
"进行中战报"
name=
"1"
>
<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-tab-pane>
<el-tab-pane
label=
"已结束战报"
name=
"2"
>
<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-tab-pane
label=
"已结束战报"
name=
"2"
>
<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
label=
"触达通道分析总结:"
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
label=
"触达通道分析总结:"
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>
<div
class=
"reportConfigureList"
>
<span
class=
"reportConfigureLabel"
>
标杆门店数据:
</span>
<el-form-item
label=
"分享数(次)"
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
label=
"分享数(次)"
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
label=
"浏览数(次)"
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
label=
"浏览数(次)"
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
label=
"访客数(人)"
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
label=
"访客数(人)"
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
label=
"订单数(单)"
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
label=
"订单数(单)"
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
label=
"总产值(万)"
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
label=
"总产值(万)"
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>
</div>
<div
class=
"reportConfigureList"
>
<span
class=
"reportConfigureLabel"
>
短信触达数据:
</span>
<el-form-item
label=
"目标客户数(人)"
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
label=
"目标客户数(人)"
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
label=
"访客数(人)"
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
label=
"访客数(人)"
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
label=
"订单数(单)"
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
label=
"订单数(单)"
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
label=
"转化率(%)"
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
label=
"转化率(%)"
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>
</div>
</el-tab-pane>
...
...
@@ -642,92 +321,47 @@
<!-- 直播配置 -->
<div
slot=
"live"
>
<el-switch
v-model=
"editForm.liveFlag"
></el-switch>
<div
class=
"customer-service"
v-if=
"editForm.liveFlag"
id=
"liveFlag"
>
<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"
>
<div
class=
"customer-service"
v-if=
"editForm.liveFlag"
id=
"liveFlag"
>
<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"
/>
</div>
<div
slot=
"floatingMaskDiagram"
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"
>
<div
slot=
"floatingMaskDiagram"
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"
/>
</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"
/>
</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>
</div>
</div>
<!-- 收款模式 -->
<div
slot=
"paymentModel"
class=
"paymentModelSlot"
>
<el-radio-group
v-model=
"editForm.pay
M
entModel"
>
<el-radio
:label=
"
1
"
>
广联收定金和尾款
</el-radio>
<el-radio
:label=
"
2
"
>
广联收定金门店收尾款
</el-radio>
<el-radio
:label=
"
3
"
>
广联收定金门店收全款退定金
</el-radio>
<el-radio
:label=
"
4
"
>
门店收定金和尾款
</el-radio>
<div
slot=
"paymentModel"
class=
"paymentModelSlot"
>
<!-- <div>{{ editForm.payMentModel }}</div> --
>
<el-radio-group
v-model=
"editForm.pay
m
entModel"
>
<el-radio
:label=
"
'1'
"
>
广联收定金和尾款
</el-radio>
<el-radio
:label=
"
'2'
"
>
广联收定金门店收尾款
</el-radio>
<el-radio
:label=
"
'3'
"
>
广联收定金门店收全款退定金
</el-radio>
<el-radio
:label=
"
'4'
"
>
门店收定金和尾款
</el-radio>
</el-radio-group>
</div>
</glsx-combi-form>
</div>
<GLFooter>
<el-button
@
click=
"handleCancel"
size=
"medium"
>
{{ routeInfo.addOrEdit != 'detail' ? '取消' : '返回' }}
</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>
<el-button
@
click=
"handleCancel"
size=
"medium"
>
{{ routeInfo.addOrEdit != 'detail' ? '取消' : '返回' }}
</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>
<!-- 展示 -->
<GLDialog
bigTitle=
"预览"
mode=
"big"
:visible
.
sync=
"wechatVisible"
@
onOk=
"handleWechat"
@
onCancel=
"handleWechat"
>
<crowdEditWechat
ref=
"crowdEditWechat"
:editForm=
"editForm"
:countDownObj=
"countDownObj"
></crowdEditWechat>
<GLDialog
bigTitle=
"预览"
mode=
"big"
:visible
.
sync=
"wechatVisible"
@
onOk=
"handleWechat"
@
onCancel=
"handleWechat"
>
<crowdEditWechat
ref=
"crowdEditWechat"
:editForm=
"editForm"
:countDownObj=
"countDownObj"
></crowdEditWechat>
</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" -->
<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-form :model="storeSearchForm"
ref="relate"
...
...
@@ -760,7 +394,8 @@
</template>
<
script
>
import
{
limitPrice
}
from
'@/common/constant'
import
{
limitPrice
,
businessType
}
from
'@/common/constant'
import
{
utils
}
from
'glsx-common'
import
crowdEditWechat
from
'./crowdEditWechat.vue'
import
selectStore
from
'./components/selectStore'
export
default
{
...
...
@@ -770,7 +405,7 @@ export default {
selectStore
},
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
))
{
callback
(
new
Error
(
'手机号格式错误'
))
}
else
{
...
...
@@ -865,6 +500,7 @@ export default {
selectCarNumberFlag
:
2
,
selectVehicleTypeFlag
:
2
,
selectPhoneNumberFlag
:
2
,
businessType
:
2
,
//业务场景
formDescribeCheck
:
[
'selectCarNumberFlag'
,
'selectVehicleTypeFlag'
,
'selectPhoneNumberFlag'
],
activityServices
:
[],
activityCommoditys
:
[],
...
...
@@ -933,9 +569,23 @@ export default {
promotion
:
[{
required
:
true
,
message
:
'请输入活动宣传语'
,
trigger
:
'change'
}],
activityTime
:
[{
required
:
true
,
message
:
'活动时间不能为空'
,
trigger
:
'change'
}],
activityPrice
:
[
{
required
:
true
,
message
:
'请设置
秒杀
价'
,
trigger
:
'change'
},
{
required
:
true
,
message
:
'请设置
定金
价'
,
trigger
:
'change'
},
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
!
this
.
editForm
.
crowdFundingPrice
)
return
callback
(
new
Error
(
'请先填写众筹价'
))
if
(
value
>
Number
(
this
.
editForm
.
crowdFundingPrice
))
return
callback
(
new
Error
(
'定金不能大于众筹价格'
))
return
value
>=
+
(
this
.
selectedProInfo
.
retailPrice
/
100
).
toFixed
(
2
)
?
callback
(
new
Error
(
'秒杀价必须小于零售价'
))
:
callback
()
},
trigger
:
'change'
}
],
crowdFundingPrice
:
[
{
required
:
true
,
message
:
'请设置众筹价'
,
trigger
:
'change'
},
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
value
<
+
this
.
editForm
.
activityPrice
)
{
return
callback
(
new
Error
(
'众筹价需要大于定金'
))
}
return
value
>=
+
(
this
.
selectedProInfo
.
retailPrice
/
100
).
toFixed
(
2
)
?
callback
(
new
Error
(
'秒杀价必须小于零售价'
))
:
callback
()
},
trigger
:
'change'
...
...
@@ -975,7 +625,8 @@ export default {
activityBigImg
:
[{
required
:
true
,
message
:
'请选择活动大图'
,
trigger
:
'change'
}],
activityDetail
:
[{
required
:
true
,
message
:
'请输入活动详情'
,
trigger
:
'change'
}],
forwardTitle
:
[{
required
:
true
,
message
:
'请输入转发标题'
,
trigger
:
'change'
}],
paymentAccountId
:
[{
required
:
true
,
message
:
'请选择定金收款账户'
,
trigger
:
'change'
}]
paymentAccountId
:
[{
required
:
true
,
message
:
'请选择定金收款账户'
,
trigger
:
'change'
}],
businessType
:
[{
required
:
true
,
message
:
'请选择业务场景'
,
trigger
:
'change'
}]
},
// 表单设置
formDescribeCheckList
:
[
...
...
@@ -1015,7 +666,7 @@ export default {
label
:
'活动名称'
,
name
:
'activityName'
,
type
:
'input'
,
maxlength
:
2
0
,
maxlength
:
4
0
,
tips
:
'如XX店车主关怀活动'
,
isDisabled
:
false
},
...
...
@@ -1092,6 +743,7 @@ export default {
isClear
:
true
,
isHide
:
true
},
{
label
:
'规格明细'
,
name
:
''
,
...
...
@@ -1099,6 +751,16 @@ export default {
isHide
:
true
},
{
label
:
'业务场景'
,
name
:
'businessType'
,
type
:
'select'
,
optionList
:
utils
.
deepClone
(
businessType
),
optionId
:
'optionId'
,
optionLabel
:
'optionLabel'
,
isClear
:
true
// isHide: true
},
{
label
:
'是否限购'
,
name
:
'limitPurchaseFlag'
,
addHtml
:
'limitPurchaseFlag'
,
...
...
@@ -1652,7 +1314,13 @@ export default {
defaultFloatingMaskDiagram
:
'https://wx.glsx.com.cn/upload/biz/ba63349f-8e9e-4e80-be3b-45cc38dcf13f.gif'
}
},
filters
:
{
filterBalancePayment
(
crowdFundingPrice
,
activityPrice
)
{
let
BalancePaymentNum
=
Number
(
crowdFundingPrice
)
-
Number
(
activityPrice
)
if
(
BalancePaymentNum
==
0
)
return
0
return
BalancePaymentNum
>
0
?
BalancePaymentNum
:
''
}
},
mounted
()
{
this
.
getLiveList
()
this
.
setMinHeight
(
'.crowd-config'
)
...
...
@@ -1694,7 +1362,7 @@ export default {
newValue
&&
newValue
.
length
&&
this
.
countDown
()
},
'editForm.predictVolume'
(
newValue
,
oldValue
)
{
this
.
editForm
.
predictVolume
=
limitPrice
(
newValue
,
oldValue
,
7
,
2
,
0
,
1
000000
)
this
.
editForm
.
predictVolume
=
limitPrice
(
newValue
,
oldValue
,
10
,
2
,
0
,
1000
000000
)
},
'editForm.fictitiousGroupQuantity'
(
newValue
,
oldValue
)
{
this
.
editForm
.
fictitiousGroupQuantity
=
limitPrice
(
newValue
,
oldValue
,
3
,
0
,
0
,
501
)
...
...
@@ -1876,7 +1544,7 @@ export default {
},
handleRelateProClose
(
targetItem
)
{
// 先选门店在选商品
if
(
this
.
editForm
.
merchantId
)
return
this
.
$message
.
error
(
'请先选择门店!'
)
if
(
!
this
.
editForm
.
merchantId
)
return
this
.
$message
.
error
(
'请先选择门店!'
)
this
.
selectedProInfo
=
this
.
editForm
.
goodsId
?
{
id
:
this
.
editForm
.
goodsId
}
:
{}
this
.
handleSingleSelectClose
()
},
...
...
@@ -2011,7 +1679,7 @@ export default {
},
// 音乐
handleMusicUpload
()
{
},
handleMusicUpload
()
{},
musicUpload
(
e
,
targetItem
)
{
var
reader
=
new
FileReader
()
...
...
@@ -2344,7 +2012,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
,
...
...
@@ -2598,7 +2266,7 @@ export default {
.
then
(()
=>
{
this
.
cancelJump
()
})
.
catch
(()
=>
{
})
.
catch
(()
=>
{})
}
else
{
this
.
cancelJump
()
}
...
...
@@ -2657,8 +2325,28 @@ export default {
border
:
1px
solid
#e7e7e7
;
}
.merchantNameLabel
{
color
:
#606266
;
margin-left
:
50px
;
width
:
510px
;
color
:
#1d1d1d
;
//
margin-left
:
50px
;
padding
:
16px
;
margin-top
:
8px
;
border
:
1px
solid
#e6e6e6
;
border-radius
:
8
rpx
;
background
:
#f9f9f9
;
.merchantName
{
box-sizing
:
border-box
;
width
:
284px
;
height
:
32px
;
background
:
#ffffff
;
border
:
1px
solid
#e6e6e6
;
border-radius
:
4px
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
14px
;
color
:
#999999
;
line-height
:
32px
;
padding
:
0
8px
;
}
}
.edit-product-dh
.table-spesc
tbody
td
{
display
:
inline-block
;
...
...
vue.config.js
View file @
7d3d9b7
...
...
@@ -9,7 +9,7 @@ const cdn = {
js
:
[
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vue-router/3.2.0/vue-router.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vuex/3.6.2/vuex.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
,
'https://webapi.amap.com/loader.js'
]
}
module
.
exports
=
{
outputDir
:
`
dist
`
,
outputDir
:
`
../dist/
${
packageName
}
`
,
publicPath
,
assetsDir
:
'static'
,
productionSourceMap
:
false
,
...
...
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