Commit 7d3d9b7c by 前端

Merge branch 'v3.2' of http://192.168.3.233:8090/saas/scrm-micro-battles into v3.2

2 parents 06466d83 b2df02b0
...@@ -2,7 +2,8 @@ import { http, http_common, http2, http_merchant } from '@/main' ...@@ -2,7 +2,8 @@ import { http, http_common, http2, http_merchant } from '@/main'
const defaultPath = 'scrm.api.carlife.' const defaultPath = 'scrm.api.carlife.'
const getMerchantGoodsListApi = params => { const getMerchantGoodsListApi = params => {
params.method = 'scrm.api.shopmall.goods.page.curMerchant' // params.method = 'scrm.api.shopmall.goods.page.curMerchant'
params.method = 'scrm.api.shopmall.goods.page.allMerchant'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
......
...@@ -133,7 +133,7 @@ const updateOrderType = params => { ...@@ -133,7 +133,7 @@ const updateOrderType = params => {
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
returnAll: false returnAll: true
}) })
} }
......
...@@ -15,7 +15,7 @@ const getActivityPageApi = params => { ...@@ -15,7 +15,7 @@ const getActivityPageApi = params => {
//分页众筹活动 //分页众筹活动
const getCrowdfundListApi = params => { const getCrowdfundListApi = params => {
params.method = 'scrm.api.shopmall.crowdfunding.activity.page' params.method = 'scrm.api.shopmall.all.crowdfunding.activity.page'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
...@@ -26,7 +26,7 @@ const getCrowdfundListApi = params => { ...@@ -26,7 +26,7 @@ const getCrowdfundListApi = params => {
// 众筹-导出 // 众筹-导出
const exportCrowdfundApi = params => { const exportCrowdfundApi = params => {
params.method = 'scrm.api.shopmall.crowdfunding.activity.export' params.method = 'scrm.api.shopmall.all.crowdfunding.activity.export'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
......
...@@ -84,7 +84,8 @@ const orderManageStatusList = [ ...@@ -84,7 +84,8 @@ const orderManageStatusList = [
// { confId: '7', confName: '待核销' }, // { confId: '7', confName: '待核销' },
// { confId: '8', confName: '已核销' }, // { confId: '8', confName: '已核销' },
{ confId: '9', confName: '售后中' }, { confId: '9', confName: '售后中' },
{ confId: '10', confName: '售后完成' } { confId: '10', confName: '售后完成' },
{ confId: '11', confName: '待审批' }
] ]
const orderSourceList = [ const orderSourceList = [
...@@ -202,6 +203,21 @@ const stateList = [ ...@@ -202,6 +203,21 @@ const stateList = [
} }
] ]
const businessType = [
{
optionId: 1,
optionLabel: '1.2'
},
{
optionId: 2,
optionLabel: '1.3'
},
{
optionId: 3,
optionLabel: '2.0'
}
]
function getExplorer() { function getExplorer() {
var ua = navigator.userAgent.toLocaleLowerCase() var ua = navigator.userAgent.toLocaleLowerCase()
var browserType = null var browserType = null
...@@ -244,4 +260,4 @@ function setMinHeight(calssName = '.edit-container') { ...@@ -244,4 +260,4 @@ function setMinHeight(calssName = '.edit-container') {
document.querySelector(calssName).style.minHeight = minHeight document.querySelector(calssName).style.minHeight = minHeight
} }
export { limitPrice, aToExport, orderManageStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, afterSaleStatusList, exportFn, setMinHeight, downLoadFile } export { limitPrice, aToExport, businessType, orderManageStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, afterSaleStatusList, exportFn, setMinHeight, downLoadFile }
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div :class="['glsx-combi-form', isEdit ? 'gl-form-page' : '']"> <div :class="['glsx-combi-form', isEdit ? 'gl-form-page' : '']">
<el-form :ref="formRef" :inline="true" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block"> <el-form :ref="formRef" :inline="true" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData"> <template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '154px' : labelWidth" :class="[{ 'no-label': !item.label, isBlock: isBlock }, { textBox: item.type == 'textBox' }]" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name"> <el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '154px' : labelWidth" :class="[{ 'no-label': !item.label, isBlock: isBlock },{'textBox':item.type=='textBox'}]" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label"> <span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
<span class="tips-label">{{ item.label }}</span> <span class="tips-label">{{ item.label }}</span>
<el-popover placement="top" width="200" trigger="hover" :content="item.tips"> <el-popover placement="top" width="200" trigger="hover" :content="item.tips">
...@@ -157,17 +157,13 @@ export default { ...@@ -157,17 +157,13 @@ export default {
// 默认是四个字符长度 // 默认是四个字符长度
default: '154px' default: '154px'
}, },
// labelPaddingRight: {
// type: Number,
// default: 15
// },
formData: { formData: {
type: Array, type: Array,
default: () => [] default: () => []
}, },
formObj: { formObj: {
type: Object, type: Object,
default: () => {} default: () => { }
}, },
hasTitle: { hasTitle: {
type: Boolean, type: Boolean,
...@@ -175,12 +171,12 @@ export default { ...@@ -175,12 +171,12 @@ export default {
}, },
formRules: { formRules: {
type: Object, type: Object,
default: () => {} default: () => { }
}, },
// 搜索+输入框/搜索组合组件,搜索栏绑值 // 搜索+输入框/搜索组合组件,搜索栏绑值
searchSelectObj: { searchSelectObj: {
type: Object, type: Object,
default: () => {} default: () => { }
} }
}, },
...@@ -190,7 +186,7 @@ export default { ...@@ -190,7 +186,7 @@ export default {
mapView mapView
}, },
mounted() {}, mounted() { },
methods: { methods: {
// 选择框-添加其他属性 // 选择框-添加其他属性
...@@ -449,6 +445,7 @@ export default { ...@@ -449,6 +445,7 @@ export default {
background-color: #f7f7f7; background-color: #f7f7f7;
border: 1px dotted #d9d9d9; border: 1px dotted #d9d9d9;
cursor: pointer; cursor: pointer;
margin-top: 10px;
} }
.glsx-combi-form .activity-Input { .glsx-combi-form .activity-Input {
......
...@@ -77,7 +77,7 @@ export default { ...@@ -77,7 +77,7 @@ export default {
map.addControl(new AMap.ToolBar()) map.addControl(new AMap.ToolBar())
this.geocoder = new AMap.Geocoder() this.geocoder = new AMap.Geocoder()
map.setDefaultCursor('pointer') map.setDefaultCursor('pointer')
AMap.plugin(['AMap.PlaceSearch'], function() { AMap.plugin(['AMap.PlaceSearch'], function () {
//构造地点查询类 //构造地点查询类
placeSearch = new AMap.PlaceSearch({ placeSearch = new AMap.PlaceSearch({
pageSize: 8, // 单页显示结果条数 pageSize: 8, // 单页显示结果条数
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
return true return true
} }
let _this = this let _this = this
placeSearch.search(query, function(status, result) { placeSearch.search(query, function (status, result) {
if (status === 'complete' && result.poiList.pois.length) { if (status === 'complete' && result.poiList.pois.length) {
_this.adrList = result.poiList.pois _this.adrList = result.poiList.pois
} }
......
<template> <template>
<div class="glsx-table"> <div class="glsx-table">
<el-scrollbar :native="false" wrapStyle="" wrapClass="" viewClass="" viewStyle="" noresize="false" tag="section"> <el-scrollbar :native="false"
<el-table id="initTable" :ref="tableParams.mutiSelectName + 'MutiTable' || 'MutiTable'" :data="getListApi ? data : tableData" :row-key="tableParams.mutiSelectUniqueKey || ''" v-loading="loading" :height="tableHeightValues" :border="border" :tableId="tableId" :highlight-current-row="true" :stripe="true" @sort-change="sortChange" @selection-change="handleSelect" :size="size" :header-cell-style="headerStyle"> wrapStyle=""
<el-table-column v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName" type="selection" width="55" :selectable="checkSelectable" :reserve-selection="true"></el-table-column> wrapClass=""
<el-table-column v-if="hasNum" align="center" width="60px" label="序号" type="index" :index="index => index + (page[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize] + 1"></el-table-column> viewClass=""
<el-table-column v-for="(item, index) in tableColumns" :key="index" :label="item.label" :prop="item.prop" :width="item.width" :min-width="item.minWidth" :align="item.align || 'center'" :sortable="item.sortable"> viewStyle=""
noresize="false"
tag="section">
<el-table id="initTable"
:ref="tableParams.mutiSelectName + 'MutiTable' || 'MutiTable'"
:data="getListApi ? data : tableData"
:row-key="tableParams.mutiSelectUniqueKey || ''"
v-loading="loading"
:height="tableHeightValues"
:border="border"
:tableId="tableId"
:highlight-current-row="true"
:stripe="true"
@sort-change="sortChange"
@selection-change="handleSelect"
:size="size"
:header-cell-style="headerStyle">
<el-table-column v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
type="selection"
width="55"
:selectable="checkSelectable"
:reserve-selection="true"></el-table-column>
<el-table-column v-if="hasNum"
align="center"
width="60px"
label="序号"
type="index"
:index="index => index + (page[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize] + 1">
</el-table-column>
<el-table-column v-for="(item, index) in tableColumns"
:key="index"
:label="item.label"
:prop="item.prop"
:width="item.width"
:min-width="item.minWidth"
:align="item.align || 'center'"
:sortable="item.sortable">
<template slot-scope="scope"> <template slot-scope="scope">
<slot v-if="item.addHtml" :name="item.addHtml" :scope="scope.row" :prop="item.prop" :width="item.width"></slot> <slot v-if="item.addHtml"
:name="item.addHtml"
:scope="scope.row"
:prop="item.prop"
:width="item.width"></slot>
<template v-else-if="item.formatter"> <template v-else-if="item.formatter">
<span class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }" :title="item.formatter(scope.row)" v-text="item.formatter(scope.row)"></span> <span class="line-ellipsis"
:style="{ '-webkit-line-clamp': item.line ? item.line : '' }"
:title="item.formatter(scope.row)"
v-text="item.formatter(scope.row)"></span>
</template> </template>
<template v-else-if="getListApi"> <template v-else-if="getListApi">
<span class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }" :title="scope.row[item.prop]" v-text="scope.row[item.prop]"></span> <span class="line-ellipsis"
:style="{ '-webkit-line-clamp': item.line ? item.line : '' }"
:title="scope.row[item.prop]"
v-text="scope.row[item.prop]"></span>
</template> </template>
<template v-else> <template v-else>
<span class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }" :title="tableData[scope.$index][item.prop]" v-text="tableData[scope.$index][item.prop]"></span> <span class="line-ellipsis"
:style="{ '-webkit-line-clamp': item.line ? item.line : '' }"
:title="tableData[scope.$index][item.prop]"
v-text="tableData[scope.$index][item.prop]"></span>
</template> </template>
<template v-if="item.addSymbol"> <template v-if="item.addSymbol">
<span v-text="item.addSymbol"></span> <span v-text="item.addSymbol"></span>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column v-if="tableParams.tableOption" label="操作" :align="tableParams.tableOption.align || 'center'" :width="tableParams.tableOption.width || '200'" fixed="right"> <el-table-column v-if="tableParams.tableOption"
label="操作"
:align="tableParams.tableOption.align || 'center'"
:width="tableParams.tableOption.width || '200'"
fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<slot name="auth-button" :scope="scope.row"></slot> <slot name="auth-button"
:scope="scope.row"></slot>
</template> </template>
</el-table-column> </el-table-column>
<template slot="empty" class="emptyBg"> <template slot="empty"
<img class="noDataImg" :src="noDataImg" v-if="noDataImg" alt="" /> class="emptyBg">
<img class="noDataImg"
:src="noDataImg"
v-if="noDataImg"
alt="" />
<div>{{ noDataText }}</div> <div>{{ noDataText }}</div>
<slot name="additionalContent"></slot> <slot name="additionalContent"></slot>
</template> </template>
</el-table> </el-table>
</el-scrollbar> </el-scrollbar>
<el-pagination v-if="hasPage" background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page[this.pageConf.pageNum]" :page-sizes="[10, 20, 30, 40]" :page-size="page[this.pageConf.pageSize]" :total="getListApi ? total : tableTotal" :layout="layout"></el-pagination> <el-pagination v-if="hasPage"
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="page[this.pageConf.pageNum]"
:page-sizes="[10, 20, 30, 40]"
:page-size="page[this.pageConf.pageSize]"
:total="getListApi ? total : tableTotal"
:layout="layout"></el-pagination>
</div> </div>
</template> </template>
...@@ -76,7 +142,7 @@ export default { ...@@ -76,7 +142,7 @@ export default {
}, },
headerStyle: { headerStyle: {
type: Object, type: Object,
default: () => {} default: () => { }
}, },
//表格需要多传入一个id的情况 //表格需要多传入一个id的情况
tableId: { tableId: {
...@@ -86,7 +152,7 @@ export default { ...@@ -86,7 +152,7 @@ export default {
// 搜索条件 // 搜索条件
searchForm: { searchForm: {
type: Object, type: Object,
default: () => {} default: () => { }
}, },
// 是否定制表头 // 是否定制表头
isCustomHead: { isCustomHead: {
......
...@@ -19,8 +19,8 @@ export const fetchConfig = function(isEnv = true) { ...@@ -19,8 +19,8 @@ export const fetchConfig = function(isEnv = true) {
// return Promise.resolve(cfg) // return Promise.resolve(cfg)
// } // }
//return window.fetch('https://', {}).then(res => res.json()) //return window.fetch('https://', {}).then(res => res.json())
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config') return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config')
return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config') // return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -11,7 +11,7 @@ let router = null ...@@ -11,7 +11,7 @@ let router = null
let instance = null let instance = null
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, sign_common, request_common, merchantId } = await fetchConfig() const { response, request, sign, secret, sign_common, request_common, merchantId } = await fetchConfig()
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$merchantId = merchantId Vue.prototype.$merchantId = merchantId
...@@ -28,8 +28,8 @@ export async function bootstrap({ history, common, messenger, globalState }) { ...@@ -28,8 +28,8 @@ export async function bootstrap({ history, common, messenger, globalState }) {
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData) routes = getRoutes(routesData)
subscribe({ messenger }) subscribe({ messenger })
// Vue.use(GLButton, { routes, routerBase }) Vue.use(GLButton, { routes, routerBase })
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] }) // Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
} }
export async function mount(props) { export async function mount(props) {
const insts = render(props.routerBase, routes) const insts = render(props.routerBase, routes)
......
...@@ -167,7 +167,8 @@ export default { ...@@ -167,7 +167,8 @@ export default {
}, },
handleClose() { handleClose() {
this.$emit('handleStoreClose') // console.log('handleStoreClose')
this.$emit('handleStaffClose')
}, },
handleConfirm() { handleConfirm() {
if (!this.staffUuid) if (!this.staffUuid)
......
...@@ -109,16 +109,32 @@ ...@@ -109,16 +109,32 @@
<div slot="assignName" <div slot="assignName"
slot-scope="scope"> slot-scope="scope">
<div> <div>
<template v-if="scope.scope.assignStaffName">
<img class="img-36 pointer img-circle" <img class="img-36 pointer img-circle"
:src="scope.scope.assignStaffImageUrl || scope.scope.shareStaffImageUrl" /> v-if="scope.scope.assignStaffImageUrl"
<span>{{ scope.scope.assignStaffName || scope.scope.shareStaffName }}</span> :src="scope.scope.assignStaffImageUrl" />
<span class="m-l-10">
<span>{{ scope.scope.assignStaffName }}</span>
</span>
</template>
<template v-else-if="scope.scope.shareStaffName">
<img class="img-36 pointer img-circle"
v-if="scope.scope.shareStaffImageUrl"
:src="scope.scope.shareStaffImageUrl" />
<span class="m-l-10">
<span>{{ scope.scope.shareStaffName }}</span>
</span>
</template>
<template v-else>
<span>{{ scope.scope.assignStaffName || scope.scope.shareStaffName || '-' }}</span>
</template>
<span @click="handlerAssign(scope.scope)" <span @click="handlerAssign(scope.scope)"
class="assignLabel">指派</span> class="assignLabel">指派</span>
</div> </div>
</div> </div>
<div slot="orderType" <div slot="orderType"
slot-scope="scope"> slot-scope="scope">
<el-switch v-model="scope.scope.orderType" <el-switch :value="scope.scope.orderType == 1 ? true : false"
class="switchStyle" class="switchStyle"
@change="changeOrderType(scope.scope)" @change="changeOrderType(scope.scope)"
active-text="是" active-text="是"
...@@ -287,8 +303,9 @@ ...@@ -287,8 +303,9 @@
<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 { utils } from 'glsx-common'
import selectStaff from './components/selectStaff.vue' import selectStaff from './components/selectStaff.vue'
import { orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn } from '@/common/constant' import { businessType, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn } from '@/common/constant'
export default { export default {
name: 'orderManage', name: 'orderManage',
components: { components: {
...@@ -507,6 +524,15 @@ export default { ...@@ -507,6 +524,15 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName', optionLabel: 'confName',
optionsName: 'testSheetTypeList' optionsName: 'testSheetTypeList'
},
{
label: '业务场景',
name: 'businessType',
type: 'select',
optionList: [],
optionId: 'optionId',
optionLabel: 'optionLabel',
optionsName: 'businessTypeList'
} }
], ],
// 快递信息 // 快递信息
...@@ -621,7 +647,7 @@ export default { ...@@ -621,7 +647,7 @@ export default {
}, },
listeners: { listeners: {
click: row => { click: row => {
this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode }) this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode }, () => { }, this.searchForm.requestSource != 0)
} }
} }
}, },
...@@ -689,7 +715,7 @@ export default { ...@@ -689,7 +715,7 @@ export default {
}, },
condition: row => { condition: row => {
// return true // return true
return row.afterSaleStatus == 11 return row.orderStatus == 11
}, },
listeners: { listeners: {
click: this.handleWriteOffApproval click: this.handleWriteOffApproval
...@@ -786,6 +812,20 @@ export default { ...@@ -786,6 +812,20 @@ export default {
width: 160 width: 160
}, },
{ {
label: '业务场景',
prop: 'businessType',
width: 120,
formatter: cellValue => {
let type = cellValue.businessType
if (type) {
return businessType.find(item => item.optionId == type).optionLabel
} else {
return '-'
}
}
},
{
label: '商品名称', label: '商品名称',
prop: '', prop: '',
width: '120', width: '120',
...@@ -879,7 +919,8 @@ export default { ...@@ -879,7 +919,8 @@ export default {
testSheetTypeList: [ testSheetTypeList: [
{ confId: '0', confName: '否' }, { confId: '0', confName: '否' },
{ confId: '1', confName: '是' } { confId: '1', confName: '是' }
] ],
businessTypeList: utils.deepClone(businessType)
} }
} }
}, },
...@@ -968,21 +1009,23 @@ export default { ...@@ -968,21 +1009,23 @@ export default {
// 改变订单类型 // 改变订单类型
changeOrderType(item) { changeOrderType(item) {
console.log(item) console.log(item)
// return
let params = { let params = {
orderCode: item.orderCode, subOrderCode: item.orderCode,
orderType: item.orderType ? 0 : 1 orderType: item.orderType ? 0 : 1
} }
this.$apis.orderManage this.secondConfirm('测试单', '测试单数据不纳入对应战报和喜报的排名展示', 'orderManage', 'updateOrderType', params, false)
.updateOrderType(params) // return
.then(result => {
this.handleSearch() // this.$apis.orderManage
}) // .updateOrderType(params)
.catch(err => { // .then(result => {
console.log(err) // this.handleSearch()
}) // })
}, // .catch(err => {
secondConfirm(title, txt, apiModule, apiName, apiParams, fn) { // console.log(err)
// })
},
secondConfirm(title, txt, apiModule, apiName, apiParams, fn, isResetPage = true) {
this.$confirm(txt, title, { this.$confirm(txt, title, {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
...@@ -996,7 +1039,8 @@ export default { ...@@ -996,7 +1039,8 @@ export default {
}) })
if (res.code == '0') { if (res.code == '0') {
fn && fn() fn && fn()
this.handleSearch() // this.handleSearch()
isResetPage ? this.handleSearch() : this.$refs.allOrderRef.refreshTable(false)
} }
}) })
} }
...@@ -1080,7 +1124,7 @@ export default { ...@@ -1080,7 +1124,7 @@ export default {
}) })
if (res.code == '0') { if (res.code == '0') {
this.handleWriteOffClose() this.handleWriteOffClose()
this.handleSearch() this.searchForm.requestSource == 0 ? this.$refs.allOrderRef.refreshTable(false) : this.handleSearch()
} }
}) })
} }
...@@ -1088,6 +1132,7 @@ export default { ...@@ -1088,6 +1132,7 @@ export default {
}, },
handleStaffClose() { handleStaffClose() {
console.log('dialogVisible')
this.isStaffVisible = !this.isStaffVisible this.isStaffVisible = !this.isStaffVisible
}, },
handleDialogConfirm() { handleDialogConfirm() {
...@@ -1096,7 +1141,7 @@ export default { ...@@ -1096,7 +1141,7 @@ export default {
}, },
handleWriteOff(row) { handleWriteOff(row) {
if (row.orderSource == 4) { if (row.orderSource == 4) {
this.secondConfirm('订单核销', '请确定是否核销此订单?', 'orderManage', 'crowdFundWriteOffApi', { orderCode: row.orderCode }) this.secondConfirm('订单核销', '请确定是否核销此订单?', 'orderManage', 'crowdFundWriteOffApi', { orderCode: row.orderCode }, () => { }, this.searchForm.requestSource != 0)
return true return true
} }
this.isWriteOffVisible = !this.isWriteOffVisible this.isWriteOffVisible = !this.isWriteOffVisible
...@@ -1126,7 +1171,7 @@ export default { ...@@ -1126,7 +1171,7 @@ export default {
}) })
if (res.code == '0') { if (res.code == '0') {
this.handleExamineClose() this.handleExamineClose()
this.handleSearch() this.searchForm.requestSource == 0 ? this.$refs.allOrderRef.refreshTable(false) : this.handleSearch()
} }
}) })
}, },
......
...@@ -15,11 +15,13 @@ ...@@ -15,11 +15,13 @@
<span slot="footer"> <span slot="footer">
<el-button :size="size" <el-button :size="size"
type="primary" type="primary"
@click="getList">查询</el-button> @click="resetTable">查询</el-button>
</span> </span>
</glsx-combi-form> </glsx-combi-form>
<!-- : :hasPage="false" <!-- : :hasPage="false"
:hasNum="false" :tableData="storeList" --> :getListApi="getListApi"
:tableData="storeList" -->
<GLTable ref="storeRef" <GLTable ref="storeRef"
:noDataImg="url" :noDataImg="url"
:tableTotal="total" :tableTotal="total"
...@@ -27,7 +29,8 @@ ...@@ -27,7 +29,8 @@
:tableParams="tableParams" :tableParams="tableParams"
:pageConf="pageConf" :pageConf="pageConf"
@refreshTable="getList" @refreshTable="getList"
:getListApi="getListApi" :tableData="storeList"
:hasNum="false"
:setTableFinishFun="setTableFinishFun"> :setTableFinishFun="setTableFinishFun">
<div slot="radioHtml" <div slot="radioHtml"
class="store-table" class="store-table"
...@@ -58,7 +61,7 @@ export default { ...@@ -58,7 +61,7 @@ export default {
}, },
getListApi: this.$apis.common.getMerchantList, getListApi: this.$apis.common.getMerchantList,
total: 0, total: 0,
// storeList: [], storeList: [],
heightBox: 200, heightBox: 200,
merchantId: '', merchantId: '',
merchantName: '', merchantName: '',
...@@ -81,10 +84,15 @@ export default { ...@@ -81,10 +84,15 @@ export default {
labelWidth: '10px' labelWidth: '10px'
} }
], ],
pageConfig: {
pageSize: 10,
currentPage: 1
},
// 表格 // 表格
// getListApi: this.$apis.common.getstaffTreeListApi, // getListApi: this.$apis.common.getstaffTreeListApi,
tableParams: { tableParams: {
listName: 'list', listName: 'list',
// tableOption: true, // tableOption: true,
// 行数据的key // 行数据的key
// mutiSelectUniqueKey: 'staffId', // mutiSelectUniqueKey: 'staffId',
...@@ -99,17 +107,24 @@ export default { ...@@ -99,17 +107,24 @@ export default {
width: 80, width: 80,
addHtml: 'radioHtml' addHtml: 'radioHtml'
}, },
// { {
// label: '序号', label: '序号',
// prop: 'idx', prop: 'idx',
// width: 80 width: 80
// }, },
{ {
label: '商户名称', label: '商户名称',
prop: 'merchantName', prop: 'merchantName',
formatter: cellValue => { formatter: cellValue => {
return cellValue.merchantName || '-' return cellValue.merchantName || '-'
} }
},
{
label: '商户id',
prop: 'merchantNo',
formatter: cellValue => {
return cellValue.merchantNo || '-'
}
} }
] ]
}, },
...@@ -144,30 +159,44 @@ export default { ...@@ -144,30 +159,44 @@ export default {
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.merchantId = this.merchantInfo this.merchantId = this.merchantInfo
// this.getList() this.getList()
}, },
methods: { methods: {
getList() { getList(pageCon) {
console.log(pageCon, 'pageCon')
pageCon && (this.pageConfig = pageCon)
var params = { var params = {
merchantId: this.merchantId, merchantId: this.merchantId,
...this.searchForm,
...this.pageConfig
// merchantId: '44209390', // merchantId: '44209390',
...this.searchForm
} }
// this.$apis.common.getSimpleMerchantList(params).then(res => { console.log(params)
// console.log(res)
// this.storeList = res this.$apis.common.getMerchantList(params).then(res => {
console.log(res)
this.storeList = res.list
this.total = res.total
// // this.storeList = res.staffUnitList // // this.storeList = res.staffUnitList
// // this.total = res.total
// // var page = this.$refs.staffRef.page // // var page = this.$refs.staffRef.page
// // // 添加序号 // // // 添加序号
// this.storeList.forEach((item, index) => { // pageConfig
// item.idx = index + 1 let nowIndex = this.pageConfig.pageSize * (this.pageConfig.currentPage - 1)
// }) console.log(nowIndex)
this.storeList.forEach((item, index) => {
item.idx = index + 1 + nowIndex
})
console.log(this.storeList)
// this.$refs.staffRef.tableHeightValues = '460px' // this.$refs.staffRef.tableHeightValues = '460px'
// }) // })
})
},
resetTable() {
this.$refs.storeRef && this.$refs.storeRef.refreshTable()
this.getList()
}, },
setTableFinishFun() { setTableFinishFun() {
// console.log(this.$refs.staffRef.data) // console.log(this.$refs.staffRef.data)
// this.storeList = this.$refs.staffRef.data // this.storeList = this.$refs.staffRef.data
......
...@@ -161,7 +161,9 @@ export default { ...@@ -161,7 +161,9 @@ export default {
fn: '编辑众筹' fn: '编辑众筹'
}, },
condition: row => { condition: row => {
return row.activityStatus == '1' || row.activityStatus == '2' || row.activityStatus == '3' // 结束的直播不能再开
return ['1', '2'].includes(row.activityStatus)
// return ['1','2','3'].includes(row.activityStatus )
}, },
listeners: { listeners: {
click: row => { click: row => {
...@@ -389,7 +391,7 @@ export default { ...@@ -389,7 +391,7 @@ export default {
}, },
mounted() { mounted() {
// this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
// const { // const {
// $GLBUTTION_PERMISSIONS: { routes = [], routerBase } // $GLBUTTION_PERMISSIONS: { routes = [], routerBase }
// } = this // } = this
......
...@@ -94,21 +94,28 @@ ...@@ -94,21 +94,28 @@
type="default" type="default"
@click="handleExport('dailyOrders')">导出</el-button> @click="handleExport('dailyOrders')">导出</el-button>
</div> </div>
<el-table v-if="DailyOrderQuantityList.length"
<el-table :data="DailyOrderQuantityListFormat" :data="DailyOrderQuantityListFormat"
style="width: 100%"> style="width: 100%">
<el-table-column :formatter="formatterHeader" <el-table-column :formatter="formatterHeader"
label=""></el-table-column> label=""></el-table-column>
<!-- width="140px" -->
<el-table-column v-for="(item, index) in DailyOrderQuantityList" <el-table-column v-for="(item, index) in DailyOrderQuantityList"
:key="index" :key="index"
:prop="item" :prop="item"
width="140px"
:label="item.day"> :label="item.day">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.$index ? item.currentOrderQuantity : item.specificDate }}</span> <span>{{ scope.$index ? item.currentOrderQuantity : item.specificDate }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :formatter="formatterEnd"
fixed="right"
label="总计"></el-table-column>
</el-table> </el-table>
<div v-else>
<img src="url"
alt="" />
</div>
</div> </div>
</div> </div>
<div class="data-board-box"> <div class="data-board-box">
...@@ -139,14 +146,13 @@ ...@@ -139,14 +146,13 @@
@click="handleExport('liveData')">导出</el-button> @click="handleExport('liveData')">导出</el-button>
</div> </div>
<!-- :searchForm="tableSearchForm" --> <!-- :searchForm="tableSearchForm" -->
<GLTable ref="dataTableRef" <GLTable ref="dataTableRefDetailPage"
:getListApi="getLiveDetailPage" :getListApi="getLiveDetailPage"
:noDataImg="url" :noDataImg="url"
:tableParams="liveTableParams" :tableParams="liveTableParams"
:searchForm="LiveTableSearchForm" :searchForm="LiveTableSearchForm"
:pageConf="pageConf" :pageConf="pageConf"
:beforeSearchFn="beforeSearchFn" :beforeSearchFn="beforeSearchFn">
@setTableFinishFun="setTableFinishFun">
<div slot="weChatName" <div slot="weChatName"
class="flex-align" class="flex-align"
slot-scope="scope"> slot-scope="scope">
...@@ -195,6 +201,7 @@ export default { ...@@ -195,6 +201,7 @@ export default {
return { return {
url, url,
dataList, dataList,
totalCount: 0,
searchForm: { searchForm: {
statDate: dayjs().format('YYYY-MM-DD') statDate: dayjs().format('YYYY-MM-DD')
}, },
...@@ -202,6 +209,7 @@ export default { ...@@ -202,6 +209,7 @@ export default {
baseData: { baseData: {
searchOrderStatusList: orderManageStatusList.filter(item => ['1', '3', '21', '22', '6', '9'].includes(item.confId)) searchOrderStatusList: orderManageStatusList.filter(item => ['1', '3', '21', '22', '6', '9'].includes(item.confId))
}, },
DailyOrderQuantityList: [],
DailyOrderQuantityListFormat: [{}, {}], DailyOrderQuantityListFormat: [{}, {}],
searchFormData: [ searchFormData: [
{ {
...@@ -213,7 +221,8 @@ export default { ...@@ -213,7 +221,8 @@ export default {
} }
], ],
searchRankForm: { searchRankForm: {
statDimension: '1' statDimension: '1',
shareName: ''
}, },
searchFormRankData: [ searchFormRankData: [
{ {
...@@ -225,6 +234,12 @@ export default { ...@@ -225,6 +234,12 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName', optionLabel: 'confName',
optionsName: 'statusList' optionsName: 'statusList'
},
{
label: '员工名称',
name: 'shareName',
type: 'input',
maxlength: 100
} }
], ],
getListApi: this.$apis.seckillActivity.getRankListApi, getListApi: this.$apis.seckillActivity.getRankListApi,
...@@ -376,11 +391,17 @@ export default { ...@@ -376,11 +391,17 @@ export default {
.getDailyOrderQuantityStatistics({ id: this.activityId }) .getDailyOrderQuantityStatistics({ id: this.activityId })
.then(result => { .then(result => {
console.log(result) console.log(result)
// let totalCount = {
// currentOrderQuantity: 0,
// specificDate: '',
// day: '总计'
// }
if (result.length) { if (result.length) {
this.DailyOrderQuantityList = result.reduce((arr, item, index) => { this.totalCount = result.reduce((total, item, index, arr) => {
return arr return (total += item.currentOrderQuantity)
}, []) }, 0)
} }
// result.push(totalCount)
this.DailyOrderQuantityList = result || [] this.DailyOrderQuantityList = result || []
}) })
.catch(err => { .catch(err => {
...@@ -390,6 +411,7 @@ export default { ...@@ -390,6 +411,7 @@ export default {
getParams() { getParams() {
let { activityId } = this.$route.query, let { activityId } = this.$route.query,
params = JSON.parse(JSON.stringify(this.searchRankForm)) params = JSON.parse(JSON.stringify(this.searchRankForm))
console.log(params)
params.activityId = activityId params.activityId = activityId
return params return params
}, },
...@@ -428,12 +450,11 @@ export default { ...@@ -428,12 +450,11 @@ export default {
//接收到的数据为空 //接收到的数据为空
this.$refs.dataTableRef.data.length ? (this.$refs.dataTableRef.tableHeightValues = '') : this.$refs.dataTableRef.setTableHeightFun() this.$refs.dataTableRef.data.length ? (this.$refs.dataTableRef.tableHeightValues = '') : this.$refs.dataTableRef.setTableHeightFun()
}, },
formatterHeader(row, column) { formatterHeader(row, column, cellValue, index) {
if (row == 0) { return index == 0 ? '活动日期' : '订单量'
return '活动日期' },
} else { formatterEnd(row, column, cellValue, index) {
return '订单量' return index == 1 ? this.totalCount : ''
}
} }
} }
} }
......
<!-- 众筹活动 --> <!-- 众筹活动 -->
<template> <template>
<div v-loading="loading" <div v-loading="loading" class="edit-activity">
class="edit-activity">
<!-- 导航 --> <!-- 导航 -->
<el-tabs :tab-position="tabPosition" <el-tabs :tab-position="tabPosition" v-model="tabName" class="nav-tabs" @tab-click="whereToGo(tabName)">
v-model="tabName" <el-tab-pane label="基本信息" name="basic"></el-tab-pane>
class="nav-tabs" <el-tab-pane label="活动配置" name="config"></el-tab-pane>
@tab-click="whereToGo(tabName)">
<el-tab-pane label="基本信息"
name="basic"></el-tab-pane>
<el-tab-pane label="活动配置"
name="config"></el-tab-pane>
<el-tab-pane name="activityServices"> <el-tab-pane name="activityServices">
<span class="p-l-23" <span class="p-l-23" slot="label">服务说明</span>
slot="label">服务说明</span>
</el-tab-pane> </el-tab-pane>
<el-tab-pane name="activityCommoditys"> <el-tab-pane name="activityCommoditys">
<span class="p-l-23" <span class="p-l-23" slot="label">商品答疑</span>
slot="label">商品答疑</span>
</el-tab-pane> </el-tab-pane>
<el-tab-pane name="activityExperienceDTOs"> <el-tab-pane name="activityExperienceDTOs">
<span class="p-l-23" <span class="p-l-23" slot="label">服务评价</span>
slot="label">服务评价</span>
</el-tab-pane> </el-tab-pane>
<el-tab-pane name="live"> <el-tab-pane name="live">
<span class="p-l-23" <span class="p-l-23" slot="label">直播配置</span>
slot="label">直播配置</span>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<div class="marketing edit-box"> <div class="marketing edit-box">
<!-- 基本信息 --> <!-- 基本信息 -->
<div class="container edit-container" <div class="container edit-container" style="min-height: 520px !important;">
style="min-height: 520px !important;"> <p class="edit-title" id="basic">基本信息</p>
<p class="edit-title" <glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
id="basic">基本信息</p>
<glsx-combi-form class="edit-form-container"
ref="editFormRef"
:isEdit="true"
:isBlock="true"
:formRef="editChildRef"
:formObj="editForm"
:formData="editFormData"
:formRules="editRule">
<div slot="merchantHtml"> <div slot="merchantHtml">
<el-button type="default" <el-button type="default" class="el-icon-plus" v-if="!isDisabled" @click="handleRelateStoreClose">选择门店</el-button>
class="el-icon-plus" <div class="merchantNameLabel" v-if="editForm.merchantName">
v-if="!isDisabled" <p>所属门店</p>
@click="handleRelateStoreClose">选择门店</el-button> <div class="merchantName ellipsis-1">{{ editForm.merchantName }}</div>
<span v-if="editForm.merchantName"
class="merchantNameLabel">门店名称: {{ editForm.merchantName }}</span>
</div> </div>
<div slot="activityImg" </div>
class="edit-tips m-t-8">展示在首页的活动详情页</div> <div slot="activityImg" class="edit-tips m-t-8">展示在首页的活动详情页</div>
<template slot="activityTimeHtml" <template slot="activityTimeHtml" slot-scope="scope">
slot-scope="scope"> <el-date-picker v-model="editForm.activityTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :default-time="['00:00:00', '23:59:59']" :disabled="isDisabled" @change="e => handleTimeChange(e, scope.scope)"></el-date-picker>
<el-date-picker v-model="editForm.activityTime"
type="datetimerange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
value-format="yyyy-MM-dd HH:mm:ss"
:default-time="['00:00:00', '23:59:59']"
:disabled="isDisabled"
@change="e => handleTimeChange(e, scope.scope)"></el-date-picker>
</template> </template>
<div slot="goodsHtml"> <div slot="goodsHtml" style="width:700px">
<el-button type="default" <el-button type="default" class="el-icon-plus" v-if="!isDisabled" @click="handleRelateProClose">选择商品</el-button>
class="el-icon-plus" <div v-if="selectedProInfo.id && !specificationDetailList.length" style="margin-top: 10px">
v-if="!isDisabled"
@click="handleRelateProClose">选择商品</el-button>
<div v-if="selectedProInfo.id && !specificationDetailList.length"
style="margin-top: 10px">
<p> <p>
<img class="img-60" <img class="img-60" :src="selectedProInfo.goodsImage" />
:src="selectedProInfo.goodsImage" /> &nbsp;&nbsp;&nbsp; 零售价 {{ (selectedProInfo.retailPrice / 100).toFixed(2) }}元 &nbsp;&nbsp;&nbsp; 商品库存 {{ selectedProInfo.goodsStock }}件
&nbsp;&nbsp;&nbsp; 零售价 {{ (selectedProInfo.retailPrice / 100).toFixed(2) }}元
&nbsp;&nbsp;&nbsp; 商品库存 {{ selectedProInfo.goodsStock }}件
</p> </p>
<el-form-item label="定金:" <el-form-item label="定金:" prop="activityPrice" id="activityPrice">
prop="activityPrice" <el-input v-model="editForm.activityPrice" style="width: 150px" :disabled="isDisabled"><span slot="append">元</span></el-input>
id="activityPrice"> <span class="balancePayment">尾款: {{ editForm.crowdFundingPrice | filterBalancePayment(editForm.activityPrice) }}</span>
<el-input v-model="editForm.activityPrice"
style="width: 150px"
:disabled="isDisabled"><span slot="append">元</span></el-input>
<span class="balancePayment">尾款:
{{ editForm.crowdFundingPrice - editForm.activityPrice || '' }}</span>
</el-form-item> </el-form-item>
<el-form-item label="众筹价:" <el-form-item label="众筹价:" prop="crowdFundingPrice" id="crowdFundingPrice">
prop="crowdFundingPrice" <el-input v-model="editForm.crowdFundingPrice" style="width: 150px" :disabled="isDisabled"><span slot="append">元</span></el-input>
id="crowdFundingPrice">
<el-input v-model="editForm.crowdFundingPrice"
style="width: 150px"
:disabled="isDisabled"><span slot="append">元</span></el-input>
</el-form-item> </el-form-item>
<el-form-item label="活动库存:" <el-form-item label="活动库存:" prop="goodsStock" id="goodsStock">
prop="goodsStock" <el-input v-model="editForm.goodsStock" style="width: 150px" :disabled="isDisabled"><span slot="append">件</span></el-input>
id="goodsStock">
<el-input v-model="editForm.goodsStock"
style="width: 150px"
:disabled="isDisabled"><span slot="append">件</span></el-input>
</el-form-item> </el-form-item>
</div> </div>
</div> </div>
<div slot="specificationsHtml" <div slot="specificationsHtml" v-if="specificationDetailList.length" class="flex" style="min-width: 600px" id="specificationDetailList">
v-if="specificationDetailList.length"
class="flex"
style="min-width: 600px"
id="specificationDetailList">
<div style="width: calc(100%)"> <div style="width: calc(100%)">
<table class="table-spesc" <table class="table-spesc" style="width: calc(100%)">
style="width: calc(100%)">
<tbody> <tbody>
<tr> <tr>
<td :style="{ width: specsWidth }" <td :style="{ width: specsWidth }" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">{{ subItem.specificationName }}</td>
v-for="(subItem, subIndex) in specificationDetailList"
:key="subIndex">{{ subItem.specificationName }}</td>
<td :style="{ width: specsWidth }">零售价(元)</td> <td :style="{ width: specsWidth }">零售价(元)</td>
<td :style="{ width: specsWidth }">库存</td> <td :style="{ width: specsWidth }">库存</td>
<td :style="{ width: specsWidth }">设置秒杀价</td> <td :style="{ width: specsWidth }">设置秒杀价</td>
...@@ -123,55 +67,31 @@ ...@@ -123,55 +67,31 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<table class="table-spesc" <table class="table-spesc" style="max-height: 400px">
style="max-height: 400px">
<tbody> <tbody>
<tr style="border-bottom: 1px solid rgb(235, 235, 235)" <tr style="border-bottom: 1px solid rgb(235, 235, 235)" v-for="(item, index) in nameToValSpecsList" :key="index">
v-for="(item, index) in nameToValSpecsList" <td :style="{ width: specsWidth }" v-for="(n, idx) in item.specsValueList" :key="idx">{{ n }}</td>
:key="index">
<td :style="{ width: specsWidth }"
v-for="(n, idx) in item.specsValueList"
:key="idx">{{ n }}</td>
<td :style="{ width: specsWidth }">{{ item.retailPrice }}元</td> <td :style="{ width: specsWidth }">{{ item.retailPrice }}元</td>
<td :style="{ width: specsWidth }">{{ item.stock }}件</td> <td :style="{ width: specsWidth }">{{ item.stock }}件</td>
<td :style="{ width: specsWidth }"> <td :style="{ width: specsWidth }">
<el-input :disabled="isDisabled" <el-input :disabled="isDisabled" placeholder="秒杀价" style="width: 90%" v-model="item.activityPrice" @input="item.activityPrice = activityPrice_input($event, item.retailPrice)"></el-input>
placeholder="秒杀价"
style="width: 90%"
v-model="item.activityPrice"
@input="item.activityPrice = activityPrice_input($event, item.retailPrice)">
</el-input>
</td> </td>
<td :style="{ width: specsWidth }"> <td :style="{ width: specsWidth }">
<el-input :disabled="isDisabled" <el-input :disabled="isDisabled" placeholder="活动库存" style="width: 90%" v-model="item.goodsStock" @input="item.goodsStock = goodsStock_input($event, item.stock)"></el-input>
placeholder="活动库存"
style="width: 90%"
v-model="item.goodsStock"
@input="item.goodsStock = goodsStock_input($event, item.stock)">
</el-input>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
<template slot="limitPurchaseFlag" <template slot="limitPurchaseFlag" slot-scope="scope">
slot-scope="scope"> <el-radio-group v-model="editForm[scope.scope.name]" @change="handleIsLimit">
<el-radio-group v-model="editForm[scope.scope.name]" <el-radio v-for="(item, index) in scope.scope.optionList" :key="index" :label="item[scope.scope.optionId]" :disabled="isDisabled">{{ item[scope.scope.optionLabel] }}</el-radio>
@change="handleIsLimit">
<el-radio v-for="(item, index) in scope.scope.optionList"
:key="index"
:label="item[scope.scope.optionId]"
:disabled="isDisabled">{{ item[scope.scope.optionLabel] }}</el-radio>
</el-radio-group> </el-radio-group>
<p v-if="editForm[scope.scope.name] == 2" <p v-if="editForm[scope.scope.name] == 2" id="limitPurchaseNumber" style="color: #333333;">
id="limitPurchaseNumber"
style="color: #333333;">
每人限购 每人限购
<el-form-item prop="limitPurchaseNumber"> <el-form-item prop="limitPurchaseNumber">
<el-input v-model="editForm.limitPurchaseNumber" <el-input v-model="editForm.limitPurchaseNumber" placeholder="请输入限购次数" :disabled="isDisabled"></el-input>
placeholder="请输入限购次数"
:disabled="isDisabled"></el-input>
</el-form-item> </el-form-item>
件 件
</p> </p>
...@@ -180,76 +100,35 @@ ...@@ -180,76 +100,35 @@
</div> </div>
<!-- 活动配置 --> <!-- 活动配置 -->
<div class="container edit-container crowd-config"> <div class="container edit-container crowd-config">
<p class="edit-title" <p class="edit-title" id="config">活动配置</p>
id="config">活动配置</p> <glsx-combi-form class="edit-form-container" ref="configEditFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="configEditFormData" :formRules="editRule">
<glsx-combi-form class="edit-form-container" <template slot="customerServiceFlag" slot-scope="scope">
ref="configEditFormRef"
:isEdit="true"
:isBlock="true"
:formRef="editChildRef"
:formObj="editForm"
:formData="configEditFormData"
:formRules="editRule">
<template slot="customerServiceFlag"
slot-scope="scope">
<el-radio-group v-model="editForm[scope.scope.name]"> <el-radio-group v-model="editForm[scope.scope.name]">
<el-radio v-for="(item, index) in scope.scope.optionList" <el-radio v-for="(item, index) in scope.scope.optionList" :key="index" :label="item[scope.scope.optionId]">{{ item[scope.scope.optionLabel] }}</el-radio>
:key="index"
:label="item[scope.scope.optionId]">{{ item[scope.scope.optionLabel] }}
</el-radio>
</el-radio-group> </el-radio-group>
<div class="customer-service" <div class="customer-service" v-if="editForm[scope.scope.name] == 2" id="customerServiceFlag">
v-if="editForm[scope.scope.name] == 2" <glsx-combi-form class="edit-form-container" ref="customerEditFormRef" :isEdit="true" :isBlock="false" :formRef="editChildRef" :formObj="editForm" :formData="customerEditFormData" :formRules="editRule"></glsx-combi-form>
id="customerServiceFlag">
<glsx-combi-form class="edit-form-container"
ref="customerEditFormRef"
:isEdit="true"
:isBlock="false"
:formRef="editChildRef"
:formObj="editForm"
:formData="customerEditFormData"
:formRules="editRule"></glsx-combi-form>
</div> </div>
</template> </template>
<template slot="activityMusic" <template slot="activityMusic" slot-scope="scope">
slot-scope="scope">
<div class="flex"> <div class="flex">
<div class="music-box flex-center" <div class="music-box flex-center" v-for="(item, index) in musicList" :key="index" @click="handleMusicChange(index)">
v-for="(item, index) in musicList" <div class="music-icon" @click.stop="handleMusic(item, index)">
:key="index"
@click="handleMusicChange(index)">
<div class="music-icon"
@click.stop="handleMusic(item, index)">
<div :class="[index != playObj.idx ? 'icon-start' : 'icon-stop']"></div> <div :class="[index != playObj.idx ? 'icon-start' : 'icon-stop']"></div>
<img src="@/assets/seckillActivity/icon-music-default.png" /> <img src="@/assets/seckillActivity/icon-music-default.png" />
</div> </div>
<div class="music-name"> <div class="music-name">
<p class="ellipsis-1" <p class="ellipsis-1" style="max-width: 90%;">{{ item.name }}</p>
style="max-width: 90%;">{{ item.name }}</p>
.mp3 .mp3
</div> </div>
<img v-show="item.isCheck" <img v-show="item.isCheck" :class="{ 'icon-check': item.isCheck }" src="@/assets/seckillActivity/icon-check.png" />
:class="{ 'icon-check': item.isCheck }"
src="@/assets/seckillActivity/icon-check.png" />
</div> </div>
</div> </div>
<el-upload class="m-t-10" <el-upload class="m-t-10" action="" accept="audio/mp3, audio/m4a" :show-file-list="false" :http-request="handleMusicUpload" :before-upload="e => handleMusicBeforeUpload(e, scope.scope)" :file-list="fileList">
action="" <el-button class="el-icon-plus" size="small" type="default">背景音乐</el-button>
accept="audio/mp3, audio/m4a"
:show-file-list="false"
:http-request="handleMusicUpload"
:before-upload="e => handleMusicBeforeUpload(e, scope.scope)"
:file-list="fileList">
<el-button class="el-icon-plus"
size="small"
type="default">背景音乐</el-button>
</el-upload> </el-upload>
<audio v-if="playObj.src" <audio v-if="playObj.src" style="display: none;" id="music-audio" controls>
style="display: none;" <source type="audio/mpeg" :src="playObj.src" />
id="music-audio"
controls>
<source type="audio/mpeg"
:src="playObj.src" />
</audio> </audio>
<!-- <div v-if="editForm[scope.scope.name]" class="flex"> <!-- <div v-if="editForm[scope.scope.name]" class="flex">
<audio controls> <audio controls>
...@@ -259,69 +138,33 @@ ...@@ -259,69 +138,33 @@
</div> --> </div> -->
</template> </template>
<template slot="fictitious"> <template slot="fictitious">
<div class="fictitious" <div class="fictitious" id="fictitious">
id="fictitious"> <el-form-item label="参团:" prop="fictitiousGroupQuantity" labelWidth="60px">
<el-form-item label="参团:" <el-input v-model="editForm.fictitiousGroupQuantity" style="width: 90px" maxlength="50" placeholder="参团人数"></el-input>
prop="fictitiousGroupQuantity"
labelWidth="60px">
<el-input v-model="editForm.fictitiousGroupQuantity"
style="width: 90px"
maxlength="50"
placeholder="参团人数"></el-input>
</el-form-item> </el-form-item>
<el-form-item id="fictitiousLadderQuantity" <el-form-item id="fictitiousLadderQuantity" label="阶梯人数:" prop="fictitiousLadderQuantity" labelWidth="90px">
label="阶梯人数:" <el-input v-model="editForm.fictitiousLadderQuantity" style="width: 90px" maxlength="50" placeholder="阶梯人数"></el-input>
prop="fictitiousLadderQuantity"
labelWidth="90px">
<el-input v-model="editForm.fictitiousLadderQuantity"
style="width: 90px"
maxlength="50"
placeholder="阶梯人数"></el-input>
</el-form-item> </el-form-item>
<el-form-item id="fictitiousViewQuantity" <el-form-item id="fictitiousViewQuantity" label="浏览:" prop="fictitiousViewQuantity" labelWidth="60px">
label="浏览:" <el-input v-model="editForm.fictitiousViewQuantity" style="width: 90px" maxlength="50" placeholder="浏览人数"></el-input>
prop="fictitiousViewQuantity"
labelWidth="60px">
<el-input v-model="editForm.fictitiousViewQuantity"
style="width: 90px"
maxlength="50"
placeholder="浏览人数"></el-input>
</el-form-item> </el-form-item>
</div> </div>
</template> </template>
<div slot="activityBigImg" <div slot="activityBigImg" class="edit-tips m-t-8">建议尺寸750*1258</div>
class="edit-tips m-t-8">建议尺寸750*1258</div> <div slot="activityVideos" class="edit-tips m-t-8">最多上传6个视频</div>
<div slot="activityVideos" <div slot="posterImg" class="edit-tips m-t-8">建议尺寸640*1008</div>
class="edit-tips m-t-8">最多上传6个视频</div> <div class="form-describe-box" slot="formDescribe">
<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-group v-model="editForm.formDescribeCheck">
<el-checkbox v-for="(item, index) in formDescribeCheckList" <el-checkbox v-for="(item, index) in formDescribeCheckList" :label="item.value" :key="index">{{ item.label }}</el-checkbox>
:label="item.value"
:key="index">{{ item.label }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
<div v-for="(item, index) in formDescribeList" <div v-for="(item, index) in formDescribeList" :key="index" class="form-describe flex-default">
:key="index" <el-input class="describe-input" v-model="item.value" placeholder="请输入" maxlength="20"></el-input>
class="form-describe flex-default">
<el-input class="describe-input"
v-model="item.value"
placeholder="请输入"
maxlength="20"></el-input>
<p class="describe-delete"> <p class="describe-delete">
<img v-show="!(index == 0 && formDescribeList.length == 1)" <img v-show="!(index == 0 && formDescribeList.length == 1)" @click="handleDescribeDelete(index)" src="@/assets/icon-delete.png" />
@click="handleDescribeDelete(index)"
src="@/assets/icon-delete.png" />
</p> </p>
</div> </div>
<el-button class="btn-basic" <el-button class="btn-basic" v-show="formDescribeList.length < describeNum" :size="size" type="text" @click="handleDescribeAdd">
v-show="formDescribeList.length < describeNum" <img class="icon-add" src="@/assets/seckillActivity/icon-add.png" />
:size="size"
type="text"
@click="handleDescribeAdd">
<img class="icon-add"
src="@/assets/seckillActivity/icon-add.png" />
新增表单 新增表单
</el-button> </el-button>
</div> </div>
...@@ -332,184 +175,93 @@ ...@@ -332,184 +175,93 @@
</el-radio-group> </el-radio-group>
</div> </div>
<!-- 服务说明 --> <!-- 服务说明 -->
<div slot="activityServices" <div slot="activityServices" id="activityServices" class="flex-default">
id="activityServices" <span class="custom-label arrow" slot="label" @click="handleArrow('activityServices')" :style="{ width: defaultLabelWidth }">
class="flex-default"> <i :class="[arrowFlagObj.activityServices == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"></i>
<span class="custom-label arrow"
slot="label"
@click="handleArrow('activityServices')"
:style="{ width: defaultLabelWidth }">
<i
:class="[arrowFlagObj.activityServices == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"></i>
服务说明: 服务说明:
</span> </span>
<div class="form-show-box"> <div class="form-show-box">
<div <div :class="['btn-box', arrowFlagObj.activityServices == 'open' && editForm.activityServices.length ? 'line' : '']">
:class="['btn-box', arrowFlagObj.activityServices == 'open' && editForm.activityServices.length ? 'line' : '']"> <el-button :class="[editForm.activityServices.length < 9 ? 'btn-basic' : 'btn-disable']" :size="size" type="text" @click="handleAddItem('services', 'activityServices', 9)">
<el-button :class="[editForm.activityServices.length < 9 ? 'btn-basic' : 'btn-disable']" <img class="icon-add" src="@/assets/seckillActivity/icon-add.png" />
:size="size"
type="text"
@click="handleAddItem('services', 'activityServices', 9)">
<img class="icon-add"
src="@/assets/seckillActivity/icon-add.png" />
新增一项 新增一项
</el-button> </el-button>
</div> </div>
<div <div :class="['form-show-block', arrowFlagObj.activityServices == 'close' ? 'form-close' : 'form-open']">
:class="['form-show-block', arrowFlagObj.activityServices == 'close' ? 'form-close' : 'form-open']"> <div v-for="(item, index) in editForm.activityServices" :key="index" :class="['form-show-item', editForm.activityServices.length > index + 1 ? 'line' : '']">
<div v-for="(item, index) in editForm.activityServices" <glsx-combi-form class="p-t-20" ref="serviceEditFormRef" :formRef="editChildRef" :isEdit="true" :isBlock="true" :formObj="item" :formData="serviceEditFormData" :formRules="serviceEditRule"></glsx-combi-form>
:key="index" <el-button :class="['btn-basic', 'btn-delete', index == editForm.activityServices.length - 1 ? 'last-btn-delete' : '']" :size="size" type="text" @click="handleDeleteItem('services', 'activityServices', index)">
:class="['form-show-item', editForm.activityServices.length > index + 1 ? 'line' : '']"> <img class="icon-add" src="@/assets/icon-delete.png" />
<glsx-combi-form class="p-t-20"
ref="serviceEditFormRef"
:formRef="editChildRef"
:isEdit="true"
:isBlock="true"
:formObj="item"
:formData="serviceEditFormData"
:formRules="serviceEditRule"></glsx-combi-form>
<el-button :class="['btn-basic', 'btn-delete', index == editForm.activityServices.length - 1 ? 'last-btn-delete' : '']"
:size="size"
type="text"
@click="handleDeleteItem('services', 'activityServices', index)">
<img class="icon-add"
src="@/assets/icon-delete.png" />
</el-button> </el-button>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- 商品答疑 --> <!-- 商品答疑 -->
<div slot="activityCommoditys" <div slot="activityCommoditys" id="activityCommoditys" class="flex-default">
id="activityCommoditys" <span class="custom-label arrow" slot="label" @click="handleArrow('activityCommoditys')" :style="{ width: defaultLabelWidth }">
class="flex-default"> <i :class="[arrowFlagObj.activityCommoditys == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"></i>
<span class="custom-label arrow"
slot="label"
@click="handleArrow('activityCommoditys')"
:style="{ width: defaultLabelWidth }">
<i
:class="[arrowFlagObj.activityCommoditys == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"></i>
商品答疑: 商品答疑:
</span> </span>
<div class="form-show-box"> <div class="form-show-box">
<div <div :class="['btn-box', arrowFlagObj.activityCommoditys == 'open' && editForm.activityCommoditys.length ? 'line' : '']">
:class="['btn-box', arrowFlagObj.activityCommoditys == 'open' && editForm.activityCommoditys.length ? 'line' : '']"> <el-button :class="[editForm.activityCommoditys.length < 9 ? 'btn-basic' : 'btn-disable']" :size="size" type="text" @click="handleAddItem('commoditys', 'activityCommoditys', 9)">
<el-button :class="[editForm.activityCommoditys.length < 9 ? 'btn-basic' : 'btn-disable']" <img class="icon-add" src="@/assets/seckillActivity/icon-add.png" />
:size="size"
type="text"
@click="handleAddItem('commoditys', 'activityCommoditys', 9)">
<img class="icon-add"
src="@/assets/seckillActivity/icon-add.png" />
新增一项 新增一项
</el-button> </el-button>
</div> </div>
<div <div :class="['form-show-block', arrowFlagObj.activityCommoditys == 'close' ? 'form-close' : 'form-open']">
:class="['form-show-block', arrowFlagObj.activityCommoditys == 'close' ? 'form-close' : 'form-open']"> <div v-for="(item, index) in editForm.activityCommoditys" :key="index" :class="['form-show-item', editForm.activityCommoditys.length > index + 1 ? 'line' : '']">
<div v-for="(item, index) in editForm.activityCommoditys" <glsx-combi-form class="p-t-20" ref="commoditysEditFormRef" :formRef="editChildRef" :isEdit="true" :isBlock="true" :formObj="item" :formData="commoditysEditFormData" :formRules="commoditysEditRule"></glsx-combi-form>
:key="index" <el-button :class="['btn-basic', 'btn-delete', index == editForm.activityCommoditys.length - 1 ? 'last-btn-delete' : '']" :size="size" type="text" @click="handleDeleteItem('commoditys', 'activityCommoditys', index)">
:class="['form-show-item', editForm.activityCommoditys.length > index + 1 ? 'line' : '']"> <img class="icon-add" src="@/assets/icon-delete.png" />
<glsx-combi-form class="p-t-20"
ref="commoditysEditFormRef"
:formRef="editChildRef"
:isEdit="true"
:isBlock="true"
:formObj="item"
:formData="commoditysEditFormData"
:formRules="commoditysEditRule"></glsx-combi-form>
<el-button :class="['btn-basic', 'btn-delete', index == editForm.activityCommoditys.length - 1 ? 'last-btn-delete' : '']"
:size="size"
type="text"
@click="handleDeleteItem('commoditys', 'activityCommoditys', index)">
<img class="icon-add"
src="@/assets/icon-delete.png" />
</el-button> </el-button>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- 服务评价 --> <!-- 服务评价 -->
<div slot="activityExperienceDTOs" <div slot="activityExperienceDTOs" id="activityExperienceDTOs" class="flex-default">
id="activityExperienceDTOs" <span class="custom-label arrow" slot="label" @click="handleArrow('activityExperienceDTOs')" :style="{ width: defaultLabelWidth }">
class="flex-default"> <i :class="[arrowFlagObj.activityExperienceDTOs == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"></i>
<span class="custom-label arrow"
slot="label"
@click="handleArrow('activityExperienceDTOs')"
:style="{ width: defaultLabelWidth }">
<i
:class="[arrowFlagObj.activityExperienceDTOs == 'open' ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"></i>
服务评价: 服务评价:
</span> </span>
<div class="form-show-box"> <div class="form-show-box">
<div <div :class="['btn-box', arrowFlagObj.activityExperienceDTOs == 'open' && editForm.activityExperienceDTOs.length ? 'line' : '']">
:class="['btn-box', arrowFlagObj.activityExperienceDTOs == 'open' && editForm.activityExperienceDTOs.length ? 'line' : '']"> <el-button :class="[editForm.activityExperienceDTOs.length < 9 ? 'btn-basic' : 'btn-disable']" :size="size" type="text" @click="handleAddItem('experiences', 'activityExperienceDTOs', 9)">
<el-button :class="[editForm.activityExperienceDTOs.length < 9 ? 'btn-basic' : 'btn-disable']" <img class="icon-add" src="@/assets/seckillActivity/icon-add.png" />
:size="size"
type="text"
@click="handleAddItem('experiences', 'activityExperienceDTOs', 9)">
<img class="icon-add"
src="@/assets/seckillActivity/icon-add.png" />
新增一项 新增一项
</el-button> </el-button>
</div> </div>
<div <div :class="['form-show-block', arrowFlagObj.activityExperienceDTOs == 'close' ? 'form-close' : 'form-open']">
:class="['form-show-block', arrowFlagObj.activityExperienceDTOs == 'close' ? 'form-close' : 'form-open']"> <div v-for="(item, index) in editForm.activityExperienceDTOs" :key="index" :class="['form-show-item', editForm.activityExperienceDTOs.length > index + 1 ? 'line' : '']">
<div v-for="(item, index) in editForm.activityExperienceDTOs"
:key="index"
:class="['form-show-item', editForm.activityExperienceDTOs.length > index + 1 ? 'line' : '']">
<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>虚拟人物{{ index + 1 }}</span> <span>虚拟人物{{ index + 1 }}</span>
</div> </div>
<glsx-combi-form class="p-t-20" <glsx-combi-form class="p-t-20" :formRef="editChildRef" :isEdit="true" :isBlock="true" :formObj="item" :formData="experiencesEditFormData" :formRules="editRule">
:formRef="editChildRef" <div slot="activityExperienceImgs" class="edit-tips m-t-8">建议尺寸:图片大小不超过5m,最多可添加9张图片</div>
:isEdit="true"
:isBlock="true"
:formObj="item"
:formData="experiencesEditFormData"
:formRules="editRule">
<div slot="activityExperienceImgs"
class="edit-tips m-t-8">建议尺寸:图片大小不超过5m,最多可添加9张图片</div>
</glsx-combi-form> </glsx-combi-form>
<el-button :class="['btn-basic', 'btn-delete', index == editForm.activityExperienceDTOs.length - 1 ? 'last-btn-delete' : '']" <el-button :class="['btn-basic', 'btn-delete', index == editForm.activityExperienceDTOs.length - 1 ? 'last-btn-delete' : '']" :size="size" type="text" @click="handleDeleteItem('experiences', 'activityExperienceDTOs', index)">
:size="size" <img class="icon-add" src="@/assets/icon-delete.png" />
type="text"
@click="handleDeleteItem('experiences', 'activityExperienceDTOs', index)">
<img class="icon-add"
src="@/assets/icon-delete.png" />
</el-button> </el-button>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- 员工注册链接 --> <!-- 员工注册链接 -->
<div slot="employeeRegistrationLinkFlag" <div slot="employeeRegistrationLinkFlag" slot-scope="scope">
slot-scope="scope">
<el-radio-group v-model="editForm[scope.scope.name]"> <el-radio-group v-model="editForm[scope.scope.name]">
<el-radio v-for="(item, index) in scope.scope.optionList" <el-radio v-for="(item, index) in scope.scope.optionList" :key="index" :label="item[scope.scope.optionId]">{{ item[scope.scope.optionLabel] }}</el-radio>
:key="index"
:label="item[scope.scope.optionId]">{{ item[scope.scope.optionLabel] }}
</el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
<template slot="appointmentContacts"> <template slot="appointmentContacts">
<div class="appointmentContactsClass"> <div class="appointmentContactsClass">
<el-form-item label="姓名:" <el-form-item label="姓名:" prop="reservationInstallContactsName" labelWidth="60px">
prop="reservationInstallContactsName" <el-input v-model="editForm.reservationInstallContactsName" style="width: 432px;display: block;" maxlength="10" placeholder="请输入姓名"></el-input>
labelWidth="60px">
<el-input v-model="editForm.reservationInstallContactsName"
style="width: 432px;display: block;"
maxlength="10"
placeholder="请输入姓名"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="电话:" <el-form-item label="电话:" prop="reservationInstallContactsPhone" labelWidth="60px" class="phoneClass">
prop="reservationInstallContactsPhone" <el-input v-model="editForm.reservationInstallContactsPhone" style="width: 432px" maxlength="11" placeholder="请输入电话"></el-input>
labelWidth="60px"
class="phoneClass">
<el-input v-model="editForm.reservationInstallContactsPhone"
style="width: 432px"
maxlength="11"
placeholder="请输入电话"></el-input>
</el-form-item> </el-form-item>
</div> </div>
</template> </template>
...@@ -517,122 +269,49 @@ ...@@ -517,122 +269,49 @@
<template slot="reportConfigure"> <template slot="reportConfigure">
<div class="reportConfigure-bag"> <div class="reportConfigure-bag">
<el-tabs v-model="reportFlag"> <el-tabs v-model="reportFlag">
<el-tab-pane label="进行中战报" <el-tab-pane label="进行中战报" name="1">
name="1"> <el-form-item label="产值活动报告:" prop="produceReportSummary" labelWidth="100px">
<el-form-item label="产值活动报告:" <el-input v-model="editForm.activityActionReport.produceReportSummary" placeholder="根据以往经验,活动前三天转发效果最好,赶紧督促大家转发起来吧" type="textarea" maxlength="200" show-word-limit style="width:580px;height:79px;" rows="3"></el-input>
prop="produceReportSummary"
labelWidth="100px">
<el-input v-model="editForm.activityActionReport.produceReportSummary"
placeholder="根据以往经验,活动前三天转发效果最好,赶紧督促大家转发起来吧"
type="textarea"
maxlength="200"
show-word-limit
style="width:580px;height:79px;"
rows="3"></el-input>
</el-form-item> </el-form-item>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="已结束战报" <el-tab-pane label="已结束战报" name="2">
name="2"> <el-form-item label="客户资产分析总结:" prop="customerAssetSummary" labelWidth="140px" style="margin-left: 27px;margin-bottom: 0px;">
<el-form-item label="客户资产分析总结:" <el-input v-model="editForm.activityActionReport.customerAssetSummary" placeholder="请输入" type="textarea" maxlength="200" show-word-limit style="width:580px;height:79px;" rows="3"></el-input>
prop="customerAssetSummary"
labelWidth="140px"
style="margin-left: 27px;margin-bottom: 0px;">
<el-input v-model="editForm.activityActionReport.customerAssetSummary"
placeholder="请输入"
type="textarea"
maxlength="200"
show-word-limit
style="width:580px;height:79px;"
rows="3"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="触达通道分析总结:" <el-form-item label="触达通道分析总结:" prop="touchPassageSummary" labelWidth="140px" style="margin-left: 27px;margin-top: 10px;">
prop="touchPassageSummary" <el-input v-model="editForm.activityActionReport.touchPassageSummary" placeholder="请输入" type="textarea" maxlength="200" show-word-limit style="width:580px;height:79px;" rows="3"></el-input>
labelWidth="140px"
style="margin-left: 27px;margin-top: 10px;">
<el-input v-model="editForm.activityActionReport.touchPassageSummary"
placeholder="请输入"
type="textarea"
maxlength="200"
show-word-limit
style="width:580px;height:79px;"
rows="3"></el-input>
</el-form-item> </el-form-item>
<div class="reportConfigureList"> <div class="reportConfigureList">
<span class="reportConfigureLabel">标杆门店数据:</span> <span class="reportConfigureLabel">标杆门店数据:</span>
<el-form-item label="分享数(次)" <el-form-item label="分享数(次)" prop="signMerchantShareCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
prop="signMerchantShareCount" <el-input v-model="editForm.activityActionReport.signMerchantShareCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
labelWidth="70px"
style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.signMerchantShareCount"
style="width: 136px;height:32px;"
placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="浏览数(次)" <el-form-item label="浏览数(次)" prop="signMerchantBrowseCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
prop="signMerchantBrowseCount" <el-input v-model="editForm.activityActionReport.signMerchantBrowseCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
labelWidth="70px"
style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.signMerchantBrowseCount"
style="width: 136px;height:32px;"
placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="访客数(人)" <el-form-item label="访客数(人)" prop="signMerchantVisitorCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
prop="signMerchantVisitorCount" <el-input v-model="editForm.activityActionReport.signMerchantVisitorCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
labelWidth="70px"
style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.signMerchantVisitorCount"
style="width: 136px;height:32px;"
placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="订单数(单)" <el-form-item label="订单数(单)" prop="signMerchantOrderCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
prop="signMerchantOrderCount" <el-input v-model="editForm.activityActionReport.signMerchantOrderCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
labelWidth="70px"
style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.signMerchantOrderCount"
style="width: 136px;height:32px;"
placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="总产值(万)" <el-form-item label="总产值(万)" prop="signMerchantProduceCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
prop="signMerchantProduceCount" <el-input v-model="editForm.activityActionReport.signMerchantProduceCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
labelWidth="70px"
style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.signMerchantProduceCount"
style="width: 136px;height:32px;"
placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="reportConfigureList"> <div class="reportConfigureList">
<span class="reportConfigureLabel">短信触达数据:</span> <span class="reportConfigureLabel">短信触达数据:</span>
<el-form-item label="目标客户数(人)" <el-form-item label="目标客户数(人)" prop="noteTouchCustomerCount" labelWidth="100px" style="margin: 0px 8px 0px 0px;">
prop="noteTouchCustomerCount" <el-input v-model="editForm.activityActionReport.noteTouchCustomerCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
labelWidth="100px"
style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.noteTouchCustomerCount"
style="width: 136px;height:32px;"
placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="访客数(人)" <el-form-item label="访客数(人)" prop="noteTouchVisitorCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
prop="noteTouchVisitorCount" <el-input v-model="editForm.activityActionReport.noteTouchVisitorCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
labelWidth="70px"
style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.noteTouchVisitorCount"
style="width: 136px;height:32px;"
placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="订单数(单)" <el-form-item label="订单数(单)" prop="noteTouchOrderCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
prop="noteTouchOrderCount" <el-input v-model="editForm.activityActionReport.noteTouchOrderCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
labelWidth="70px"
style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.noteTouchOrderCount"
style="width: 136px;height:32px;"
placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="转化率(%)" <el-form-item label="转化率(%)" prop="noteTouchConversionRate" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
prop="noteTouchConversionRate" <el-input v-model="editForm.activityActionReport.noteTouchConversionRate" style="width: 136px;height:32px;" readonly></el-input>
labelWidth="70px"
style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.noteTouchConversionRate"
style="width: 136px;height:32px;"
readonly></el-input>
</el-form-item> </el-form-item>
</div> </div>
</el-tab-pane> </el-tab-pane>
...@@ -642,92 +321,47 @@ ...@@ -642,92 +321,47 @@
<!-- 直播配置 --> <!-- 直播配置 -->
<div slot="live"> <div slot="live">
<el-switch v-model="editForm.liveFlag"></el-switch> <el-switch v-model="editForm.liveFlag"></el-switch>
<div class="customer-service" <div class="customer-service" v-if="editForm.liveFlag" id="liveFlag">
v-if="editForm.liveFlag" <glsx-combi-form class="edit-form-container" ref="liveEditFormRef" :formRef="editChildRef" :isEdit="true" :isBlock="true" :formObj="editForm" :formData="liveEditFormData" :formRules="liveEditRule">
id="liveFlag"> <div slot="groupQrCode" class="edit-tips m-t-8">注:用于直播间内加群展示;请上传2M以内的jpg、jpeg、png图片,建议图片尺寸284*284</div>
<glsx-combi-form class="edit-form-container" <div v-if="!editForm.floatingMaskDiagram" slot="defaultImg" class="default-live-img">
ref="liveEditFormRef"
:formRef="editChildRef"
:isEdit="true"
:isBlock="true"
:formObj="editForm"
:formData="liveEditFormData"
:formRules="liveEditRule">
<div slot="groupQrCode"
class="edit-tips m-t-8">注:用于直播间内加群展示;请上传2M以内的jpg、jpeg、png图片,建议图片尺寸284*284</div>
<div v-if="!editForm.floatingMaskDiagram"
slot="defaultImg"
class="default-live-img">
<img :src="defaultFloatingMaskDiagram" /> <img :src="defaultFloatingMaskDiagram" />
</div> </div>
<div slot="floatingMaskDiagram" <div slot="floatingMaskDiagram" class="edit-tips m-t-8">注:用于直播间内浮动元素展示;请上传2M以内的gif、jpg、jpeg、png图片,建议图片尺寸120*176</div>
class="edit-tips m-t-8">注:用于直播间内浮动元素展示;请上传2M以内的gif、jpg、jpeg、png图片,建议图片尺寸120*176 <div v-if="!editForm.liveBroadcastRoomCover" slot="defaultImgCover" class="default-live-img">
</div>
<div v-if="!editForm.liveBroadcastRoomCover"
slot="defaultImgCover"
class="default-live-img">
<img :src="defaultImgObj.COVER_LIVE" /> <img :src="defaultImgObj.COVER_LIVE" />
</div> </div>
<div v-if="!editForm.liveBroadcastRoomEndCover" <div v-if="!editForm.liveBroadcastRoomEndCover" slot="defaultImgEndCover" class="default-live-img">
slot="defaultImgEndCover"
class="default-live-img">
<img :src="defaultImgObj.COVER_REPLAY" /> <img :src="defaultImgObj.COVER_REPLAY" />
</div> </div>
<div slot="liveBroadcastRoomEndCover" <div slot="liveBroadcastRoomEndCover" class="edit-tips m-t-8">注:用于活动中直播小窗口展示;请上传2M以内的gif、jpg、jpeg、png图片,建议图片尺寸164*252</div>
class="edit-tips m-t-8">注:用于活动中直播小窗口展示;请上传2M以内的gif、jpg、jpeg、png图片,建议图片尺寸164*252
</div>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
</div> </div>
<!-- 收款模式 --> <!-- 收款模式 -->
<div slot="paymentModel" <div slot="paymentModel" class="paymentModelSlot">
class="paymentModelSlot"> <!-- <div>{{ editForm.payMentModel }}</div> -->
<el-radio-group v-model="editForm.payMentModel"> <el-radio-group v-model="editForm.paymentModel">
<el-radio :label="1">广联收定金和尾款</el-radio> <el-radio :label="'1'">广联收定金和尾款</el-radio>
<el-radio :label="2">广联收定金门店收尾款</el-radio> <el-radio :label="'2'">广联收定金门店收尾款</el-radio>
<el-radio :label="3">广联收定金门店收全款退定金</el-radio> <el-radio :label="'3'">广联收定金门店收全款退定金</el-radio>
<el-radio :label="4">门店收定金和尾款</el-radio> <el-radio :label="'4'">门店收定金和尾款</el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
<GLFooter> <GLFooter>
<el-button @click="handleCancel" <el-button @click="handleCancel" size="medium">{{ routeInfo.addOrEdit != 'detail' ? '取消' : '返回' }}</el-button>
size="medium">{{ routeInfo.addOrEdit != 'detail' ? '取消' : '返回' }}</el-button> <el-button @click="handleWechat" size="medium">预览</el-button>
<el-button @click="handleWechat" <el-button v-if="routeInfo.addOrEdit != 'detail'" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
size="medium">预览</el-button>
<el-button v-if="routeInfo.addOrEdit != 'detail'"
type="primary"
@click="handleConfirm"
size="medium"
:loading="loading">提交</el-button>
</GLFooter> </GLFooter>
<!-- 展示 --> <!-- 展示 -->
<GLDialog bigTitle="预览" <GLDialog bigTitle="预览" mode="big" :visible.sync="wechatVisible" @onOk="handleWechat" @onCancel="handleWechat">
mode="big" <crowdEditWechat ref="crowdEditWechat" :editForm="editForm" :countDownObj="countDownObj"></crowdEditWechat>
:visible.sync="wechatVisible"
@onOk="handleWechat"
@onCancel="handleWechat">
<crowdEditWechat ref="crowdEditWechat"
:editForm="editForm"
:countDownObj="countDownObj"></crowdEditWechat>
</GLDialog> </GLDialog>
<select-single-pro-dialog v-if="isSingleSelectVisible" <select-single-pro-dialog v-if="isSingleSelectVisible" :merchantId="editForm.merchantId" :isSingleSelectVisible="isSingleSelectVisible" :propSearch="{ deliveryType: 1 }" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose(true)"></select-single-pro-dialog>
:merchantId="editForm.merchantId"
:isSingleSelectVisible="isSingleSelectVisible"
:propSearch="{ deliveryType: 1 }"
:selectedProInfo="selectedProInfo"
@handleSingleSelectConfirm="handleSingleSelectConfirm"
@handleSingleSelectClose="handleSingleSelectClose(true)">
</select-single-pro-dialog>
<!-- :storeSelected="selectedList" --> <!-- :storeSelected="selectedList" -->
<select-store v-if="relateStoreVisible" <select-store v-if="relateStoreVisible" ref="relateStore" :dialogVisible="relateStoreVisible" :storeSelected="selectedList" :merchantInfo="editForm.merchantId" @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose">
ref="relateStore"
:dialogVisible="relateStoreVisible"
:storeSelected="selectedList"
:merchantInfo="editForm.merchantId"
@handleRelateStoreConfirm="handleRelateStoreConfirm"
@handleRelateStoreClose="handleRelateStoreClose">
<!-- <el-row slot> <!-- <el-row slot>
<el-form :model="storeSearchForm" <el-form :model="storeSearchForm"
ref="relate" ref="relate"
...@@ -760,7 +394,8 @@ ...@@ -760,7 +394,8 @@
</template> </template>
<script> <script>
import { limitPrice } from '@/common/constant' import { limitPrice, businessType } from '@/common/constant'
import { utils } from 'glsx-common'
import crowdEditWechat from './crowdEditWechat.vue' import crowdEditWechat from './crowdEditWechat.vue'
import selectStore from './components/selectStore' import selectStore from './components/selectStore'
export default { export default {
...@@ -770,7 +405,7 @@ export default { ...@@ -770,7 +405,7 @@ export default {
selectStore selectStore
}, },
data() { data() {
var validatorPhone = function (rule, value, callback) { var validatorPhone = function(rule, value, callback) {
if (value && !/^(0|86|17951)?(13[0-9]|15[0123456789]|17[678]|18[0-9]|14[57])[0-9]{8}$/.test(value)) { if (value && !/^(0|86|17951)?(13[0-9]|15[0123456789]|17[678]|18[0-9]|14[57])[0-9]{8}$/.test(value)) {
callback(new Error('手机号格式错误')) callback(new Error('手机号格式错误'))
} else { } else {
...@@ -865,6 +500,7 @@ export default { ...@@ -865,6 +500,7 @@ export default {
selectCarNumberFlag: 2, selectCarNumberFlag: 2,
selectVehicleTypeFlag: 2, selectVehicleTypeFlag: 2,
selectPhoneNumberFlag: 2, selectPhoneNumberFlag: 2,
businessType: 2, //业务场景
formDescribeCheck: ['selectCarNumberFlag', 'selectVehicleTypeFlag', 'selectPhoneNumberFlag'], formDescribeCheck: ['selectCarNumberFlag', 'selectVehicleTypeFlag', 'selectPhoneNumberFlag'],
activityServices: [], activityServices: [],
activityCommoditys: [], activityCommoditys: [],
...@@ -933,9 +569,23 @@ export default { ...@@ -933,9 +569,23 @@ export default {
promotion: [{ required: true, message: '请输入活动宣传语', trigger: 'change' }], promotion: [{ required: true, message: '请输入活动宣传语', trigger: 'change' }],
activityTime: [{ required: true, message: '活动时间不能为空', trigger: 'change' }], activityTime: [{ required: true, message: '活动时间不能为空', trigger: 'change' }],
activityPrice: [ activityPrice: [
{ required: true, message: '请设置秒杀价', trigger: 'change' }, { required: true, message: '请设置定金价', trigger: 'change' },
{ {
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
if (!this.editForm.crowdFundingPrice) return callback(new Error('请先填写众筹价'))
if (value > Number(this.editForm.crowdFundingPrice)) return callback(new Error('定金不能大于众筹价格'))
return value >= +(this.selectedProInfo.retailPrice / 100).toFixed(2) ? callback(new Error('秒杀价必须小于零售价')) : callback()
},
trigger: 'change'
}
],
crowdFundingPrice: [
{ required: true, message: '请设置众筹价', trigger: 'change' },
{
validator: (rule, value, callback) => {
if (value < +this.editForm.activityPrice) {
return callback(new Error('众筹价需要大于定金'))
}
return value >= +(this.selectedProInfo.retailPrice / 100).toFixed(2) ? callback(new Error('秒杀价必须小于零售价')) : callback() return value >= +(this.selectedProInfo.retailPrice / 100).toFixed(2) ? callback(new Error('秒杀价必须小于零售价')) : callback()
}, },
trigger: 'change' trigger: 'change'
...@@ -975,7 +625,8 @@ export default { ...@@ -975,7 +625,8 @@ export default {
activityBigImg: [{ required: true, message: '请选择活动大图', trigger: 'change' }], activityBigImg: [{ required: true, message: '请选择活动大图', trigger: 'change' }],
activityDetail: [{ required: true, message: '请输入活动详情', trigger: 'change' }], activityDetail: [{ required: true, message: '请输入活动详情', trigger: 'change' }],
forwardTitle: [{ required: true, message: '请输入转发标题', trigger: 'change' }], forwardTitle: [{ required: true, message: '请输入转发标题', trigger: 'change' }],
paymentAccountId: [{ required: true, message: '请选择定金收款账户', trigger: 'change' }] paymentAccountId: [{ required: true, message: '请选择定金收款账户', trigger: 'change' }],
businessType: [{ required: true, message: '请选择业务场景', trigger: 'change' }]
}, },
// 表单设置 // 表单设置
formDescribeCheckList: [ formDescribeCheckList: [
...@@ -1015,7 +666,7 @@ export default { ...@@ -1015,7 +666,7 @@ export default {
label: '活动名称', label: '活动名称',
name: 'activityName', name: 'activityName',
type: 'input', type: 'input',
maxlength: 20, maxlength: 40,
tips: '如XX店车主关怀活动', tips: '如XX店车主关怀活动',
isDisabled: false isDisabled: false
}, },
...@@ -1092,6 +743,7 @@ export default { ...@@ -1092,6 +743,7 @@ export default {
isClear: true, isClear: true,
isHide: true isHide: true
}, },
{ {
label: '规格明细', label: '规格明细',
name: '', name: '',
...@@ -1099,6 +751,16 @@ export default { ...@@ -1099,6 +751,16 @@ export default {
isHide: true isHide: true
}, },
{ {
label: '业务场景',
name: 'businessType',
type: 'select',
optionList: utils.deepClone(businessType),
optionId: 'optionId',
optionLabel: 'optionLabel',
isClear: true
// isHide: true
},
{
label: '是否限购', label: '是否限购',
name: 'limitPurchaseFlag', name: 'limitPurchaseFlag',
addHtml: 'limitPurchaseFlag', addHtml: 'limitPurchaseFlag',
...@@ -1652,7 +1314,13 @@ export default { ...@@ -1652,7 +1314,13 @@ export default {
defaultFloatingMaskDiagram: 'https://wx.glsx.com.cn/upload/biz/ba63349f-8e9e-4e80-be3b-45cc38dcf13f.gif' defaultFloatingMaskDiagram: 'https://wx.glsx.com.cn/upload/biz/ba63349f-8e9e-4e80-be3b-45cc38dcf13f.gif'
} }
}, },
filters: {
filterBalancePayment(crowdFundingPrice, activityPrice) {
let BalancePaymentNum = Number(crowdFundingPrice) - Number(activityPrice)
if (BalancePaymentNum == 0) return 0
return BalancePaymentNum > 0 ? BalancePaymentNum : ''
}
},
mounted() { mounted() {
this.getLiveList() this.getLiveList()
this.setMinHeight('.crowd-config') this.setMinHeight('.crowd-config')
...@@ -1694,7 +1362,7 @@ export default { ...@@ -1694,7 +1362,7 @@ export default {
newValue && newValue.length && this.countDown() newValue && newValue.length && this.countDown()
}, },
'editForm.predictVolume'(newValue, oldValue) { 'editForm.predictVolume'(newValue, oldValue) {
this.editForm.predictVolume = limitPrice(newValue, oldValue, 7, 2, 0, 1000000) this.editForm.predictVolume = limitPrice(newValue, oldValue, 10, 2, 0, 1000000000)
}, },
'editForm.fictitiousGroupQuantity'(newValue, oldValue) { 'editForm.fictitiousGroupQuantity'(newValue, oldValue) {
this.editForm.fictitiousGroupQuantity = limitPrice(newValue, oldValue, 3, 0, 0, 501) this.editForm.fictitiousGroupQuantity = limitPrice(newValue, oldValue, 3, 0, 0, 501)
...@@ -1876,7 +1544,7 @@ export default { ...@@ -1876,7 +1544,7 @@ export default {
}, },
handleRelateProClose(targetItem) { handleRelateProClose(targetItem) {
// 先选门店在选商品 // 先选门店在选商品
if (this.editForm.merchantId) return this.$message.error('请先选择门店!') if (!this.editForm.merchantId) return this.$message.error('请先选择门店!')
this.selectedProInfo = this.editForm.goodsId ? { id: this.editForm.goodsId } : {} this.selectedProInfo = this.editForm.goodsId ? { id: this.editForm.goodsId } : {}
this.handleSingleSelectClose() this.handleSingleSelectClose()
}, },
...@@ -2011,7 +1679,7 @@ export default { ...@@ -2011,7 +1679,7 @@ export default {
}, },
// 音乐 // 音乐
handleMusicUpload() { }, handleMusicUpload() {},
musicUpload(e, targetItem) { musicUpload(e, targetItem) {
var reader = new FileReader() var reader = new FileReader()
...@@ -2344,7 +2012,7 @@ export default { ...@@ -2344,7 +2012,7 @@ export default {
delete param.activityPrice delete param.activityPrice
delete param.goodsStock delete param.goodsStock
param.specificationDetailList = [] param.specificationDetailList = []
this.nameToValSpecsList.forEach(function (item) { this.nameToValSpecsList.forEach(function(item) {
var obj = { var obj = {
retailPrice: (item.activityPrice * 100).toFixed(0), //存的分,需乘100 retailPrice: (item.activityPrice * 100).toFixed(0), //存的分,需乘100
stock: item.goodsStock, stock: item.goodsStock,
...@@ -2598,7 +2266,7 @@ export default { ...@@ -2598,7 +2266,7 @@ export default {
.then(() => { .then(() => {
this.cancelJump() this.cancelJump()
}) })
.catch(() => { }) .catch(() => {})
} else { } else {
this.cancelJump() this.cancelJump()
} }
...@@ -2657,8 +2325,28 @@ export default { ...@@ -2657,8 +2325,28 @@ export default {
border: 1px solid #e7e7e7; border: 1px solid #e7e7e7;
} }
.merchantNameLabel { .merchantNameLabel {
color: #606266; width: 510px;
margin-left: 50px; color: #1d1d1d;
// margin-left: 50px;
padding: 16px;
margin-top: 8px;
border: 1px solid #e6e6e6;
border-radius: 8rpx;
background: #f9f9f9;
.merchantName {
box-sizing: border-box;
width: 284px;
height: 32px;
background: #ffffff;
border: 1px solid #e6e6e6;
border-radius: 4px;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 14px;
color: #999999;
line-height: 32px;
padding: 0 8px;
}
} }
.edit-product-dh .table-spesc tbody td { .edit-product-dh .table-spesc tbody td {
display: inline-block; display: inline-block;
......
...@@ -9,7 +9,7 @@ const cdn = { ...@@ -9,7 +9,7 @@ const cdn = {
js: [`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`, `${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`, `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`, `${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`, `${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`, 'https://webapi.amap.com/loader.js'] js: [`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`, `${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`, `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`, `${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`, `${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`, 'https://webapi.amap.com/loader.js']
} }
module.exports = { module.exports = {
outputDir: `dist`, outputDir: `../dist/${packageName}`,
publicPath, publicPath,
assetsDir: 'static', assetsDir: 'static',
productionSourceMap: false, productionSourceMap: false,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!