Commit 4bfdebb3 by 张立顺

v3.2 众筹模块迁移

1 parent 026cf89d
...@@ -161,4 +161,15 @@ const getMerchantInfoApi = params => { ...@@ -161,4 +161,15 @@ const getMerchantInfoApi = params => {
}) })
} }
export default { getMerchantGoodsListApi, getGoodsListApi, uploadImgApi, uploadMusicApi, uploadVideoApi, uploadFundingVideoApi, getMerchantList, getSimpleMerchantList, getZoneListApi, getClassifyListApi, pictureUpload, querylabeltree, getCrowdTreeListApi, getStaffFollowerListApi, getMerchantInfoApi } // 根据门店号获取员工列表
const getMerchantStaff = params => {
params.method = 'scrm.api.shopmall.crowd.funding.staff.get'
return http({
url: '/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getMerchantGoodsListApi, getGoodsListApi, uploadImgApi, uploadMusicApi, uploadVideoApi, uploadFundingVideoApi, getMerchantList, getSimpleMerchantList, getZoneListApi, getClassifyListApi, pictureUpload, querylabeltree, getCrowdTreeListApi, getStaffFollowerListApi, getMerchantInfoApi, getMerchantStaff }
...@@ -137,4 +137,42 @@ const updateOrderType = params => { ...@@ -137,4 +137,42 @@ const updateOrderType = params => {
}) })
} }
export default { getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, crowdFundWriteOffApi, crowdFundRefundApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi, updateOrderType } /** 设置活动的指派人 */
const signerOrder = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.appointer.update'
return http({
url: '/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: false
})
}
// /router/scrm.api.stoassistant.user.activity.confirm.install.info/1.0.0
/** 获取确认安装待审核信息 */
const getInstallInfo = params => {
params.method = 'scrm.api.stoassistant.user.activity.confirm.install.info'
return http({
url: '/rop-scrm-stoassistant/router',
method: 'POST',
data: params,
sign: true,
returnAll: false
})
}
/** 根据订单号核销众筹活动订单 */
const orderVerfication = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.verfication'
return http({
url: '/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: false
})
}
export default { getInstallInfo, orderVerfication, signerOrder, getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, crowdFundWriteOffApi, crowdFundRefundApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi, updateOrderType }
import { http } from '@/main'
const defaultPath = 'scrm.api.shopmall.goods.'
const getListApi = params => {
params.method = `${defaultPath}page.curMerchant`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const getProShareApi = params => {
params.method = `${defaultPath}get.shared`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const topProApi = params => {
params.method = `${defaultPath}updateToTop`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const updateStatusProApi = params => {
params.method = `${defaultPath}updateStatus`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const deleteTakeProApi = params => {
params.method = `${defaultPath}deleteTakeGoods`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const getProInfoApi = params => {
params.method = `${defaultPath}getById`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const insertOrUpdateProApi = params => {
params.method = `${defaultPath}insertOrUpdate`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const updateTakeProApi = params => {
params.method = `${defaultPath}updateTake`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const getGoodsCommentListApi = params => {
params.method = 'scrm.api.shopmall.backstage.orderGoodsComment.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const getBusinessTypeByIdApi = params => {
params.method = 'scrm.api.shopmall.goods.getBusinessTypeById'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
const deleteGoodsApi = params => {
params.method = 'scrm.api.shopmall.goods.deleteGoods'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getBusinessTypeByIdApi, getListApi, getProShareApi, topProApi, updateStatusProApi, deleteTakeProApi, getProInfoApi, insertOrUpdateProApi, updateTakeProApi, getGoodsCommentListApi, deleteGoodsApi }
...@@ -172,6 +172,17 @@ const getLiveListApi = params => { ...@@ -172,6 +172,17 @@ const getLiveListApi = params => {
}) })
} }
/**定金收款账户下拉列表 */
const getPayListApi = params => {
params.method = 'scrm.api.shopmall.activity.payment.account.list'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
/**数据看板员工排名 */ /**数据看板员工排名 */
const getRankListApi = params => { const getRankListApi = params => {
params.method = 'scrm.api.shopmall.activity.ranking.page' params.method = 'scrm.api.shopmall.activity.ranking.page'
...@@ -202,4 +213,60 @@ const getDataBoardApi = params => { ...@@ -202,4 +213,60 @@ const getDataBoardApi = params => {
sign: true sign: true
}) })
} }
export default { getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi }
/**每日订单量统计 */
const getDailyOrderQuantityStatistics = params => {
params.method = 'scrm.api.shopmall.activity.daily.order.quantity'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
/**导出每日订单量统计 */
const exportDailyOrderQuantityStatistics = params => {
params.method = 'scrm.api.shopmall.activity.daily.order.quantity.export'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
/**活动直播间数据统计-详情导出 */
const liveroomDetailexport = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.detailexport'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
/**活动直播间数据统计-分页详情 */
const liveroomDetailpage = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.detailpage'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
/**活动直播间数据统计-概览 */
const liveroomOverview = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.overview'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getPayListApi, liveroomDetailexport, liveroomDetailpage, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi, getDailyOrderQuantityStatistics, exportDailyOrderQuantityStatistics }
...@@ -133,16 +133,6 @@ html { ...@@ -133,16 +133,6 @@ html {
word-break: break-all; word-break: break-all;
} }
body,
html {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #f4f5fa;
}
.el-range-editor.is-active, .el-range-editor.is-active,
.el-range-editor.is-active:hover { .el-range-editor.is-active:hover {
border-color: #5850ff; border-color: #5850ff;
...@@ -882,4 +872,11 @@ html { ...@@ -882,4 +872,11 @@ html {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
margin-right: 8px; margin-right: 8px;
}
ul li {
padding: 0;
margin: 0;
list-style: none;
} }
\ No newline at end of file \ No newline at end of file
...@@ -31,22 +31,60 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max ...@@ -31,22 +31,60 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max
} }
} }
function aToExport(url) {
var a = document.createElement('a')
a.setAttribute('id', 'exportToExport')
a.setAttribute('href', url)
a.setAttribute('target', '_blank')
document.body.appendChild(a)
a.click()
}
/**
* url下载文件
*
*/
function downLoadFile(url) {
// console.log(row)
// return
const Temp = document.createElement('a')
// Temp.href = process.env.VUE_APP_BASE_URL + '/article/export.do?articleId=' + row.id
Temp.href = url
// console.log(url)
// console.log(Temp.href)
document.body.append(Temp)
Temp.click()
document.body.removeChild(Temp)
}
// const orderManageStatusList = [
// { confId: '1', confName: '未支付' },
// { confId: '2', confName: '已支付' },
// { confId: '3', confName: '已失效' },
// { confId: '4', confName: '已发货' },
// { confId: '5', confName: '已收货' },
// { confId: '6', confName: '待审核' },
// { confId: '7', confName: '审核成功' },
// { confId: '8', confName: '审核失败' },
// { confId: '9', confName: '待确认' },
// { confId: '10', confName: '退款中' },
// { confId: '11', confName: '已退款' },
// { confId: '12', confName: '退款失败' },
// { confId: '13', confName: '待发货' },
// { confId: '14', confName: '待安装' },
// { confId: '15', confName: '已安装' }
// ]
const orderManageStatusList = [ const orderManageStatusList = [
{ confId: '1', confName: '未支付' }, { confId: '1', confName: '待付款' },
{ confId: '2', confName: '已支付' }, { confId: '2', confName: '已支付' },
{ confId: '3', confName: '已失效' }, { confId: '3', confName: '已失效' },
{ confId: '4', confName: '已发货' }, // { confId: '21', confName: '待收货(待核销)' },
{ confId: '5', confName: '已收货' }, { confId: '21', confName: '待核销' },
{ confId: '6', confName: '待审核' }, { confId: '22', confName: '已核销' },
{ confId: '7', confName: '审核成功' }, // { confId: '22', confName: '已收货(已核销)' },
{ confId: '8', confName: '审核失败' }, { confId: '6', confName: '待发货' },
{ confId: '9', confName: '待确认' }, // { confId: '7', confName: '待核销' },
{ confId: '10', confName: '退款中' }, // { confId: '8', confName: '已核销' },
{ confId: '11', confName: '已退款' }, { confId: '9', confName: '售后中' },
{ confId: '12', confName: '退款失败' }, { confId: '10', confName: '售后完成' }
{ confId: '13', confName: '待发货' },
{ confId: '14', confName: '待安装' },
{ confId: '15', confName: '已安装' }
] ]
const orderSourceList = [ const orderSourceList = [
...@@ -206,4 +244,4 @@ function setMinHeight(calssName = '.edit-container') { ...@@ -206,4 +244,4 @@ function setMinHeight(calssName = '.edit-container') {
document.querySelector(calssName).style.minHeight = minHeight document.querySelector(calssName).style.minHeight = minHeight
} }
export { limitPrice, orderManageStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, afterSaleStatusList, exportFn, setMinHeight } export { limitPrice, aToExport, orderManageStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, afterSaleStatusList, exportFn, setMinHeight, downLoadFile }
<!-- 选择商品 - 单选 --> <!-- 选择商品 - 单选 -->
<template> <template>
<GLDialog class="single-pro" bigTitle="选择商品" mode="big" :before-close="handleSingleSelectClose" :okText="productList.length ? '确定' : '创建商品'" :visible.sync="isSingleSelectVisible" @onOk="handleSingleSelectConfirm" @onCancel="handleSingleSelectClose"> <GLDialog class="single-pro"
bigTitle="选择商品"
mode="big"
:before-close="handleSingleSelectClose"
:okText="productList.length ? '确定' : '创建商品'"
:visible.sync="isSingleSelectVisible"
@onOk="handleSingleSelectConfirm"
@onCancel="handleSingleSelectClose">
<div style="max-height:60vh"> <div style="max-height:60vh">
<div class="noproDiv" v-if="!productList.length && fnCallBack"> <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" v-if="productList.length" class="pro-group"> <el-radio-group v-model="infoId"
<el-radio :class="['pro-box', item.id == infoId ? 'active' : '']" v-for="item in productList" :key="item.id" :label="item.id"> v-if="productList.length"
<img v-show="item.id == infoId" class="icon-check" src="@/assets/icon-check.png" /> class="pro-group">
<img class="goods-img" :src="item.goodsImage" /> <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"> <div class="txt-box">
<p :title="item.goodsName" class="ellipsis">{{ item.goodsName }}</p> <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" class="ellipsis f-s-12">门店名称:{{ item.merchantName }}</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>
...@@ -44,7 +62,11 @@ export default { ...@@ -44,7 +62,11 @@ export default {
}, },
selectedProInfo: { selectedProInfo: {
type: Object, type: Object,
default: () => {} default: () => { }
},
merchantId: {
type: String,
required: true
} }
}, },
...@@ -62,20 +84,21 @@ export default { ...@@ -62,20 +84,21 @@ export default {
goodsStatus: 1, goodsStatus: 1,
goodsSource: 1, goodsSource: 1,
pageNum: 1, pageNum: 1,
pageSize: 100000 pageSize: 100000,
merchantId: this.merchantId
} }
var that = this var that = this
this.$apis.common.getMerchantGoodsListApi(params).then(res => { this.$apis.common.getMerchantGoodsListApi(params).then(res => {
// console.log(res) // console.log(res)
this.fnCallBack = true this.fnCallBack = true
this.productList = res.list this.productList = res.list
this.productList.forEach(function(item) { this.productList.forEach(function (item) {
item.saleAmount = item.goodsStatistics.saleAmount item.saleAmount = item.goodsStatistics.saleAmount
if (item.specificationDetailList.length > 1) { if (item.specificationDetailList.length > 1) {
let retailPriceList = item.specificationDetailList.sort(function(a, b) { let retailPriceList = item.specificationDetailList.sort(function (a, b) {
return a.retailPrice - b.retailPrice return a.retailPrice - b.retailPrice
}) })
let stockeList = item.specificationDetailList.sort(function(a, b) { let stockeList = item.specificationDetailList.sort(function (a, b) {
return a.stock - b.stock return a.stock - b.stock
}) })
let minRatilPrice = retailPriceList[0].retailPrice / 100 let minRatilPrice = retailPriceList[0].retailPrice / 100
......
<template> <template>
<div class="select-crowd"> <div class="select-staff">
<GLDialog bigTitle="选择人群" mode="big" :visible.sync="dialogVisible" :before-close="handleClose" :close-on-click-modal="false" @onOk="handleConfirm" @onCancel="handleClose"> <!-- class="staffDailog" -->
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData"> <GLDialog bigTitle="选择员工"
mode="big"
width="600px"
:visible.sync="dialogVisible"
:before-close="handleClose"
:close-on-click-modal="false"
@onOk="handleConfirm"
@onCancel="handleClose">
<glsx-combi-form ref="showSearch"
labelWidth="105px"
:formObj="searchForm"
:formData="searchFormData">
<span slot="footer"> <span slot="footer">
<el-button :size="size" type="primary" @click="getList">查询</el-button> <el-button :size="size"
type="primary"
@click="getList">查询</el-button>
</span> </span>
</glsx-combi-form> </glsx-combi-form>
<GLTable ref="crowdRef" :pageConf="pageConf" :hasNum="false" :noDataImg="url" :tableData="crowdList" :tableTotal="total" :tableParams="tableParams" @refreshTable="getList" :setTableFinishFun="setTableFinishFun"> <!-- :pageConf="pageConf" -->
<div slot="radioHtml" class="crowd-table" slot-scope="scope"> <GLTable ref="staffRef"
<el-radio v-model="selectedCrowdId" :label="scope.scope.crowdId" @click.native="handleClick(scope.scope)"></el-radio> :hasPage="false"
:hasNum="false"
:noDataImg="url"
:tableData="staffList"
:tableTotal="total"
:tableParams="tableParams"
@refreshTable="getList"
:setTableFinishFun="setTableFinishFun">
<div slot="radioHtml"
class="staff-table"
slot-scope="scope">
<el-radio v-model="staffUuid"
:label="scope.scope.uuid"
@click.native="handleClick(scope.scope)"></el-radio>
</div> </div>
</GLTable> </GLTable>
<!-- <span slot="footer" class="dialog-footer"> <!-- <span slot="footer" class="dialog-footer">
...@@ -22,33 +48,35 @@ ...@@ -22,33 +48,35 @@
<script> <script>
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
export default { export default {
name: 'selectCrowd', name: 'selectStaff',
data() { data() {
return { return {
url: url, url: url,
searchForm: { searchForm: {
keyword: '' name: ''
}, },
total: 0, total: 0,
crowdList: [], staffList: [],
heightBox: 200, heightBox: 200,
selectedCrowdId: '', staffUuid: '',
// 搜索 // 搜索
searchFormData: [ searchFormData: [
{ {
label: '关键字', label: '员工',
name: 'keyword', name: 'name',
type: 'input', type: 'input',
placeholder: '请输入人群名称' placeholder: '请输入员工名称',
width: '300px',
labelWidth: '10px'
} }
], ],
// 表格 // 表格
// getListApi: this.$apis.common.getCrowdTreeListApi, // getListApi: this.$apis.common.getstaffTreeListApi,
tableParams: { tableParams: {
listName: 'crowdUnitList', listName: 'staffUnitList',
// 行数据的key // 行数据的key
// mutiSelectUniqueKey: 'crowdId', // mutiSelectUniqueKey: 'staffId',
// checkSelectKey: 'crowdId', // checkSelectKey: 'staffId',
// checkSelectVal: [], // checkSelectVal: [],
// 多选ref的名称 // 多选ref的名称
// mutiSelectName: 'list', // mutiSelectName: 'list',
...@@ -65,23 +93,11 @@ export default { ...@@ -65,23 +93,11 @@ export default {
width: 80 width: 80
}, },
{ {
label: '人群名称', label: '员工姓名',
prop: 'crowdName', prop: 'staffName',
formatter: cellValue => { formatter: cellValue => {
return cellValue.crowdName || '-' return cellValue.staffName || '-'
} }
},
{
label: '人群描述',
prop: 'crowdDesc',
formatter: cellValue => {
return cellValue.crowdDesc || '-'
}
},
{
label: '预估人数',
prop: 'total',
width: '160px'
} }
] ]
}, },
...@@ -95,67 +111,89 @@ export default { ...@@ -95,67 +111,89 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
selectedCrowdList: { selectedstaffUuid: {
type: Array, type: String
default: () => [] },
merchantId: {
type: String,
required: true
},
orderCode: {
type: String,
required: true
} }
}, },
mounted() { mounted() {
this.userInfo = this.$globalState.session // this.userInfo = this.$globalState.session
let clientHeight = document.documentElement.clientHeight let clientHeight = document.documentElement.clientHeight
this.heightBox = clientHeight - 0.15 * clientHeight - 425 this.heightBox = clientHeight - 0.15 * clientHeight - 425
this.staffUuid = this.selectedstaffUuid
this.getList() this.getList()
}, },
methods: { methods: {
getList() { getList() {
var params = { var params = {
req: { merchantId: this.merchantId,
...this.searchForm, // merchantId: '44209390',
crowdType: 3, ...this.searchForm
merchantId: this.userInfo.merchantId,
pageNum: this.$refs.crowdRef ? this.$refs.crowdRef.page.pageNum : 1,
pageSize: this.$refs.crowdRef ? this.$refs.crowdRef.page.pageSize : 10
}
} }
this.$apis.common.getCrowdTreeListApi(params).then(res => { this.$apis.common.getMerchantStaff(params).then(res => {
this.crowdList = res.crowdUnitList console.log(res)
this.total = res.total this.staffList = res
var page = this.$refs.crowdRef.page // this.staffList = res.staffUnitList
// 添加序号 // this.total = res.total
this.crowdList.forEach((item, index) => { // var page = this.$refs.staffRef.page
item.idx = index + (page[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize] + 1 // // 添加序号
this.staffList.forEach((item, index) => {
item.idx = index + 1
}) })
this.selectedCrowdList.length && (this.selectedCrowdId = +this.selectedCrowdList[0].crowdId) this.$refs.staffRef.tableHeightValues = '460px'
this.$refs.crowdRef.tableHeightValues = '460px'
}) })
}, },
setTableFinishFun() { setTableFinishFun() {
this.crowdList = this.$refs.crowdRef.data this.staffList = this.$refs.staffRef.data
//接收到的数据为空 //接收到的数据为空
this.$refs.crowdRef.tableHeightValues = '460px' this.$refs.staffRef.tableHeightValues = '460px'
}, },
handleClick(val) { handleClick(val) {
let temp = JSON.parse(JSON.stringify(val)) console.log(val)
delete temp.idx // let temp = JSON.parse(JSON.stringify(val))
this.selectedCrowdList = [temp] // delete temp.idx
// this.staffUuid = val.uuid
}, },
handleClose() { handleClose() {
this.$emit('handleCrowdCustClose') this.$emit('handleStoreClose')
}, },
handleConfirm() { handleConfirm() {
this.$emit('handleCrowdCustConfirm', this.selectedCrowdList) if (!this.staffUuid)
return this.$message({
message: '请先选择员工',
type: 'error'
})
let parmas = {
subOrderCode: this.orderCode,
staffUuid: this.staffUuid
}
this.$apis.orderManage.signerOrder(parmas).then(res => {
console.log(res)
this.$emit('handleStaffConfirm', this.staffUuid)
})
} }
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.select-crowd { .select-staff {
.staffDailog {
width: 500px;
}
.title { .title {
margin-bottom: 12px; margin-bottom: 12px;
} }
...@@ -201,7 +239,7 @@ export default { ...@@ -201,7 +239,7 @@ export default {
.p-16 { .p-16 {
padding: 16px; padding: 16px;
} }
.crowd-table .el-radio__label { .staff-table .el-radio__label {
display: none; display: none;
} }
} }
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
name="3"></el-tab-pane> name="3"></el-tab-pane>
<el-tab-pane label="售后订单" <el-tab-pane label="售后订单"
name="4"></el-tab-pane> name="4"></el-tab-pane>
<el-tab-pane label="售后订单" <el-tab-pane label="待审批"
name="5"></el-tab-pane> name="5"></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
...@@ -109,7 +109,9 @@ ...@@ -109,7 +109,9 @@
<div slot="assignName" <div slot="assignName"
slot-scope="scope"> slot-scope="scope">
<div> <div>
<span>{{ scope.scope.assignStaffName }}</span> <img class="img-36 pointer img-circle"
:src="scope.scope.assignStaffImageUrl || scope.scope.shareStaffImageUrl" />
<span>{{ scope.scope.assignStaffName || scope.scope.shareStaffName }}</span>
<span @click="handlerAssign(scope.scope)" <span @click="handlerAssign(scope.scope)"
class="assignLabel">指派</span> class="assignLabel">指派</span>
</div> </div>
...@@ -245,11 +247,31 @@ ...@@ -245,11 +247,31 @@
</el-form> </el-form>
</GLDialog> </GLDialog>
<!-- 指派员工 --> <!-- 指派员工 -->
<select-Crowd v-if="isCrowdCustVisible" <select-staff v-if="isStaffVisible"
:dialogVisible="isCrowdCustVisible" :merchantId="merchantId"
:selectedCrowdList="JSON.parse(JSON.stringify(customerDataList[0].list))" :orderCode="orderCode"
@handleCrowdCustClose="handleCrowdCustClose" :dialogVisible="isStaffVisible"
@handleCrowdCustConfirm="handleDialogConfirm"></select-Crowd> @handleStaffClose="handleStaffClose"
@handleStaffConfirm="handleDialogConfirm"></select-staff>
<!-- 核销审批 -->
<GLDialog v-if="writeOffApprovalVisible"
title="核销审批"
width="400px"
:visible.sync="writeOffApprovalVisible"
@onCancel="handleApprovalClose"
@onOk="handleApprovalComfirm"
:orderCode="orderCode">
<ul>
<li class="approvalInfoTips">
<img class="tips-img"
src="@/assets/icon-info.png" />
请确定是否核销此订单?
</li>
<li class="approvalInfoItem">员工名称: {{ approvalInfo.staffName }}</li>
<li class="approvalInfoItem">提交时间: {{ approvalInfo.confirmInstallTime }}</li>
</ul>
</GLDialog>
<!-- :selectedCrowdList="JSON.parse(JSON.stringify(customerDataList[0].list))" -->
<!-- <GLDialog :bigTitle="'选择成员'" <!-- <GLDialog :bigTitle="'选择成员'"
mode="big" mode="big"
:visible.sync="membersVisible" :visible.sync="membersVisible"
...@@ -265,21 +287,23 @@ ...@@ -265,21 +287,23 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import selectCrowd from './components/selectCrowd.vue' import selectStaff from './components/selectStaff.vue'
import { orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn } from '@/common/constant' import { orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn } from '@/common/constant'
export default { export default {
name: 'orderManage', name: 'orderManage',
components: { components: {
// SelectMember, // SelectMember,
selectCrowd selectStaff
}, },
data() { data() {
return { return {
isCrowdCustVisible: false, isStaffVisible: false,
size: 'small', size: 'small',
url: url, url: url,
isEdit: true, isEdit: true,
orderCode: '', orderCode: '',
merchantId: '',
approvalInfo: {},
oldVal: { oldVal: {
orderStatuses: [], orderStatuses: [],
afterSaleStatuses: [] afterSaleStatuses: []
...@@ -291,7 +315,8 @@ export default { ...@@ -291,7 +315,8 @@ export default {
merchantName: '', merchantName: '',
customerName: '', customerName: '',
createDate: [], createDate: [],
orderSource: '', orderSource: '4',
requestType: '1', //运营版 固定传值 实现筛选全部订单
deliveryType: '', deliveryType: '',
vin: '', vin: '',
shareStaffName: '', shareStaffName: '',
...@@ -399,15 +424,15 @@ export default { ...@@ -399,15 +424,15 @@ export default {
isClear: true, isClear: true,
pickerOptions: 'beforeRangePickerOptions' pickerOptions: 'beforeRangePickerOptions'
}, },
{ // {
label: '订单类型', // label: '订单类型',
name: 'orderSource', // name: 'orderSource',
type: 'select', // type: 'select',
optionList: [], // optionList: [],
optionId: 'confId', // optionId: 'confId',
optionLabel: 'confName', // optionLabel: 'confName',
optionsName: 'orderSourceList' // optionsName: 'orderSourceList'
}, // },
{ {
label: '结算方式', label: '结算方式',
name: 'deliveryType', name: 'deliveryType',
...@@ -473,10 +498,20 @@ export default { ...@@ -473,10 +498,20 @@ export default {
labelWidth: 56, labelWidth: 56,
type: 'input', type: 'input',
maxlength: 11 maxlength: 11
},
{
label: '测试单',
name: 'orderType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'testSheetTypeList'
} }
], ],
// 快递信息 // 快递信息
isExpressVisible: false, isExpressVisible: false,
writeOffApprovalVisible: false,
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
expressForm: { expressForm: {
deliveryCompany: '', deliveryCompany: '',
...@@ -501,7 +536,7 @@ export default { ...@@ -501,7 +536,7 @@ export default {
} }
], ],
// 订单核销 // 订单核销
isWriteOffVisible: false,
writeOffForm: { writeOffForm: {
verificationCode: '' verificationCode: ''
}, },
...@@ -645,6 +680,20 @@ export default { ...@@ -645,6 +680,20 @@ export default {
listeners: { listeners: {
click: this.handleReceiving click: this.handleReceiving
} }
},
{
type: 'el-button',
name: '核销审批',
attrs: {
type: 'text'
},
condition: row => {
// return true
return row.afterSaleStatus == 11
},
listeners: {
click: this.handleWriteOffApproval
}
} }
], ],
// 表格 // 表格
...@@ -826,6 +875,10 @@ export default { ...@@ -826,6 +875,10 @@ export default {
shareStaffTypeList: [ shareStaffTypeList: [
{ confId: '1', confName: '个微' }, { confId: '1', confName: '个微' },
{ confId: '2', confName: '企微' } { confId: '2', confName: '企微' }
],
testSheetTypeList: [
{ confId: '0', confName: '否' },
{ confId: '1', confName: '是' }
] ]
} }
} }
...@@ -881,10 +934,36 @@ export default { ...@@ -881,10 +934,36 @@ export default {
}) })
} }
}, },
handleApprovalClose() {
this.writeOffApprovalVisible = !this.writeOffApprovalVisible
},
handleApprovalComfirm() {
this.$apis.orderManage.orderVerfication({ orderCode: this.orderCode }).then(result => {
this.handleApprovalClose()
this.handleSearch()
})
},
// 核销审批
handleWriteOffApproval(val) {
this.orderCode = val.orderCode
this.$apis.orderManage
.getInstallInfo({
subOrderCode: val.orderCode
// subOrderCode: 'S2211111603132050'
})
.then(result => {
this.approvalInfo = result
// console.log(result)
})
this.handleApprovalClose()
},
// 订单指派 // 订单指派
handlerAssign(item) { handlerAssign(item) {
// this. // this.
console.log(item) console.log(item)
this.merchantId = item.merchantId
this.orderCode = item.orderCode
this.isStaffVisible = true
}, },
// 改变订单类型 // 改变订单类型
changeOrderType(item) { changeOrderType(item) {
...@@ -1008,8 +1087,12 @@ export default { ...@@ -1008,8 +1087,12 @@ export default {
}) })
}, },
handleCrowdCustClose() { handleStaffClose() {
this.isCrowdCustVisible = !this.isCrowdCustVisible this.isStaffVisible = !this.isStaffVisible
},
handleDialogConfirm() {
this.handleStaffClose()
this.handleSearch()
}, },
handleWriteOff(row) { handleWriteOff(row) {
if (row.orderSource == 4) { if (row.orderSource == 4) {
...@@ -1223,4 +1306,14 @@ export default { ...@@ -1223,4 +1306,14 @@ export default {
} }
} }
} }
.approvalInfoTips {
font-weight: 500;
font-size: 16px;
color: #1d1d1d;
margin-bottom: 16px;
}
.approvalInfoItem {
margin-left: 20px;
margin-bottom: 10px;
}
</style> </style>
...@@ -4,10 +4,16 @@ ...@@ -4,10 +4,16 @@
<div class="edit-box"> <div class="edit-box">
<div class="container m-b-20"> <div class="container m-b-20">
<p class="edit-title">订单信息</p> <p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true"> <el-form label-width="100px"
<el-row v-for="(item, index) in detailFormDataRow" :key="index"> :inline="true">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label" class="row-item"> <el-row v-for="(item, index) in detailFormDataRow"
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span> :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList"
:key="subIndex"
:label="subItem.label"
class="row-item">
<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-item label="其他信息">{{ detailForm.formDescribe }}</el-form-item>
...@@ -15,43 +21,61 @@ ...@@ -15,43 +21,61 @@
</div> </div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']"> <div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
<p class="edit-title">发货信息</p> <p class="edit-title">发货信息</p>
<el-form label-width="100px" :inline="true"> <el-form label-width="100px"
:inline="true">
<el-form-item label="物流信息"> <el-form-item label="物流信息">
<span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{ detailForm.deliveryNumber }}</span> <span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{ detailForm.deliveryNumber }}</span>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div v-if="orderGoods.length" class="p-l-40"> <div v-if="orderGoods.length"
class="p-l-40">
<table class="show-table"> <table class="show-table">
<tbody> <tbody>
<tr v-for="(item, index) in orderGoods" :key="index" style="height: 70px;"> <tr v-for="(item, index) in orderGoods"
<td><img :src="item.goodsImage" class="img-60" /></td> :key="index"
style="height: 70px;">
<td><img :src="item.goodsImage"
class="img-60" /></td>
<td>{{ item.goodsName }}</td> <td>{{ item.goodsName }}</td>
<td>{{ item.specificationData }}</td> <td>{{ item.specificationData }}</td>
<td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 * {{ item.goodsNumber }}</td> <td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 *
{{ item.goodsNumber }}</td>
</tr> </tr>
<tr v-if="detailForm.subOrderCoupon" style="height: 40px;"> <tr v-if="detailForm.subOrderCoupon"
<td style="text-align: left;" colspan="3">优惠券</td> style="height: 40px;">
<td style="text-align: left;"
colspan="3">优惠券</td>
<td>{{ detailForm.subOrderCoupon.discountAmount }}元</td> <td>{{ detailForm.subOrderCoupon.discountAmount }}元</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
<div class="container edit-container" v-if="orderRefund"> <div class="container edit-container"
v-if="orderRefund">
<p class="edit-title">售后信息</p> <p class="edit-title">售后信息</p>
<el-form label-width="100px" :inline="true"> <el-form label-width="100px"
<el-row v-for="(item, index) in afterInfoDataRow" :key="index"> :inline="true">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label"> <el-row v-for="(item, index) in afterInfoDataRow"
<span class="detail-txt ellipsis-1" :title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || '-' }}</span> :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList"
:key="subIndex"
:label="subItem.label">
<span class="detail-txt ellipsis-1"
:title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || '-' }}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<div class="form-img"> <div class="form-img">
<el-form label-width="100px" :inline="true"> <el-form label-width="100px"
:inline="true">
<el-form-item label="售后凭证"> <el-form-item label="售后凭证">
<div class="flex"> <div class="flex">
<span v-for="(item, index) in orderRefund.imgUrls" :key="index"> <span v-for="(item, index) in orderRefund.imgUrls"
<el-image class="img-60 comment-img" :src="item" :preview-src-list="[item]"></el-image> :key="index">
<el-image class="img-60 comment-img"
:src="item"
:preview-src-list="[item]"></el-image>
</span> </span>
</div> </div>
</el-form-item> </el-form-item>
...@@ -60,7 +84,8 @@ ...@@ -60,7 +84,8 @@
</div> </div>
</div> </div>
<GLFooter> <GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button> <el-button @click="handleCancel"
size="medium">取消</el-button>
</GLFooter> </GLFooter>
</div> </div>
</template> </template>
...@@ -134,10 +159,14 @@ export default { ...@@ -134,10 +159,14 @@ export default {
name: 'orderStatusName' name: 'orderStatusName'
}, },
{ {
label: '支付总价', label: '支付定金',
name: 'payPrice' name: 'payPrice'
}, },
{ {
label: '尾款',
name: 'crowdFundingPrice'
},
{
label: '发货地址', label: '发货地址',
name: 'shipAddress' name: 'shipAddress'
}, },
...@@ -248,6 +277,10 @@ export default { ...@@ -248,6 +277,10 @@ export default {
} }
this.orderGoods = res.orderGoods || [] this.orderGoods = res.orderGoods || []
this.detailForm.payPrice = res.payPrice ? res.payPrice + '元' : '0元' this.detailForm.payPrice = res.payPrice ? res.payPrice + '元' : '0元'
this.detailForm.crowdFundingPrice = ''
if (res.payPrice && res.crowdFundingPrice) {
this.detailForm.crowdFundingPrice = res.crowdFundingPrice - res.payPrice + '元'
}
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) {
......
<template>
<div class="select-store">
<!-- width="600px" -->
<GLDialog bigTitle="选择门店"
mode="big"
:visible.sync="dialogVisible"
:before-close="handleClose"
:close-on-click-modal="false"
@onOk="handleConfirm"
@onCancel="handleClose">
<glsx-combi-form ref="showSearch"
labelWidth="105px"
:formObj="searchForm"
:formData="searchFormData">
<span slot="footer">
<el-button :size="size"
type="primary"
@click="getList">查询</el-button>
</span>
</glsx-combi-form>
<!-- : :hasPage="false"
:hasNum="false" :tableData="storeList" -->
<GLTable ref="storeRef"
:noDataImg="url"
:tableTotal="total"
:searchForm="searchForm"
:tableParams="tableParams"
:pageConf="pageConf"
@refreshTable="getList"
:getListApi="getListApi"
:setTableFinishFun="setTableFinishFun">
<div slot="radioHtml"
class="store-table"
slot-scope="scope">
<el-radio v-model="merchantId"
:label="scope.scope.merchantNo"
@click.native="handleClick(scope.scope)"></el-radio>
</div>
</GLTable>
<!-- <span slot="footer" class="dialog-footer">
<el-button size="small" @click="handleClose">取 消</el-button>
<el-button size="small" type="primary" @click="handleConfirm">确 定</el-button>
</span> -->
</GLDialog>
</div>
</template>
<script>
import url from '@/assets/empty.png'
export default {
name: 'selectStore',
data() {
return {
url: url,
searchForm: {
merchantId: '',
merchantName: ''
},
getListApi: this.$apis.common.getMerchantList,
total: 0,
// storeList: [],
heightBox: 200,
merchantId: '',
merchantName: '',
// 搜索
searchFormData: [
{
label: '商户ID',
name: 'merchantId',
type: 'input',
placeholder: '请输入商户ID',
width: '300px',
labelWidth: '10px'
},
{
label: '商户名称',
name: 'merchantName',
type: 'input',
placeholder: '请输入商户名称',
width: '300px',
labelWidth: '10px'
}
],
// 表格
// getListApi: this.$apis.common.getstaffTreeListApi,
tableParams: {
listName: 'list',
// tableOption: true,
// 行数据的key
// mutiSelectUniqueKey: 'staffId',
// checkSelectKey: 'staffId',
// checkSelectVal: [],
// 多选ref的名称
// mutiSelectName: 'list',
tableColumns: [
{
label: '',
prop: '',
width: 80,
addHtml: 'radioHtml'
},
// {
// label: '序号',
// prop: 'idx',
// width: 80
// },
{
label: '商户名称',
prop: 'merchantName',
formatter: cellValue => {
return cellValue.merchantName || '-'
}
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
baseData: {}
}
},
props: {
dialogVisible: {
type: Boolean,
default: false
},
storeSearchForm: {
type: Object
},
merchantInfo: {
required: true
}
// merchantId: {
// type: String,
//
// }
// orderCode: {
// type: String,
// required: true
// }
},
mounted() {
// this.userInfo = this.$globalState.session
let clientHeight = document.documentElement.clientHeight
this.heightBox = clientHeight - 0.15 * clientHeight - 425
this.merchantId = this.merchantInfo
// this.getList()
},
methods: {
getList() {
var params = {
merchantId: this.merchantId,
// 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'
// })
},
setTableFinishFun() {
// console.log(this.$refs.staffRef.data)
// this.storeList = this.$refs.staffRef.data
//接收到的数据为空
this.$refs.staffRef.tableHeightValues = '460px'
},
handleClick(val) {
console.log(val)
// let { merchantId, merchantName } =val
this.merchantId = val.merchantNo
this.merchantName = val.merchantName
// let temp = JSON.parse(JSON.stringify(val))
// delete temp.idx
// this.staffUuid = val.uuid
// this.store = val
},
handleClose() {
this.$emit('handleRelateStoreClose')
},
handleConfirm() {
// if (!this.staffUuid)
// return this.$message({
// message: '请先选择员工',
// type: 'error'
// })
// let parmas = {
// subOrderCode: this.orderCode,
// staffUuid: this.staffUuid
// }
// this.$apis.orderManage.signerOrder(parmas).then(res => {
// console.log(res)
// })
// this.staffUuid
this.$emit('handleRelateStoreConfirm', {
merchantId: this.merchantId,
merchantName: this.merchantName
})
}
}
}
</script>
<style lang="scss">
.select-store {
.storeDailog {
width: 500px;
}
.title {
margin-bottom: 12px;
}
.customer-tag-box {
display: flex;
margin: 20px 16px;
.tag-label {
display: inline-block;
height: 30px;
line-height: 30px;
}
.input-tag-wrapper {
max-height: 75px;
overflow: auto;
position: relative;
font-size: 14px;
background-color: #fff;
background-image: none;
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #666;
display: inline-block;
outline: none;
padding: 5px;
flex-wrap: wrap;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 648px;
display: flex;
align-items: center;
cursor: pointer;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
}
// .customer-list {
// width: calc(100% - 280px);
// margin-right: 10px;
// }
.p-16 {
padding: 16px;
}
.store-table .el-radio__label {
display: none;
}
}
</style>
<template> <template>
<div class="wechat-box marketing"> <div class="wechat-box marketing">
<img class="w-100-percent" <img class="w-100-percent" src="@/assets/seckillActivity/phone.png" />
src="@/assets/seckillActivity/phone.png" />
<div class="wechat-back"> <div class="wechat-back">
<p class="wechat-name one-line-ellipsis">{{ editForm.activityName }}</p> <p class="wechat-name one-line-ellipsis">{{ editForm.activityName }}</p>
<img class="wechat-head" <img class="wechat-head" src="@/assets/seckillActivity/crowd-head.png" />
src="@/assets/seckillActivity/crowd-head.png" /> <img class="icon-server" src="@/assets/seckillActivity/icon-server.png" />
<img class="icon-server"
src="@/assets/seckillActivity/icon-server.png" />
<div class="wechat-inner-box"> <div class="wechat-inner-box">
<div class="wechat-banner-img"> <div class="wechat-banner-img">
<img class="icon-music" <img class="icon-music" src="@/assets/seckillActivity/icon-music.png" />
src="@/assets/seckillActivity/icon-music.png" /> <img :src="editForm.activityBigImg || require('@/assets/seckillActivity/icon-default.png')" />
<img <img class="wechat-customer" src="@/assets/seckillActivity/crowd-customer.png" />
: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"> <div class="w-100-percent txt-center">
<video v-if="editForm.activityVideoList.length" <video v-if="editForm.activityVideoList.length" class="wechat-video" controls>
class="wechat-video" <source :src="editForm.activityVideoList[0]" type="video/mp4" />
controls>
<source :src="editForm.activityVideoList[0]"
type="video/mp4" />
</video> </video>
</div> </div>
<div class="wechat-block"> <div class="wechat-block">
...@@ -30,51 +21,36 @@ ...@@ -30,51 +21,36 @@
<div> <div>
<p class="m-b-10">{{ editForm.sponsorName }}</p> <p class="m-b-10">{{ editForm.sponsorName }}</p>
<p class="m-b-10 wechat-sub-addr">{{ editForm.activityAddressDetailName }}</p> <p class="m-b-10 wechat-sub-addr">{{ editForm.activityAddressDetailName }}</p>
<p class="wechat-time" <p class="wechat-time" v-if="editForm.activityTime && editForm.activityTime.length">活动时间:{{ editForm.activityTime[0].split(' ')[0] }}-{{ editForm.activityTime[1].split(' ')[0] }}</p>
v-if="editForm.activityTime && editForm.activityTime.length">
活动时间:{{ editForm.activityTime[0].split(' ')[0] }}-{{ editForm.activityTime[1].split(' ')[0] }}
</p>
</div> </div>
<img class="icon-addr" <img class="icon-addr" src="@/assets/seckillActivity/icon-addr.png" />
src="@/assets/seckillActivity/icon-addr.png" />
</div> </div>
</div> </div>
<div class="wechat-block"> <div class="wechat-block">
<p class="wechat-block-title">{{ countDownObj.typeTxt }}</p> <p class="wechat-block-title">{{ countDownObj.typeTxt }}</p>
<p v-if="countDownObj.activityStatus != 3" <p v-if="countDownObj.activityStatus != 3" class="wechat-count-down">
class="wechat-count-down"> <span v-if="editForm.activityTime && editForm.activityTime.length">{{ editForm.activityTime[0].split(' ')[0].split('-')[2] }}</span>
<span
v-if="editForm.activityTime && editForm.activityTime.length">{{ editForm.activityTime[0].split(' ')[0].split('-')[2] }}</span>
日开始活动,还差 日开始活动,还差
<span class="wechat-txt">{{ countDownObj.d }}</span> <span class="wechat-txt">{{ countDownObj.d }}</span>天
天 <span class="wechat-txt">{{ countDownObj.h }}</span>时
<span class="wechat-txt">{{ countDownObj.h }}</span> <span class="wechat-txt">{{ countDownObj.m }}</span>分
时 <span class="wechat-txt">{{ countDownObj.s }}</span>秒
<span class="wechat-txt">{{ countDownObj.m }}</span>
分
<span class="wechat-txt">{{ countDownObj.s }}</span>
秒
</p> </p>
<img v-else <img v-else class="count-down-img" src="@/assets/seckillActivity/count-down.png" />
class="count-down-img"
src="@/assets/seckillActivity/count-down.png" />
</div> </div>
<div class="w-100-percent txt-center"> <div class="w-100-percent txt-center">
<img class="crowd-jdt" <img class="crowd-jdt" src="@/assets/seckillActivity/crowd-jdt.png" />
src="@/assets/seckillActivity/crowd-jdt.png" />
</div> </div>
<div class="wechat-block service"> <div class="wechat-block service">
<div class="serve" <div class="serve" v-if="editForm.activityServices.length">
v-if="editForm.activityServices.length">
<div class="box flex"> <div class="box flex">
<div style="width: 26px;">服务</div> <div style="width: 26px;">服务</div>
<div class="serve-text flex-center"> <div class="serve-text flex-center">
<template v-for="(i, index) in editForm.activityServices"> <template v-for="(i, index) in editForm.activityServices">
<div :key="index" <div :key="index" class="flex-default">
class="flex-default">
{{ i.title }} {{ i.title }}
<span v-if="index != editForm.activityServices.length - 1">·</span> <span v-if="index != editForm.activityServices.length - 1">·</span>
</div> </div>
...@@ -93,16 +69,12 @@ ...@@ -93,16 +69,12 @@
</div> </div>
<div v-if="editForm.activityExperienceDTOs.length"> <div v-if="editForm.activityExperienceDTOs.length">
<div class="head-box"> <div class="head-box">
<img class="icon-head" <img class="icon-head" src="@/assets/seckillActivity/icon-default-head.png" />
src="@/assets/seckillActivity/icon-default-head.png" />
<span>虚拟人物1</span> <span>虚拟人物1</span>
</div> </div>
<div class="m-t-10">{{ editForm.activityExperienceDTOs[0].experience }}</div> <div class="m-t-10">{{ editForm.activityExperienceDTOs[0].experience }}</div>
<div v-if="editForm.activityExperienceDTOs[0].activityExperienceImgs.length"> <div v-if="editForm.activityExperienceDTOs[0].activityExperienceImgs.length">
<img class="img-w-h m-t-10" <img class="img-w-h m-t-10" v-for="(item, index) in editForm.activityExperienceDTOs[0].activityExperienceImgs" :key="index" :src="item" />
v-for="(item, index) in editForm.activityExperienceDTOs[0].activityExperienceImgs"
:key="index"
:src="item" />
</div> </div>
</div> </div>
</div> </div>
...@@ -129,8 +101,7 @@ ...@@ -129,8 +101,7 @@
</div> </div>
</div> </div>
<div> <div>
<img class="wechat-footer" <img class="wechat-footer" src="@/assets/seckillActivity/crowd-footer.png" />
src="@/assets/seckillActivity/crowd-footer.png" />
</div> </div>
</div> </div>
</div> </div>
...@@ -147,18 +118,16 @@ export default { ...@@ -147,18 +118,16 @@ export default {
props: { props: {
editForm: { editForm: {
type: Object, type: Object,
default: () => { default: () => { }
return {}
}
}, },
countDownObj: { countDownObj: {
type: Object, type: Object,
default: () => { default: () => { }
return {}
}
} }
}, },
mounted() { },
methods: {} methods: {}
} }
</script> </script>
......
...@@ -394,9 +394,10 @@ export default { ...@@ -394,9 +394,10 @@ export default {
// $GLBUTTION_PERMISSIONS: { routes = [], routerBase } // $GLBUTTION_PERMISSIONS: { routes = [], routerBase }
// } = this // } = this
// console.log(this.$GLBUTTION_PERMISSIONS) // console.log(this.$GLBUTTION_PERMISSIONS)
console.log(this.$GLBUTTION_PERMISSIONS) // console.log(this.$GLBUTTION_PERMISSIONS)
// debugger
let test = this.__getRoutes(this) let test = this.__getRoutes(this)
console.log(test, 'test') // console.log(test, 'test')
}, },
methods: { methods: {
......
...@@ -98,13 +98,6 @@ export default { ...@@ -98,13 +98,6 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName', optionLabel: 'confName',
optionsName: 'statusList' optionsName: 'statusList'
},
{
label: '门店',
name: 'merchantName',
type: 'input',
width: '215px',
maxlength: 20
} }
], ],
// 表格按钮 // 表格按钮
...@@ -212,11 +205,6 @@ export default { ...@@ -212,11 +205,6 @@ export default {
addHtml: 'activityImg' addHtml: 'activityImg'
}, },
{ {
label: '门店',
prop: 'merchantName',
width: 220
},
{
label: '浏览量(次)', label: '浏览量(次)',
prop: 'viewAmount', prop: 'viewAmount',
width: 140 width: 140
...@@ -226,14 +214,6 @@ export default { ...@@ -226,14 +214,6 @@ export default {
prop: 'saleAmount' prop: 'saleAmount'
}, },
{ {
label: '退单数',
prop: 'chargeBackNumber'
},
{
label: '核销数',
prop: 'verificationNumber'
},
{
label: '秒杀价(元)', label: '秒杀价(元)',
name: 'activityPrice', name: 'activityPrice',
width: 140, width: 140,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!