Commit 7599e5b3 by 前端

Merge branch 'v3.5.0-0227' into 'master'

合并V3.5.0 0227至主干

See merge request !39
2 parents 7179c2d5 70a2b370
...@@ -292,4 +292,16 @@ const getCrowdfundingParams = params => { ...@@ -292,4 +292,16 @@ const getCrowdfundingParams = params => {
sign: true sign: true
}) })
} }
export default { getPayListApi, getPayMerchatListApi, liveroomDetailexport, liveroomDetailpage, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi, getDailyOrderQuantityStatistics, exportDailyOrderQuantityStatistics, getCrowdfundingParams }
/**众筹活动直播视频列表 */
const getTencentcloudmediaList = params => {
params.method = 'scrm.api.shopmall.tencentcloudmedia.list'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getPayListApi, getPayMerchatListApi, liveroomDetailexport, liveroomDetailpage, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi, getDailyOrderQuantityStatistics, exportDailyOrderQuantityStatistics, getCrowdfundingParams, getTencentcloudmediaList }
<!-- 选择商品 - 单选 --> <!-- 选择商品 - 单选 -->
<template> <template>
<!-- :okText="productList.length ? '确定' : '创建商品'" --> <!-- :okText="productList.length ? '确定' : '创建商品'" -->
<GLDialog class="single-pro" <GLDialog
bigTitle="选择商品" class="single-pro"
:bigTitle="!multiple?'选择商品':`选择商品(已选${infoIdList.length}项)`"
mode="big" mode="big"
:before-close="handleSingleSelectClose" :before-close="handleSingleSelectClose"
:okText="'确定'" :okText="'确定'"
:visible.sync="isSingleSelectVisible" :visible.sync="isSingleSelectVisible"
@onOk="handleSingleSelectConfirm" @onOk="handleSingleSelectConfirm"
@onCancel="handleSingleSelectClose"> @onCancel="handleSingleSelectClose"
<div style="max-height:60vh"> >
<div class="noproDiv"
v-if="!productList.length && fnCallBack"> <div
class="single-pro-box"
v-loading="loading"
>
<div
class="noproDiv"
v-if="!productList.length && fnCallBack"
>
<img src="@/assets/noPro.png" /> <img src="@/assets/noPro.png" />
<p class="noproP">系统暂无已创建的商品</p> <p class="noproP">系统暂无已创建的商品</p>
</div> </div>
<el-radio-group v-model="infoId" <template v-if="multiple">
<el-checkbox-group
v-model="infoIdList"
v-if="productList.length" v-if="productList.length"
class="pro-group"> class="pro-group"
<el-radio :class="['pro-box', item.id == infoId ? 'active' : '']" :max="multipleMax"
>
<el-checkbox
:class="['pro-box', infoIdList.includes(item.id) ? 'active' : '']"
v-for="item in productList" v-for="item in productList"
:key="item.id" :key="item.id"
:label="item.id"> :label="item.id"
<img v-show="item.id == infoId" >
<!-- <img
v-show="infoIdList.includes(item.id)"
class="icon-check" class="icon-check"
src="@/assets/icon-check.png" /> src="@/assets/icon-check.png"
<img class="goods-img" /> -->
:src="item.goodsImage" /> <div
class="icon-number icon-check"
v-show="infoIdList.includes(item.id)"
>{{infoIdList.findIndex(e => item.id == e) + 1}}</div>
<img
class="goods-img"
:src="item.goodsImage"
/>
<div class="txt-box"> <div class="txt-box">
<p :title="item.goodsName" <p
class="ellipsis">{{ item.goodsName }}</p> :title="item.goodsName"
class="ellipsis"
>{{ item.goodsName }}</p>
<p class="f-s-12">销量:{{ item.saleAmount }}</p> <p class="f-s-12">销量:{{ item.saleAmount }}</p>
<p class="f-s-12">库存:{{ item.goodsStock }}</p> <p class="f-s-12">库存:{{ item.goodsStock }}</p>
<p class="f-s-12">零售价:{{ item.retailPrice }}</p> <p class="f-s-12">零售价:{{ item.retailPrice }}</p>
<p :title="item.merchantName" <p
class="ellipsis f-s-12">门店名称:{{ item.merchantName }}</p> :title="item.merchantName"
class="ellipsis f-s-12"
>门店名称:{{ item.merchantName }}</p>
</div>
</el-checkbox>
</el-checkbox-group>
</template>
<template v-else>
<el-radio-group
v-model="infoId"
v-if="productList.length"
class="pro-group"
>
<el-radio
:class="['pro-box', item.id == infoId ? 'active' : '']"
v-for="item in productList"
:key="item.id"
:label="item.id"
>
<img
v-show="item.id == infoId"
class="icon-check"
src="@/assets/icon-check.png"
/>
<img
class="goods-img"
:src="item.goodsImage"
/>
<div class="txt-box">
<p
:title="item.goodsName"
class="ellipsis"
>{{ item.goodsName }}</p>
<p class="f-s-12">销量:{{ item.saleAmount }}</p>
<p class="f-s-12">库存:{{ item.goodsStock }}</p>
<p class="f-s-12">零售价:{{ item.retailPrice }}</p>
<p
:title="item.merchantName"
class="ellipsis f-s-12"
>门店名称:{{ item.merchantName }}</p>
</div> </div>
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</template>
</div> </div>
</GLDialog> </GLDialog>
</template> </template>
...@@ -46,13 +110,15 @@ ...@@ -46,13 +110,15 @@
// import { getGoodsList } from '@/api/modules/common' // import { getGoodsList } from '@/api/modules/common'
export default { export default {
name: 'selectSingleProDialog', name: 'selectSingleProDialog',
data() { data () {
return { return {
userInfo: {}, userInfo: {},
infoId: '', infoId: '',
minRatilPrice: '', minRatilPrice: '',
productList: [], productList: [],
fnCallBack: false fnCallBack: false,
infoIdList: [],
loading: true
} }
}, },
...@@ -61,30 +127,34 @@ export default { ...@@ -61,30 +127,34 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
selectedProInfo: { selectedProInfo: [Object, Array],
type: Object,
default: () => { }
},
merchantId: { merchantId: {
type: String, type: String,
required: true required: true
},
multiple: Boolean,
multipleMax: {
type: Number,
default: 5
} }
}, },
computed: {}, computed: {},
mounted() { mounted () {
const { multiple } = this
this.userInfo = this.$globalState.session this.userInfo = this.$globalState.session
this.infoId = this.selectedProInfo.id if (!multiple) this.infoId = this.selectedProInfo.id
this.getList() this.getList()
}, },
methods: { methods: {
getList() { getList () {
const { multiple, selectedProInfo } = this
var params = { var params = {
goodsStatus: 1, goodsStatus: 1,
isActivityUsing: 1, isActivityUsing: 1,
goodsSources: [1, 3], goodsSources: multiple? [3] :[1, 3],//众筹活动不能取门店自建商品
pageNum: 1, pageNum: 1,
pageSize: 100000, pageSize: 100000,
deliveryType: 1, deliveryType: 1,
...@@ -92,9 +162,15 @@ export default { ...@@ -92,9 +162,15 @@ export default {
} }
var that = this var that = this
this.$apis.common.getMerchantGoodsListApi(params).then(res => { this.$apis.common.getMerchantGoodsListApi(params).then(res => {
this.loading = false
// console.log(res) // console.log(res)
this.fnCallBack = true this.fnCallBack = true
this.productList = res.list this.productList = res.list
if (multiple) {
selectedProInfo.length && selectedProInfo.map(e => {
if (e.id) this.infoIdList.push(e.id)
})
}
this.productList.forEach(function (item) { this.productList.forEach(function (item) {
item.saleAmount = item.goodsStatistics.saleAmount item.saleAmount = item.goodsStatistics.saleAmount
if (item.specificationDetailList && item.specificationDetailList.length > 1) { if (item.specificationDetailList && item.specificationDetailList.length > 1) {
...@@ -117,13 +193,13 @@ export default { ...@@ -117,13 +193,13 @@ export default {
item.goodsStock = item.specificationDetailList[0].stock item.goodsStock = item.specificationDetailList[0].stock
} else { } else {
item.retailPrice = (item.retailPrice / 100).toFixed(2) item.retailPrice = (item.retailPrice / 100).toFixed(2)
console.log(item.retailPrice)
item.minRatilPrice = item.retailPrice item.minRatilPrice = item.retailPrice
} }
}) })
}) })
}, },
handleSingleSelectConfirm() { handleSingleSelectConfirm () {
const { multiple, infoIdList } = this
if (!this.productList.length) { if (!this.productList.length) {
var params = { var params = {
addOrEdit: 1, addOrEdit: 1,
...@@ -136,6 +212,18 @@ export default { ...@@ -136,6 +212,18 @@ export default {
}) })
return true return true
} }
if (multiple) {
if (infoIdList.length < 1) return this.$message({
message: '请选择商品',
type: 'error',
customClass: 'message-Z-zinde'
})
const list = []
infoIdList.map(e => {
list.push(this.productList.find(item => item.id === e))
})
this.$emit('handleSingleSelectConfirm', list)
} else {
if (!this.infoId) { if (!this.infoId) {
this.$message({ this.$message({
message: '请选择商品', message: '请选择商品',
...@@ -146,26 +234,52 @@ export default { ...@@ -146,26 +234,52 @@ export default {
} }
var selectInfo = this.productList.find(item => item.id === this.infoId) var selectInfo = this.productList.find(item => item.id === this.infoId)
this.$emit('handleSingleSelectConfirm', selectInfo) this.$emit('handleSingleSelectConfirm', selectInfo)
}
}, },
handleSingleSelectClose() { handleSingleSelectClose () {
this.$emit('handleSingleSelectClose') this.$emit('handleSingleSelectClose')
} }
} }
} }
</script> </script>
<style> <style lang="scss">
.single-pro .pro-group { .single-pro .pro-group {
margin-left: 50px; // margin-left: 50px;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px 14px;
padding-bottom: 20px;
.el-checkbox {
margin-right: 0 !important;
transition: all 0.25s;
}
.is-disabled {
opacity: 0.5;
}
.el-checkbox__input {
opacity: 0 !important;
position: absolute;
}
.el-checkbox__label {
padding-left: 0 !important;
}
}
.single-pro-box {
min-height: 20vh;
max-height: 60vh;
transition: all 0.25s;
} }
.single-pro .pro-box { .single-pro .pro-box {
width: 202px; // width: 202px;
width: 246px;
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
border-radius: 6px; border-radius: 6px;
/* margin: 0 10px 10px 0; */ transition: all 0.25s;
margin: 0 40px 20px 0; // margin: 0 40px 20px 0;
} }
.single-pro .pro-box:nth-child(4n) { .single-pro .pro-box:nth-child(4n) {
margin: 0 20px 20px 0; // margin: 0 20px 20px 0;
} }
.single-pro .pro-box.active { .single-pro .pro-box.active {
box-shadow: 0px 6px 20px 0px rgba(122, 122, 122, 0.2); box-shadow: 0px 6px 20px 0px rgba(122, 122, 122, 0.2);
...@@ -180,6 +294,18 @@ export default { ...@@ -180,6 +294,18 @@ export default {
right: 10px; right: 10px;
width: 32px; width: 32px;
height: 32px; height: 32px;
line-height: 1;
font-size: 20px;
font-weight: 700;
}
.icon-number {
background-color: #5850ff;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
border-radius: 100%;
overflow: hidden;
} }
.single-pro p { .single-pro p {
margin: 0 0 8px 0; margin: 0 0 8px 0;
...@@ -188,9 +314,10 @@ export default { ...@@ -188,9 +314,10 @@ export default {
font-size: 12px; font-size: 12px;
} }
.single-pro .pro-box .goods-img { .single-pro .pro-box .goods-img {
width: 202px; width: 184px;
height: 202px; height: 184px;
border-radius: 6px 6px 0 0; display: block;
margin: 20px auto 0;
} }
.single-pro .el-radio__input { .single-pro .el-radio__input {
position: absolute; position: absolute;
...@@ -201,8 +328,10 @@ export default { ...@@ -201,8 +328,10 @@ export default {
padding: 0; padding: 0;
} }
.single-pro .txt-box { .single-pro .txt-box {
padding: 10px 10px 0; padding: 16px 20px 0;
color: #666666; color: #666666;
width: 246px;
box-sizing: border-box;
} }
.single-pro .ellipsis { .single-pro .ellipsis {
white-space: nowrap; white-space: nowrap;
......
...@@ -183,11 +183,21 @@ export default { ...@@ -183,11 +183,21 @@ export default {
optionList: [], optionList: [],
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName' optionLabel: 'confName'
},
{
label: '活动类型',
name: 'marketingType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'activityTypeList'
} }
], ],
tableSearchForm: { tableSearchForm: {
merchantName: '', merchantName: '',
activityName: '' activityName: '',
activityType: ''
}, },
// 表格 // 表格
userList: [], userList: [],
...@@ -213,6 +223,14 @@ export default { ...@@ -213,6 +223,14 @@ export default {
prop: 'merchantName' prop: 'merchantName'
}, },
{ {
label: '活动类型',
prop: 'marketingType',
formatter: cellValue => {
const data = this.baseData.activityTypeList.filter(item => item.confId == cellValue.marketingType)
return data.length > 0 ? data[0].confName : '--'
}
},
{
label: '活动时间', label: '活动时间',
addHtml: 'activityTime' addHtml: 'activityTime'
}, },
...@@ -244,11 +262,18 @@ export default { ...@@ -244,11 +262,18 @@ export default {
wechat: { wechat: {
automaticName: '', automaticName: '',
roomName: '' roomName: ''
},
baseData: {
activityTypeList: [
{ confId: '3', confName: '众筹' },
{ confId: '5', confName: '膨胀金' }
]
} }
} }
}, },
mounted() { mounted() {
this.getOptionsList('searchFormData')
this.getCrowdfundingParams() this.getCrowdfundingParams()
this.getMerchantList() this.getMerchantList()
}, },
...@@ -287,6 +312,31 @@ export default { ...@@ -287,6 +312,31 @@ export default {
} }
}, },
methods: { methods: {
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle)
this.$set(this[formName][index], 'optionList', this.$common.utils.deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
} else {
this[formName].forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName]?.length) {
this.$set(this[formName][index], 'optionList', this.$common.utils.deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
}
})
}
},
async getCrowdfundingParams() { async getCrowdfundingParams() {
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */ /**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
const activity = await this.$apis.seckillActivity.getCrowdfundingParams({ const activity = await this.$apis.seckillActivity.getCrowdfundingParams({
......
...@@ -1964,8 +1964,12 @@ export default { ...@@ -1964,8 +1964,12 @@ export default {
margin: 0 8px 0 0 !important; margin: 0 8px 0 0 !important;
} }
} }
.el-select .el-select__tags>span{
width: 80%;
display: flex !important;
}
.el-select .el-tag { .el-select .el-tag {
max-width: 60% !important; max-width: 55% !important;
} }
.import-dialog { .import-dialog {
.el-dialog__body { .el-dialog__body {
......
...@@ -2,111 +2,53 @@ ...@@ -2,111 +2,53 @@
<template> <template>
<div class="marketing"> <div class="marketing">
<div class="m-b-20"> <div class="m-b-20">
<GLButton <GLButton :size="size" class="default-blue-btn el-icon-plus" type="default" @click="handleEdit('add')" fn="新增众筹"
:size="size" mode="el-button">新建众筹</GLButton>
class="default-blue-btn el-icon-plus"
type="default"
@click="handleEdit('add')"
fn="新增众筹"
mode="el-button"
>新建众筹</GLButton>
<template v-if="!hideStatus"> <template v-if="!hideStatus">
<el-button <el-button :size="size" type="default" class="default-blue-btn" @click="handleJump">订单管理</el-button>
:size="size"
type="default"
class="default-blue-btn"
@click="handleJump"
>订单管理</el-button>
</template> </template>
</div> </div>
<div class="container"> <div class="container">
<GLCombiForm <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData"
ref="showSearch" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
:rowNumber="1"
:formObj="searchForm"
:formData="searchFormData"
@handleOk="handleSearch"
@handleRest="handleReset"
></GLCombiForm>
<div class="flex m-b-10 w-100-percent"> <div class="flex m-b-10 w-100-percent">
<span class="table-title"></span> <span class="table-title"></span>
<el-button <el-button :size="size" class="default-blue-btn" type="default" @click="handleExport">导出</el-button>
:size="size"
class="default-blue-btn"
type="default"
@click="handleExport"
>导出</el-button>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<single-gltable <single-gltable ref="activity" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm"
ref="activity" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"
:getListApi="getListApi" @setTableFinishFun="setTableFinishFun">
:noDataImg="url" <div slot="activityImg" class="table-image" slot-scope="scope">
:searchForm="tableSearchForm" <el-popover placement="top" width="160" trigger="hover" popper-class="table-popover-block">
:tableParams="tableParams" <img class="table-popover-img" :src="scope.scope.activityImg" />
:pageConf="pageConf" <img class="img-60 pointer" slot="reference" :src="scope.scope.activityImg" />
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"
>
<div
slot="activityImg"
class="table-image"
slot-scope="scope"
>
<el-popover
placement="top"
width="160"
trigger="hover"
popper-class="table-popover-block"
>
<img
class="table-popover-img"
:src="scope.scope.activityImg"
/>
<img
class="img-60 pointer"
slot="reference"
:src="scope.scope.activityImg"
/>
</el-popover> </el-popover>
</div> </div>
<div <div slot="linkText" slot-scope="scope">
slot="linkText"
slot-scope="scope"
>
<template v-if="scope.scope.incrementFlag == 'Y' || hideStatus"> <template v-if="scope.scope.incrementFlag == 'Y' || hideStatus">
{{scope.scope[scope.prop] || 0 }} {{ scope.scope[scope.prop] || 0 }}
</template> </template>
<template v-else> <template v-else>
<p <p class="cursor-pointer" @click="handleDetail(scope)">{{ scope.scope[scope.prop] || 0 }}</p>
class="cursor-pointer"
@click="handleDetail(scope)"
>{{ scope.scope[scope.prop] || 0 }}</p>
</template> </template>
</div> </div>
<div <div slot="joinText" slot-scope="scope">
class="table-btns" <el-tooltip effect="dark" :content="formatterNumber(scope.scope, scope.prop)" placement="top">
slot="auth-button" <div class="line-ellipsis">{{ formatterNumber(scope.scope, scope.prop) }}</div>
slot-scope="scope" </el-tooltip>
> </div>
<GLTableButton <div class="table-btns" slot="auth-button" slot-scope="scope">
:buttonList="tableButtonList" <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
:buttonItem="scope.scope"
:buttonNum="3"
></GLTableButton>
</div> </div>
</single-gltable> </single-gltable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<!-- 众筹分享 --> <!-- 众筹分享 -->
<crowdFundingShare <crowdFundingShare :isShareVisible="isShareVisible" :shareForm="shareForm" @handleShareClose="handleShareClose"
:isShareVisible="isShareVisible" :hideStatus="hideStatus"></crowdFundingShare>
:shareForm="shareForm"
@handleShareClose="handleShareClose"
:hideStatus="hideStatus"
></crowdFundingShare>
</div> </div>
</template> </template>
...@@ -214,7 +156,6 @@ export default { ...@@ -214,7 +156,6 @@ export default {
}, },
condition: row => { condition: row => {
// 结束的直播不能再开 // 结束的直播不能再开
console.log(typeof row.activityStatus)
return [1, 2, 3].includes(+row.activityStatus) return [1, 2, 3].includes(+row.activityStatus)
}, },
listeners: { listeners: {
...@@ -330,7 +271,7 @@ export default { ...@@ -330,7 +271,7 @@ export default {
mounted () { mounted () {
this.getCrowdfundingOrderConfig() this.getCrowdfundingOrderConfig()
this.getCrowdfundingParams() this.getCrowdfundingParams([1, 2])
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
...@@ -437,25 +378,22 @@ export default { ...@@ -437,25 +378,22 @@ export default {
prop: 'verificationNumber' prop: 'verificationNumber'
}, },
{ {
label: '定金(元)', label: '定金/元',
name: 'activityPrice', prop: 'activityPrice',
width: 140, addHtml: 'joinText',
formatter: cellValue => { width: 100
return (cellValue.activityPrice / 100).toFixed(2)
}
}, },
{ {
label: '众筹价(元)', label: '众筹价/元',
name: 'crowdFundingPrice', prop: 'crowdFundingPrice',
width: 140, addHtml: 'joinText',
formatter: cellValue => { width: 100
return (cellValue.crowdFundingPrice / 100).toFixed(2)
}
}, },
{ {
label: '库存', label: '库存',
prop: 'goodsStock', prop: 'activityGoodsStock',
width: 110 addHtml: 'joinText',
width: 100
}, },
{ {
label: '创建日期', label: '创建日期',
...@@ -570,7 +508,9 @@ export default { ...@@ -570,7 +508,9 @@ export default {
del (row) { del (row) {
var params = {} var params = {}
params.id = row.id params.id = row.id
this.secondConfirm('删除', '确定删除此活动?', 'seckillActivity', 'deleteActivityApi', params) this.secondConfirm('删除', '确定删除此活动?', 'seckillActivity', 'deleteActivityApi', params, () => {
this.getCrowdfundingParams([1])
})
}, },
// 1-新增;2-编辑 // 1-新增;2-编辑
...@@ -685,8 +625,9 @@ export default { ...@@ -685,8 +625,9 @@ export default {
this.$refs.activity.data.length ? (this.$refs.activity.tableHeightValues = '') : this.$refs.activity.setTableHeightFun() this.$refs.activity.data.length ? (this.$refs.activity.tableHeightValues = '') : this.$refs.activity.setTableHeightFun()
}, },
async getCrowdfundingParams () { async getCrowdfundingParams (parameterTypeList) {
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */ /**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
if (parameterTypeList.includes(1)) {
const activity = await this.$apis.seckillActivity.getCrowdfundingParams({ const activity = await this.$apis.seckillActivity.getCrowdfundingParams({
parameterType: 1 parameterType: 1
}) })
...@@ -700,6 +641,8 @@ export default { ...@@ -700,6 +641,8 @@ export default {
}) })
} }
this.$set(this.searchFormData[0], 'optionList', this.$common.utils.deepClone(activityNameList)) this.$set(this.searchFormData[0], 'optionList', this.$common.utils.deepClone(activityNameList))
}
if (parameterTypeList.includes(2)) {
const merchant = await this.$apis.seckillActivity.getCrowdfundingParams({ const merchant = await this.$apis.seckillActivity.getCrowdfundingParams({
parameterType: 2 parameterType: 2
}) })
...@@ -714,12 +657,33 @@ export default { ...@@ -714,12 +657,33 @@ export default {
} }
this.$set(this.searchFormData[2], 'optionList', this.$common.utils.deepClone(merchantNameList)) this.$set(this.searchFormData[2], 'optionList', this.$common.utils.deepClone(merchantNameList))
} }
},
formatterNumber (cell, key) {
const str = []
cell?.goodsList?.map(e => {
str.push(key != 'activityGoodsStock' ? (e[key] / 100).toFixed(2) : e[key])
})
return str.length > 0 ? str.join(',') : '--'
}
} }
} }
</script> </script>
<style scoped> <style>
.el-select .el-select__tags>span {
display: flex !important;
width: 80%;
}
.el-select .el-tag { .el-select .el-tag {
max-width: 60% !important; max-width: 55% !important;
}
.line-ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
</style> </style>
...@@ -3,7 +3,7 @@ const packageName = require('./package.json').name ...@@ -3,7 +3,7 @@ const packageName = require('./package.json').name
const node_env = process.env.NODE_ENV === 'production' const node_env = process.env.NODE_ENV === 'production'
const publicPath = node_env ? `/child/${packageName}/` : '/' const publicPath = node_env ? `/child/${packageName}/` : '/'
const resolve = dir => path.join(__dirname, dir) const resolve = dir => path.join(__dirname, dir)
const CDN_DOMAIN = 'https://cdn.bootcdn.net/' const CDN_DOMAIN = 'https://img02.glsx.com.cn/'
const cdn = { const cdn = {
css: [`${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/theme-chalk/index.css`], css: [`${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/theme-chalk/index.css`],
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'] 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']
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!