Commit 6294a5c2 by 杨明

Merge branch 'v2.8.0' of http://192.168.3.233:8090/saas/scrm-micro-marketing into yangm_v2.8.0

2 parents 3e7b051a eb194936
...@@ -55,6 +55,17 @@ const uploadVideoApi = params => { ...@@ -55,6 +55,17 @@ const uploadVideoApi = params => {
}) })
} }
const uploadFundingVideoApi = params => {
params.method = 'scrm.api.carlife.crowd.funding.uploadVideo'
return http({
url: 'rop-scrm-carlife/router',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
const getMerchantList = params => { const getMerchantList = params => {
params.method = `${defaultPath}merchant.listWithPageByCurMerchant` params.method = `${defaultPath}merchant.listWithPageByCurMerchant`
return http({ return http({
...@@ -150,4 +161,4 @@ const getMerchantInfoApi = params => { ...@@ -150,4 +161,4 @@ const getMerchantInfoApi = params => {
}) })
} }
export default { getMerchantGoodsListApi, getGoodsListApi, uploadImgApi, uploadMusicApi, uploadVideoApi, getMerchantList, getSimpleMerchantList, getZoneListApi, getClassifyListApi, pictureUpload, querylabeltree, getCrowdTreeListApi, getStaffFollowerListApi, getMerchantInfoApi } export default { getMerchantGoodsListApi, getGoodsListApi, uploadImgApi, uploadMusicApi, uploadVideoApi, uploadFundingVideoApi, getMerchantList, getSimpleMerchantList, getZoneListApi, getClassifyListApi, pictureUpload, querylabeltree, getCrowdTreeListApi, getStaffFollowerListApi, getMerchantInfoApi }
...@@ -54,6 +54,31 @@ const writeOffApi = params => { ...@@ -54,6 +54,31 @@ const writeOffApi = params => {
}) })
} }
// 众筹-订单核销
const crowdFundWriteOffApi = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.verfication'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 众筹-退款
const crowdFundRefundApi = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.refund'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 快递信息 // 快递信息
const addDeliveryApi = params => { const addDeliveryApi = params => {
params.method = `${defaultPath}order.addDelivery` params.method = `${defaultPath}order.addDelivery`
...@@ -101,4 +126,4 @@ const confirmReceiptGoodsApi = params => { ...@@ -101,4 +126,4 @@ const confirmReceiptGoodsApi = params => {
}) })
} }
export default { getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi } export default { getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, crowdFundWriteOffApi, crowdFundRefundApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi }
...@@ -24,6 +24,17 @@ const getCrowdfundListApi = params => { ...@@ -24,6 +24,17 @@ const getCrowdfundListApi = params => {
}) })
} }
// 众筹-导出
const exportCrowdfundApi = params => {
params.method = 'scrm.api.shopmall.crowdfunding.activity.export'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
//分页浏览明细 //分页浏览明细
const getBrowseListApi = params => { const getBrowseListApi = params => {
params.method = 'scrm.api.shopmall.customer.browse.records' params.method = 'scrm.api.shopmall.customer.browse.records'
...@@ -127,4 +138,4 @@ const getCrowdSharedApi = params => { ...@@ -127,4 +138,4 @@ const getCrowdSharedApi = params => {
}) })
} }
export default { getActivityPageApi, getCrowdfundListApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi } export default { getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi }
...@@ -221,6 +221,10 @@ html { ...@@ -221,6 +221,10 @@ html {
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
.img-circle {
border-radius: 50%;
}
.marketing .pointer { .marketing .pointer {
cursor: pointer; cursor: pointer;
} }
...@@ -338,6 +342,14 @@ html { ...@@ -338,6 +342,14 @@ html {
background-color: #999999; background-color: #999999;
} }
.marketing .txt-green {
color: #61CC43;
}
.marketing .txt-orange {
color: #FB8F28;
}
.marketing .txt-blue { .marketing .txt-blue {
color: #5850ff; color: #5850ff;
} }
......
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
<!-- radio --> <!-- radio -->
<div v-else-if="item.type === 'radio'"> <div v-else-if="item.type === 'radio'">
<el-radio-group v-model="formObj[item.name]" v-bind="item.attrs ? item.attrs : {}" v-on="item.listeners ? item.listeners : {}" :disabled="item.isDisabled" @change="item.handleRadioChange"> <el-radio-group v-model="formObj[item.name]" v-bind="item.attrs ? item.attrs : {}" v-on="item.listeners ? item.listeners : {}" :disabled="item.isDisabled" @change="item.handleRadioChange">
<el-radio v-for="subItem in item.optionList" :key="subItem[item.optionId]" :disabled="subItem.isDisabled" :label="subItem[item.optionId]">{{ subItem[item.optionLabel] }} <slot :name="subItem.suffixSonSlot" :scope="subItem"></slot></el-radio> <el-radio v-for="subItem in item.optionList" :key="subItem[item.optionId]" :disabled="subItem.isDisabled" :label="subItem[item.optionId]">{{ subItem[item.optionLabel] }} <slot :name="subItem.suffixSonSlot" :scope="subItem"></slot>
</el-radio>
</el-radio-group> </el-radio-group>
<slot :name="item.suffixSlot" :scope="item"></slot> <slot :name="item.suffixSlot" :scope="item"></slot>
</div> </div>
...@@ -251,7 +252,8 @@ export default { ...@@ -251,7 +252,8 @@ export default {
// 图片删除 // 图片删除
handleImgDelete(targetItem, subIndex = -1) { handleImgDelete(targetItem, subIndex = -1) {
Array.isArray(this.formObj[targetItem.name]) ? this.formObj[targetItem.name].splice(subIndex, 1) : (this.formObj[targetItem.name] = '') Array.isArray(this.formObj[targetItem.name]) ? this.formObj[targetItem.name].splice(subIndex, 1) : (this.formObj[targetItem.name] = '')
this.$emit('handleImgDelete', targetItem) targetItem.handleDelete && targetItem.handleDelete(subIndex)
// this.$emit('handleImgDelete', targetItem)
}, },
// 图片查看 // 图片查看
handleImgLook(src, targetItem) { handleImgLook(src, targetItem) {
......
...@@ -26,6 +26,11 @@ ...@@ -26,6 +26,11 @@
<!-- 表格区域 - 全部订单/售后订单 - 开始 --> <!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="weChatName" class="flex-align" slot-scope="scope">
<img v-if="scope.scope.weChatImageUrl" class="img-36 pointer img-circle" :src="scope.scope.weChatImageUrl" />
<span class="m-l-10">{{ scope.scope.weChatName }}</span>
<span v-if="!scope.scope.shareAvatar && !scope.scope.weChatName">-</span>
</div>
<template slot="vinNo" slot-scope="scope"> <template slot="vinNo" slot-scope="scope">
{{ Array.isArray(scope.scope.vinNo) ? scope.scope.vinNo[0] : scope.scope.vinNo }} {{ Array.isArray(scope.scope.vinNo) ? scope.scope.vinNo[0] : scope.scope.vinNo }}
<el-popover popper-class="order-table-popover" placement="right-start" trigger="click"> <el-popover popper-class="order-table-popover" placement="right-start" trigger="click">
...@@ -37,12 +42,16 @@ ...@@ -37,12 +42,16 @@
<span :class="['table-circle', 'm-r-8', [2, 10, 22].includes(scope.scope.orderStatus) ? 'back-green' : [9].includes(scope.scope.orderStatus) ? 'back-blue' : [1, 21, 6].includes(scope.scope.orderStatus) ? 'back-orange' : 'back-grey']"></span> <span :class="['table-circle', 'm-r-8', [2, 10, 22].includes(scope.scope.orderStatus) ? 'back-green' : [9].includes(scope.scope.orderStatus) ? 'back-blue' : [1, 21, 6].includes(scope.scope.orderStatus) ? 'back-orange' : 'back-grey']"></span>
<span>{{ baseData.orderStatusList.map(item => item.confId).includes(scope.scope.orderStatus + '') ? baseData.orderStatusList.find(item => item.confId == scope.scope.orderStatus).confName : '-' }}</span> <span>{{ baseData.orderStatusList.map(item => item.confId).includes(scope.scope.orderStatus + '') ? baseData.orderStatusList.find(item => item.confId == scope.scope.orderStatus).confName : '-' }}</span>
</div> </div>
<div slot="shareStaffImageUrl" class="table-image" slot-scope="scope"> <div slot="shareStaffName" class="table-image" slot-scope="scope">
<el-popover v-if="scope.scope.shareStaffImageUrl" placement="top" width="160" trigger="hover" popper-class="table-popover-block"> <div>
<img class="table-popover-img" :src="scope.scope.shareStaffImageUrl" /> <img v-if="scope.scope.shareStaffImageUrl" class="img-36 pointer img-circle" style="vertical-align: middle" slot="reference" :src="scope.scope.shareStaffImageUrl" />
<img class="img-60 pointer" slot="reference" :src="scope.scope.shareStaffImageUrl" /> <span class="m-l-10">
</el-popover> <span>{{ scope.scope.shareStaffName }}</span>
<span v-else>-</span> <span class="txt-green" v-if="scope.scope.shareStaffType == 1">@微信</span>
<span class="txt-orange" v-if="scope.scope.shareStaffType == 2">@企微</span>
</span>
</div>
<span v-if="!scope.scope.shareStaffImageUrl && !scope.scope.shareStaffName">-</span>
</div> </div>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton> <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
...@@ -143,7 +152,8 @@ export default { ...@@ -143,7 +152,8 @@ export default {
deliveryType: '', deliveryType: '',
vin: '', vin: '',
shareStaffName: '', shareStaffName: '',
shareStaffType: '' shareStaffType: '',
activityName: ''
}, },
tableSearchForm: {}, tableSearchForm: {},
statisticsInfo: { statisticsInfo: {
...@@ -290,6 +300,13 @@ export default { ...@@ -290,6 +300,13 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName', optionLabel: 'confName',
optionsName: 'shareStaffTypeList' optionsName: 'shareStaffTypeList'
},
{
label: '活动名称',
name: 'activityName',
labelWidth: 56,
type: 'input',
maxlength: 100
} }
], ],
// 快递信息 // 快递信息
...@@ -393,6 +410,22 @@ export default { ...@@ -393,6 +410,22 @@ export default {
}, },
{ {
type: 'GLButton', type: 'GLButton',
name: '退款',
attrs: {
type: 'text',
fn: '退款'
},
condition: row => {
return row.orderSource == 4 && [2, 6, 21].includes(+row.orderStatus)
},
listeners: {
click: row => {
this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode })
}
}
},
{
type: 'GLButton',
name: '订单核销', name: '订单核销',
attrs: { attrs: {
type: 'text', type: 'text',
...@@ -492,6 +525,12 @@ export default { ...@@ -492,6 +525,12 @@ export default {
} }
}, },
{ {
label: '微信名称',
prop: 'weChatName',
addHtml: 'weChatName',
width: 300
},
{
label: '客户名称', label: '客户名称',
prop: 'customerName', prop: 'customerName',
line: 2, line: 2,
...@@ -511,7 +550,7 @@ export default { ...@@ -511,7 +550,7 @@ export default {
{ {
label: '车架号', label: '车架号',
prop: 'vinNo', prop: 'vinNo',
width: 120, width: 130,
addHtml: 'vinNo' addHtml: 'vinNo'
}, },
{ {
...@@ -523,26 +562,19 @@ export default { ...@@ -523,26 +562,19 @@ export default {
{ {
label: '推荐人', label: '推荐人',
prop: 'shareStaffName', prop: 'shareStaffName',
width: '180', width: 360,
formatter: cellValue => { addHtml: 'shareStaffName'
return cellValue.shareStaffName ? cellValue.shareStaffName + (cellValue.shareStaffPhone ? '+' + cellValue.shareStaffPhone : '') : '-'
}
},
{
label: '头像',
prop: 'shareStaffImageUrl',
addHtml: 'shareStaffImageUrl'
}, },
{ {
label: '推荐人类型', label: '推荐人手机号',
prop: 'shareStaffType', prop: 'shareStaffPhone',
width: '180', width: 130,
formatter: cellValue => { formatter: cellValue => {
return this.baseData.shareStaffTypeList.map(item => item.confId).includes(cellValue.shareStaffType + '') ? this.baseData.shareStaffTypeList.find(item => item.confId == cellValue.shareStaffType).confName : '-' return cellValue.shareStaffPhone || '-'
} }
}, },
{ {
label: '支付总价', label: '支付总价/元',
prop: 'payPrice', prop: 'payPrice',
width: '120', width: '120',
formatter: cellValue => { formatter: cellValue => {
...@@ -550,6 +582,19 @@ export default { ...@@ -550,6 +582,19 @@ export default {
} }
}, },
{ {
label: '活动名称',
prop: 'activityName',
width: '120'
},
{
label: '商品名称',
prop: '',
width: '120',
formatter: cellValue => {
return cellValue.orderGoods.length ? cellValue.orderGoods.map(item => item.goodsName).join(',') : '-'
}
},
{
label: '门店信息', label: '门店信息',
prop: 'merchantName', prop: 'merchantName',
line: 1, line: 1,
...@@ -592,7 +637,8 @@ export default { ...@@ -592,7 +637,8 @@ export default {
deliveryTypeList: deliveryTypeList, deliveryTypeList: deliveryTypeList,
refundTypeList: [ refundTypeList: [
{ confId: '1', confName: '退款退货' }, { confId: '1', confName: '退款退货' },
{ confId: '2', confName: '我要退款(无需退货)' } { confId: '2', confName: '我要退款(无需退货)' },
{ confId: '3', confName: '众筹订单退款' }
], ],
shareStaffTypeList: [ shareStaffTypeList: [
{ confId: '1', confName: '个微' }, { confId: '1', confName: '个微' },
...@@ -761,6 +807,10 @@ export default { ...@@ -761,6 +807,10 @@ export default {
}, },
handleWriteOff(row) { handleWriteOff(row) {
if (row.orderSource == 4) {
this.secondConfirm('订单核销', '请确定是否核销此订单?', 'orderManage', 'crowdFundWriteOffApi', { orderCode: row.orderCode })
return true
}
this.isWriteOffVisible = !this.isWriteOffVisible this.isWriteOffVisible = !this.isWriteOffVisible
this.orderCode = row.orderCode this.orderCode = row.orderCode
}, },
...@@ -816,7 +866,7 @@ export default { ...@@ -816,7 +866,7 @@ export default {
this.orderCode = row.orderCode this.orderCode = row.orderCode
this.$apis.orderManage.examineDetailApi({ orderCode: row.orderCode }).then(res => { this.$apis.orderManage.examineDetailApi({ orderCode: row.orderCode }).then(res => {
this.orderInfo = res || {} this.orderInfo = res || {}
this.orderInfo.refundTypeName = [1, 2].includes(this.orderInfo.refundType) ? this.baseData.refundTypeList.find(item => item.confId == this.orderInfo.refundType + '').confName : '-' this.orderInfo.refundTypeName = [1, 2, 3].includes(this.orderInfo.refundType) ? this.baseData.refundTypeList.find(item => item.confId == this.orderInfo.refundType + '').confName : '-'
this.orderInfo.createdDateStr = this.orderInfo.createdDate ? dayjs(this.orderInfo.createdDate).format('YYYY-MM-DD HH:mm:ss') : '-' this.orderInfo.createdDateStr = this.orderInfo.createdDate ? dayjs(this.orderInfo.createdDate).format('YYYY-MM-DD HH:mm:ss') : '-'
this.isExamineVisible = !this.isExamineVisible this.isExamineVisible = !this.isExamineVisible
}) })
...@@ -850,7 +900,7 @@ export default { ...@@ -850,7 +900,7 @@ export default {
handleReceiving(row) { handleReceiving(row) {
this.$apis.orderManage.examineDetailApi({ orderCode: row.orderCode }).then(res => { this.$apis.orderManage.examineDetailApi({ orderCode: row.orderCode }).then(res => {
this.orderInfo = res || {} this.orderInfo = res || {}
this.orderInfo.refundTypeName = [1, 2].includes(this.orderInfo.refundType) ? this.baseData.refundTypeList.find(item => item.confId == this.orderInfo.refundType + '').confName : '-' this.orderInfo.refundTypeName = [1, 2, 3].includes(this.orderInfo.refundType) ? this.baseData.refundTypeList.find(item => item.confId == this.orderInfo.refundType + '').confName : '-'
this.orderInfo.createdDateStr = this.orderInfo.createdDate ? dayjs(this.orderInfo.createdDate).format('YYYY-MM-DD HH:mm:ss') : '-' this.orderInfo.createdDateStr = this.orderInfo.createdDate ? dayjs(this.orderInfo.createdDate).format('YYYY-MM-DD HH:mm:ss') : '-'
this.isReceivingVisible = !this.isReceivingVisible this.isReceivingVisible = !this.isReceivingVisible
}) })
...@@ -893,7 +943,8 @@ export default { ...@@ -893,7 +943,8 @@ export default {
deliveryType: '', deliveryType: '',
vin: '', vin: '',
shareStaffName: '', shareStaffName: '',
shareStaffType: '' shareStaffType: '',
activityName: ''
} }
this.handleSearch() this.handleSearch()
} }
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span> <span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-form-item label="其他信息">{{ detailForm.formDescribe }}</el-form-item>
</el-form> </el-form>
</div> </div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']"> <div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
...@@ -141,10 +142,16 @@ export default { ...@@ -141,10 +142,16 @@ export default {
name: 'shipAddress' name: 'shipAddress'
}, },
{ {
label: '其他信息', label: '微信名称',
name: 'formDescribe', name: 'weChatName'
contentName: 'formContent', },
attrList: ['First', 'Second', 'Third'] {
label: '活动名称',
name: 'activityName'
},
{
label: '商品名称',
name: 'goodsName'
} }
], ],
// 售后信息 // 售后信息
...@@ -186,7 +193,8 @@ export default { ...@@ -186,7 +193,8 @@ export default {
deliveryTypeList: deliveryTypeList, deliveryTypeList: deliveryTypeList,
refundTypeList: [ refundTypeList: [
{ confId: '1', confName: '退款退货' }, { confId: '1', confName: '退款退货' },
{ confId: '2', confName: '退款不退货' } { confId: '2', confName: '退款不退货' },
{ confId: '3', confName: '众筹订单退款' }
], ],
shareStaffTypeList: [ shareStaffTypeList: [
{ confId: '1', confName: '个微' }, { confId: '1', confName: '个微' },
...@@ -230,6 +238,7 @@ export default { ...@@ -230,6 +238,7 @@ export default {
if (this.orderRefund) { if (this.orderRefund) {
this.orderRefund.refundTypeName = this.baseData.refundTypeList.map(item => item.confId).includes(res.orderRefund.refundType + '') ? this.baseData.refundTypeList.find(item => item.confId == res.orderRefund.refundType).confName : '-' this.orderRefund.refundTypeName = this.baseData.refundTypeList.map(item => item.confId).includes(res.orderRefund.refundType + '') ? this.baseData.refundTypeList.find(item => item.confId == res.orderRefund.refundType).confName : '-'
this.orderRefund.createdDateStr = dayjs(this.orderRefund.createdDate).format('YYYY-MM-DD HH:mm:ss') this.orderRefund.createdDateStr = dayjs(this.orderRefund.createdDate).format('YYYY-MM-DD HH:mm:ss')
this.orderRefund.refundPrice = this.orderRefund.refundPrice + '元'
} }
if (this.detailForm.shareStaffType) { if (this.detailForm.shareStaffType) {
this.detailForm.shareStaffTypeName = this.baseData.shareStaffTypeList.map(item => item.confId).includes(this.detailForm.shareStaffType + '') ? this.baseData.shareStaffTypeList.find(item => item.confId == this.detailForm.shareStaffType).confName : '-' this.detailForm.shareStaffTypeName = this.baseData.shareStaffTypeList.map(item => item.confId).includes(this.detailForm.shareStaffType + '') ? this.baseData.shareStaffTypeList.find(item => item.confId == this.detailForm.shareStaffType).confName : '-'
...@@ -238,7 +247,7 @@ export default { ...@@ -238,7 +247,7 @@ export default {
this.detailForm.subOrderCoupon.discountAmount = (this.detailForm.subOrderCoupon.discountAmount / 100).toFixed(2) this.detailForm.subOrderCoupon.discountAmount = (this.detailForm.subOrderCoupon.discountAmount / 100).toFixed(2)
} }
this.orderGoods = res.orderGoods || [] this.orderGoods = res.orderGoods || []
this.detailForm.payPrice = res.payPrice ? res.payPrice + '元' : '-' this.detailForm.payPrice = res.payPrice ? res.payPrice + '元' : '0元'
this.detailForm.orderSourceName = this.baseData.orderSourceList.map(item => item.confId).includes(res.orderSource + '') ? this.baseData.orderSourceList.find(item => item.confId == res.orderSource).confName : '-' this.detailForm.orderSourceName = this.baseData.orderSourceList.map(item => item.confId).includes(res.orderSource + '') ? this.baseData.orderSourceList.find(item => item.confId == res.orderSource).confName : '-'
this.detailForm.orderStatusName = this.baseData.orderStatusList.map(item => item.confId).includes(res.orderStatus + '') ? this.baseData.orderStatusList.find(item => item.confId == res.orderStatus).confName : '-' this.detailForm.orderStatusName = this.baseData.orderStatusList.map(item => item.confId).includes(res.orderStatus + '') ? this.baseData.orderStatusList.find(item => item.confId == res.orderStatus).confName : '-'
if (!this.detailForm.takeFee) { if (!this.detailForm.takeFee) {
...@@ -246,8 +255,15 @@ export default { ...@@ -246,8 +255,15 @@ export default {
this.detailFormData.splice(takeFeeIdx, 1) this.detailFormData.splice(takeFeeIdx, 1)
} }
// 其他信息 // 其他信息
var formDescribeObj = this.detailFormData.find(item => item.name == 'formDescribe') var formDescribeObj = {
label: '其他信息',
name: 'formDescribe',
contentName: 'formContent',
attrList: ['First', 'Second']
}
this.detailForm[formDescribeObj.name] = '' this.detailForm[formDescribeObj.name] = ''
this.detailForm[formDescribeObj.name] = this.detailForm.plateNo ? '车牌号:' + this.detailForm.plateNo + ' ' : ''
this.detailForm[formDescribeObj.name] += this.detailForm.vehicleType ? '品牌车型:' + this.detailForm.vehicleType + ' ' : ''
formDescribeObj.attrList.forEach(item => { formDescribeObj.attrList.forEach(item => {
let label = this.detailForm[formDescribeObj.name + item] let label = this.detailForm[formDescribeObj.name + item]
let value = this.detailForm[formDescribeObj.contentName + item] let value = this.detailForm[formDescribeObj.contentName + item]
...@@ -255,6 +271,8 @@ export default { ...@@ -255,6 +271,8 @@ export default {
this.detailForm[formDescribeObj.name] += label + ':' + value + ' ' this.detailForm[formDescribeObj.name] += label + ':' + value + ' '
} }
}) })
// 商品名称
this.detailForm.goodsName = this.detailForm.orderGoods.length ? this.detailForm.orderGoods.map(item => item.goodsName).join(',') : '-'
this.formToRow('detailFormData') this.formToRow('detailFormData')
}) })
}, },
......
...@@ -8,6 +8,11 @@ ...@@ -8,6 +8,11 @@
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="flex m-b-10 w-100-percent">
<span class="table-title"></span>
<el-button :size="size" class="default-blue-btn" type="default" @click="handleExport">导出</el-button>
</div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="activity" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="activity" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="activityImg" class="table-image" slot-scope="scope"> <div slot="activityImg" class="table-image" slot-scope="scope">
...@@ -34,6 +39,7 @@ ...@@ -34,6 +39,7 @@
import shareDialog from '../productGroup/components/shareDialog' import shareDialog from '../productGroup/components/shareDialog'
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import { exportFn } from '@/common/constant'
export default { export default {
name: 'crowdFundList', name: 'crowdFundList',
data() { data() {
...@@ -202,6 +208,10 @@ export default { ...@@ -202,6 +208,10 @@ export default {
} }
}, },
{ {
label: '粉丝',
prop: 'fansAmount'
},
{
label: '分享', label: '分享',
prop: 'shareAmount' prop: 'shareAmount'
}, },
...@@ -218,7 +228,7 @@ export default { ...@@ -218,7 +228,7 @@ export default {
} }
}, },
{ {
label: '剩余库存', label: '库存',
prop: 'goodsStock', prop: 'goodsStock',
width: 110 width: 110
}, },
...@@ -372,15 +382,12 @@ export default { ...@@ -372,15 +382,12 @@ export default {
}) })
}, },
//新增活动 handleExport() {
// addActivity() { var params = this.getParams()
// this.$router.push('/seckillActivity/editCrowdFund/1') this.$apis.seckillActivity.exportCrowdfundApi(params).then(res => {
// }, exportFn(res)
})
// // addOrEdit:1-新增;2-编辑;3-查看 },
// handleEdit(addOrEdit, row) {
// this.$router.push('/seckillActivity/editCrowdFund/' + addOrEdit + '/' + row.id)
// },
handleShare(row) { handleShare(row) {
this.$apis.seckillActivity.getCrowdSharedApi({ id: row.id }).then(res => { this.$apis.seckillActivity.getCrowdSharedApi({ id: row.id }).then(res => {
......
...@@ -122,6 +122,9 @@ ...@@ -122,6 +122,9 @@
<div slot="activityVideos" class="edit-tips m-t-8">最多上传6个视频</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 slot="posterImg" class="edit-tips m-t-8">建议尺寸640*1008</div>
<div class="form-describe-box" slot="formDescribe"> <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-group>
<div v-for="(item, index) in formDescribeList" :key="index" class="form-describe flex-default"> <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> <el-input class="describe-input" v-model="item.value" placeholder="请输入" maxlength="20"></el-input>
<p class="describe-delete"> <p class="describe-delete">
...@@ -147,8 +150,8 @@ ...@@ -147,8 +150,8 @@
<img :src="editForm.activityBigImg || require('@/assets/seckillActivity/icon-default.png')" /> <img :src="editForm.activityBigImg || require('@/assets/seckillActivity/icon-default.png')" />
<img class="wechat-customer" src="@/assets/seckillActivity/crowd-customer.png" /> <img class="wechat-customer" src="@/assets/seckillActivity/crowd-customer.png" />
<div class="w-100-percent txt-center"> <div class="w-100-percent txt-center">
<video v-if="editForm.activityVideos.length" class="wechat-video" controls> <video v-if="editForm.activityVideoList.length" class="wechat-video" controls>
<source :src="editForm.activityVideos[0]" type="video/mp4" /> <source :src="editForm.activityVideoList[0]" type="video/mp4" />
</video> </video>
</div> </div>
<div class="wechat-block"> <div class="wechat-block">
...@@ -261,12 +264,17 @@ export default { ...@@ -261,12 +264,17 @@ export default {
activityAddressDetailName: '', activityAddressDetailName: '',
activityBigImg: '', activityBigImg: '',
activityVideos: [], activityVideos: [],
activityVideoList: [],
activityDetail: '', activityDetail: '',
fictitiousGroupQuantity: '', fictitiousGroupQuantity: '',
fictitiousLadderQuantity: 30, fictitiousLadderQuantity: 30,
fictitiousViewQuantity: '', fictitiousViewQuantity: '',
forwardTitle: '', forwardTitle: '',
posterImg: '' posterImg: '',
// 1-否,2-是
selectCarNumberFlag: 2,
selectVehicleTypeFlag: 2,
formDescribeCheck: ['selectCarNumberFlag', 'selectVehicleTypeFlag']
// formDescribeFirst: '', // formDescribeFirst: '',
// formDescribeSecond: '', // formDescribeSecond: '',
// formDescribeThird: '' // formDescribeThird: ''
...@@ -343,11 +351,21 @@ export default { ...@@ -343,11 +351,21 @@ export default {
forwardTitle: [{ required: true, message: '请输入转发标题', trigger: 'change' }] forwardTitle: [{ required: true, message: '请输入转发标题', trigger: 'change' }]
}, },
// 表单设置 // 表单设置
describeNum: 3, formDescribeCheckList: [
{
label: '车牌号',
value: 'selectCarNumberFlag'
},
{
label: '品牌车型',
value: 'selectVehicleTypeFlag'
}
],
describeNum: 2,
describeIdxToAttr: { describeIdxToAttr: {
0: 'First', 0: 'First',
1: 'Second', 1: 'Second'
2: 'Third' // 2: 'Third'
}, },
formDescribeList: [ formDescribeList: [
{ {
...@@ -561,21 +579,29 @@ export default { ...@@ -561,21 +579,29 @@ export default {
}, },
{ {
label: '活动视频', label: '活动视频',
name: 'activityVideos', name: 'activityVideoList',
type: 'upload', type: 'upload',
uploadType: 'video', uploadType: 'video',
suffixSlot: 'activityVideos', suffixSlot: 'activityVideos',
tips: '大图下可以展示视频,不上传则不显示', tips: '大图下可以展示视频,不上传则不显示',
limitSize: 20, limitSize: 20,
maxPhotoNum: 6, maxPhotoNum: 6,
handleDelete: idx => {
this.editForm.activityVideos.splice(idx, 1)
},
handleUpload: (e, file, targetItem) => { handleUpload: (e, file, targetItem) => {
const imgFile = e.target.result const imgFile = e.target.result
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
this.loading = true this.loading = true
this.$apis.common this.$apis.common
.uploadVideoApi({ file: base64 }) .uploadFundingVideoApi({ file: base64 })
.then(res => { .then(res => {
this.editForm[targetItem.name].push(res) this.editForm[targetItem.name].push(res.vediourl)
this.editForm.activityVideos.push({
activityVideo: res.vediourl,
activityVideoCoverImage: res.imgUrl,
activityVideoTime: res.lengthInTime
})
}) })
.finally(() => { .finally(() => {
this.loading = false this.loading = false
...@@ -1085,9 +1111,10 @@ export default { ...@@ -1085,9 +1111,10 @@ export default {
if (info.activityAddressProvinceName || info.activityAddressCityName) { if (info.activityAddressProvinceName || info.activityAddressCityName) {
this.$refs.configEditFormRef.$refs.provinceForm[0].init(info.activityAddressProvinceName, info.activityAddressCityName) this.$refs.configEditFormRef.$refs.provinceForm[0].init(info.activityAddressProvinceName, info.activityAddressCityName)
} }
this.editForm.activityVideoList = []
// 活动视频 // 活动视频
if (info.activityVideos && info.activityVideos.length) { if (info.activityVideos && info.activityVideos.length) {
this.editForm.activityVideos = info.activityVideos.map(item => item.activityVideo) this.editForm.activityVideoList = info.activityVideos.map(item => item.activityVideo)
} }
// 活动详情 // 活动详情
if (info.activityDetail) { if (info.activityDetail) {
...@@ -1110,12 +1137,24 @@ export default { ...@@ -1110,12 +1137,24 @@ export default {
} }
} }
// 表单设置 // 表单设置
this.editForm.formDescribeCheck = []
this.editForm.selectCarNumberFlag = this.editForm.selectCarNumberFlag || 1
this.editForm.selectVehicleTypeFlag = this.editForm.selectVehicleTypeFlag || 1
var checkList = ['selectCarNumberFlag', 'selectVehicleTypeFlag']
checkList.forEach(item => {
if (this.editForm[item] == 2) {
this.editForm.formDescribeCheck.push(item)
}
})
this.formDescribeList = [] this.formDescribeList = []
Object.values(this.describeIdxToAttr).forEach((item, index) => { Object.values(this.describeIdxToAttr).forEach((item, index) => {
if (this.editForm['formDescribe' + item]) { if (this.editForm['formDescribe' + item]) {
this.formDescribeList.push({ value: this.editForm['formDescribe' + this.describeIdxToAttr[index]] }) this.formDescribeList.push({ value: this.editForm['formDescribe' + this.describeIdxToAttr[index]] })
} }
}) })
if (this.formDescribeList.length == 3) {
this.formDescribeList.pop()
}
if (!this.formDescribeList.length) { if (!this.formDescribeList.length) {
this.formDescribeList = [{ value: '' }] this.formDescribeList = [{ value: '' }]
} }
...@@ -1169,6 +1208,8 @@ export default { ...@@ -1169,6 +1208,8 @@ export default {
param.specificationDetailList.push(obj) param.specificationDetailList.push(obj)
}) })
} }
// 视频
delete param.activityVideoList
// 预估销量 // 预估销量
if (this.editForm.predictVolume) { if (this.editForm.predictVolume) {
param.predictVolume = (this.editForm.predictVolume * 100).toFixed(0) param.predictVolume = (this.editForm.predictVolume * 100).toFixed(0)
...@@ -1178,6 +1219,10 @@ export default { ...@@ -1178,6 +1219,10 @@ export default {
param.activityDetail = encodeURIComponent(this.editForm.activityDetail) param.activityDetail = encodeURIComponent(this.editForm.activityDetail)
} }
// 表单设置 // 表单设置
// 1-否,2-是
param.selectCarNumberFlag = param.formDescribeCheck.findIndex(item => item == 'selectCarNumberFlag') != -1 ? 2 : 1
param.selectVehicleTypeFlag = param.formDescribeCheck.findIndex(item => item == 'selectVehicleTypeFlag') != -1 ? 2 : 1
delete param.formDescribeCheck
Object.values(this.describeIdxToAttr).forEach((item, idx) => { Object.values(this.describeIdxToAttr).forEach((item, idx) => {
param['formDescribe' + item] = this.formDescribeList.length > idx ? this.formDescribeList[idx].value : '' param['formDescribe' + item] = this.formDescribeList.length > idx ? this.formDescribeList[idx].value : ''
}) })
...@@ -1532,11 +1577,12 @@ export default { ...@@ -1532,11 +1577,12 @@ export default {
.edit-activity .form-describe-box { .edit-activity .form-describe-box {
width: 597px; width: 597px;
background: #f9f9f9; background: #f9f9f9;
padding: 20px;
} }
.edit-activity .describe-btn { .edit-activity .describe-btn {
color: #5850ff; color: #5850ff;
cursor: pointer; cursor: pointer;
padding: 0 0 20px 20px; padding: 0;
} }
.edit-activity .form-describe-box .icon-add { .edit-activity .form-describe-box .icon-add {
width: 20px; width: 20px;
...@@ -1544,7 +1590,7 @@ export default { ...@@ -1544,7 +1590,7 @@ export default {
vertical-align: middle; vertical-align: middle;
} }
.edit-activity .form-describe { .edit-activity .form-describe {
padding: 0 20px 10px; padding: 0 20px 10px 0;
} }
.edit-activity .form-describe:first-child { .edit-activity .form-describe:first-child {
padding: 20px 20px 10px; padding: 20px 20px 10px;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<template> <template>
<div class="marketing"> <div class="marketing">
<div class="m-b-20"> <div class="m-b-20">
<GLButton :size="size" type="primary" class="el-icon-plus" @click="addActivity()" fn="新增秒杀活动" mode="el-button">新增秒杀活动</GLButton> <GLButton :size="size" class="default-blue-btn el-icon-plus" type="default" @click="addActivity()" fn="新增秒杀活动" mode="el-button">新增秒杀活动</GLButton>
</div> </div>
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!