Commit 23becde8 by chenwq

众筹,订单管理

1 parent 8b3c0343
......@@ -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 => {
params.method = `${defaultPath}merchant.listWithPageByCurMerchant`
return http({
......@@ -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 => {
})
}
// 众筹-订单核销
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 => {
params.method = `${defaultPath}order.addDelivery`
......@@ -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 => {
})
}
// 众筹-导出
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 => {
params.method = 'scrm.api.shopmall.customer.browse.records'
......@@ -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 }
......@@ -120,7 +120,7 @@ html {
.marketing .edit-container {
// margin-bottom: 84px;
// min-height: calc(100vh - 156px);
// min-height: calc(100vh - 156px);
margin-bottom: 16px;
}
.marketing .approval-container {
......@@ -221,6 +221,10 @@ html {
transform: translate(-50%, -50%);
}
.img-circle {
border-radius: 50%;
}
.marketing .pointer {
cursor: pointer;
}
......@@ -300,7 +304,7 @@ html {
}
.marketing .m-l-10 {
margin-left: 10px;
margin-left: 10px;
}
.marketing .m-l-20 {
......@@ -338,6 +342,14 @@ html {
background-color: #999999;
}
.marketing .txt-green {
color: #61CC43;
}
.marketing .txt-orange {
color: #FB8F28;
}
.marketing .txt-blue {
color: #5850ff;
}
......@@ -583,7 +595,7 @@ html {
font-weight: 400;
}
.marketing .mt-10 {
margin-top:10px;
margin-top: 10px;
}
.el-tooltip__popper.is-light {
background: #ffffff;
......
......@@ -26,12 +26,10 @@
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="shareName" class="flex-align" slot-scope="scope">
<el-popover placement="top" width="160" trigger="hover" popper-class="table-popover-block">
<img class="table-popover-img" :src="scope.scope.shareAvatar" />
<img class="img-36 pointer" slot="reference" :src="scope.scope.shareAvatar" />
</el-popover>
<span class="m-l-10">{{ scope.scope.shareName }}</span>
<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">
{{ Array.isArray(scope.scope.vinNo) ? scope.scope.vinNo[0] : scope.scope.vinNo }}
......@@ -44,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>{{ baseData.orderStatusList.map(item => item.confId).includes(scope.scope.orderStatus + '') ? baseData.orderStatusList.find(item => item.confId == scope.scope.orderStatus).confName : '-' }}</span>
</div>
<div slot="shareStaffImageUrl" class="table-image" slot-scope="scope">
<el-popover v-if="scope.scope.shareStaffImageUrl" placement="top" width="160" trigger="hover" popper-class="table-popover-block">
<img class="table-popover-img" :src="scope.scope.shareStaffImageUrl" />
<img class="img-60 pointer" slot="reference" :src="scope.scope.shareStaffImageUrl" />
</el-popover>
<span v-else>-</span>
<div slot="shareStaffName" class="table-image" slot-scope="scope">
<div>
<img v-if="scope.scope.shareStaffImageUrl" class="img-36 pointer img-circle" style="vertical-align: middle" slot="reference" :src="scope.scope.shareStaffImageUrl" />
<span class="m-l-10">
<span>{{ scope.scope.shareStaffName }}</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 class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
......@@ -150,7 +152,8 @@ export default {
deliveryType: '',
vin: '',
shareStaffName: '',
shareStaffType: ''
shareStaffType: '',
activityName: ''
},
tableSearchForm: {},
statisticsInfo: {
......@@ -297,6 +300,13 @@ export default {
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'shareStaffTypeList'
},
{
label: '活动名称',
name: 'activityName',
labelWidth: 56,
type: 'input',
maxlength: 100
}
],
// 快递信息
......@@ -406,10 +416,12 @@ export default {
fn: '退款'
},
condition: row => {
return row.deliveryType == 1 && row.orderStatus == 21 && row.orderSource == 4
return row.orderSource == 4 && [2, 6, 21].includes(+row.orderStatus)
},
listeners: {
// click: this.handleWriteOff
click: row => {
this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode })
}
}
},
{
......@@ -497,11 +509,6 @@ export default {
}
},
{
label: '微信名称',
prop: 'shareName',
addHtml: 'shareName'
},
{
label: '支付时间',
prop: 'payDate',
width: '180',
......@@ -518,6 +525,12 @@ export default {
}
},
{
label: '微信名称',
prop: 'weChatName',
addHtml: 'weChatName',
width: 300
},
{
label: '客户名称',
prop: 'customerName',
line: 2,
......@@ -537,7 +550,7 @@ export default {
{
label: '车架号',
prop: 'vinNo',
width: 120,
width: 130,
addHtml: 'vinNo'
},
{
......@@ -549,26 +562,19 @@ export default {
{
label: '推荐人',
prop: 'shareStaffName',
width: '180',
formatter: cellValue => {
return cellValue.shareStaffName ? cellValue.shareStaffName + (cellValue.shareStaffPhone ? '+' + cellValue.shareStaffPhone : '') : '-'
}
width: 360,
addHtml: 'shareStaffName'
},
{
label: '头像',
prop: 'shareStaffImageUrl',
addHtml: 'shareStaffImageUrl'
},
{
label: '推荐人类型',
prop: 'shareStaffType',
width: '180',
label: '推荐人手机号',
prop: 'shareStaffPhone',
width: 130,
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',
width: '120',
formatter: cellValue => {
......@@ -576,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: '门店信息',
prop: 'merchantName',
line: 1,
......@@ -788,7 +807,7 @@ export default {
handleWriteOff(row) {
if (row.orderSource == 4) {
this.secondConfirm('订单核销', '请确定是否核销此订单?', 'classifyList', 'deleteClassifyApi', { orderCode: row.orderCode })
this.secondConfirm('订单核销', '请确定是否核销此订单?', 'orderManage', 'crowdFundWriteOffApi', { orderCode: row.orderCode })
return true
}
this.isWriteOffVisible = !this.isWriteOffVisible
......@@ -923,7 +942,8 @@ export default {
deliveryType: '',
vin: '',
shareStaffName: '',
shareStaffType: ''
shareStaffType: '',
activityName: ''
}
this.handleSearch()
}
......
......@@ -144,11 +144,19 @@ export default {
label: '其他信息',
name: 'formDescribe',
contentName: 'formContent',
attrList: ['First', 'Second', 'Third']
attrList: ['First', 'Second']
},
{
label: '微信名称',
name: ''
name: 'weChatName'
},
{
label: '活动名称',
name: 'activityName'
},
{
label: '商品名称',
name: 'goodsName'
}
],
// 售后信息
......@@ -252,6 +260,8 @@ export default {
// 其他信息
var formDescribeObj = this.detailFormData.find(item => item.name == 'formDescribe')
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 => {
let label = this.detailForm[formDescribeObj.name + item]
let value = this.detailForm[formDescribeObj.contentName + item]
......@@ -259,6 +269,8 @@ export default {
this.detailForm[formDescribeObj.name] += label + ':' + value + ' '
}
})
// 商品名称
this.detailForm.goodsName = this.detailForm.orderGoods.length ? this.detailForm.orderGoods.map(item => item.goodsName).join(',') : '-'
this.formToRow('detailFormData')
})
},
......
......@@ -8,6 +8,11 @@
<div class="container">
<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">
<div slot="activityImg" class="table-image" slot-scope="scope">
......@@ -34,6 +39,7 @@
import shareDialog from '../productGroup/components/shareDialog'
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import { exportFn } from '@/common/constant'
export default {
name: 'crowdFundList',
data() {
......@@ -202,6 +208,10 @@ export default {
}
},
{
label: '粉丝',
prop: 'fansAmount'
},
{
label: '分享',
prop: 'shareAmount'
},
......@@ -218,7 +228,7 @@ export default {
}
},
{
label: '剩余库存',
label: '库存',
prop: 'goodsStock',
width: 110
},
......@@ -372,15 +382,12 @@ export default {
})
},
//新增活动
// addActivity() {
// this.$router.push('/seckillActivity/editCrowdFund/1')
// },
// // addOrEdit:1-新增;2-编辑;3-查看
// handleEdit(addOrEdit, row) {
// this.$router.push('/seckillActivity/editCrowdFund/' + addOrEdit + '/' + row.id)
// },
handleExport() {
var params = this.getParams()
this.$apis.seckillActivity.exportCrowdfundApi(params).then(res => {
exportFn(res)
})
},
handleShare(row) {
this.$apis.seckillActivity.getCrowdSharedApi({ id: row.id }).then(res => {
......
......@@ -123,7 +123,7 @@
<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.name" :key="index">{{ item.name }}</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>
......@@ -150,8 +150,8 @@
<img :src="editForm.activityBigImg || require('@/assets/seckillActivity/icon-default.png')" />
<img class="wechat-customer" src="@/assets/seckillActivity/crowd-customer.png" />
<div class="w-100-percent txt-center">
<video v-if="editForm.activityVideos.length" class="wechat-video" controls>
<source :src="editForm.activityVideos[0]" type="video/mp4" />
<video v-if="editForm.activityVideoList.length" class="wechat-video" controls>
<source :src="editForm.activityVideoList[0]" type="video/mp4" />
</video>
</div>
<div class="wechat-block">
......@@ -264,12 +264,16 @@ export default {
activityAddressDetailName: '',
activityBigImg: '',
activityVideos: [],
activityVideoList: [],
activityDetail: '',
fictitiousGroupQuantity: '',
fictitiousLadderQuantity: 30,
fictitiousViewQuantity: '',
forwardTitle: '',
posterImg: '',
// 1-否,2-是
selectCarNumberFlag: 1,
selectVehicleTypeFlag: 1,
formDescribeCheck: []
// formDescribeFirst: '',
// formDescribeSecond: '',
......@@ -349,12 +353,12 @@ export default {
// 表单设置
formDescribeCheckList: [
{
name: '车牌号',
value: ''
label: '车牌号',
value: 'selectCarNumberFlag'
},
{
name: '品牌车型',
value: ''
label: '品牌车型',
value: 'selectVehicleTypeFlag'
}
],
describeNum: 2,
......@@ -575,7 +579,7 @@ export default {
},
{
label: '活动视频',
name: 'activityVideos',
name: 'activityVideoList',
type: 'upload',
uploadType: 'video',
suffixSlot: 'activityVideos',
......@@ -587,9 +591,14 @@ export default {
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
this.loading = true
this.$apis.common
.uploadVideoApi({ file: base64 })
.uploadFundingVideoApi({ file: base64 })
.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(() => {
this.loading = false
......@@ -652,13 +661,6 @@ export default {
label: '表单设置',
name: 'formDescribe',
addHtml: 'formDescribe'
},
{
label: '视频号链接',
name: '',
width: '474px',
type: 'input',
maxlength: 300
}
]
}
......@@ -1106,9 +1108,10 @@ export default {
if (info.activityAddressProvinceName || info.activityAddressCityName) {
this.$refs.configEditFormRef.$refs.provinceForm[0].init(info.activityAddressProvinceName, info.activityAddressCityName)
}
this.editForm.activityVideoList = []
// 活动视频
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) {
......@@ -1131,6 +1134,15 @@ 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 = []
Object.values(this.describeIdxToAttr).forEach((item, index) => {
if (this.editForm['formDescribe' + item]) {
......@@ -1193,6 +1205,8 @@ export default {
param.specificationDetailList.push(obj)
})
}
// 视频
delete param.activityVideoList
// 预估销量
if (this.editForm.predictVolume) {
param.predictVolume = (this.editForm.predictVolume * 100).toFixed(0)
......@@ -1202,6 +1216,10 @@ export default {
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) => {
param['formDescribe' + item] = this.formDescribeList.length > idx ? this.formDescribeList[idx].value : ''
})
......
......@@ -2,7 +2,7 @@
<template>
<div class="marketing">
<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 class="container">
<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!