Commit a03adee5 by 杨北旺

格式化代码

1 parent bd70251e
Showing 127 changed files with 930 additions and 1534 deletions
module.exports = { module.exports = {
presets: ["@vue/cli-plugin-babel/preset"], presets: ['@vue/cli-plugin-babel/preset'],
plugins: [ plugins: [
[ [
"component", 'component',
{ {
libraryName: "element-ui", libraryName: 'element-ui',
styleLibraryName: "theme-chalk" styleLibraryName: 'theme-chalk'
} }
] ]
] ]
}; }
...@@ -3,68 +3,67 @@ import { http } from '@/main' ...@@ -3,68 +3,67 @@ import { http } from '@/main'
// const defaultPath = 'scrm.api.live.' // const defaultPath = 'scrm.api.live.'
const getCenterListApi = params => { const getCenterListApi = params => {
// params.method = `${defaultPath}goods.list` // params.method = `${defaultPath}goods.list`
params.method = `scrm.api.equity.card.merchant.record.get` params.method = `scrm.api.equity.card.merchant.record.get`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getMoreMerchant = params => { const getMoreMerchant = params => {
// params.method = `${defaultPath}goods.list` // params.method = `${defaultPath}goods.list`
params.method = `scrm.api.equity.third.get` params.method = `scrm.api.equity.third.get`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
//获取上方卡片的相关信息 //获取上方卡片的相关信息
const getCardContent = params => { const getCardContent = params => {
// scrm.api.equity.card.get.by.merchant.id旧版的 // scrm.api.equity.card.get.by.merchant.id旧版的
params.method = `scrm.api.equity.open.card.price.get.by.merchantid` params.method = `scrm.api.equity.open.card.price.get.by.merchantid`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const updateCardContent = params => { const updateCardContent = params => {
params.method = `scrm.api.equity.card.class.update`
params.method = `scrm.api.equity.card.class.update` return http({
url: 'rop-scrm-equity/router',
return http({ method: 'POST',
url: 'rop-scrm-equity/router', data: params,
method: 'POST', sign: true
data: params, })
sign: true
})
} }
const memberExportApi = params => { const memberExportApi = params => {
params.method = `scrm.api.equity.card.merchant.record.export` params.method = `scrm.api.equity.card.merchant.record.export`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
}) })
} }
const getQrUrl = params => { const getQrUrl = params => {
params.method = 'scrm.api.equity.card.class.generate.try.url' params.method = 'scrm.api.equity.card.class.generate.try.url'
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
returnAll: true returnAll: true
}) })
} }
export { getCenterListApi, getMoreMerchant, updateCardContent, getCardContent, memberExportApi, getQrUrl }
\ No newline at end of file \ No newline at end of file
export { getCenterListApi, getMoreMerchant, updateCardContent, getCardContent, memberExportApi, getQrUrl }
...@@ -75,7 +75,7 @@ const getClassifyListApi = params => { ...@@ -75,7 +75,7 @@ const getClassifyListApi = params => {
} }
const pictureUpload = params => { const pictureUpload = params => {
params.method = "glsx.accounts.biz.common.pictureUpload" params.method = 'glsx.accounts.biz.common.pictureUpload'
return http_common({ return http_common({
url: '/router?method=glsx.accounts.biz.common.pictureUpload', url: '/router?method=glsx.accounts.biz.common.pictureUpload',
method: 'POST', method: 'POST',
......
...@@ -151,5 +151,4 @@ const getAllGoodsApi = params => { ...@@ -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 \ No newline at end of file
export default { getMerchantListApi, couponExportApi, getVerificationListApi, verificationExportApi, effectiveCouponApi, codeVerificationApi, getCouponDetailApi, deleteCouponApi, createCouponApi, updateCouponApi, getAllGoodsApi, getListReceiveRecordApi, exportReceiveRecordApi }
...@@ -9,125 +9,125 @@ ...@@ -9,125 +9,125 @@
import { http } from '@/main' import { http } from '@/main'
let session = 'scrm-base-e11bd247-ac78-4f0b-a509-1c9a4e2ed48e-rop' let session = 'scrm-base-e11bd247-ac78-4f0b-a509-1c9a4e2ed48e-rop'
const getListApi = params => { const getListApi = params => {
params.method = 'marketing.api.moment.page' params.method = 'marketing.api.moment.page'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-marketing/router', url: '/rop-scrm-marketing/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
//根据id查询朋友圈任务详情数据 //根据id查询朋友圈任务详情数据
const momentDetail = params => { const momentDetail = params => {
params.method = 'marketing.api.moment.detail' params.method = 'marketing.api.moment.detail'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-marketing/router', url: '/rop-scrm-marketing/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
//朋友圈任务详情 员工列表 //朋友圈任务详情 员工列表
const momentStaff = params => { const momentStaff = params => {
params.method = 'marketing.api.moment.staff.list' params.method = 'marketing.api.moment.staff.list'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-marketing/router', url: '/rop-scrm-marketing/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
//朋友圈任务详情 员工列表 //朋友圈任务详情 员工列表
const momentStaffCustomers = params => { const momentStaffCustomers = params => {
params.method = 'marketing.api.moment.staff.customers' params.method = 'marketing.api.moment.staff.customers'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-marketing/router', url: '/rop-scrm-marketing/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
//朋友圈任务详情统计数据 //朋友圈任务详情统计数据
const momentStatistic = params => { const momentStatistic = params => {
params.method = 'marketing.api.moment.detail.statistic' params.method = 'marketing.api.moment.detail.statistic'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-marketing/router', url: '/rop-scrm-marketing/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
//朋友圈任务 - 筛选客户数 //朋友圈任务 - 筛选客户数
const momentCount = params => { const momentCount = params => {
params.method = 'marketing.api.moment.detail.customer.filter.count' params.method = 'marketing.api.moment.detail.customer.filter.count'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-marketing/router', url: '/rop-scrm-marketing/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
//朋友圈任务数据保存接口 //朋友圈任务数据保存接口
const momentInsert = params => { const momentInsert = params => {
params.method = 'marketing.api.moment.insert' params.method = 'marketing.api.moment.insert'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-marketing/router', url: '/rop-scrm-marketing/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
//朋友圈任务列表提醒 //朋友圈任务列表提醒
const momentListRemindOperate = params => { const momentListRemindOperate = params => {
params.method = 'marketing.api.moment.listRemindOperate' params.method = 'marketing.api.moment.listRemindOperate'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-marketing/router', url: '/rop-scrm-marketing/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
//根据id提醒用户 //根据id提醒用户
const momentRemindUser = params => { const momentRemindUser = params => {
params.method = 'marketing.api.moment.remindUser' params.method = 'marketing.api.moment.remindUser'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-marketing/router', url: '/rop-scrm-marketing/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
//根据id提醒用户 //根据id提醒用户
const momentCancel = params => { const momentCancel = params => {
params.method = 'marketing.api.moment.created.cancel' params.method = 'marketing.api.moment.created.cancel'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-marketing/router', url: '/rop-scrm-marketing/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
export default { export default {
momentDetail,
momentRemindUser,
momentListRemindOperate,
momentInsert,
momentCount,
momentStatistic,
momentStaff,
momentStaffCustomers,
getListApi,
momentCancel
}
\ No newline at end of file \ No newline at end of file
momentDetail,
momentRemindUser,
momentListRemindOperate,
momentInsert,
momentCount,
momentStatistic,
momentStaff,
momentStaffCustomers,
getListApi,
momentCancel
}
...@@ -71,7 +71,7 @@ const exportGiftInfoApi = params => { ...@@ -71,7 +71,7 @@ const exportGiftInfoApi = params => {
url: 'rop-scrm-coupon/router', url: 'rop-scrm-coupon/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true
}) })
} }
...@@ -108,4 +108,4 @@ const templateModal = params => { ...@@ -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' import { http } from '@/main'
const timePeriodStatistics = params => { const timePeriodStatistics = params => {
params.method = 'scrm.api.shopmall.order.timePeriodStatistics' params.method = 'scrm.api.shopmall.order.timePeriodStatistics'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
}) })
} }
const couponStatistical = params => { const couponStatistical = params => {
params.method = 'scrm.api.coupon.statistical.marketing.effect' params.method = 'scrm.api.coupon.statistical.marketing.effect'
return http({ return http({
url: 'rop-scrm-coupon/router', url: 'rop-scrm-coupon/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
}) })
} }
const equityStatistical = params => { const equityStatistical = params => {
params.method = 'scrm.api.equity.statistical.marketing.effect' params.method = 'scrm.api.equity.statistical.marketing.effect'
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
}) })
} }
const merchantStatistical = params => { const merchantStatistical = params => {
params.method = 'scrm.api.shopmall.activity.get.merchant.statistics' params.method = 'scrm.api.shopmall.activity.get.merchant.statistics'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
}) })
} }
export default { timePeriodStatistics, couponStatistical, equityStatistical, merchantStatistical } export default { timePeriodStatistics, couponStatistical, equityStatistical, merchantStatistical }
...@@ -32,4 +32,4 @@ const getConsultantListApi = params => { ...@@ -32,4 +32,4 @@ const getConsultantListApi = params => {
}) })
} }
export default { getHomeInfoListApi, updateHomeApi, getConsultantListApi }
\ No newline at end of file \ No newline at end of file
export default { getHomeInfoListApi, updateHomeApi, getConsultantListApi }
import { http,http_merchant } from '@/main' import { http, http_merchant } from '@/main'
const defaultPath = 'marketing.api.material.' const defaultPath = 'marketing.api.material.'
...@@ -174,4 +174,4 @@ export default { ...@@ -174,4 +174,4 @@ export default {
dataOverview, dataOverview,
sendDetailPage, sendDetailPage,
findAllDictData findAllDictData
}
\ No newline at end of file \ No newline at end of file
}
...@@ -34,4 +34,4 @@ const orderExportApi = params => { ...@@ -34,4 +34,4 @@ const orderExportApi = params => {
sign: true sign: true
}) })
} }
export { getOrderListApi, getOrderPageDetail, orderExportApi }
\ No newline at end of file \ No newline at end of file
export { getOrderListApi, getOrderPageDetail, orderExportApi }
...@@ -46,4 +46,4 @@ const commentDetailApi = params => { ...@@ -46,4 +46,4 @@ const commentDetailApi = params => {
}) })
} }
export default { getListApi, changeCommentStatusApi, deleteCommentApi, commentDetailApi }
\ No newline at end of file \ No newline at end of file
export default { getListApi, changeCommentStatusApi, deleteCommentApi, commentDetailApi }
...@@ -101,4 +101,4 @@ const confirmReceiptGoodsApi = params => { ...@@ -101,4 +101,4 @@ const confirmReceiptGoodsApi = params => {
}) })
} }
export default { getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi }
\ No newline at end of file \ No newline at end of file
export default { getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi }
...@@ -66,4 +66,4 @@ const updateShareRecordApi = params => { ...@@ -66,4 +66,4 @@ const updateShareRecordApi = params => {
}) })
} }
export default { getListApi, getShareRecordInfoApi, deleteShareRecordApi, revokeShareRecordApi, addShareRecordApi, updateShareRecordApi }
\ No newline at end of file \ No newline at end of file
export default { getListApi, getShareRecordInfoApi, deleteShareRecordApi, revokeShareRecordApi, addShareRecordApi, updateShareRecordApi }
...@@ -107,4 +107,4 @@ const getBusinessTypeByIdApi = params => { ...@@ -107,4 +107,4 @@ const getBusinessTypeByIdApi = params => {
}) })
} }
export default {getBusinessTypeByIdApi, getListApi, getProShareApi, topProApi, updateStatusProApi, deleteTakeProApi, getProInfoApi, insertOrUpdateProApi, updateTakeProApi, getGoodsCommentListApi }
\ No newline at end of file \ No newline at end of file
export default { getBusinessTypeByIdApi, getListApi, getProShareApi, topProApi, updateStatusProApi, deleteTakeProApi, getProInfoApi, insertOrUpdateProApi, updateTakeProApi, getGoodsCommentListApi }
...@@ -26,24 +26,24 @@ const getVerificationCode = params => { ...@@ -26,24 +26,24 @@ const getVerificationCode = params => {
// 核销详情-导出 // 核销详情-导出
const verificationExportApi = params => { const verificationExportApi = params => {
params.method = 'scrm.api.coupon.verification.member.export.list' params.method = 'scrm.api.coupon.verification.member.export.list'
return http({ return http({
url: 'rop-scrm-coupon/router', url: 'rop-scrm-coupon/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
}) })
} }
// const auditGoodApi = params => { // const auditGoodApi = params => {
// params.method = `${defaultPath}audit.goods` // params.method = `${defaultPath}audit.goods`
// return http({ // return http({
// url: 'rop-scrm-live/router', // url: 'rop-scrm-live/router',
// method: 'POST', // method: 'POST',
// data: params, // data: params,
// sign: true, // sign: true,
// returnAll: true // returnAll: true
// }) // })
// } // }
// const getGoodInfoApi = params => { // const getGoodInfoApi = params => {
// params.method = `${defaultPath}get.good.by.id` // params.method = `${defaultPath}get.good.by.id`
...@@ -98,4 +98,4 @@ const verificationExportApi = params => { ...@@ -98,4 +98,4 @@ const verificationExportApi = params => {
// }) // })
// } // }
export { getRecordListApi, getVerificationCode, verificationExportApi }
\ No newline at end of file \ No newline at end of file
export { getRecordListApi, getVerificationCode, verificationExportApi }
...@@ -83,5 +83,4 @@ const getSharedApi = params => { ...@@ -83,5 +83,4 @@ const getSharedApi = params => {
}) })
} }
export default { getActivityPageApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi } export default { getActivityPageApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi }
...@@ -52,7 +52,6 @@ const createService = params => { ...@@ -52,7 +52,6 @@ const createService = params => {
data: params, data: params,
sign: true, sign: true,
returnAll: true returnAll: true
}) })
} }
//编辑、查看 //编辑、查看
...@@ -62,8 +61,7 @@ const detailService = params => { ...@@ -62,8 +61,7 @@ const detailService = params => {
url: 'rop-scrm-coupon/router', url: 'rop-scrm-coupon/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true
}) })
} }
//修改 //修改
...@@ -76,8 +74,7 @@ const updateService = params => { ...@@ -76,8 +74,7 @@ const updateService = params => {
data: params, data: params,
sign: true, sign: true,
returnAll: true returnAll: true
}) })
} }
export { getServiceListApi, effectiveService, deleteService, createService, detailService, updateService, getLoginCount }
\ No newline at end of file \ No newline at end of file
export { getServiceListApi, effectiveService, deleteService, createService, detailService, updateService, getLoginCount }
...@@ -3,10 +3,10 @@ import { http } from '@/main' ...@@ -3,10 +3,10 @@ import { http } from '@/main'
// const defaultPath = 'scrm.api.live.' // const defaultPath = 'scrm.api.live.'
const getSetMealListApi = params => { const getSetMealListApi = params => {
// params.method = `${defaultPath}goods.list` // params.method = `${defaultPath}goods.list`
params.method = `scrm.api.equity.package.info.list.with.page` params.method = `scrm.api.equity.package.info.list.with.page`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -15,64 +15,64 @@ const getSetMealListApi = params => { ...@@ -15,64 +15,64 @@ const getSetMealListApi = params => {
const deleteSetMeal = params => { const deleteSetMeal = params => {
params.method = `scrm.api.equity.package.info.delete` params.method = `scrm.api.equity.package.info.delete`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
returnAll:true returnAll: true
}) })
} }
const getSetmealService = params=>{ const getSetmealService = params => {
params.method = `scrm.api.coupon.list.merchant` params.method = `scrm.api.coupon.list.merchant`
return http({ return http({
url: 'rop-scrm-coupon/router', url: 'rop-scrm-coupon/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
//获取编辑详情的接口 //获取编辑详情的接口
const getServiceInfo = params=>{ const getServiceInfo = params => {
params.method = `scrm.api.equity.package.info.select` params.method = `scrm.api.equity.package.info.select`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
returnAll:true returnAll: true
}) })
} }
//创建套餐的接口 //创建套餐的接口
const createSetMeal = params => { const createSetMeal = params => {
params.method = `scrm.api.equity.package.info.insert` params.method = `scrm.api.equity.package.info.insert`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
returnAll:true returnAll: true
}) })
} }
const updateSetMeal = params => { const updateSetMeal = params => {
params.method = `scrm.api.equity.package.info.update` params.method = `scrm.api.equity.package.info.update`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
returnAll:true returnAll: true
}) })
} }
//不知道啥作用,老接口有调 //不知道啥作用,老接口有调
const configSetMeal = params => { const configSetMeal = params => {
params.method = `scrm.api.equity.package.service.config` params.method = `scrm.api.equity.package.service.config`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
returnAll:true returnAll: true
}) })
} }
...@@ -81,11 +81,11 @@ const configSetMeal = params => { ...@@ -81,11 +81,11 @@ const configSetMeal = params => {
const upDownPackage = params => { const upDownPackage = params => {
params.method = `scrm.api.equity.package.info.shelves` params.method = `scrm.api.equity.package.info.shelves`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
returnAll:true returnAll: true
}) })
} }
export { getSetMealListApi,deleteSetMeal,getSetmealService,getServiceInfo,createSetMeal,upDownPackage,updateSetMeal,configSetMeal }
\ No newline at end of file \ No newline at end of file
export { getSetMealListApi, deleteSetMeal, getSetmealService, getServiceInfo, createSetMeal, upDownPackage, updateSetMeal, configSetMeal }
...@@ -97,7 +97,7 @@ const afterSaleStatusList = [ ...@@ -97,7 +97,7 @@ const afterSaleStatusList = [
{ confId: '4', confName: '待确认' }, { confId: '4', confName: '待确认' },
{ confId: '5', confName: '退款中' }, { confId: '5', confName: '退款中' },
{ confId: '6', confName: '已退款' }, { confId: '6', confName: '已退款' },
{ confId: '7', confName: '退款失败' }, { confId: '7', confName: '退款失败' }
] ]
const orderSourceList = [ const orderSourceList = [
...@@ -113,21 +113,22 @@ const deliveryTypeList = [ ...@@ -113,21 +113,22 @@ const deliveryTypeList = [
//会员中心得状态list //会员中心得状态list
const statusList = [ const statusList = [
// { // {
// confId: '', // confId: '',
// confName: '全部' // confName: '全部'
// }, // },
{ {
confId: 1, confId: 1,
confName: '生效中' confName: '生效中'
}, },
{ {
confId: 2, confId: 2,
confName: '已失效' confName: '已失效'
} }
] ]
//会员订单类型字典 //会员订单类型字典
const orderTypesList = [{ const orderTypesList = [
{
confId: 1, confId: 1,
confName: '套餐' confName: '套餐'
}, },
...@@ -161,9 +162,10 @@ const orderStatusList = [ ...@@ -161,9 +162,10 @@ const orderStatusList = [
{ {
confId: 6, confId: 6,
confName: '已退款' confName: '已退款'
}, }
] ]
const serviceStatusList = [{ const serviceStatusList = [
{
confId: 1, confId: 1,
confName: '未生效' confName: '未生效'
}, },
...@@ -177,7 +179,8 @@ const serviceStatusList = [{ ...@@ -177,7 +179,8 @@ const serviceStatusList = [{
} }
] ]
const memberTypeList = [{ const memberTypeList = [
{
confId: 1, confId: 1,
confName: '正式会员' confName: '正式会员'
}, },
...@@ -186,7 +189,8 @@ const memberTypeList = [{ ...@@ -186,7 +189,8 @@ const memberTypeList = [{
confName: '试用会员' confName: '试用会员'
} }
] ]
const stateList = [{ const stateList = [
{
confId: 0, confId: 0,
confName: '待上架' confName: '待上架'
}, },
...@@ -197,22 +201,7 @@ const stateList = [{ ...@@ -197,22 +201,7 @@ const stateList = [{
{ {
confId: 2, confId: 2,
confName: '已下架' confName: '已下架'
}, }
] ]
export {
limitPrice,
getExplorer,
exportFn,
aToExport,
orderManageStatusList,
afterSaleStatusList,
orderSourceList,
deliveryTypeList,
statusList,
serviceStatusList,
memberTypeList,
stateList,
orderTypesList,
orderStatusList
}
\ No newline at end of file \ 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 { ...@@ -161,7 +161,7 @@ export default {
}, },
formObj: { formObj: {
type: Object, type: Object,
default: () => { } default: () => {}
}, },
hasTitle: { hasTitle: {
type: Boolean, type: Boolean,
...@@ -169,16 +169,16 @@ export default { ...@@ -169,16 +169,16 @@ export default {
}, },
formRules: { formRules: {
type: Object, type: Object,
default: () => { } default: () => {}
}, },
// 搜索+输入框/搜索组合组件,搜索栏绑值 // 搜索+输入框/搜索组合组件,搜索栏绑值
searchSelectObj: { searchSelectObj: {
type: Object, type: Object,
default: () => { } default: () => {}
} }
}, },
mounted() { }, mounted() {},
methods: { methods: {
// 选择框-添加其他属性 // 选择框-添加其他属性
......
<!-- 弹窗 --> <!-- 弹窗 -->
<template> <template>
<div> <div>
<el-dialog <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">
: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"> <el-scrollbar v-if="hasScroll">
<span slot="title"> <span slot="title">
<span class="main-title">{{ title }}</span> <span class="main-title">{{ title }}</span>
...@@ -32,24 +23,9 @@ ...@@ -32,24 +23,9 @@
<div slot="footer"> <div slot="footer">
<slot name="btn-start"></slot> <slot name="btn-start"></slot>
<el-button <el-button :type="typeName" v-if="!noClose" :size="btnSize" @click="handleClose">{{ btnCloseLabel }}</el-button>
:type="typeName" <el-button type="default" v-if="!noCancel" :size="btnSize" @click="handleClose">{{ btnCancelLabel }}</el-button>
v-if="!noClose" <el-button type="primary" v-if="!noBtnOk" :size="btnSize" @click="handleConfirm">{{ btnOkLabel }}</el-button>
: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> <slot name="btn-middle"></slot>
</div> </div>
</el-dialog> </el-dialog>
......
...@@ -22,4 +22,4 @@ Vue.component('select-muti-pro-dialog', selectMutiProDialog) ...@@ -22,4 +22,4 @@ Vue.component('select-muti-pro-dialog', selectMutiProDialog)
Vue.component('select-single-pro-dialog', selectSingleProDialog) Vue.component('select-single-pro-dialog', selectSingleProDialog)
Vue.component('relate-store-dialog', relateStoreDialog) Vue.component('relate-store-dialog', relateStoreDialog)
Vue.component('select-muti-pro-forcoupon-dialog', selectMutiProForcouponDialog) Vue.component('select-muti-pro-forcoupon-dialog', selectMutiProForcouponDialog)
Vue.component('table-tooltip', tableTooltip)
\ No newline at end of file \ No newline at end of file
Vue.component('table-tooltip', tableTooltip)
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column type="selection" width="55" align="center" :selectable="selectable"></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 prop="merchantName" label="商户名称" align="center"></el-table-column>
</el-table-column>
</el-table> </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-pagination small background @current-change="handleCurrentChange" :current-page.sync="pageNum" :page-size="pageSize" layout="total, prev, pager, next" :total="total"></el-pagination>
</el-col> </el-col>
...@@ -87,7 +86,7 @@ export default { ...@@ -87,7 +86,7 @@ export default {
mounted() { mounted() {
this.selectedData = this.storeSelected this.selectedData = this.storeSelected
this.selectedData.forEach(item => { this.selectedData.forEach(item => {
item.merchantNo = item.merchantId ? (item.merchantId + '') : item.merchantNo item.merchantNo = item.merchantId ? item.merchantId + '' : item.merchantNo
}) })
this.getSelectingList() this.getSelectingList()
}, },
......
<!-- 选择商品弹窗 --> <!-- 选择商品弹窗 -->
<template> <template>
<glsx-dialog <glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" :btnOkLabel="productList.length ? '确定' : '创建商品'" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose" v-loading="loading">
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"> <div class="noproDiv" v-show="!productList.length && fnCallBack">
<img src="@/assets/noPro.png" /> <img src="@/assets/noPro.png" />
<p class="noproP">系统暂无已创建的商品</p> <p class="noproP">系统暂无已创建的商品</p>
</div> </div>
<div v-show="productList.length"> <div v-show="productList.length">
<slot name="search"></slot> <slot name="search"></slot>
<GLTable <GLTable v-loading="loading" ref="mutiProRef" :tableData="productList" :hasPage="false" :noDataImg="url" :tableParams="tableParams" @refreshTable="getList">
v-loading="loading"
ref="mutiProRef"
:tableData="productList"
:hasPage="false"
:noDataImg="url"
:tableParams="tableParams"
@refreshTable="getList"
>
<span slot="goodsImage" slot-scope="scope"> <span slot="goodsImage" slot-scope="scope">
<img class="m-t-10 img-60" :src="scope.scope.goodsImage" /> <img class="m-t-10 img-60" :src="scope.scope.goodsImage" />
</span> </span>
......
<!-- 选择商品弹窗 --> <!-- 选择商品弹窗 -->
<template> <template>
<glsx-dialog <glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" :btnOkLabel="productList.length ? '确定' : '创建商品'" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose" :noClose="false" :noCancel="true" :showClose="true">
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 style="max-height:60vh">
<div class="noproDiv" v-if="!productList.length && fnCallBack"> <div class="noproDiv" v-if="!productList.length && fnCallBack">
<img src="@/assets/noPro.png" /> <img src="@/assets/noPro.png" />
...@@ -20,26 +9,14 @@ ...@@ -20,26 +9,14 @@
<div v-if="productList.length"> <div v-if="productList.length">
<el-form :inline="true" :model="searchProForm"> <el-form :inline="true" :model="searchProForm">
<el-form-item label="商品名称:"> <el-form-item label="商品名称:">
<el-input <el-input :size="size" v-model="searchProForm.name" placeholder="请输入商品名称" maxlength="20" clearable></el-input>
:size="size"
v-model="searchProForm.name"
placeholder="请输入商品名称"
maxlength="20"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button :size="size" type="primary" @click="handleConfigSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleConfigSearch">查询</el-button>
<el-button :size="size" @click="handleConfigReset">重置</el-button> <el-button :size="size" @click="handleConfigReset">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<GLTable <GLTable ref="mutiProRef" :tableData="productList" :hasPage="false" :tableParams="tableParams" @refreshTable="getList">
ref="mutiProRef"
:tableData="productList"
:hasPage="false"
:tableParams="tableParams"
@refreshTable="getList"
>
<span slot="goodsImage" slot-scope="scope"> <span slot="goodsImage" slot-scope="scope">
<img class="m-t-10 img-60" :src="scope.scope.goodsImage" /> <img class="m-t-10 img-60" :src="scope.scope.goodsImage" />
</span> </span>
...@@ -172,7 +149,7 @@ export default { ...@@ -172,7 +149,7 @@ export default {
} }
}, },
handleMutiSelectConfirm() { handleMutiSelectConfirm() {
if(!this.productList.length) { if (!this.productList.length) {
var params = { var params = {
addOrEdit: 1, addOrEdit: 1,
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1, groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
......
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
}) })
}, },
handleSingleSelectConfirm() { handleSingleSelectConfirm() {
if(!this.productList.length) { if (!this.productList.length) {
var params = { var params = {
addOrEdit: 1, addOrEdit: 1,
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1, groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
......
<template> <template>
<div class="table-tooltip"> <div class="table-tooltip">
<el-popover <el-popover placement="top" width="200" trigger="hover" :content="content">
placement="top" <el-button slot="reference" icon="el-icon-warning" circle></el-button>
width="200"
trigger="hover"
:content="content"
>
<el-button
slot="reference"
icon="el-icon-warning"
circle
></el-button>
</el-popover> </el-popover>
</div> </div>
</template> </template>
...@@ -23,9 +14,8 @@ export default { ...@@ -23,9 +14,8 @@ export default {
type: String, type: String,
default: '' default: ''
} }
}, }
} }
</script> </script>
<style scope> <style scope>
...@@ -45,4 +35,4 @@ export default { ...@@ -45,4 +35,4 @@ export default {
.table-tooltip .el-button:focus { .table-tooltip .el-button:focus {
color: initial; color: initial;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -42,4 +42,4 @@ module.exports = { ...@@ -42,4 +42,4 @@ module.exports = {
}, },
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b', secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b',
cdn: 'https://www.xxx.cn/static' cdn: 'https://www.xxx.cn/static'
}
\ No newline at end of file \ No newline at end of file
}
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
let cfg = require('./conf.js') let cfg = require('./conf.js')
import { Http } from 'glsx-common' import { Http } from 'glsx-common'
let timeout = 30000 //超时时间 let timeout = 30000 //超时时间
export const fetchConfig = function (isEnv = true) { export const fetchConfig = function(isEnv = true) {
// if (isEnv) { // if (isEnv) {
// let { request } = cfg // let { request } = cfg
// Object.assign(request, { timeout }) // Object.assign(request, { timeout })
...@@ -26,4 +26,4 @@ export const config = { ...@@ -26,4 +26,4 @@ export const config = {
install(vue, cfg) { install(vue, cfg) {
vue.prototype.$config = cfg vue.prototype.$config = cfg
} }
}
\ No newline at end of file \ No newline at end of file
}
if (window.__POWERED_BY_QIANKUN__) { if (window.__POWERED_BY_QIANKUN__) {
// eslint-disable-next-line no-undef // 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', name: 'default',
path: '/', path: '/',
redirect: { name: 'home' } redirect: { name: 'home' }
...@@ -219,58 +220,58 @@ const staticRoutes = Object.freeze([{ ...@@ -219,58 +220,58 @@ const staticRoutes = Object.freeze([{
component: resolve => require([`@/views/giftBag/giftDetail.vue`], resolve), component: resolve => require([`@/views/giftBag/giftDetail.vue`], resolve),
meta: {} meta: {}
}, },
{ {
name: 'editGift', name: 'editGift',
path: '/giftBag/editGift', path: '/giftBag/editGift',
component: resolve => require([`@/views/giftBag/editGift.vue`], resolve), component: resolve => require([`@/views/giftBag/editGift.vue`], resolve),
meta: {} meta: {}
}, },
{ {
name: 'sopIndex', name: 'sopIndex',
path: '/sop/index', path: '/sop/index',
component: resolve => require([`@/views/sop/index.vue`], resolve), component: resolve => require([`@/views/sop/index.vue`], resolve),
meta: {} meta: {}
}, },
{ {
name: 'sopList', name: 'sopList',
path: '/sop/sopList', path: '/sop/sopList',
component: resolve => require([`@/views/sop/sopList.vue`], resolve), component: resolve => require([`@/views/sop/sopList.vue`], resolve),
meta: {} meta: {}
}, },
{ {
name: 'editSop', name: 'editSop',
path: '/sop/editSop', path: '/sop/editSop',
component: resolve => require([`@/views/sop/editSop.vue`], resolve), component: resolve => require([`@/views/sop/editSop.vue`], resolve),
meta: {} meta: {}
}, },
{ {
name: 'sopAnalysisList', name: 'sopAnalysisList',
path: '/sop/sopAnalysisList', path: '/sop/sopAnalysisList',
component: resolve => require([`@/views/sop/sopAnalysisList.vue`], resolve), component: resolve => require([`@/views/sop/sopAnalysisList.vue`], resolve),
meta: {} meta: {}
}, },
{ {
name: 'materialList', name: 'materialList',
path: '/material/index', path: '/material/index',
component: resolve => require([`@/views/material/index.vue`], resolve), component: resolve => require([`@/views/material/index.vue`], resolve),
meta: {} meta: {}
}, },
{ {
name: 'addMaterial', name: 'addMaterial',
path: '/material/addMaterial', path: '/material/addMaterial',
component: resolve => require([`@/views/material/addMaterial.vue`], resolve), component: resolve => require([`@/views/material/addMaterial.vue`], resolve),
meta: {} meta: {}
}, },
{ {
name: 'materialDetail', name: 'materialDetail',
path: '/material/materialDetail', path: '/material/materialDetail',
component: resolve => require([`@/views/material/materialDetail.vue`], resolve), component: resolve => require([`@/views/material/materialDetail.vue`], resolve),
meta: {} meta: {}
}, },
{ {
name: 'addMaterial', name: 'addMaterial',
path: '/material/addMaterial', path: '/material/addMaterial',
component: resolve => require([`@/views/material/addMaterial.vue`], resolve), component: resolve => require([`@/views/material/addMaterial.vue`], resolve)
}, },
{ {
name: 'friendGroup', name: 'friendGroup',
...@@ -297,4 +298,4 @@ const staticRoutes = Object.freeze([{ ...@@ -297,4 +298,4 @@ const staticRoutes = Object.freeze([{
meta: {} meta: {}
} }
]) ])
export default staticRoutes
\ No newline at end of file \ No newline at end of file
export default staticRoutes
...@@ -10,4 +10,3 @@ ...@@ -10,4 +10,3 @@
import { bootstrap, mount, unmount } from './qiankun' import { bootstrap, mount, unmount } from './qiankun'
import { start } from './single' import { start } from './single'
export { bootstrap, mount, unmount, start } export { bootstrap, mount, unmount, start }
...@@ -15,7 +15,7 @@ Vue.use(ElementUI) ...@@ -15,7 +15,7 @@ Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
Vue.use(GLFooter) Vue.use(GLFooter)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request2, sign, secret, sign_common, request_common, request_merchant} = await fetchConfig(false) const { response, request, request2, sign, secret, sign_common, request_common, request_merchant } = await fetchConfig(false)
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
...@@ -25,7 +25,7 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -25,7 +25,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) 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.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, 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.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] }) // Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
...@@ -51,4 +51,3 @@ function subscribe({ messenger }) { ...@@ -51,4 +51,3 @@ function subscribe({ messenger }) {
console.log(`监听到子应用${v.from}发来消息:`, v) console.log(`监听到子应用${v.from}发来消息:`, v)
}) })
} }
const emoji = [ const emoji = [
['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴'], ['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴'],
['睡', '大哭', '尴尬', '发怒', '调皮', '呲牙', '惊讶', '难过'], ['睡', '大哭', '尴尬', '发怒', '调皮', '呲牙', '惊讶', '难过'],
['酷', '囧', '抓狂', '吐', '微笑', '愉快', '白眼', '傲慢'], ['酷', '囧', '抓狂', '吐', '微笑', '愉快', '白眼', '傲慢'],
['饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂'], ['饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂'],
['疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见'], ['疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见'],
['擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠'], ['擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠'],
['鄙视', '委屈', '快哭了', '阴险', '亲亲', '吓', '可怜', '菜刀'], ['鄙视', '委屈', '快哭了', '阴险', '亲亲', '吓', '可怜', '菜刀'],
['西瓜', '啤酒', '篮球', '乒乓', '咖啡', '饭', '猪头', '玫瑰'], ['西瓜', '啤酒', '篮球', '乒乓', '咖啡', '饭', '猪头', '玫瑰'],
['凋谢', '示爱', '爱心', '心碎', '蛋糕', '闪电', '炸弹', '刀'], ['凋谢', '示爱', '爱心', '心碎', '蛋糕', '闪电', '炸弹', '刀'],
['足球', '瓢虫', '便便', '月亮', '太阳', '礼物', '拥抱', '强'], ['足球', '瓢虫', '便便', '月亮', '太阳', '礼物', '拥抱', '强'],
['弱', '握手', '胜利', '抱拳', '勾引', '拳头', '差劲', '爱你'], ['弱', '握手', '胜利', '抱拳', '勾引', '拳头', '差劲', '爱你'],
['NO', 'OK', '爱情', '飞吻', '跳跳', '发抖', '怄火', '转圈'], ['NO', 'OK', '爱情', '飞吻', '跳跳', '发抖', '怄火', '转圈'],
['磕头', '回头', '跳绳', '投降', '挥手', '激动', '街舞', '左太极'], ['磕头', '回头', '跳绳', '投降', '挥手', '激动', '街舞', '左太极'],
['右太极', '嘿哈', '捂脸', '奸笑', '机智', '皱眉', '耶', '社会社会'], ['右太极', '嘿哈', '捂脸', '奸笑', '机智', '皱眉', '耶', '社会社会'],
['让我看看', '666', '红包', '蜡烛', '烟花', '福', '庆祝', '爆竹'], ['让我看看', '666', '红包', '蜡烛', '烟花', '福', '庆祝', '爆竹']
] ]
export default emoji
\ No newline at end of file \ No newline at end of file
export default emoji
export function debounce(func, wait= 200){ export function debounce(func, wait = 200) {
let timeout; let timeout
return function(event){ return function(event) {
clearTimeout(timeout) clearTimeout(timeout)
timeout = setTimeout(()=>{ timeout = setTimeout(() => {
func.call(this, event) func.call(this, event)
},wait) }, 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 \ 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' import { Message } from 'element-ui'
let util = {} let util = {}
util.cloneText = function (message) { util.cloneText = function(message) {
let input = document.createElement('input') let input = document.createElement('input')
input.value = message input.value = message
document.body.appendChild(input) document.body.appendChild(input)
input.select() input.select()
input.setSelectionRange(0, input.value.length), document.execCommand('Copy') input.setSelectionRange(0, input.value.length), document.execCommand('Copy')
document.body.removeChild(input) document.body.removeChild(input)
Message.success('复制成功') Message.success('复制成功')
} }
util.getBeforeDate = function (sign = '-') { util.getBeforeDate = function(sign = '-') {
let day = new Date(); let day = new Date()
let month = day.getMonth() + 1; let month = day.getMonth() + 1
let date = day.getDate(); let date = day.getDate()
if (month < 10) month = '0' + month; if (month < 10) month = '0' + month
if (date < 10) date = '0' + date; if (date < 10) date = '0' + date
var s = day.getFullYear() + sign + month + sign + date; var s = day.getFullYear() + sign + month + sign + date
return s; return s
} }
util.getBeforeMonth = function (days) { util.getBeforeMonth = function(days) {
let month = new Date().getMonth() + 1; let month = new Date().getMonth() + 1
let year = new Date().getFullYear(); let year = new Date().getFullYear()
let arr = new Array(); let arr = new Array()
for (let i = 0; i < days; i++) { for (let i = 0; i < days; i++) {
if (month <= 0) { if (month <= 0) {
year = year - 1; year = year - 1
month = month + 12; month = month + 12
}
if (month < 10) month = '0' + month;
arr[i] = year + '年' + month + '月'
month--
} }
return arr; if (month < 10) month = '0' + month
arr[i] = year + '年' + month + '月'
month--
}
return arr
} }
/** /**
* 格式化时间 * 格式化时间
* @param {Array} time * @param {Array} time
*/ */
util.formatTime = function (time) { util.formatTime = function(time) {
return { return {
startTime: time ? time[0] + ' ' + '00:00:00' : '', startTime: time ? time[0] + ' ' + '00:00:00' : '',
endTime: time ? time[1] + ' ' + '23:59:59' : '' endTime: time ? time[1] + ' ' + '23:59:59' : ''
} }
} }
util.tringToDate = function (dateStr, separator) { util.tringToDate = function(dateStr, separator) {
if (!separator) { if (!separator) {
separator = "-"; separator = '-'
} }
var dateArr = dateStr.split(separator); var dateArr = dateStr.split(separator)
var year = parseInt(dateArr[0]); var year = parseInt(dateArr[0])
var month; var month
//处理月份为04这样的情况 //处理月份为04这样的情况
if (dateArr[1].indexOf("0") == 0) { if (dateArr[1].indexOf('0') == 0) {
month = parseInt(dateArr[1].substring(1)); month = parseInt(dateArr[1].substring(1))
} else { } else {
month = parseInt(dateArr[1]); month = parseInt(dateArr[1])
} }
var day = parseInt(dateArr[2]); var day = parseInt(dateArr[2])
var date = new Date(year, month - 1, day); var date = new Date(year, month - 1, day)
return date; return date
} }
util.getDay = function (num, str = '-') { util.getDay = function(num, str = '-') {
var today = new Date(); var today = new Date()
var nowTime = today.getTime(); var nowTime = today.getTime()
var ms = 24 * 3600 * 1000 * num; var ms = 24 * 3600 * 1000 * num
today.setTime(parseInt(nowTime + ms)); today.setTime(parseInt(nowTime + ms))
var oYear = today.getFullYear(); var oYear = today.getFullYear()
var oMoth = (today.getMonth() + 1).toString(); var oMoth = (today.getMonth() + 1).toString()
if (oMoth.length <= 1) oMoth = '0' + oMoth; if (oMoth.length <= 1) oMoth = '0' + oMoth
var oDay = today.getDate().toString(); var oDay = today.getDate().toString()
if (oDay.length <= 1) oDay = '0' + oDay; if (oDay.length <= 1) oDay = '0' + oDay
return oYear + str + oMoth + str + oDay; return oYear + str + oMoth + str + oDay
} }
util.openUrl = function (url) { util.openUrl = function(url) {
const link = document.createElement('a') const link = document.createElement('a')
link.href = url link.href = url
link.target = '_blank' link.target = '_blank'
link.rel = 'opener' link.rel = 'opener'
link.click() link.click()
} }
util.downloadIamge = function (imgsrc, name = new Date().getTime()) { util.downloadIamge = function(imgsrc, name = new Date().getTime()) {
//下载图片地址和图片名 //下载图片地址和图片名
var image = new Image(); var image = new Image()
// 解决跨域 Canvas 污染问题 // 解决跨域 Canvas 污染问题
image.setAttribute("crossOrigin", "anonymous"); image.setAttribute('crossOrigin', 'anonymous')
image.onload = function () { image.onload = function() {
var canvas = document.createElement("canvas"); var canvas = document.createElement('canvas')
canvas.width = image.width; canvas.width = image.width
canvas.height = image.height; canvas.height = image.height
var context = canvas.getContext("2d"); var context = canvas.getContext('2d')
context.drawImage(image, 0, 0, image.width, image.height); context.drawImage(image, 0, 0, image.width, image.height)
var url = canvas.toDataURL("image/png"); //得到图片的base64编码数据 var url = canvas.toDataURL('image/png') //得到图片的base64编码数据
var a = document.createElement("a"); // 生成一个a元素 var a = document.createElement('a') // 生成一个a元素
var event = new MouseEvent("click"); // 创建一个单击事件 var event = new MouseEvent('click') // 创建一个单击事件
a.download = name || "photo"; // 设置图片名称 a.download = name || 'photo' // 设置图片名称
a.href = url; // 将生成的URL设置为a.href属性 a.href = url // 将生成的URL设置为a.href属性
a.dispatchEvent(event); // 触发a的单击事件 a.dispatchEvent(event) // 触发a的单击事件
}; }
image.src = imgsrc; image.src = imgsrc
} }
export default util
\ No newline at end of file \ No newline at end of file
export default util
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from "@/assets/empty.png" import url from '@/assets/empty.png'
export default { export default {
name: 'classifyList', name: 'classifyList',
data() { data() {
...@@ -128,8 +128,8 @@ export default { ...@@ -128,8 +128,8 @@ export default {
handleEdit(addOrEdit, row) { handleEdit(addOrEdit, row) {
// addOrEdit == 1 ? this.$router.push('/classifyList/editClassify/' + addOrEdit) : this.$router.push('/classifyList/editClassify/' + addOrEdit + '/' + row.id) // addOrEdit == 1 ? this.$router.push('/classifyList/editClassify/' + addOrEdit) : this.$router.push('/classifyList/editClassify/' + addOrEdit + '/' + row.id)
var params = { var params = {
addOrEdit: addOrEdit, addOrEdit: addOrEdit,
$title:encodeURI(addOrEdit == 1 ? '新建分类' : '编辑分类') $title: encodeURI(addOrEdit == 1 ? '新建分类' : '编辑分类')
} }
addOrEdit != 1 && (params.id = row.id) addOrEdit != 1 && (params.id = row.id)
this.$router.push({ this.$router.push({
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
handleTop(row) { handleTop(row) {
this.secondConfirm('置顶', '确定置顶此分类?', 'classifyList', 'topClassifyApi', { id: row.id }) this.secondConfirm('置顶', '确定置顶此分类?', 'classifyList', 'topClassifyApi', { id: row.id })
}, },
setTableFinishFun() { setTableFinishFun() {
//接收到的数据为空 //接收到的数据为空
this.$refs.classifyRef.data.length ? (this.$refs.classifyRef.tableHeightValues = '') : this.$refs.classifyRef.setTableHeightFun() this.$refs.classifyRef.data.length ? (this.$refs.classifyRef.tableHeightValues = '') : this.$refs.classifyRef.setTableHeightFun()
......
...@@ -35,26 +35,26 @@ ...@@ -35,26 +35,26 @@
</template> </template>
<template slot="directionalFlagHtml" v-if="editForm.useChannel != 1"> <template slot="directionalFlagHtml" v-if="editForm.useChannel != 1">
<div> <div>
<el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio> <el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio>
<span class="promptCopy">创建成功后立即生效,所有小程序用户均可领用</span> <span class="promptCopy">创建成功后立即生效,所有小程序用户均可领用</span>
</div> </div>
<div> <div>
<el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio> <el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio>
<span class="promptCopy">企微员工通过企微工作台定向礼包发送给客户</span> <span class="promptCopy">企微员工通过企微工作台定向礼包发送给客户</span>
</div> </div>
<div> <div>
<el-radio v-model="editForm.directionalFlag" label="3" :disabled="apear != 'couponAdd'">关联商品可用</el-radio> <el-radio v-model="editForm.directionalFlag" label="3" :disabled="apear != 'couponAdd'">关联商品可用</el-radio>
<span class="promptCopy">关联商品,用户支付成功后才能进行核销使用</span> <span class="promptCopy">关联商品,用户支付成功后才能进行核销使用</span>
</div> </div>
</template> </template>
<template slot="directionalFlagHtml" v-else> <template slot="directionalFlagHtml" v-else>
<div> <div>
<el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio> <el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio>
<span class="promptCopy">创建成功后立即生效,所有小程序用户均可领用</span> <span class="promptCopy">创建成功后立即生效,所有小程序用户均可领用</span>
</div> </div>
<div> <div>
<el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio> <el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio>
<span class="promptCopy">企微员工通过企微工作台定向礼包发送给客户</span> <span class="promptCopy">企微员工通过企微工作台定向礼包发送给客户</span>
</div> </div>
</template> </template>
<template slot="effectiveHtml"> <template slot="effectiveHtml">
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
data() { data() {
return { return {
defaultTime: ['00:00:00', '23:59:59'], // 选择日期后的默认时间 defaultTime: ['00:00:00', '23:59:59'], // 选择日期后的默认时间
format: "yyyy-MM-dd HH:mm:ss", // 日期显示格式 format: 'yyyy-MM-dd HH:mm:ss', // 日期显示格式
showSubmit: true, showSubmit: true,
userDisable: false, userDisable: false,
size: 'small', size: 'small',
...@@ -362,7 +362,7 @@ export default { ...@@ -362,7 +362,7 @@ export default {
'editForm.effectiveTime'(newValue, oldValue) { 'editForm.effectiveTime'(newValue, oldValue) {
if (newValue && newValue.length == 2) { if (newValue && newValue.length == 2) {
// this.couponTime = this.setDateString(newValue[0], true) + ' ~ ' + this.setDateString(newValue[1], true) // this.couponTime = this.setDateString(newValue[0], true) + ' ~ ' + this.setDateString(newValue[1], true)
this.couponTime = newValue[0] + ' ~ ' + newValue[1] this.couponTime = newValue[0] + ' ~ ' + newValue[1]
} else { } else {
this.couponTime = '' this.couponTime = ''
} }
...@@ -437,9 +437,9 @@ export default { ...@@ -437,9 +437,9 @@ export default {
methods: { methods: {
haveChange() { haveChange() {
let oDateOne = new Date(this.editForm.effectiveTime[0]).getTime() let oDateOne = new Date(this.editForm.effectiveTime[0]).getTime()
let timeStamp = new Date().getTime() let timeStamp = new Date().getTime()
if(oDateOne < timeStamp) this.editForm.effectiveTime = [] if (oDateOne < timeStamp) this.editForm.effectiveTime = []
}, },
// 编辑按钮 // 编辑按钮
editMessage() { editMessage() {
......
...@@ -51,16 +51,16 @@ ...@@ -51,16 +51,16 @@
<glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="directionalFlagHtml"> <template slot="directionalFlagHtml">
<div> <div>
<el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio> <el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio>
<span class="promptCopy">创建成功后立即生效,所有小程序用户均可领用</span> <span class="promptCopy">创建成功后立即生效,所有小程序用户均可领用</span>
</div> </div>
<div> <div>
<el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio> <el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio>
<span class="promptCopy">企微员工通过企微工作台定向礼包发送给客户</span> <span class="promptCopy">企微员工通过企微工作台定向礼包发送给客户</span>
</div> </div>
<div> <div>
<el-radio v-model="editForm.directionalFlag" label="3" :disabled="apear != 'couponAdd'">关联商品可用</el-radio> <el-radio v-model="editForm.directionalFlag" label="3" :disabled="apear != 'couponAdd'">关联商品可用</el-radio>
<span class="promptCopy">关联商品,用户支付成功后才能进行核销使用</span> <span class="promptCopy">关联商品,用户支付成功后才能进行核销使用</span>
</div> </div>
</template> </template>
<template slot="effectiveHtml"> <template slot="effectiveHtml">
...@@ -100,7 +100,7 @@ export default { ...@@ -100,7 +100,7 @@ export default {
data() { data() {
return { return {
defaultTime: ['00:00:00', '23:59:59'], // 选择日期后的默认时间 defaultTime: ['00:00:00', '23:59:59'], // 选择日期后的默认时间
format: "yyyy-MM-dd HH:mm:ss", // 日期显示格式 format: 'yyyy-MM-dd HH:mm:ss', // 日期显示格式
showSubmit: true, showSubmit: true,
userDisable: false, userDisable: false,
size: 'small', size: 'small',
...@@ -268,9 +268,9 @@ export default { ...@@ -268,9 +268,9 @@ export default {
methods: { methods: {
haveChange() { haveChange() {
let oDateOne = new Date(this.editForm.effectiveTime[0]).getTime() let oDateOne = new Date(this.editForm.effectiveTime[0]).getTime()
let timeStamp = new Date().getTime() let timeStamp = new Date().getTime()
if(oDateOne < timeStamp) this.editForm.effectiveTime = [] if (oDateOne < timeStamp) this.editForm.effectiveTime = []
}, },
// 编辑按钮 // 编辑按钮
editMessage() { editMessage() {
...@@ -354,8 +354,8 @@ export default { ...@@ -354,8 +354,8 @@ export default {
} }
//使用描述 //使用描述
obj.useDescription = form.useDescription obj.useDescription = form.useDescription
//是否定制礼包专用 //是否定制礼包专用
obj.directionalFlag = form.directionalFlag obj.directionalFlag = form.directionalFlag
//预估成本 //预估成本
obj.anticipatedCost = form.anticipatedCost * 100 obj.anticipatedCost = form.anticipatedCost * 100
return obj return obj
......
...@@ -30,16 +30,16 @@ ...@@ -30,16 +30,16 @@
<glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="directionalFlagHtml"> <template slot="directionalFlagHtml">
<div> <div>
<el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio> <el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio>
<span class="promptCopy">创建成功后立即生效,所有小程序用户均可领用</span> <span class="promptCopy">创建成功后立即生效,所有小程序用户均可领用</span>
</div> </div>
<div> <div>
<el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio> <el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio>
<span class="promptCopy">企微员工通过企微工作台定向礼包发送给客户</span> <span class="promptCopy">企微员工通过企微工作台定向礼包发送给客户</span>
</div> </div>
<div> <div>
<el-radio v-model="editForm.directionalFlag" label="3" :disabled="apear != 'couponAdd'">关联商品可用</el-radio> <el-radio v-model="editForm.directionalFlag" label="3" :disabled="apear != 'couponAdd'">关联商品可用</el-radio>
<span class="promptCopy">关联商品,用户支付成功后才能进行核销使用</span> <span class="promptCopy">关联商品,用户支付成功后才能进行核销使用</span>
</div> </div>
</template> </template>
<template slot="effectiveHtml"> <template slot="effectiveHtml">
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
data() { data() {
return { return {
defaultTime: ['00:00:00', '23:59:59'], // 选择日期后的默认时间 defaultTime: ['00:00:00', '23:59:59'], // 选择日期后的默认时间
format: "yyyy-MM-dd HH:mm:ss", // 日期显示格式 format: 'yyyy-MM-dd HH:mm:ss', // 日期显示格式
showSubmit: true, showSubmit: true,
userDisable: false, userDisable: false,
size: 'small', size: 'small',
...@@ -246,9 +246,9 @@ export default { ...@@ -246,9 +246,9 @@ export default {
methods: { methods: {
haveChange() { haveChange() {
let oDateOne = new Date(this.editForm.effectiveTime[0]).getTime() let oDateOne = new Date(this.editForm.effectiveTime[0]).getTime()
let timeStamp = new Date().getTime() let timeStamp = new Date().getTime()
if(oDateOne < timeStamp) this.editForm.effectiveTime = [] if (oDateOne < timeStamp) this.editForm.effectiveTime = []
}, },
// 编辑按钮 // 编辑按钮
editMessage() { editMessage() {
...@@ -332,7 +332,7 @@ export default { ...@@ -332,7 +332,7 @@ export default {
} }
//使用描述 //使用描述
obj.useDescription = form.useDescription obj.useDescription = form.useDescription
//是否定制礼包专用 //是否定制礼包专用
obj.directionalFlag = form.directionalFlag obj.directionalFlag = form.directionalFlag
//预估成本 //预估成本
obj.anticipatedCost = form.anticipatedCost * 100 obj.anticipatedCost = form.anticipatedCost * 100
......
...@@ -169,7 +169,7 @@ export default { ...@@ -169,7 +169,7 @@ export default {
return useChannel return useChannel
} }
}, },
{ {
label: '使用规则', label: '使用规则',
name: 'directionalFlag', name: 'directionalFlag',
width: '150px', width: '150px',
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
// confName: '会员服务' // confName: '会员服务'
// } // }
], ],
directionalFlagList:[ directionalFlagList: [
{ {
confId: '1', confId: '1',
confName: '所有客户可用' confName: '所有客户可用'
...@@ -411,7 +411,7 @@ export default { ...@@ -411,7 +411,7 @@ export default {
couponName: '', couponName: '',
discountType: '', discountType: '',
status: '', status: '',
discountTypes: [2, 3, 4], discountTypes: [2, 3, 4]
} }
this.handleSearch() this.handleSearch()
}, },
......
...@@ -75,7 +75,7 @@ export default { ...@@ -75,7 +75,7 @@ export default {
// 表格 // 表格
searchForm: { searchForm: {
phone: '', phone: '',
wechatUserFlag:'' wechatUserFlag: ''
}, },
tableSearchForm: {}, tableSearchForm: {},
// 搜索 // 搜索
...@@ -87,10 +87,10 @@ export default { ...@@ -87,10 +87,10 @@ export default {
maxlength: 11 maxlength: 11
}, },
{ {
label:'是否加企微', label: '是否加企微',
name:'wechatUserFlag', name: 'wechatUserFlag',
type:'select', type: 'select',
optionList:[], optionList: [],
optionId: 'statusId', optionId: 'statusId',
optionLabel: 'statusName', optionLabel: 'statusName',
optionsName: 'wechatUserFlagList' optionsName: 'wechatUserFlagList'
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
label: '用户昵称', label: '用户昵称',
prop: 'userName' prop: 'userName'
}, },
{ {
label: '是否加入企微', label: '是否加入企微',
prop: 'wechatUserFlag', prop: 'wechatUserFlag',
formatter: cellValue => { formatter: cellValue => {
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
formatter: cellValue => { formatter: cellValue => {
return dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss') return dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss')
} }
}, }
] ]
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
...@@ -153,7 +153,7 @@ export default { ...@@ -153,7 +153,7 @@ export default {
confName: '已过期' confName: '已过期'
} }
], ],
wechatUserFlagList: [ wechatUserFlagList: [
{ {
statusId: '2', statusId: '2',
statusName: '是' statusName: '是'
...@@ -288,7 +288,7 @@ export default { ...@@ -288,7 +288,7 @@ export default {
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
phone: '', phone: '',
wechatUserFlag:'' wechatUserFlag: ''
} }
this.handleSearch() this.handleSearch()
}, },
......
...@@ -405,7 +405,7 @@ export default { ...@@ -405,7 +405,7 @@ export default {
if (item.attType == 1) { if (item.attType == 1) {
const list = emoji.flat(Infinity) const list = emoji.flat(Infinity)
const cutImg = item.attContent.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '') 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] let s = list[parseInt(str.split('.')[0]) - 1]
return `[${s}]` return `[${s}]`
}) })
...@@ -586,7 +586,9 @@ export default { ...@@ -586,7 +586,9 @@ export default {
const date = new Date(v).getTime() const date = new Date(v).getTime()
if (date < Date.now()) { if (date < Date.now()) {
this.timeOptions = { 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 { } else {
this.timeOptions = { this.timeOptions = {
......
...@@ -6,20 +6,9 @@ ...@@ -6,20 +6,9 @@
<div class="title">基础信息</div> <div class="title">基础信息</div>
<div class="info-box"> <div class="info-box">
<div class="info-content"> <div class="info-content">
<el-form <el-form :model="basicForm" class="basic-form" :rules="basicRules" ref="basicForm" label-width="120px">
:model="basicForm"
class="basic-form"
:rules="basicRules"
ref="basicForm"
label-width="120px"
>
<el-form-item label="群发名称" prop="massName"> <el-form-item label="群发名称" prop="massName">
<el-input <el-input v-model="basicForm.massName" :size="size" placeholder="群发名称仅内部可见" maxlength="10"></el-input>
v-model="basicForm.massName"
:size="size"
placeholder="群发名称仅内部可见"
maxlength="10"
></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="userList"> <el-form-item prop="userList">
<label slot="label" class="required">选择群主</label> <label slot="label" class="required">选择群主</label>
...@@ -28,20 +17,9 @@ ...@@ -28,20 +17,9 @@
全部账号 全部账号
</el-button> </el-button>
<!-- <span>已选择{{ basicForm.userList ? basicForm.userList.length : 0 }}人</!--> <!-- <span>已选择{{ basicForm.userList ? basicForm.userList.length : 0 }}人</!-->
<div <div class="sale-select" v-show="basicForm.userList && basicForm.userList.length != 0">
class="sale-select"
v-show="basicForm.userList && basicForm.userList.length != 0"
>
<div :key="key" class="el-input-tag input-tag-wrapper"> <div :key="key" class="el-input-tag input-tag-wrapper">
<el-tag <el-tag effect="plain" type="info" v-for="(tag, idx) in basicForm.userList" :key="idx" closable :disable-transitions="false" @close="remove(tag, idx)">
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> <i class="el-icon-user-solid"></i>
{{ tag.staffName }} {{ tag.staffName }}
</el-tag> </el-tag>
...@@ -56,13 +34,8 @@ ...@@ -56,13 +34,8 @@
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px"> <el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px">
<el-form-item prop="attachmentList"> <el-form-item prop="attachmentList">
<label slot="label" class="required">群发内容</label> <label slot="label" class="required">群发内容</label>
<WelcomeWords <WelcomeWords ref="welcome" :form="'customerGroup'" :btnList="btnList" :eventBus="eventBus"></WelcomeWords>
ref="welcome" <div v-show="attachmentShow" class="el-form-item__error">{{ attachmentText }}</div>
:form="'customerGroup'"
:btnList="btnList"
:eventBus="eventBus"
></WelcomeWords>
<div v-show="attachmentShow" class="el-form-item__error">{{attachmentText}}</div>
</el-form-item> </el-form-item>
<el-form-item label="发送时间" prop="sendType"> <el-form-item label="发送时间" prop="sendType">
<el-radio-group v-model="basicForm.sendType"> <el-radio-group v-model="basicForm.sendType">
...@@ -70,22 +43,9 @@ ...@@ -70,22 +43,9 @@
<el-radio :label="2">定时发送</el-radio> <el-radio :label="2">定时发送</el-radio>
</el-radio-group> </el-radio-group>
<div v-show="basicForm.sendType == 2" class="date-picker"> <div v-show="basicForm.sendType == 2" class="date-picker">
<el-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>
v-model="basicForm.sendTime" -
size="small" <el-time-picker v-model="basicForm.sendDate" size="small" value-format="HH:mm:ss" placeholder="选择时间" :picker-options="timeOptions"></el-time-picker>
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> </div>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -107,13 +67,7 @@ ...@@ -107,13 +67,7 @@
<el-button type="primary" v-loading="addLoading" @click="handleSubmit">确定</el-button> <el-button type="primary" v-loading="addLoading" @click="handleSubmit">确定</el-button>
<el-button @click="handleCancel">取消</el-button> <el-button @click="handleCancel">取消</el-button>
</div> </div>
<glsx-dialog <glsx-dialog :title="'选择群主'" :width="'1142px'" :isVisible="membersVisible" @confirmDialog="handleConfirm" @closeDialog="membersVisible = !membersVisible">
:title="'选择群主'"
:width="'1142px'"
:isVisible="membersVisible"
@confirmDialog="handleConfirm"
@closeDialog="membersVisible = !membersVisible"
>
<SelectLord ref="membersForm" islord="true" v-if="membersVisible" :selectData="selectData"></SelectLord> <SelectLord ref="membersForm" islord="true" v-if="membersVisible" :selectData="selectData"></SelectLord>
</glsx-dialog> </glsx-dialog>
</div> </div>
......
...@@ -33,4 +33,4 @@ export default { ...@@ -33,4 +33,4 @@ export default {
height: 24px; height: 24px;
display: inline-block; display: inline-block;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -237,7 +237,7 @@ export default { ...@@ -237,7 +237,7 @@ export default {
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.square-main { .square-main {
...@@ -374,4 +374,4 @@ export default { ...@@ -374,4 +374,4 @@ export default {
} }
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -2,12 +2,7 @@ ...@@ -2,12 +2,7 @@
<div> <div>
<div class="emotion-box" :style="{ height: height + 'px' }"> <div class="emotion-box" :style="{ height: height + 'px' }">
<div class="emotion-box-line" v-for="(line, i) in list" :key="i"> <div class="emotion-box-line" v-for="(line, i) in list" :key="i">
<emotion <emotion class="emotion-item" v-for="(item, i) in line" :key="i" @click.native="clickHandler(item)">{{ item }}</emotion>
class="emotion-item"
v-for="(item, i) in line"
:key="i"
@click.native="clickHandler(item)"
>{{ item }}</emotion>
</div> </div>
</div> </div>
</div> </div>
...@@ -68,4 +63,4 @@ export default { ...@@ -68,4 +63,4 @@ export default {
} }
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
<template> <template>
<div class="square-main"> <div class="square-main">
<el-dialog <el-dialog title="选择模板" :visible.sync="dialogVisible" width="1142px" :before-close="handleClose" :close-on-click-modal="false">
title="选择模板"
:visible.sync="dialogVisible"
width="1142px"
:before-close="handleClose"
:close-on-click-modal="false"
>
<div class="model-panel"> <div class="model-panel">
<el-form :inline="true" class="message-form" :model="searchForm" ref="searchForm"> <el-form :inline="true" class="message-form" :model="searchForm" ref="searchForm">
<el-form-item label="模板标题"> <el-form-item label="模板标题">
...@@ -14,12 +8,7 @@ ...@@ -14,12 +8,7 @@
</el-form-item> </el-form-item>
<el-form-item label="创建者"> <el-form-item label="创建者">
<el-select v-model="searchForm.createdBy" :size="size" placeholder="全部"> <el-select v-model="searchForm.createdBy" :size="size" placeholder="全部">
<el-option <el-option v-for="item in createdList" :key="item.id" :label="item.createdName" :value="item.createdBy"></el-option>
v-for="item in createdList"
:key="item.id"
:label="item.createdName"
:value="item.createdBy"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -47,16 +36,11 @@ ...@@ -47,16 +36,11 @@
<div class="model-title-h2">{{ item.content }}</div> <div class="model-title-h2">{{ item.content }}</div>
</div> </div>
<div class="model-item-content"> <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 class="model-content">创建日期:{{ item.createdTime }}</div>
</div> </div>
<div class="model-item-btn"> <div class="model-item-btn">
<el-button <el-button v-if="item.createdBy == userId" type="text" :size="size" @click="editModel(item.id)">编辑</el-button>
v-if="item.createdBy == userId"
type="text"
:size="size"
@click="editModel(item.id)"
>编辑</el-button>
</div> </div>
</div> </div>
</div> </div>
...@@ -64,53 +48,20 @@ ...@@ -64,53 +48,20 @@
<img src="@/assets/empty.png" /> <img src="@/assets/empty.png" />
<div class="empty-item">暂无数据</div> <div class="empty-item">暂无数据</div>
</div> </div>
<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>
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> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="handleClose">取 消</el-button> <el-button size="small" @click="handleClose">取 消</el-button>
<el-button size="small" type="primary" @click="selectModelItem">复制文本</el-button> <el-button size="small" type="primary" @click="selectModelItem">复制文本</el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog <el-dialog :title="modelTitle" :visible.sync="createVisible" width="547px" :before-close="handleCreateClose" :close-on-click-modal="false">
:title="modelTitle" <el-form :model="templateForm" :rules="templateRules" ref="templateForm" label-width="100px" class="templateForm">
: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-form-item label="标题" prop="title">
<el-input <el-input v-model="templateForm.title" maxlength="10" show-word-limit placeholder="输入10个字以内的标题,如活动促销"></el-input>
v-model="templateForm.title"
maxlength="10"
show-word-limit
placeholder="输入10个字以内的标题,如活动促销"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="内容说明" prop="content"> <el-form-item label="内容说明" prop="content">
<el-input <el-input type="textarea" v-model="templateForm.content" maxlength="600" :rows="7" show-word-limit placeholder="输入不超过600字内的文字说明"></el-input>
type="textarea"
v-model="templateForm.content"
maxlength="600"
:rows="7"
show-word-limit
placeholder="输入不超过600字内的文字说明"
></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="template-footer"> <div class="template-footer">
...@@ -271,7 +222,7 @@ export default { ...@@ -271,7 +222,7 @@ export default {
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.model-panel { .model-panel {
...@@ -418,4 +369,4 @@ export default { ...@@ -418,4 +369,4 @@ export default {
padding: 30px 0; padding: 30px 0;
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -10,25 +10,10 @@ ...@@ -10,25 +10,10 @@
<template v-else-if="item.attType == 7"> <template v-else-if="item.attType == 7">
<div class="preview-activity"> <div class="preview-activity">
<!-- <img class="applet-logo" src="@/assets/guestCustom/applet-logo.png" alt /> --> <!-- <img class="applet-logo" src="@/assets/guestCustom/applet-logo.png" alt /> -->
<div class="activity-name">{{item.attContent.marketingName}}</div> <div class="activity-name">{{ item.attContent.marketingName }}</div>
<img <img v-if="item.attContent.marketingType != 5 && item.attContent.marketingType != 6" class="activity-logo" src="@/assets/guestCustom/activity-logo.png" alt />
v-if="item.attContent.marketingType != 5 && item.attContent.marketingType != 6" <img v-if="item.attContent.marketingType == 5" class="activity-logo" src="@/assets/guestCustom/activity-spike.png" alt />
class="activity-logo" <img v-if="item.attContent.marketingType == 6" class="activity-logo" src="@/assets/guestCustom/activity-service.png" alt />
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"> <div class="activity-footer">
<img src="@/assets/guestCustom/applet-footer.png" alt /> <img src="@/assets/guestCustom/applet-footer.png" alt />
</div> </div>
......
...@@ -2,18 +2,14 @@ ...@@ -2,18 +2,14 @@
<div class="select-emp-panel"> <div class="select-emp-panel">
<div class="scrm-p10 emp-tree-panel"> <div class="scrm-p10 emp-tree-panel">
<div class="popper-arrow"></div> <div class="popper-arrow"></div>
<div class="emp-scroll-panel" :style="{ <div
class="emp-scroll-panel"
:style="{
height: treeHeight + 'px' height: treeHeight + 'px'
}"> }"
>
<div class="tree-title">所在门店/部门</div> <div class="tree-title">所在门店/部门</div>
<el-tree <el-tree v-loading="loading" :data="listTree" :expand-on-click-node="false" highlight-current :props="defaultProps" @node-click="handleNodeClick"></el-tree>
v-loading="loading"
:data="listTree"
:expand-on-click-node="false"
highlight-current
:props="defaultProps"
@node-click="handleNodeClick"
></el-tree>
</div> </div>
</div> </div>
<el-col <el-col
...@@ -22,15 +18,7 @@ ...@@ -22,15 +18,7 @@
height: treeHeight + 20 + 'px' height: treeHeight + 20 + 'px'
}" }"
> >
<GLTable <GLTable v-loading="loading" ref="saleTable" :tableData="tableEmpData" :tableParams="tableParams" :hasNum="false" :hasPage="false" @selectionTable="selectionTable"></GLTable>
v-loading="loading"
ref="saleTable"
:tableData="tableEmpData"
:tableParams="tableParams"
:hasNum="false"
:hasPage="false"
@selectionTable="selectionTable"
></GLTable>
</el-col> </el-col>
</div> </div>
</template> </template>
...@@ -158,7 +146,7 @@ export default { ...@@ -158,7 +146,7 @@ export default {
this.listDepartmentTree() this.listDepartmentTree()
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.select-emp-panel { .select-emp-panel {
display: flex; display: flex;
......
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
this.heightBox = clientHeight - 0.15 * clientHeight - 350 this.heightBox = clientHeight - 0.15 * clientHeight - 350
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// ::v-deep .el-tag{ // ::v-deep .el-tag{
...@@ -297,7 +297,7 @@ export default { ...@@ -297,7 +297,7 @@ export default {
margin: 8px 0; margin: 8px 0;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
/deep/.el-radio__inner{ /deep/.el-radio__inner {
box-shadow: none !important; box-shadow: none !important;
} }
/deep/.el-radio__label { /deep/.el-radio__label {
......
...@@ -8,42 +8,13 @@ ...@@ -8,42 +8,13 @@
<div class="member-content"> <div class="member-content">
<el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent> <el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent>
<el-form-item label="所在门店/部门" style="margin-bottom: 0;"> <el-form-item label="所在门店/部门" style="margin-bottom: 0;">
<el-popover <el-popover ref="popover" placement="bottom" width="215" trigger="click" v-model="popoverVisible" @show="onShowPopover" @hide="onHidePopover">
ref="popover" <el-tree class="select-tree" :data="treeData" :props="defaultProps" default-expand-all @node-click="handleNodeClick"></el-tree>
placement="bottom" <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>
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-popover>
</el-form-item> </el-form-item>
<el-form-item label="姓名" style="margin-bottom: 0;"> <el-form-item label="姓名" style="margin-bottom: 0;">
<el-input <el-input :size="size" v-model.trim="searchForm.name" @keyup.enter.native="search" clearable placeholder="请输入姓名搜索"></el-input>
:size="size"
v-model.trim="searchForm.name"
@keyup.enter.native="search"
clearable
placeholder="请输入姓名搜索"
></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item> <!-- <el-form-item>
<el-checkbox v-model="searchForm.checked">仅看跟进专员</el-checkbox> <el-checkbox v-model="searchForm.checked">仅看跟进专员</el-checkbox>
...@@ -53,20 +24,10 @@ ...@@ -53,20 +24,10 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="table-content" style="max-height: 456px;"> <div class="table-content" style="max-height: 456px;">
<GLTable <GLTable v-loading="loading" ref="empTable" :tableData="tableEmpData" :tableParams="tableParams" :hasNum="false" :hasPage="false" :noDataImg="url" @selectionTable="selectionTable" @row-click="rowClick">
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"> <div slot="staffName" slot-scope="scope">
<span>{{scope.scope.staffName}}</span> <span>{{ scope.scope.staffName }}</span>
<span class="staff-title" v-show="scope.scope.staffTitle">{{scope.scope.staffTitle}}</span> <span class="staff-title" v-show="scope.scope.staffTitle">{{ scope.scope.staffTitle }}</span>
</div> </div>
</GLTable> </GLTable>
</div> </div>
...@@ -77,17 +38,10 @@ ...@@ -77,17 +38,10 @@
</div> </div>
<div class="member-right"> <div class="member-right">
<div class="member-title">已选</div> <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="input-tag-wrapper">
<div class="tag-box"> <div class="tag-box">
<el-tag <el-tag v-for="(tag, idx) in innerTags" :key="idx" type="info" closable :disable-transitions="false" @close="remove(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> <i class="el-icon-user-solid"></i>
{{ tag.staffName }} {{ tag.staffName }}
</el-tag> </el-tag>
......
...@@ -5,26 +5,12 @@ ...@@ -5,26 +5,12 @@
<div class="sale-select"> <div class="sale-select">
<div class="el-input-tag input-tag-wrapper" @click="foucusTagInput"> <div class="el-input-tag input-tag-wrapper" @click="foucusTagInput">
<div class="tag-box"> <div class="tag-box">
<el-tag <el-tag v-for="(tag, idx) in innerTags" :key="idx" type="info" closable :disable-transitions="false" @close="remove(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> <i class="el-icon-user-solid"></i>
{{ tag.staffName }} {{ tag.staffName }}
</el-tag> </el-tag>
</div> </div>
<el-input <el-input size="small" v-model.trim="newTag" placeholder="选择员工" @input="inputTag" style="outline: none; border: none" @keyup.enter.native="searchEmp"></el-input>
size="small"
v-model.trim="newTag"
placeholder="选择员工"
@input="inputTag"
style="outline: none; border: none"
@keyup.enter.native="searchEmp"
></el-input>
</div> </div>
<div> <div>
<el-button size="small" class="sale-select-btn" type="primary" @click="searchEmp">查询</el-button> <el-button size="small" class="sale-select-btn" type="primary" @click="searchEmp">查询</el-button>
...@@ -32,12 +18,7 @@ ...@@ -32,12 +18,7 @@
</div> </div>
<div> <div>
<div class="select-sale-panel"> <div class="select-sale-panel">
<select-emp <select-emp :selectData="selectData" :islord="islord" @selectTable="selectTable" ref="selectEmpTabel"></select-emp>
:selectData="selectData"
:islord="islord"
@selectTable="selectTable"
ref="selectEmpTabel"
></select-emp>
<div class="popper__arrow"></div> <div class="popper__arrow"></div>
</div> </div>
</div> </div>
...@@ -111,7 +92,7 @@ export default { ...@@ -111,7 +92,7 @@ export default {
}, },
mounted() {} mounted() {}
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.drawer-sale-panel { .drawer-sale-panel {
padding: 0px 20px; padding: 0px 20px;
......
<!-- 树形搜索 --> <!-- 树形搜索 -->
<template> <template>
<div> <div>
<el-popover <el-popover ref="popover" placement="bottom-start" trigger="click" v-model="popoverVisible" :disabled="targetItem.isDisabled" @show="onShowPopover" @hide="onHidePopover">
ref="popover" <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>
placement="bottom-start" <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>
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> </el-popover>
</div> </div>
</template> </template>
...@@ -156,4 +124,4 @@ export default { ...@@ -156,4 +124,4 @@ export default {
max-height: 400px; max-height: 400px;
overflow-y: scroll; overflow-y: scroll;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
<template> <template>
<div class="w-textarea" ref="wTextarea"> <div class="w-textarea" ref="wTextarea">
<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>
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"> <!-- <div class="w-textarea_tools" v-if="tools.length > 0 || maxlength">
<button <button
class="w-textarea_tools__item" class="w-textarea_tools__item"
...@@ -429,4 +419,4 @@ $textColor: #666; ...@@ -429,4 +419,4 @@ $textColor: #666;
} }
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -45,40 +45,13 @@ ...@@ -45,40 +45,13 @@
<div class="btn-group"> <div class="btn-group">
<div class="add-btn" v-for="item in btnList" :key="item.id"> <div class="add-btn" v-for="item in btnList" :key="item.id">
<!-- <i class="el-icon-circle-plus-outline"></i> --> <!-- <i class="el-icon-circle-plus-outline"></i> -->
<img <img :src="require(`@/assets/guestCustom/add-${item.type}.png`)" alt v-if="item.id == 1" @click="selectEmotion" />
: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 /> <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-if="item.id == 1" @click.stop="selectEmotion">{{ item.name }}</span>
<span v-else>{{ item.name }}</span> <span v-else>{{ item.name }}</span>
<input <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)" />
v-if="item.type == 'img'" <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)" />
type="file" <el-link v-else-if="item.type == 'nickname' || item.type == 'acivity'" style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link>
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> </div>
</div> </div>
......
...@@ -10,21 +10,9 @@ ...@@ -10,21 +10,9 @@
</div> </div>
</glsx-combi-form> </glsx-combi-form>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable <GLTable style="margin-top: 20px;" ref="table" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :hasPage="false" :pageConf="pageConf">
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"> <div class="table-btns" slot="optionBtns" slot-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>
type="text"
:disabled="scope.scope.status == 1 || (scope.scope.status == 0 && scope.scope.remindStatus == 1)"
@click="remind(scope.scope)"
>提醒发送</el-button>
</div> </div>
</GLTable> </GLTable>
</div> </div>
......
...@@ -5,12 +5,7 @@ ...@@ -5,12 +5,7 @@
<div class="detail-modular"> <div class="detail-modular">
<div class="title">员工详情</div> <div class="title">员工详情</div>
<div class="detail-info"> <div class="detail-info">
<el-menu <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
:default-active="activeIndex"
class="el-menu-demo"
mode="horizontal"
@select="handleSelect"
>
<el-menu-item index>全部</el-menu-item> <el-menu-item index>全部</el-menu-item>
<el-menu-item index="1">已发送员工</el-menu-item> <el-menu-item index="1">已发送员工</el-menu-item>
<el-menu-item index="0">未发送员工</el-menu-item> <el-menu-item index="0">未发送员工</el-menu-item>
...@@ -19,24 +14,14 @@ ...@@ -19,24 +14,14 @@
<div class="detail-total">共 {{ employeelist.length || 0 }} 人</div> <div class="detail-total">共 {{ employeelist.length || 0 }} 人</div>
<div v-if="employeelist.length != 0" class="info-list"> <div v-if="employeelist.length != 0" class="info-list">
<div class="info-item" v-for="(item, index) in employeelist" :key="item.id"> <div class="info-item" v-for="(item, index) in employeelist" :key="item.id">
<img <img class="info-avatar" :src="item.avatar ? item.avatar : require('@/assets/guestCustom/default-avatar.png')" alt />
class="info-avatar"
:src="item.avatar ? item.avatar : require('@/assets/guestCustom/default-avatar.png')"
alt
/>
<div class="info-content"> <div class="info-content">
<div class="info-text"> <div class="info-text">
<div class="info-name"> <div class="info-name">
{{ item.staffName }} {{ item.staffName }}
<span :class="[item.status == 0 ? 'unsend' : 'send']"> <span :class="[item.status == 0 ? 'unsend' : 'send']">
{{ item.status == 0 ? '未发送' : item.status == 1 ? '已发送' : '发送失败' }} {{ item.status == 0 ? '未发送' : item.status == 1 ? '已发送' : '发送失败' }}
<el-popover <el-popover v-show="item.status != 0 && item.status != 1" placement="top-start" title="失败原因:" width="400" trigger="hover">
v-show="item.status != 0 && item.status != 1"
placement="top-start"
title="失败原因:"
width="400"
trigger="hover"
>
<p>1.若插入活动发送失败,可能为企微未绑定活动小程序,请绑定后再尝试。</p> <p>1.若插入活动发送失败,可能为企微未绑定活动小程序,请绑定后再尝试。</p>
<p>2.可能为客户开启消息免打扰,消息发送失败。</p> <p>2.可能为客户开启消息免打扰,消息发送失败。</p>
<p>3.可能为群发次数达到上限,上限次数为每个客户/客户群每天仅可接收1条群发消息。</p> <p>3.可能为群发次数达到上限,上限次数为每个客户/客户群每天仅可接收1条群发消息。</p>
...@@ -48,13 +33,7 @@ ...@@ -48,13 +33,7 @@
</div> </div>
<div class="info-right"> <div class="info-right">
<div v-if="item.status != 0 || item.remindStatus == 1">已提醒</div> <div v-if="item.status != 0 || item.remindStatus == 1">已提醒</div>
<el-button <el-button v-if="item.status == 0" :disabled="item.remindStatus == 1 || isDisabled" size="mini" type="primary" @click="remind(item, index)">提醒</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> </div>
</div> </div>
...@@ -68,12 +47,7 @@ ...@@ -68,12 +47,7 @@
<div class="detail-modular"> <div class="detail-modular">
<div class="title">客户详情</div> <div class="title">客户详情</div>
<div class="detail-info"> <div class="detail-info">
<el-menu <el-menu :default-active="customIndex" class="el-menu-demo" mode="horizontal" @select="handleCustomSelect">
:default-active="customIndex"
class="el-menu-demo"
mode="horizontal"
@select="handleCustomSelect"
>
<el-menu-item index>全部</el-menu-item> <el-menu-item index>全部</el-menu-item>
<el-menu-item index="1">已送达客户</el-menu-item> <el-menu-item index="1">已送达客户</el-menu-item>
<el-menu-item index="0">未送达客户</el-menu-item> <el-menu-item index="0">未送达客户</el-menu-item>
...@@ -82,24 +56,14 @@ ...@@ -82,24 +56,14 @@
<div class="detail-total">共 {{ customerlist.length || 0 }} 人</div> <div class="detail-total">共 {{ customerlist.length || 0 }} 人</div>
<div v-if="customerlist.length != 0" class="info-list"> <div v-if="customerlist.length != 0" class="info-list">
<div class="info-item" v-for="item in customerlist" :key="item.id"> <div class="info-item" v-for="item in customerlist" :key="item.id">
<img <img class="info-avatar" :src="item.avatar ? item.avatar : require('@/assets/guestCustom/default-avatar.png')" alt />
class="info-avatar"
:src="item.avatar ? item.avatar : require('@/assets/guestCustom/default-avatar.png')"
alt
/>
<div class="info-content info-custom"> <div class="info-content info-custom">
<div class="info-text"> <div class="info-text">
<div class="info-name"> <div class="info-name">
{{ item.customerName }} {{ item.customerName }}
<div class="customer-table" :class="[item.status == 0 ? 'unsend' : 'send']"> <div class="customer-table" :class="[item.status == 0 ? 'unsend' : 'send']">
{{ item.status == 0 ? '未送达' : item.status == 1 ? '已送达' : '送达失败' }} {{ item.status == 0 ? '未送达' : item.status == 1 ? '已送达' : '送达失败' }}
<el-popover <el-popover v-show="item.status != 0 && item.status != 1" placement="top-start" title="失败原因:" width="400" trigger="hover">
v-show="item.status != 0 && item.status != 1"
placement="top-start"
title="失败原因:"
width="400"
trigger="hover"
>
<p>1.若插入活动发送失败,可能为企微未绑定活动小程序,请绑定后再尝试。</p> <p>1.若插入活动发送失败,可能为企微未绑定活动小程序,请绑定后再尝试。</p>
<p>2.可能为客户开启消息免打扰,消息发送失败。</p> <p>2.可能为客户开启消息免打扰,消息发送失败。</p>
<p>3.可能为群发次数达到上限,上限次数为每个客户/客户群每天仅可接收1条群发消息。</p> <p>3.可能为群发次数达到上限,上限次数为每个客户/客户群每天仅可接收1条群发消息。</p>
...@@ -109,7 +73,7 @@ ...@@ -109,7 +73,7 @@
</div> </div>
</div> </div>
<div class="info-right"> <div class="info-right">
<div>通过 {{item.staffName}}发送</div> <div>通过 {{ item.staffName }}发送</div>
</div> </div>
</div> </div>
</div> </div>
......
<template> <template>
<div class="send-assistant"> <div class="send-assistant">
<div class="menu-sub"> <div class="menu-sub">
<div <div class="menu-sub-item" :class="[activeIndex == '1' ? 'active' : '']" @click="switchMenu(1)">客户群发</div>
class="menu-sub-item" <div class="menu-sub-item" :class="[activeIndex == '2' ? 'active' : '']" @click="switchMenu(2)">客户群群发</div>
:class="[activeIndex == '1' ? 'active' : '']"
@click="switchMenu(1)"
>客户群发</div>
<div
class="menu-sub-item"
:class="[activeIndex == '2' ? 'active' : '']"
@click="switchMenu(2)"
>客户群群发</div>
</div> </div>
<div v-if="activeIndex == 1" class="container"> <div v-if="activeIndex == 1" class="container">
<div class="container-header"> <div class="container-header">
...@@ -20,42 +12,23 @@ ...@@ -20,42 +12,23 @@
icon="el-icon-plus" icon="el-icon-plus"
@click="btnClick('create', 1)" @click="btnClick('create', 1)"
>新建群发</el-button>--> >新建群发</el-button>-->
<GLButton <GLButton type="primary" :size="size" icon="el-icon-plus" fn="新建客户群发" @click="btnClick('create', 1)">新建群发</GLButton>
type="primary"
:size="size"
icon="el-icon-plus"
fn="新建客户群发"
@click="btnClick('create', 1)"
>新建群发</GLButton>
<div class="text">企业统一选择要发送的客户,由添加客户的成员确认后发送给客户,消息内容仅管理员和负责人可创建。</div> <div class="text">企业统一选择要发送的客户,由添加客户的成员确认后发送给客户,消息内容仅管理员和负责人可创建。</div>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable <GLTable :key="key" ref="customer" :getListApi="customerList" :tableParams="gueastTableParams" :pageConf="gueastPageConf">
:key="key"
ref="customer"
:getListApi="customerList"
:tableParams="gueastTableParams"
:pageConf="gueastPageConf"
>
<div slot="entmicro-name" class="entmicro" slot-scope="scope"> <div slot="entmicro-name" class="entmicro" slot-scope="scope">
<span v-for="(i, index) in scope.scope.attachmentList" :key="index"> <span v-for="(i, index) in scope.scope.attachmentList" :key="index">
[共{{scope.scope.attachmentList.length}}条] [共{{ scope.scope.attachmentList.length }}条]
<span v-show="i.attType == 1">{{i.attContent}}</span> <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 == 2 || i.attType == 3">[{{ ATT_TYPE[i.attType] }}]</span>
<span v-show="i.attType == 4 || i.attType == 5">[{{ATT_TYPE[i.attType]}}]</span> <span v-show="i.attType == 4 || i.attType == 5">[{{ ATT_TYPE[i.attType] }}]</span>
</span> </span>
</div> </div>
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<span <span v-if="scope.scope.status == -1 || scope.scope.status == 2" style="color: #EB4E4E;">创建失败</span>
v-if="scope.scope.status == -1 || scope.scope.status == 2"
style="color: #EB4E4E;"
>创建失败</span>
<span v-else> <span v-else>
<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>
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> <GLButton type="text" fn="客户群发详情" @click="btnClick('detail', 1, scope.scope)">详情</GLButton>
<!-- <el-button type="text" @click="btnClick('detail', 1, scope.scope)">详情</el-button> --> <!-- <el-button type="text" @click="btnClick('detail', 1, scope.scope)">详情</el-button> -->
</span> </span>
...@@ -71,39 +44,23 @@ ...@@ -71,39 +44,23 @@
icon="el-icon-plus" icon="el-icon-plus"
@click="btnClick('create', 2)" @click="btnClick('create', 2)"
>新建群发</el-button>--> >新建群发</el-button>-->
<GLButton <GLButton type="primary" :size="size" fn="新建客户群群发" icon="el-icon-plus" @click="btnClick('create', 2)">新建群发</GLButton>
type="primary"
:size="size"
fn="新建客户群群发"
icon="el-icon-plus"
@click="btnClick('create', 2)"
>新建群发</GLButton>
<div class="text">管理员或负责人统一创建内容,群主收到通知后,可选择他管理的客户群并群发。</div> <div class="text">管理员或负责人统一创建内容,群主收到通知后,可选择他管理的客户群并群发。</div>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable <GLTable :key="groupKey" ref="customerGroup" :getListApi="customerGroupList" :tableParams="gueastGroupTableParams" :pageConf="gueastPageConf">
:key="groupKey"
ref="customerGroup"
:getListApi="customerGroupList"
:tableParams="gueastGroupTableParams"
:pageConf="gueastPageConf"
>
<div slot="entmicro-name" class="entmicro" slot-scope="scope"> <div slot="entmicro-name" class="entmicro" slot-scope="scope">
<span v-for="(i, index) in scope.scope.attachmentList" :key="index"> <span v-for="(i, index) in scope.scope.attachmentList" :key="index">
[共{{scope.scope.attachmentList.length}}条] [共{{ scope.scope.attachmentList.length }}条]
<span v-show="i.attType == 1">{{i.attContent}}</span> <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 == 2 || i.attType == 3">[{{ ATT_TYPE[i.attType] }}]</span>
<span v-show="i.attType == 4 || i.attType == 5">[{{ATT_TYPE[i.attType]}}]</span> <span v-show="i.attType == 4 || i.attType == 5">[{{ ATT_TYPE[i.attType] }}]</span>
</span> </span>
</div> </div>
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<span v-if="scope.scope.status == -1" style="color: #EB4E4E;">创建失败</span> <span v-if="scope.scope.status == -1" style="color: #EB4E4E;">创建失败</span>
<span v-else> <span v-else>
<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>
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> <GLButton type="text" fn="客户群群发详情" @click="btnClick('detail', 2, scope.scope)">详情</GLButton>
<!-- <el-button type="text" @click="btnClick('detail', 2, scope.scope)">详情</el-button> --> <!-- <el-button type="text" @click="btnClick('detail', 2, scope.scope)">详情</el-button> -->
</span> </span>
......
...@@ -33,4 +33,4 @@ export default { ...@@ -33,4 +33,4 @@ export default {
height: 24px; height: 24px;
display: inline-block; display: inline-block;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -196,10 +196,10 @@ export default { ...@@ -196,10 +196,10 @@ export default {
}, },
merchantOpen() { merchantOpen() {
let channel = null let channel = null
if(location.host == 'scrm.cgacar.com') { if (location.host == 'scrm.cgacar.com') {
channel = 2 channel = 2
} }
this.$apis.customerTransform.merchantOpen({ merchantId: this.$globalState.session.merchantId,channel }).then(res => { this.$apis.customerTransform.merchantOpen({ merchantId: this.$globalState.session.merchantId, channel }).then(res => {
this.openFlag = res.openFlag this.openFlag = res.openFlag
}) })
}, },
...@@ -237,7 +237,7 @@ export default { ...@@ -237,7 +237,7 @@ export default {
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.square-main { .square-main {
...@@ -374,4 +374,4 @@ export default { ...@@ -374,4 +374,4 @@ export default {
} }
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<i :class="{ 'el-icon-refresh': true, 'wait-status': refreshStatus }"></i> <i :class="{ 'el-icon-refresh': true, 'wait-status': refreshStatus }"></i>
更新数据 更新数据
</span> </span>
<span class="info-time">更新于:{{this.updatedTime}}</span> <span class="info-time">更新于:{{ this.updatedTime }}</span>
</div> </div>
<div class="statistics-info"> <div class="statistics-info">
<div class="statistics-ul"> <div class="statistics-ul">
...@@ -132,7 +132,7 @@ export default { ...@@ -132,7 +132,7 @@ export default {
// } // }
}, },
methods: { methods: {
handleRefresh: utils.debounce(function () { handleRefresh: utils.debounce(function() {
this.getCustomerDetail() this.getCustomerDetail()
this.refreshStatus = true this.refreshStatus = true
setTimeout(() => { setTimeout(() => {
......
...@@ -2,12 +2,7 @@ ...@@ -2,12 +2,7 @@
<div> <div>
<div class="emotion-box" :style="{ height: height + 'px' }"> <div class="emotion-box" :style="{ height: height + 'px' }">
<div class="emotion-box-line" v-for="(line, i) in list" :key="i"> <div class="emotion-box-line" v-for="(line, i) in list" :key="i">
<emotion <emotion class="emotion-item" v-for="(item, i) in line" :key="i" @click.native="clickHandler(item)">{{ item }}</emotion>
class="emotion-item"
v-for="(item, i) in line"
:key="i"
@click.native="clickHandler(item)"
>{{ item }}</emotion>
</div> </div>
</div> </div>
</div> </div>
...@@ -68,4 +63,4 @@ export default { ...@@ -68,4 +63,4 @@ export default {
} }
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
<template> <template>
<div class="square-main"> <div class="square-main">
<el-dialog <el-dialog title="选择模板" :visible.sync="dialogVisible" width="1142px" :before-close="handleClose" :close-on-click-modal="false">
title="选择模板"
:visible.sync="dialogVisible"
width="1142px"
:before-close="handleClose"
:close-on-click-modal="false"
>
<div class="model-panel"> <div class="model-panel">
<el-form :inline="true" class="message-form" :model="searchForm" ref="searchForm"> <el-form :inline="true" class="message-form" :model="searchForm" ref="searchForm">
<el-form-item label="模板标题"> <el-form-item label="模板标题">
...@@ -14,12 +8,7 @@ ...@@ -14,12 +8,7 @@
</el-form-item> </el-form-item>
<el-form-item label="创建者"> <el-form-item label="创建者">
<el-select v-model="searchForm.createdBy" :size="size" placeholder="全部"> <el-select v-model="searchForm.createdBy" :size="size" placeholder="全部">
<el-option <el-option v-for="item in createdList" :key="item.id" :label="item.createdName" :value="item.createdBy"></el-option>
v-for="item in createdList"
:key="item.id"
:label="item.createdName"
:value="item.createdBy"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -47,16 +36,11 @@ ...@@ -47,16 +36,11 @@
<div class="model-title-h2">{{ item.content }}</div> <div class="model-title-h2">{{ item.content }}</div>
</div> </div>
<div class="model-item-content"> <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 class="model-content">创建日期:{{ item.createdTime }}</div>
</div> </div>
<div class="model-item-btn"> <div class="model-item-btn">
<el-button <el-button v-if="item.createdBy == userId" type="text" :size="size" @click="editModel(item.id)">编辑</el-button>
v-if="item.createdBy == userId"
type="text"
:size="size"
@click="editModel(item.id)"
>编辑</el-button>
</div> </div>
</div> </div>
</div> </div>
...@@ -64,53 +48,20 @@ ...@@ -64,53 +48,20 @@
<img src="@/assets/empty.png" /> <img src="@/assets/empty.png" />
<div class="empty-item">暂无数据</div> <div class="empty-item">暂无数据</div>
</div> </div>
<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>
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> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="handleClose">取 消</el-button> <el-button size="small" @click="handleClose">取 消</el-button>
<el-button size="small" type="primary" @click="selectModelItem">复制文本</el-button> <el-button size="small" type="primary" @click="selectModelItem">复制文本</el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog <el-dialog :title="modelTitle" :visible.sync="createVisible" width="547px" :before-close="handleCreateClose" :close-on-click-modal="false">
:title="modelTitle" <el-form :model="templateForm" :rules="templateRules" ref="templateForm" label-width="100px" class="templateForm">
: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-form-item label="标题" prop="title">
<el-input <el-input v-model="templateForm.title" maxlength="10" show-word-limit placeholder="输入10个字以内的标题,如活动促销"></el-input>
v-model="templateForm.title"
maxlength="10"
show-word-limit
placeholder="输入10个字以内的标题,如活动促销"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="内容说明" prop="content"> <el-form-item label="内容说明" prop="content">
<el-input <el-input type="textarea" v-model="templateForm.content" maxlength="600" :rows="7" show-word-limit placeholder="输入不超过600字内的文字说明"></el-input>
type="textarea"
v-model="templateForm.content"
maxlength="600"
:rows="7"
show-word-limit
placeholder="输入不超过600字内的文字说明"
></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="template-footer"> <div class="template-footer">
...@@ -271,7 +222,7 @@ export default { ...@@ -271,7 +222,7 @@ export default {
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.model-panel { .model-panel {
...@@ -418,4 +369,4 @@ export default { ...@@ -418,4 +369,4 @@ export default {
padding: 30px 0; padding: 30px 0;
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
previewList(val) { previewList(val) {
if (val.length && val[0].attType == 1) { if (val.length && val[0].attType == 1) {
const attContent = val[0].attContent[0] const attContent = val[0].attContent[0]
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function (res) { const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) {
let word = res.replace(/\[|\]/gi, '') let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity) const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1 let index = parseInt(list.indexOf(word)) + 1
......
...@@ -2,18 +2,14 @@ ...@@ -2,18 +2,14 @@
<div class="select-emp-panel"> <div class="select-emp-panel">
<div class="scrm-p10 emp-tree-panel"> <div class="scrm-p10 emp-tree-panel">
<div class="popper-arrow"></div> <div class="popper-arrow"></div>
<div class="emp-scroll-panel" :style="{ <div
class="emp-scroll-panel"
:style="{
height: treeHeight + 'px' height: treeHeight + 'px'
}"> }"
>
<div class="tree-title">所在门店/部门</div> <div class="tree-title">所在门店/部门</div>
<el-tree <el-tree v-loading="loading" :data="listTree" :expand-on-click-node="false" highlight-current :props="defaultProps" @node-click="handleNodeClick"></el-tree>
v-loading="loading"
:data="listTree"
:expand-on-click-node="false"
highlight-current
:props="defaultProps"
@node-click="handleNodeClick"
></el-tree>
</div> </div>
</div> </div>
<el-col <el-col
...@@ -22,15 +18,7 @@ ...@@ -22,15 +18,7 @@
height: treeHeight + 20 + 'px' height: treeHeight + 20 + 'px'
}" }"
> >
<GLTable <GLTable v-loading="loading" ref="saleTable" :tableData="tableEmpData" :tableParams="tableParams" :hasNum="false" :hasPage="false" @selectionTable="selectionTable"></GLTable>
v-loading="loading"
ref="saleTable"
:tableData="tableEmpData"
:tableParams="tableParams"
:hasNum="false"
:hasPage="false"
@selectionTable="selectionTable"
></GLTable>
</el-col> </el-col>
</div> </div>
</template> </template>
...@@ -158,7 +146,7 @@ export default { ...@@ -158,7 +146,7 @@ export default {
this.listDepartmentTree() this.listDepartmentTree()
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.select-emp-panel { .select-emp-panel {
display: flex; display: flex;
......
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
this.heightBox = clientHeight - 0.15 * clientHeight - 350 this.heightBox = clientHeight - 0.15 * clientHeight - 350
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// ::v-deep .el-tag{ // ::v-deep .el-tag{
...@@ -297,7 +297,7 @@ export default { ...@@ -297,7 +297,7 @@ export default {
margin: 8px 0; margin: 8px 0;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
/deep/.el-radio__inner{ /deep/.el-radio__inner {
box-shadow: none !important; box-shadow: none !important;
} }
/deep/.el-radio__label { /deep/.el-radio__label {
......
...@@ -8,42 +8,13 @@ ...@@ -8,42 +8,13 @@
<div class="member-content"> <div class="member-content">
<el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent> <el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent>
<el-form-item label="所在门店/部门" style="margin-bottom: 0;"> <el-form-item label="所在门店/部门" style="margin-bottom: 0;">
<el-popover <el-popover ref="popover" placement="bottom" width="215" trigger="click" v-model="popoverVisible" @show="onShowPopover" @hide="onHidePopover">
ref="popover" <el-tree class="select-tree" :data="treeData" :props="defaultProps" default-expand-all @node-click="handleNodeClick"></el-tree>
placement="bottom" <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>
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-popover>
</el-form-item> </el-form-item>
<el-form-item label="姓名" style="margin-bottom: 0;"> <el-form-item label="姓名" style="margin-bottom: 0;">
<el-input <el-input :size="size" v-model.trim="searchForm.name" @keyup.enter.native="search" clearable placeholder="请输入姓名搜索"></el-input>
:size="size"
v-model.trim="searchForm.name"
@keyup.enter.native="search"
clearable
placeholder="请输入姓名搜索"
></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item> <!-- <el-form-item>
<el-checkbox v-model="searchForm.checked">仅看跟进专员</el-checkbox> <el-checkbox v-model="searchForm.checked">仅看跟进专员</el-checkbox>
...@@ -53,20 +24,10 @@ ...@@ -53,20 +24,10 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="table-content" style="max-height: 456px;"> <div class="table-content" style="max-height: 456px;">
<GLTable <GLTable v-loading="loading" ref="empTable" :tableData="tableEmpData" :tableParams="tableParams" :hasNum="false" :hasPage="false" :noDataImg="url" @selectionTable="selectionTable" @row-click="rowClick">
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"> <div slot="staffName" slot-scope="scope">
<span>{{scope.scope.staffName}}</span> <span>{{ scope.scope.staffName }}</span>
<span class="staff-title" v-show="scope.scope.staffTitle">{{scope.scope.staffTitle}}</span> <span class="staff-title" v-show="scope.scope.staffTitle">{{ scope.scope.staffTitle }}</span>
</div> </div>
</GLTable> </GLTable>
</div> </div>
...@@ -77,17 +38,10 @@ ...@@ -77,17 +38,10 @@
</div> </div>
<div class="member-right"> <div class="member-right">
<div class="member-title">已选</div> <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="input-tag-wrapper">
<div class="tag-box"> <div class="tag-box">
<el-tag <el-tag v-for="(tag, idx) in innerTags" :key="idx" type="info" closable :disable-transitions="false" @close="remove(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> <i class="el-icon-user-solid"></i>
{{ tag.staffName }} {{ tag.staffName }}
</el-tag> </el-tag>
......
...@@ -5,26 +5,12 @@ ...@@ -5,26 +5,12 @@
<div class="sale-select"> <div class="sale-select">
<div class="el-input-tag input-tag-wrapper" @click="foucusTagInput"> <div class="el-input-tag input-tag-wrapper" @click="foucusTagInput">
<div class="tag-box"> <div class="tag-box">
<el-tag <el-tag v-for="(tag, idx) in innerTags" :key="idx" type="info" closable :disable-transitions="false" @close="remove(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> <i class="el-icon-user-solid"></i>
{{ tag.staffName }} {{ tag.staffName }}
</el-tag> </el-tag>
</div> </div>
<el-input <el-input size="small" v-model.trim="newTag" placeholder="选择员工" @input="inputTag" style="outline: none; border: none" @keyup.enter.native="searchEmp"></el-input>
size="small"
v-model.trim="newTag"
placeholder="选择员工"
@input="inputTag"
style="outline: none; border: none"
@keyup.enter.native="searchEmp"
></el-input>
</div> </div>
<div> <div>
<el-button size="small" class="sale-select-btn" type="primary" @click="searchEmp">查询</el-button> <el-button size="small" class="sale-select-btn" type="primary" @click="searchEmp">查询</el-button>
...@@ -32,12 +18,7 @@ ...@@ -32,12 +18,7 @@
</div> </div>
<div> <div>
<div class="select-sale-panel"> <div class="select-sale-panel">
<select-emp <select-emp :selectData="selectData" :islord="islord" @selectTable="selectTable" ref="selectEmpTabel"></select-emp>
:selectData="selectData"
:islord="islord"
@selectTable="selectTable"
ref="selectEmpTabel"
></select-emp>
<div class="popper__arrow"></div> <div class="popper__arrow"></div>
</div> </div>
</div> </div>
...@@ -111,7 +92,7 @@ export default { ...@@ -111,7 +92,7 @@ export default {
}, },
mounted() {} mounted() {}
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.drawer-sale-panel { .drawer-sale-panel {
padding: 0px 20px; padding: 0px 20px;
......
<!-- 树形搜索 --> <!-- 树形搜索 -->
<template> <template>
<div> <div>
<el-popover <el-popover ref="popover" placement="bottom-start" trigger="click" v-model="popoverVisible" :disabled="targetItem.isDisabled" @show="onShowPopover" @hide="onHidePopover">
ref="popover" <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>
placement="bottom-start" <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>
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> </el-popover>
</div> </div>
</template> </template>
...@@ -156,4 +124,4 @@ export default { ...@@ -156,4 +124,4 @@ export default {
max-height: 400px; max-height: 400px;
overflow-y: scroll; overflow-y: scroll;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -38,8 +38,7 @@ ...@@ -38,8 +38,7 @@
export default { export default {
name: 'share', name: 'share',
data() { data() {
return { return {}
}
}, },
props: { props: {
...@@ -57,7 +56,7 @@ export default { ...@@ -57,7 +56,7 @@ export default {
methods: { methods: {
handleSaveImg(url) { handleSaveImg(url) {
var alink = document.createElement("a") var alink = document.createElement('a')
alink.href = url alink.href = url
alink.setAttribute('target', '_blank') alink.setAttribute('target', '_blank')
alink.download = '海报' alink.download = '海报'
...@@ -82,7 +81,6 @@ export default { ...@@ -82,7 +81,6 @@ export default {
} }
} }
} }
</script> </script>
<style scoped> <style scoped>
.share-dialog .box { .share-dialog .box {
......
<template> <template>
<div class="w-textarea" ref="wTextarea"> <div class="w-textarea" ref="wTextarea">
<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>
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"> <!-- <div class="w-textarea_tools" v-if="tools.length > 0 || maxlength">
<button <button
class="w-textarea_tools__item" class="w-textarea_tools__item"
...@@ -430,4 +420,4 @@ $textColor: #666; ...@@ -430,4 +420,4 @@ $textColor: #666;
} }
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -272,7 +272,7 @@ export default { ...@@ -272,7 +272,7 @@ export default {
this.eventBus.$emit('update', this.previewList) this.eventBus.$emit('update', this.previewList)
}) })
} }
this.loading = false this.loading = false
}) })
document.querySelector('.upload-video').value = '' document.querySelector('.upload-video').value = ''
} }
...@@ -295,7 +295,7 @@ export default { ...@@ -295,7 +295,7 @@ export default {
let videoObj = document.createElement('video') let videoObj = document.createElement('video')
videoObj.src = videoUrl videoObj.src = videoUrl
videoObj.load() videoObj.load()
videoObj.onloadedmetadata = function (evt) { videoObj.onloadedmetadata = function(evt) {
URL.revokeObjectURL(videoUrl) URL.revokeObjectURL(videoUrl)
console.dir(videoObj) console.dir(videoObj)
if (videoObj.videoWidth > 1280 || videoObj.videoHeight > 720) { if (videoObj.videoWidth > 1280 || videoObj.videoHeight > 720) {
...@@ -409,7 +409,7 @@ export default { ...@@ -409,7 +409,7 @@ export default {
} }
} }
}, },
changeInput: utils.debounce(function () { changeInput: utils.debounce(function() {
var allNodes = document.getElementById('editor').childNodes var allNodes = document.getElementById('editor').childNodes
var str = '' var str = ''
allNodes.forEach(item => { allNodes.forEach(item => {
...@@ -427,7 +427,7 @@ export default { ...@@ -427,7 +427,7 @@ export default {
this.eventBus.$emit('update', this.previewList) this.eventBus.$emit('update', this.previewList)
const obj = val.find(item => item.attType == 1) const obj = val.find(item => item.attType == 1)
let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>') let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>')
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function (res) { const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) {
let word = res.replace(/\[|\]/gi, '') let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity) const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1 let index = parseInt(list.indexOf(word)) + 1
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
Next">确定</el-button>--> Next">确定</el-button>-->
<el-button type="primary" @click="handleCancel">取消</el-button> <el-button type="primary" @click="handleCancel">取消</el-button>
</div> </div>
<el-dialog title="已送达客户" :visible.sync="dialogVisible" width="576px" :before-close="handleClose" class="user-dialog"> <el-dialog title="已送达客户" :visible.sync="dialogVisible" width="576px" :before-close="handleClose" class="user-dialog">
<div class="user-list"> <div class="user-list">
<div class="user-item" v-for="(item, index) in userList" :key="index"> <div class="user-item" v-for="(item, index) in userList" :key="index">
<div class="user-image"> <div class="user-image">
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
label: '发送时间', label: '发送时间',
prop: 'sendTime', prop: 'sendTime',
formatter: cellValue => { formatter: cellValue => {
return cellValue.sendTime? cellValue.sendTime:'--' return cellValue.sendTime ? cellValue.sendTime : '--'
} }
}, },
{ {
......
<!-- 编辑礼包 --> <!-- 编辑礼包 -->
<template> <template>
<div class="edit-gift marketing p-t-20 edit-box"> <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> <p class="edit-title">审批信息</p>
<div class="approval-info"> <div class="approval-info">
<div class="approval_label">审批人:{{editForm.approveBy}}</div> <div class="approval_label">审批人:{{ editForm.approveBy }}</div>
<div class="approval_label">审批状态:<span :style="{color:approvalStatusColor[approvalStatus]}">{{approvalStatusVal[approvalStatus]}}</span></div> <div class="approval_label">
<div v-if="approvalStatus==2" class="approval_label">驳回说明:<div class="approval_con">{{editForm.approveExplain}}</div></div> 审批状态:
<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> </div>
<div class="container edit-container"> <div class="container edit-container">
...@@ -45,17 +51,17 @@ ...@@ -45,17 +51,17 @@
</div> </div>
</div> </div>
</glsx-combi-form> </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="line"></div>
<div class="note_container"> <div class="note_container">
<div class="left"> <div class="left">
<span class="mar40">创建时间:{{editForm.createdDate}}</span> <span class="mar40">创建时间:{{ editForm.createdDate }}</span>
<span class="">创建人:{{editForm.createdBy}}</span> <span class="">创建人:{{ editForm.createdBy }}</span>
</div> </div>
<div class="right"> <div class="right">
<span class="mar40">最后修改时间:{{editForm.updatedDate}}</span> <span class="mar40">最后修改时间:{{ editForm.updatedDate }}</span>
<span class="">修改人:{{editForm.updatedBy}}</span> <span class="">修改人:{{ editForm.updatedBy }}</span>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
...@@ -248,13 +254,13 @@ export default { ...@@ -248,13 +254,13 @@ export default {
} }
], ],
// 审批状态 0审批中 1审批通过 2审批驳回 // 审批状态 0审批中 1审批通过 2审批驳回
approvalStatus:1, approvalStatus: 1,
approvalStatusVal:['审批中','审批通过','已驳回','审批撤销','待审批'], approvalStatusVal: ['审批中', '审批通过', '已驳回', '审批撤销', '待审批'],
approvalStatusColor:['#FF6D00','#2CCA74','#EB4E4E','#999999','#999999'], approvalStatusColor: ['#FF6D00', '#2CCA74', '#EB4E4E', '#999999', '#999999'],
isChangeCoupons:true, isChangeCoupons: true,
isChangePeople:true, isChangePeople: true,
currentCoupons:[], currentCoupons: [],
currentPeople:[] currentPeople: []
} }
}, },
...@@ -270,14 +276,14 @@ export default { ...@@ -270,14 +276,14 @@ export default {
}, },
deep: true deep: true
}, },
'editForm.couponList':{ 'editForm.couponList': {
handler(val){ handler(val) {
this.isChangeCoupons = this.judgeAddOrDel(val,this.currentCoupons,'id') this.isChangeCoupons = this.judgeAddOrDel(val, this.currentCoupons, 'id')
} }
}, },
'editForm.staffList':{ 'editForm.staffList': {
handler(val){ handler(val) {
this.isChangePeople = this.judgeAddOrDel(val,this.currentPeople,'staffUUID') this.isChangePeople = this.judgeAddOrDel(val, this.currentPeople, 'staffUUID')
} }
} }
}, },
...@@ -329,15 +335,16 @@ export default { ...@@ -329,15 +335,16 @@ export default {
}, },
// 用来判断券和发放员工是否有增删 type: id为礼券 staffUUID为发放员工 // 用来判断券和发放员工是否有增删 type: id为礼券 staffUUID为发放员工
judgeAddOrDel(newArr,oldArr,type='id'){ judgeAddOrDel(newArr, oldArr, type = 'id') {
let id1 = [],id2 = [] let id1 = [],
newArr.forEach(item=>{ id2 = []
newArr.forEach(item => {
id1.push(item[type]) id1.push(item[type])
}) })
oldArr.forEach(item=>{ oldArr.forEach(item => {
id2.push(item[type]) 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 return flag
}, },
...@@ -450,40 +457,42 @@ export default { ...@@ -450,40 +457,42 @@ export default {
params.requestSource = 1 params.requestSource = 1
// 插入判断是否存在审批模板 // 插入判断是否存在审批模板
const { session } = this.$globalState const { session } = this.$globalState
this.$apis.giftBag.templateModal({merchantId:session.merchantId}).then((result)=>{ this.$apis.giftBag.templateModal({ merchantId: session.merchantId }).then(result => {
if(result.data&&(!this.isChangeCoupons || !this.isChangePeople)){ if (result.data && (!this.isChangeCoupons || !this.isChangePeople)) {
this.$confirm(`<div>提交后立即生效,如需审批,请在企微工作台创建</div><div>是否继续提交</div>`, '提示', { this.$confirm(`<div>提交后立即生效,如需审批,请在企微工作台创建</div><div>是否继续提交</div>`, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
dangerouslyUseHTMLString:true dangerouslyUseHTMLString: true
}) })
.then(() => { .then(() => {
this.insertHttp(params) this.insertHttp(params)
}) })
.catch(() => { }) .catch(() => {})
}else{ } else {
this.insertHttp(params) this.insertHttp(params)
} }
}) })
} }
}) })
}, },
// 创建-更新接口 // 创建-更新接口
insertHttp(params){ insertHttp(params) {
this.loading = true this.loading = true
this.$apis.giftBag.insertGiftApi(params).then(res => { this.$apis.giftBag
this.$message({ .insertGiftApi(params)
message: res.code == '0' ? '操作成功' : res.message, .then(res => {
type: res.code == '0' ? 'success' : 'error' 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() { cancelJump() {
this.$router.push({ this.$router.push({
...@@ -500,7 +509,7 @@ export default { ...@@ -500,7 +509,7 @@ export default {
.then(() => { .then(() => {
this.cancelJump() this.cancelJump()
}) })
.catch(() => { }) .catch(() => {})
} else { } else {
this.cancelJump() this.cancelJump()
} }
...@@ -622,11 +631,11 @@ export default { ...@@ -622,11 +631,11 @@ export default {
} }
} }
// v2.0.0 // v2.0.0
.approval-info{ .approval-info {
display: flex; display: flex;
box-sizing: border-box; box-sizing: border-box;
padding: 32px 0 12px 82px; padding: 32px 0 12px 82px;
.approval_label{ .approval_label {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
...@@ -634,7 +643,7 @@ export default { ...@@ -634,7 +643,7 @@ export default {
display: flex; display: flex;
line-height: 20px; line-height: 20px;
white-space: nowrap; white-space: nowrap;
.approval_con{ .approval_con {
width: 80%; width: 80%;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
...@@ -644,23 +653,24 @@ export default { ...@@ -644,23 +653,24 @@ export default {
} }
} }
} }
.approval_note_container{ .approval_note_container {
.line{ .line {
margin: 0 20px; margin: 0 20px;
border-top: 1px solid #D8D8D8 ; border-top: 1px solid #d8d8d8;
} }
.note_container{ .note_container {
box-sizing: border-box; box-sizing: border-box;
padding: 32px 68px 12px 68px; padding: 32px 68px 12px 68px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.left,.right{ .left,
.right {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
.mar40{ .mar40 {
margin-right: 40px; margin-right: 40px;
} }
} }
......
...@@ -4,9 +4,15 @@ ...@@ -4,9 +4,15 @@
<div class="container approval-container"> <div class="container approval-container">
<p class="edit-title">审批信息</p> <p class="edit-title">审批信息</p>
<div class="approval-info"> <div class="approval-info">
<div class="approval_label">审批人:{{editForm.approveBy}}</div> <div class="approval_label">审批人:{{ editForm.approveBy }}</div>
<div class="approval_label">审批状态:<span :style="{color:approvalStatusColor[approvalStatus]}">{{approvalStatusVal[approvalStatus]}}</span></div> <div class="approval_label">
<div v-if="approvalStatus==2" class="approval_label">驳回说明:<div class="approval_con">{{editForm.approveExplain}}</div></div> 审批状态:
<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> </div>
<div class="container edit-container"> <div class="container edit-container">
...@@ -44,14 +50,14 @@ ...@@ -44,14 +50,14 @@
<div class="approval_note_container"> <div class="approval_note_container">
<div class="line"></div> <div class="line"></div>
<div class="note_container"> <div class="note_container">
<div class="left"> <div class="left">
<span class="mar40">创建时间:{{editForm.createdDate}}</span> <span class="mar40">创建时间:{{ editForm.createdDate }}</span>
<span class="">创建人:{{editForm.createdBy}}</span> <span class="">创建人:{{ editForm.createdBy }}</span>
</div> </div>
<div class="right"> <div class="right">
<span class="mar40">最后修改时间:{{editForm.updatedDate}}</span> <span class="mar40">最后修改时间:{{ editForm.updatedDate }}</span>
<span class="">修改人:{{editForm.updatedBy}}</span> <span class="">修改人:{{ editForm.updatedBy }}</span>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
...@@ -166,9 +172,9 @@ export default { ...@@ -166,9 +172,9 @@ export default {
} }
], ],
// 审批状态 0审批中 1审批通过 2审批驳回 // 审批状态 0审批中 1审批通过 2审批驳回
approvalStatus:2, approvalStatus: 2,
approvalStatusVal:['审批中','审批通过','已驳回','审批撤销','待审批'], approvalStatusVal: ['审批中', '审批通过', '已驳回', '审批撤销', '待审批'],
approvalStatusColor:['#FF6D00','#2CCA74','#EB4E4E','#999999','#999999'], approvalStatusColor: ['#FF6D00', '#2CCA74', '#EB4E4E', '#999999', '#999999']
} }
}, },
...@@ -350,11 +356,11 @@ export default { ...@@ -350,11 +356,11 @@ export default {
} }
} }
// v2.0.0 // v2.0.0
.approval-info{ .approval-info {
display: flex; display: flex;
box-sizing: border-box; box-sizing: border-box;
padding: 32px 0 12px 82px; padding: 32px 0 12px 82px;
.approval_label{ .approval_label {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
...@@ -363,7 +369,7 @@ export default { ...@@ -363,7 +369,7 @@ export default {
display: flex; display: flex;
line-height: 20px; line-height: 20px;
white-space: nowrap; white-space: nowrap;
.approval_con{ .approval_con {
width: 80%; width: 80%;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
...@@ -373,23 +379,24 @@ export default { ...@@ -373,23 +379,24 @@ export default {
} }
} }
} }
.approval_note_container{ .approval_note_container {
.line{ .line {
margin: 0 20px; margin: 0 20px;
border-top: 1px solid #D8D8D8 ; border-top: 1px solid #d8d8d8;
} }
.note_container{ .note_container {
box-sizing: border-box; box-sizing: border-box;
padding: 32px 68px 12px 68px; padding: 32px 68px 12px 68px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.left,.right{ .left,
.right {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
.mar40{ .mar40 {
margin-right: 40px; margin-right: 40px;
} }
} }
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<p class="cursor-pointer" @click="handleDetail(scope.scope)">{{ scope.scope.name }}</p> <p class="cursor-pointer" @click="handleDetail(scope.scope)">{{ scope.scope.name }}</p>
</div> </div>
<div slot="approveStatus" slot-scope="scope"> <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>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<GLButton type="text" fn="编辑" @click="handleEdit('edit', scope.scope)">编辑</GLButton> <GLButton type="text" fn="编辑" @click="handleEdit('edit', scope.scope)">编辑</GLButton>
...@@ -64,7 +64,7 @@ export default { ...@@ -64,7 +64,7 @@ export default {
searchForm: { searchForm: {
name: '', name: '',
staffName: '', staffName: '',
approveStatus:'', approveStatus: '',
createDate: [] createDate: []
}, },
tableSearchForm: {}, tableSearchForm: {},
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
{ {
label: '审批状态', label: '审批状态',
prop: 'approveStatus', prop: 'approveStatus',
addHtml: 'approveStatus', addHtml: 'approveStatus'
}, },
{ {
label: '创建时间', label: '创建时间',
...@@ -179,7 +179,7 @@ export default { ...@@ -179,7 +179,7 @@ export default {
confName: '已发布' confName: '已发布'
} }
], ],
approvalStatusList:[ approvalStatusList: [
{ {
confId: 5, confId: 5,
confName: '待审批' confName: '待审批'
...@@ -195,13 +195,13 @@ export default { ...@@ -195,13 +195,13 @@ export default {
{ {
confId: 3, confId: 3,
confName: '已驳回' confName: '已驳回'
}, }
] ]
}, },
// 1 审批中;2 审批通过; 3审批驳回 4审批撤销 5待审批 // 1 审批中;2 审批通过; 3审批驳回 4审批撤销 5待审批
// 审批状态 0审批中 1审批通过 2审批驳回 // 审批状态 0审批中 1审批通过 2审批驳回
approvalStatusColor:['#FF6D00','#2CCA74','#EB4E4E','#999999','#999999'], approvalStatusColor: ['#FF6D00', '#2CCA74', '#EB4E4E', '#999999', '#999999'],
approvalStatusVal:['审批中','审批通过','已驳回','审批撤销','待审批'], approvalStatusVal: ['审批中', '审批通过', '已驳回', '审批撤销', '待审批']
} }
}, },
...@@ -256,7 +256,7 @@ export default { ...@@ -256,7 +256,7 @@ export default {
}, },
handleDelete(row) { handleDelete(row) {
if(row.approveStatus==1){ if (row.approveStatus == 1) {
this.$message({ this.$message({
message: '不支持删除审批中状态的礼包', message: '不支持删除审批中状态的礼包',
type: 'error' type: 'error'
...@@ -278,7 +278,7 @@ export default { ...@@ -278,7 +278,7 @@ export default {
// add-新增;edit-编辑 // add-新增;edit-编辑
handleEdit(addOrEdit, row) { handleEdit(addOrEdit, row) {
if(addOrEdit=='edit'&&row.approveStatus==1){ if (addOrEdit == 'edit' && row.approveStatus == 1) {
this.$message({ this.$message({
message: '不支持修改审批中状态的礼包', message: '不支持修改审批中状态的礼包',
type: 'error' type: 'error'
......
...@@ -28,10 +28,10 @@ export default { ...@@ -28,10 +28,10 @@ export default {
receivedGiftList receivedGiftList
}, },
mounted() { }, mounted() {},
methods: { methods: {
handleTabClick() { } handleTabClick() {}
} }
} }
</script> </script>
......
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
}, },
searchForm: { searchForm: {
type: Object, type: Object,
default: () => { } default: () => {}
}, },
selectedStaffList: { selectedStaffList: {
type: Array, type: Array,
......
...@@ -135,11 +135,9 @@ ...@@ -135,11 +135,9 @@
<img :src="materialAddForm.titleUrl" alt="" /> <img :src="materialAddForm.titleUrl" alt="" />
<div class="mask" v-if="materialAddForm.titleUrl"> <div class="mask" v-if="materialAddForm.titleUrl">
<h3> <h3>
<el-popover <el-popover placement="top" trigger="click">
placement="top"
trigger="click">
<div> <div>
<img class="img-plus" :src="materialAddForm.titleUrl" alt=""> <img class="img-plus" :src="materialAddForm.titleUrl" alt="" />
</div> </div>
<img slot="reference" src="@/assets/material/view.png" alt="" /> <img slot="reference" src="@/assets/material/view.png" alt="" />
</el-popover> </el-popover>
...@@ -426,7 +424,7 @@ export default { ...@@ -426,7 +424,7 @@ export default {
// 提交 // 提交
handleSubmit() { handleSubmit() {
this.$refs.materialAddForm.validate(valid => { this.$refs.materialAddForm.validate(valid => {
console.log(this.textBoxContent, 'text'); console.log(this.textBoxContent, 'text')
if (valid) { if (valid) {
var params = this.getParams() var params = this.getParams()
params.status = 0 params.status = 0
...@@ -819,4 +817,4 @@ export default { ...@@ -819,4 +817,4 @@ export default {
.gl-footer { .gl-footer {
z-index: 999; z-index: 999;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
export default { export default {
name: 'addMaterialGroupDia', name: 'addMaterialGroupDia',
props: { props: {
eventBus: Object, eventBus: Object
// businessTypes: { // businessTypes: {
// type: Array // type: Array
// } // }
...@@ -53,7 +53,7 @@ export default { ...@@ -53,7 +53,7 @@ export default {
console.log(value, '123') console.log(value, '123')
this.dialogVisible = true this.dialogVisible = true
this.materialGroupAddForm = { this.materialGroupAddForm = {
materialGroupName: '', materialGroupName: ''
// businessType: [] // businessType: []
} }
this.groupCounter = group this.groupCounter = group
...@@ -108,18 +108,18 @@ export default { ...@@ -108,18 +108,18 @@ export default {
return return
} }
// 判断素材组名称是否重复 // 判断素材组名称是否重复
var groupName = [] var groupName = []
this.groupCounter.forEach(item => { this.groupCounter.forEach(item => {
groupName.push(item.materialGroupName) groupName.push(item.materialGroupName)
})
var idx = groupName.indexOf(this.materialGroupAddForm.materialGroupName)
if (idx != -1) {
this.$message({
message: '素材组名称不能重复',
type: 'warning'
}) })
var idx = groupName.indexOf(this.materialGroupAddForm.materialGroupName) return
if (idx != -1) { }
this.$message({
message: '素材组名称不能重复',
type: 'warning'
})
return
}
this.eventBus.$emit('addMaterialGroup', params) this.eventBus.$emit('addMaterialGroup', params)
this.dialogVisible = false this.dialogVisible = false
} else { } else {
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
return false return false
} }
}) })
}, }
// handleCheckChange(val) { // handleCheckChange(val) {
// console.log(val) // console.log(val)
// this.materialGroupAddForm.businessType = val // this.materialGroupAddForm.businessType = val
...@@ -158,4 +158,4 @@ export default { ...@@ -158,4 +158,4 @@ export default {
display: block; display: block;
margin: -10px 0 0 110px; margin: -10px 0 0 110px;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<p class="list">2、员工能便捷的在企业微信聊天侧边栏及嘀加企微管家工作台上直接使用营销素材,避免自己设计素材的烦恼;</p> <p class="list">2、员工能便捷的在企业微信聊天侧边栏及嘀加企微管家工作台上直接使用营销素材,避免自己设计素材的烦恼;</p>
<p class="list">3、捕获客户对素材的交互行为并主动通知员工,获取客户的兴趣点,为业务转化提供参考依据。</p> <p class="list">3、捕获客户对素材的交互行为并主动通知员工,获取客户的兴趣点,为业务转化提供参考依据。</p>
<!-- <div class="img_div"> --> <!-- <div class="img_div"> -->
<img class="img_div" src="@/assets/material/introduction.png" alt=""> <img class="img_div" src="@/assets/material/introduction.png" alt="" />
<!-- </div> --> <!-- </div> -->
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" @click="handleClose">关闭</el-button> <el-button type="primary" @click="handleClose">关闭</el-button>
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
}, },
methods: { methods: {
handleClose() { handleClose() {
this.$emit('closeIntroductDia', this.dialogVisible); this.$emit('closeIntroductDia', this.dialogVisible)
} }
} }
} }
...@@ -53,4 +53,4 @@ h3 { ...@@ -53,4 +53,4 @@ h3 {
.list { .list {
margin: 0 0 20px 32px; margin: 0 0 20px 32px;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -8,22 +8,22 @@ ...@@ -8,22 +8,22 @@
</div> </div>
<ul> <ul>
<li v-for="(item, index) in groupCounter" :key="index" @click="handleGroup(item)"> <li v-for="(item, index) in groupCounter" :key="index" @click="handleGroup(item)">
<img src="@/assets/material/file.png" alt="" style="vertical-align: middle"> <img src="@/assets/material/file.png" alt="" style="vertical-align: middle" />
<div class="group-name">{{ item.materialGroupName }}</div> <div class="group-name">{{ item.materialGroupName }}</div>
<el-popover placement="right" trigger="hover"> <el-popover placement="right" trigger="hover">
<div> <div>
<ul> <ul>
<!-- <li @click="handleStick(item)">{{ item.orderTime ? '取消置顶' : '置顶' }}</li> --> <!-- <li @click="handleStick(item)">{{ item.orderTime ? '取消置顶' : '置顶' }}</li> -->
<li> <li>
<GLButton :size="size" type="text" fn="置顶" @click="handleStick(item)">{{ item.orderTime ? '取消置顶' : '置顶' }}</GLButton> <GLButton :size="size" type="text" fn="置顶" @click="handleStick(item)">{{ item.orderTime ? '取消置顶' : '置顶' }}</GLButton>
</li> </li>
<!-- <li @click="handleAddGroup(2,item)">修改</li> --> <!-- <li @click="handleAddGroup(2,item)">修改</li> -->
<li> <li>
<GLButton :size="size" type="text" fn="修改" @click="handleAddGroup(2,item)">修改</GLButton> <GLButton :size="size" type="text" fn="修改" @click="handleAddGroup(2, item)">修改</GLButton>
</li> </li>
<!-- <li @click="handleDeleteGroup(item.id)" v-if="item.isDefault == -1">删除</li> --> <!-- <li @click="handleDeleteGroup(item.id)" v-if="item.isDefault == -1">删除</li> -->
<li> <li>
<GLButton :size="size" type="text" fn="删除" @click="handleAddGroup(2,item)">删除</GLButton> <GLButton :size="size" type="text" fn="删除" @click="handleAddGroup(2, item)">删除</GLButton>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -44,10 +44,10 @@ export default { ...@@ -44,10 +44,10 @@ export default {
// 素材组数量 // 素材组数量
groupCounter: [], groupCounter: [],
materialGroup: { materialGroup: {
id: "", id: '',
materialGroupName: "", materialGroupName: '',
orderValue: "", orderValue: '',
isDefault: "" isDefault: ''
} }
} }
}, },
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
// 获取全部素材组 // 获取全部素材组
getMaterialList() { getMaterialList() {
this.$apis.material.getMaterialList({}).then(res => { this.$apis.material.getMaterialList({}).then(res => {
console.log(res); console.log(res)
this.groupCounter = res this.groupCounter = res
}) })
}, },
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
}, },
// 素材组置顶 // 素材组置顶
handleStick(row) { handleStick(row) {
console.log(row, 'orderFlagorderFlag'); console.log(row, 'orderFlagorderFlag')
var params = {} var params = {}
params.id = row.id params.id = row.id
// 置顶 // 置顶
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
var stickDate = dayjs(date).format('YYYY-MM-DD HH:mm:ss') var stickDate = dayjs(date).format('YYYY-MM-DD HH:mm:ss')
params.orderTime = stickDate params.orderTime = stickDate
params.orderFlag = true params.orderFlag = true
console.log(params); console.log(params)
this.secondConfirm('提示', '确定置顶该素材组吗?', 'material', 'editMaterialGroup', params) this.secondConfirm('提示', '确定置顶该素材组吗?', 'material', 'editMaterialGroup', params)
return return
} }
...@@ -146,18 +146,18 @@ export default { ...@@ -146,18 +146,18 @@ export default {
} }
} }
}) })
}, }
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.el-popover { .el-popover {
min-width: 80px; min-width: 80px;
&:hover { &:hover {
cursor: pointer cursor: pointer;
}
} }
}
.material-group { .material-group {
.all-group { .all-group {
font-size: 16px; font-size: 16px;
...@@ -174,12 +174,12 @@ export default { ...@@ -174,12 +174,12 @@ export default {
text-align: left; text-align: left;
padding: 18px 16px 16px 18px; padding: 18px 16px 16px 18px;
i { i {
font-size: 16px; font-size: 16px;
padding-top: 6px; padding-top: 6px;
position: absolute; position: absolute;
right: 16px; right: 16px;
transform:rotate(90deg); transform: rotate(90deg);
} }
} }
} }
} }
...@@ -193,12 +193,12 @@ ul { ...@@ -193,12 +193,12 @@ ul {
padding: 5px; padding: 5px;
position: relative; position: relative;
&:hover { &:hover {
color: #5850FF; color: #5850ff;
} }
} }
} }
.add_btn { .add_btn {
color: #5850FF; color: #5850ff;
} }
.group-name { .group-name {
display: inline-flex; display: inline-flex;
......
...@@ -6,13 +6,12 @@ ...@@ -6,13 +6,12 @@
<el-button type="primary" :size="size" @click="handleSearch(scope)">查询</el-button> <el-button type="primary" :size="size" @click="handleSearch(scope)">查询</el-button>
</span> </span>
</glsx-combi-form> </glsx-combi-form>
<GLTable ref="readPerDetailRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf"> <GLTable ref="readPerDetailRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf"></GLTable>
</GLTable>
</div> </div>
</template> </template>
<script> <script>
import url from "@/assets/empty.png" import url from '@/assets/empty.png'
export default { export default {
name: 'readPerDetail', name: 'readPerDetail',
props: ['materialId'], props: ['materialId'],
...@@ -23,7 +22,7 @@ export default { ...@@ -23,7 +22,7 @@ export default {
customerName: '', customerName: '',
customerPhone: '', customerPhone: '',
staffName: '', staffName: '',
materialId: this.materialId, materialId: this.materialId
}, },
getListApi: this.$apis.material.readDetailPage, getListApi: this.$apis.material.readDetailPage,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
...@@ -34,7 +33,8 @@ export default { ...@@ -34,7 +33,8 @@ export default {
maxlength: 10, maxlength: 10,
type: 'input', type: 'input',
placeholder: '请输入名称' placeholder: '请输入名称'
},{ },
{
label: '客户手机号:', label: '客户手机号:',
name: 'customerPhone', name: 'customerPhone',
placeholder: '请输入客户手机号', placeholder: '请输入客户手机号',
...@@ -98,11 +98,9 @@ export default { ...@@ -98,11 +98,9 @@ export default {
materialId: this.materialId materialId: this.materialId
} }
this.handleSearch() this.handleSearch()
}, }
} }
} }
</script> </script>
<style lang="" scoped> <style lang="" scoped></style>
</style>
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
this.dialogVisible = false this.dialogVisible = false
}, },
init(item) { init(item) {
console.log(item, '23232'); console.log(item, '23232')
this.labelGroupName = '' this.labelGroupName = ''
this.dialogVisible = true this.dialogVisible = true
this.querylabeltree(item) this.querylabeltree(item)
...@@ -182,7 +182,7 @@ export default { ...@@ -182,7 +182,7 @@ export default {
this.heightBox = clientHeight - 0.15 * clientHeight - 350 this.heightBox = clientHeight - 0.15 * clientHeight - 350
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.dialog-jump { .dialog-jump {
...@@ -271,7 +271,7 @@ export default { ...@@ -271,7 +271,7 @@ export default {
margin: 8px 0; margin: 8px 0;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
/deep/.el-radio__inner{ /deep/.el-radio__inner {
box-shadow: none !important; box-shadow: none !important;
} }
/deep/.el-radio__label { /deep/.el-radio__label {
......
...@@ -27,7 +27,7 @@ export default { ...@@ -27,7 +27,7 @@ export default {
name: 'employeeName', name: 'employeeName',
type: 'input', type: 'input',
placeholder: '请输入姓名', placeholder: '请输入姓名',
prefixIcon: 'el-icon-search' prefixIcon: 'el-icon-search'
} }
], ],
getListApi: this.$apis.material.sendDetailPage, getListApi: this.$apis.material.sendDetailPage,
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
staffName: '', staffName: '',
materialId: this.$route.query.id, materialId: this.$route.query.id
} }
this.handleSearch() this.handleSearch()
} }
...@@ -79,5 +79,4 @@ export default { ...@@ -79,5 +79,4 @@ export default {
} }
</script> </script>
<style lang="" scoped> <style lang="" scoped></style>
</style>
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
}, },
methods: { methods: {
getEdit() { getEdit() {
const _this = this; const _this = this
this.editor = new E('#div-demo') this.editor = new E('#div-demo')
this.editor.config.uploadImgShowBase64 = true this.editor.config.uploadImgShowBase64 = true
this.editor.config.showMenuTooltips = true this.editor.config.showMenuTooltips = true
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
this.content = html // 绑定当前逐渐地值 this.content = html // 绑定当前逐渐地值
this.$emit('change', this.content) // 将内容同步到父组件中 this.$emit('change', this.content) // 将内容同步到父组件中
} }
this.editor.config.customUploadImg = function (resultFiles, insertImgFn) { this.editor.config.customUploadImg = function(resultFiles, insertImgFn) {
console.log(resultFiles) console.log(resultFiles)
var file = resultFiles[0] var file = resultFiles[0]
var reader = new FileReader() var reader = new FileReader()
...@@ -59,7 +59,6 @@ export default { ...@@ -59,7 +59,6 @@ export default {
// insertImgFn 是获取图片 url 后,插入到编辑器的方法 // insertImgFn 是获取图片 url 后,插入到编辑器的方法
// 上传图片,返回结果,将图片插入到编辑器中 // 上传图片,返回结果,将图片插入到编辑器中
} }
} }
this.editor.config.onchangeTimeout = 5000 this.editor.config.onchangeTimeout = 5000
...@@ -90,7 +89,7 @@ export default { ...@@ -90,7 +89,7 @@ export default {
.w-e-text-container { .w-e-text-container {
z-index: 1 !important; z-index: 1 !important;
} }
.w-e-toolbar{ .w-e-toolbar {
z-index: 2 !important; z-index: 2 !important;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<!-- 素材内容 --> <!-- 素材内容 -->
<div slot="materialContentRpcResponse" slot-scope="scope" style="text-align: center"> <div slot="materialContentRpcResponse" slot-scope="scope" style="text-align: center">
<!-- 素材为PDF --> <!-- 素材为PDF -->
<span v-if="scope.scope.materialType == 1" class="material-content"> <span v-if="scope.scope.materialType == 1" class="material-content">
<el-tooltip effect="dark" placement="top" :content="scope.scope.materialContentRpcResponse.materialName" :disabled="scope.scope.materialContentRpcResponse.materialName.length < 16"> <el-tooltip effect="dark" placement="top" :content="scope.scope.materialContentRpcResponse.materialName" :disabled="scope.scope.materialContentRpcResponse.materialName.length < 16">
<span class="hide-content">{{ scope.scope.materialContentRpcResponse.materialName }}</span> <span class="hide-content">{{ scope.scope.materialContentRpcResponse.materialName }}</span>
</el-tooltip> </el-tooltip>
...@@ -51,9 +51,9 @@ ...@@ -51,9 +51,9 @@
</el-tooltip> </el-tooltip>
<el-popover placement="top" trigger="click"> <el-popover placement="top" trigger="click">
<div> <div>
<img class="img-plus" src="@/assets/material/car.png" alt=""> <img class="img-plus" src="@/assets/material/car.png" alt="" />
</div> </div>
<img slot="reference" src="@/assets/material/car.png" alt=""> <img slot="reference" src="@/assets/material/car.png" alt="" />
</el-popover> </el-popover>
</span> </span>
</div> </div>
...@@ -81,8 +81,8 @@ ...@@ -81,8 +81,8 @@
<GLButton :size="size" type="text" fn="禁用" @click="handleForbid(scope.scope)">{{ scope.scope.status == 0 ? '禁用' : '启用' }}</GLButton> <GLButton :size="size" type="text" fn="禁用" @click="handleForbid(scope.scope)">{{ scope.scope.status == 0 ? '禁用' : '启用' }}</GLButton>
</li> </li>
<li> <li>
<!-- <el-button :size="size" type="text" @click="handleDelete(scope.scope)">删除</el-button> --> <!-- <el-button :size="size" type="text" @click="handleDelete(scope.scope)">删除</el-button> -->
<GLButton :size="size" type="text" fn="删除营销素材" @click="handleDelete(scope.scope)">删除</GLButton> <GLButton :size="size" type="text" fn="删除营销素材" @click="handleDelete(scope.scope)">删除</GLButton>
</li> </li>
</ul> </ul>
<el-button type="text" slot="reference" class="btn-more">更多</el-button> <el-button type="text" slot="reference" class="btn-more">更多</el-button>
...@@ -321,12 +321,12 @@ export default { ...@@ -321,12 +321,12 @@ export default {
mounted() { mounted() {
let clientHeight = document.documentElement.clientHeight let clientHeight = document.documentElement.clientHeight
let offTop = document.querySelector('.tabelList').offsetTop let offTop = document.querySelector('.tabelList').offsetTop
console.log(clientHeight, offTop); console.log(clientHeight, offTop)
this.boxHeight = clientHeight - offTop + 'px' this.boxHeight = clientHeight - offTop + 'px'
this.findAllDictData('business_type') this.findAllDictData('business_type')
this.firstCome() this.firstCome()
this.getListApi() this.getListApi()
console.log(this.$refs.materialRef, '12312'); console.log(this.$refs.materialRef, '12312')
}, },
methods: { methods: {
// 判断是否第一次进入 // 判断是否第一次进入
...@@ -385,10 +385,10 @@ export default { ...@@ -385,10 +385,10 @@ export default {
params.id = scope.id params.id = scope.id
if (scope.status == 0) { if (scope.status == 0) {
params.status = -1 params.status = -1
this.secondConfirm('提示', '禁用素材,所有已经发送给客户的素材链接均会失效,是否继续禁用?', 'material', 'materialEdit', params ) this.secondConfirm('提示', '禁用素材,所有已经发送给客户的素材链接均会失效,是否继续禁用?', 'material', 'materialEdit', params)
} else { } else {
params.status = 0 params.status = 0
this.secondConfirm('提示', '启用素材,确定启用此素材?', 'material', 'materialEdit', params ) this.secondConfirm('提示', '启用素材,确定启用此素材?', 'material', 'materialEdit', params)
} }
}, },
// 素材删除 // 素材删除
...@@ -553,4 +553,5 @@ export default { ...@@ -553,4 +553,5 @@ export default {
width: 200px; width: 200px;
height: 200px; height: 200px;
} }
</style>>
\ No newline at end of file \ No newline at end of file
</style>
>
...@@ -483,4 +483,4 @@ p { ...@@ -483,4 +483,4 @@ p {
margin: 0 !important; margin: 0 !important;
padding-right: 10px; padding-right: 10px;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -58,9 +58,7 @@ export default { ...@@ -58,9 +58,7 @@ export default {
this.$router.push('/memberCenter/center') this.$router.push('/memberCenter/center')
}, },
mounted() { mounted() {},
},
methods: { methods: {
tabClick(index) { tabClick(index) {
......
...@@ -24,7 +24,7 @@ ...@@ -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-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>
<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="handleSearch">查询</el-button>
<el-button :size="size" type="primary" @click="handleExport">导出</el-button> <el-button :size="size" type="primary" @click="handleExport">导出</el-button>
<el-button :size="size" @click="handleReset">重置</el-button> <el-button :size="size" @click="handleReset">重置</el-button>
...@@ -59,7 +59,7 @@ import { getOrderListApi, orderExportApi } from '@/api/modules/order' ...@@ -59,7 +59,7 @@ import { getOrderListApi, orderExportApi } from '@/api/modules/order'
export default { export default {
data() { data() {
return { return {
merchantModel: 1, //集团:1,门店:2 merchantModel: 1, //集团:1,门店:2
accountLevel: 0, //1,2,3,4工厂,省代,市代,门店 accountLevel: 0, //1,2,3,4工厂,省代,市代,门店
url: url, url: url,
isReload: true, isReload: true,
...@@ -152,9 +152,9 @@ export default { ...@@ -152,9 +152,9 @@ export default {
} }
} }
}, },
created() { created() {
if (window.__POWERED_BY_QIANKUN__) { if (window.__POWERED_BY_QIANKUN__) {
console.log('kkk',this.$globalState) console.log('kkk', this.$globalState)
this.merchantModel = this.$globalState.session.merchantModel this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel this.accountLevel = this.$globalState.session.accountLevel
if (this.merchantModel == 1 && this.accountLevel == 1) { if (this.merchantModel == 1 && this.accountLevel == 1) {
......
...@@ -18,7 +18,10 @@ ...@@ -18,7 +18,10 @@
<div class="midMsgContent"> <div class="midMsgContent">
<div class="item"> <div class="item">
<div>付款状态:已付款</div> <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>付款方式:微信支付</div>
<div>付款时间:{{ detail.createDate }}</div> <div>付款时间:{{ detail.createDate }}</div>
</div> </div>
...@@ -39,41 +42,40 @@ ...@@ -39,41 +42,40 @@
</div> </div>
</div> </div>
<div id="tableWrap"> <div id="tableWrap">
<div class="tableWrapBox"> <div class="tableWrapBox">
<el-table :data="tableData" style="width: 100%" :header-cell-style="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }"> <el-table :data="tableData" style="width: 100%" :header-cell-style="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<el-table-column label="商品名称" align="center"> <el-table-column label="商品名称" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="(item, index) in scope.row.couponList" :key="index">{{ item.couponName }}</div> <div v-for="(item, index) in scope.row.couponList" :key="index">{{ item.couponName }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="类型" align="center"> <el-table-column label="类型" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.orderType == 1 ? '套餐' : '权益卡' }}</span> <span>{{ scope.row.orderType == 1 ? '套餐' : '权益卡' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="有效期" align="center" v-if="detail.orderType == 2"> <el-table-column label="有效期" align="center" v-if="detail.orderType == 2">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.effectiveNum == '-1' ? '无限制' : scope.row.effectiveNum + '天' }}</span> <span>{{ scope.row.effectiveNum == '-1' ? '无限制' : scope.row.effectiveNum + '天' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="originalPrice" label="单价/元" align="center"></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="amount" label="数量" align="center"></el-table-column>
<el-table-column prop="totalPrice" 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"> <el-table-column prop="realPayPrice" label="实收金额" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="color:#EB4E4E">{{ scope.row.realPayPrice }}</span> <span style="color:#EB4E4E">{{ scope.row.realPayPrice }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="orderStatus" label="状态" align="center"> <el-table-column prop="orderStatus" label="状态" align="center">
<template slot-scope="scope"> <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> <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> <div>{{ scope.row.refundReason }}</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
...@@ -85,8 +87,8 @@ export default { ...@@ -85,8 +87,8 @@ export default {
data() { data() {
return { return {
tableData: [{}], tableData: [{}],
detail: {},//this.$route.query.detail, detail: {}, //this.$route.query.detail,
mylist:[] mylist: []
} }
}, },
created() { created() {
...@@ -94,7 +96,6 @@ export default { ...@@ -94,7 +96,6 @@ export default {
// this.setTableData() // this.setTableData()
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
let clientHeight = document.documentElement.clientHeight let clientHeight = document.documentElement.clientHeight
let offsettop = document.getElementById('tableWrap').offsetTop let offsettop = document.getElementById('tableWrap').offsetTop
...@@ -102,30 +103,29 @@ export default { ...@@ -102,30 +103,29 @@ export default {
}) })
}, },
methods: { methods: {
getOrderPageDetail(){ getOrderPageDetail() {
getOrderPageDetail({id:this.$route.query.id}).then(res=>{ getOrderPageDetail({ id: this.$route.query.id }).then(res => {
// this.mylist=res.list // this.mylist=res.list
if(res.code=='0'){ if (res.code == '0') {
this.detail=res.data this.detail = res.data
this.$set(this.tableData[0], 'couponList', this.detail.couponList) this.$set(this.tableData[0], 'couponList', this.detail.couponList)
this.$set(this.tableData[0], 'orderType', this.detail.orderType) this.$set(this.tableData[0], 'orderType', this.detail.orderType)
this.$set(this.tableData[0], 'effectiveNum', this.detail.effectiveNum) this.$set(this.tableData[0], 'effectiveNum', this.detail.effectiveNum)
this.$set(this.tableData[0], 'originalPrice', this.detail.originalPrice) this.$set(this.tableData[0], 'originalPrice', this.detail.originalPrice)
this.$set(this.tableData[0], 'amount', 1) this.$set(this.tableData[0], 'amount', 1)
this.$set(this.tableData[0], 'totalPrice', this.detail.originalPrice) this.$set(this.tableData[0], 'totalPrice', this.detail.originalPrice)
this.$set(this.tableData[0], 'realPayPrice', this.detail.realPayPrice) this.$set(this.tableData[0], 'realPayPrice', this.detail.realPayPrice)
this.$set(this.tableData[0], 'orderStatus', this.detail.orderStatus) this.$set(this.tableData[0], 'orderStatus', this.detail.orderStatus)
this.$set(this.tableData[0],'refundReason',this.detail.refundReason) this.$set(this.tableData[0], 'refundReason', this.detail.refundReason)
}else{ } else {
this.$message.error(`${res.message}`) this.$message.error(`${res.message}`)
} }
}) })
}, },
goBack() { goBack() {
console.log(this.detail, 'gggg') console.log(this.detail, 'gggg')
// this.$router.go(-1) // this.$router.go(-1)
this.$router.push("/memberCenter/order") this.$router.push('/memberCenter/order')
} }
} }
} }
...@@ -161,7 +161,6 @@ export default { ...@@ -161,7 +161,6 @@ export default {
} }
} }
.midMsgWrap { .midMsgWrap {
border-bottom: 1px solid#DCDFE6; border-bottom: 1px solid#DCDFE6;
margin-bottom: 30px; margin-bottom: 30px;
.midMsgTitle { .midMsgTitle {
...@@ -196,10 +195,10 @@ export default { ...@@ -196,10 +195,10 @@ export default {
} }
} }
} }
.tableWrapBox{ .tableWrapBox {
margin-left: 30px; margin-left: 30px;
margin-right: 30px; margin-right: 30px;
border: 1px solid rgba(0, 0, 0, 0.06); border: 1px solid rgba(0, 0, 0, 0.06);
} }
} }
</style> </style>
...@@ -30,7 +30,7 @@ ...@@ -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-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>
<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="openDialog">核销</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" type="primary" @click="handleExport">导出</el-button> <el-button :size="size" type="primary" @click="handleExport">导出</el-button>
...@@ -60,26 +60,26 @@ ...@@ -60,26 +60,26 @@
<script> <script>
import glsxDialog from '@/components/glsx-dialog' import glsxDialog from '@/components/glsx-dialog'
import { getRecordListApi,getVerificationCode,verificationExportApi } from '@/api/modules/record' import { getRecordListApi, getVerificationCode, verificationExportApi } from '@/api/modules/record'
import url from "@/assets/empty.png" import url from '@/assets/empty.png'
import { dateFormat } from '@/utils/index.js' import { dateFormat } from '@/utils/index.js'
import { exportFn } from '@/common/constant' import { exportFn } from '@/common/constant'
export default { export default {
name: 'record', name: 'record',
components: { components: {
glsxDialog glsxDialog
}, },
data() { data() {
return { return {
ruleForm: { ruleForm: {
verficationCode: '' verficationCode: ''
}, },
isDialogVisible: false, isDialogVisible: false,
rules: { rules: {
verficationCode: [{ required: true, message: '请输入核销码', trigger: 'blur' }] verficationCode: [{ required: true, message: '请输入核销码', trigger: 'blur' }]
}, },
url:url, url: url,
isReload:true, isReload: true,
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime() return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
...@@ -125,8 +125,7 @@ export default { ...@@ -125,8 +125,7 @@ export default {
}, },
{ {
label: '核销用户', label: '核销用户',
prop: 'userName', prop: 'userName'
}, },
{ {
label: '核销员', label: '核销员',
...@@ -134,25 +133,23 @@ export default { ...@@ -134,25 +133,23 @@ export default {
}, },
{ {
label: '关联订单号', label: '关联订单号',
prop: 'orderCode', prop: 'orderCode'
}, },
{ {
label: '核销日期', label: '核销日期',
prop: 'verificationTime', prop: 'verificationTime',
addHtml: 'verificationTime' addHtml: 'verificationTime'
} }
] ]
}, },
merchantId: 0 merchantId: 0
} }
}, },
created () { created() {
if (window.__POWERED_BY_QIANKUN__) { if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中 //运行在qiankun容器中
this.merchantId = this.$globalState.session.merchantId this.merchantId = this.$globalState.session.merchantId
this.searchForm.merchantId=this.merchantId this.searchForm.merchantId = this.merchantId
} }
}, },
methods: { methods: {
...@@ -162,13 +159,13 @@ export default { ...@@ -162,13 +159,13 @@ export default {
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) { if (params.daterange) {
params.verificationTimeStart = this.searchForm.daterange[0] params.verificationTimeStart = this.searchForm.daterange[0]
params.verificationTimeEnd = this.searchForm.daterange[1] params.verificationTimeEnd = this.searchForm.daterange[1]
} else { } else {
if (params.beginTime) delete params.beginTime && delete params.endTime if (params.beginTime) delete params.beginTime && delete params.endTime
} }
delete params.daterange delete params.daterange
return params return params
}, },
...@@ -196,7 +193,7 @@ export default { ...@@ -196,7 +193,7 @@ export default {
} }
}) })
}, },
openDialog() { openDialog() {
this.isDialogVisible = true this.isDialogVisible = true
}, },
handleClose() { handleClose() {
...@@ -252,10 +249,10 @@ export default { ...@@ -252,10 +249,10 @@ export default {
handleReset() { handleReset() {
// this.searchForm = { merchantId: 44184606 } // this.searchForm = { merchantId: 44184606 }
// this.handleSearch() // this.handleSearch()
this.isReload=false this.isReload = false
this.searchForm={ merchantId: this.merchantId ,discountTypes: [7]} this.searchForm = { merchantId: this.merchantId, discountTypes: [7] }
this.$nextTick(()=>{ this.$nextTick(() => {
this.isReload=true this.isReload = true
}) })
} }
} }
...@@ -286,7 +283,7 @@ export default { ...@@ -286,7 +283,7 @@ export default {
padding: 30px 20px; padding: 30px 20px;
.content-body { .content-body {
.el-input--small .el-input__inner { .el-input--small .el-input__inner {
width:300px width: 300px;
} }
} }
} }
......
...@@ -4,9 +4,18 @@ ...@@ -4,9 +4,18 @@
<div class="live-room container"> <div class="live-room container">
<div class="btnWrap"> <div class="btnWrap">
<!-- <el-button :size="size" type="primary" @click="handleCreate" icon="el-icon-plus">创建套餐</el-button> --> <!-- <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> <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-button :size="size" @click="showViewer = true">查看示例效果</el-button>
<el-image-viewer v-if="showViewer" :on-close="()=>{showViewer=false}" :url-list="srcList" style="padding:4%;"/> <el-image-viewer
v-if="showViewer"
:on-close="
() => {
showViewer = false
}
"
:url-list="srcList"
style="padding:4%;"
/>
</div> </div>
<GLTable ref="memberSetMealRef" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="memberSetMealRef" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="list" slot-scope="scope"> <span slot="list" slot-scope="scope">
...@@ -71,11 +80,11 @@ export default { ...@@ -71,11 +80,11 @@ export default {
components: { components: {
tipPanel, tipPanel,
glsxDialog, glsxDialog,
'el-image-viewer':()=>import('element-ui/packages/image/src/image-viewer') 'el-image-viewer': () => import('element-ui/packages/image/src/image-viewer')
}, },
data() { data() {
return { return {
showViewer:false, showViewer: false,
url: url, url: url,
surl: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/memberCase.png', surl: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/memberCase.png',
srcList: ['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 { ...@@ -115,7 +124,7 @@ export default {
{ {
label: '说明', label: '说明',
prop: 'notes', prop: 'notes',
width:160, width: 160,
line: 4 line: 4
}, },
{ {
...@@ -304,12 +313,12 @@ export default { ...@@ -304,12 +313,12 @@ export default {
} }
/* 大图预览的关闭图标 改为大一点的白色 */ /* 大图预览的关闭图标 改为大一点的白色 */
/deep/.el-image-viewer__btn.el-image-viewer__close { /deep/.el-image-viewer__btn.el-image-viewer__close {
color: #5850ff; color: #5850ff;
opacity: unset; opacity: unset;
top: 50px; top: 50px;
right: 50px; right: 50px;
width: 40px; width: 40px;
height: 40px; height: 40px;
font-size: 40px; font-size: 40px;
} }
</style> </style>
...@@ -6,15 +6,15 @@ ...@@ -6,15 +6,15 @@
<div class="comment-container"> <div class="comment-container">
<div class="flex"> <div class="flex">
<img class="img-100" :src="commentInfo.goodsImage" /> <img class="img-100" :src="commentInfo.goodsImage" />
<span class="good-name">{{commentInfo.goodsName}}</span> <span class="good-name">{{ commentInfo.goodsName }}</span>
</div> </div>
<div class="flex m-t-24"> <div class="flex m-t-24">
<span class="comment-label">评分星级:</span> <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>
<div class="flex m-t-24"> <div class="flex m-t-24">
<span class="comment-label">评价内容:</span> <span class="comment-label">评价内容:</span>
<span class="comment-txt">{{commentInfo.commentContent || '-'}}</span> <span class="comment-txt">{{ commentInfo.commentContent || '-' }}</span>
</div> </div>
<div v-show="commentInfo.imgUrls" class="m-t-24"> <div v-show="commentInfo.imgUrls" class="m-t-24">
<span class="comment-label">图片:</span> <span class="comment-label">图片:</span>
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
routeInfo: { routeInfo: {
id: '' id: ''
}, },
starList : [], starList: [],
commentInfo: {} commentInfo: {}
} }
}, },
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from "@/assets/empty.png" import url from '@/assets/empty.png'
export default { export default {
name: 'orderComment', name: 'orderComment',
data() { data() {
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
// 发布/撤回 // 发布/撤回
handleRevoke(row) { handleRevoke(row) {
var txt = row.commentStatus == '0' ? '发布' : '撤回' 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) { handleDelete(row) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!