Commit 34d0e2d2 by 杨北旺

统一格式化的代码

1 parent f9fb5a86
Showing 93 changed files with 763 additions and 1198 deletions
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"],
presets: ['@vue/cli-plugin-babel/preset'],
plugins: [
[
"component",
'component',
{
libraryName: "element-ui",
styleLibraryName: "theme-chalk"
libraryName: 'element-ui',
styleLibraryName: 'theme-chalk'
}
]
]
};
}
......@@ -3,22 +3,22 @@ import { http } from '@/main'
// const defaultPath = 'scrm.api.live.'
const getCenterListApi = params => {
// params.method = `${defaultPath}goods.list`
// params.method = `${defaultPath}goods.list`
params.method = `scrm.api.equity.card.merchant.record.get`
return http({
url: 'rop-scrm-equity/router',
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const getMoreMerchant = params => {
// params.method = `${defaultPath}goods.list`
// params.method = `${defaultPath}goods.list`
params.method = `scrm.api.equity.third.get`
return http({
url: 'rop-scrm-equity/router',
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
......@@ -30,26 +30,25 @@ const getCardContent = params => {
params.method = `scrm.api.equity.open.card.price.get.by.merchantid`
return http({
url: 'rop-scrm-equity/router',
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const updateCardContent = params => {
params.method = `scrm.api.equity.card.class.update`
return http({
url: 'rop-scrm-equity/router',
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const memberExportApi = params =>{
params.method=`scrm.api.equity.card.merchant.record.export`
const memberExportApi = params => {
params.method = `scrm.api.equity.card.merchant.record.export`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
......@@ -57,4 +56,4 @@ const memberExportApi = params =>{
sign: true
})
}
export { getCenterListApi,getMoreMerchant ,updateCardContent,getCardContent,memberExportApi}
\ No newline at end of file
export { getCenterListApi, getMoreMerchant, updateCardContent, getCardContent, memberExportApi }
......@@ -75,7 +75,7 @@ const getClassifyListApi = params => {
}
const pictureUpload = params => {
params.method = "glsx.accounts.biz.common.pictureUpload"
params.method = 'glsx.accounts.biz.common.pictureUpload'
return http_common({
url: '/router?method=glsx.accounts.biz.common.pictureUpload',
method: 'POST',
......
......@@ -151,5 +151,4 @@ const getAllGoodsApi = params => {
})
}
export default { getMerchantListApi, couponExportApi, getVerificationListApi, verificationExportApi, effectiveCouponApi, codeVerificationApi, getCouponDetailApi, deleteCouponApi, createCouponApi, updateCouponApi, getAllGoodsApi, getListReceiveRecordApi, exportReceiveRecordApi }
\ No newline at end of file
export default { getMerchantListApi, couponExportApi, getVerificationListApi, verificationExportApi, effectiveCouponApi, codeVerificationApi, getCouponDetailApi, deleteCouponApi, createCouponApi, updateCouponApi, getAllGoodsApi, getListReceiveRecordApi, exportReceiveRecordApi }
......@@ -71,7 +71,7 @@ const exportGiftInfoApi = params => {
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true,
sign: true
})
}
......@@ -108,4 +108,4 @@ const templateModal = params => {
})
}
export default { getFollowerStaffListApi, getListApi, giftExportApi, deleteGiftApi, getGiftInfoApi, getReceivedGiftInfoApi, exportGiftInfoApi, getDirectionalGiftListApi, insertGiftApi,templateModal }
export default { getFollowerStaffListApi, getListApi, giftExportApi, deleteGiftApi, getGiftInfoApi, getReceivedGiftInfoApi, exportGiftInfoApi, getDirectionalGiftListApi, insertGiftApi, templateModal }
import { http } from '@/main'
const timePeriodStatistics = params => {
params.method = 'scrm.api.shopmall.order.timePeriodStatistics'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
params.method = 'scrm.api.shopmall.order.timePeriodStatistics'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const couponStatistical = params => {
params.method = 'scrm.api.coupon.statistical.marketing.effect'
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
params.method = 'scrm.api.coupon.statistical.marketing.effect'
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
const equityStatistical = params => {
params.method = 'scrm.api.equity.statistical.marketing.effect'
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
params.method = 'scrm.api.equity.statistical.marketing.effect'
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
const merchantStatistical = params => {
params.method = 'scrm.api.shopmall.activity.get.merchant.statistics'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
params.method = 'scrm.api.shopmall.activity.get.merchant.statistics'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
export default { timePeriodStatistics, couponStatistical, equityStatistical, merchantStatistical }
......@@ -32,4 +32,4 @@ const getConsultantListApi = params => {
})
}
export default { getHomeInfoListApi, updateHomeApi, getConsultantListApi }
\ No newline at end of file
export default { getHomeInfoListApi, updateHomeApi, getConsultantListApi }
......@@ -34,4 +34,4 @@ const orderExportApi = params => {
sign: true
})
}
export { getOrderListApi, getOrderPageDetail, orderExportApi }
\ No newline at end of file
export { getOrderListApi, getOrderPageDetail, orderExportApi }
......@@ -46,4 +46,4 @@ const commentDetailApi = params => {
})
}
export default { getListApi, changeCommentStatusApi, deleteCommentApi, commentDetailApi }
\ No newline at end of file
export default { getListApi, changeCommentStatusApi, deleteCommentApi, commentDetailApi }
......@@ -101,4 +101,4 @@ const confirmReceiptGoodsApi = params => {
})
}
export default { getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi }
\ No newline at end of file
export default { getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi }
......@@ -66,4 +66,4 @@ const updateShareRecordApi = params => {
})
}
export default { getListApi, getShareRecordInfoApi, deleteShareRecordApi, revokeShareRecordApi, addShareRecordApi, updateShareRecordApi }
\ No newline at end of file
export default { getListApi, getShareRecordInfoApi, deleteShareRecordApi, revokeShareRecordApi, addShareRecordApi, updateShareRecordApi }
......@@ -97,4 +97,4 @@ const getGoodsCommentListApi = params => {
})
}
export default { getListApi, getProShareApi, topProApi, updateStatusProApi, deleteTakeProApi, getProInfoApi, insertOrUpdateProApi, updateTakeProApi, getGoodsCommentListApi }
\ No newline at end of file
export default { getListApi, getProShareApi, topProApi, updateStatusProApi, deleteTakeProApi, getProInfoApi, insertOrUpdateProApi, updateTakeProApi, getGoodsCommentListApi }
......@@ -26,24 +26,24 @@ const getVerificationCode = params => {
// 核销详情-导出
const verificationExportApi = params => {
params.method = 'scrm.api.coupon.verification.member.export.list'
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
// const auditGoodApi = params => {
// params.method = `${defaultPath}audit.goods`
// return http({
// url: 'rop-scrm-live/router',
// method: 'POST',
// data: params,
// sign: true,
// returnAll: true
// })
// }
params.method = 'scrm.api.coupon.verification.member.export.list'
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
// const auditGoodApi = params => {
// params.method = `${defaultPath}audit.goods`
// return http({
// url: 'rop-scrm-live/router',
// method: 'POST',
// data: params,
// sign: true,
// returnAll: true
// })
// }
// const getGoodInfoApi = params => {
// params.method = `${defaultPath}get.good.by.id`
......@@ -98,4 +98,4 @@ const verificationExportApi = params => {
// })
// }
export { getRecordListApi, getVerificationCode, verificationExportApi }
\ No newline at end of file
export { getRecordListApi, getVerificationCode, verificationExportApi }
......@@ -83,5 +83,4 @@ const getSharedApi = params => {
})
}
export default { getActivityPageApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi }
......@@ -52,7 +52,6 @@ const createService = params => {
data: params,
sign: true,
returnAll: true
})
}
//编辑、查看
......@@ -62,8 +61,7 @@ const detailService = params => {
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true,
sign: true
})
}
//修改
......@@ -76,8 +74,7 @@ const updateService = params => {
data: params,
sign: true,
returnAll: true
})
}
export { getServiceListApi, effectiveService, deleteService, createService, detailService, updateService, getLoginCount }
\ No newline at end of file
export { getServiceListApi, effectiveService, deleteService, createService, detailService, updateService, getLoginCount }
......@@ -3,10 +3,10 @@ import { http } from '@/main'
// const defaultPath = 'scrm.api.live.'
const getSetMealListApi = params => {
// params.method = `${defaultPath}goods.list`
// params.method = `${defaultPath}goods.list`
params.method = `scrm.api.equity.package.info.list.with.page`
return http({
url: 'rop-scrm-equity/router',
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
......@@ -15,64 +15,64 @@ const getSetMealListApi = params => {
const deleteSetMeal = params => {
params.method = `scrm.api.equity.package.info.delete`
return http({
url: 'rop-scrm-equity/router',
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll:true
returnAll: true
})
}
const getSetmealService = params=>{
const getSetmealService = params => {
params.method = `scrm.api.coupon.list.merchant`
return http({
url: 'rop-scrm-coupon/router',
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true
})
}
//获取编辑详情的接口
const getServiceInfo = params=>{
const getServiceInfo = params => {
params.method = `scrm.api.equity.package.info.select`
return http({
url: 'rop-scrm-equity/router',
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll:true
returnAll: true
})
}
//创建套餐的接口
const createSetMeal = params => {
params.method = `scrm.api.equity.package.info.insert`
return http({
url: 'rop-scrm-equity/router',
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll:true
returnAll: true
})
}
const updateSetMeal = params => {
params.method = `scrm.api.equity.package.info.update`
return http({
url: 'rop-scrm-equity/router',
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll:true
returnAll: true
})
}
//不知道啥作用,老接口有调
const configSetMeal = params => {
params.method = `scrm.api.equity.package.service.config`
return http({
url: 'rop-scrm-equity/router',
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll:true
returnAll: true
})
}
......@@ -81,11 +81,11 @@ const configSetMeal = params => {
const upDownPackage = params => {
params.method = `scrm.api.equity.package.info.shelves`
return http({
url: 'rop-scrm-equity/router',
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll:true
returnAll: true
})
}
export { getSetMealListApi,deleteSetMeal,getSetmealService,getServiceInfo,createSetMeal,upDownPackage,updateSetMeal,configSetMeal }
\ No newline at end of file
export { getSetMealListApi, deleteSetMeal, getSetmealService, getServiceInfo, createSetMeal, upDownPackage, updateSetMeal, configSetMeal }
......@@ -97,7 +97,7 @@ const afterSaleStatusList = [
{ confId: '4', confName: '待确认' },
{ confId: '5', confName: '退款中' },
{ confId: '6', confName: '已退款' },
{ confId: '7', confName: '退款失败' },
{ confId: '7', confName: '退款失败' }
]
const orderSourceList = [
......@@ -113,21 +113,22 @@ const deliveryTypeList = [
//会员中心得状态list
const statusList = [
// {
// confId: '',
// confName: '全部'
// },
{
confId: 1,
confName: '生效中'
},
{
confId: 2,
confName: '已失效'
}
]
//会员订单类型字典
const orderTypesList = [{
// {
// confId: '',
// confName: '全部'
// },
{
confId: 1,
confName: '生效中'
},
{
confId: 2,
confName: '已失效'
}
]
//会员订单类型字典
const orderTypesList = [
{
confId: 1,
confName: '套餐'
},
......@@ -161,9 +162,10 @@ const orderStatusList = [
{
confId: 6,
confName: '已退款'
},
}
]
const serviceStatusList = [{
const serviceStatusList = [
{
confId: 1,
confName: '未生效'
},
......@@ -177,7 +179,8 @@ const serviceStatusList = [{
}
]
const memberTypeList = [{
const memberTypeList = [
{
confId: 1,
confName: '正式会员'
},
......@@ -186,7 +189,8 @@ const memberTypeList = [{
confName: '试用会员'
}
]
const stateList = [{
const stateList = [
{
confId: 0,
confName: '待上架'
},
......@@ -197,22 +201,7 @@ const stateList = [{
{
confId: 2,
confName: '已下架'
},
}
]
export {
limitPrice,
getExplorer,
exportFn,
aToExport,
orderManageStatusList,
afterSaleStatusList,
orderSourceList,
deliveryTypeList,
statusList,
serviceStatusList,
memberTypeList,
stateList,
orderTypesList,
orderStatusList
}
\ No newline at end of file
export { limitPrice, getExplorer, exportFn, aToExport, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList }
......@@ -161,7 +161,7 @@ export default {
},
formObj: {
type: Object,
default: () => { }
default: () => {}
},
hasTitle: {
type: Boolean,
......@@ -169,16 +169,16 @@ export default {
},
formRules: {
type: Object,
default: () => { }
default: () => {}
},
// 搜索+输入框/搜索组合组件,搜索栏绑值
searchSelectObj: {
type: Object,
default: () => { }
default: () => {}
}
},
mounted() { },
mounted() {},
methods: {
// 选择框-添加其他属性
......
<!-- 弹窗 -->
<template>
<div>
<el-dialog
:title="title"
:top="top"
:visible.sync="isVisible"
:show-close="showClose"
:before-close="handleClose"
:close-on-click-modal="false"
:modal-append-to-body="false"
:width="width"
>
<el-dialog :title="title" :top="top" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :modal-append-to-body="false" :width="width">
<el-scrollbar v-if="hasScroll">
<span slot="title">
<span class="main-title">{{ title }}</span>
......@@ -32,24 +23,9 @@
<div slot="footer">
<slot name="btn-start"></slot>
<el-button
:type="typeName"
v-if="!noClose"
:size="btnSize"
@click="handleClose"
>{{btnCloseLabel}}</el-button>
<el-button
type="default"
v-if="!noCancel"
:size="btnSize"
@click="handleClose"
>{{ btnCancelLabel }}</el-button>
<el-button
type="primary"
v-if="!noBtnOk"
:size="btnSize"
@click="handleConfirm"
>{{ btnOkLabel }}</el-button>
<el-button :type="typeName" v-if="!noClose" :size="btnSize" @click="handleClose">{{ btnCloseLabel }}</el-button>
<el-button type="default" v-if="!noCancel" :size="btnSize" @click="handleClose">{{ btnCancelLabel }}</el-button>
<el-button type="primary" v-if="!noBtnOk" :size="btnSize" @click="handleConfirm">{{ btnOkLabel }}</el-button>
<slot name="btn-middle"></slot>
</div>
</el-dialog>
......
......@@ -22,4 +22,4 @@ Vue.component('select-muti-pro-dialog', selectMutiProDialog)
Vue.component('select-single-pro-dialog', selectSingleProDialog)
Vue.component('relate-store-dialog', relateStoreDialog)
Vue.component('select-muti-pro-forcoupon-dialog', selectMutiProForcouponDialog)
Vue.component('table-tooltip', tableTooltip)
\ No newline at end of file
Vue.component('table-tooltip', tableTooltip)
......@@ -11,8 +11,7 @@
</template>
</el-table-column>
<el-table-column type="selection" width="55" align="center" :selectable="selectable"></el-table-column>
<el-table-column prop="merchantName" label="商户名称" align="center">
</el-table-column>
<el-table-column prop="merchantName" label="商户名称" align="center"></el-table-column>
</el-table>
<el-pagination small background @current-change="handleCurrentChange" :current-page.sync="pageNum" :page-size="pageSize" layout="total, prev, pager, next" :total="total"></el-pagination>
</el-col>
......@@ -87,7 +86,7 @@ export default {
mounted() {
this.selectedData = this.storeSelected
this.selectedData.forEach(item => {
item.merchantNo = item.merchantId ? (item.merchantId + '') : item.merchantNo
item.merchantNo = item.merchantId ? item.merchantId + '' : item.merchantNo
})
this.getSelectingList()
},
......
<!-- 选择商品弹窗 -->
<template>
<glsx-dialog
class="muti-pro"
title="选择商品"
:isVisible.sync="isMutiSelectVisible"
:btnOkLabel="productList.length ? '确定' : '创建商品'"
width="70%"
@confirmDialog="handleMutiSelectConfirm"
@closeDialog="handleMutiSelectClose"
v-loading="loading"
>
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" :btnOkLabel="productList.length ? '确定' : '创建商品'" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose" v-loading="loading">
<div class="noproDiv" v-show="!productList.length && fnCallBack">
<img src="@/assets/noPro.png" />
<p class="noproP">系统暂无已创建的商品</p>
</div>
<div v-show="productList.length">
<slot name="search"></slot>
<GLTable
v-loading="loading"
ref="mutiProRef"
:tableData="productList"
:hasPage="false"
:noDataImg="url"
:tableParams="tableParams"
@refreshTable="getList"
>
<GLTable v-loading="loading" ref="mutiProRef" :tableData="productList" :hasPage="false" :noDataImg="url" :tableParams="tableParams" @refreshTable="getList">
<span slot="goodsImage" slot-scope="scope">
<img class="m-t-10 img-60" :src="scope.scope.goodsImage" />
</span>
......
<!-- 选择商品弹窗 -->
<template>
<glsx-dialog
class="muti-pro"
title="选择商品"
:isVisible.sync="isMutiSelectVisible"
:btnOkLabel="productList.length ? '确定' : '创建商品'"
width="70%"
@confirmDialog="handleMutiSelectConfirm"
@closeDialog="handleMutiSelectClose"
:noClose="false"
:noCancel="true"
:showClose="true"
>
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" :btnOkLabel="productList.length ? '确定' : '创建商品'" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose" :noClose="false" :noCancel="true" :showClose="true">
<div style="max-height:60vh">
<div class="noproDiv" v-if="!productList.length && fnCallBack">
<img src="@/assets/noPro.png" />
......@@ -20,26 +9,14 @@
<div v-if="productList.length">
<el-form :inline="true" :model="searchProForm">
<el-form-item label="商品名称:">
<el-input
:size="size"
v-model="searchProForm.name"
placeholder="请输入商品名称"
maxlength="20"
clearable
></el-input>
<el-input :size="size" v-model="searchProForm.name" placeholder="请输入商品名称" maxlength="20" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button :size="size" type="primary" @click="handleConfigSearch">查询</el-button>
<el-button :size="size" @click="handleConfigReset">重置</el-button>
</el-form-item>
</el-form>
<GLTable
ref="mutiProRef"
:tableData="productList"
:hasPage="false"
:tableParams="tableParams"
@refreshTable="getList"
>
<GLTable ref="mutiProRef" :tableData="productList" :hasPage="false" :tableParams="tableParams" @refreshTable="getList">
<span slot="goodsImage" slot-scope="scope">
<img class="m-t-10 img-60" :src="scope.scope.goodsImage" />
</span>
......@@ -172,7 +149,7 @@ export default {
}
},
handleMutiSelectConfirm() {
if(!this.productList.length) {
if (!this.productList.length) {
var params = {
addOrEdit: 1,
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
......
......@@ -101,7 +101,7 @@ export default {
})
},
handleSingleSelectConfirm() {
if(!this.productList.length) {
if (!this.productList.length) {
var params = {
addOrEdit: 1,
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
......
<template>
<div class="table-tooltip">
<el-popover
placement="top"
width="200"
trigger="hover"
:content="content"
>
<el-button
slot="reference"
icon="el-icon-warning"
circle
></el-button>
<el-popover placement="top" width="200" trigger="hover" :content="content">
<el-button slot="reference" icon="el-icon-warning" circle></el-button>
</el-popover>
</div>
</template>
......@@ -23,9 +14,8 @@ export default {
type: String,
default: ''
}
},
}
}
</script>
<style scope>
......@@ -45,4 +35,4 @@ export default {
.table-tooltip .el-button:focus {
color: initial;
}
</style>
\ No newline at end of file
</style>
......@@ -11,12 +11,12 @@
let cfg = require('./conf.js')
import { Http } from 'glsx-common'
let timeout = 30000 //超时时间
export const fetchConfig = function (isEnv = true) {
// if (isEnv) {
// let { request } = cfg
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
export const fetchConfig = function(isEnv = true) {
if (isEnv) {
let { request } = cfg
Object.assign(request, { timeout })
return Promise.resolve(cfg)
}
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
......@@ -25,4 +25,4 @@ export const config = {
install(vue, cfg) {
vue.prototype.$config = cfg
}
}
\ No newline at end of file
}
if (window.__POWERED_BY_QIANKUN__) {
// eslint-disable-next-line no-undef
__webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;
__webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__
}
const staticRoutes = Object.freeze([{
const staticRoutes = Object.freeze([
{
name: 'default',
path: '/',
redirect: { name: 'home' }
......@@ -219,35 +220,35 @@ const staticRoutes = Object.freeze([{
component: resolve => require([`@/views/giftBag/giftDetail.vue`], resolve),
meta: {}
},
{
{
name: 'editGift',
path: '/giftBag/editGift',
component: resolve => require([`@/views/giftBag/editGift.vue`], resolve),
meta: {}
},
{
{
name: 'sopIndex',
path: '/sop/index',
component: resolve => require([`@/views/sop/index.vue`], resolve),
meta: {}
},
{
{
name: 'sopList',
path: '/sop/sopList',
component: resolve => require([`@/views/sop/sopList.vue`], resolve),
meta: {}
},
{
{
name: 'editSop',
path: '/sop/editSop',
component: resolve => require([`@/views/sop/editSop.vue`], resolve),
meta: {}
},
{
{
name: 'sopAnalysisList',
path: '/sop/sopAnalysisList',
component: resolve => require([`@/views/sop/sopAnalysisList.vue`], resolve),
meta: {}
}
])
export default staticRoutes
\ No newline at end of file
export default staticRoutes
......@@ -10,4 +10,3 @@
import { bootstrap, mount, unmount } from './qiankun'
import { start } from './single'
export { bootstrap, mount, unmount, start }
......@@ -23,7 +23,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$messageBox = messageBox
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const routesData = common.utils.deepClone(globalState.routers)
......@@ -49,4 +49,3 @@ function subscribe({ messenger }) {
console.log(`监听到子应用${v.from}发来消息:`, v)
})
}
const emoji = [
['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴'],
['睡', '大哭', '尴尬', '发怒', '调皮', '呲牙', '惊讶', '难过'],
['酷', '囧', '抓狂', '吐', '微笑', '愉快', '白眼', '傲慢'],
['饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂'],
['疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见'],
['擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠'],
['鄙视', '委屈', '快哭了', '阴险', '亲亲', '吓', '可怜', '菜刀'],
['西瓜', '啤酒', '篮球', '乒乓', '咖啡', '饭', '猪头', '玫瑰'],
['凋谢', '示爱', '爱心', '心碎', '蛋糕', '闪电', '炸弹', '刀'],
['足球', '瓢虫', '便便', '月亮', '太阳', '礼物', '拥抱', '强'],
['弱', '握手', '胜利', '抱拳', '勾引', '拳头', '差劲', '爱你'],
['NO', 'OK', '爱情', '飞吻', '跳跳', '发抖', '怄火', '转圈'],
['磕头', '回头', '跳绳', '投降', '挥手', '激动', '街舞', '左太极'],
['右太极', '嘿哈', '捂脸', '奸笑', '机智', '皱眉', '耶', '社会社会'],
['让我看看', '666', '红包', '蜡烛', '烟花', '福', '庆祝', '爆竹'],
['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴'],
['睡', '大哭', '尴尬', '发怒', '调皮', '呲牙', '惊讶', '难过'],
['酷', '囧', '抓狂', '吐', '微笑', '愉快', '白眼', '傲慢'],
['饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂'],
['疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见'],
['擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠'],
['鄙视', '委屈', '快哭了', '阴险', '亲亲', '吓', '可怜', '菜刀'],
['西瓜', '啤酒', '篮球', '乒乓', '咖啡', '饭', '猪头', '玫瑰'],
['凋谢', '示爱', '爱心', '心碎', '蛋糕', '闪电', '炸弹', '刀'],
['足球', '瓢虫', '便便', '月亮', '太阳', '礼物', '拥抱', '强'],
['弱', '握手', '胜利', '抱拳', '勾引', '拳头', '差劲', '爱你'],
['NO', 'OK', '爱情', '飞吻', '跳跳', '发抖', '怄火', '转圈'],
['磕头', '回头', '跳绳', '投降', '挥手', '激动', '街舞', '左太极'],
['右太极', '嘿哈', '捂脸', '奸笑', '机智', '皱眉', '耶', '社会社会'],
['让我看看', '666', '红包', '蜡烛', '烟花', '福', '庆祝', '爆竹']
]
export default emoji
\ No newline at end of file
export default emoji
export function debounce(func, wait= 200){
let timeout;
return function(event){
clearTimeout(timeout)
timeout = setTimeout(()=>{
func.call(this, event)
},wait)
export function debounce(func, wait = 200) {
let timeout
return function(event) {
clearTimeout(timeout)
timeout = setTimeout(() => {
func.call(this, event)
}, wait)
}
}
}
export function dateFormat (dateTime, format = 'YYYY-MM-DD HH:mm') {
const date = new Date(dateTime)
const config = {
YYYY: date.getFullYear(),
MM: date.getMonth() + 1, //getMonth() 方法根据本地时间返回指定日期的月份(从 0 到 11)
DD: date.getDate(),
HH: date.getHours(),
mm: date.getMinutes(),
ss: date.getSeconds()
}
for (const key in config) {
format = format.replace(key, config[key])
}
return format
}
\ No newline at end of file
export function dateFormat(dateTime, format = 'YYYY-MM-DD HH:mm') {
const date = new Date(dateTime)
const config = {
YYYY: date.getFullYear(),
MM: date.getMonth() + 1, //getMonth() 方法根据本地时间返回指定日期的月份(从 0 到 11)
DD: date.getDate(),
HH: date.getHours(),
mm: date.getMinutes(),
ss: date.getSeconds()
}
for (const key in config) {
format = format.replace(key, config[key])
}
return format
}
import { Message } from 'element-ui'
let util = {}
util.cloneText = function (message) {
let input = document.createElement('input')
input.value = message
document.body.appendChild(input)
input.select()
input.setSelectionRange(0, input.value.length), document.execCommand('Copy')
document.body.removeChild(input)
Message.success('复制成功')
util.cloneText = function(message) {
let input = document.createElement('input')
input.value = message
document.body.appendChild(input)
input.select()
input.setSelectionRange(0, input.value.length), document.execCommand('Copy')
document.body.removeChild(input)
Message.success('复制成功')
}
util.getBeforeDate = function (sign = '-') {
let day = new Date();
let month = day.getMonth() + 1;
let date = day.getDate();
if (month < 10) month = '0' + month;
if (date < 10) date = '0' + date;
var s = day.getFullYear() + sign + month + sign + date;
return s;
util.getBeforeDate = function(sign = '-') {
let day = new Date()
let month = day.getMonth() + 1
let date = day.getDate()
if (month < 10) month = '0' + month
if (date < 10) date = '0' + date
var s = day.getFullYear() + sign + month + sign + date
return s
}
util.getBeforeMonth = function (days) {
let month = new Date().getMonth() + 1;
let year = new Date().getFullYear();
let arr = new Array();
for (let i = 0; i < days; i++) {
if (month <= 0) {
year = year - 1;
month = month + 12;
}
if (month < 10) month = '0' + month;
arr[i] = year + '年' + month + '月'
month--
util.getBeforeMonth = function(days) {
let month = new Date().getMonth() + 1
let year = new Date().getFullYear()
let arr = new Array()
for (let i = 0; i < days; i++) {
if (month <= 0) {
year = year - 1
month = month + 12
}
return arr;
if (month < 10) month = '0' + month
arr[i] = year + '年' + month + '月'
month--
}
return arr
}
/**
* 格式化时间
* @param {Array} time
*/
util.formatTime = function (time) {
return {
startTime: time ? time[0] + ' ' + '00:00:00' : '',
endTime: time ? time[1] + ' ' + '23:59:59' : ''
}
util.formatTime = function(time) {
return {
startTime: time ? time[0] + ' ' + '00:00:00' : '',
endTime: time ? time[1] + ' ' + '23:59:59' : ''
}
}
util.tringToDate = function (dateStr, separator) {
if (!separator) {
separator = "-";
}
var dateArr = dateStr.split(separator);
var year = parseInt(dateArr[0]);
var month;
//处理月份为04这样的情况
if (dateArr[1].indexOf("0") == 0) {
month = parseInt(dateArr[1].substring(1));
} else {
month = parseInt(dateArr[1]);
}
var day = parseInt(dateArr[2]);
var date = new Date(year, month - 1, day);
return date;
util.tringToDate = function(dateStr, separator) {
if (!separator) {
separator = '-'
}
var dateArr = dateStr.split(separator)
var year = parseInt(dateArr[0])
var month
//处理月份为04这样的情况
if (dateArr[1].indexOf('0') == 0) {
month = parseInt(dateArr[1].substring(1))
} else {
month = parseInt(dateArr[1])
}
var day = parseInt(dateArr[2])
var date = new Date(year, month - 1, day)
return date
}
util.getDay = function (num, str = '-') {
var today = new Date();
var nowTime = today.getTime();
var ms = 24 * 3600 * 1000 * num;
today.setTime(parseInt(nowTime + ms));
var oYear = today.getFullYear();
var oMoth = (today.getMonth() + 1).toString();
if (oMoth.length <= 1) oMoth = '0' + oMoth;
var oDay = today.getDate().toString();
if (oDay.length <= 1) oDay = '0' + oDay;
return oYear + str + oMoth + str + oDay;
util.getDay = function(num, str = '-') {
var today = new Date()
var nowTime = today.getTime()
var ms = 24 * 3600 * 1000 * num
today.setTime(parseInt(nowTime + ms))
var oYear = today.getFullYear()
var oMoth = (today.getMonth() + 1).toString()
if (oMoth.length <= 1) oMoth = '0' + oMoth
var oDay = today.getDate().toString()
if (oDay.length <= 1) oDay = '0' + oDay
return oYear + str + oMoth + str + oDay
}
util.openUrl = function (url) {
const link = document.createElement('a')
link.href = url
link.target = '_blank'
link.rel = 'opener'
link.click()
util.openUrl = function(url) {
const link = document.createElement('a')
link.href = url
link.target = '_blank'
link.rel = 'opener'
link.click()
}
util.downloadIamge = function (imgsrc, name = new Date().getTime()) {
//下载图片地址和图片名
var image = new Image();
// 解决跨域 Canvas 污染问题
image.setAttribute("crossOrigin", "anonymous");
image.onload = function () {
var canvas = document.createElement("canvas");
canvas.width = image.width;
canvas.height = image.height;
var context = canvas.getContext("2d");
context.drawImage(image, 0, 0, image.width, image.height);
var url = canvas.toDataURL("image/png"); //得到图片的base64编码数据
util.downloadIamge = function(imgsrc, name = new Date().getTime()) {
//下载图片地址和图片名
var image = new Image()
// 解决跨域 Canvas 污染问题
image.setAttribute('crossOrigin', 'anonymous')
image.onload = function() {
var canvas = document.createElement('canvas')
canvas.width = image.width
canvas.height = image.height
var context = canvas.getContext('2d')
context.drawImage(image, 0, 0, image.width, image.height)
var url = canvas.toDataURL('image/png') //得到图片的base64编码数据
var a = document.createElement("a"); // 生成一个a元素
var event = new MouseEvent("click"); // 创建一个单击事件
a.download = name || "photo"; // 设置图片名称
a.href = url; // 将生成的URL设置为a.href属性
a.dispatchEvent(event); // 触发a的单击事件
};
image.src = imgsrc;
var a = document.createElement('a') // 生成一个a元素
var event = new MouseEvent('click') // 创建一个单击事件
a.download = name || 'photo' // 设置图片名称
a.href = url // 将生成的URL设置为a.href属性
a.dispatchEvent(event) // 触发a的单击事件
}
image.src = imgsrc
}
export default util
\ No newline at end of file
export default util
......@@ -31,7 +31,7 @@
<script>
import * as dayjs from 'dayjs'
import url from "@/assets/empty.png"
import url from '@/assets/empty.png'
export default {
name: 'classifyList',
data() {
......@@ -128,8 +128,8 @@ export default {
handleEdit(addOrEdit, row) {
// addOrEdit == 1 ? this.$router.push('/classifyList/editClassify/' + addOrEdit) : this.$router.push('/classifyList/editClassify/' + addOrEdit + '/' + row.id)
var params = {
addOrEdit: addOrEdit,
$title:encodeURI(addOrEdit == 1 ? '新建分类' : '编辑分类')
addOrEdit: addOrEdit,
$title: encodeURI(addOrEdit == 1 ? '新建分类' : '编辑分类')
}
addOrEdit != 1 && (params.id = row.id)
this.$router.push({
......@@ -145,7 +145,7 @@ export default {
handleTop(row) {
this.secondConfirm('置顶', '确定置顶此分类?', 'classifyList', 'topClassifyApi', { id: row.id })
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.classifyRef.data.length ? (this.$refs.classifyRef.tableHeightValues = '') : this.$refs.classifyRef.setTableHeightFun()
......
......@@ -405,7 +405,7 @@ export default {
if (item.attType == 1) {
const list = emoji.flat(Infinity)
const cutImg = item.attContent.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function(str) {
let s = list[parseInt(str.split('.')[0]) - 1]
return `[${s}]`
})
......@@ -586,7 +586,9 @@ export default {
const date = new Date(v).getTime()
if (date < Date.now()) {
this.timeOptions = {
selectableRange: `${dayjs().add(1, 'm').format('HH:mm')}:00 - 23:59:59`
selectableRange: `${dayjs()
.add(1, 'm')
.format('HH:mm')}:00 - 23:59:59`
}
} else {
this.timeOptions = {
......
......@@ -6,20 +6,9 @@
<div class="title">基础信息</div>
<div class="info-box">
<div class="info-content">
<el-form
:model="basicForm"
class="basic-form"
:rules="basicRules"
ref="basicForm"
label-width="120px"
>
<el-form :model="basicForm" class="basic-form" :rules="basicRules" ref="basicForm" label-width="120px">
<el-form-item label="群发名称" prop="massName">
<el-input
v-model="basicForm.massName"
:size="size"
placeholder="群发名称仅内部可见"
maxlength="10"
></el-input>
<el-input v-model="basicForm.massName" :size="size" placeholder="群发名称仅内部可见" maxlength="10"></el-input>
</el-form-item>
<el-form-item prop="userList">
<label slot="label" class="required">选择群主</label>
......@@ -28,20 +17,9 @@
全部账号
</el-button>
<!-- <span>已选择{{ basicForm.userList ? basicForm.userList.length : 0 }}人</!-->
<div
class="sale-select"
v-show="basicForm.userList && basicForm.userList.length != 0"
>
<div class="sale-select" v-show="basicForm.userList && basicForm.userList.length != 0">
<div :key="key" class="el-input-tag input-tag-wrapper">
<el-tag
effect="plain"
type="info"
v-for="(tag, idx) in basicForm.userList"
:key="idx"
closable
:disable-transitions="false"
@close="remove(tag, idx)"
>
<el-tag effect="plain" type="info" v-for="(tag, idx) in basicForm.userList" :key="idx" closable :disable-transitions="false" @close="remove(tag, idx)">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
......@@ -56,13 +34,8 @@
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px">
<el-form-item prop="attachmentList">
<label slot="label" class="required">群发内容</label>
<WelcomeWords
ref="welcome"
:form="'customerGroup'"
:btnList="btnList"
:eventBus="eventBus"
></WelcomeWords>
<div v-show="attachmentShow" class="el-form-item__error">{{attachmentText}}</div>
<WelcomeWords ref="welcome" :form="'customerGroup'" :btnList="btnList" :eventBus="eventBus"></WelcomeWords>
<div v-show="attachmentShow" class="el-form-item__error">{{ attachmentText }}</div>
</el-form-item>
<el-form-item label="发送时间" prop="sendType">
<el-radio-group v-model="basicForm.sendType">
......@@ -70,22 +43,9 @@
<el-radio :label="2">定时发送</el-radio>
</el-radio-group>
<div v-show="basicForm.sendType == 2" class="date-picker">
<el-date-picker
v-model="basicForm.sendTime"
size="small"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期"
:picker-options="dateOptions"
@change="changeValue"
></el-date-picker>-
<el-time-picker
v-model="basicForm.sendDate"
size="small"
value-format="HH:mm:ss"
placeholder="选择时间"
:picker-options="timeOptions"
></el-time-picker>
<el-date-picker v-model="basicForm.sendTime" size="small" type="date" value-format="yyyy-MM-dd" placeholder="选择日期" :picker-options="dateOptions" @change="changeValue"></el-date-picker>
-
<el-time-picker v-model="basicForm.sendDate" size="small" value-format="HH:mm:ss" placeholder="选择时间" :picker-options="timeOptions"></el-time-picker>
</div>
</el-form-item>
</el-form>
......@@ -107,13 +67,7 @@
<el-button type="primary" v-loading="addLoading" @click="handleSubmit">确定</el-button>
<el-button @click="handleCancel">取消</el-button>
</div>
<glsx-dialog
:title="'选择群主'"
:width="'1142px'"
:isVisible="membersVisible"
@confirmDialog="handleConfirm"
@closeDialog="membersVisible = !membersVisible"
>
<glsx-dialog :title="'选择群主'" :width="'1142px'" :isVisible="membersVisible" @confirmDialog="handleConfirm" @closeDialog="membersVisible = !membersVisible">
<SelectLord ref="membersForm" islord="true" v-if="membersVisible" :selectData="selectData"></SelectLord>
</glsx-dialog>
</div>
......
......@@ -33,4 +33,4 @@ export default {
height: 24px;
display: inline-block;
}
</style>
\ No newline at end of file
</style>
......@@ -233,7 +233,7 @@ export default {
}
}
}
</script>
</script>
<style lang="scss" scoped>
.square-main {
......@@ -370,4 +370,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -2,12 +2,7 @@
<div>
<div class="emotion-box" :style="{ height: height + 'px' }">
<div class="emotion-box-line" v-for="(line, i) in list" :key="i">
<emotion
class="emotion-item"
v-for="(item, i) in line"
:key="i"
@click.native="clickHandler(item)"
>{{ item }}</emotion>
<emotion class="emotion-item" v-for="(item, i) in line" :key="i" @click.native="clickHandler(item)">{{ item }}</emotion>
</div>
</div>
</div>
......@@ -68,4 +63,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
<template>
<div class="square-main">
<el-dialog
title="选择模板"
:visible.sync="dialogVisible"
width="1142px"
:before-close="handleClose"
:close-on-click-modal="false"
>
<el-dialog title="选择模板" :visible.sync="dialogVisible" width="1142px" :before-close="handleClose" :close-on-click-modal="false">
<div class="model-panel">
<el-form :inline="true" class="message-form" :model="searchForm" ref="searchForm">
<el-form-item label="模板标题">
......@@ -14,12 +8,7 @@
</el-form-item>
<el-form-item label="创建者">
<el-select v-model="searchForm.createdBy" :size="size" placeholder="全部">
<el-option
v-for="item in createdList"
:key="item.id"
:label="item.createdName"
:value="item.createdBy"
></el-option>
<el-option v-for="item in createdList" :key="item.id" :label="item.createdName" :value="item.createdBy"></el-option>
</el-select>
</el-form-item>
<el-form-item>
......@@ -47,16 +36,11 @@
<div class="model-title-h2">{{ item.content }}</div>
</div>
<div class="model-item-content">
<div class="model-content">创建人:{{item.createdName}}</div>
<div class="model-content">创建人:{{ item.createdName }}</div>
<div class="model-content">创建日期:{{ item.createdTime }}</div>
</div>
<div class="model-item-btn">
<el-button
v-if="item.createdBy == userId"
type="text"
:size="size"
@click="editModel(item.id)"
>编辑</el-button>
<el-button v-if="item.createdBy == userId" type="text" :size="size" @click="editModel(item.id)">编辑</el-button>
</div>
</div>
</div>
......@@ -64,53 +48,20 @@
<img src="@/assets/empty.png" />
<div class="empty-item">暂无数据</div>
</div>
<el-pagination
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="pageNum"
:page-sizes="[10, 20, 30, 40]"
:page-size="pageSize"
:total="tableTotal"
:layout="layout"
></el-pagination>
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageNum" :page-sizes="[10, 20, 30, 40]" :page-size="pageSize" :total="tableTotal" :layout="layout"></el-pagination>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="handleClose">取 消</el-button>
<el-button size="small" type="primary" @click="selectModelItem">复制文本</el-button>
</span>
</el-dialog>
<el-dialog
:title="modelTitle"
:visible.sync="createVisible"
width="547px"
:before-close="handleCreateClose"
:close-on-click-modal="false"
>
<el-form
:model="templateForm"
:rules="templateRules"
ref="templateForm"
label-width="100px"
class="templateForm"
>
<el-dialog :title="modelTitle" :visible.sync="createVisible" width="547px" :before-close="handleCreateClose" :close-on-click-modal="false">
<el-form :model="templateForm" :rules="templateRules" ref="templateForm" label-width="100px" class="templateForm">
<el-form-item label="标题" prop="title">
<el-input
v-model="templateForm.title"
maxlength="10"
show-word-limit
placeholder="输入10个字以内的标题,如活动促销"
></el-input>
<el-input v-model="templateForm.title" maxlength="10" show-word-limit placeholder="输入10个字以内的标题,如活动促销"></el-input>
</el-form-item>
<el-form-item label="内容说明" prop="content">
<el-input
type="textarea"
v-model="templateForm.content"
maxlength="600"
:rows="7"
show-word-limit
placeholder="输入不超过600字内的文字说明"
></el-input>
<el-input type="textarea" v-model="templateForm.content" maxlength="600" :rows="7" show-word-limit placeholder="输入不超过600字内的文字说明"></el-input>
</el-form-item>
</el-form>
<div class="template-footer">
......@@ -271,7 +222,7 @@ export default {
}
}
}
</script>
</script>
<style lang="scss" scoped>
.model-panel {
......@@ -418,4 +369,4 @@ export default {
padding: 30px 0;
}
}
</style>
\ No newline at end of file
</style>
......@@ -10,25 +10,10 @@
<template v-else-if="item.attType == 7">
<div class="preview-activity">
<!-- <img class="applet-logo" src="@/assets/guestCustom/applet-logo.png" alt /> -->
<div class="activity-name">{{item.attContent.marketingName}}</div>
<img
v-if="item.attContent.marketingType != 5 && item.attContent.marketingType != 6"
class="activity-logo"
src="@/assets/guestCustom/activity-logo.png"
alt
/>
<img
v-if="item.attContent.marketingType == 5"
class="activity-logo"
src="@/assets/guestCustom/activity-spike.png"
alt
/>
<img
v-if="item.attContent.marketingType == 6"
class="activity-logo"
src="@/assets/guestCustom/activity-service.png"
alt
/>
<div class="activity-name">{{ item.attContent.marketingName }}</div>
<img v-if="item.attContent.marketingType != 5 && item.attContent.marketingType != 6" class="activity-logo" src="@/assets/guestCustom/activity-logo.png" alt />
<img v-if="item.attContent.marketingType == 5" class="activity-logo" src="@/assets/guestCustom/activity-spike.png" alt />
<img v-if="item.attContent.marketingType == 6" class="activity-logo" src="@/assets/guestCustom/activity-service.png" alt />
<div class="activity-footer">
<img src="@/assets/guestCustom/applet-footer.png" alt />
</div>
......
......@@ -2,18 +2,14 @@
<div class="select-emp-panel">
<div class="scrm-p10 emp-tree-panel">
<div class="popper-arrow"></div>
<div class="emp-scroll-panel" :style="{
<div
class="emp-scroll-panel"
:style="{
height: treeHeight + 'px'
}">
}"
>
<div class="tree-title">所在门店/部门</div>
<el-tree
v-loading="loading"
:data="listTree"
:expand-on-click-node="false"
highlight-current
:props="defaultProps"
@node-click="handleNodeClick"
></el-tree>
<el-tree v-loading="loading" :data="listTree" :expand-on-click-node="false" highlight-current :props="defaultProps" @node-click="handleNodeClick"></el-tree>
</div>
</div>
<el-col
......@@ -22,15 +18,7 @@
height: treeHeight + 20 + 'px'
}"
>
<GLTable
v-loading="loading"
ref="saleTable"
:tableData="tableEmpData"
:tableParams="tableParams"
:hasNum="false"
:hasPage="false"
@selectionTable="selectionTable"
></GLTable>
<GLTable v-loading="loading" ref="saleTable" :tableData="tableEmpData" :tableParams="tableParams" :hasNum="false" :hasPage="false" @selectionTable="selectionTable"></GLTable>
</el-col>
</div>
</template>
......@@ -158,7 +146,7 @@ export default {
this.listDepartmentTree()
}
}
</script>
</script>
<style scoped lang="scss">
.select-emp-panel {
display: flex;
......
......@@ -205,7 +205,7 @@ export default {
this.heightBox = clientHeight - 0.15 * clientHeight - 350
}
}
</script>
</script>
<style lang="scss" scoped>
// ::v-deep .el-tag{
......@@ -297,7 +297,7 @@ export default {
margin: 8px 0;
display: inline-flex;
align-items: center;
/deep/.el-radio__inner{
/deep/.el-radio__inner {
box-shadow: none !important;
}
/deep/.el-radio__label {
......
......@@ -8,42 +8,13 @@
<div class="member-content">
<el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent>
<el-form-item label="所在门店/部门" style="margin-bottom: 0;">
<el-popover
ref="popover"
placement="bottom"
width="215"
trigger="click"
v-model="popoverVisible"
@show="onShowPopover"
@hide="onHidePopover"
>
<el-tree
class="select-tree"
:data="treeData"
:props="defaultProps"
default-expand-all
@node-click="handleNodeClick"
></el-tree>
<el-input
v-model="searchForm.department"
slot="reference"
:size="size"
readonly
placeholder="请选择所在门店/部门"
:class="{ 'rotate': popoverVisible }"
suffix-icon="el-icon-arrow-down"
@keyup.enter.native="search"
></el-input>
<el-popover ref="popover" placement="bottom" width="215" trigger="click" v-model="popoverVisible" @show="onShowPopover" @hide="onHidePopover">
<el-tree class="select-tree" :data="treeData" :props="defaultProps" default-expand-all @node-click="handleNodeClick"></el-tree>
<el-input v-model="searchForm.department" slot="reference" :size="size" readonly placeholder="请选择所在门店/部门" :class="{ rotate: popoverVisible }" suffix-icon="el-icon-arrow-down" @keyup.enter.native="search"></el-input>
</el-popover>
</el-form-item>
<el-form-item label="姓名" style="margin-bottom: 0;">
<el-input
:size="size"
v-model.trim="searchForm.name"
@keyup.enter.native="search"
clearable
placeholder="请输入姓名搜索"
></el-input>
<el-input :size="size" v-model.trim="searchForm.name" @keyup.enter.native="search" clearable placeholder="请输入姓名搜索"></el-input>
</el-form-item>
<!-- <el-form-item>
<el-checkbox v-model="searchForm.checked">仅看跟进专员</el-checkbox>
......@@ -53,20 +24,10 @@
</el-form-item>
</el-form>
<div class="table-content" style="max-height: 456px;">
<GLTable
v-loading="loading"
ref="empTable"
:tableData="tableEmpData"
:tableParams="tableParams"
:hasNum="false"
:hasPage="false"
:noDataImg="url"
@selectionTable="selectionTable"
@row-click="rowClick"
>
<GLTable v-loading="loading" ref="empTable" :tableData="tableEmpData" :tableParams="tableParams" :hasNum="false" :hasPage="false" :noDataImg="url" @selectionTable="selectionTable" @row-click="rowClick">
<div slot="staffName" slot-scope="scope">
<span>{{scope.scope.staffName}}</span>
<span class="staff-title" v-show="scope.scope.staffTitle">{{scope.scope.staffTitle}}</span>
<span>{{ scope.scope.staffName }}</span>
<span class="staff-title" v-show="scope.scope.staffTitle">{{ scope.scope.staffTitle }}</span>
</div>
</GLTable>
</div>
......@@ -77,17 +38,10 @@
</div>
<div class="member-right">
<div class="member-title">已选</div>
<div class="member-name">成员名称({{innerTags.length}}项)</div>
<div class="member-name">成员名称({{ innerTags.length }}项)</div>
<div class="input-tag-wrapper">
<div class="tag-box">
<el-tag
v-for="(tag, idx) in innerTags"
:key="idx"
type="info"
closable
:disable-transitions="false"
@close="remove(tag)"
>
<el-tag v-for="(tag, idx) in innerTags" :key="idx" type="info" closable :disable-transitions="false" @close="remove(tag)">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
......
......@@ -5,26 +5,12 @@
<div class="sale-select">
<div class="el-input-tag input-tag-wrapper" @click="foucusTagInput">
<div class="tag-box">
<el-tag
v-for="(tag, idx) in innerTags"
:key="idx"
type="info"
closable
:disable-transitions="false"
@close="remove(tag)"
>
<el-tag v-for="(tag, idx) in innerTags" :key="idx" type="info" closable :disable-transitions="false" @close="remove(tag)">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
</div>
<el-input
size="small"
v-model.trim="newTag"
placeholder="选择员工"
@input="inputTag"
style="outline: none; border: none"
@keyup.enter.native="searchEmp"
></el-input>
<el-input size="small" v-model.trim="newTag" placeholder="选择员工" @input="inputTag" style="outline: none; border: none" @keyup.enter.native="searchEmp"></el-input>
</div>
<div>
<el-button size="small" class="sale-select-btn" type="primary" @click="searchEmp">查询</el-button>
......@@ -32,12 +18,7 @@
</div>
<div>
<div class="select-sale-panel">
<select-emp
:selectData="selectData"
:islord="islord"
@selectTable="selectTable"
ref="selectEmpTabel"
></select-emp>
<select-emp :selectData="selectData" :islord="islord" @selectTable="selectTable" ref="selectEmpTabel"></select-emp>
<div class="popper__arrow"></div>
</div>
</div>
......@@ -111,7 +92,7 @@ export default {
},
mounted() {}
}
</script>
</script>
<style scoped lang="scss">
.drawer-sale-panel {
padding: 0px 20px;
......
<!-- 树形搜索 -->
<template>
<div>
<el-popover
ref="popover"
placement="bottom-start"
trigger="click"
v-model="popoverVisible"
:disabled="targetItem.isDisabled"
@show="onShowPopover"
@hide="onHidePopover"
>
<el-tree
ref="tree"
class="select-tree"
highlight-current
default-expand-all
node-key="id"
:expand-on-click-node="isExpand"
:style="`min-width: ${treeWidth}`"
:data="treeData"
:current-node-key="form[targetItem.name]"
:props="defaultProps"
:filter-node-method="handleFilterNode"
@current-change="handleNodeClick"
></el-tree>
<el-input
slot="reference"
ref="input"
v-model="form[targetItem.nameLabel]"
clearable
:disabled="targetItem.isDisabled"
:style="`width: ${width}px`"
:class="{ 'rotate': popoverVisible }"
suffix-icon="el-icon-arrow-down"
:placeholder="'请选择' + targetItem.label"
@change="handleClear"
></el-input>
<el-popover ref="popover" placement="bottom-start" trigger="click" v-model="popoverVisible" :disabled="targetItem.isDisabled" @show="onShowPopover" @hide="onHidePopover">
<el-tree ref="tree" class="select-tree" highlight-current default-expand-all node-key="id" :expand-on-click-node="isExpand" :style="`min-width: ${treeWidth}`" :data="treeData" :current-node-key="form[targetItem.name]" :props="defaultProps" :filter-node-method="handleFilterNode" @current-change="handleNodeClick"></el-tree>
<el-input slot="reference" ref="input" v-model="form[targetItem.nameLabel]" clearable :disabled="targetItem.isDisabled" :style="`width: ${width}px`" :class="{ rotate: popoverVisible }" suffix-icon="el-icon-arrow-down" :placeholder="'请选择' + targetItem.label" @change="handleClear"></el-input>
</el-popover>
</div>
</template>
......@@ -156,4 +124,4 @@ export default {
max-height: 400px;
overflow-y: scroll;
}
</style>
\ No newline at end of file
</style>
<template>
<div class="w-textarea" ref="wTextarea">
<div
contenteditable="true"
class="w-textarea_input"
ref="wTextareaContent"
:id="contentId"
@click="inputClick($event)"
@focus="onFocus"
@blur="onBlur"
@keydown.delete="handleDelete($event)"
@input="handleInput($event.target)"
></div>
<div contenteditable="true" class="w-textarea_input" ref="wTextareaContent" :id="contentId" @click="inputClick($event)" @focus="onFocus" @blur="onBlur" @keydown.delete="handleDelete($event)" @input="handleInput($event.target)"></div>
<!-- <div class="w-textarea_tools" v-if="tools.length > 0 || maxlength">
<button
class="w-textarea_tools__item"
......@@ -429,4 +419,4 @@ $textColor: #666;
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -45,40 +45,13 @@
<div class="btn-group">
<div class="add-btn" v-for="item in btnList" :key="item.id">
<!-- <i class="el-icon-circle-plus-outline"></i> -->
<img
:src="require(`@/assets/guestCustom/add-${item.type}.png`)"
alt
v-if="item.id == 1"
@click="selectEmotion"
/>
<img :src="require(`@/assets/guestCustom/add-${item.type}.png`)" alt v-if="item.id == 1" @click="selectEmotion" />
<img :src="require(`@/assets/guestCustom/add-${item.type}.png`)" v-else alt />
<span v-if="item.id == 1" @click.stop="selectEmotion">{{ item.name }}</span>
<span v-else>{{ item.name }}</span>
<input
v-if="item.type == 'img'"
type="file"
style="opacity: 0"
:id="item.name + 'file'"
ref="file"
class="welcome-input upload-img"
:accept="item.accept || 'image/png, image/jpeg, image/jpg'"
@change="e => handleImgChange(e, item)"
/>
<input
v-else-if="item.type == 'video'"
type="file"
style="opacity: 0"
:id="item.name + 'file'"
ref="file"
class="welcome-input"
:accept="item.accept || 'video/*'"
@change="e => handleVideoChange(e, item)"
/>
<el-link
v-else-if="item.type == 'nickname' || item.type == 'acivity'"
style="opacity: 0"
@click="handleFun(item.funName)"
>{{ item.name }}</el-link>
<input v-if="item.type == 'img'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input upload-img" :accept="item.accept || 'image/png, image/jpeg, image/jpg'" @change="e => handleImgChange(e, item)" />
<input v-else-if="item.type == 'video'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input" :accept="item.accept || 'video/*'" @change="e => handleVideoChange(e, item)" />
<el-link v-else-if="item.type == 'nickname' || item.type == 'acivity'" style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link>
</div>
</div>
</div>
......
......@@ -10,21 +10,9 @@
</div>
</glsx-combi-form>
<!-- 表格区域 开始 -->
<GLTable
style="margin-top: 20px;"
ref="table"
:getListApi="getListApi"
:searchForm="searchForm"
:tableParams="tableParams"
:hasPage="false"
:pageConf="pageConf"
>
<GLTable style="margin-top: 20px;" ref="table" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :hasPage="false" :pageConf="pageConf">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button
type="text"
:disabled="scope.scope.status == 1 || (scope.scope.status == 0 && scope.scope.remindStatus == 1)"
@click="remind(scope.scope)"
>提醒发送</el-button>
<el-button type="text" :disabled="scope.scope.status == 1 || (scope.scope.status == 0 && scope.scope.remindStatus == 1)" @click="remind(scope.scope)">提醒发送</el-button>
</div>
</GLTable>
</div>
......
......@@ -5,12 +5,7 @@
<div class="detail-modular">
<div class="title">员工详情</div>
<div class="detail-info">
<el-menu
:default-active="activeIndex"
class="el-menu-demo"
mode="horizontal"
@select="handleSelect"
>
<el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
<el-menu-item index>全部</el-menu-item>
<el-menu-item index="1">已发送员工</el-menu-item>
<el-menu-item index="0">未发送员工</el-menu-item>
......@@ -19,24 +14,14 @@
<div class="detail-total">共 {{ employeelist.length || 0 }} 人</div>
<div v-if="employeelist.length != 0" class="info-list">
<div class="info-item" v-for="(item, index) in employeelist" :key="item.id">
<img
class="info-avatar"
:src="item.avatar ? item.avatar : require('@/assets/guestCustom/default-avatar.png')"
alt
/>
<img class="info-avatar" :src="item.avatar ? item.avatar : require('@/assets/guestCustom/default-avatar.png')" alt />
<div class="info-content">
<div class="info-text">
<div class="info-name">
{{ item.staffName }}
<span :class="[item.status == 0 ? 'unsend' : 'send']">
{{ item.status == 0 ? '未发送' : item.status == 1 ? '已发送' : '发送失败' }}
<el-popover
v-show="item.status != 0 && item.status != 1"
placement="top-start"
title="失败原因:"
width="400"
trigger="hover"
>
<el-popover v-show="item.status != 0 && item.status != 1" placement="top-start" title="失败原因:" width="400" trigger="hover">
<p>1.若插入活动发送失败,可能为企微未绑定活动小程序,请绑定后再尝试。</p>
<p>2.可能为客户开启消息免打扰,消息发送失败。</p>
<p>3.可能为群发次数达到上限,上限次数为每个客户/客户群每天仅可接收1条群发消息。</p>
......@@ -48,13 +33,7 @@
</div>
<div class="info-right">
<div v-if="item.status != 0 || item.remindStatus == 1">已提醒</div>
<el-button
v-if="item.status == 0"
:disabled="item.remindStatus == 1 || isDisabled"
size="mini"
type="primary"
@click="remind(item, index)"
>提醒</el-button>
<el-button v-if="item.status == 0" :disabled="item.remindStatus == 1 || isDisabled" size="mini" type="primary" @click="remind(item, index)">提醒</el-button>
</div>
</div>
</div>
......@@ -68,12 +47,7 @@
<div class="detail-modular">
<div class="title">客户详情</div>
<div class="detail-info">
<el-menu
:default-active="customIndex"
class="el-menu-demo"
mode="horizontal"
@select="handleCustomSelect"
>
<el-menu :default-active="customIndex" class="el-menu-demo" mode="horizontal" @select="handleCustomSelect">
<el-menu-item index>全部</el-menu-item>
<el-menu-item index="1">已送达客户</el-menu-item>
<el-menu-item index="0">未送达客户</el-menu-item>
......@@ -82,24 +56,14 @@
<div class="detail-total">共 {{ customerlist.length || 0 }} 人</div>
<div v-if="customerlist.length != 0" class="info-list">
<div class="info-item" v-for="item in customerlist" :key="item.id">
<img
class="info-avatar"
:src="item.avatar ? item.avatar : require('@/assets/guestCustom/default-avatar.png')"
alt
/>
<img class="info-avatar" :src="item.avatar ? item.avatar : require('@/assets/guestCustom/default-avatar.png')" alt />
<div class="info-content info-custom">
<div class="info-text">
<div class="info-name">
{{ item.customerName }}
<div class="customer-table" :class="[item.status == 0 ? 'unsend' : 'send']">
{{ item.status == 0 ? '未送达' : item.status == 1 ? '已送达' : '送达失败' }}
<el-popover
v-show="item.status != 0 && item.status != 1"
placement="top-start"
title="失败原因:"
width="400"
trigger="hover"
>
<el-popover v-show="item.status != 0 && item.status != 1" placement="top-start" title="失败原因:" width="400" trigger="hover">
<p>1.若插入活动发送失败,可能为企微未绑定活动小程序,请绑定后再尝试。</p>
<p>2.可能为客户开启消息免打扰,消息发送失败。</p>
<p>3.可能为群发次数达到上限,上限次数为每个客户/客户群每天仅可接收1条群发消息。</p>
......@@ -109,7 +73,7 @@
</div>
</div>
<div class="info-right">
<div>通过 {{item.staffName}}发送</div>
<div>通过 {{ item.staffName }}发送</div>
</div>
</div>
</div>
......
<template>
<div class="send-assistant">
<div class="menu-sub">
<div
class="menu-sub-item"
:class="[activeIndex == '1' ? 'active' : '']"
@click="switchMenu(1)"
>客户群发</div>
<div
class="menu-sub-item"
:class="[activeIndex == '2' ? 'active' : '']"
@click="switchMenu(2)"
>客户群群发</div>
<div class="menu-sub-item" :class="[activeIndex == '1' ? 'active' : '']" @click="switchMenu(1)">客户群发</div>
<div class="menu-sub-item" :class="[activeIndex == '2' ? 'active' : '']" @click="switchMenu(2)">客户群群发</div>
</div>
<div v-if="activeIndex == 1" class="container">
<div class="container-header">
......@@ -20,42 +12,23 @@
icon="el-icon-plus"
@click="btnClick('create', 1)"
>新建群发</el-button>-->
<GLButton
type="primary"
:size="size"
icon="el-icon-plus"
fn="新建客户群发"
@click="btnClick('create', 1)"
>新建群发</GLButton>
<GLButton type="primary" :size="size" icon="el-icon-plus" fn="新建客户群发" @click="btnClick('create', 1)">新建群发</GLButton>
<div class="text">企业统一选择要发送的客户,由添加客户的成员确认后发送给客户,消息内容仅管理员和负责人可创建。</div>
</div>
<!-- 表格区域 开始 -->
<GLTable
:key="key"
ref="customer"
:getListApi="customerList"
:tableParams="gueastTableParams"
:pageConf="gueastPageConf"
>
<GLTable :key="key" ref="customer" :getListApi="customerList" :tableParams="gueastTableParams" :pageConf="gueastPageConf">
<div slot="entmicro-name" class="entmicro" slot-scope="scope">
<span v-for="(i, index) in scope.scope.attachmentList" :key="index">
[共{{scope.scope.attachmentList.length}}条]
<span v-show="i.attType == 1">{{i.attContent}}</span>
<span v-show="i.attType == 2 || i.attType == 3">[{{ATT_TYPE[i.attType]}}]</span>
<span v-show="i.attType == 4 || i.attType == 5">[{{ATT_TYPE[i.attType]}}]</span>
[共{{ scope.scope.attachmentList.length }}条]
<span v-show="i.attType == 1">{{ i.attContent }}</span>
<span v-show="i.attType == 2 || i.attType == 3">[{{ ATT_TYPE[i.attType] }}]</span>
<span v-show="i.attType == 4 || i.attType == 5">[{{ ATT_TYPE[i.attType] }}]</span>
</span>
</div>
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<span
v-if="scope.scope.status == -1 || scope.scope.status == 2"
style="color: #EB4E4E;"
>创建失败</span>
<span v-if="scope.scope.status == -1 || scope.scope.status == 2" style="color: #EB4E4E;">创建失败</span>
<span v-else>
<el-button
type="text"
:disabled="scope.scope.unsendUserNum == 0 || (scope.scope.unsendUserNum != 0 && scope.scope.isRemind == 1) || new Date(scope.scope.sendTime) > new Date()"
@click="btnClick('remind', 1, scope.scope)"
>提醒发送</el-button>
<el-button type="text" :disabled="scope.scope.unsendUserNum == 0 || (scope.scope.unsendUserNum != 0 && scope.scope.isRemind == 1) || new Date(scope.scope.sendTime) > new Date()" @click="btnClick('remind', 1, scope.scope)">提醒发送</el-button>
<GLButton type="text" fn="客户群发详情" @click="btnClick('detail', 1, scope.scope)">详情</GLButton>
<!-- <el-button type="text" @click="btnClick('detail', 1, scope.scope)">详情</el-button> -->
</span>
......@@ -71,39 +44,23 @@
icon="el-icon-plus"
@click="btnClick('create', 2)"
>新建群发</el-button>-->
<GLButton
type="primary"
:size="size"
fn="新建客户群群发"
icon="el-icon-plus"
@click="btnClick('create', 2)"
>新建群发</GLButton>
<GLButton type="primary" :size="size" fn="新建客户群群发" icon="el-icon-plus" @click="btnClick('create', 2)">新建群发</GLButton>
<div class="text">管理员或负责人统一创建内容,群主收到通知后,可选择他管理的客户群并群发。</div>
</div>
<!-- 表格区域 开始 -->
<GLTable
:key="groupKey"
ref="customerGroup"
:getListApi="customerGroupList"
:tableParams="gueastGroupTableParams"
:pageConf="gueastPageConf"
>
<GLTable :key="groupKey" ref="customerGroup" :getListApi="customerGroupList" :tableParams="gueastGroupTableParams" :pageConf="gueastPageConf">
<div slot="entmicro-name" class="entmicro" slot-scope="scope">
<span v-for="(i, index) in scope.scope.attachmentList" :key="index">
[共{{scope.scope.attachmentList.length}}条]
<span v-show="i.attType == 1">{{i.attContent}}</span>
<span v-show="i.attType == 2 || i.attType == 3">[{{ATT_TYPE[i.attType]}}]</span>
<span v-show="i.attType == 4 || i.attType == 5">[{{ATT_TYPE[i.attType]}}]</span>
[共{{ scope.scope.attachmentList.length }}条]
<span v-show="i.attType == 1">{{ i.attContent }}</span>
<span v-show="i.attType == 2 || i.attType == 3">[{{ ATT_TYPE[i.attType] }}]</span>
<span v-show="i.attType == 4 || i.attType == 5">[{{ ATT_TYPE[i.attType] }}]</span>
</span>
</div>
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<span v-if="scope.scope.status == -1" style="color: #EB4E4E;">创建失败</span>
<span v-else>
<el-button
type="text"
:disabled="scope.scope.unsendUserNum == 0 || (scope.scope.unsendUserNum != 0 && scope.scope.isRemind == 1)"
@click="btnClick('remind', 2, scope.scope)"
>提醒发送</el-button>
<el-button type="text" :disabled="scope.scope.unsendUserNum == 0 || (scope.scope.unsendUserNum != 0 && scope.scope.isRemind == 1)" @click="btnClick('remind', 2, scope.scope)">提醒发送</el-button>
<GLButton type="text" fn="客户群群发详情" @click="btnClick('detail', 2, scope.scope)">详情</GLButton>
<!-- <el-button type="text" @click="btnClick('detail', 2, scope.scope)">详情</el-button> -->
</span>
......
<!-- 编辑礼包 -->
<template>
<div class="edit-gift marketing p-t-20 edit-box">
<div v-if="routeInfo.addOrEdit!='add'" class="container approval-container">
<div v-if="routeInfo.addOrEdit != 'add'" class="container approval-container">
<p class="edit-title">审批信息</p>
<div class="approval-info">
<div class="approval_label">审批人:{{editForm.approveBy}}</div>
<div class="approval_label">审批状态:<span :style="{color:approvalStatusColor[approvalStatus]}">{{approvalStatusVal[approvalStatus]}}</span></div>
<div v-if="approvalStatus==2" class="approval_label">驳回说明:<div class="approval_con">{{editForm.approveExplain}}</div></div>
<div class="approval_label">审批人:{{ editForm.approveBy }}</div>
<div class="approval_label">
审批状态:
<span :style="{ color: approvalStatusColor[approvalStatus] }">{{ approvalStatusVal[approvalStatus] }}</span>
</div>
<div v-if="approvalStatus == 2" class="approval_label">
驳回说明:
<div class="approval_con">{{ editForm.approveExplain }}</div>
</div>
</div>
</div>
<div class="container edit-container">
......@@ -45,17 +51,17 @@
</div>
</div>
</glsx-combi-form>
<div v-if="routeInfo.addOrEdit!='add'" class="approval_note_container">
<div v-if="routeInfo.addOrEdit != 'add'" class="approval_note_container">
<div class="line"></div>
<div class="note_container">
<div class="left">
<span class="mar40">创建时间:{{editForm.createdDate}}</span>
<span class="">创建人:{{editForm.createdBy}}</span>
</div>
<div class="right">
<span class="mar40">最后修改时间:{{editForm.updatedDate}}</span>
<span class="">修改人:{{editForm.updatedBy}}</span>
</div>
<div class="left">
<span class="mar40">创建时间:{{ editForm.createdDate }}</span>
<span class="">创建人:{{ editForm.createdBy }}</span>
</div>
<div class="right">
<span class="mar40">最后修改时间:{{ editForm.updatedDate }}</span>
<span class="">修改人:{{ editForm.updatedBy }}</span>
</div>
</div>
</div>
</div>
......@@ -248,13 +254,13 @@ export default {
}
],
// 审批状态 0审批中 1审批通过 2审批驳回
approvalStatus:1,
approvalStatusVal:['审批中','审批通过','已驳回','审批撤销','待审批'],
approvalStatusColor:['#FF6D00','#2CCA74','#EB4E4E','#999999','#999999'],
isChangeCoupons:true,
isChangePeople:true,
currentCoupons:[],
currentPeople:[]
approvalStatus: -1,
approvalStatusVal: ['审批中', '审批通过', '已驳回', '审批撤销', '待审批'],
approvalStatusColor: ['#FF6D00', '#2CCA74', '#EB4E4E', '#999999', '#999999'],
isChangeCoupons: true,
isChangePeople: true,
currentCoupons: [],
currentPeople: []
}
},
......@@ -270,14 +276,14 @@ export default {
},
deep: true
},
'editForm.couponList':{
handler(val){
this.isChangeCoupons = this.judgeAddOrDel(val,this.currentCoupons,'id')
'editForm.couponList': {
handler(val) {
this.isChangeCoupons = this.judgeAddOrDel(val, this.currentCoupons, 'id')
}
},
'editForm.staffList':{
handler(val){
this.isChangePeople = this.judgeAddOrDel(val,this.currentPeople,'staffUUID')
'editForm.staffList': {
handler(val) {
this.isChangePeople = this.judgeAddOrDel(val, this.currentPeople, 'staffUUID')
}
}
},
......@@ -329,15 +335,16 @@ export default {
},
// 用来判断券和发放员工是否有增删 type: id为礼券 staffUUID为发放员工
judgeAddOrDel(newArr,oldArr,type='id'){
let id1 = [],id2 = []
newArr.forEach(item=>{
judgeAddOrDel(newArr, oldArr, type = 'id') {
let id1 = [],
id2 = []
newArr.forEach(item => {
id1.push(item[type])
})
oldArr.forEach(item=>{
oldArr.forEach(item => {
id2.push(item[type])
})
let flag = id1.length === id2.length && id1.sort().toString() === id2.sort().toString();
let flag = id1.length === id2.length && id1.sort().toString() === id2.sort().toString()
return flag
},
......@@ -450,40 +457,42 @@ export default {
params.requestSource = 1
// 插入判断是否存在审批模板
const { session } = this.$globalState
this.$apis.giftBag.templateModal({merchantId:session.merchantId}).then((result)=>{
if(result.data&&(!this.isChangeCoupons || !this.isChangePeople)){
this.$apis.giftBag.templateModal({ merchantId: session.merchantId }).then(result => {
if (result.data && (!this.isChangeCoupons || !this.isChangePeople)) {
this.$confirm(`<div>提交后立即生效,如需审批,请在企微工作台创建</div><div>是否继续提交</div>`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
dangerouslyUseHTMLString:true
dangerouslyUseHTMLString: true
})
.then(() => {
this.insertHttp(params)
})
.catch(() => { })
}else{
this.insertHttp(params)
.catch(() => {})
} else {
this.insertHttp(params)
}
})
}
})
},
// 创建-更新接口
insertHttp(params){
insertHttp(params) {
this.loading = true
this.$apis.giftBag.insertGiftApi(params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
this.$apis.giftBag
.insertGiftApi(params)
.then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
if (res.code == '0') {
this.cancelJump()
}
})
.finally(() => {
this.loading = false
})
if (res.code == '0') {
this.cancelJump()
}
})
.finally(() => {
this.loading = false
})
},
cancelJump() {
this.$router.push({
......@@ -500,7 +509,7 @@ export default {
.then(() => {
this.cancelJump()
})
.catch(() => { })
.catch(() => {})
} else {
this.cancelJump()
}
......@@ -622,11 +631,11 @@ export default {
}
}
// v2.0.0
.approval-info{
.approval-info {
display: flex;
box-sizing: border-box;
padding: 32px 0 12px 82px;
.approval_label{
.approval_label {
font-size: 14px;
font-weight: 400;
color: #666666;
......@@ -634,7 +643,7 @@ export default {
display: flex;
line-height: 20px;
white-space: nowrap;
.approval_con{
.approval_con {
width: 80%;
font-size: 14px;
font-weight: 400;
......@@ -644,23 +653,24 @@ export default {
}
}
}
.approval_note_container{
.line{
.approval_note_container {
.line {
margin: 0 20px;
border-top: 1px solid #D8D8D8 ;
border-top: 1px solid #d8d8d8;
}
.note_container{
.note_container {
box-sizing: border-box;
padding: 32px 68px 12px 68px;
display: flex;
justify-content: space-between;
.left,.right{
.left,
.right {
display: flex;
align-items: center;
font-size: 14px;
font-weight: 400;
color: #666666;
.mar40{
.mar40 {
margin-right: 40px;
}
}
......
......@@ -4,9 +4,15 @@
<div class="container approval-container">
<p class="edit-title">审批信息</p>
<div class="approval-info">
<div class="approval_label">审批人:{{editForm.approveBy}}</div>
<div class="approval_label">审批状态:<span :style="{color:approvalStatusColor[approvalStatus]}">{{approvalStatusVal[approvalStatus]}}</span></div>
<div v-if="approvalStatus==2" class="approval_label">驳回说明:<div class="approval_con">{{editForm.approveExplain}}</div></div>
<div class="approval_label">审批人:{{ editForm.approveBy }}</div>
<div class="approval_label">
审批状态:
<span :style="{ color: approvalStatusColor[approvalStatus] }">{{ approvalStatusVal[approvalStatus] }}</span>
</div>
<div v-if="approvalStatus == 2" class="approval_label">
驳回说明:
<div class="approval_con">{{ editForm.approveExplain }}</div>
</div>
</div>
</div>
<div class="container edit-container">
......@@ -44,14 +50,14 @@
<div class="approval_note_container">
<div class="line"></div>
<div class="note_container">
<div class="left">
<span class="mar40">创建时间:{{editForm.createdDate}}</span>
<span class="">创建人:{{editForm.createdBy}}</span>
</div>
<div class="right">
<span class="mar40">最后修改时间:{{editForm.updatedDate}}</span>
<span class="">修改人:{{editForm.updatedBy}}</span>
</div>
<div class="left">
<span class="mar40">创建时间:{{ editForm.createdDate }}</span>
<span class="">创建人:{{ editForm.createdBy }}</span>
</div>
<div class="right">
<span class="mar40">最后修改时间:{{ editForm.updatedDate }}</span>
<span class="">修改人:{{ editForm.updatedBy }}</span>
</div>
</div>
</div>
</div>
......@@ -166,9 +172,9 @@ export default {
}
],
// 审批状态 0审批中 1审批通过 2审批驳回
approvalStatus:2,
approvalStatusVal:['审批中','审批通过','已驳回','审批撤销','待审批'],
approvalStatusColor:['#FF6D00','#2CCA74','#EB4E4E','#999999','#999999'],
approvalStatus: -1,
approvalStatusVal: ['审批中', '审批通过', '已驳回', '审批撤销', '待审批'],
approvalStatusColor: ['#FF6D00', '#2CCA74', '#EB4E4E', '#999999', '#999999']
}
},
......@@ -350,11 +356,11 @@ export default {
}
}
// v2.0.0
.approval-info{
.approval-info {
display: flex;
box-sizing: border-box;
padding: 32px 0 12px 82px;
.approval_label{
.approval_label {
font-size: 14px;
font-weight: 400;
color: #666666;
......@@ -363,7 +369,7 @@ export default {
display: flex;
line-height: 20px;
white-space: nowrap;
.approval_con{
.approval_con {
width: 80%;
font-size: 14px;
font-weight: 400;
......@@ -373,23 +379,24 @@ export default {
}
}
}
.approval_note_container{
.line{
.approval_note_container {
.line {
margin: 0 20px;
border-top: 1px solid #D8D8D8 ;
border-top: 1px solid #d8d8d8;
}
.note_container{
.note_container {
box-sizing: border-box;
padding: 32px 68px 12px 68px;
display: flex;
justify-content: space-between;
.left,.right{
.left,
.right {
display: flex;
align-items: center;
font-size: 14px;
font-weight: 400;
color: #666666;
.mar40{
.mar40 {
margin-right: 40px;
}
}
......
......@@ -39,7 +39,7 @@
<p class="cursor-pointer" @click="handleDetail(scope.scope)">{{ scope.scope.name }}</p>
</div>
<div slot="approveStatus" slot-scope="scope">
<span :style="{color:approvalStatusColor[scope.scope.approveStatus-1]}">{{approvalStatusVal[scope.scope.approveStatus-1]}}</span>
<span :style="{ color: approvalStatusColor[scope.scope.approveStatus - 1] }">{{ approvalStatusVal[scope.scope.approveStatus - 1] }}</span>
</div>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<GLButton type="text" fn="编辑" @click="handleEdit('edit', scope.scope)">编辑</GLButton>
......@@ -64,7 +64,7 @@ export default {
searchForm: {
name: '',
staffName: '',
approveStatus:'',
approveStatus: '',
createDate: []
},
tableSearchForm: {},
......@@ -155,7 +155,7 @@ export default {
{
label: '审批状态',
prop: 'approveStatus',
addHtml: 'approveStatus',
addHtml: 'approveStatus'
},
{
label: '创建时间',
......@@ -179,7 +179,7 @@ export default {
confName: '已发布'
}
],
approvalStatusList:[
approvalStatusList: [
{
confId: 5,
confName: '待审批'
......@@ -195,13 +195,13 @@ export default {
{
confId: 3,
confName: '已驳回'
},
}
]
},
// 1 审批中;2 审批通过; 3审批驳回 4审批撤销 5待审批
// 审批状态 0审批中 1审批通过 2审批驳回
approvalStatusColor:['#FF6D00','#2CCA74','#EB4E4E','#999999','#999999'],
approvalStatusVal:['审批中','审批通过','已驳回','审批撤销','待审批'],
approvalStatusColor: ['#FF6D00', '#2CCA74', '#EB4E4E', '#999999', '#999999'],
approvalStatusVal: ['审批中', '审批通过', '已驳回', '审批撤销', '待审批']
}
},
......@@ -256,7 +256,7 @@ export default {
},
handleDelete(row) {
if(row.approveStatus==1){
if (row.approveStatus == 1) {
this.$message({
message: '不支持删除审批中状态的礼包',
type: 'error'
......@@ -278,7 +278,7 @@ export default {
// add-新增;edit-编辑
handleEdit(addOrEdit, row) {
if(addOrEdit=='edit'&&row.approveStatus==1){
if (addOrEdit == 'edit' && row.approveStatus == 1) {
this.$message({
message: '不支持修改审批中状态的礼包',
type: 'error'
......
......@@ -28,10 +28,10 @@ export default {
receivedGiftList
},
mounted() { },
mounted() {},
methods: {
handleTabClick() { }
handleTabClick() {}
}
}
</script>
......
......@@ -58,7 +58,7 @@ export default {
},
searchForm: {
type: Object,
default: () => { }
default: () => {}
},
selectedStaffList: {
type: Array,
......
......@@ -332,4 +332,4 @@ export default {
height: 178px;
display: block;
}
</style>
\ No newline at end of file
</style>
......@@ -31,7 +31,7 @@ export default {
groupName: '',
businessType: []
},
businessTypes: ['整车/新车','保养','维修','车险','二手车','改装','汽车金融','零配件/精品','通用(节假日等关怀素材)'],
businessTypes: ['整车/新车', '保养', '维修', '车险', '二手车', '改装', '汽车金融', '零配件/精品', '通用(节假日等关怀素材)'],
materialGroupAddRules: {
groupName: [
{ required: true, message: '请输入分组名称', trigger: 'blur' },
......@@ -53,18 +53,18 @@ export default {
},
// 创建
submitForm() {
this.$refs.materialGroupAddForm.validate((valid) => {
if (valid) {
this.$emit('addMaterialGroup', this.materialGroupAddForm)
this.dialogVisible = false
} else {
alert('请输入分组名称')
return false;
}
});
this.$refs.materialGroupAddForm.validate(valid => {
if (valid) {
this.$emit('addMaterialGroup', this.materialGroupAddForm)
this.dialogVisible = false
} else {
alert('请输入分组名称')
return false
}
})
},
handleCheckChange(val) {
console.log(val);
console.log(val)
this.materialGroupAddForm.businessType = val
// console.log(this.materialGroupAddForm);
}
......@@ -72,5 +72,4 @@ export default {
}
</script>
<style>
</style>
\ No newline at end of file
<style></style>
......@@ -6,13 +6,12 @@
<el-button type="default" :size="size" @click="handleReset(scope)">重置</el-button>
</span>
</glsx-combi-form>
<GLTable ref="readPerDetailRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :tableData="readPerDetailTableData" :pageConf="pageConf" :tableTotal="tableTotal">
</GLTable>
<GLTable ref="readPerDetailRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :tableData="readPerDetailTableData" :pageConf="pageConf" :tableTotal="tableTotal"></GLTable>
</div>
</template>
<script>
import url from "@/assets/empty.png"
import url from '@/assets/empty.png'
export default {
name: 'readPerDetail',
data() {
......@@ -70,6 +69,4 @@ export default {
}
</script>
<style lang="" scoped>
</style>
<style lang="" scoped></style>
......@@ -6,13 +6,12 @@
<el-button type="default" :size="size" @click="handleReset(scope)">重置</el-button>
</span>
</glsx-combi-form>
<GLTable ref="materialRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :tableData="staffSendTableData" :pageConf="pageConf" :tableTotal="tableTotal">
</GLTable>
<GLTable ref="materialRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :tableData="staffSendTableData" :pageConf="pageConf" :tableTotal="tableTotal"></GLTable>
</div>
</template>
<script>
import url from "@/assets/empty.png"
import url from '@/assets/empty.png'
export default {
name: 'staffSendDetail',
data() {
......@@ -61,6 +60,4 @@ export default {
}
</script>
<style lang="" scoped>
</style>
<style lang="" scoped></style>
......@@ -10,8 +10,8 @@ export default {
name: 'textBox',
data() {
return {
content: '',
editorOption: {},
content: '',
editorOption: {}
}
},
mounted() {
......@@ -20,7 +20,6 @@ export default {
methods: {
// getEdit() {
// var editor = new E('#div-demo')
// editor.config.uploadImgShowBase64 = true
// editor.config.showMenuTooltips = true
// editor.config.menuTooltipPosition = 'down'
......@@ -29,7 +28,6 @@ export default {
// editor.config.excludeMenus = [
// 'code'
// ]
// editor.create()
// }
}
......@@ -40,11 +38,11 @@ export default {
#div-demo {
margin-top: 40px;
}
.el-form .editor{
margin-top: 20px;
.el-form .editor {
margin-top: 20px;
}
.myQuillEditor {
background-color: #fff;
height: 200px;
}
</style>
\ No newline at end of file
</style>
......@@ -5,7 +5,10 @@
<i class="el-icon-plus"></i>
创建营销素材
</el-button>
<span>功能介绍<i class="el-icon-arrow-right"></i></span>
<span>
功能介绍
<i class="el-icon-arrow-right"></i>
</span>
</div>
<div class="container">
<div class="search-form">
......@@ -21,7 +24,7 @@
<el-col :span="5">
<div class="left">
<el-button class="add-group" type="primary" icon="el-icon-plus" :size="size" @click="handleAddGroup(1)">创建素材组</el-button>
<div class="all-group">全部素材组 ({{ groupCounter.length }})</div>
<div class="all-group">全部素材组 ({{ groupCounter.length }})</div>
<ul>
<!-- <li class="all-group">全部素材组({{ groupCounter.length }})</li> -->
<li>
......@@ -342,19 +345,19 @@ export default {
// 有效阅读人数排序
if (sort.column.label === '有效阅读人数') {
this.handleSort(sortingType, fieldName)
this.handleSort(sortingType, fieldName)
}
},
// 排序规则
handleSort(sortingType, fieldName) {
//按照降序排序
if (sortingType == 'descending') {
this.materialTableData = this.materialTableData.sort((a, b) => b[fieldName] - a[fieldName])
}
//按照升序排序
else {
this.materialTableData = this.materialTableData.sort((a, b) => a[fieldName] - b[fieldName])
}
if (sortingType == 'descending') {
this.materialTableData = this.materialTableData.sort((a, b) => b[fieldName] - a[fieldName])
}
//按照升序排序
else {
this.materialTableData = this.materialTableData.sort((a, b) => a[fieldName] - b[fieldName])
}
}
}
}
......@@ -372,7 +375,7 @@ export default {
span {
margin-left: 16px;
font-size: 16px;
color: #5850FF;
color: #5850ff;
}
}
}
......@@ -388,15 +391,15 @@ export default {
.left {
height: 100%;
position: relative;
border-right: 1px solid #E8E8EA;
border-right: 1px solid #e8e8ea;
.add-group {
margin: 20px 0 16px 16px;
}
.all-group {
font-size: 16px;
font-weight: 600;
margin: 0 0 19px 16px;
}
font-size: 16px;
font-weight: 600;
margin: 0 0 19px 16px;
}
ul {
li {
list-style: none;
......@@ -406,7 +409,7 @@ export default {
font-size: 16px;
position: absolute;
right: 16px;
transform:rotate(90deg);
transform: rotate(90deg);
}
}
}
......@@ -422,4 +425,5 @@ export default {
}
}
}
</style>>
\ No newline at end of file
</style>
>
......@@ -39,7 +39,7 @@
</div>
<div class="summarization">
<div class="countTime">
<span class="materialDetail-title top-title">数据概览</span>
<span class="materialDetail-title top-title">数据概览</span>
</div>
<el-divider></el-divider>
<div>
......@@ -124,14 +124,14 @@ export default {
&-pre {
margin-left: 10px;
font-size: 14px;
color: #5850FF;
color: #5850ff;
font-weight: 600;
}
}
&-unfold {
margin-right: 23px;
font-size: 12px;
color: #5850FF;
color: #5850ff;
}
}
.summarization {
......@@ -161,4 +161,4 @@ export default {
display: inline-block;
margin: 17px 0 0 20px;
}
</style>
\ No newline at end of file
</style>
<template>
<div class="live-room">
<div class="memberCardWrap" v-if="!(merchantModel==2 && accountLevel==1)">
<div class="memberCardWrap" v-if="!(merchantModel == 2 && accountLevel == 1)">
<div class="cardBoxWrap">
<img src="@/assets/memberCard.png" alt="" />
<div class="masonry">
......@@ -9,10 +9,11 @@
<div class="memberCardName">{{ ruleForm.cardName }}</div>
</div>
<div class="cardDetail" v-if="!isShowEditWrap">
<div class="flex-1"> <p>{{ ruleForm.cardName }}</p>
<GLButton @click="openEditWrap" fn="编辑" mode="div"> <img src="@/assets/edit.png" class="editIcon" @click="openEditWrap" alt="" /></GLButton>
<div class="flex-1">
<p>{{ ruleForm.cardName }}</p>
<GLButton @click="openEditWrap" fn="编辑" mode="div"><img src="@/assets/edit.png" class="editIcon" @click="openEditWrap" alt="" /></GLButton>
</div>
<!-- <img src="@/assets/edit.png" class="editIcon" @click="openEditWrap" alt="" /> -->
<div class="row">
<span>售价:</span>
......@@ -36,14 +37,14 @@
<el-form-item label="售价" size="small" prop="price" style="width: 300px">
<el-input v-model="ruleForm.price" size="small" placeholder="请输入合理价格" @keyup.native="ruleForm.price = oninput(ruleForm.price)">
<!-- <template slot="append">元</template> -->
<span slot="suffix" class="suffix-label">元</span>
<span slot="suffix" class="suffix-label">元</span>
</el-input>
</el-form-item>
<el-form-item label="市场价" prop="marketPrice" size="small" style="width: 300px">
<!-- :onkeyup="(ruleForm.marketPrice = ruleForm.marketPrice.replace(/[^\-\d.]/g, ''))" -->
<el-input v-model="ruleForm.marketPrice" size="small" placeholder="请输入合理价格" @keyup.native="ruleForm.marketPrice = oninput(ruleForm.marketPrice)">
<!-- <template slot="append">元</template> -->
<span slot="suffix" class="suffix-label">元</span>
<span slot="suffix" class="suffix-label">元</span>
</el-input>
</el-form-item>
</el-form>
......@@ -53,7 +54,7 @@
</div>
</div>
<p class="pageTitle" v-if="!(merchantModel==2 && accountLevel==1)">会员中心</p>
<p class="pageTitle" v-if="!(merchantModel == 2 && accountLevel == 1)">会员中心</p>
<div class="live-room container">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="70px" label-position="right">
<el-row>
......@@ -79,14 +80,14 @@
<el-date-picker :size="size" v-model="searchForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions || {}"></el-date-picker>
</el-form-item>
<el-form-item size="small" class="fr-mr0">
<el-form-item size="small" class="fr-mr0">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" type="primary" @click="handleExport">导出</el-button>
<el-button :size="size" @click="handleReset">重置</el-button>
</el-form-item>
</el-row>
</el-form>
<GLTable ref="memberCenterRef" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<GLTable ref="memberCenterRef" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="accountName" slot-scope="scope">
<div>{{ scope.scope.accountName }}</div>
<div>{{ scope.scope.mobile }}</div>
......@@ -122,8 +123,8 @@
<script>
import glsxDialog from '@/components/glsx-dialog'
import { getCenterListApi, getMoreMerchant, getCardContent, updateCardContent,memberExportApi } from '@/api/modules/center'
import { statusList, memberTypeList,exportFn } from '@/common/constant'
import { getCenterListApi, getMoreMerchant, getCardContent, updateCardContent, memberExportApi } from '@/api/modules/center'
import { statusList, memberTypeList, exportFn } from '@/common/constant'
export default {
components: {
glsxDialog
......@@ -262,23 +263,21 @@ export default {
//权益 - 弹窗
isDialogVisible: false,
merchantData: {},
merchantId: 0,//记得改 glsxadmin:44184606
merchantId: 0, //记得改 glsxadmin:44184606
merchantModel: 1, //集团:1,门店:2
accountLevel: 0, //1,2,3,4工厂,省代,市代,门店
accountLevel: 0 //1,2,3,4工厂,省代,市代,门店
}
},
created() {
if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中
this.merchantId = this.$globalState.session.merchantId
this.merchantId = this.$globalState.session.merchantId
this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel
}
this.getCardContentFun()
},
mounted () {
},
mounted() {},
methods: {
oninput(value) {
let str = value
......@@ -313,15 +312,15 @@ mounted () {
},
getCardContentFun() {
getCardContent({ merchantId: this.merchantId }).then(res => {
if(!res){
if (!res) {
return
}
this.ruleForm.equityId = res.equityClassId
this.ruleForm.equityId = res.equityClassId
this.ruleForm.cardName = res.equityName
this.ruleForm.price = res.goodPrice
this.ruleForm.marketPrice = res.marketPrice
this.ruleForm.linkUrl = res.freeUrl
this.ruleForm.tryAble=res.tryAble
this.ruleForm.linkUrl = res.freeUrl
this.ruleForm.tryAble = res.tryAble
})
},
openEditWrap() {
......@@ -354,7 +353,7 @@ mounted () {
})
})
},
getParams() {
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) {
params.startTime = this.searchForm.daterange[0] + ' 00:00:00'
......@@ -382,17 +381,15 @@ mounted () {
resolve()
})
},
handleExport(row) {
handleExport(row) {
var params = this.getParams()
memberExportApi(params).then(res => {
exportFn(res)
})
},
handleReset() {
this.searchForm = {}
this.handleSearch()
},
handleSearch() {
this.$refs.memberCenterRef.refreshTable()
......@@ -474,15 +471,15 @@ mounted () {
vertical-align: middle;
cursor: pointer;
}
.flex-1{
.flex-1 {
display: flex;
p {
display: inline-block;
font-weight: 600;
color: #333333;
font-size: 16px;
margin: 0;
}
display: inline-block;
font-weight: 600;
color: #333333;
font-size: 16px;
margin: 0;
}
}
.row {
margin-top: 15px;
......@@ -496,7 +493,7 @@ mounted () {
}
.address {
display: inline-block;
vertical-align: bottom;
vertical-align: bottom;
max-width: calc(100% - 220px);
color: #989898;
}
......@@ -550,7 +547,7 @@ mounted () {
border-top: 1px solid #e6e6e6;
border-bottom: 1px solid #e6e6e6;
// padding: 20px 45px;
padding: 20px 20px 20px 45px;
padding: 20px 20px 20px 45px;
.modal-body {
// overflow: auto;
max-height: 400px;
......
......@@ -58,9 +58,7 @@ export default {
this.$router.push('/memberCenter/center')
},
mounted() {
},
mounted() {},
methods: {
tabClick(index) {
......
......@@ -24,7 +24,7 @@
<el-date-picker :size="size" v-model="searchForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions || {}"></el-date-picker>
</el-form-item>
<el-form-item size="small" class="fr-mr0">
<el-form-item size="small" class="fr-mr0">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" type="primary" @click="handleExport">导出</el-button>
<el-button :size="size" @click="handleReset">重置</el-button>
......@@ -59,7 +59,7 @@ import { getOrderListApi, orderExportApi } from '@/api/modules/order'
export default {
data() {
return {
merchantModel: 1, //集团:1,门店:2
merchantModel: 1, //集团:1,门店:2
accountLevel: 0, //1,2,3,4工厂,省代,市代,门店
url: url,
isReload: true,
......@@ -152,9 +152,9 @@ export default {
}
}
},
created() {
created() {
if (window.__POWERED_BY_QIANKUN__) {
console.log('kkk',this.$globalState)
console.log('kkk', this.$globalState)
this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel
if (this.merchantModel == 1 && this.accountLevel == 1) {
......
......@@ -18,7 +18,10 @@
<div class="midMsgContent">
<div class="item">
<div>付款状态:已付款</div>
<div>付款金额:{{ detail.realPayPrice }}<span v-show="detail.realPayPrice">元</span></div>
<div>
付款金额:{{ detail.realPayPrice }}
<span v-show="detail.realPayPrice">元</span>
</div>
<div>付款方式:微信支付</div>
<div>付款时间:{{ detail.createDate }}</div>
</div>
......@@ -39,41 +42,40 @@
</div>
</div>
<div id="tableWrap">
<div class="tableWrapBox">
<el-table :data="tableData" style="width: 100%" :header-cell-style="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<el-table-column label="商品名称" align="center">
<template slot-scope="scope">
<div v-for="(item, index) in scope.row.couponList" :key="index">{{ item.couponName }}</div>
</template>
</el-table-column>
<el-table-column label="类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.orderType == 1 ? '套餐' : '权益卡' }}</span>
</template>
</el-table-column>
<el-table-column label="有效期" align="center" v-if="detail.orderType == 2">
<template slot-scope="scope">
<span>{{ scope.row.effectiveNum == '-1' ? '无限制' : scope.row.effectiveNum + '天' }}</span>
</template>
</el-table-column>
<div class="tableWrapBox">
<el-table :data="tableData" style="width: 100%" :header-cell-style="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<el-table-column label="商品名称" align="center">
<template slot-scope="scope">
<div v-for="(item, index) in scope.row.couponList" :key="index">{{ item.couponName }}</div>
</template>
</el-table-column>
<el-table-column label="类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.orderType == 1 ? '套餐' : '权益卡' }}</span>
</template>
</el-table-column>
<el-table-column label="有效期" align="center" v-if="detail.orderType == 2">
<template slot-scope="scope">
<span>{{ scope.row.effectiveNum == '-1' ? '无限制' : scope.row.effectiveNum + '天' }}</span>
</template>
</el-table-column>
<el-table-column prop="originalPrice" label="单价/元" align="center"></el-table-column>
<el-table-column prop="amount" label="数量" align="center"></el-table-column>
<el-table-column prop="totalPrice" label="小计/元" align="center"></el-table-column>
<el-table-column prop="realPayPrice" label="实收金额" align="center">
<template slot-scope="scope">
<span style="color:#EB4E4E">{{ scope.row.realPayPrice }}</span>
</template>
</el-table-column>
<el-table-column prop="orderStatus" label="状态" align="center">
<template slot-scope="scope">
<span>{{ scope.row.orderStatus == 2 ? '待收货' : scope.row.orderStatus == 3 ? '已完成' : scope.row.orderStatus == 4 ? '售后中' : scope.row.orderStatus == 5 ? '退款失败' : scope.row.orderStatus == 6 ? '已退款' : '' }}</span>
<div>{{scope.row.refundReason}}</div>
</template>
</el-table-column>
</el-table>
<el-table-column prop="originalPrice" label="单价/元" align="center"></el-table-column>
<el-table-column prop="amount" label="数量" align="center"></el-table-column>
<el-table-column prop="totalPrice" label="小计/元" align="center"></el-table-column>
<el-table-column prop="realPayPrice" label="实收金额" align="center">
<template slot-scope="scope">
<span style="color:#EB4E4E">{{ scope.row.realPayPrice }}</span>
</template>
</el-table-column>
<el-table-column prop="orderStatus" label="状态" align="center">
<template slot-scope="scope">
<span>{{ scope.row.orderStatus == 2 ? '待收货' : scope.row.orderStatus == 3 ? '已完成' : scope.row.orderStatus == 4 ? '售后中' : scope.row.orderStatus == 5 ? '退款失败' : scope.row.orderStatus == 6 ? '已退款' : '' }}</span>
<div>{{ scope.row.refundReason }}</div>
</template>
</el-table-column>
</el-table>
</div>
</div>
</div>
</div>
......@@ -85,8 +87,8 @@ export default {
data() {
return {
tableData: [{}],
detail: {},//this.$route.query.detail,
mylist:[]
detail: {}, //this.$route.query.detail,
mylist: []
}
},
created() {
......@@ -94,7 +96,6 @@ export default {
// this.setTableData()
},
mounted() {
this.$nextTick(() => {
let clientHeight = document.documentElement.clientHeight
let offsettop = document.getElementById('tableWrap').offsetTop
......@@ -102,30 +103,29 @@ export default {
})
},
methods: {
getOrderPageDetail(){
getOrderPageDetail({id:this.$route.query.id}).then(res=>{
// this.mylist=res.list
if(res.code=='0'){
this.detail=res.data
this.$set(this.tableData[0], 'couponList', this.detail.couponList)
this.$set(this.tableData[0], 'orderType', this.detail.orderType)
this.$set(this.tableData[0], 'effectiveNum', this.detail.effectiveNum)
this.$set(this.tableData[0], 'originalPrice', this.detail.originalPrice)
this.$set(this.tableData[0], 'amount', 1)
this.$set(this.tableData[0], 'totalPrice', this.detail.originalPrice)
this.$set(this.tableData[0], 'realPayPrice', this.detail.realPayPrice)
this.$set(this.tableData[0], 'orderStatus', this.detail.orderStatus)
this.$set(this.tableData[0],'refundReason',this.detail.refundReason)
}else{
this.$message.error(`${res.message}`)
}
})
getOrderPageDetail() {
getOrderPageDetail({ id: this.$route.query.id }).then(res => {
// this.mylist=res.list
if (res.code == '0') {
this.detail = res.data
this.$set(this.tableData[0], 'couponList', this.detail.couponList)
this.$set(this.tableData[0], 'orderType', this.detail.orderType)
this.$set(this.tableData[0], 'effectiveNum', this.detail.effectiveNum)
this.$set(this.tableData[0], 'originalPrice', this.detail.originalPrice)
this.$set(this.tableData[0], 'amount', 1)
this.$set(this.tableData[0], 'totalPrice', this.detail.originalPrice)
this.$set(this.tableData[0], 'realPayPrice', this.detail.realPayPrice)
this.$set(this.tableData[0], 'orderStatus', this.detail.orderStatus)
this.$set(this.tableData[0], 'refundReason', this.detail.refundReason)
} else {
this.$message.error(`${res.message}`)
}
})
},
goBack() {
console.log(this.detail, 'gggg')
// this.$router.go(-1)
this.$router.push("/memberCenter/order")
this.$router.push('/memberCenter/order')
}
}
}
......@@ -161,7 +161,6 @@ export default {
}
}
.midMsgWrap {
border-bottom: 1px solid#DCDFE6;
margin-bottom: 30px;
.midMsgTitle {
......@@ -196,10 +195,10 @@ export default {
}
}
}
.tableWrapBox{
margin-left: 30px;
margin-right: 30px;
border: 1px solid rgba(0, 0, 0, 0.06);
}
.tableWrapBox {
margin-left: 30px;
margin-right: 30px;
border: 1px solid rgba(0, 0, 0, 0.06);
}
}
</style>
......@@ -30,7 +30,7 @@
<el-date-picker :size="size" v-model="searchForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions || {}"></el-date-picker>
</el-form-item>
<el-form-item size="small" class="fr-mr0">
<el-form-item size="small" class="fr-mr0">
<el-button :size="size" type="primary" @click="openDialog">核销</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" type="primary" @click="handleExport">导出</el-button>
......@@ -60,26 +60,26 @@
<script>
import glsxDialog from '@/components/glsx-dialog'
import { getRecordListApi,getVerificationCode,verificationExportApi } from '@/api/modules/record'
import url from "@/assets/empty.png"
import { getRecordListApi, getVerificationCode, verificationExportApi } from '@/api/modules/record'
import url from '@/assets/empty.png'
import { dateFormat } from '@/utils/index.js'
import { exportFn } from '@/common/constant'
export default {
name: 'record',
components: {
components: {
glsxDialog
},
data() {
return {
ruleForm: {
ruleForm: {
verficationCode: ''
},
isDialogVisible: false,
rules: {
verficationCode: [{ required: true, message: '请输入核销码', trigger: 'blur' }]
},
url:url,
isReload:true,
url: url,
isReload: true,
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......@@ -125,8 +125,7 @@ export default {
},
{
label: '核销用户',
prop: 'userName',
prop: 'userName'
},
{
label: '核销员',
......@@ -134,25 +133,23 @@ export default {
},
{
label: '关联订单号',
prop: 'orderCode',
prop: 'orderCode'
},
{
label: '核销日期',
prop: 'verificationTime',
prop: 'verificationTime',
addHtml: 'verificationTime'
}
]
},
merchantId: 0
merchantId: 0
}
},
created () {
if (window.__POWERED_BY_QIANKUN__) {
created() {
if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中
this.merchantId = this.$globalState.session.merchantId
this.searchForm.merchantId=this.merchantId
this.searchForm.merchantId = this.merchantId
}
},
methods: {
......@@ -162,13 +159,13 @@ export default {
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) {
params.verificationTimeStart = this.searchForm.daterange[0]
params.verificationTimeEnd = this.searchForm.daterange[1]
} else {
if (params.beginTime) delete params.beginTime && delete params.endTime
}
delete params.daterange
if (params.daterange) {
params.verificationTimeStart = this.searchForm.daterange[0]
params.verificationTimeEnd = this.searchForm.daterange[1]
} else {
if (params.beginTime) delete params.beginTime && delete params.endTime
}
delete params.daterange
return params
},
......@@ -196,7 +193,7 @@ export default {
}
})
},
openDialog() {
openDialog() {
this.isDialogVisible = true
},
handleClose() {
......@@ -252,10 +249,10 @@ export default {
handleReset() {
// this.searchForm = { merchantId: 44184606 }
// this.handleSearch()
this.isReload=false
this.searchForm={ merchantId: this.merchantId ,discountTypes: [7]}
this.$nextTick(()=>{
this.isReload=true
this.isReload = false
this.searchForm = { merchantId: this.merchantId, discountTypes: [7] }
this.$nextTick(() => {
this.isReload = true
})
}
}
......@@ -286,7 +283,7 @@ export default {
padding: 30px 20px;
.content-body {
.el-input--small .el-input__inner {
width:300px
width: 300px;
}
}
}
......
......@@ -4,9 +4,18 @@
<div class="live-room container">
<div class="btnWrap">
<!-- <el-button :size="size" type="primary" @click="handleCreate" icon="el-icon-plus">创建套餐</el-button> -->
<GLButton type="primary" @click="handleCreate" size="small" icon="el-icon-plus" fn="创建套餐" mode="el-button">创建套餐</GLButton>
<el-button :size="size" @click="showViewer=true">查看示例效果</el-button>
<el-image-viewer v-if="showViewer" :on-close="()=>{showViewer=false}" :url-list="srcList" style="padding:4%;"/>
<GLButton type="primary" @click="handleCreate" size="small" icon="el-icon-plus" fn="创建套餐" mode="el-button">创建套餐</GLButton>
<el-button :size="size" @click="showViewer = true">查看示例效果</el-button>
<el-image-viewer
v-if="showViewer"
:on-close="
() => {
showViewer = false
}
"
:url-list="srcList"
style="padding:4%;"
/>
</div>
<GLTable ref="memberSetMealRef" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="list" slot-scope="scope">
......@@ -71,11 +80,11 @@ export default {
components: {
tipPanel,
glsxDialog,
'el-image-viewer':()=>import('element-ui/packages/image/src/image-viewer')
'el-image-viewer': () => import('element-ui/packages/image/src/image-viewer')
},
data() {
return {
showViewer:false,
showViewer: false,
url: url,
surl: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/memberCase.png',
srcList: ['https://img01.glsx.com.cn/weapp/resource/saas/scrm/memberCase.png'],
......@@ -115,7 +124,7 @@ export default {
{
label: '说明',
prop: 'notes',
width:160,
width: 160,
line: 4
},
{
......@@ -304,12 +313,12 @@ export default {
}
/* 大图预览的关闭图标 改为大一点的白色 */
/deep/.el-image-viewer__btn.el-image-viewer__close {
color: #5850ff;
opacity: unset;
top: 50px;
right: 50px;
width: 40px;
height: 40px;
font-size: 40px;
color: #5850ff;
opacity: unset;
top: 50px;
right: 50px;
width: 40px;
height: 40px;
font-size: 40px;
}
</style>
......@@ -6,15 +6,15 @@
<div class="comment-container">
<div class="flex">
<img class="img-100" :src="commentInfo.goodsImage" />
<span class="good-name">{{commentInfo.goodsName}}</span>
<span class="good-name">{{ commentInfo.goodsName }}</span>
</div>
<div class="flex m-t-24">
<span class="comment-label">评分星级:</span>
<img v-for="(item, index) in starList" :key="index" class="icon-star" src="@/assets/icon-star.png"/>
<img v-for="(item, index) in starList" :key="index" class="icon-star" src="@/assets/icon-star.png" />
</div>
<div class="flex m-t-24">
<span class="comment-label">评价内容:</span>
<span class="comment-txt">{{commentInfo.commentContent || '-'}}</span>
<span class="comment-txt">{{ commentInfo.commentContent || '-' }}</span>
</div>
<div v-show="commentInfo.imgUrls" class="m-t-24">
<span class="comment-label">图片:</span>
......@@ -45,7 +45,7 @@ export default {
routeInfo: {
id: ''
},
starList : [],
starList: [],
commentInfo: {}
}
},
......
......@@ -28,7 +28,7 @@
<script>
import * as dayjs from 'dayjs'
import url from "@/assets/empty.png"
import url from '@/assets/empty.png'
export default {
name: 'orderComment',
data() {
......@@ -176,7 +176,7 @@ export default {
// 发布/撤回
handleRevoke(row) {
var txt = row.commentStatus == '0' ? '发布' : '撤回'
this.secondConfirm(txt, '是否确认'+ txt +'该评论?', 'orderComment', 'changeCommentStatusApi', { id: row.id, commentStatus: row.commentStatus == '0' ? 1 : 0 })
this.secondConfirm(txt, '是否确认' + txt + '该评论?', 'orderComment', 'changeCommentStatusApi', { id: row.id, commentStatus: row.commentStatus == '0' ? 1 : 0 })
},
handleDelete(row) {
......
......@@ -721,5 +721,4 @@ export default {
}
</script>
<style lang="scss">
</style>
<style lang="scss"></style>
......@@ -6,7 +6,7 @@
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in detailFormDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label">
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{detailForm[subItem.name]}}</span>
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] }}</span>
</el-form-item>
</el-row>
</el-form>
......@@ -15,7 +15,7 @@
<p class="edit-title">发货信息</p>
<el-form label-width="100px" :inline="true">
<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>
<div v-if="orderGoods.length" class="p-l-40">
......@@ -25,11 +25,11 @@
<td><img :src="item.goodsImage" class="img-60" /></td>
<td>{{ item.goodsName }}</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 v-if="detailForm.subOrderCoupon" style="height: 40px;">
<td style="text-align: left;" colspan="3">优惠券</td>
<td>{{detailForm.subOrderCoupon.discountAmount}}元</td>
<td>{{ detailForm.subOrderCoupon.discountAmount }}元</td>
</tr>
</tbody>
</table>
......@@ -40,7 +40,7 @@
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in afterInfoDataRow" :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>
<span class="detail-txt ellipsis-1" :title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || '-' }}</span>
</el-form-item>
</el-row>
</el-form>
......@@ -167,14 +167,14 @@ export default {
methods: {
formToRow(formName, numOfRow = 3) {
var rowNum = Math.ceil(this[formName].length / numOfRow)
for(var i = 0; i < rowNum; i++) {
for(var j = 0; j < numOfRow; j++) {
if(j == 0) {
for (var i = 0; i < rowNum; i++) {
for (var j = 0; j < numOfRow; j++) {
if (j == 0) {
this[formName + 'Row'][i] = {
rowList: []
}
}
if((i * numOfRow + j) < this[formName].length) {
if (i * numOfRow + j < this[formName].length) {
this[formName + 'Row'][i].rowList.push(this[formName][i * numOfRow + j])
}
}
......@@ -185,15 +185,15 @@ export default {
this.detailForm = res
this.orderRefund = res.orderRefund || null
this.detailForm.createdDateStr = dayjs(this.detailForm.createdDate).format('YYYY-MM-DD HH:mm:ss')
if(this.orderRefund) {
this.orderRefund.refundTypeName = this.baseData.refundTypeList.map(item => item.confId).includes(res.orderRefund.refundType + '') ? this.baseData.refundTypeList.find(item => item.confId == res.orderRefund.refundType).confName : '-'
if (this.orderRefund) {
this.orderRefund.refundTypeName = this.baseData.refundTypeList.map(item => item.confId).includes(res.orderRefund.refundType + '') ? this.baseData.refundTypeList.find(item => item.confId == res.orderRefund.refundType).confName : '-'
this.orderRefund.createdDateStr = dayjs(this.orderRefund.createdDate).format('YYYY-MM-DD HH:mm:ss')
}
if(this.detailForm.subOrderCoupon) {
if (this.detailForm.subOrderCoupon) {
this.detailForm.subOrderCoupon.discountAmount = (this.detailForm.subOrderCoupon.discountAmount / 100).toFixed(2)
}
this.orderGoods = res.orderGoods || []
this.detailForm.payPrice = res.payPrice ? (res.payPrice + '元') : '-'
this.detailForm.payPrice = res.payPrice ? 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.orderStatusName = this.baseData.orderStatusList.map(item => item.confId).includes(res.orderStatus + '') ? this.baseData.orderStatusList.find(item => item.confId == res.orderStatus).confName : '-'
})
......@@ -220,7 +220,7 @@ export default {
display: inline-block;
width: 220px;
}
.marketing.order-detail .show-table>tbody>tr>td {
.marketing.order-detail .show-table > tbody > tr > td {
text-align: center;
vertical-align: middle;
}
......
......@@ -29,7 +29,7 @@
<script>
import * as dayjs from 'dayjs'
import url from "@/assets/empty.png"
import url from '@/assets/empty.png'
export default {
name: 'orderShare',
data() {
......@@ -207,7 +207,7 @@ export default {
})
}
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.shareRef.data.length ? (this.$refs.shareRef.tableHeightValues = '') : this.$refs.shareRef.setTableHeightFun()
......
......@@ -38,8 +38,7 @@
export default {
name: 'share',
data() {
return {
}
return {}
},
props: {
......@@ -57,7 +56,7 @@ export default {
methods: {
handleSaveImg(url) {
var alink = document.createElement("a")
var alink = document.createElement('a')
alink.href = url
alink.setAttribute('target', '_blank')
alink.download = '海报'
......@@ -82,7 +81,6 @@ export default {
}
}
}
</script>
<style scoped>
.share-dialog .box {
......
......@@ -48,7 +48,7 @@
<script>
import * as dayjs from 'dayjs'
import shareDialog from './components/shareDialog'
import url from "@/assets/empty.png"
import url from '@/assets/empty.png'
export default {
name: 'productGroup',
data() {
......@@ -233,12 +233,12 @@ export default {
var titleObj = {
1: '新建商品',
2: '编辑商品',
3: '查看商品',
3: '查看商品'
}
var params = {
addOrEdit: addOrEdit,
groupOrStore: 1,
$title:encodeURI(titleObj[addOrEdit])
addOrEdit: addOrEdit,
groupOrStore: 1,
$title: encodeURI(titleObj[addOrEdit])
}
addOrEdit != 1 && (params.id = row.id)
this.$router.push({
......@@ -323,7 +323,7 @@ export default {
})
}
},
setTableFinishFun() {
//接收到的数据为空
if (!this.$refs.proGroupRef.data.length) {
......
......@@ -5,7 +5,7 @@
<el-tab-pane label="基本信息" name="basicInfo"></el-tab-pane>
<el-tab-pane label="评价信息" name="afterOrder"></el-tab-pane>
</el-tabs>
<div v-show="(routeInfo.addOrEdit == '1') || (['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'basicInfo')" class="container edit-container">
<div v-show="routeInfo.addOrEdit == '1' || (['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'basicInfo')" class="container edit-container">
<p class="edit-title">{{ title }}</p>
<div class="flex" style="margin-top: 20px;">
<div class="main-img-box">
......@@ -75,13 +75,13 @@
</div>
<glsx-combi-form v-if="!specificationDetailList.length" class="edit-form-container" ref="editFormRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
<div style="width: 375px; margin: 0 0 10px 40px;" v-for="(item, index) in editForm.goodsDescList" :key="index">
<div v-show="item.resType == 2">{{item.content}}</div>
<div v-show="item.resType == 2">{{ item.content }}</div>
<img style="width: 375px; width: 375px;" v-show="item.resType == 1" :src="item.content" />
</div>
</div>
<comment-detail v-show="['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button v-if="(routeInfo.addOrEdit == '1') || (routeInfo.addOrEdit == '2' && activeName == 'basicInfo')" type="primary" @click="handleConfirm">确定</el-button>
<el-button v-if="routeInfo.addOrEdit == '1' || (routeInfo.addOrEdit == '2' && activeName == 'basicInfo')" type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button>
</div>
</div>
......@@ -210,7 +210,7 @@ export default {
}
this.mainImgUrl = this.editForm.goodsDetailImageList[0].content
this.moveNum = this.editForm.goodsDetailImageList.length > 4 ? this.editForm.goodsDetailImageList.length - 4 : 0
this.$nextTick(()=>{
this.$nextTick(() => {
this.editStatus = false
})
})
......@@ -391,12 +391,13 @@ export default {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.cancelJump()
})
.catch(() => {})
.then(() => {
this.cancelJump()
})
.catch(() => {})
} else {
this.cancelJump()
this.cancelJump()
}
}
}
......@@ -405,14 +406,14 @@ export default {
<style>
.edit-product-dh .title {
padding: 13px 20px;
border-bottom: 1px solid #E5E5E5;
border-bottom: 1px solid #e5e5e5;
}
.edit-product-dh .view {
width: 375px;
height: 667px;
margin: 30px 45px 0 60px;
background: #F6F6F6;
background: #f6f6f6;
position: relative;
}
......@@ -486,12 +487,12 @@ export default {
.edit-product-dh .pro-name {
width: 100%;
font-size: 20px;
color: #3A3A3A;
color: #3a3a3a;
}
.edit-product-dh .supply-price {
font-size: 26px;
color: #FF6D00;
color: #ff6d00;
margin-top: 10px;
}
......@@ -545,12 +546,12 @@ export default {
}
/* 规格 */
.marketing.edit-product-dh .el-tabs__item {
background: #F4F6FC !important;
border: 1px solid #F4F6FC !important;
background: #f4f6fc !important;
border: 1px solid #f4f6fc !important;
}
.marketing.edit-product-dh .el-tabs__item.is-active {
background: #FFFFFF !important;
border: 1px solid #FFFFFF !important;
background: #ffffff !important;
border: 1px solid #ffffff !important;
}
</style>
......@@ -52,9 +52,9 @@
<script>
import * as dayjs from 'dayjs'
import url from "@/assets/empty.png"
import url from '@/assets/empty.png'
import shareDialog from '../productGroup/components/shareDialog'
import { truncate } from 'fs';
import { truncate } from 'fs'
export default {
name: 'productGroup',
data() {
......@@ -261,12 +261,12 @@ export default {
var titleObj = {
1: '新建商品',
2: '编辑商品',
3: '查看商品',
3: '查看商品'
}
var params = {
addOrEdit: addOrEdit,
groupOrStore: 2,
$title:encodeURI(titleObj[addOrEdit])
addOrEdit: addOrEdit,
groupOrStore: 2,
$title: encodeURI(titleObj[addOrEdit])
}
addOrEdit != 1 && (params.id = row.id)
this.$router.push({
......@@ -277,12 +277,12 @@ export default {
handleEditDh(addOrEdit, row) {
var titleObj = {
2: '编辑商品',
3: '查看商品',
3: '查看商品'
}
var params = {
addOrEdit: addOrEdit,
id: row.id,
$title:encodeURI(titleObj[addOrEdit])
addOrEdit: addOrEdit,
id: row.id,
$title: encodeURI(titleObj[addOrEdit])
}
this.$router.push({
path: '/productStore/editProductDh',
......@@ -373,7 +373,7 @@ export default {
})
}
},
setTableFinishFun() {
//接收到的数据为空
if (!this.$refs.proGroupRef.data.length) {
......
......@@ -465,7 +465,7 @@ export default {
delete param.activityPrice
delete param.goodsStock
param.specificationDetailList = []
this.nameToValSpecsList.forEach(function (item) {
this.nameToValSpecsList.forEach(function(item) {
var obj = {
retailPrice: (item.activityPrice * 100).toFixed(0), //存的分,需乘100
stock: item.goodsStock,
......
......@@ -25,7 +25,7 @@
<el-button v-if="scope.scope.activityStatus == '2'" type="text" @click="end(scope.scope)">结束</el-button>
<GLButton v-if="scope.scope.activityStatus == '1'" type="text" @click="handleEdit(2, scope.scope)" fn="编辑秒杀活动" mode="el-button">编辑</GLButton>
<!-- <el-button v-if="scope.scope.activityStatus == '1'" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> -->
<GLButton v-if="scope.scope.activityStatus == '2' || scope.scope.activityStatus == '3'" type="text" @click="handleEdit(3, scope.scope)" fn="编辑秒杀活动" mode="el-button">查看</GLButton>
<GLButton v-if="scope.scope.activityStatus == '2' || scope.scope.activityStatus == '3'" type="text" @click="handleEdit(3, scope.scope)" fn="编辑秒杀活动" mode="el-button">查看</GLButton>
<!-- <el-button v-if="scope.scope.activityStatus == '2' || scope.scope.activityStatus == '3'" type="text" @click="handleEdit(3, scope.scope)">查看</el-button> -->
<el-button v-if="scope.scope.activityStatus == '3'" type="text" @click="del(scope.scope)">删除</el-button>
<el-button type="text" @click="topping(scope.scope)">置顶</el-button>
......
......@@ -145,7 +145,7 @@ export default {
.then(() => {
this.cancelJump()
})
.catch(() => { })
.catch(() => {})
} else {
this.cancelJump()
}
......
......@@ -33,10 +33,10 @@ export default {
staffList
},
mounted() { },
mounted() {},
methods: {
handleTabClick() { }
handleTabClick() {}
}
}
</script>
......
......@@ -31,7 +31,7 @@
<script>
import * as dayjs from 'dayjs'
import url from "@/assets/empty.png"
import url from '@/assets/empty.png'
export default {
name: 'sopList',
data() {
......@@ -101,7 +101,7 @@ export default {
}
},
mounted() { },
mounted() {},
methods: {
handleJump(path) {
......
......@@ -31,7 +31,7 @@
<script>
import * as dayjs from 'dayjs'
import url from "@/assets/empty.png"
import url from '@/assets/empty.png'
export default {
name: 'takeGood',
data() {
......
......@@ -345,14 +345,14 @@ export default {
<style scoped>
.title {
padding: 13px 20px;
border-bottom: 1px solid #E5E5E5;
border-bottom: 1px solid #e5e5e5;
}
.view {
width: 375px;
height: 667px;
margin: 30px 45px 0 60px;
background: #F6F6F6;
background: #f6f6f6;
position: relative;
}
......@@ -414,12 +414,12 @@ export default {
.edit-product-dh .pro-name {
width: 100%;
font-size: 20px;
color: #3A3A3A;
color: #3a3a3a;
}
.edit-product-dh .supply-price {
font-size: 26px;
color: #FF6D00;
color: #ff6d00;
}
.edit-product-dh .border-red {
......@@ -472,4 +472,3 @@ export default {
}
/* 规格 */
</style>
......@@ -149,7 +149,7 @@ export default {
.then(() => {
this.cancelJump()
})
.catch(() => { })
.catch(() => {})
} else {
this.cancelJump()
}
......
......@@ -29,7 +29,7 @@
<script>
import * as dayjs from 'dayjs'
import url from "@/assets/empty.png"
import url from '@/assets/empty.png'
export default {
name: 'zoneList',
data() {
......@@ -81,7 +81,7 @@ export default {
}
},
mounted() { },
mounted() {},
methods: {
getParams() {
......
......@@ -67,4 +67,4 @@ module.exports = {
})
.end()
}
}
\ No newline at end of file
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!