Commit acf7b654 by 张杰

新增售后模块

2 parents e9ea3c32 875a82f2
Showing 66 changed files with 2984 additions and 743 deletions
......@@ -9,10 +9,18 @@
"version": "0.1.0",
"dependencies": {
"core-js": "^3.4.4",
<<<<<<< HEAD
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.1.0",
=======
"dayjs": "^1.10.7",
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.9",
"glsx-components": "^1.1.8",
>>>>>>> 875a82f2f3f4114bf0e4e435bbb7f80afcfdac3e
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
......@@ -2481,6 +2489,7 @@
}
},
"node_modules/axios/node_modules/follow-redirects": {
<<<<<<< HEAD
"version": "1.14.4",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.4.tgz",
"integrity": "sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==",
......@@ -2490,6 +2499,15 @@
"url": "https://github.com/sponsors/RubenVerborgh"
}
],
=======
"version": "1.14.5",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.5.tgz",
"integrity": "sha512-wtphSXy7d4/OR+MvIFbCVBDzZ5520qV8XfPklSN5QtxuMUJZ+b0Wnst1e1lCDocfzuCkHqj8k0FpZqO+UIaKNA==",
"funding": [{
"type": "individual",
"url": "https://github.com/sponsors/RubenVerborgh"
}],
>>>>>>> 875a82f2f3f4114bf0e4e435bbb7f80afcfdac3e
"engines": {
"node": ">=4.0"
},
......@@ -4451,6 +4469,14 @@
"node": ">=0.10"
}
},
<<<<<<< HEAD
=======
"node_modules/dayjs": {
"version": "1.10.7",
"resolved": "https://registry.nlark.com/dayjs/download/dayjs-1.10.7.tgz",
"integrity": "sha1-LPX5Gt0oEWdIRAhmoKHSbzps5Gg="
},
>>>>>>> 875a82f2f3f4114bf0e4e435bbb7f80afcfdac3e
"node_modules/de-indent": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
......@@ -7180,9 +7206,15 @@
}
},
"node_modules/glsx-common": {
<<<<<<< HEAD
"version": "1.4.6",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.6.tgz",
"integrity": "sha512-K1aH7CYbaS0CRQwwa9lzsU7aJXlly8dNAzyDwphsV/K2oeSLjY18HpZ47yyPdYZ+1kDls5GI448FdqH8sAbxFA==",
=======
"version": "1.4.9",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz",
"integrity": "sha512-RQWGOGEXUPNmHkZn7n+eukkXp6L/mOfsgMo4gFtrt80ZDxGaznHMg7Isi4+IrEdvVdzp8Cju0eiCTddnZfdsJg==",
>>>>>>> 875a82f2f3f4114bf0e4e435bbb7f80afcfdac3e
"dependencies": {
"axios": "^0.21.3",
"md5": "^2.3.0",
......@@ -7205,9 +7237,15 @@
}
},
"node_modules/glsx-components": {
<<<<<<< HEAD
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.1.0.tgz",
"integrity": "sha512-NiTfxOj07MsxymLcZYo3JuBrkSoTTWQ4pyNYfyCM/QREaaA51rYutxDmmdCZS3MGMIixyq+kugMoOGQ1Jj8Z8Q==",
=======
"version": "1.1.8",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.1.8.tgz",
"integrity": "sha512-jjo1EY6tknpi5depW9u4xD70TAUs+6Vyzsi3PJf0v3aONA6nILKxK7Yu5jRiz//CG/H7S+Fd6AnYVnJ+QoQFjQ==",
>>>>>>> 875a82f2f3f4114bf0e4e435bbb7f80afcfdac3e
"dependencies": {
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
......@@ -7216,9 +7254,15 @@
}
},
"node_modules/glsx-components/node_modules/core-js": {
<<<<<<< HEAD
"version": "3.19.0",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.19.0.tgz",
"integrity": "sha512-L1TpFRWXZ76vH1yLM+z6KssLZrP8Z6GxxW4auoCj+XiViOzNPJCAuTIkn03BGdFe6Z5clX5t64wRIRypsZQrUg==",
=======
"version": "3.19.1",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.19.1.tgz",
"integrity": "sha512-Tnc7E9iKd/b/ff7GFbhwPVzJzPztGrChB8X8GLqoYGdEOG8IpLnK1xPyo3ZoO3HsK6TodJS58VGPOxA+hLHQMg==",
>>>>>>> 875a82f2f3f4114bf0e4e435bbb7f80afcfdac3e
"hasInstallScript": true,
"funding": {
"type": "opencollective",
......@@ -17158,9 +17202,9 @@
},
"dependencies": {
"follow-redirects": {
"version": "1.14.4",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.4.tgz",
"integrity": "sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g=="
"version": "1.14.5",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.5.tgz",
"integrity": "sha512-wtphSXy7d4/OR+MvIFbCVBDzZ5520qV8XfPklSN5QtxuMUJZ+b0Wnst1e1lCDocfzuCkHqj8k0FpZqO+UIaKNA=="
}
}
},
......@@ -18797,6 +18841,11 @@
"assert-plus": "^1.0.0"
}
},
"dayjs": {
"version": "1.10.7",
"resolved": "https://registry.nlark.com/dayjs/download/dayjs-1.10.7.tgz",
"integrity": "sha1-LPX5Gt0oEWdIRAhmoKHSbzps5Gg="
},
"de-indent": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
......@@ -21000,9 +21049,9 @@
}
},
"glsx-common": {
"version": "1.4.6",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.6.tgz",
"integrity": "sha512-K1aH7CYbaS0CRQwwa9lzsU7aJXlly8dNAzyDwphsV/K2oeSLjY18HpZ47yyPdYZ+1kDls5GI448FdqH8sAbxFA==",
"version": "1.4.9",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz",
"integrity": "sha512-RQWGOGEXUPNmHkZn7n+eukkXp6L/mOfsgMo4gFtrt80ZDxGaznHMg7Isi4+IrEdvVdzp8Cju0eiCTddnZfdsJg==",
"requires": {
"axios": "^0.21.3",
"md5": "^2.3.0",
......@@ -21021,9 +21070,9 @@
}
},
"glsx-components": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.1.0.tgz",
"integrity": "sha512-NiTfxOj07MsxymLcZYo3JuBrkSoTTWQ4pyNYfyCM/QREaaA51rYutxDmmdCZS3MGMIixyq+kugMoOGQ1Jj8Z8Q==",
"version": "1.2.2",
"resolved": "https://registry.npmmirror.com/glsx-components/download/glsx-components-1.2.2.tgz",
"integrity": "sha512-y2O8lTzNNmDK00Uea5VUlDmBJvE+g2eUREExAp3H3xPPRSxeHa2YTAt7f963HzxDPQqLVYISlqQRgpwCBwV0FQ==",
"requires": {
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
......@@ -21032,14 +21081,14 @@
},
"dependencies": {
"core-js": {
"version": "3.19.0",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.19.0.tgz",
"integrity": "sha512-L1TpFRWXZ76vH1yLM+z6KssLZrP8Z6GxxW4auoCj+XiViOzNPJCAuTIkn03BGdFe6Z5clX5t64wRIRypsZQrUg=="
"version": "3.19.1",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.19.1.tgz",
"integrity": "sha512-Tnc7E9iKd/b/ff7GFbhwPVzJzPztGrChB8X8GLqoYGdEOG8IpLnK1xPyo3ZoO3HsK6TodJS58VGPOxA+hLHQMg=="
},
"element-ui": {
"version": "2.15.6",
"resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.15.6.tgz",
"integrity": "sha512-rcYXEKd/j2G0AgficAOk1Zd1AsnHRkhmrK4yLHmNOiimU2JfsywgfKUjMoFuT6pQx0luhovj8lFjpE4Fnt58Iw==",
"resolved": "https://registry.npmmirror.com/element-ui/download/element-ui-2.15.6.tgz",
"integrity": "sha1-yWCa3TWvWmhqS3aF3B11fHXgHfM=",
"requires": {
"async-validator": "~1.8.1",
"babel-helper-vue-jsx-merge-props": "^2.0.0",
......@@ -27511,4 +27560,4 @@
}
}
}
}
}
\ No newline at end of file
......@@ -9,10 +9,11 @@
},
"dependencies": {
"core-js": "^3.4.4",
"dayjs": "^1.10.7",
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.1.0",
"glsx-components": "^1.2.2",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
......@@ -40,4 +41,4 @@
"> 1%",
"last 2 versions"
]
}
}
\ No newline at end of file
......@@ -6,17 +6,18 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="referrer" content="never">
<meta name="referrer" content="no-referrer">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<!-- 使用CDN的CSS文件 -->
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %>
<link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="preload" as="style" />
<link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="stylesheet" />
<% } %>
<!-- 使用CDN的JS文件 预加载 -->
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
<link href="<%= htmlWebpackPlugin.options.cdn.js[i] %>" rel="preload" as="script" />
<% } %>
<title>微前端子应用:博客</title>
<link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="preload" as="style" />
<link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="stylesheet" />
<% } %>
<!-- 使用CDN的JS文件 预加载 -->
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
<link href="<%= htmlWebpackPlugin.options.cdn.js[i] %>" rel="preload" as="script" />
<% } %>
<title>微前端子应用:博客</title>
</head>
<body>
......@@ -27,8 +28,8 @@
<div id="app"></div>
<!-- built files will be auto injected -->
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
<script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
<% } %>
<script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
<% } %>
</body>
</html>
\ No newline at end of file
import { http, http_brand } from '@/main'
const defaultPath = 'scrm.api.equity.service.package.'
const orderPath = 'scrm.api.equity.service.order.'
const getUserInfoApi = params => {
params.method = 'scrm.api.equity.common.merchant.current.det'
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
const getCountNoDataApi = params => {
params.method = `${defaultPath}count.unDataEffective`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
const getListApi = params => {
params.method = `${defaultPath}order.list.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
// 获取门店
const getMerchantApi = params => {
params.method = 'scrm.api.equity.common.under.merchant.list.det'
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
const getExportApi = params => {
params.method = `${defaultPath}order.export.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
// 打印合同
const getPriteApi = params => {
params.method = `${defaultPath}order.prite`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
const getCarBrandListApi = params => {
// params.method = 'dj.api.car.series.list'
params.method = 'scrm.api.carlife.common.getCarBrandList'
return http_brand({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
sign: true
})
}
const getCarChildListApi = params => {
// params.method = 'dj.api.car.series.list'
params.method = 'scrm.api.carlife.common.getOnlyCarBrandList'
return http_brand({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
sign: true
})
}
const getCarSeriesListApi = params => {
params.method = 'scrm.api.carlife.common.getCarSeriesList'
return http_brand({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
sign: true
})
}
const getCarTypeListApi = params => {
params.method = 'scrm.api.carlife.common.getCarTypeList'
return http_brand({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
sign: true
})
}
const getHotlineApi = params => {
params.method = `${defaultPath}merchant.hotline.get`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const updateHotlineApi = params => {
params.method = `${defaultPath}merchant.hotline.update`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 获取产品名称(套餐名称)
const getProListApi = params => {
params.method = `${defaultPath}select.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
// 获取无忧卡套餐列表
const getPackageListApi = params => {
params.method = `${defaultPath}list.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
const getEquityApi = params => {
params.method = `${orderPath}detail`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const updateEquityApi = params => {
params.method = `${orderPath}insert.or.update`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 获取合同号
const createCodeApi = params => {
params.method = `${orderPath}code.create`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取套菜附件属性
const getOrderAttrApi = params => {
params.method = `${defaultPath}order.attachment.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
// 获取套菜附件属性
const getOrderValueApi = params => {
params.method = `${defaultPath}order.attachment.value.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
// 更新套菜附件属性
const updateOrderApi = params => {
params.method = `${orderPath}attachment.update`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const uploadImgApi = params => {
params.method = 'scrm.api.equity.common.upload.image'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
// 退保
const backOrderApi = params => {
params.method = `${orderPath}charge.back`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, updateHotlineApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getOrderValueApi, updateOrderApi, uploadImgApi, backOrderApi }
\ No newline at end of file
import { http } from '@/main'
const converterApi = params => {
params.method = `scrm.api.boutiquecoupon.rop.router`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'GET',
data: params,
sign: true
})
}
export { converterApi }
\ No newline at end of file
......@@ -12,4 +12,4 @@ const getMerberList = params => {
})
}
export { getMerberList }
export { getMerberList }
\ No newline at end of file
import { http } from '@/main'
const defaultPath = 'scrm.api.live.'
const getLiveRoomListApi = params => {
params.method = `${defaultPath}live.room.list`
return http({
url: 'rop-scrm-live/router',
method: 'GET',
data: params,
sign: true
})
}
const getLiveShareApi = params => {
params.method = `${defaultPath}get.shared.code`
return http({
url: 'rop-scrm-live/router',
method: 'GET',
data: params,
sign: true
})
}
const insertLiveRoomApi = params => {
params.method = `${defaultPath}insert.live.room`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const deleteLiveRoomApi = params => {
params.method = `${defaultPath}delete.live.room`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const getLiveRoomInfoApi = params => {
params.method = `${defaultPath}get.live.room.by.id`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true
})
}
const getControlInfoApi = params => {
params.method = `${defaultPath}get.control`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true
})
}
const getControlImportListApi = params => {
params.method = `${defaultPath}get.import.goods`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true
})
}
const getWaitImportListApi = params => {
params.method = `${defaultPath}get.wait.import.goods`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true
})
}
const importGoodsApi = params => {
params.method = `${defaultPath}import.goods`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const updateCommentApi = params => {
params.method = `${defaultPath}update.comment`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const updateReplayApi = params => {
params.method = `${defaultPath}update.replay`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const controlUpOrDownApi = params => {
params.method = `${defaultPath}toggle.status`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const controlDeleteApi = params => {
params.method = `${defaultPath}delete.room.goods`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export { getLiveRoomListApi, getLiveShareApi, insertLiveRoomApi, deleteLiveRoomApi, getLiveRoomInfoApi, getControlInfoApi, getControlImportListApi, getWaitImportListApi, importGoodsApi, updateCommentApi, updateReplayApi, controlUpOrDownApi, controlDeleteApi }
import { http } from '@/main'
const getRulesData = () => {
let method = 'dj.api.smartcarlife.merchantDivisionRule.getAllRule'
return method
}
const getRulesListData = () => {
let method = 'dj.api.smartcarlife.merchantDivisionRule.pageChangeRecord'
return method
}
// 客户评价
const guestComTotal = () => {
let method = 'dj.api.smartcarlife.orderCommentReport.total'
return method
}
// 是否开通精品升级
const isOpenUpgrade = () => {
let method = 'dj.api.serviceMerchant.isOpenSmartcarlife'
return method
}
// 订单统计
const orderTotal = () => {
let method = 'dj.api.smartcarlife.orderReport.total'
return method
}
// 券统计
const couponsTotal = () => {
let method = 'dj.api.smartcarlife.couponReport.total'
return method
}
// 按天统计券
const couponsTotalByDay = () => {
let method = 'dj.api.smartcarlife.couponReport.countByDate'
return method
}
// 按天统计金额
const moneyTotal = () => {
let method = 'dj.api.smartcarlife.orderReport.totalByDay'
return method
}
// 精品礼券订单查询
const findCoupons = () => {
let method = 'dj.api.life.customer.coupon.listFor4S'
return method
}
// 精品礼券升级订单查询
const findupGradeOrder = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.page'
return method
}
// 查看礼券
const checkCoupons = () => {
let method = 'dj.api.smartcarlife.merchant.coupon.page'
return method
}
// 我的分账
const mydivision = () => {
let method = 'dj.smartcarlife.api.shop.order.division.page'
return method
}
// 精品礼券导出
const exportCoupons = () => {
let method = 'dj.api.life.customer.coupon.exportExcelListFor4S'
return method
}
// 精品礼券升级订单导出
const exportUpgrade = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.export'
return method
}
// 我的分账导出
const exportMydivision = () => {
let method = 'dj.smartcarlife.api.shop.order.division.export'
return method
}
// 获取发券人/转化人列表
const getEmployName = () => {
let method = 'dj.api.life.customer.coupon.distinctColum'
return method
}
// 查看明细
const checkDetail = () => {
let method = 'dj.api.smartcarlife.goodsOrder.detail'
return method
}
// 集团--订单统计
const orderTotalOfJT = () => {
let method = 'dj.api.smartcarlife.orderReport.totalByMerchant'
return method
}
// 集团--精品升级订单统计数
const orderTotalNumOfJT = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.count'
return method
}
// 集团--我的分账统计数
const myAccountTotalNumOfJT = () => {
let method = 'dj.smartcarlife.api.shop.order.division.page.count'
return method
}
// 获取4s店列表
const get4SList = params => {
params.method = `scrm.api.carlife.merchant.listWithPageByCurMerchant`
return http({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
sign: true
})
}
// 服务介绍
const introConpute = params => {
params.method = `scrm.api.boutiquecoupon.config.getModelParams`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'GET',
data: params,
sign: true
})
}
// 获取商户列表
const getMerchantList = params => {
params.method = `entmicro.api.common.findMerchantTreeByMerchantNo.list`
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export {
getRulesData,
getRulesListData,
guestComTotal,
isOpenUpgrade,
orderTotal,
couponsTotal,
couponsTotalByDay,
moneyTotal,
findCoupons,
findupGradeOrder,
checkCoupons,
mydivision,
exportMydivision,
exportUpgrade,
exportCoupons,
getEmployName,
checkDetail,
orderTotalOfJT,
orderTotalNumOfJT,
myAccountTotalNumOfJT,
get4SList,
introConpute,
getMerchantList
}
\ No newline at end of file
......@@ -95,6 +95,48 @@
color: #37383A;
}
.h15_title {
font-size: 14px;
font-weight: 500;
color: #5850FF;
}
.h16_title {
font-size: 12px;
font-weight: 500;
color: #5850FF;
}
.h17_title {
font-size: 12px;
font-weight: 400;
color: #333333;
}
.h18_title {
font-size: 14px;
font-weight: 500;
color: #333333;
}
.h19_title {
font-size: 14px;
font-weight: 500;
color: #666666;
}
.h20_title {
font-size: 12px;
font-weight: 400;
color: #666666;
}
.h12_title {
font-size: 16px;
font-weight: 600;
color: #333333;
}
.flex_scb {
display: flex;
align-items: center;
......@@ -107,102 +149,14 @@
justify-content: center;
}
// .live-room .container {
// background: #FFFFFF;
// margin: 20px 40px;
// padding: 15px 20px;
// box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.10);
// }
// .el-scrollbar__bar.is-horizontal{
// height: 10px !important;
// left: 10px;
// }
// .base-container-right .el-main-scroll .el-scrollbar__thumb {
// background-color: rgba(144, 147, 153, 0.5) !important;
// }
// .live-room .el-table .cell {
// line-height: 16px;
// }
// .live-room .table-btns .el-button {
// padding: 0 0 0 5px;
// margin-left: 5px;
// border-left: 1px solid #DCDFE6;
// border-radius: 0;
// }
// .live-room .table-btns .el-button:first-child {
// padding: 0;
// border: 0;
// }
// .live-room .img-60 {
// width: 60px;
// height: 60px;
// }
// .live-room .edit-container {
// margin: 20px 40px 84px;
// }
// .live-room .footer {
// position: absolute;
// bottom: 0;
// width: 100%;
// height: 64px;
// text-align: center;
// line-height: 64px;
// background: #FFFFFF;
// z-index: 999;
// }
// .live-room .flex {
// display: flex;
// justify-content: space-between;
// }
// .live-room .edit-title {
// font-size: 16px;
// font-weight: bold;
// height: 48px;
// line-height: 48px;
// // color: #0947C6;
// border-bottom: 1px solid #E7EAEC;
// // padding-left: 20px;
// margin: 0 0;
// }
// .live-room .edit-sub-title::before {
// position: absolute;
// display: inline-block;
// content: '';
// height: 18px;
// width: 4px;
// top: 2px;
// left: 0;
// background-color: #0947C6;
// }
// .live-room .edit-sub-title {
// position: relative;
// font-size: 16px;
// font-weight: 700;
// color: #333333;
// margin: 0 0 30px 0;
// padding-left: 8px;
// }
// .live-room table {
// width: 98%;
// color: #666666;
// border: 1px solid #e5e6e7;
// border-width: 1px 0 0 1px;
// }
// .live-room table tr {
// height: 30px;
// // line-height: 30px;
// }
// .live-room table th,
// .live-room table td {
// font-size: 12px;
// font-weight: normal;
// padding: 0px 10px;
// border: 1px solid #e5e6e7;
// border-width: 0px 1px 1px 0px;
// border-spacing: 0;
// text-align: center;
// vertical-align: middle;
// }
// .live-room table td {
// min-width: 50px;
// }
\ No newline at end of file
.flex_sc {
display: flex;
align-items: center;
}
.flex_ccc {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
\ No newline at end of file
<template>
<div class="my-drop-menu">
<div class="left_widget label flex_cc">
<el-dropdown trigger="click">
<el-dropdown trigger="click" @command="onChangeValue">
<div class="h13_title">
{{ leftName }}
<i class="el-icon-caret-bottom el-icon-caret-top"></i>
</div>
<el-dropdown-menu slot="dropdown" class="drop_item">
<el-dropdown-item>黄金糕</el-dropdown-item>
<el-dropdown-item>狮子头</el-dropdown-item>
<el-dropdown-item>螺蛳粉</el-dropdown-item>
<el-dropdown-item v-for="item in options" :key="item.value" :command="item">{{item.label}}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
......@@ -29,31 +27,33 @@ export default {
props: {
leftName: {
type: String,
default: '下拉菜单'
}
default: '请选择'
},
options:Array
},
mounted() {},
methods: {}
methods: {
onChangeValue(e){
this.leftName = e.label
this.$emit('getValue',e.value)
},
}
}
</script>
<style lang="scss" scoped>
.my-drop-menu {
display: flex;
align-items: center;
padding-left: 15px;
.left_widget {
box-sizing: border-box;
padding: 0 17px;
height: 28px;
border-radius: 4px 0px 0px 4px;
border: 1px solid #e8e8ea;
border-right: none;
cursor: pointer;
}
.right_widget {
border-radius: 0px 4px 4px 0px;
// border: 1px solid #e8e8ea;
}
.el-icon-caret-bottom {
color: #999;
}
......@@ -61,6 +61,10 @@ export default {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: none;
width: 80px;
}
}
</style>
<template>
<div class="my-drop-menu">
<el-input size="mini" v-model="searchForm.inputValue" placeholder="请输入" @change="inputChange">
<el-select size="mini" slot="prepend" v-model="searchForm.selectValue" style="width: 110px" placeholder="请选择" @change="toChangeSelect">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-input>
</div>
</template>
<script>
export default {
name: '',
data() {
return {}
},
props: {
options: Array
},
mounted() {},
methods: {
toChangeSelect(e) {
this.$emit('getValue', e)
},
inputChange(e) {
console.log(e)
this.$emit('getInputValue', e)
}
}
}
</script>
<style lang="scss" scoped>
</style>
<template>
<div class="chart-container">
<div class="wrapper">
<div class="box_con_wrap">
<p class="h18_title">养车权益锁客返厂案例</p>
<div class="box_item">
<p class="textOne">202年12月4日,张显示驾驶日产轩逸经过葫芦岛时与前车发生碰撞,车头几乎全部报废。</p>
<div class="image_wrap">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/srcm_case.png" />
</div>
<p class="textOne">通过嘀加平台触发预警推送消息给门店,门店及时联系车主进行救援并送修,为门店带来4000元产值。</p>
</div>
</div>
<div class="box_con_wrap">
<p class="h18_title">全损无忧返厂案例</p>
<div class="box_item">
<p class="textOne">202年12月4日,张显示驾驶日产轩逸经过葫芦岛时与前车发生碰撞,车头几乎全部报废。</p>
<div class="image_wrap">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/srcm_case.png" />
</div>
<p class="textOne">通过嘀加平台触发预警推送消息给门店,门店及时联系车主进行救援并送修,为门店带来4000元产值。</p>
</div>
</div>
<div class="box_con_wrap">
<p class="h18_title">轮胎无忧返厂案例</p>
<div class="box_item">
<p class="textOne">202年12月4日,张显示驾驶日产轩逸经过葫芦岛时与前车发生碰撞,车头几乎全部报废。</p>
<div class="image_wrap">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/srcm_case.png" />
</div>
<p class="textOne">通过嘀加平台触发预警推送消息给门店,门店及时联系车主进行救援并送修,为门店带来4000元产值。</p>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: '',
data() {
return {}
},
methods: {}
}
</script>
<style lang="scss" scoped>
.chart-container {
height: 100%;
position: relative;
}
.wrapper {
display: flex;
align-items: center;
justify-content: space-around;
box-sizing: border-box;
padding-top: 20px;
.box_con_wrap {
width: 28.4%;
> p {
// margin: 0 auto;
text-align: center;
margin-bottom: 25px;
}
.box_item {
width: 100%;
box-sizing: border-box;
padding: 15px;
.textOne {
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 17px;
}
.image_wrap {
width: 100%;
// width: 285px;
height: 150px;
margin: 10px 0;
> img {
width: 100%;
// width: 285px;
height: 150px;
}
}
}
}
}
</style>
<template>
<div class="chart-container">
<div class="content_con">
<div class="box_wrap_con">
<div class="wrapper">
<div class="h3_title">案例1-广州某合资品牌丰田4S店</div>
<div class="h12_title margin_3">合作之前</div>
<div class="con2_widget margin_4">
<div class="text_label h5_title">太阳膜赠送成本:300元/车</div>
</div>
</div>
<div class="drive_line"></div>
<div class="wrapper_2">
<div class="h12_title">合作之后</div>
<div class="text_line_widget margin_4">
<div class="h5_title">
2020年6月份累计收益:
<span class="price">53400</span>
元
</div>
<div class="h5_title">
2020年度累计收益约:
<span class="price">65万</span>
元
</div>
</div>
<div class="h5_title margin_5">太阳膜新增升级收益23400元,节省赠送膜成本100*300=30000元</div>
<div class="table_widget margin_4">
<table>
<tr>
<th v-for="(item, index) in tableHeader1" :key="index">{{ item }}</th>
</tr>
<tr>
<td v-for="(item, index) in tableTD1" :key="index">{{ item }}</td>
</tr>
</table>
</div>
</div>
</div>
<div class="box_wrap_con">
<div class="wrapper">
<div class="h3_title">案例2-四川某经销商集团</div>
<div class="h3_title margin_3">合作之前</div>
<div class="con2_widget margin_4">
<div class="text_label h5_title">旗下门店数:28家</div>
<div class="text_label h5_title">太阳膜赠送成本:300元/车</div>
<div class="text_label h5_title">集团年度新车销量:26880</div>
<div class="text_label h5_title">单店年度新车销量:960</div>
</div>
</div>
<div class="drive_line"></div>
<div class="wrapper_2">
<div class="h3_title">合作之后</div>
<div class="text_line_widget margin_4">
<div class="h5_title">
2020年集团累计收益约:
<span class="price">2286.15万元</span>
元
</div>
<div class="h5_title">
平均单店收益约:
<span class="price">81万</span>
元
</div>
</div>
<div style="height: 10px;" class="margin_5"></div>
<div class="table_widget margin_4">
<table>
<tr>
<th v-for="(item, index) in tableHeader2" :key="index">{{ item }}</th>
</tr>
<tr>
<td v-for="(item, index) in tableTD2" :key="index">{{ item }}</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: '',
data() {
return {
tableHeader1: ['6月新增销量', '转化率', '转化量', '平均客单价', '增值产值', '分店分润'],
tableHeader2: ['门店年度新车销量', '年度转化率', '平均客单价', '门店年度产值', '集团年度产值'],
tableTD1: [100, '52%', 52, 2283, 118716, 23400],
tableTD2: [960, '63%', 1350, 816480, 22861440]
}
},
methods: {}
}
</script>
<style lang="scss" scoped>
.chart-container {
height: 100%;
position: relative;
box-sizing: border-box;
padding: 20px;
}
.content_con {
display: flex;
justify-content: space-between;
.box_wrap_con {
width: 48%;
}
.con2_widget {
display: flex;
flex-wrap: wrap;
padding-bottom: 15px;
height: 54px;
.text_label {
width: 50%;
margin-bottom: 5px;
}
}
.drive_line {
margin: 0 auto;
width: 100%;
height: 1px;
background: #e8e8ea;
margin-bottom: 19px;
}
.wrapper_2 {
.text_line_widget {
display: flex;
align-items: center;
justify-content: space-between;
.price {
font-size: 14px;
font-weight: 600;
}
}
.table_widget {
width: 100%;
height: 90px;
background: #f6f6f7;
// overflow: hidden;
td,
th {
border: 1px solid #e0e0e4;
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
th,
td {
height: 41px;
text-align: center;
line-height: 41px;
}
table {
width: 100%;
border-collapse: collapse;
}
}
}
.margin_3 {
margin-top: 20px;
}
.margin_4 {
margin-top: 10px;
}
.margin_5 {
margin-top: 25px;
}
}
</style>
<template>
<div class="chart-container">
<div class="content_con">
<div class="wrapper">
<div class="title">案例1-兰州某奔驰4S店</div>
<div class="title1">线上私域直播-实现226单,12万+产值变现</div>
<p class="title2 h5_title">基于已有的2000+企微私域流量开展美容直播活动,企微推送消息实现100%触达用户,以秒杀、 红包等活动激活社群,以超低秒杀项目作为引爆点吸引车主锁定直播,直播销售美容/养护产品, 给门店带来100+返厂量,新增到店产值12W+。</p>
<div class="line"></div>
<div class="title3">直播数据</div>
<div class="table_wrap">
<table>
<tr>
<th v-for="(item, index) in tableHeader1" :key="index">{{ item }}</th>
</tr>
<tr>
<td v-for="(item, index) in tableTD1" :key="index">{{ item }}</td>
</tr>
</table>
</div>
</div>
<div class="wrapper">
<div class="title">案例2-广西某汽车城</div>
<div class="title1">多品牌多门店兼容性直播如何玩?打破常规变现10万,返厂流量200+</div>
<p class="title2 h5_title">汽车城不同品牌不同产品4S店共计30000活跃车主,通过多店兼容联播,激活流失用户,为整个汽 车园区增加300+返厂量,新增到店产值10W;同时为各4S店建立私域用户池产生持续复购,提升 综合盈利。</p>
<div class="line"></div>
<div class="title3">直播数据</div>
<div class="table_wrap">
<table>
<tr>
<th v-for="(item, index) in tableHeader2" :key="index">{{ item }}</th>
</tr>
<tr>
<td v-for="(item, index) in tableTD2" :key="index">{{ item }}</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: '',
data() {
return {
tableHeader1: ['直播时长', '企微增粉', '引流率', '直播销量', '到店产值'],
tableTD1: [95, '1400+', '70+', '226单', '120000+'],
tableHeader2: ['直播时长', '活跃人数', '直播销量', '到店产值'],
tableTD2: [140, '3000+', '304单', '100000+']
}
},
methods: {
closeDraw() {
this.$emit('close')
}
}
}
</script>
<style lang="scss" scoped>
.chart-container {
height: 100%;
position: relative;
}
.content_con {
display: flex;
justify-content: space-between;
.wrapper {
.title {
box-sizing: border-box;
padding: 12px 19px;
font-size: 18px;
font-weight: 600;
color: #333333;
}
.title1 {
box-sizing: border-box;
padding: 0 19px;
margin-top: 11px;
margin-bottom: 9px;
font-size: 16px;
font-weight: 600;
color: #333333;
height: 32px;
}
.title2 {
box-sizing: border-box;
padding: 0 19px;
padding-bottom: 15px;
line-height: 21px;
}
.line {
width: calc(100% - 38px);
height: 2px;
background: #e8e8ea;
margin: 0 auto;
}
.title3 {
box-sizing: border-box;
padding: 0 19px;
margin: 15px 0 10px 0;
font-size: 16px;
font-weight: 600;
color: #333333;
}
.table_wrap {
box-sizing: border-box;
padding: 0 19px;
td,
th {
border: 1px solid #e0e0e4;
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
}
th,
td {
height: 45px;
text-align: center;
line-height: 45px;
}
table {
width: 100%;
border-collapse: collapse;
}
}
}
}
</style>
<template>
<div class="qr-code-components">
<div :style="[{bottom:bottom+'px'}]" @mouseenter="show = true" @mouseleave="show = false" class="right_btn flex_ccc">
<img src="../../assets/contact_icon.png" />
<div class="contact_text">联系我们</div>
</div>
<div :style="[{bottom:bottom+'px'}]" v-if="show" class="left_code flex_ccc">
<img src="https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg" />
<div style="height: 16px"></div>
<span class="h18_title">服务热线</span>
<span class="h18_title">189 0000 1234</span>
</div>
</div>
</template>
<script>
export default {
name: '',
props: {
bottom: {
type: Number,
default: 64
}
},
data() {
return {
show: false
}
},
methods: {}
}
</script>
<style lang="scss" scoped>
.qr-code-components {
.left_code {
position: fixed;
right: 77px;
bottom: 64px;
width: 144px;
height: 201px;
background: #ffffff;
z-index: 88;
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
> img {
width: 124px;
height: 124px;
}
> span {
line-height: 20px;
}
}
.right_btn {
position: fixed;
right: 20px;
bottom: 64px;
cursor: pointer;
width: 52px;
height: 201px;
background: #5850ff;
border-radius: 4px;
z-index: 88;
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
> img {
width: 20px;
height: 20px;
margin-bottom: 7px;
}
.contact_text {
width: 14px;
line-height: 20px;
font-size: 14px;
font-weight: 400;
color: #ffffff;
}
}
}
</style>
<template>
<div v-if="show" class="select-seach-con">
<!-- <div class="find_line"> -->
<div class="cell_wrapper flex_sc">
<div v-if="accountLevel == 2" class="cell_label h13_title">4S店</div>
<div v-if="accountLevel == 1 && !isAdmin" class="cell_label h13_title">市级经销商</div>
<div v-if="accountLevel == 1 && isAdmin" class="cell_label h13_title">省级经销商</div>
<el-select class="find_width" v-if="accountLevel == 2" clearable size="mini" v-model="storeId" placeholder="请选择" @change="selectStoreId">
<el-option v-for="item in storeList" :key="item.id" :label="item.label" :value="item.id"></el-option>
</el-select>
<el-select class="find_width" v-if="accountLevel == 1" clearable size="mini" v-model="nextAccountId" placeholder="请选择" @change="selectCurAccount">
<el-option v-for="item in storeList" :key="item.id" :label="item.label" :value="item.id"></el-option>
</el-select>
</div>
<div v-if="nextAccountId" class="cell_wrapper flex_sc">
<div v-if="accountLevel == 1 && !isAdmin" class="cell_label h13_title">4S店</div>
<div v-if="accountLevel == 1 && isAdmin" class="cell_label h13_title">市级经销商</div>
<el-select class="find_width" v-if="!isAdmin" clearable size="mini" v-model="storeId" placeholder="请选择" @change="selectStoreId">
<el-option v-for="item in newStroeList" :key="item.id" :label="item.label" :value="item.id"></el-option>
</el-select>
<el-select class="find_width" v-if="isAdmin" clearable size="mini" v-model="nextAccountId1" placeholder="请选择" @change="selectLastAccount">
<el-option v-for="item in newStroeList" :key="item.id" :label="item.label" :value="item.id"></el-option>
</el-select>
</div>
<div v-if="nextAccountId1" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">4S店</div>
<el-select class="find_width" clearable size="mini" v-model="storeId" placeholder="请选择" @change="selectStoreId">
<el-option v-for="item in lastStoreList" :key="item.id" :label="item.label" :value="item.id"></el-option>
</el-select>
</div>
<!-- </div> -->
</div>
</template>
<script>
import { getMerchantList } from '../../api/modules/rules'
export default {
name: '',
props: {
show: Boolean
},
data() {
return {
accountLevel: 1,
isAdmin: false,
storeId: '',
nextAccountId: '',
nextAccountId1: '',
newStroeList: [],
lastStoreList: [],
merchantList: [],
storeList: []
}
},
created() {
const { session } = this.$globalState
this.accountLevel = session.accountLevel
this.isAdmin = session.admin
if (session.accountLevel < 3) {
this.getMerchantListData()
}
},
methods: {
getMerchantListData() {
getMerchantList({}).then(res => {
this.merchantList = res || []
})
},
selectCurMechant(e) {
this.$emit('getId', e)
this.nextAccountId = ''
this.storeId = ''
this.nextAccountId1 = ''
if (!e) {
this.showThreeLine = false
return
}
let arr = this.merchantList
let newArr = []
arr.forEach(item => {
if (item.id == Number(e)) {
newArr = item.children || []
}
})
this.storeList = newArr
// 测试时使用
if (this.isAdmin) {
this.storeList = arr
}
this.showThreeLine = true
},
selectCurAccount(e) {
this.storeId = ''
this.nextAccountId1 = ''
this.$emit('getId', e)
if (!e) {
return
}
let newArr = []
this.storeList.forEach(item => {
if (item.id == e) {
newArr = item.children || []
}
})
this.newStroeList = newArr
},
selectLastAccount(e) {
this.$emit('getId', e)
this.storeId = ''
if (!e) {
return
}
let newArr = []
this.newStroeList.forEach(item => {
if (item.id == e) {
newArr = item.children || []
}
})
this.lastStoreList = newArr
},
selectStoreId(e) {
this.$emit('getId', e)
}
}
}
</script>
<style lang="scss" scoped>
.select-seach-con {
display: flex;
align-items: center;
.cell_wrapper {
// width: 25%;
box-sizing: border-box;
display: flex;
align-items: center;
margin-bottom: 18px;
// padding-right: 30px;
.cell_label {
text-align: right;
padding-right: 15px;
white-space: nowrap;
width: 80px;
}
.cell_btn {
width: 78px;
}
.cell_btn_max {
width: 156px;
}
}
// .find_line {
// padding: 9px 15px;
// display: flex;
// align-items: center;
// .cell_wrapper {
// width: 25%;
// box-sizing: border-box;
// padding-right: 30px;
// .cell_label {
// text-align: right;
// padding-right: 15px;
// white-space: nowrap;
// width: 80px;
// }
// .cell_btn {
// width: 78px;
// }
// .cell_btn_max {
// width: 156px;
// }
// }
// }
.find_width {
width: 215px;
}
}
</style>
......@@ -3,7 +3,11 @@
</template>
<script>
import { couponsTotalByDay } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
import * as echarts from 'echarts'
const base_url = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/'
export default {
name: '',
data() {
......@@ -13,51 +17,197 @@ export default {
props: {
echartId: {
type: String,
default: ''
default: '',
xAxisData: [],
getTotal: [],
usedTotal: [],
upgradeTotal: [],
base_url
}
},
mounted() {
this.getOptions()
this.initTIme()
},
methods: {
getOptions() {
getOptions(len) {
var dataZoom = [
//给x轴设置滚动条
{
start: 0, //默认为0
end: 100 - 1500 / 31, //默认为100
type: 'slider',
show: true,
xAxisIndex: [0],
handleSize: 0, //滑动条的 左右2个滑动条的大小
height: 1, //组件高度
left: '10%', //左边的距离
right: '10%', //右边的距离
bottom: 26, //右边的距离
borderColor: '#fff',
fillerColor: '#909399',
borderRadius: 5,
backgroundColor: '#f5f5f5', //两边未选中的滑动条区域的颜色
showDataShadow: false, //是否显示数据阴影 默认auto
showDetail: false, //即拖拽时候是否显示详细数值信息 默认true
realtime: true, //是否实时更新
filterMode: 'filter',
zoomLock: false
},
//下面这个属性是里面拖到
{
type: 'inside',
show: false,
xAxisIndex: [0],
start: 0, //默认为1
end: 100 - 1500 / 31 //默认为100
}
]
var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom)
var labelOption = {
show: false
}
var option = {
title:{
show:true,
text:'数量'
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
legend: {},
tooltip: {},
dataset: {
source: [
['product', '领券数', '核销数', '精品是升级订单'],
['Matcha Latte', 43.3, 85.8, 93.7],
['Milk Tea', 83.1, 73.4, 55.1],
['Cheese Cocoa', 86.4, 65.2, 82.5],
['Walnut Brownie', 72.4, 53.9, 39.1]
]
grid: {
height: '60%'
},
xAxis: { type: 'category' },
yAxis: {
axisLine: {
show: true,
lineStyle: {
color: '#E8E8EA'
legend: {
// data: ['领券数', '核销数', '精品升级订单'],
itemWidth:12,
itemHeight:12,
data: [
{
icon: `image://${base_url}echart_icon_1.png`,
name: '领券数'
},
{
icon: `image://${base_url}echart_icon_2.png`,
name: '核销数'
},
{
icon: `image://${base_url}echart_icon_3.png`,
name: '精品升级订单'
}
}
],
},
series: [{ type: 'bar' }, { type: 'bar' }, { type: 'bar' }]
xAxis: [
{
type: 'category',
axisTick: { show: false },
data: this.xAxisData,
axisLabel: {
interval: 0
}
}
],
yAxis: [
{
type: 'value',
name: '数量'
}
],
series: [
{
name: '领券数',
type: 'bar',
barGap: 0,
label: labelOption,
barWidth: 6,
emphasis: {
focus: 'series'
},
itemStyle: {
normal: {
color: '#B3B3FF'
}
},
data: this.getTotal
},
{
name: '核销数',
type: 'bar',
label: labelOption,
emphasis: {
focus: 'series'
},
barWidth: 6,
itemStyle: {
normal: {
color: '#7C7CFF'
}
},
data: this.usedTotal
},
{
name: '精品升级订单',
type: 'bar',
label: labelOption,
barWidth: 6,
emphasis: {
focus: 'series'
},
itemStyle: {
normal: {
color: '#5850FF'
}
},
data: this.upgradeTotal
}
]
}
if (len > 8) {
option.dataZoom = dataZoom
}
option && myChart.setOption(option)
},
// 初始化时间
initTIme() {
// let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// let startDate = utils.dateFormat(openInfo.openDate)
let startDate = utils.getDateStr(-15)
let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate)
},
couponsChartData(startDate, endDate) {
this.xAxisData = []
this.getTotal = []
this.usedTotal = []
this.upgradeTotal = []
let method = couponsTotalByDay()
let para = {
routerMethod: method,
startDate,
endDate
}
converterApi(para).then(res => {
let arr = res || []
if (arr.length) {
arr.map(item => {
item.dataDate = utils.dateFormat(item.dataDate)
this.xAxisData.push(item.dataDate)
this.getTotal.push(item.getTotal)
this.usedTotal.push(item.usedTotal)
this.upgradeTotal.push(item.upgradeTotal)
return item
})
}
this.getOptions(arr.length)
})
}
}
}
</script>
<style>
.chart-container {
height: 250px;
width: 100%;
height: 300px;
overflow: hidden;
}
</style>
<!-- 选择商品弹窗 -->
<template>
<div :id="echartId" class="chart-container"></div>
<div>
<div ref="funnelCon" class="chart-container flex_cc">
<div class="funnel_box">
<div class="h13_title">发券总数:{{ chartInfo.getTotal || 0 }}(张)</div>
<div class="h13_title">核销总数:{{ chartInfo.usedTotal || 0 }}(张)</div>
<div class="h13_title">转化订单数:{{ chartInfo.upgradeTotal || 0 }}(张)</div>
</div>
<img class="funnel_icon" src="../../assets/funnel_icon.png" />
<div class="funnel_box2">
<div class="wrapper">
<p class="h13_title">核销转化率:{{ chartInfo.usedPer || 0 }}%</p>
<p class="h13_title spc">同行平均转化率:{{ chartInfo.totalUsedPer || 0 }}%</p>
</div>
<!-- <div style="height:22px"></div> -->
<div class="wrapper spcP">
<p class="h13_title">精品升级转化率:{{ chartInfo.upgradePer || 0 }}%</p>
<p class="h13_title spc">同行平均转化率:{{ chartInfo.totalUpgradePer || 0 }}%</p>
</div>
</div>
<!-- <div class="image_wrap flex_cc">
<div class="text_box">
<p class="h13_title">发券总数:{{ chartInfo.getTotal || 0 }}(张)</p>
</div>
<div class="text_box1">
<p class="h13_title">核销总数:{{ chartInfo.usedTotal || 0 }}(张)</p>
</div>
<div class="text_box2">
<p class="h13_title">转化订单数:{{ chartInfo.upgradeTotal || 0 }}(张)</p>
</div>
<img class="funnel_icon" src="../../assets/funnel_icon.png" />
<div class="text_box3">
<p class="h13_title">核销转化率:{{ chartInfo.usedPer || 0 }}%</p>
<p class="h13_title spc">同行平均转化率:{{ chartInfo.totalUsedPer || 0 }}%</p>
</div>
<div class="text_box4">
<p class="h13_title">精品升级转化率:{{ chartInfo.upgradePer || 0 }}%</p>
<p class="h13_title spc">同行平均转化率:{{ chartInfo.totalUpgradePer || 0 }}%</p>
</div>
</div> -->
</div>
</div>
</template>
<script>
import * as echarts from 'echarts'
import { couponsTotal } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
export default {
name: '',
data() {
return {}
return {
nodata: false,
chartInfo: {
getTotal: 0,
usedTotal: 0,
upgradeTotal: 0,
usedPer: 0,
totalUsedPer: 0,
upgradePer: 0,
totalUpgradePer: 0
}
}
},
props: {
echartId: {
type: String,
default: ''
},
}
},
mounted() {
this.getOptions()
this.initTIme()
},
methods: {
getOptions() {
getOptions(res) {
var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom)
var option = {
color: ['#5850FF', '#9191FF', '#CBCBFF'],
tooltip: {
trigger: 'item',
formatter: '{a} <br/>{b} : {c}%'
formatter: '{a} <br/>{b}'
},
series: [
{
name: 'Funnel',
name: '券统计',
type: 'funnel',
left: '10%',
left: 'center',
top: 60,
bottom: 60,
width: '80%',
width: '60%',
min: 0,
max: 100,
minSize: '50%',
maxSize: '100%',
sort: 'descending',
gap: 2,
orient:"vertical",
gap: 15,
orient: 'vertical',
label: {
show: true,
position: 'left'
position: 'left',
// formatter: '{b}: {c}(张)',
textStyle: {
fontSize: 14
},
color: '#333'
},
labelLine: {
length: 20,
......@@ -58,29 +118,128 @@ export default {
},
itemStyle: {
borderColor: '#fff',
borderWidth: 1
},
emphasis: {
label: {
fontSize: 20
}
borderWidth: 1,
height: 37
},
data: [
{ value: 60, name: 'Visit' },
{ value: 40, name: 'Inquiry' },
{ value: 20, name: 'Order' },
{ value: res.getTotal || 0, name: `发券总数:${res.getTotal || 0}(张)` },
{ value: res.usedTotal || 0, name: `核销总数:${res.usedTotal || 0}(张)` },
{ value: res.upgradeTotal || 0, name: `转化订单数:${res.upgradeTotal || 0}(笔)` }
]
}
]
}
console.log(option);
option && myChart.setOption(option)
},
// 初始化时间
initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startDate = utils.dateFormat(openInfo.openDate)
// let startDate = this.$defaultStartDate
let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate)
},
// 券统计
couponsChartData(startDate, endDate) {
let method = couponsTotal()
let para = {
routerMethod: method,
startDate,
endDate
}
converterApi(para).then(res => {
if (!res.getTotal && !res.usedTotal && !res.upgradeTotal) {
this.nodata = true
return
}
res.usedPer = utils.decimal(res.usedPer, 2)
res.totalUsedPer = utils.decimal(res.totalUsedPer, 2)
res.upgradePer = utils.decimal(res.upgradePer, 2)
res.totalUpgradePer = utils.decimal(res.totalUpgradePer, 2)
this.chartInfo = res
// this.getOptions(res)
})
}
}
}
</script>
<style>
<style lang="scss" scoped>
.chart-container {
height: 258px;
overflow: hidden;
}
.image_wrap {
// width: 660px;
width: calc(31.4% * 3);
height: 135px;
position: relative;
.text_box {
position: absolute;
left: 9.5%;
top: 10px;
}
.text_box1 {
position: absolute;
left: 13%;
top: 61px;
}
.text_box2 {
position: absolute;
left: 14.7%;
top: 112px;
}
.text_box3 {
position: absolute;
right: 2.5%;
top: 27px;
}
.text_box4 {
position: absolute;
right: 7%;
top: 90px;
}
}
.funnel_icon {
width: 31.4%;
height: 135px;
position: relative;
z-index: 20;
}
.funnel_box {
// width: 31.4%;
height: 135px;
display: flex;
flex-direction: column;
align-items: flex-end;
> div {
height: 37px;
line-height: 37px;
margin-bottom: 15px;
white-space: nowrap;
}
}
.funnel_box2 {
// width: 31.4%;
height: 135px;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
.wrapper{
box-sizing: border-box;
>p{
line-height: 20px;
white-space: nowrap;
}
}
.spcP{
padding-top: 20px;
}
}
.spc {
font-size: 14px;
font-weight: 400;
color: #888888;
}
</style>
<template>
<div :id="echartId" class="chart-container"></div>
</template>
<script>
import * as echarts from 'echarts'
import { moneyTotal } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
const base_url = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/'
export default {
name: '',
data() {
return {
divisionMoney: [],
profitMoney: [],
xAxisData: [],
base_url
}
},
props: {
echartId: {
type: String,
default: ''
}
},
mounted() {
this.initTIme()
},
methods: {
getOptions() {
var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom)
var option = (option = {
title: {
text: ''
},
grid: {
height: '60%'
},
tooltip: {
trigger: 'axis',
show: true,
axisPointer: {
// type: 'cross',
label: {
backgroundColor: '#6a7985'
}
}
},
xAxis: {
type: 'category',
data: this.xAxisData
},
yAxis: {
name: '金额'
},
legend: {
itemWidth: 12,
itemHeight: 12,
data: [
{
icon: `image://${base_url}echart_icon_4.png`,
name: '分润金额'
},
{
icon: `image://${base_url}echart_icon_5.png`,
name: '分账金额'
}
]
},
series: [
{
name: '分润金额',
type: 'line',
data: this.profitMoney,
smooth: false,
showSymbol: false,
itemStyle: {
normal: {
color: '#5850FF'
}
}
},
{
name: '分账金额',
type: 'line',
data: this.divisionMoney,
smooth: false,
showSymbol: false,
itemStyle: {
normal: {
color: '#FF6D00'
}
}
}
]
})
option && myChart.setOption(option)
},
// 初始化时间
initTIme() {
// let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// let startDate = utils.dateFormat(openInfo.openDate)
// let startDate = this.$defaultStartDate
let startDate = utils.getDateStr(-15)
let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate)
},
// 获取折线图数据
couponsChartData(beginDateStr, endDateStr) {
this.xAxisData = []
this.divisionMoney = []
this.profitMoney = []
let method = moneyTotal()
let para = {
routerMethod: method,
beginDateStr,
endDateStr,
reportType: 2
}
converterApi(para).then(res => {
let arr = res || []
if (arr.length) {
arr.forEach(item => {
this.xAxisData.push(item.dataDateStr)
this.divisionMoney.push(item.divisionMoney)
this.profitMoney.push(item.profitMoney)
})
}
this.getOptions()
})
}
}
}
</script>
<style>
.chart-container {
height: 300px;
overflow: hidden;
}
</style>
<!-- 选择商品弹窗 -->
<template>
<div :id="echartId" class="pie-line"></div>
<div :id="echartId" class="chart-container"></div>
</template>
<script>
import * as echarts from 'echarts'
import { introConpute } from '../../api/modules/rules'
import util from '../../util/util'
export default {
name: 'piechart',
name: '',
data() {
return {}
return {
optinTitle: {}
}
},
props: {
......@@ -17,71 +20,162 @@ export default {
default: ''
}
},
mounted() {
this.getOptions()
this.getParams()
},
methods: {
getOptions() {
getOptions(res) {
var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom)
var option
option = {
series: {
type: 'pie',
radius: [20, 60],
height: '33.33%',
top:'center',
left: 'center',
width: 400,
itemStyle: {
borderColor: '#fff',
borderWidth: 1
},
label: {
alignTo: 'edge',
formatter: '{name|{b}}\n{time|{c} 小时}',
minMargin: 5,
edgeDistance: 10,
lineHeight: 15,
rich: {
time: {
fontSize: 10,
color: '#999'
var option = {
tooltip: {
trigger: 'item',
formatter:(params)=>{
let str = params.data["name"]+':'+this.priceFormat(params.data['value'])
return str
}
},
series: [
{
type: 'pie',
radius: '50%',
center: ['50%', '60%'],
data: [
{
value: res.afterSaleUnitPrice || 0,
name: `售后代运营新增产值`,
color: '#FACD67',
label: {
show: true,
rich: {
color: {
color: '#666666'
}
},
formatter: () => {
let temp = this.priceFormat(res.afterSaleUnitPrice)
return `售后代运营新增产值:约${temp || 0}/年\n\n {color|累计3年可触达用户-渗透率:${res.afterSalePermeabilityString}}`
}
}
},
{
value: res.onSaleUnitPrice || 0,
name: `售中新品新增产值`,
color: '#64C0A2',
label: {
show: true,
rich: {
color: {
color: '#666666'
}
},
formatter: () => {
let temp = this.priceFormat(res.onSaleUnitPrice)
return `售中新品新增产值:约${temp || 0}/年\n\n {color|渗透率:${res.onSalePermeabilityString}}`
}
}
},
{
value: res.preSaleUnitPrice || 0,
name: `售前权益新增产值`,
color: '#5850FF',
label: {
show: true,
rich: {
color: {
color: '#666666'
}
},
formatter: () => {
let temp = this.priceFormat(res.preSaleUnitPrice)
return `售前权益新增产值:约${temp || 0}/年\n\n {color|渗透率:${res.preSalePermeabilityString}}`
}
}
}
],
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
},
labelLine: {
length: 15,
length2: 0,
maxSurfaceAngle: 80
},
labelLayout: function (params) {
const isLeft = params.labelRect.x < myChart.getWidth() / 2
const points = params.labelLinePoints
// Update the end point.
points[2][0] = isLeft ? params.labelRect.x : params.labelRect.x + params.labelRect.width
return {
labelLinePoints: points
}
},
data: [
{ name: '圣彼得堡来客', value: 5.6 },
{ name: '陀思妥耶夫斯基全集', value: 1 },
{ name: '史记精注全译(全6册)', value: 0.8 },
{ name: '加德纳艺术通史', value: 0.5 },
{ name: '表象与本质', value: 0.5 },
{ name: '其它', value: 3.8 }
]
}
]
}
option && myChart.setOption(option, true)
},
getParams(newval) {
introConpute({}).then(res => {
res.preSalePermeabilityString = `${res.preSalePermeability * 100}%`
res.onSalePermeabilityString = `${res.onSalePermeability * 100}%`
res.afterSalePermeabilityString = `${res.afterSalePermeability * 100}%`
this.computeValue = res
if (newval) {
res.preSaleUnitPrice = newval.preSaleUnitPrice
res.onSaleUnitPrice = newval.onSaleUnitPrice
res.afterSaleUnitPrice = newval.afterSaleUnitPrice
}
this.getOptions(res)
})
},
computeProduct(num1, num2) {
let { preSalePermeability, preSaleUnitPrice, onSalePermeability, onSaleUnitPrice, afterSalePermeability, afterSaleUnitPrice } = this.computeValue
// 售前产值
let beforeSale = num1 * 12 * preSalePermeability * preSaleUnitPrice
let inSale = num1 * 12 * onSalePermeability * onSaleUnitPrice
let afterSale = num1 * 12 * 3 * afterSalePermeability * afterSaleUnitPrice
let totalValue = beforeSale + inSale + afterSale
console.log(totalValue);
let singleStoreValue = totalValue / num2
let totalProduct = this.priceFormat(totalValue)
let singleProduct = this.priceFormat(singleStoreValue)
let options = {
preSaleUnitPrice: beforeSale,
onSaleUnitPrice: inSale,
afterSaleUnitPrice: afterSale,
preSalePermeabilityString: this.computeValue.preSalePermeabilityString,
onSalePermeabilityString: this.computeValue.onSalePermeabilityString,
afterSalePermeabilityString: this.computeValue.afterSalePermeabilityString
}
this.getOptions(options)
return { totalProduct, singleProduct }
},
// 价格格式化
priceFormat(num, point = 2) {
let numStr = num.toString().split('.')[0]
if (numStr.length < 6) {
return util.decimal(num,2)
} else if (numStr >= 6) {
let decimal = numStr.substring(numStr.length - 4, numStr.length - 4 + point)
return parseFloat(parseInt(num / 10000) + '.' + decimal) + '万'
}
option && myChart.setOption(option)
return num
// return util.priceFormat(num)
// num = util.decimal(num,2)
// 将数字转换为字符串,然后通过split方法用.分隔,取到第0个
// let numStr = num.toString().split('.')[0]
// if (numStr.length < 5) {
// // 判断数字有多长,如果小于6,,表示10万以内的数字,让其直接显示
// return num
// } else if (numStr.length >= 5) {
// // 如果数字大于6位,小于8位,让其数字后面加单位万
// let decimal = numStr.substring(numStr.length - 3, numStr.length - 3 + point)
// // 由千位,百位组成的一个数字
// return parseFloat(parseInt(num / 10000) + '.' + decimal) + '万'
// }
// else if (numStr.length > 6) {
// // 如果数字大于8位,让其数字后面加单位亿
// let decimal = numStr.substring(numStr.length - 6, numStr.length - 6 + point)
// return parseFloat(parseInt(num / 100000000) + '.' + decimal) + '亿'
// }
}
}
}
</script>
<style>
.pie-line{
height: 400px;
<style lang="scss" scoped>
.chart-container {
height: 152px;
// overflow: hidden;
}
</style>
......@@ -10,17 +10,19 @@
// let request = require('@/http/request.js')
let cfg = require('./conf.js')
let timeout = 30000 //超时时间
import { Http } from 'glsx-common'
export const fetchConfig = function(isEnv = true) {
if (isEnv) {
let { request } = cfg
Object.assign(request, { timeout })
return Promise.resolve(cfg)
}
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// if (isEnv) {
// let { request } = cfg
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get(' https://oss-config.test.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config')
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
}
export const config = {
install(vue, cfg) {
vue.prototype.$config = cfg
}
}
}
\ No newline at end of file
......@@ -18,3 +18,4 @@ Vue.prototype.$apis = apis
start()
export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params)
export const http_brand = params => Vue.prototype.$http_brand(params)
import Vue from 'vue'
import { Message, Button, ButtonGroup, Form, FormItem, Input, Radio, RadioGroup, Checkbox, CheckboxGroup, Switch, Select, Option, TimePicker, Col, DatePicker, Tree, Card, Table, TableColumn, Pagination, Loading, Dialog, MessageBox, Upload, Tooltip, Tabs, TabPane, Container, Progress, Timeline, TimelineItem, Dropdown, DropdownMenu } from 'element-ui'
import { Message, Button, ButtonGroup, Form, FormItem, Input, Radio, RadioGroup, Checkbox, CheckboxGroup, Switch, Select, Option, TimePicker, Col, DatePicker, Tree, Card, Table, TableColumn, Pagination, Loading, Dialog, MessageBox, Upload, Tooltip, Tabs, TabPane, Container, Progress, Timeline, TimelineItem, Dropdown, DropdownMenu, Rate, Image, Drawer, Popover } from 'element-ui'
Vue.use(Button)
Vue.use(ButtonGroup)
Vue.use(Form)
......@@ -31,5 +31,9 @@ Vue.use(Timeline)
Vue.use(TimelineItem)
Vue.use(Dropdown)
Vue.use(DropdownMenu)
Vue.use(Rate)
Vue.use(Image)
Vue.use(Drawer)
Vue.use(Popover)
export const message = Message
export const messageBox = MessageBox
\ No newline at end of file
const staticRoutes = Object.freeze([{
<<<<<<< HEAD
name: 'InSale',
path: '/inSale/index',
component: resolve => require([`@/views/inSale/index.vue`], resolve),
......@@ -24,4 +25,44 @@ const staticRoutes = Object.freeze([{
component: resolve => require([`@/views/afterSales/index.vue`], resolve),
meta: {}
} ])
=======
name: 'index',
path: '/inSale/index',
component: resolve => require([`@/views/inSale/index.vue`], resolve),
meta: {}
}, {
name: 'upgrade',
path: '/inSale/upgrade',
component: resolve => require([`@/views/inSale/upgrade.vue`], resolve),
meta: {}
}, {
name: 'guestComments',
path: '/inSale/guestComments',
component: resolve => require([`@/views/inSale/guestComments.vue`], resolve),
meta: {}
}, {
name: 'accountRules',
path: '/inSale/accountRules',
component: resolve => require([`@/views/inSale/accountRules.vue`], resolve),
meta: {}
},
{
name: 'beforeSale',
path: '/beforeSale/index',
component: resolve => require([`@/views/beforeSale/index.vue`], resolve),
meta: {}
},
{
name: 'editEquity',
path: '/beforeSale/editEquity/:addOrEdit/:contractNo',
component: resolve => require([`@/views/beforeSale/editEquity.vue`], resolve),
meta: {}
}, {
name: 'introduct',
path: '/inSale/introduct',
component: resolve => require([`@/views/inSale/introduct.vue`], resolve),
meta: {}
}
])
>>>>>>> 875a82f2f3f4114bf0e4e435bbb7f80afcfdac3e
export default staticRoutes
\ No newline at end of file
......@@ -5,10 +5,13 @@ import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限
import { getRoutes } from '@/router'
import render from './render'
import 'glsx-components/dist/glsx-components.css'
// import 'glsx-components/src/theme/theme.scss'
let routes = []
let router = null
let instance = null
Vue.use(GLTable)
// Vue.use(Table)
// Vue.use(TableColumn)
export async function bootstrap({ history, common, messenger, globalState }) {
const { response, request, sign, secret } = await fetchConfig()
Vue.prototype.$history = history
......@@ -17,8 +20,9 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue.prototype.$common = common
Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox
Vue.prototype.$defaultStartDate = '2021-07-01'
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 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'] })
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData)
......@@ -41,4 +45,4 @@ function subscribe({ messenger }) {
messenger.subscribe(v => {
console.log(`监听到子应用${v.from}发来消息:`, v)
})
}
}
\ No newline at end of file
......@@ -16,8 +16,22 @@ import render from './render'
import { routes } from '@/router'
export async function start() {
if (window.__POWERED_BY_QIANKUN__) return
const { response, request, sign, secret } = await fetchConfig()
Vue.prototype.$http = new Http({ response, request, sign, secret, alert: message.error, headers: { token: '1112223333444' } })
const { response, request, request_brand, sign, secret } = await fetchConfig()
var urlParams = {}
window.location.href.split('?').length > 1
? window.location.href
.split('?')[1]
.split('&')
.forEach(item => {
urlParams[item.split('=')[0]] = item.split('=')[1]
})
: ''
var token = Object.keys(urlParams).includes('sessionId') ? urlParams.sessionId : '1112223333444'
Vue.prototype.$http = new Http({ response, request, sign, secret, alert: message.error, headers: { token: token } })
Vue.prototype.$http_brand = new Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: token } })
Vue.prototype.$common = {
utils: utils
}
Vue.use(GLButton, { permissions: ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
render('/', routes)
}
let util = {}
util.dateFormat = function(dateTime, format = 'YYYY-MM-DD') {
const date = new Date(dateTime)
const config = {
YYYY: date.getFullYear(),
MM: appendZero(date.getMonth() + 1), //getMonth() 方法根据本地时间返回指定日期的月份(从 0 到 11)
DD: appendZero(date.getDate()),
HH: appendZero(date.getHours()),
mm: appendZero(date.getMinutes()),
ss: appendZero(date.getSeconds())
}
for (const key in config) {
format = format.replace(key, config[key])
}
return format
}
function appendZero(int) {
if (int < 10) {
return '0' + `${int}`
} else {
return int
}
}
util.decimal = function(num, fixed) {
let pow = Math.pow(10, fixed)
return Math.round(num * pow) / pow
}
util.getLastDay = function(date) {
let current = new Date(date)
let currentMonth = current.getMonth()
let nextMoth = ++currentMonth
let nextMonthDayOne = new Date(current.getFullYear(), nextMoth, 1)
let minusDate = 1000 * 60 * 60 * 24
return new Date(nextMonthDayOne.getTime() - minusDate)
}
util.getDateStr = function(num) {
let now = new Date()
now.setDate(now.getDate() + num)
util.dateFormat(now)
// let y = now.getFullYear()
// let m = (now.getMonth() + 1) < 10 ? '0' + (now.getMonth() + 1) : (now.getMonth() + 1)
// let d = now.getDate() < 10 ? '0' + now.getDate() : now.getDate()
// return y + "-" + m + "-" + d
return util.dateFormat(now)
}
util.getExplorer = function() {
var ua = navigator.userAgent.toLocaleLowerCase();
var browserType = null;
if (ua.match(/msie/) != null || ua.match(/trident/) != null) {
browserType = "IE";
} else if (ua.match(/firefox/) != null) {
browserType = "火狐";
} else if (ua.match(/ubrowser/) != null) {
browserType = "UC";
} else if (ua.match(/opera/) != null) {
browserType = "欧朋";
} else if (ua.match(/bidubrowser/) != null) {
browserType = "百度";
} else if (ua.match(/metasr/) != null) {
browserType = "搜狗";
} else if (ua.match(/tencenttraveler/) != null || ua.match(/qqbrowse/) != null) {
browserType = "QQ";
} else if (ua.match(/maxthon/) != null) {
browserType = "遨游";
} else {
browserType = '谷歌'
}
return browserType
}
export default util
\ No newline at end of file
<!-- 权益订单 -->
<template>
<div class="equity">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="其他权益订单" name="equityList">
<equity-list v-if="activeName == 'equityList'"></equity-list>
</el-tab-pane>
<el-tab-pane label="店面服务设置" name="serviceSet">
<service-set v-if="activeName == 'serviceSet'"></service-set>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import equityList from './equityList'
import serviceSet from './serviceSet'
export default {
name: 'index',
data() {
return {
activeName: 'equityList'
}
},
components: {
equityList,
serviceSet
},
mounted() {},
methods: {}
}
</script>
<style>
.equity .el-tabs__nav-wrap:after {
opacity: 0;
}
.equity .el-tabs__item {
height: 20px !important;
line-height: 10px !important;
font-weight: 400;
font-size: 16px;
}
</style>
<!-- 查看详情 -->
<template>
<div class="pdfDialog">
<el-dialog
:visible.sync="isVisible"
:title="title"
:before-close="handleClose"
:close-on-click-modal="false"
width="860px"
>
<iframe width="100%" height="700px" scrolling="yes" frameborder="0" :src="pdfUrl"></iframe>
</el-dialog>
</div>
</template>
<script>
export default {
name: 'pdfDialog',
data() {
return {
}
},
props: {
isVisible: {
type: Boolean,
default: false
},
title: String,
pdfUrl: String
},
mounted() {},
methods: {
handleClose() {
this.$emit('closeDialog')
}
}
}
</script>
<style lang="scss">
.pdfDialog{
.el-dialog__header {
padding: 10px 16px 4px;
background-color: #141516;
.el-dialog__title{
color: #fff;
font-size: 16px;
}
}
.el-dialog__body {
padding: 0;
background-color: #202223
}
}
</style>
<!-- 店面服务设置 -->
<template>
<div class="before-sale edit-equity">
<div class="container edit-container">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
</div>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> -->
<div class="footer" :style="{ width: '100%' }">
<el-button type="primary" @click="handleConfirm">确定</el-button>
<!-- <el-button type="default" @click="handleCancel">取消</el-button> -->
</div>
</div>
</template>
<script>
import glsxCombiForm from '@/components/glsx-combi-form'
export default {
name: 'serviceSet',
data() {
return {
size: 'small',
title: '店面服务设置',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
editForm: {
hotline: ''
},
editRule: {
hotline: [{ required: true, message: '请输入服务热线', trigger: 'change' }]
},
editFormData: [
{
label: '服务热线',
name: 'hotline',
width: '320px',
type: 'input',
maxlength: 20
}
]
}
},
components: {
glsxCombiForm
},
mounted() {
this.getHotline()
},
methods: {
getHotline() {
this.$apis.beforeSale.getHotlineApi({}).then(res => {
this.editForm.hotline = res
})
},
handleConfirm() {
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) {
var params = this.$common.utils.deepClone(this.editForm)
this.$apis.beforeSale.updateHotlineApi(params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : '操作失败',
type: res.code == '0' ? 'success' : 'error'
})
})
}
})
}
}
}
</script>
<style scoped>
.before-sale .container {
padding: 0px 20px 20px 40px;
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px;
}
.before-sale .edit-container {
margin-bottom: 84px;
}
.before-sale .edit-form-container {
margin-top: 20px;
}
.before-sale .txt-center {
text-align: center;
}
.before-sale .footer {
position: absolute;
bottom: 0;
width: 100%;
height: 64px;
/* left: 220px; */
text-align: center;
line-height: 64px;
background: #ffffff;
z-index: 999;
}
.before-sale .flex {
display: flex;
justify-content: space-between;
}
.before-sale .flex-grow {
flex: 1;
}
.before-sale .edit-title {
font-size: 16px;
font-weight: bold;
height: 48px;
line-height: 48px;
border-bottom: 1px solid #E7EAEC;
margin: 0 0;
}
.before-sale .edit-sub-title {
position: relative;
font-size: 13px;
font-weight: 700;
height: 32px;
line-height: 32px;
color: #333333;
margin-bottom: 20px;
padding-left: 8px;
background-color: rgba(242, 242, 242, 1);
}
.before-sale .message-Z-zinde {
z-index: 3000 !important;
}
.before-sale .txt-red {
color: red;
}
.one-line-ellipsis {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
</style>
<template>
<div class="service-home">
<div class="header_widget">
<!-- <div class="header_widget">
<span class="title">【嘀加企微管家】</span>
<div class="tip">给您一套帮您变现的服务系统</div>
</div>
......@@ -37,145 +37,145 @@
<div class="line_widget">服务收益在线预估</div>
<div class="echart_wrapper">
<PieChart echartId="introduce"></PieChart>
</div>
</div> -->
</div>
</template>
<script>
import PieChart from '../../components/service-echart/pie.vue'
// import PieChart from '../../components/service-echart/pie.vue'
export default {
name: 'home',
components: {
PieChart
},
// components: {
// PieChart
// },
data() {
return {
currentClickIndex: -1,
localList: [
{
title: '新车售前打包增值方案',
message: '4S店会员权益服务——赚钱、锁客两不误',
tip: '帮您年增值50万'
},
{
title: '精品售中升级',
message: '驻店升级转化精品——帮助门店新车流量托管式增值变现',
tip: '帮门店年度产值增加70W+'
},
{
title: '售后代运营服务',
message: '企微魔方帮用户沉淀企微——精准推荐、直播实现复购变现',
tip: '帮您售后产值增加20W/年'
}
]
// currentClickIndex: -1,
// localList: [
// {
// title: '新车售前打包增值方案',
// message: '4S店会员权益服务——赚钱、锁客两不误',
// tip: '帮您年增值50万'
// },
// {
// title: '精品售中升级',
// message: '驻店升级转化精品——帮助门店新车流量托管式增值变现',
// tip: '帮门店年度产值增加70W+'
// },
// {
// title: '售后代运营服务',
// message: '企微魔方帮用户沉淀企微——精准推荐、直播实现复购变现',
// tip: '帮您售后产值增加20W/年'
// }
// ]
}
},
methods: {
toShowCase(index) {
this.currentClickIndex = index
this.$refs[`animation${index + 1}`].style.opacity = 1
this.$refs[`animation${index + 1}`].style['z-index'] = 20
},
closeAnimation() {
let index = this.currentClickIndex
this.$refs[`animation${index + 1}`].style.opacity = 0
this.$refs[`animation${index + 1}`].style['z-index'] = -999
},
computed() {}
// toShowCase(index) {
// this.currentClickIndex = index
// this.$refs[`animation${index + 1}`].style.opacity = 1
// this.$refs[`animation${index + 1}`].style['z-index'] = 20
// },
// closeAnimation() {
// let index = this.currentClickIndex
// this.$refs[`animation${index + 1}`].style.opacity = 0
// this.$refs[`animation${index + 1}`].style['z-index'] = -999
// },
// computed() {}
}
}
</script>
<style lang="scss" scoped>
.flex-fac {
display: flex;
flex-direction: column;
align-items: center;
}
.flex-fsc {
display: flex;
}
.header_widget {
.title {
font-size: 20px;
color: blue;
}
}
.fc_widget {
margin-top: 16px;
display: flex;
justify-content: space-between;
position: relative;
.fc_wrapper {
flex: 1;
height: 200px;
background: #fff;
border-radius: 16px;
margin: 0 16px;
position: relative;
padding: 20px 0;
.title {
font-size: 20px;
color: #333;
}
.btn {
width: 60%;
position: absolute;
bottom: 20px;
left: 50%;
transform: translate(-50%, 0);
padding: 8px 11px;
background: rgb(148, 142, 142);
border-radius: 12px;
font-size: 15px;
cursor: pointer;
display: flex;
justify-content: space-around;
.btn_go {
margin-left: 10px;
}
}
}
.animation_one {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
opacity: 0;
z-index: -999;
.close_icon {
position: absolute;
right: 10px;
top: 10px;
cursor: pointer;
color: #999;
z-index: 999;
}
.content_wrap {
flex: 1;
background: #fff;
.bg {
width: 110px;
height: 100px;
}
}
.content_two_wrap {
flex: 1;
background: rgb(204, 197, 102);
}
.bg2 {
background: greenyellow;
}
}
}
.line_widget {
width: 100%;
text-align: center;
font-size: 20px;
margin-top: 20px;
}
.echart_wrapper{
height: 250px;
padding: 20px;
}
// .flex-fac {
// display: flex;
// flex-direction: column;
// align-items: center;
// }
// .flex-fsc {
// display: flex;
// }
// .header_widget {
// .title {
// font-size: 20px;
// color: blue;
// }
// }
// .fc_widget {
// margin-top: 16px;
// display: flex;
// justify-content: space-between;
// position: relative;
// .fc_wrapper {
// flex: 1;
// height: 200px;
// background: #fff;
// border-radius: 16px;
// margin: 0 16px;
// position: relative;
// padding: 20px 0;
// .title {
// font-size: 20px;
// color: #333;
// }
// .btn {
// width: 60%;
// position: absolute;
// bottom: 20px;
// left: 50%;
// transform: translate(-50%, 0);
// padding: 8px 11px;
// background: rgb(148, 142, 142);
// border-radius: 12px;
// font-size: 15px;
// cursor: pointer;
// display: flex;
// justify-content: space-around;
// .btn_go {
// margin-left: 10px;
// }
// }
// }
// .animation_one {
// position: absolute;
// left: 0;
// right: 0;
// top: 0;
// bottom: 0;
// opacity: 0;
// z-index: -999;
// .close_icon {
// position: absolute;
// right: 10px;
// top: 10px;
// cursor: pointer;
// color: #999;
// z-index: 999;
// }
// .content_wrap {
// flex: 1;
// background: #fff;
// .bg {
// width: 110px;
// height: 100px;
// }
// }
// .content_two_wrap {
// flex: 1;
// background: rgb(204, 197, 102);
// }
// .bg2 {
// background: greenyellow;
// }
// }
// }
// .line_widget {
// width: 100%;
// text-align: center;
// font-size: 20px;
// margin-top: 20px;
// }
// .echart_wrapper{
// height: 250px;
// padding: 20px;
// }
</style>
<template>
<div class="bloc-container">集团端已开通</div>
</template>
<script>
export default {
name: 'bloc',
data() {
return {}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
</style>
\ No newline at end of file
<template>
<div class="bloc-chart-container">
<div class="mid_line">
<img src="../../assets/scrm_bar_table_icon.png">
</div>
<div class="chart_wrapper">
<line-chart ref="myline" echartId="myline"></line-chart>
</div>
<div class="table-wrapper">
<div class="top_line flex_scb">
<span :style="[{ 'font-size': todayName.length > 20 ? '12px' : '' }]" class="h7_title">{{ todayName }},各门店明细</span>
<div class="right_wrap flex_scb">
<el-radio size="mini" v-model="orderByType" :label="1" @change="changeType(1)">
<span class="h15_title">按分账金额排序</span>
</el-radio>
<el-radio size="mini" v-model="orderByType" :label="2" @change="changeType(2)">
<span class="h15_title">按分润金额排序</span>
</el-radio>
</div>
</div>
<div class="table_widget">
<GLTable ref="table" :hasPage="false" :tableData="productValueInfo" :tableParams="tableParams"></GLTable>
</div>
</div>
<div v-if="!show" class="openBtn h18_title" @click="showContainer">
<span>展开详情</span>
<img src="../../assets/down_icon.png" />
</div>
</div>
</template>
<script>
import line from '../../components/service-echart/line.vue'
import { orderTotalOfJT } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
export default {
name: '',
components: {
'line-chart': line
},
props: {
show: {
type: Boolean,
default: false
}
},
data() {
return {
radio: 0,
tableData: [],
tableParams: {
tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '门店名称',
prop: 'merchantName'
},
{
label: '分润金额 / (实际)分账金额',
prop: 'money'
}
]
},
//集团
todayName: '',
orderByType: 1,
productValueInfo: [],
productList: []
}
},
mounted() {
this.todayName = utils.dateFormat(new Date(), 'YYYY年MM月DD日')
this.today = utils.dateFormat(new Date())
const { session } = this.$globalState
if (session.accountLevel != 4) {
this.orderDataInfoOfJT(this.today, this.today)
}
},
methods: {
showContainer() {
this.show = true
this.$emit('showRanking', true)
},
// 切换radio
changeType(type) {
this.orderByType = type
this.orderDataInfoOfJT(this.curStartTime, this.curEndTime)
},
// 集团统计
orderDataInfoOfJT(start, end) {
let method = orderTotalOfJT()
let para = {
routerMethod: method,
beginDateStr: start,
endDateStr: end,
reportType: 2,
orderByType: this.orderByType //1 分账 2分润
}
converterApi(para).then(res => {
this.productValueInfo = res.map(item => {
item.money = `¥${item.profitMoney} / ¥${item.divisionMoney}`
return item
})
this.curStartTime = start
this.curEndTime = end
})
},
// 更换时间折线图
changeTimeForLine(start, end) {
this.$refs.myline.couponsChartData(start, end)
this.todayName = `${utils.dateFormat(start, 'YYYY年MM月DD日')}至${utils.dateFormat(end, 'YYYY年MM月DD日')}`
}
}
}
</script>
<style lang="scss" scoped>
.bloc-chart-container {
height: 400px;
position: relative;
display: flex;
.mid_line {
// width: 1px;
position: absolute;
left: 50%;
top: 0;
transform: translate(-50%, 0);
height: 350px;
display: flex;
align-items: center;
// background: #e8e8ea;
>img{
width: 18px;
height: 155px;
}
}
.chart_wrapper {
width: 50%;
height: 350px;
// background: #999;
display: flex;
align-items: center;
justify-content: center;
}
.table-wrapper {
width: 50%;
height: 350px;
box-sizing: border-box;
padding: 13px 22px 0 20px;
.top_line {
.right_wrap {
width: 50%;
}
}
.table_widget {
margin-top: 7px;
}
}
}
.openBtn {
position: absolute;
left: 50%;
transform: translate(-50%, 0);
bottom: 10px;
cursor: pointer;
display: flex;
align-items: center;
> img {
margin-left: 5px;
width: 10px;
height: 9px;
}
}
.bloc-chart-container /deep/ .el-table__body-wrapper {
height: 270px;
overflow-y: scroll;
}
</style>
\ No newline at end of file
<template>
<div class="guest-container">
<div v-if="accountLevel == 4" class="guest-container">
<div class="top_tip_title">
<span class="h6_title">客户评价使用场景</span>
<div class="toNext_widget">
<span class="h6_title fw">客户评价使用场景</span>
<!-- <div class="toNext_widget">
<span class="h7_title">查看效果演示</span>
<i class="el-icon-d-arrow-right"></i>
</div>
</div> -->
</div>
<div class="tip_wrap">
<span class="h5_title">车主精品升级服务施工完成后,系统会通过微信小程序通知自动提醒客户取车,并且邀请客户好评,客户完成评价后,门店可以在对应的“订单-查看明细”中查看评价。</span>
</div>
<div class="box_wrapper">
<div class="box_1 flex-cc">
<span class="h7_title">(累计)评价客户数</span>
<img class="box_icon" src="../../assets/guest_icon_1.png" />
<span class="h7_title fw">(累计)评价客户数</span>
<div class="h8_title">
<span>7878</span>
<span>{{ messageData.commentCount || 0 }}</span>
<span style="margin-left: 5px" class="h7_title">人</span>
</div>
<span class="h9_title">(累计)施工完成客户数:10000</span>
<span class="h9_title">(累计)施工完成客户数:{{ messageData.constructedCount || 0 }}</span>
</div>
<div class="box_1 flex-cc">
<span class="h7_title">(累计)好评客户数</span>
<img class="box_icon" src="../../assets/guest_icon_2.png" />
<span class="h7_title fw">(累计)好评客户数</span>
<div class="h8_title">
<span>7878</span>
<span>{{ messageData.goodCommentCount || 0 }}</span>
<span style="margin-left: 5px" class="h7_title">人</span>
</div>
<span style="height: 20px" class="h9_title"></span>
......@@ -30,49 +32,71 @@
<div class="box_1 box_2 flex-ca">
<div class="box_con">
<div class="circle_wrap">
<el-progress width="60" color="#5850FF" type="circle" :percentage="25"></el-progress>
<el-progress width="60" color="#5850FF" type="circle" :percentage="messageData.commentPer"></el-progress>
</div>
<span class="h7_title">客户评价率</span>
<span class="h7_title fw">客户评价率</span>
</div>
<div class="box_con">
<div class="circle_wrap">
<el-progress width="60" color="#5850FF" type="circle" :percentage="50"></el-progress>
<el-progress width="60" color="#5850FF" type="circle" :percentage="messageData.goodCommentPer"></el-progress>
</div>
<span class="h7_title">客户好评率</span>
<span class="h7_title fw">客户好评率</span>
</div>
</div>
</div>
<div class="tip_title">
<span class="h6_title">客评</span>
<span class="h6_title fw">客评效果预览</span>
</div>
<div class="image_show">
<div class="image_wrap">
<span class="h9_title">小程序通知</span>
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/mini_message.png" />
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/mini_message_new.png" />
</div>
<img src="../../assets/scrm_arrow_radiu_icon.png">
<div class="image_wrap">
<span class="h9_title">客评内容</span>
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/guest_content.png" />
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/guest_content_new.png" />
</div>
</div>
<div style="height:20px"></div>
<div style="height: 20px"></div>
</div>
</template>
<script>
import { guestComTotal } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
export default {
name: '',
data() {
return {}
return {
messageData: {},
accountLevel: 4
}
},
created() {
const { session } = this.$globalState
this.accountLevel = session.accountLevel
this.getCompentData()
},
mounted() {},
methods: {}
methods: {
// 获取客户评价
getCompentData() {
let method = guestComTotal()
let para = {
routerMethod: method
}
converterApi(para).then(res => {
this.messageData = res
})
}
}
}
</script>
<style lang="scss" scoped>
.guest-container {
width: 100%;
// height: calc(100% - 17px);
// height: calc(100% - 17px);
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 17px;
......@@ -84,6 +108,9 @@ export default {
align-items: center;
box-sizing: border-box;
padding: 20px 19px 15px 21px;
// > span {
// font-weight: 500;
// }
.toNext_widget {
cursor: pointer;
display: flex;
......@@ -109,9 +136,13 @@ export default {
padding: 17px 19px 19px 21px;
.box_1 {
width: calc(30% - 10px);
height: 120px;
height: 180px;
border-radius: 4px;
border: 1px solid #d8d8d8;
.box_icon {
width: 40px;
height: 40px;
}
}
.box_2 {
width: calc(40% - 10px);
......@@ -144,16 +175,24 @@ export default {
.image_show {
display: flex;
align-items: center;
justify-content: space-around;
justify-content: center;
margin-top: 10px;
overflow: hidden;
.image_wrap {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
>span{
margin-bottom: 10px;
> span {
margin-bottom: 10px;
}
>img{
width: 290px;
height: 83%;
}
}
}
.fw{
font-weight: bold;
}
</style>
\ No newline at end of file
<template>
<div class="not-open-container">
<div v-if="accountLevel == 4" class="store-tab-con">
<el-tabs v-model="activeName" @tab-click="handleClick">
<template v-for="(item, index) in tabList">
<el-tab-pane :key="index" :label="item.label" :name="item.name">
<!-- <custom v-if="activeName == 'custom'"></custom>
<rule v-if="activeName == 'rule'"></rule>
<Demo v-if="activeName == 'upgrade'"></Demo> -->
</el-tab-pane>
</template>
</el-tabs>
</div>
<div v-if="accountLevel!=4" class="bloc-page">
<!-- <Demo></Demo> -->
</div>
</div>
</template>
<script>
// import custom from './guestComments.vue'
// import rule from './accountRules.vue'
// import Demo from './demo.vue'
export default {
name: 'bloc',
// components: {
// custom,
// rule,
// Demo
// },
data() {
return {
accountLevel: 4,
activeName: 'upgrade',
tabList: [
{
name: 'upgrade',
label: '精品升级'
},
{
name: 'custom',
label: '客户评价'
},
{
name: 'rule',
label: '分账规则'
}
]
}
},
mounted() {
// const { session } = this.$globalState
// this.accountLevel = session.accountLevel
},
methods: {
handleClick(tab) {
console.log(tab.name)
}
}
}
</script>
<style lang="scss" scoped>
.store-tab-con {
width: 100%;
}
</style>
\ No newline at end of file
......@@ -3,6 +3,8 @@
</template>
<script>
import {isOpenUpgrade} from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
export default {
name: 'index',
data() {
......@@ -12,13 +14,23 @@ export default {
},
created() {
// 默认进入精品升级页面
this.$router.push('/inSale/upgrade')
this.judgeOpen()
},
mounted() {
// const { session } = this.$globalState
// console.log(session, '**********')
// this.accountLevel = session.accountLevel
},
methods: {}
methods: {
judgeOpen(){
localStorage.removeItem('openInfo')
let method = isOpenUpgrade()
let para = {
routerMethod:method
}
converterApi(para).then(res=>{
localStorage.setItem('openInfo',JSON.stringify(res))
this.$router.push('/inSale/upgrade')
})
}
}
}
</script>
......@@ -9,7 +9,10 @@
<el-button size="small" type="primary" @click="openVideoWindow">接入演示</el-button>
</div>
</div>
<div class="posi_wrap_two"></div>
<div class="posi_wrap_two">
<img class="minClass" src="../../assets/play_icon.png" alt="" @click="openVideoWindow" />
<img class="bgClass" src="../../assets/upgrade_bg.png" />
</div>
</div>
<div class="mini_main_widget">
<div class="box_wrap margin_1">
......@@ -17,9 +20,10 @@
<div class="line_icon_text">
<div class="icon_num">1</div>
<div class="text">一键转发您门店的精品礼券</div>
<img class="icon" src="../../assets/go_icon.png">
<!-- <img class="icon" src="../../assets/go_icon.png" /> -->
</div>
</div>
<i class="el-icon-d-arrow-right"></i>
<div class="box_wrap margin_2">
<div class="h3_title">您将获得的</div>
<div class="line_icon_text">
......@@ -57,24 +61,24 @@
<div v-if="count == 1" class="text_line_widget margin_4">
<div class="h5_title">
2020年6月份累计收益:
<span class="price">5344</span>
<span class="price">53400</span>
元
</div>
<div class="h5_title">
2020年度累计收益约:
<span class="price">10万</span>
<span class="price">65万</span>
元
</div>
</div>
<div v-if="count == 2" class="text_line_widget margin_4">
<div class="h5_title">
2020年集团累计收益约:
<span class="price">5344</span>
<span class="price">53400</span>
元
</div>
<div class="h5_title">
平均单店收益约:
<span class="price">10万</span>
<span class="price">81万</span>
元
</div>
</div>
......@@ -101,21 +105,25 @@
</template>
</div>
<el-dialog :visible.sync="videoShow" width="50%" :before-close="handleClose">
<video v-if="videoShow" width="100%" height="100%" controls src="https://img02.glsx.com.cn/scrm/video/pre_video.mp4"></video>
<video v-if="videoShow" width="100%" height="100%" controls src="https://img02.glsx.com.cn/scrm/video/mid_video.mp4"></video>
</el-dialog>
<!-- <div class="qrcode_wrap"></div> -->
<qrCode></qrCode>
</div>
</template>
<script>
import qrCode from '../../components/qr-code/index.vue'
export default {
name: '',
components:{
qrCode
},
data() {
return {
tableHeader1: ['6月新增销量', '转化率', '转化量', '平均客单价', '增值产值', '分店分润'],
tableHeader2: ['门店年度新车销量', '年度转化率', '平均客单价', '门店年度产值', '集团年度产值'],
tableTD1: [100, 50, 20, 30, 40, 60],
tableTD2: [100, 50, 20, 30, 40],
tableTD1: [100, '52%', 52, 2283, 116716, 23400],
tableTD2: [960, '63%', 1350, 816480, 22861440],
videoShow: false
}
},
......@@ -161,7 +169,19 @@ export default {
.posi_wrap_two {
width: 451px;
height: 276px;
background: #d8d8d8;
position: relative;
.minClass {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 2;
cursor: pointer;
}
.bgClass {
width: 100%;
height: 100%;
}
}
}
.mini_main_widget {
......@@ -174,6 +194,15 @@ export default {
padding: 0 20px;
display: flex;
align-items: center;
position: relative;
>i{
// font-size: 13px;
position: absolute;
top: 50%;
left: 316px;
transform: translate(0,-50%);
color: #5850FF;
}
.box_wrap {
height: 100%;
display: flex;
......@@ -202,15 +231,16 @@ export default {
color: #3a3a3a;
margin: 0 5px;
}
.icon{
width: 16px;
height: 16px;
cursor: pointer;
.icon {
width: 16px;
height: 16px;
cursor: pointer;
}
}
}
.margin_1 {
margin-right: 200px;
position: relative;
}
.margin_2 {
margin-right: 100px;
......@@ -290,12 +320,4 @@ export default {
margin-top: 25px;
}
}
.qrcode_wrap {
position: fixed;
right: 0;
bottom: 182px;
width: 201px;
height: 201px;
background: #ffffff;
}
</style>
<template>
<div class="video-container">
<video width="100%" height="100%" controls autoplay src="http://static.video.qq.com/TPout.swf?vid=n01393q6qvo&auto=0"></video>
<i class="el-icon-circle-close" @click="toBackPage"></i>
</div>
</template>
<script>
export default {
name: '',
data() {
return {}
},
mounted() {},
methods: {
toBackPage() {
history.go(-1)
}
}
}
</script>
<style lang="scss" scoped>
.video-container {
width: 100%;
height: 100%;
position: relative;
> i {
position: absolute;
right: 20px;
top: 20px;
cursor: pointer;
font-size: 28px;
color: white;
}
}
</style>
\ No newline at end of file
<template>
<div v-if="show" class="rank-container">
<div class="page_title">门店产值排名</div>
<div class="tipper flex_scb">
<div class="tip_text">
<span>共</span>
<sapn style="color: #5850ff">{{ tableData.length }}</sapn>
<span>家门店开通精品升级业务,平均单店产值:</span>
<span style="color: #5850ff">¥{{ pjstoreTotal }}</span>
<span>;高于平均线</span>
<span>(同行此业务的平均产值为:</span>
<span style="color: #5850ff">¥{{ product || 0 }}</span>
<span>)的共</span>
<span style="color: #5850ff; font-size: 16px">{{ storeNum }}</span>
<span>家</span>
</div>
<!-- <div class="tip_rig h15_title">
查看同行如何提高产值
<i class="el-icon-d-arrow-right"></i>
</div> -->
</div>
<div class="table_widget">
<el-table :data="tableData" height="350" style="100%" highlight-current-row>
<el-table-column label="排名" align="center" type="index" :index="index => index + 1"></el-table-column>
<el-table-column prop="merchantName" label="门店名称" align="center"></el-table-column>
<el-table-column label="总产值" width="500">
<template slot-scope="scope">
<div class="echat_wrap">
<div class="h19_title xtext">{{ scope.row.divisionMoney }}</div>
<div :style="{ width: (100 * scope.row.divisionMoney) / custSortMax + '%' }" class="summary-progress-barin"></div>
</div>
</template>
</el-table-column>
</el-table>
</div>
<div class="openBtn h18_title" @click="showContainer">
<span>收缩详情</span>
<img src="../../assets/updown_icon.png" />
</div>
</div>
</template>
<script>
import { orderTotalOfJT } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
export default {
name: '',
data() {
return {
tableData: [],
pjstoreTotal: 0,
storeNum: 0,
productValue: 0,
custSortMax: 0
}
},
props: {
show: {
type: Boolean,
default: false
},
product:Number
},
created() {
this.today = utils.dateFormat(new Date())
},
mounted() {
this.orderAll()
},
methods: {
orderAll() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
this.bengintime = utils.dateFormat(openInfo.openDate)
// this.bengintime = this.$defaultStartDate
let method = orderTotalOfJT()
let para = {
routerMethod: method,
beginDateStr: this.bengintime,
endDateStr: this.today,
reportType: 2,
orderByType: 1 //1 分账 2分润
}
converterApi(para).then(res => {
let arr = res || []
let total = 0
this.tableData = arr
this.custSortMax = 0
this.tableData.forEach(item => {
total = total + parseFloat(item.divisionMoney)
if (item.divisionMoney >= this.custSortMax) {
this.custSortMax = item.divisionMoney
}
})
this.pjstoreTotal = utils.decimal(total / arr.length, 2)
this.storeNum = this.sortNum(arr, this.pjstoreTotal)
})
},
sortNum(arr, total) {
let count = 0
arr.forEach(item => {
if (item.divisionMoney > total) {
count++
}
})
return count
},
showContainer() {
this.show = false
this.$emit('closeRank', false)
}
}
}
</script>
<style lang="scss" scoped>
.rank-container {
width: 100%;
height: 454px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 10px;
position: relative;
}
.openBtn {
position: absolute;
left: 50%;
transform: translate(-50%, 0);
bottom: 10px;
cursor: pointer;
> img {
margin-left: 5px;
width: 10px;
height: 9px;
}
}
.page_title {
padding: 15px 20px 10px 20px;
}
.tipper {
width: 100%;
box-sizing: border-box;
padding: 0 20px;
.tip_text {
font-size: 12px;
font-weight: 400;
color: #000000;
display: flex;
align-items: center;
}
.tip_rig {
cursor: pointer;
> i {
margin-left: 5px;
}
}
}
.table_widget {
box-sizing: border-box;
padding: 10px 15px;
.echat_wrap {
display: flex;
align-items: center;
.xtext{
width: 20%;
}
.summary-progress-barin {
margin-left: 10px;
background-color: #5850ff;
height: 15px;
width: 65%;
}
}
}
</style>
\ No newline at end of file
<template>
<div class="content_body">
<div class="max_widget">
<div ref="maxHBox" class="max_widget">
<div class="table_one">
<p class="h7_title">商户名:深圳XXXX公司</p>
<p class="h7_title">商户名:{{ merchantInfo.name }}</p>
<div class="title_text">
<p class="h7_title">分润计算:扣除手续费(按0.6%的标准)</p>
<p v-if="settle.deductChargeFlag == 'Y'" class="h7_title">分润计算:扣除手续费(按0.6%的标准)</p>
<p v-if="settle.deductChargeFlag == 'N'" class="h7_title">分润计算:不扣除手续费</p>
<p class="min_text">仅针对POS机收款订单</p>
</div>
</div>
......@@ -15,45 +16,52 @@
</div>
<div class="table_three">
<div class="table_th h7_title">全部(除特殊分账品类)</div>
<div class="table_th h7_title">收入分润</div>
<div class="table_th h7_title">30%</div>
<div class="table_th h7_title">{{ settle.merchantSettleType == 1 ? '毛利分润' : '收入分润' }}</div>
<div class="table_th h7_title">{{ settle.merchantProfitValue }}%</div>
</div>
<div class="table_three">
<div class="table_th h7_title">
<span>特殊分账品类:</span>
太阳膜
<template v-if="settle.goodsTypeSettleRuleList.length">
<div v-for="(item, index) in settle.goodsTypeSettleRuleList" :key="index" class="table_three">
<div class="table_th h7_title">
<span>特殊分账品类:</span>
{{ item.goodsTypeName }}
</div>
<div class="table_th h7_title">{{ item.merchantSettleType == 1 ? '毛利分润' : '收入分润' }}</div>
<div class="table_th h7_title">{{ item.merchantProfitValue }}%</div>
</div>
<div class="table_th h7_title">毛利分润</div>
<div class="table_th h7_title">30%</div>
</div>
</template>
<div class="table_four flex_scb">
<div class="h9_title">
<span>是否自动打款:</span>
<span>是</span>
<span>{{ division.autoFlag == 'Y' ? '是' : '否' }}</span>
</div>
<div class="h9_title">
<span>分账周期:T+1</span>
<span class="min_text">(分账后第2天到对公账户)</span>
<span v-if="division.settleTimeType == 1">分账周期:T+{{ division.settleTime || '1' }}</span>
<span v-if="division.settleTimeType == 2">分账周期:每月{{ division.settleTime }}号</span>
<span v-if="division.settleTimeType == 1" class="min_text">(分账后第2天到对公账户)</span>
</div>
</div>
<div class="table_four flex_scb">
<div class="h9_title">
<span>您的分账金额包含:导流方分账金额,服务商分账金额</span>
<span>您的分账金额包含:{{division.inCludeStr}}</span>
<!-- <span v-if="division.shopProfitDivisionFlag == 3">导流方分账金额,</span>
<span v-if="division.partnerProfitDivisionFlag == 3">服务商分账金额,</span>
<span v-if="division.goodsCostDivisionFlag == 3">产品金额,</span>
<span v-if="division.extraCostDivisionFlag == 3">额外成本,</span> -->
</div>
</div>
<div class="table_four flex_scb border_all">
<div class="h9_title">
<span>收款账户: XXXX商户有限公司</span>
<span>收款账户:{{ division.realityShopMerchantName }}</span>
</div>
</div>
</div>
<div class="min_widget">
<div class="title h7_title">对公账户信息</div>
<div class="info_widget">
<span class="h9_title">开户账户户行:招商银行</span>
<span class="h9_title">开户支行:招商银行深圳泰然支行</span>
<span class="h9_title">账户号:755918931710302</span>
<span class="h9_title">账户名称:深圳广联赛讯股份有限公司</span>
<div v-if="bankData" class="info_widget">
<span class="h9_title">开户账户户行:{{ bankData.bankName }}</span>
<span class="h9_title">开户支行:{{ bankData.openAccBankName }}</span>
<span class="h9_title">账户号:{{ bankData.bankAccountNo }}</span>
<span class="h9_title">账户名称:{{ bankData.bankAccountName }}</span>
</div>
</div>
</div>
......@@ -63,10 +71,28 @@
export default {
name: '',
data() {
return {}
return {
merchantInfo: {
name: '',
merchantId: 0
}
}
},
props: {
bankData: Object,
division: Object,
settle: Object
},
mounted() {},
methods: {}
mounted() {
const { session } = this.$globalState
this.merchantInfo = {
name: session.merchantName,
merchantId: session.session
}
},
methods: {
}
}
</script>
<style lang="scss" scoped>
......@@ -75,7 +101,7 @@ export default {
justify-content: space-between;
.max_widget {
width: calc(100% - 270px);
height: 389px;
// min-height: 389px;
.table_one {
width: 100%;
height: 54px;
......@@ -141,7 +167,7 @@ export default {
}
.min_widget {
width: 260px;
height: 393px;
// min-height: 393px;
border: 2px solid #e8e8ea;
.title {
width: 100%;
......
<template>
<div class="store-container">门店端</div>
</template>
<script>
export default {
name: 'index',
data() {
return {
}
},
mounted() {
},
methods: {}
}
</script>
......@@ -8,6 +8,8 @@
<script>
import notOpenCon from './notOpenCon.vue'
import openCon from './open.vue'
import { isOpenUpgrade } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
export default {
name: 'index',
components: {
......@@ -16,11 +18,33 @@ export default {
},
data() {
return {
openType: 1 // 0未开通 1已开通
openType: 2 // 0未开通 1已开通
}
},
created() {
this.judgeOpen()
// if(localStorage.getItem('openInfo')){
// let info = JSON.parse(localStorage.getItem('openInfo'))
// this.openType = info.open
// }else{
// this.judgeOpen()
// }
},
mounted() {},
methods: {}
methods: {
// 避免未配置权限菜单
judgeOpen() {
localStorage.removeItem('openInfo')
let method = isOpenUpgrade()
let para = {
routerMethod: method
}
converterApi(para).then(res => {
localStorage.setItem('openInfo', JSON.stringify(res))
this.openType = res.open?1:0
})
}
}
}
</script>
<style lang="scss" scoped>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!