Commit acf7b654 by 张杰

新增售后模块

2 parents e9ea3c32 875a82f2
Showing 66 changed files with 8207 additions and 1059 deletions
...@@ -9,10 +9,18 @@ ...@@ -9,10 +9,18 @@
"version": "0.1.0", "version": "0.1.0",
"dependencies": { "dependencies": {
"core-js": "^3.4.4", "core-js": "^3.4.4",
<<<<<<< HEAD
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.1.0", "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", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
...@@ -2481,6 +2489,7 @@ ...@@ -2481,6 +2489,7 @@
} }
}, },
"node_modules/axios/node_modules/follow-redirects": { "node_modules/axios/node_modules/follow-redirects": {
<<<<<<< HEAD
"version": "1.14.4", "version": "1.14.4",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.4.tgz", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.4.tgz",
"integrity": "sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==", "integrity": "sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==",
...@@ -2490,6 +2499,15 @@ ...@@ -2490,6 +2499,15 @@
"url": "https://github.com/sponsors/RubenVerborgh" "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": { "engines": {
"node": ">=4.0" "node": ">=4.0"
}, },
...@@ -4451,6 +4469,14 @@ ...@@ -4451,6 +4469,14 @@
"node": ">=0.10" "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": { "node_modules/de-indent": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
...@@ -7180,9 +7206,15 @@ ...@@ -7180,9 +7206,15 @@
} }
}, },
"node_modules/glsx-common": { "node_modules/glsx-common": {
<<<<<<< HEAD
"version": "1.4.6", "version": "1.4.6",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.6.tgz", "resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.6.tgz",
"integrity": "sha512-K1aH7CYbaS0CRQwwa9lzsU7aJXlly8dNAzyDwphsV/K2oeSLjY18HpZ47yyPdYZ+1kDls5GI448FdqH8sAbxFA==", "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": { "dependencies": {
"axios": "^0.21.3", "axios": "^0.21.3",
"md5": "^2.3.0", "md5": "^2.3.0",
...@@ -7205,9 +7237,15 @@ ...@@ -7205,9 +7237,15 @@
} }
}, },
"node_modules/glsx-components": { "node_modules/glsx-components": {
<<<<<<< HEAD
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.1.0.tgz", "resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.1.0.tgz",
"integrity": "sha512-NiTfxOj07MsxymLcZYo3JuBrkSoTTWQ4pyNYfyCM/QREaaA51rYutxDmmdCZS3MGMIixyq+kugMoOGQ1Jj8Z8Q==", "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": { "dependencies": {
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
...@@ -7216,9 +7254,15 @@ ...@@ -7216,9 +7254,15 @@
} }
}, },
"node_modules/glsx-components/node_modules/core-js": { "node_modules/glsx-components/node_modules/core-js": {
<<<<<<< HEAD
"version": "3.19.0", "version": "3.19.0",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.19.0.tgz", "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.19.0.tgz",
"integrity": "sha512-L1TpFRWXZ76vH1yLM+z6KssLZrP8Z6GxxW4auoCj+XiViOzNPJCAuTIkn03BGdFe6Z5clX5t64wRIRypsZQrUg==", "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, "hasInstallScript": true,
"funding": { "funding": {
"type": "opencollective", "type": "opencollective",
...@@ -17158,9 +17202,9 @@ ...@@ -17158,9 +17202,9 @@
}, },
"dependencies": { "dependencies": {
"follow-redirects": { "follow-redirects": {
"version": "1.14.4", "version": "1.14.5",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.4.tgz", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.5.tgz",
"integrity": "sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==" "integrity": "sha512-wtphSXy7d4/OR+MvIFbCVBDzZ5520qV8XfPklSN5QtxuMUJZ+b0Wnst1e1lCDocfzuCkHqj8k0FpZqO+UIaKNA=="
} }
} }
}, },
...@@ -18797,6 +18841,11 @@ ...@@ -18797,6 +18841,11 @@
"assert-plus": "^1.0.0" "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": { "de-indent": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
...@@ -21000,9 +21049,9 @@ ...@@ -21000,9 +21049,9 @@
} }
}, },
"glsx-common": { "glsx-common": {
"version": "1.4.6", "version": "1.4.9",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.6.tgz", "resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz",
"integrity": "sha512-K1aH7CYbaS0CRQwwa9lzsU7aJXlly8dNAzyDwphsV/K2oeSLjY18HpZ47yyPdYZ+1kDls5GI448FdqH8sAbxFA==", "integrity": "sha512-RQWGOGEXUPNmHkZn7n+eukkXp6L/mOfsgMo4gFtrt80ZDxGaznHMg7Isi4+IrEdvVdzp8Cju0eiCTddnZfdsJg==",
"requires": { "requires": {
"axios": "^0.21.3", "axios": "^0.21.3",
"md5": "^2.3.0", "md5": "^2.3.0",
...@@ -21021,9 +21070,9 @@ ...@@ -21021,9 +21070,9 @@
} }
}, },
"glsx-components": { "glsx-components": {
"version": "1.1.0", "version": "1.2.2",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.1.0.tgz", "resolved": "https://registry.npmmirror.com/glsx-components/download/glsx-components-1.2.2.tgz",
"integrity": "sha512-NiTfxOj07MsxymLcZYo3JuBrkSoTTWQ4pyNYfyCM/QREaaA51rYutxDmmdCZS3MGMIixyq+kugMoOGQ1Jj8Z8Q==", "integrity": "sha512-y2O8lTzNNmDK00Uea5VUlDmBJvE+g2eUREExAp3H3xPPRSxeHa2YTAt7f963HzxDPQqLVYISlqQRgpwCBwV0FQ==",
"requires": { "requires": {
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
...@@ -21032,14 +21081,14 @@ ...@@ -21032,14 +21081,14 @@
}, },
"dependencies": { "dependencies": {
"core-js": { "core-js": {
"version": "3.19.0", "version": "3.19.1",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.19.0.tgz", "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.19.1.tgz",
"integrity": "sha512-L1TpFRWXZ76vH1yLM+z6KssLZrP8Z6GxxW4auoCj+XiViOzNPJCAuTIkn03BGdFe6Z5clX5t64wRIRypsZQrUg==" "integrity": "sha512-Tnc7E9iKd/b/ff7GFbhwPVzJzPztGrChB8X8GLqoYGdEOG8IpLnK1xPyo3ZoO3HsK6TodJS58VGPOxA+hLHQMg=="
}, },
"element-ui": { "element-ui": {
"version": "2.15.6", "version": "2.15.6",
"resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.15.6.tgz", "resolved": "https://registry.npmmirror.com/element-ui/download/element-ui-2.15.6.tgz",
"integrity": "sha512-rcYXEKd/j2G0AgficAOk1Zd1AsnHRkhmrK4yLHmNOiimU2JfsywgfKUjMoFuT6pQx0luhovj8lFjpE4Fnt58Iw==", "integrity": "sha1-yWCa3TWvWmhqS3aF3B11fHXgHfM=",
"requires": { "requires": {
"async-validator": "~1.8.1", "async-validator": "~1.8.1",
"babel-helper-vue-jsx-merge-props": "^2.0.0", "babel-helper-vue-jsx-merge-props": "^2.0.0",
......
...@@ -9,10 +9,11 @@ ...@@ -9,10 +9,11 @@
}, },
"dependencies": { "dependencies": {
"core-js": "^3.4.4", "core-js": "^3.4.4",
"dayjs": "^1.10.7",
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.1.0", "glsx-components": "^1.2.2",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="referrer" content="never"> <meta name="referrer" content="never">
<meta name="referrer" content="no-referrer">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<!-- 使用CDN的CSS文件 --> <!-- 使用CDN的CSS文件 -->
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %> <% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %>
......
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 \ 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 \ 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 \ No newline at end of file
...@@ -95,6 +95,48 @@ ...@@ -95,6 +95,48 @@
color: #37383A; 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 { .flex_scb {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -107,102 +149,14 @@ ...@@ -107,102 +149,14 @@
justify-content: center; 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 \ 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 \ No newline at end of file
<template> <template>
<div class="my-drop-menu"> <div class="my-drop-menu">
<div class="left_widget label flex_cc"> <div class="left_widget label flex_cc">
<el-dropdown trigger="click"> <el-dropdown trigger="click" @command="onChangeValue">
<div class="h13_title"> <div class="h13_title">
{{ leftName }} {{ leftName }}
<i class="el-icon-caret-bottom el-icon-caret-top"></i> <i class="el-icon-caret-bottom el-icon-caret-top"></i>
</div> </div>
<el-dropdown-menu slot="dropdown" class="drop_item"> <el-dropdown-menu slot="dropdown" class="drop_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-item>狮子头</el-dropdown-item>
<el-dropdown-item>螺蛳粉</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
...@@ -29,31 +27,33 @@ export default { ...@@ -29,31 +27,33 @@ export default {
props: { props: {
leftName: { leftName: {
type: String, type: String,
default: '下拉菜单' default: '请选择'
} },
options:Array
}, },
mounted() {}, mounted() {},
methods: {} methods: {
onChangeValue(e){
this.leftName = e.label
this.$emit('getValue',e.value)
},
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.my-drop-menu { .my-drop-menu {
display: flex; display: flex;
align-items: center; align-items: center;
padding-left: 15px;
.left_widget { .left_widget {
box-sizing: border-box; box-sizing: border-box;
padding: 0 17px;
height: 28px; height: 28px;
border-radius: 4px 0px 0px 4px; border-radius: 4px 0px 0px 4px;
border: 1px solid #e8e8ea; border: 1px solid #e8e8ea;
border-right: none; border-right: none;
cursor: pointer; cursor: pointer;
} }
.right_widget {
border-radius: 0px 4px 4px 0px;
// border: 1px solid #e8e8ea;
}
.el-icon-caret-bottom { .el-icon-caret-bottom {
color: #999; color: #999;
} }
...@@ -61,6 +61,10 @@ export default { ...@@ -61,6 +61,10 @@ export default {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: none;
width: 80px;
} }
} }
</style> </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>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="glsx-combi-form"> <div class="glsx-combi-form">
<el-form :ref="formRef" :inline="true" :model="formObj" :label-width="labelWidth" :rules="formRules" size="small" class="glsx-combi-form-block"> <el-form :ref="formRef" :inline="true" :model="formObj" :label-width="labelWidth" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData"> <template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :class="{ 'no-label': !item.label, isBlock: isBlock }" :label="item.label ? item.label + ':' : ''" :prop="item.name"> <el-form-item v-if="!item.isHide" :key="index" :id="item.name" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ ...item.style }" :label="item.label ? item.label + ':' : ''" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label"> <span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
<span class="tips-label">{{ item.label }}</span> <span class="tips-label">{{ item.label }}</span>
<el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'"> <el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'">
...@@ -13,7 +13,10 @@ ...@@ -13,7 +13,10 @@
</span> </span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot> <slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<div v-else-if="item.type === 'input'"> <div v-else-if="item.type === 'input'">
<el-input :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :style="{ width: item.width || 'auto' }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)"></el-input> <el-input :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 2" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)" @blur="e => handleInputBlur(e, item)">
<span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span>
<span v-if="item.append" slot="append">{{ item.append }}</span>
</el-input>
<slot :name="item.suffixSlot" :scope="item"></slot> <slot :name="item.suffixSlot" :scope="item"></slot>
</div> </div>
<!-- 选择-输入框 --> <!-- 选择-输入框 -->
...@@ -41,7 +44,7 @@ ...@@ -41,7 +44,7 @@
</template> </template>
<!-- 选择框 --> <!-- 选择框 -->
<div v-else-if="item.type === 'select'"> <div v-else-if="item.type === 'select'">
<el-select :style="{ width: item.width || '100%' }" v-model="formObj[item.name]" :clearable="item.isClear || false" :placeholder="'请选择' + item.label" :filterable="!item.noFilter" :disabled="item.isDisabled" :no-data-text="item.noDataText || '无数据'" :multiple="item.multiple || false" :collapse-tags="item.collapseTags || true" @change="selectAddAttr($event, item)"> <el-select :style="{ width: item.width || defaultWidth }" v-model="formObj[item.name]" :clearable="item.isClear || false" :placeholder="'请选择' + item.label" :filterable="!item.noFilter" :disabled="item.isDisabled" :no-data-text="item.noDataText || '无数据'" :multiple="item.multiple || false" :collapse-tags="item.collapseTags || true" @change="selectAddAttr($event, item)">
<el-option v-for="subItem in item.optionList" :key="subItem[item.optionId]" :label="subItem[item.optionLabel]" :value="subItem[item.optionId]" :disabled="subItem.isDisabled || false"></el-option> <el-option v-for="subItem in item.optionList" :key="subItem[item.optionId]" :label="subItem[item.optionLabel]" :value="subItem[item.optionId]" :disabled="subItem.isDisabled || false"></el-option>
</el-select> </el-select>
<slot :name="item.suffixSlot" :scope="item"></slot> <slot :name="item.suffixSlot" :scope="item"></slot>
...@@ -50,35 +53,46 @@ ...@@ -50,35 +53,46 @@
<el-radio-group v-else-if="item.type === 'radio'" v-model="formObj[item.name]" :disabled="item.isDisabled" @change="item.handleRadioChange"> <el-radio-group v-else-if="item.type === 'radio'" v-model="formObj[item.name]" :disabled="item.isDisabled" @change="item.handleRadioChange">
<el-radio v-for="subItem in item.optionList" :key="subItem[item.optionId]" :label="subItem[item.optionId]">{{ subItem[item.optionLabel] }}</el-radio> <el-radio v-for="subItem in item.optionList" :key="subItem[item.optionId]" :label="subItem[item.optionId]">{{ subItem[item.optionLabel] }}</el-radio>
</el-radio-group> </el-radio-group>
<el-date-picker v-else-if="item.type === 'datePicker'" v-model="formObj[item.name]" :type="item.dateType || 'daterange'" :clearable="item.isClear || false" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOption[item.pickerOptions]"></el-date-picker> <el-date-picker v-else-if="item.type === 'datePicker'" :disabled="item.isDisabled" :value-format="item.valueFormat" :style="{ width: item.selectWidth || defaultWidth }" v-model="formObj[item.name]" :type="item.dateType || 'daterange'" :clearable="item.isClear || false" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :placeholder="item.placeholder || '请选择' + item.label" :picker-options="item.customPickerOptions || pickerOption[item.pickerOptions]" @change="e => handleDateChange(e, item)"></el-date-picker>
<template v-else-if="item.type === 'uploadBtn'">
<el-button type="primary">
上传
<input type="file" style="opacity: 0;" :id="item.name + 'file'" ref="file" class="upload-img-btn" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleUploadChange(e, item)" />
</el-button>
<!-- <el-button v-show="formObj[item.name]" type="primary">查看</el-button> -->
<el-button v-show="formObj[item.name]" type="primary" @click="handleImgLook(formObj[item.name], item)">查看</el-button>
</template>
<template v-else-if="item.type === 'upload'"> <template v-else-if="item.type === 'upload'">
<p class="photo-top-tips">{{ item.topTips }}</p> <p class="photo-top-tips">{{ item.topTips }}</p>
<div v-if="!item.isDisabled"> <div v-if="!item.isDisabled" :style="{ width: item.width || '100%' }">
<div v-if="Array.isArray(formObj[item.name]) ? formObj[item.name].length < item.maxPhotoNum : !formObj[item.name]" class="activity-img img-w-h"> <div v-if="Array.isArray(formObj[item.name]) ? formObj[item.name].length < item.maxPhotoNum : !formObj[item.name]" class="activity-img img-w-h">
<div class="add">+</div> <div class="add">+</div>
<span class="number">{{ formObj[item.name].length }} / {{ item.maxPhotoNum }}</span> <span class="number">{{ formObj[item.name].length }} / {{ item.maxPhotoNum }}</span>
<input type="file" style="opacity: 0;" :id="item.name + 'file'" ref="file" class="activity-img img-w-h" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleImgChange(e, item)" /> <input v-if="item.uploadType == 'video'" type="file" style="opacity: 0;" :id="item.name + 'file'" ref="file" class="activity-img img-w-h" accept="video/mp4" @change="e => handleUploadChange(e, item)" />
<input v-else type="file" style="opacity: 0;" :id="item.name + 'file'" ref="file" class="activity-img img-w-h" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleUploadChange(e, item)" />
</div> </div>
</div> </div>
<template> <template>
<div v-if="Array.isArray(formObj[item.name]) ? formObj[item.name].length : formObj[item.name]"> <div v-if="Array.isArray(formObj[item.name]) ? formObj[item.name].length : formObj[item.name]">
<span v-if="Array.isArray(formObj[item.name])"> <span v-if="Array.isArray(formObj[item.name])">
<span v-for="(subItem, subIndex) in formObj[item.name]" :key="subIndex" class="muti-imgs img-w-h"> <span v-for="(subItem, subIndex) in formObj[item.name]" :key="subIndex" class="muti-imgs img-w-h">
<img class="img-w-h" :src="subItem.content" /> <video v-if="item.uploadType == 'video'" class="img-w-h activity-img" :src="typeof subItem == 'object' ? subItem.content : subItem"></video>
<img v-else class="img-w-h" :src="typeof subItem == 'object' ? subItem.content : subItem" />
<span class="img-btns"> <span class="img-btns">
<span class="btn-item"> <span class="btn-item">
<i v-show="!item.isDisabled" class="el-icon-delete" @click="handleImgDelete(item, subIndex)"></i> <i v-show="!item.isDisabled" class="el-icon-delete" @click="handleImgDelete(item, subIndex)"></i>
<i class="el-icon-zoom-in" @click="handleImgLook(subItem.content)"></i> <i class="el-icon-zoom-in" @click="handleImgLook(typeof subItem == 'object' ? subItem.content : subItem, item)"></i>
</span> </span>
</span> </span>
</span> </span>
</span> </span>
<span v-else class="muti-imgs"> <span v-else class="muti-imgs">
<img class="img-w-h" :src="formObj[item.name]" /> <video v-if="item.uploadType == 'video'" class="img-w-h activity-img" :src="formObj[item.name]"></video>
<img v-else class="img-w-h" :src="formObj[item.name]" />
<span class="img-btns"> <span class="img-btns">
<span class="btn-item"> <span class="btn-item">
<i v-show="!item.isDisabled" class="el-icon-delete" @click="handleImgDelete(item)"></i> <i v-show="!item.isDisabled" class="el-icon-delete" @click="handleImgDelete(item)"></i>
<i class="el-icon-zoom-in" @click="handleImgLook(formObj[item.name])"></i> <i class="el-icon-zoom-in" @click="handleImgLook(formObj[item.name], item)"></i>
</span> </span>
</span> </span>
</span> </span>
...@@ -89,8 +103,11 @@ ...@@ -89,8 +103,11 @@
</template> </template>
<slot name="footer"></slot> <slot name="footer"></slot>
</el-form> </el-form>
<el-dialog :visible.sync="isImgVisible"> <el-dialog :visible.sync="isImgVisible" class="dialog-look">
<img class="dialog-img" width="100%" :src="dialogImageUrl" alt="" /> <video v-if="dialogObj.uploadType == 'video'" class="dialog-video" controls>
<source :src="dialogObj.url" type="video/mp4" />
</video>
<img v-else class="dialog-img" width="100%" :src="dialogObj.url" alt="" />
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
...@@ -106,7 +123,10 @@ export default { ...@@ -106,7 +123,10 @@ export default {
afterRangePickerOptions: afterRangePickerOptions afterRangePickerOptions: afterRangePickerOptions
}, },
isImgVisible: false, isImgVisible: false,
dialogImageUrl: '' dialogObj: {
url: '',
uploadType: 'img'
}
} }
}, },
...@@ -115,6 +135,10 @@ export default { ...@@ -115,6 +135,10 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
defaultWidth: {
type: String,
default: '220px'
},
formRef: { formRef: {
type: String, type: String,
default: 'formRef' default: 'formRef'
...@@ -158,44 +182,54 @@ export default { ...@@ -158,44 +182,54 @@ export default {
item.keyFn() item.keyFn()
} }
}, },
handleInputBlur(e, targetItem) {
targetItem.inputBlur && targetItem.inputBlur()
},
handleDateChange(value, targetItem) {
targetItem.handleDateChange && targetItem.handleDateChange(value, targetItem)
},
// 图片 // 图片
handleImgChange(e, targetItem) { handleUploadChange(e, targetItem) {
var reader = new FileReader() var reader = new FileReader()
var file = e.srcElement.files[0] var file = e.srcElement.files[0]
var uploadType = targetItem.uploadType || 'img'
// console.log(file) // console.log(file)
// 默认1MB // 默认1MB
const limitSize = targetItem.limitSize || 1 const limitSize = targetItem.limitSize || 1
const isLt = file.size / 1024 / 1024 < limitSize const isLt = file.size / 1024 / 1024 < limitSize
const isType = ['image/jpeg', 'image/png', 'image/jpg'].includes(file.type) const isType = uploadType == 'img' ? ['image/jpeg', 'image/png', 'image/jpg'].includes(file.type) : ['video/mp4'].includes(file.type)
const maxPhotoNum = targetItem.maxPhotoNum || 1 const maxPhotoNum = targetItem.maxPhotoNum || 1
const wdithLt = targetItem.wdithLt || 300 const wdithLt = targetItem.wdithLt || 300
const heightLt = targetItem.heightLt || 300 const heightLt = targetItem.heightLt || 300
if (maxPhotoNum == this.formObj[targetItem.name].length) { if (maxPhotoNum == this.formObj[targetItem.name].length) {
this.$message.error('只能上传' + maxPhotoNum + '张图片') this.$message.error('只能上传' + maxPhotoNum + (uploadType == 'img' ? '张图片' : '个视频'))
return true return true
} }
if (!isType) { if (!isType) {
this.$message.error('上传图片不是jpg、jpeg或png的格式!') this.$message.error(uploadType == 'img' ? '上传图片不是jpg、jpeg或png的格式!' : '上传视频不是MP4的格式!')
return true return true
} }
if (!isLt) { if (!isLt) {
this.$message.error('上传图片大小不能超过' + limitSize + 'MB!') this.$message.error('上传' + (uploadType == 'img' ? '图片' : '视频') + '大小不能超过' + limitSize + 'MB!')
return true return true
} }
reader.readAsDataURL(file) reader.readAsDataURL(file)
reader.onload = e => { reader.onload = e => {
if (uploadType == 'img') {
var image = new Image() var image = new Image()
image.src = e.target.result image.src = e.target.result
image.onload = () => { image.onload = () => {
var imgWidth = image.width var imgWidth = image.width
var imgHeight = image.height var imgHeight = image.height
if (!targetItem.noPixel && ( imgWidth > wdithLt || imgHeight > heightLt)) { if (targetItem.hasPixel && (imgWidth > wdithLt || imgHeight > heightLt)) {
this.$message.error('图片尺寸最大为' + wdithLt + '像素*' + heightLt + '像素') this.$message.error('图片尺寸最大为' + wdithLt + '像素*' + heightLt + '像素')
} else { } else {
targetItem.handleUpload(e, file, targetItem) targetItem.handleUpload(e, file, targetItem)
// this.$emit('handleUpload', { e: e, file: file, targetItem: targetItem })
} }
} }
} else {
targetItem.handleUpload(e, file, targetItem)
}
} }
}, },
// 图片删除 // 图片删除
...@@ -204,9 +238,12 @@ export default { ...@@ -204,9 +238,12 @@ export default {
this.$emit('handleImgDelete', targetItem) this.$emit('handleImgDelete', targetItem)
}, },
// 图片查看 // 图片查看
handleImgLook(src) { handleImgLook(src, targetItem) {
this.isImgVisible = true this.isImgVisible = true
this.dialogImageUrl = src this.dialogObj = {
url: src,
uploadType: targetItem.uploadType || 'img'
}
} }
} }
} }
...@@ -218,8 +255,13 @@ export default { ...@@ -218,8 +255,13 @@ export default {
/* .glsx-combi-form .glsx-combi-form-block { /* .glsx-combi-form .glsx-combi-form-block {
padding: 16px 40px 0; padding: 16px 40px 0;
} */ } */
.glsx-combi-form.clearfix::after {
content: '';
display: inline-block;
clear: both;
}
.glsx-combi-form .isBlock { .glsx-combi-form .isBlock {
display: block; display: block !important;
} }
/* .glsx-combi-form .el-form-item { /* .glsx-combi-form .el-form-item {
width: 65%; width: 65%;
...@@ -283,6 +325,14 @@ export default { ...@@ -283,6 +325,14 @@ export default {
/* .glsx-combi-form .tips { /* .glsx-combi-form .tips {
margin: 0; margin: 0;
} */ } */
.glsx-combi-form .upload-img-btn {
width: 62px;
height: 32px;
position: absolute;
left: 0;
top: 0;
cursor: pointer;
}
/* 图片上传 */ /* 图片上传 */
.glsx-combi-form .photo-top-tips { .glsx-combi-form .photo-top-tips {
/* height: 36px; */ /* height: 36px; */
...@@ -363,5 +413,15 @@ export default { ...@@ -363,5 +413,15 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.glsx-combi-form .dialog-look {
text-align: center;
z-index: 999;
}
.glsx-combi-form .dialog-video {
width: 50%;
height: 50%;
}
/* 图片上传 */ /* 图片上传 */
</style> </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 @@ ...@@ -3,7 +3,11 @@
</template> </template>
<script> <script>
import { couponsTotalByDay } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
import * as echarts from 'echarts' import * as echarts from 'echarts'
const base_url = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/'
export default { export default {
name: '', name: '',
data() { data() {
...@@ -13,51 +17,197 @@ export default { ...@@ -13,51 +17,197 @@ export default {
props: { props: {
echartId: { echartId: {
type: String, type: String,
default: '' default: '',
xAxisData: [],
getTotal: [],
usedTotal: [],
upgradeTotal: [],
base_url
} }
}, },
mounted() { mounted() {
this.getOptions() this.initTIme()
}, },
methods: { 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 chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom) var myChart = echarts.init(chartDom)
var labelOption = {
show: false
}
var option = { var option = {
title:{ tooltip: {
show:true, trigger: 'axis',
text:'数量' 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]
]
}, },
xAxis: { type: 'category' }, grid: {
yAxis: { height: '60%'
axisLine: { },
show: true, legend: {
lineStyle: { // data: ['领券数', '核销数', '精品升级订单'],
color: '#E8E8EA' 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: '精品升级订单'
}
],
},
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'
}, },
series: [{ type: 'bar' }, { type: 'bar' }, { type: 'bar' }] 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) 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> </script>
<style> <style>
.chart-container { .chart-container {
height: 250px; width: 100%;
height: 300px;
overflow: hidden;
} }
</style> </style>
<!-- 选择商品弹窗 --> <!-- 选择商品弹窗 -->
<template> <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> </template>
<script> <script>
import * as echarts from 'echarts' import * as echarts from 'echarts'
import { couponsTotal } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
export default { export default {
name: '', name: '',
data() { data() {
return {} return {
nodata: false,
chartInfo: {
getTotal: 0,
usedTotal: 0,
upgradeTotal: 0,
usedPer: 0,
totalUsedPer: 0,
upgradePer: 0,
totalUpgradePer: 0
}
}
}, },
props: { props: {
echartId: { echartId: {
type: String, type: String,
default: '' default: ''
}, }
}, },
mounted() { mounted() {
this.getOptions() this.initTIme()
}, },
methods: { methods: {
getOptions() { getOptions(res) {
var chartDom = document.getElementById(this.echartId) var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom) var myChart = echarts.init(chartDom)
var option = { var option = {
color: ['#5850FF', '#9191FF', '#CBCBFF'],
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
formatter: '{a} <br/>{b} : {c}%' formatter: '{a} <br/>{b}'
}, },
series: [ series: [
{ {
name: 'Funnel', name: '券统计',
type: 'funnel', type: 'funnel',
left: '10%', left: 'center',
top: 60, top: 60,
bottom: 60, bottom: 60,
width: '80%', width: '60%',
min: 0, min: 0,
max: 100, max: 100,
minSize: '50%', minSize: '50%',
maxSize: '100%', maxSize: '100%',
sort: 'descending', sort: 'descending',
gap: 2, gap: 15,
orient:"vertical", orient: 'vertical',
label: { label: {
show: true, show: true,
position: 'left' position: 'left',
// formatter: '{b}: {c}(张)',
textStyle: {
fontSize: 14
},
color: '#333'
}, },
labelLine: { labelLine: {
length: 20, length: 20,
...@@ -58,29 +118,128 @@ export default { ...@@ -58,29 +118,128 @@ export default {
}, },
itemStyle: { itemStyle: {
borderColor: '#fff', borderColor: '#fff',
borderWidth: 1 borderWidth: 1,
}, height: 37
emphasis: {
label: {
fontSize: 20
}
}, },
data: [ data: [
{ value: 60, name: 'Visit' }, { value: res.getTotal || 0, name: `发券总数:${res.getTotal || 0}(张)` },
{ value: 40, name: 'Inquiry' }, { value: res.usedTotal || 0, name: `核销总数:${res.usedTotal || 0}(张)` },
{ value: 20, name: 'Order' }, { value: res.upgradeTotal || 0, name: `转化订单数:${res.upgradeTotal || 0}(笔)` }
] ]
} }
] ]
} }
console.log(option);
option && myChart.setOption(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> </script>
<style> <style lang="scss" scoped>
.chart-container { .chart-container {
height: 258px; 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> </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> <template>
<div :id="echartId" class="pie-line"></div> <div :id="echartId" class="chart-container"></div>
</template> </template>
<script> <script>
import * as echarts from 'echarts' import * as echarts from 'echarts'
import { introConpute } from '../../api/modules/rules'
import util from '../../util/util'
export default { export default {
name: 'piechart', name: '',
data() { data() {
return {} return {
optinTitle: {}
}
}, },
props: { props: {
...@@ -17,71 +20,162 @@ export default { ...@@ -17,71 +20,162 @@ export default {
default: '' default: ''
} }
}, },
mounted() { mounted() {
this.getOptions() this.getParams()
}, },
methods: { methods: {
getOptions() { getOptions(res) {
var chartDom = document.getElementById(this.echartId) var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom) var myChart = echarts.init(chartDom)
var option var option = {
option = { tooltip: {
series: { trigger: 'item',
type: 'pie', formatter:(params)=>{
radius: [20, 60], let str = params.data["name"]+':'+this.priceFormat(params.data['value'])
height: '33.33%', return str
top:'center', }
left: 'center',
width: 400,
itemStyle: {
borderColor: '#fff',
borderWidth: 1
}, },
series: [
{
type: 'pie',
radius: '50%',
center: ['50%', '60%'],
data: [
{
value: res.afterSaleUnitPrice || 0,
name: `售后代运营新增产值`,
color: '#FACD67',
label: { label: {
alignTo: 'edge', show: true,
formatter: '{name|{b}}\n{time|{c} 小时}',
minMargin: 5,
edgeDistance: 10,
lineHeight: 15,
rich: { rich: {
time: { color: {
fontSize: 10, color: '#666666'
color: '#999' }
},
formatter: () => {
let temp = this.priceFormat(res.afterSaleUnitPrice)
return `售后代运营新增产值:约${temp || 0}/年\n\n {color|累计3年可触达用户-渗透率:${res.afterSalePermeabilityString}}`
} }
} }
}, },
labelLine: { {
length: 15, value: res.onSaleUnitPrice || 0,
length2: 0, name: `售中新品新增产值`,
maxSurfaceAngle: 80 color: '#64C0A2',
label: {
show: true,
rich: {
color: {
color: '#666666'
}
}, },
labelLayout: function (params) { formatter: () => {
const isLeft = params.labelRect.x < myChart.getWidth() / 2 let temp = this.priceFormat(res.onSaleUnitPrice)
const points = params.labelLinePoints return `售中新品新增产值:约${temp || 0}/年\n\n {color|渗透率:${res.onSalePermeabilityString}}`
// 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 }, value: res.preSaleUnitPrice || 0,
{ name: '陀思妥耶夫斯基全集', value: 1 }, name: `售前权益新增产值`,
{ name: '史记精注全译(全6册)', value: 0.8 }, color: '#5850FF',
{ name: '加德纳艺术通史', value: 0.5 }, label: {
{ name: '表象与本质', value: 0.5 }, show: true,
{ name: '其它', value: 3.8 } 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)'
}
}
}
] ]
} }
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> </script>
<style> <style lang="scss" scoped>
.pie-line{ .chart-container {
height: 400px; height: 152px;
// overflow: hidden;
} }
</style> </style>
...@@ -10,12 +10,14 @@ ...@@ -10,12 +10,14 @@
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
let cfg = require('./conf.js') let cfg = require('./conf.js')
let timeout = 30000 //超时时间 let timeout = 30000 //超时时间
import { Http } from 'glsx-common'
export const fetchConfig = function(isEnv = true) { export const fetchConfig = function(isEnv = true) {
if (isEnv) { // if (isEnv) {
let { request } = cfg // let { request } = cfg
Object.assign(request, { timeout }) // Object.assign(request, { timeout })
return Promise.resolve(cfg) // 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()) //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' }) // request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
} }
......
...@@ -18,3 +18,4 @@ Vue.prototype.$apis = apis ...@@ -18,3 +18,4 @@ Vue.prototype.$apis = apis
start() start()
export { bootstrap, mount, unmount } from '@/setup' export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
export const http_brand = params => Vue.prototype.$http_brand(params)
import Vue from 'vue' 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(Button)
Vue.use(ButtonGroup) Vue.use(ButtonGroup)
Vue.use(Form) Vue.use(Form)
...@@ -31,5 +31,9 @@ Vue.use(Timeline) ...@@ -31,5 +31,9 @@ Vue.use(Timeline)
Vue.use(TimelineItem) Vue.use(TimelineItem)
Vue.use(Dropdown) Vue.use(Dropdown)
Vue.use(DropdownMenu) Vue.use(DropdownMenu)
Vue.use(Rate)
Vue.use(Image)
Vue.use(Drawer)
Vue.use(Popover)
export const message = Message export const message = Message
export const messageBox = MessageBox export const messageBox = MessageBox
\ No newline at end of file \ No newline at end of file
const staticRoutes = Object.freeze([{ const staticRoutes = Object.freeze([{
<<<<<<< HEAD
name: 'InSale', name: 'InSale',
path: '/inSale/index', path: '/inSale/index',
component: resolve => require([`@/views/inSale/index.vue`], resolve), component: resolve => require([`@/views/inSale/index.vue`], resolve),
...@@ -24,4 +25,44 @@ const staticRoutes = Object.freeze([{ ...@@ -24,4 +25,44 @@ const staticRoutes = Object.freeze([{
component: resolve => require([`@/views/afterSales/index.vue`], resolve), component: resolve => require([`@/views/afterSales/index.vue`], resolve),
meta: {} 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 export default staticRoutes
\ No newline at end of file \ No newline at end of file
...@@ -5,10 +5,13 @@ import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限 ...@@ -5,10 +5,13 @@ import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限
import { getRoutes } from '@/router' import { getRoutes } from '@/router'
import render from './render' import render from './render'
import 'glsx-components/dist/glsx-components.css' import 'glsx-components/dist/glsx-components.css'
// import 'glsx-components/src/theme/theme.scss'
let routes = [] let routes = []
let router = null let router = null
let instance = null let instance = null
Vue.use(GLTable) Vue.use(GLTable)
// Vue.use(Table)
// Vue.use(TableColumn)
export async function bootstrap({ history, common, messenger, globalState }) { export async function bootstrap({ history, common, messenger, globalState }) {
const { response, request, sign, secret } = await fetchConfig() const { response, request, sign, secret } = await fetchConfig()
Vue.prototype.$history = history Vue.prototype.$history = history
...@@ -17,6 +20,7 @@ export async function bootstrap({ history, common, messenger, globalState }) { ...@@ -17,6 +20,7 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox 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.$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'] }) Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
......
...@@ -16,8 +16,22 @@ import render from './render' ...@@ -16,8 +16,22 @@ import render from './render'
import { routes } from '@/router' import { routes } from '@/router'
export async function start() { export async function start() {
if (window.__POWERED_BY_QIANKUN__) return if (window.__POWERED_BY_QIANKUN__) return
const { response, request, sign, secret } = await fetchConfig() const { response, request, request_brand, sign, secret } = await fetchConfig()
Vue.prototype.$http = new Http({ response, request, sign, secret, alert: message.error, headers: { token: '1112223333444' } }) 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'] }) Vue.use(GLButton, { permissions: ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
render('/', routes) 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 \ No newline at end of file
<!-- 编辑权益 -->
<template>
<div class="before-sale edit-equity">
<div class="help-service">
<img class="service-img" src="./image/code.png"/>
<p>扫码关注,在线咨询</p>
<!-- <p>在线客服随时咨询</p> -->
<p class="service-hotline">服务热线</p>
<p class="service-phone">18938907441</p>
</div>
<div class="container">
<p class="edit-title">车辆信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRefCar" labelWidth="160px" formRef="editChildRefCar" :formObj.sync="editForm.vehicle" :formData="editFormDataCar" :formRules="editRuleCar">
<template slot="vehicleBrandId" slot-scope="scope">
<el-select v-model="editForm.vehicle.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicle.vehicleBrandId)" style="width:220px;" :disabled="scope.scope.isDisabled">
<el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
<template slot="vehicleSubBrandId" slot-scope="scope">
<el-select v-model="editForm.vehicle.vehicleSubBrandId" placeholder="请选择子品牌" filterable @change="getCarSeriesList()" style="width:220px;" :disabled="scope.scope.isDisabled">
<el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
<template slot="vehicleSeriesId" slot-scope="scope">
<el-select v-model="editForm.vehicle.vehicleSeriesId" placeholder="请选择车系" @change="getCarTypeList(editForm.vehicle.vehicleSeriesId)" style="width:220px;" :disabled="scope.scope.isDisabled">
<el-option v-for="item in baseData.carSeriesOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
<template slot="vehicleShapeId" slot-scope="scope">
<el-select v-model="editForm.vehicle.vehicleShapeId" placeholder="请选择车型" style="width:220px;" :disabled="scope.scope.isDisabled">
<el-option v-for="item in baseData.carTypeOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
</glsx-combi-form>
</div>
<div class="container">
<p class="edit-title">客户信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRefUser" labelWidth="160px" formRef="editChildRefUser" :formObj="editForm" :formData="editFormDataUser" :formRules="editRuleUser"></glsx-combi-form>
</div>
<div class="container">
<p class="edit-title">选择产品</p>
<!-- <glsx-combi-form class="edit-form-container" ref="editFormRefPro" labelWidth="160px" formRef="editChildRefPro" :formObj="editForm" :formData="editFormDataPro" :formRules="editRulePro"> -->
<glsx-combi-form class="edit-form-container" labelWidth="160px" :formObj="editForm" :formData="editFormDataPro">
<template slot="packageCode" slot-scope="scope">
<el-radio-group class="package-code-box" v-model="editForm[scope.scope.name]" :disabled="scope.scope.isDisabled" @change="scope.scope.handleRadioChange">
<el-radio class="package-code" v-for="subItem in scope.scope.optionList" :key="subItem[scope.scope.optionId]" :label="subItem[scope.scope.optionId]">
<span class="package-title">{{ subItem[scope.scope.optionLabel] }}</span>
<div class="radio-add-block" @click.stop.prevent="e => handleCancelBubble(e)">
<p>{{ subItem.serviceItems }}</p>
<div v-if="editForm.packageCode == subItem[scope.scope.optionId]">
<glsx-combi-form class="edit-form-container" ref="editFormRefPro" labelWidth="160px" formRef="editChildRefPro" :isBlock="true" :formObj="editFormPro" :formData="subItem.editFormData" :formRules="editRulePro">
<template slot="table" slot-scope="scope">
<table class="table-style">
<tbody>
<tr>
<td v-for="(m, n) in scope.scope.attributeList" :key="n" :style="{ width: 100 / scope.scope.attributeList.length + '%' }">{{ m.attributeDesc }}</td>
</tr>
<tr v-for="(m, n) in scope.scope.tableList" :key="n">
<td v-for="(i, j) in m" :key="j" :style="{ width: 100 / scope.scope.attributeList.length + '%' }">
<el-input :disabled="i.isDisabled" :class="{ 'border-red': !editFormPro[i.name] }" placeholder="请输入" v-model="editFormPro[i.name]" :maxlength="i.maxlength">
<el-popover v-show="!editFormPro[i.name]" slot="suffix" placement="top" title="" width="90" trigger="hover" :content="i.attributeDesc + '是必填项'">
<i class="el-icon-warning color-red" slot="reference"></i>
</el-popover>
</el-input>
</td>
</tr>
</tbody>
</table>
</template>
</glsx-combi-form>
</div>
</div>
</el-radio>
</el-radio-group>
</template>
</glsx-combi-form>
</div>
<div class="container">
<p class="edit-title">其他信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRefOther" labelWidth="160px" formRef="editChildRefOther" :formObj="editForm" :formData="editFormDataOther" :formRules="editRuleOther"></glsx-combi-form>
</div>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> -->
<div class="footer" :style="{ width: '100%' }">
<el-button v-show="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm">提单</el-button>
<el-button v-show="routeInfo.addOrEdit == '1'" type="primary" @click="handleReset">重置</el-button>
<el-button v-show="!['3', '5'].includes(routeInfo.addOrEdit)" type="primary" @click="handleDraft">草稿</el-button>
<el-button type="default" @click="handleCancel">取消</el-button>
</div>
</div>
</template>
<script>
import glsxCombiForm from '@/components/glsx-combi-form'
export default {
name: 'editEquity',
data() {
return {
size: 'small',
submit: false,
// title: '新增权益',
// titleObj: {
// 1: '新增权益',
// 2: '编辑权益',
// 3: '查看权益'
// },
// footerLeft: '0',
// footerWidth: '0',
editCarChildRef: 'editChildRef',
disabled: false,
successDisable: false,
routeInfo: {
// 1-新增;2-编辑;3-修改;4-重新提单;5-查看
addOrEdit: '1',
contractNo: ''
},
editForm: {
packageCode: '',
suggestedSellingPrice: '',
actualSalesPrice: '',
servicePeriod: 1,
effectiveDate: new Date(new Date().setDate(new Date().getDate() + 1)),
customerType: 1,
cardType: 1,
vehicle: {
vehicleBrandId: '',
vehicleSubBrandId: '',
vehicleSeriesId: '',
vehicleShapeId: '',
licensing: '',
invoicePrice: '',
seatesNum: 5,
billingDate: new Date()
}
},
// 车辆信息
editRuleCar: {
licensing: [{ required: true, message: '请选择是否上牌', trigger: 'change' }],
// licensePlate: [{ required: true, message: '请输入车牌号码', trigger: 'change' }],
vin: [{ required: true, message: '请输入车架号', trigger: 'change' }],
engineNo: [{ required: true, message: '请输入发动机号', trigger: 'change' }],
invoicePrice: [{ required: true, message: '请输入发票价格', trigger: 'change' }],
// vehicleColor: [{ required: true, message: '请输入车身颜色', trigger: 'change' }],
vehicleBrandId: [{ required: true, message: '请选择车品牌', trigger: 'change' }],
vehicleSubBrandId: [{ required: true, message: '请选择车子品牌', trigger: 'change' }],
vehicleSeriesId: [{ required: true, message: '请选择车系', trigger: 'change' }],
// vehicleShapeId: [{ required: true, message: '请选择车型', trigger: 'change' }],
billingDate: [{ required: true, message: '请选择开票日期', trigger: 'change' }],
seatesNum: [{ required: true, message: '请选择座位数', trigger: 'change' }]
},
editFormDataCar: [
{
label: '是否上牌',
name: 'licensing',
type: 'select',
noFilter: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'licensingList'
},
{
label: '车牌号码',
name: 'licensePlate',
type: 'input',
maxlength: 32
},
{
label: '车架号',
name: 'vin',
type: 'input',
maxlength: 17
},
{
label: '发动机号',
name: 'engineNo',
type: 'input',
maxlength: 16
},
{
label: '发票价格',
name: 'invoicePrice',
type: 'input',
append: '元',
maxlength: 11,
inputBlur: () => {
this.packageToPrice()
}
},
{
label: '车身颜色',
name: 'vehicleColor',
type: 'input',
maxlength: 5
},
{
label: '座位数',
name: 'seatesNum',
type: 'select',
noFilter: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'seatesNumList'
},
{
label: '开票日期',
name: 'billingDate',
type: 'datePicker',
dateType: 'date',
valueFormat: 'yyyy-MM-dd',
pickerOptions: 'beforeRangePickerOptions',
handleDateChange: (value, targetItem) => {
console.log(value)
console.log(targetItem)
}
},
{
label: '品牌车型',
name: 'vehicleBrandId',
addHtml: 'vehicleBrandId'
},
{
label: '',
// label: '子品牌',
name: 'vehicleSubBrandId',
addHtml: 'vehicleSubBrandId'
},
{
label: '',
// label: '品牌车系',
name: 'vehicleSeriesId',
addHtml: 'vehicleSeriesId'
},
{
label: '',
// label: '品牌车型',
name: 'vehicleShapeId',
addHtml: 'vehicleShapeId'
}
],
// 客户信息
editRuleUser: {
customerType: [{ required: true, message: '请选择客户类型', trigger: 'change' }],
customerName: [{ required: true, message: '请输入客户姓名', trigger: 'change' }],
cardType: [{ required: true, message: '请选择证件类型', trigger: 'change' }],
cardNo: [{ required: true, message: '请输入身份证', trigger: 'change' }],
customerPhone: [{ required: true, message: '请输入联系号码', trigger: 'change' }],
customerAddress: [{ required: true, message: '请输入联系地址', trigger: 'change' }]
},
editFormDataUser: [
{
label: '客户类型',
name: 'customerType',
type: 'select',
noFilter: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'customerTypeList',
changeAttr: (value, targetItem) => {
this.editForm.cardType = value
var idx = this.editFormDataUser.findIndex(item => item.name == 'cardNo')
this.editFormDataUser[idx].label = this.baseData.cardTypeList.find(item => item.confId == value).confName
}
},
{
label: '客户姓名',
name: 'customerName',
type: 'input',
maxlength: 128
},
{
label: '证件类型',
name: 'cardType',
type: 'select',
noFilter: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'cardTypeList',
isDisabled: true
},
{
label: '身份证',
name: 'cardNo',
type: 'input',
maxlength: 18
},
{
label: '联系号码',
name: 'customerPhone',
type: 'input',
maxlength: 11
},
{
label: '联系地址',
name: 'customerAddress',
type: 'input',
maxlength: 128
}
],
// 选择产品
packageList: [],
editRulePro: {},
editFormPro: {},
editFormDataPro: [
{
label: '',
name: 'packageCode',
optionList: [],
optionId: 'packageCode',
optionLabel: 'packageName',
addHtml: 'packageCode',
handleRadioChange: val => {
this.packageAttr()
}
}
],
// 其他信息
editRuleOther: {
suggestedSellingPrice: [{ required: true, message: '请输入建议销售价', trigger: 'change' }],
actualSalesPrice: [
{ required: true, message: '请输入实际销售价', trigger: 'change' },
{
validator: (rule, value, callback) => {
return +this.editForm.suggestedSellingPrice > +value ? callback(new Error('输入价格有误')) : callback()
},
trigger: 'change'
}
],
servicePeriod: [{ required: true, message: '请选择服务期限', trigger: 'change' }],
effectiveDate: [{ required: true, message: '请选择生效日期', trigger: 'change' }]
},
editFormDataOther: [
{
label: '建议销售价',
name: 'suggestedSellingPrice',
type: 'input',
append: '元',
isDisabled: true,
maxlength: 11
},
{
label: '实际销售价',
name: 'actualSalesPrice',
type: 'input',
append: '元',
maxlength: 11
},
{
label: '服务期限',
name: 'servicePeriod',
type: 'select',
noFilter: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'servicePeriodList'
},
{
label: '生效日期',
name: 'effectiveDate',
type: 'datePicker',
dateType: 'date',
valueFormat: 'yyyy-MM-dd',
customPickerOptions: {
disabledDate(date) {
const yesterday = new Date(new Date().setDate(new Date().getDate()))
if (date < yesterday) {
return true
}
return false
}
}
}
],
// 公共数据
baseData: {
licensingList: [
{
confId: 0,
confName: '否'
},
{
confId: 1,
confName: '是'
}
],
seatesNumList: [
{
confId: 1,
confName: '1'
},
{
confId: 2,
confName: '2'
},
{
confId: 3,
confName: '3'
},
{
confId: 4,
confName: '4'
},
{
confId: 5,
confName: '5'
},
{
confId: 6,
confName: '6'
},
{
confId: 7,
confName: '7'
}
],
customerTypeList: [
{
confId: 1,
confName: '个人'
},
{
confId: 2,
confName: '企业'
}
],
cardTypeList: [
{
confId: 1,
confName: '身份证'
},
{
confId: 2,
confName: '统一社会信息代码'
}
],
servicePeriodList: [
{
confId: 1,
confName: '1年'
}
],
carBrandOptions: [],
carChildOptions: [],
carSeriesOptions: [],
carTypeOptions: []
},
allCarChildList: []
}
},
components: {
glsxCombiForm
},
created() {
this.getAllVehicleBrand()
this.getCarChildList()
},
mounted() {
// this.footerLeft = document.querySelector('.base-container-right').offsetLeft
// this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.params
this.disabled = this.routeInfo.addOrEdit == '5'
// 提单成功 - 修改
this.successDisable = this.routeInfo.addOrEdit == '3'
this.getOptionsList('editFormDataCar', false)
this.getOptionsList('editFormDataUser', false)
this.getOptionsList('editFormDataOther', false)
this.disabled && this.setDisabled()
this.successDisable && this.setDisabled(['invoicePrice', 'billingDate', 'packageCode', 'actualSalesPrice', 'servicePeriod', 'effectiveDate'])
// this.title = this.titleObj[this.routeInfo.addOrEdit]
console.log(this.routeInfo, '-------------')
// 获取套餐列表
this.getPackageList()
},
methods: {
setDisabled(partDisabledList = []) {
var list = ['Car', 'User', 'Pro', 'Other']
var flag = true
var errorObjList = []
for (var i = 0; i < list.length; i++) {
this['editFormData' + list[i]].forEach((item, idx) => {
if (!partDisabledList.length) {
this['editFormData' + list[i]][idx].isDisabled = true
} else {
if (partDisabledList.includes(item.name)) {
this['editFormData' + list[i]][idx].isDisabled = true
}
}
})
}
},
handleCancelBubble(e) { },
getInfo() {
this.$apis.beforeSale.getEquityApi({ contractNo: this.routeInfo.contractNo }).then(res => {
console.log(res)
this.editForm = {
...res
}
// 格式化价格
if (this.editForm.vehicle.invoicePrice) {
this.editForm.vehicle.invoicePrice = (this.editForm.vehicle.invoicePrice / 100).toFixed(2)
}
if (this.editForm.suggestedSellingPrice) {
this.editForm.suggestedSellingPrice = (this.editForm.suggestedSellingPrice / 100).toFixed(2)
}
if (this.editForm.actualSalesPrice) {
this.editForm.actualSalesPrice = (this.editForm.actualSalesPrice / 100).toFixed(2)
}
this.editForm.vehicle.billingDate = this.editForm.vehicle.billingDate ? new Date(this.editForm.vehicle.billingDate) : ''
this.editForm.effectiveDate = this.editForm.effectiveDate ? new Date(this.editForm.effectiveDate) : ''
if (this.editForm.vehicle.vehicleBrandId) {
this.getCarChildList(true)
}
if (this.editForm.vehicle.vehicleSubBrandId) {
this.getCarSeriesList(true)
}
if (this.editForm.vehicle.vehicleSeriesId) {
this.getCarTypeList(true)
}
if(this.editForm.customerType) {
var idx = this.editFormDataUser.findIndex(item => item.name == 'cardNo')
this.editFormDataUser[idx].label = this.baseData.cardTypeList.find(item => item.confId == this.editForm.customerType).confName
}
if(['2', '4'].includes(this.routeInfo.addOrEdit)) {
this.editForm.effectiveDate = new Date(new Date().setDate(new Date().getDate() + 1))
}
this.editForm.packageCode && this.packageAttr(true)
})
},
getPackageList() {
this.$apis.beforeSale.getPackageListApi({}).then(res => {
// console.log(res)
this.packageList = res
this.autoGenerate()
})
},
// 改建议价
packageToPrice() {
var targetItem = this.packageList.find(item => item.packageCode == this.editForm.packageCode)
this.editForm.suggestedSellingPrice = ''
if (this.editForm.vehicle.invoicePrice) {
var invoicePrice = (this.editForm.vehicle.invoicePrice * 100).toFixed(2)
// console.log(targetItem)
targetItem && targetItem.servicePackagePrices.forEach(item => {
if (+invoicePrice >= +item.carButtomPrice && +invoicePrice < +item.carHighestPrice) {
this.editForm.suggestedSellingPrice = (item.retailPrice / 100).toFixed(2)
}
})
}
},
packageAttr(recovery = false) {
var targetItem = this.packageList.find(item => item.packageCode == this.editForm.packageCode)
this.packageToPrice()
// console.log(this.editForm)
var tempObj = this.$common.utils.deepClone(this.editFormPro)
this.editRulePro = {}
this.editFormPro = {}
var attrName = ''
targetItem && targetItem.groupAttributeList.forEach(item => {
if (item.attributeList.length == 1) {
attrName = item.attributeList[0].attributeName
this.$set(this.editFormPro, attrName, tempObj.hasOwnProperty(attrName) ? tempObj[attrName] : '')
if (item.attributeList[0].required == 1) {
this.editRulePro[item.attributeList[0].attributeName] = [
{
required: true,
message: '请输入' + item.attributeList[0].attributeDesc,
trigger: 'change'
}
]
}
} else {
for(var i = 0; i < item.num; i++) {
item.attributeList.forEach(k => {
attrName = k.attributeName
this.$set(this.editFormPro, attrName + i, tempObj.hasOwnProperty(attrName + i) ? tempObj[attrName + i] : '')
})
}
}
})
if (recovery) {
this.recoveryEditFormPro()
}
},
recoveryEditFormPro() {
this.editForm.attributeList.length && this.editForm.attributeList.forEach((item, idx) => {
let hashObj = {}
this.editForm.attributeList.map(i => i.attributeName).forEach((i, subIdx) => {
Object.keys(hashObj).includes(i) ? (hashObj[i] = hashObj[i] + 1) : (hashObj[i] = 1)
})
this.$set(this.editFormPro, hashObj[item.attributeName] != 1 ? (item.attributeName + item.sort) : item.attributeName, item.attributeValue)
})
console.log(this.editFormPro)
},
autoGenerate() {
var tempList = []
this.packageList.forEach(item => {
tempList = []
item.groupAttributeList.forEach((k, idx) => {
if (k.attributeList.length == 1) {
tempList.push({
label: k.attributeList[0].attributeDesc,
name: k.attributeList[0].attributeName,
type: k.attributeList[0].attributeType,
isDisabled: this.disabled || this.successDisable,
maxlength: k.attributeList[0].maxLength
})
if (k.attributeList[0].attributeType == 'datePicker') {
tempList[idx].dateType = 'date'
tempList[idx].valueFormat = 'yyyy-MM-dd',
tempList[idx].pickerOptions = 'beforeRangePickerOptions'
}
} else {
// console.log(k)
var tableList = []
for (var i = 0; i < k.num; i++) {
tableList[i] = []
k.attributeList.forEach((j, index) => {
tableList[i].push({
groupName: j.groupName,
attributeDesc: j.attributeDesc,
attributeName: j.attributeName,
name: j.attributeName + i,
sort: i,
attributeGroup: j.attributeGroup,
maxlength: j.maxLength,
required: j.required,
attributeType: j.attributeType,
isDisabled: this.disabled || this.successDisable
})
})
}
tempList.push({
label: '',
name: '',
addHtml: 'table',
attributeList: k.attributeList,
tableList: tableList
})
}
})
this.editFormDataPro[0].optionList.push({
packageCode: item.packageCode,
packageName: item.packageName,
serviceItems: item.serviceItemsList.length ? item.serviceItemsList.map(k => k.serviceName).join(',') : '',
serviceItemsList: item.serviceItemsList,
groupAttributeList: item.groupAttributeList,
editFormData: this.$common.utils.deepClone(tempList)
})
})
console.log(this.editFormDataPro)
this.routeInfo.addOrEdit != '1' ? this.getInfo() : ''
},
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle)
this.$set(this[formName][index], 'optionList', this.$common.utils.deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
} else {
this[formName].forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName].length) {
this.$set(this[formName][index], 'optionList', this.$common.utils.deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
}
})
}
},
// 获取品牌车型
getAllVehicleBrand(fn = () => {}) {
const params = {}
this.$apis.beforeSale.getCarBrandListApi(params).then(res => {
this.baseData.carBrandOptions = res || []
})
},
handleChangeBrand(brandId, isRecovery = false) {
this.editForm.vehicle.vehicleSubBrandId = ''
this.editForm.vehicle.vehicleSeriesId = ''
this.editForm.vehicle.vehicleShapeId = ''
this.baseData.carChildOptions = this.allCarChildList.find(item => item.id == brandId).childs
this.baseData.carSeriesOptions = []
this.baseData.carTypeOptions = []
},
// 获取子品牌
getCarChildList(isRecovery = false) {
this.$apis.beforeSale.getCarChildListApi({}).then(res => {
this.allCarChildList = res || []
if (isRecovery) {
this.baseData.carChildOptions = this.allCarChildList.find(item => item.id == this.editForm.vehicle.vehicleBrandId).childs
}
})
},
// 获取车系
getCarSeriesList(isRecovery = false) {
if (!isRecovery) {
this.editForm.vehicle.vehicleSeriesId = ''
this.editForm.vehicle.vehicleShapeId = ''
this.baseData.carSeriesOptions = []
this.baseData.carTypeOptions = []
}
const params = {
brandId: this.editForm.vehicle.vehicleBrandId,
childBrandId: this.editForm.vehicle.vehicleSubBrandId
}
this.$apis.beforeSale.getCarSeriesListApi(params).then(res => {
this.baseData.carSeriesOptions = res || []
})
},
// 获取车型
getCarTypeList(isRecovery = false) {
if (!isRecovery) {
this.editForm.vehicle.vehicleShapeId = ''
this.baseData.carTypeOptions = []
}
const params = {
carSeriesId: this.editForm.vehicle.vehicleSeriesId
}
this.$apis.beforeSale.getCarTypeListApi(params).then(res => {
this.baseData.carTypeOptions = res || []
})
},
// 跳转
whereToGo(id) {
document.getElementById(id).scrollIntoView()
},
getParams() {
var params = this.$common.utils.deepClone(this.editForm)
// 格式化价格
if (this.editForm.vehicle.invoicePrice) {
params.vehicle.invoicePrice = (this.editForm.vehicle.invoicePrice * 100).toFixed(0)
}
if (this.editForm.suggestedSellingPrice) {
params.suggestedSellingPrice = (this.editForm.suggestedSellingPrice * 100).toFixed(0)
}
if (this.editForm.actualSalesPrice) {
params.actualSalesPrice = (this.editForm.actualSalesPrice * 100).toFixed(0)
}
// 车品牌
if (this.editForm.vehicle.vehicleBrandId) {
params.vehicle.vehicleBrandName = this.baseData.carBrandOptions.find(item => item.id == this.editForm.vehicle.vehicleBrandId).name
}
if (this.editForm.vehicle.vehicleSubBrandId) {
params.vehicle.vehicleSubBrandName = this.baseData.carChildOptions.find(item => item.id == this.editForm.vehicle.vehicleSubBrandId).name
}
if (this.editForm.vehicle.vehicleSeriesId) {
params.vehicle.vehicleSeriesName = this.baseData.carSeriesOptions.find(item => item.id == this.editForm.vehicle.vehicleSeriesId).name
}
if (this.editForm.vehicle.vehicleShapeId) {
params.vehicle.vehicleShapeName = this.baseData.carTypeOptions.find(item => item.id == this.editForm.vehicle.vehicleShapeId).name
}
var targetItem = this.packageList.find(item => item.packageCode == this.editForm.packageCode)
// console.log(targetItem)
params.attributeList = []
if (targetItem) {
targetItem.groupAttributeList.forEach(item => {
if (item.attributeList.length == 1) {
params.attributeList.push({
attributeValue: this.editFormPro[item.attributeList[0].attributeGroup],
attributeGroup: item.attributeList[0].attributeGroup,
attributeName: item.attributeList[0].attributeName,
sort: 0
})
} else {
// var tableList = []
item.attributeList.forEach((j, index) => {
for (var i = 0; i < item.num; i++) {
params.attributeList.push({
attributeValue: this.editFormPro[j.attributeName + i],
attributeGroup: j.attributeGroup,
attributeName: j.attributeName,
sort: i
})
}
})
}
})
}
console.log(params)
return params
},
handleDraft() {
if (this.submit) {
return true
}
this.submit = true
var params = this.getParams()
params.operationType = 0
if (this.routeInfo.addOrEdit == '2') {
params.contractNo = this.routeInfo.contractNo
this.updateEquity(params)
} else {
this.$apis.beforeSale.createCodeApi({}).then(res => {
console.log(res)
params.contractNo = res
this.submit = false
this.updateEquity(params)
}).catch(err => {
this.submit = false
})
}
},
updateEquity(params) {
this.$apis.beforeSale.updateEquityApi(params).then(res => {
this.submit = false
if (res.code == '0') {
this.$message({
message: res.data.code ? '操作成功' : res.data.msg,
type: res.data.code ? 'success' : 'error'
})
if (res.data.code) {
this.handleCancel()
} else {
this.whereToGo('licensing')
}
} else {
this.whereToGo('licensing')
this.$message({
message: res.message,
type: 'error'
})
}
})
},
handleConfirm() {
if (this.submit) {
return true
}
this.submit = true
var list = ['Car', 'User', 'Pro', 'Other']
var flag = true
var errorObjList = []
for (var i = 0; i < list.length; i++) {
if(this.$refs['editFormRef' + list[i]]) {
var pRef = list[i] == 'Pro' ? this.$refs['editFormRef' + list[i]][0] : this.$refs['editFormRef' + list[i]]
pRef.$refs['editChildRef' + list[i]].validate((valid, errorObj) => {
!valid && errorObjList.push(errorObj)
flag && (flag = valid)
})
}
}
if (!flag) {
this.whereToGo(Object.keys(errorObjList[0])[0])
this.submit = false
return true
}
var params = this.getParams()
// if ([2, 3].includes(this.routeInfo.addOrEdit)) {
// params.contractNo = this.routeInfo.contractNo
// }
params.operationType = 1
if (['2', '3'].includes(this.routeInfo.addOrEdit)) {
params.contractNo = this.routeInfo.contractNo
this.updateEquity(params)
} else {
this.$apis.beforeSale.createCodeApi({}).then(res => {
console.log(res)
params.contractNo = res
this.submit = false
this.updateEquity(params)
}).catch(err => {
this.submit = false
})
}
},
handleReset() {
this.editForm = {
packageCode: '',
suggestedSellingPrice: '',
actualSalesPrice: '',
servicePeriod: 1,
vehicle: {
vehicleBrandId: '',
vehicleSubBrandId: '',
vehicleSeriesId: '',
vehicleShapeId: '',
licensing: '',
invoicePrice: '',
seatesNum: 5,
billingDate: new Date()
}
}
},
handleCancel() {
if (this.submit) {
return true
}
this.$router.push({
path: '/beforeSale/index'
})
}
}
}
</script>
<style>
/* 客服 - start */
.before-sale .help-service {
position: fixed;
z-index: 9999;
font-size: 14px;
color: #333333;
top: 10%;
right: 10px;
width: 144px;
height: 268px;
text-align: center;
background: #FFFFFF;
border: 1px solid rgb(220, 223, 230, 0.5);
box-shadow: 0px 3px 6px -4px rgba(0,0,0,0.12);
}
.help-service .service-img {
width: 124px;
height: 124px;
margin: 16px 0;
}
.help-service p {
margin: 0;
}
.help-service .service-hotline {
margin: 16px 0 5px;
font-size: 16px;
font-weight: bold;
}
.help-service .service-phone {
color: #5850FF;
}
/* 客服 - end */
.before-sale .container {
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px;
margin-bottom: 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;
}
/* 选择套餐产品 */
.before-sale .package-code {
display: block;
margin-bottom: 20px;
}
.before-sale .package-code .package-title {
font-size: 16px;
font-weight: bold;
}
.before-sale .package-code-box ::v-deep .el-radio__label {
width: 100% !important;
text-overflow: ellipsis;
white-space: normal;
line-height: 18px;
}
.before-sale .package-code-box .radio-add-block {
color: #606266;
}
/* .no-label.el-form-item--small .el-form-item__content {
width: auto !important;
}
.radio-add-block .el-form-item--small .el-form-item__content {
width: auto !important;
} */
/* 表格 */
/* .edit-equity .spesc-label {
padding: 1px 10px;
box-sizing: border-box;
width: 110px;
color: #666;
text-align: right;
padding-right: 12px;
} */
.edit-equity .table-style {
width: 50%;
text-align: center;
margin-bottom: 0;
}
.edit-equity .table-style tbody tr {
border: 1px solid #e7e7e7;
/* border-bottom: 1px solid rgb(235, 235, 235); */
}
.edit-equity .table-style tbody td {
display: inline-block;
box-sizing: border-box;
border: none;
padding: 2px 6px;
vertical-align: center;
text-align: center;
}
.edit-equity .table-style .el-input--small .el-input__inner {
text-align: center !important;
}
/* .edit-equity .w-320 {
width: 320px;
} */
.edit-equity .table-style .el-input--small.border-red .el-input__inner {
border: 1px solid #eb4e4e;
}
.color-red {
color: #eb4e4e;
cursor: pointer;
}
/* 表格 */
</style>
<!-- 权益订单列表 -->
<template>
<div class="before-sale">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新增权益</el-button>
</div>
<div class="container">
<div>
<glsx-combi-form ref="showSearch" labelWidth="110px" :formObj="searchForm" :formData="searchFormData">
<span slot="footer" class="footer-btns">
<el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" type="primary" @click="handleExport">导出</el-button>
</span>
</glsx-combi-form>
</div>
<div class="table-top-tips">请注意:订单列表还有{{countNoData}}单未上传客户凭证等资料,若发生事故无法获得补偿,请尽快在列表操作-上传资料中完善。</div>
<!-- 表格区域 开始 -->
<GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="[2, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(5, scope.scope)">查看</el-button>
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handlePdf(scope.scope)">打印</el-button>
<el-button v-if="[2].includes(scope.scope.orderStatus)" style="position: relative;" type="text" @click="handleUpload(scope.scope)">上传资料<span v-show="scope.scope.dataPerfection == 0" class="circule-tips"></span></el-button>
<el-button v-if="[0].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(3, scope.scope)">修改</el-button>
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleBack(scope.scope)">退保</el-button>
<el-button v-if="[3, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(4, scope.scope)">重新提单</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
<pdf-dialog :isVisible="isPdfVisible" title="合同" :pdfUrl="pdfUrl" @closeDialog="handlePdfClose"></pdf-dialog>
<glsx-dialog title="上传资料" :isVisible.sync="isFileVisible" width="70%" noCancel="true" btnOkLabel="关闭" @confirmDialog="handleUploadFileClose" @closeDialog="handleUploadFileClose">
<glsx-combi-form labelWidth="300px" isBlock="true" ref="uploadFormRef" formRef="uploadChildRef" :formRules="uploadRule" :formObj.sync="uploadForm" :formData="uploadFormData"></glsx-combi-form>
</glsx-dialog>
</div>
</template>
<script>
import * as dayjs from 'dayjs'
import glsxCombiForm from '@/components/glsx-combi-form'
import glsxDialog from '@/components/glsx-dialog'
import pdfDialog from './pdfDialog'
export default {
name: 'equityList',
data() {
return {
size: 'small',
userInfo: {},
countNoData: '',
levelToShow: {
1: 'merchantId',
2: 'dqtId',
3: 'pqId',
4: 'mdId'
},
searchForm: {
queryText: '',
orderStatus: '',
packageCode: '',
merchantId: '',
successDate: [],
effectiveDate: []
},
tableSearchForm: {},
// 合同打印
isPdfVisible: false,
pdfUrl: '',
// 上传资料
isFileVisible: false,
packageList: [],
uploadRule: {},
uploadForm: {},
uploadFormData: [],
// 搜索
searchFormData: [
{
label: '搜索内容',
name: 'queryText',
type: 'input',
placeholder: '输入车主、合同号、车架号',
maxlength: 100
},
{
label: '服务状态',
name: 'orderStatus',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'orderStatusList'
},
{
label: '产品名称',
name: 'packageCode',
type: 'select',
optionList: [],
optionId: 'packageCode',
optionLabel: 'packageName',
optionsName: 'goodsStatusList'
},
{
label: '提单成功时间',
name: 'successDate',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '生效时间',
name: 'effectiveDate',
type: 'datePicker',
isClear: true,
pickerOptions: 'afterRangePickerOptions'
},
{
label: '总部',
name: 'merchantId',
type: 'select',
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
optionsName: 'merchantList',
isHide: true,
changeAttr: val => {
console.log(val)
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow['2'])
this.searchFormData[idx].isHide = false
this.getMerchantList(val, 2, this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
}
},
{
label: '大区',
name: 'dqtId',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'dqList',
isHide: true
},
{
label: '片区',
name: 'pqId',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'pqList',
isHide: true
},
{
label: '门店',
name: 'mdId',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'mdList',
isHide: true
}
],
// 表格
getListApi: this.$apis.beforeSale.getListApi,
tableParams: {
listName: 'list',
tableOption: true,
tableColumns: [
{
label: '车主姓名',
prop: 'customerName',
formatter: cellValue => {
return cellValue.customerName || '-'
}
},
{
label: '合同号',
prop: 'contractNo',
width: '200px',
formatter: cellValue => {
return [2, 4, 5].includes(cellValue.orderStatus) ? (cellValue.contractNo || '-') : '-'
}
},
{
label: '提单成功时间',
prop: 'successDate',
width: '160px',
formatter: cellValue => {
return cellValue.successDate ? dayjs(cellValue.successDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
},
{
label: '新车开票日期',
prop: 'billingDate',
width: '160px',
formatter: cellValue => {
return cellValue.billingDate ? dayjs(cellValue.billingDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
},
{
label: '店面名称',
prop: 'merchantName',
width: '160px',
line: 2,
formatter: cellValue => {
return cellValue.merchantName || '-'
}
},
{
label: '车品牌',
prop: 'vehicleBrandName',
width: '160px',
formatter: cellValue => {
return cellValue.vehicleBrandName || '-'
}
},
{
label: '车系',
prop: 'vehicleSeriesName',
formatter: cellValue => {
return cellValue.vehicleSeriesName || '-'
}
},
{
label: '车架',
prop: 'vin',
formatter: cellValue => {
return cellValue.vin || '-'
}
},
{
label: '电话',
prop: 'customerPhone',
width: '160px',
formatter: cellValue => {
return cellValue.customerPhone || '-'
}
},
{
label: '产品名称',
prop: 'packageName',
formatter: cellValue => {
return cellValue.packageName || '-'
}
},
{
label: '实际销售价',
prop: 'actualSalesPrice',
width: '160px',
formatter: cellValue => {
return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '-'
}
},
{
label: '服务期限',
prop: 'servicePeriod',
formatter: cellValue => {
return cellValue.servicePeriod ? '1年' : '-'
}
},
{
label: '生效时间',
prop: 'effectiveDate',
width: '160px',
formatter: cellValue => {
return cellValue.effectiveDate ? dayjs(cellValue.effectiveDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
},
{
label: '状态',
prop: 'orderStatus',
width: '100px',
formatter: cellValue => {
return this.baseData.orderStatusList.map(item => item.confId).includes(cellValue.orderStatus) ? this.baseData.orderStatusList.find(item => item.confId == cellValue.orderStatus).confName : '-'
}
},
{
label: '大区',
prop: 'provinceMerchantName',
formatter: cellValue => {
return cellValue.provinceMerchantName || '-'
}
},
{
label: '片区',
prop: 'cityMerchantName',
formatter: cellValue => {
return cellValue.cityMerchantName || '-'
}
},
{
label: '操作人',
prop: 'updatedBy',
width: '140px',
formatter: cellValue => {
return cellValue.updatedBy || '-'
}
}
]
},
pageConf: { pageSize: 'pageCount', pageNum: 'pageSize', totalCount: 'total' },
// 公共数据
baseData: {
goodsStatusList: [],
merchantList: [],
dqList: [],
pqList: [],
mdList: [],
orderStatusList: [
{
confId: 0,
confName: '待提单'
},
{
confId: 2,
confName: '提单成功'
},
{
confId: 3,
confName: '提单失败'
},
{
confId: 4,
confName: '已退单'
},
{
confId: 5,
confName: '已过期'
}
]
}
}
},
components: {
glsxCombiForm,
glsxDialog,
pdfDialog
},
mounted() {
this.$apis.beforeSale.getProListApi({}).then(res => {
this.baseData.goodsStatusList = res
this.getOptionsList('searchFormData')
})
this.getCountNoData()
this.$apis.beforeSale.getUserInfoApi({}).then(res => {
this.userInfo = res
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[res.merchantAccountLevel])
this.searchFormData[idx].isHide = false
this.baseData[this.searchFormData[idx].optionsName] = [{
merchantNo: this.userInfo.merchantNo,
merchantName: this.userInfo.merchantName
}]
this.getOptionsList('searchFormData', false, this.searchFormData[idx].name)
// this.getMerchantList(this.userInfo.merchantNo, this.userInfo.merchantAccountLevel, this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
})
},
methods: {
getCountNoData() {
this.$apis.beforeSale.getCountNoDataApi({}).then(res => {
this.countNoData = res
})
},
getMerchantList(merchantId, accountLevel, attrName, listName) {
var params = {
merchantId: merchantId,
accountLevel: accountLevel
}
this.$apis.beforeSale.getMerchantApi(params).then(res => {
this.baseData[listName] = res
this.getOptionsList('searchFormData', false, attrName)
})
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.successDate.length) {
params.successStartDate = new Date(this.searchForm.successDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.successEndDate = new Date(this.searchForm.successDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
if (this.searchForm.effectiveDate.length) {
params.effectiveStartDate = new Date(this.searchForm.effectiveDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.effectiveEndDate = new Date(this.searchForm.effectiveDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
delete params.successDate
delete params.effectiveDate
return params
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
resolve()
})
},
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle)
this.$set(this[formName][index], 'optionList', this.$common.utils.deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
} else {
this[formName].forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName].length) {
this.$set(this[formName][index], 'optionList', this.$common.utils.deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
}
})
}
},
secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
this.$confirm(txt, title, {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: action => {
if (action == 'confirm') {
this.$apis[apiModule][apiName](apiParams).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
if (res.code == '0') {
fn && fn()
this.handleSearch()
}
})
}
}
})
},
// 1-新增;2-编辑;3-修改;4-重新提单;5-查看
handleEdit(addOrEdit, row) {
if (addOrEdit == 3 && new Date(new Date().setDate(new Date().getDate() - 7)) > new Date(row.successDate)) {
const h = this.$createElement
this.$message({
message: h('p', null, [h('p', { style: 'text-align: center; line-height: 20px; color: #F56C6C;' }, '为保障客户权益,请邮件主送:operation@didihu.com.cn,抄送:liuqm@didihu.com.cn,jiangfj@didihu.com.cn提交退单申请 ')]),
type: 'error'
})
return true
}
if(addOrEdit == 4 && row.orderStatus == 3) {
addOrEdit = 2
}
addOrEdit == 1 ? this.$router.push('/beforeSale/editEquity/' + addOrEdit + '/' + -1) : this.$router.push('/beforeSale/editEquity/' + addOrEdit + '/' + row.contractNo)
},
handlePdfClose() {
this.isPdfVisible = !this.isPdfVisible
},
// 打印
handlePdf(row) {
this.handlePdfClose()
this.$apis.beforeSale.getPriteApi({ contractNo: row.contractNo }).then(res => {
this.pdfUrl = res
})
},
uploadFile(imgUrl, targetItem) {
var params = {
contractNo: this.uploadForm.contractNo,
attachmentCode: targetItem.name,
attachmentFile: imgUrl,
attachmentType: 'IMG'
}
this.$apis.beforeSale.updateOrderApi(params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
if (res.code == '0') {
this.$set(this.uploadForm, targetItem.name, imgUrl)
}
})
},
// 上传资料
autoGenerate() {
var tempList = []
this.uploadFormData = []
this.packageList.forEach(item => {
// item.groupAttributeList.forEach((k, idx) => {
// this.uploadForm[item.attachmentCode] = ''
this.$set(this.uploadForm, item.attachmentCode, '')
this.uploadFormData.push({
label: item.attachmentName,
name: item.attachmentCode,
type: 'uploadBtn',
limitSize: 20,
maxPhotoNum: 1,
handleUpload: (e, file, targetItem) => {
const imgFile = e.target.result
const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1]
var imgUrl = ''
this.$apis.beforeSale.uploadImgApi({ file: base64, fileType: 'image' }).then(res => {
this.uploadFile(res, targetItem)
})
}
})
if (item.required == 1) {
this.uploadRule[item.attachmentCode] = [
{
required: true,
message: '请选择' + item.attachmentName,
trigger: 'change'
}
]
}
})
this.handleUploadFileClose()
},
handleUploadFileClose() {
this.isFileVisible = !this.isFileVisible
},
handleUpload(row) {
console.log(row)
this.$apis.beforeSale.getOrderAttrApi({ packageCode: row.packageCode }).then(res => {
this.packageList = res
this.uploadForm.contractNo = row.contractNo
this.packageList.forEach(item => {
this.$apis.beforeSale.getOrderValueApi({ contractNo: row.contractNo, attachmentCode: item.attachmentCode }).then(subRes => {
this.uploadForm[item.attachmentCode] = subRes || ''
})
})
this.autoGenerate()
})
},
// 退保
handleBack(row) {
console.log(this.userInfo)
if (!this.userInfo.admin && new Date(new Date().setDate(new Date().getDate() - 7)) > new Date(row.successDate)) {
const h = this.$createElement
this.$message({
message: h('p', null, [h('p', { style: 'text-align: center; line-height: 20px; color: #F56C6C;' }, '为保障客户权益,请邮件主送:operation@didihu.com.cn,抄送:liuqm@didihu.com.cn,jiangfj@didihu.com.cn提交退单申请 ')]),
type: 'error'
})
return true
}
this.secondConfirm('退保', '是否确认退保?', 'beforeSale', 'backOrderApi', { contractNo: row.contractNo, merchantId: row.merchantId })
},
// 导出
handleExport() {
var params = this.getParams()
this.$apis.beforeSale.getExportApi(params).then(res => {
window.open(res)
})
},
handleSearch() {
this.$refs.equityRef.refreshTable()
},
handleReset() {
this.searchForm = {
queryText: '',
orderStatus: '',
merchantId: '',
successDate: [],
effectiveDate: []
}
this.handleSearch()
}
}
}
</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 .m-b-20 {
margin-bottom: 20px;
}
.before-sale .table-top-tips {
/* position: relative; */
box-sizing: border-box;
color: red;
margin-bottom: 10px;
/* width: 100%; */
/* background-color: darkgrey; */
padding: 4px 10px;
}
.before-sale .circule-tips {
position: absolute;
top: 0;
right: -6px;
display: inline-block;
height: 6px;
width: 6px;
border-radius: 100%;
background-color: red;
}
.before-sale .footer-btns {
float: right;
/* display: block; */
/* text-align: right; */
margin-bottom: 18px;
}
.before-sale .el-table .cell {
line-height: 16px;
}
.before-sale .table-btns .el-button {
padding: 0 0 0 5px;
margin-left: 5px;
border-left: 1px solid #dcdfe6;
border-radius: 0;
}
.before-sale .table-btns .el-button:first-child {
padding: 0;
border: 0;
}
</style>
<!-- 权益订单 -->
<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> <template>
<div class="service-home"> <div class="service-home">
<div class="header_widget"> <!-- <div class="header_widget">
<span class="title">【嘀加企微管家】</span> <span class="title">【嘀加企微管家】</span>
<div class="tip">给您一套帮您变现的服务系统</div> <div class="tip">给您一套帮您变现的服务系统</div>
</div> </div>
...@@ -37,145 +37,145 @@ ...@@ -37,145 +37,145 @@
<div class="line_widget">服务收益在线预估</div> <div class="line_widget">服务收益在线预估</div>
<div class="echart_wrapper"> <div class="echart_wrapper">
<PieChart echartId="introduce"></PieChart> <PieChart echartId="introduce"></PieChart>
</div> </div> -->
</div> </div>
</template> </template>
<script> <script>
import PieChart from '../../components/service-echart/pie.vue' // import PieChart from '../../components/service-echart/pie.vue'
export default { export default {
name: 'home', name: 'home',
components: { // components: {
PieChart // PieChart
}, // },
data() { data() {
return { return {
currentClickIndex: -1, // currentClickIndex: -1,
localList: [ // localList: [
{ // {
title: '新车售前打包增值方案', // title: '新车售前打包增值方案',
message: '4S店会员权益服务——赚钱、锁客两不误', // message: '4S店会员权益服务——赚钱、锁客两不误',
tip: '帮您年增值50万' // tip: '帮您年增值50万'
}, // },
{ // {
title: '精品售中升级', // title: '精品售中升级',
message: '驻店升级转化精品——帮助门店新车流量托管式增值变现', // message: '驻店升级转化精品——帮助门店新车流量托管式增值变现',
tip: '帮门店年度产值增加70W+' // tip: '帮门店年度产值增加70W+'
}, // },
{ // {
title: '售后代运营服务', // title: '售后代运营服务',
message: '企微魔方帮用户沉淀企微——精准推荐、直播实现复购变现', // message: '企微魔方帮用户沉淀企微——精准推荐、直播实现复购变现',
tip: '帮您售后产值增加20W/年' // tip: '帮您售后产值增加20W/年'
} // }
] // ]
} }
}, },
methods: { methods: {
toShowCase(index) { // toShowCase(index) {
this.currentClickIndex = index // this.currentClickIndex = index
this.$refs[`animation${index + 1}`].style.opacity = 1 // this.$refs[`animation${index + 1}`].style.opacity = 1
this.$refs[`animation${index + 1}`].style['z-index'] = 20 // this.$refs[`animation${index + 1}`].style['z-index'] = 20
}, // },
closeAnimation() { // closeAnimation() {
let index = this.currentClickIndex // let index = this.currentClickIndex
this.$refs[`animation${index + 1}`].style.opacity = 0 // this.$refs[`animation${index + 1}`].style.opacity = 0
this.$refs[`animation${index + 1}`].style['z-index'] = -999 // this.$refs[`animation${index + 1}`].style['z-index'] = -999
}, // },
computed() {} // computed() {}
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.flex-fac { // .flex-fac {
display: flex; // display: flex;
flex-direction: column; // flex-direction: column;
align-items: center; // align-items: center;
} // }
.flex-fsc { // .flex-fsc {
display: flex; // display: flex;
} // }
.header_widget { // .header_widget {
.title { // .title {
font-size: 20px; // font-size: 20px;
color: blue; // color: blue;
} // }
} // }
.fc_widget { // .fc_widget {
margin-top: 16px; // margin-top: 16px;
display: flex; // display: flex;
justify-content: space-between; // justify-content: space-between;
position: relative; // position: relative;
.fc_wrapper { // .fc_wrapper {
flex: 1; // flex: 1;
height: 200px; // height: 200px;
background: #fff; // background: #fff;
border-radius: 16px; // border-radius: 16px;
margin: 0 16px; // margin: 0 16px;
position: relative; // position: relative;
padding: 20px 0; // padding: 20px 0;
.title { // .title {
font-size: 20px; // font-size: 20px;
color: #333; // color: #333;
} // }
.btn { // .btn {
width: 60%; // width: 60%;
position: absolute; // position: absolute;
bottom: 20px; // bottom: 20px;
left: 50%; // left: 50%;
transform: translate(-50%, 0); // transform: translate(-50%, 0);
padding: 8px 11px; // padding: 8px 11px;
background: rgb(148, 142, 142); // background: rgb(148, 142, 142);
border-radius: 12px; // border-radius: 12px;
font-size: 15px; // font-size: 15px;
cursor: pointer; // cursor: pointer;
display: flex; // display: flex;
justify-content: space-around; // justify-content: space-around;
.btn_go { // .btn_go {
margin-left: 10px; // margin-left: 10px;
} // }
} // }
} // }
.animation_one { // .animation_one {
position: absolute; // position: absolute;
left: 0; // left: 0;
right: 0; // right: 0;
top: 0; // top: 0;
bottom: 0; // bottom: 0;
opacity: 0; // opacity: 0;
z-index: -999; // z-index: -999;
.close_icon { // .close_icon {
position: absolute; // position: absolute;
right: 10px; // right: 10px;
top: 10px; // top: 10px;
cursor: pointer; // cursor: pointer;
color: #999; // color: #999;
z-index: 999; // z-index: 999;
} // }
.content_wrap { // .content_wrap {
flex: 1; // flex: 1;
background: #fff; // background: #fff;
.bg { // .bg {
width: 110px; // width: 110px;
height: 100px; // height: 100px;
} // }
} // }
.content_two_wrap { // .content_two_wrap {
flex: 1; // flex: 1;
background: rgb(204, 197, 102); // background: rgb(204, 197, 102);
} // }
.bg2 { // .bg2 {
background: greenyellow; // background: greenyellow;
} // }
} // }
} // }
.line_widget { // .line_widget {
width: 100%; // width: 100%;
text-align: center; // text-align: center;
font-size: 20px; // font-size: 20px;
margin-top: 20px; // margin-top: 20px;
} // }
.echart_wrapper{ // .echart_wrapper{
height: 250px; // height: 250px;
padding: 20px; // padding: 20px;
} // }
</style> </style>
<template> <template>
<div class="rule-container"> <div v-if="accountLevel == 4" class="rule-container">
<div class="top_wrapper"> <div v-if="nodata == 1" class="top_wrapper">
<div class="tip_line"> <div v-if="updateTime" class="tip_line">
<img class="icon" src="../../assets/notice.png" /> <img class="icon" src="../../assets/notice.png" />
<span class="h10_title">尊敬的客户,您的分账规则于 #2021年10月1日 10:20#已经变更,新的规则将于 #2021年10月2日 00:00# 生效,修改人:管理员。</span> <span class="h10_title">尊敬的客户,您的分账规则于 #{{ updateTime }}#已经变更,新的规则将于 #{{ effectTime }} 00:00# 生效,修改人:{{ settleRultData.updatedBy }}。</span>
</div> </div>
<div class="drive_line"></div> <div v-if="updateTime" class="drive_line"></div>
<div class="content_wrap"> <div class="content_wrap">
<div class="time_widget"> <div class="time_widget">
<span class="h11_title">生效时间:2021年10月2日 00:00</span> <span class="h11_title">生效时间:{{ updateTime ? effectTime : settleRultData.updatedDate }}</span>
<div class="time_status">生效中</div> <div v-if="updateTime" class="time_status">待生效</div>
<div v-else class="time_status">已生效</div>
</div> </div>
<rule-table></rule-table> <rule-table :division="divisionRuleData" :settle="settleRultData" :bankData="bankInfo"></rule-table>
</div> </div>
</div> </div>
<div class="list_wrapper"> <div v-if="nodata == 1" class="list_wrapper">
<div class="find_wrap"> <div class="find_wrap">
<div class="date_wrap"> <div class="date_wrap">
<el-date-picker style="width: 160px" size="mini" v-model="startDate" type="date" placeholder="选择日期"></el-date-picker> <el-date-picker :picker-options="pickerOptions" style="width: 160px" size="mini" v-model="startDate" type="date" placeholder="选择日期"></el-date-picker>
</div> </div>
<div style="width: 10px; height: 1px"></div> <div style="width: 10px; height: 1px"></div>
<div class="date_wrap"> <div class="date_wrap">
<el-date-picker style="width: 160px" size="mini" v-model="endDate" type="date" placeholder="选择日期"></el-date-picker> <el-date-picker :picker-options="pickerOptions" style="width: 160px" size="mini" v-model="endDate" type="date" placeholder="选择日期"></el-date-picker>
</div> </div>
<el-button size="mini" type="primary">查询</el-button> <el-button size="mini" type="primary" @click="toFindNote">查询</el-button>
<span class="tip_text">查看分润计算说明</span> <span class="tip_text" @click="computeShow = true">查看分润计算说明</span>
</div> </div>
<div class="timeLine_wrap"> <div v-if="noList == 1" class="timeLine_wrap">
<el-timeline> <el-timeline>
<template v-for="count in 5"> <template v-for="(item, index) in noteList">
<el-timeline-item :key="count" placement="top"> <el-timeline-item :key="index" placement="top">
<div slot="dot" class="dot_line"> <div slot="dot" class="dot_line">
<div class="icon"></div> <div class="icon"></div>
<span class="text">生效时间:2021年01月01日 00:00-至今</span> <span class="text">生效时间:{{ item.effectStartDate }}-{{ item.effectEndDate || '至今' }}</span>
<div class="btn">生效中</div> <div class="btn">已生效</div>
<span v-if="count % 2 != 0" class="tip_text">点击查看详情</span> <span v-if="index" class="tip_text" @click="showTable(item.show, index)">{{ item.show ? '收缩详情' : '点击查看详情' }}</span>
</div> </div>
<div v-if="count % 2 == 0" class="table_con"> <div v-if="item.show" class="table_con">
<rule-table></rule-table> <rule-table :bankData="bankInfo" :division="item.divisionRule" :settle="item.settleRule"></rule-table>
</div> </div>
</el-timeline-item> </el-timeline-item>
</template> </template>
</el-timeline> </el-timeline>
<div class="showMoreBtn h7_title flex_cc"> <div v-if="noteList.length > 10" class="showMoreBtn h7_title flex_cc">
<span>查看更多</span> <span>查看更多</span>
<img class="icon" src="../../assets/down_icon.png" /> <img class="icon" src="../../assets/down_icon.png" />
</div> </div>
</div> </div>
<div v-if="noList == 0" class="no_data h19_title">暂无数据</div>
</div> </div>
<div v-if="nodata == 0 && noList == 0" class="nodata_widget">
<div :style="[{ height: nodataHeight + 'px' }]" class="wrapper">
<img src="../../assets/nodata_icon.png" />
<span class="nodata_tip_1">您暂未开通精品升级服务</span>
<span class="nodata_tip_2">合作开通后,您方可在此页查看精品升级业务合作模式的分账规则,保障合作透明。</span>
</div>
<div :style="[{ height: stepHeight + 'px' }]" class="step_wrap">
<span class="nodata_tip_3">精品合作升级流程</span>
<div class="step flex_scb">
<div class="stepIcon flex_cc">1</div>
<div class="stepLine"></div>
<div class="stepIcon flex_cc">2</div>
<div class="stepLine"></div>
<div class="stepIcon flex_cc">3</div>
</div>
<div class="step_content flex_scb">
<span class="h13_title">联系嘀加精品业务经理,开通此业务</span>
<span class="h13_title">确定合作细则,销售专员转发精品礼券</span>
<span class="h13_title">车主完成精品升级,您获得分账收益</span>
</div>
</div>
</div>
<qrCode :bottom="182" v-if="nodata == 0 && noList == 0"></qrCode>
<el-dialog :visible.sync="computeShow" width="50%" :before-close="handleClose">
<div slot="title" class="dialogTitle">分润计算说明</div>
<div class="dialogContent">
<div class="wrap">
<div class="line_tip">
<div class="h7_title spac">财务配置:</div>
<div class="tip_box">
<span>4s店太阳膜按毛利的30%分润,4s店其他全部按30%分润;服务商太阳膜按70%分润,其他全部按70%分润,</span>
<p class="h16_title">太阳膜的商品成本为2元。</p>
</div>
</div>
<div class="line_tip">
<div class="h7_title spac">分账配置:</div>
<div class="tip_box">
<span>开启线上分账</span>
<div class="points_tip">
<span class="point"></span>
<span class="h17_title">嘀加智慧云分配:平台方分账金额,服务商分账金额,额外成本,市场费</span>
</div>
<div class="points_tip">
<span class="point"></span>
<span class="h17_title">导流方分配:导流方分账金额,产品成本</span>
</div>
</div>
</div>
</div>
<div class="wrap2">
<div class="icon_title">
<img class="icon" src="../../assets/scrm_changjin_icon.png" />
<span class="h18_title spac">场景搭配</span>
</div>
<div class="content1">
<p class="h17_title">场景1:车主购买太阳膜支付10元</p>
<p class="h17_title">POS机手续费¥0.04;实收¥9.96;分账金额¥9.94(支付金额统一按照0.6%扣除手续费)</p>
<p class="h17_title">导流方分润=¥2.38</p>
<p class="h17_title">服务商分润=¥3.89</p>
<p class="h17_title">平台方分润为=¥1.67</p>
</div>
<div class="content1 flex_scb">
<img class="arrow_icon" src="../../assets/scrm_arrow_icon.png" />
<div class="con_box">
<p class="title1">假设分账设置:</p>
<p class="title2">导流方分:商品成本+导流方分润</p>
<p class="title2">嘀加智慧云分:平台方分润+服务商分润</p>
</div>
<div class="con_box">
<p class="title1">实际分账:</p>
<p class="title2">导流方=¥4.38</p>
<p class="title2">嘀加智慧云=¥5.58</p>
</div>
</div>
</div>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { converterApi } from '../../api/modules/converter'
import { getRulesData, getRulesListData } from '../../api/modules/rules'
import ruleTable from './ruleTable.vue' import ruleTable from './ruleTable.vue'
import utils from '../../util/util'
import qrCode from '../../components/qr-code/index.vue'
export default { export default {
name: '', name: '',
components: { components: {
'rule-table': ruleTable 'rule-table': ruleTable,
qrCode
}, },
data() { data() {
return { return {
startDate: '' startDate: '',
endDate: '',
settleRultData: '',
updateTime: null,
effectTime: null,
updatedBy: '',
divisionRuleData: null,
noteList: [],
bankInfo: null,
pageSize: 10,
currentPage: 1,
computeShow: false,
accountLevel: 1,
nodata: 2,
noList: 2,
nodataHeight: 460,
stepHeight: 288,
pickerOptions:{}
}
},
created(){
// this.pickerOptions = this.setDateLimit()
},
mounted() {
const { session } = this.$globalState
let merchantId = session.merchantId
this.merchantId = merchantId
this.accountLevel = session.accountLevel
if (session.accountLevel == 4) {
this.getRulesDataList(merchantId)
this.getRuleNote(merchantId)
}
let clientHeight = document.documentElement.clientHeight
this.nodataHeight = clientHeight * 0.5
this.stepHeight = clientHeight - clientHeight * 0.5 - 133
},
methods: {
// 设置日期组件时间范围
setDateLimit() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startdate = utils.dateFormat(openInfo.openDate)
let obj = {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date(startdate).getTime()
}
}
return obj
},
// 获取分账规则
getRulesDataList(merchantId) {
let method = getRulesData()
let para = {
//44209532
routerMethod: method,
merchantId
}
converterApi(para).then(res => {
this.bankInfo = res.bankInfo
if (!res.bankInfo && !res.divisionRule1 && !res.divisionRule2 && !res.settleRule1 && !res.settleRule2) {
this.nodata = 0
return
}
this.nodata = 1
// 广播时间比较:
if (res.divisionRule2) {
this.divisionRuleData = res.divisionRule2
} else {
this.divisionRuleData = res.divisionRule1
}
if (res.settleRule2) {
this.settleRultData = res.settleRule2
} else {
this.settleRultData = res.settleRule1
}
this.updatedBy = this.settleRultData.updatedBy
this.settleRultData.updatedDate = utils.dateFormat(this.settleRultData.updatedDate)
if (res.divisionRule2 || res.settleRule2) {
let update = res.divisionRule2.updatedDate
this.updateTime = utils.dateFormat(update, 'YYYY-MM-DD HH:mm')
// let update = updatedDateTemp1 > updatedDateTemp2 ? updatedDateTemp1 : updatedDateTemp2
let temp = new Date(update).getTime() + 24 * 60 * 60 * 1000
this.effectTime = utils.dateFormat(temp)
} }
this.divisionRuleData = this.handleMoneyShow(this.divisionRuleData)
})
}, },
mounted() {}, // 处理分账金额显示
methods: {} handleMoneyShow(division) {
if (!division) {
return division
}
let newArr = []
if (division.shopProfitDivisionFlag == 3) {
newArr.push('导流方分账金额')
}
if (division.partnerProfitDivisionFlag == 3) {
newArr.push('服务商分账金额')
}
if (division.goodsCostDivisionFlag == 3) {
newArr.push('产品金额')
}
if (division.extraCostDivisionFlag == 3) {
newArr.push('额外成本')
}
let str = newArr.join(',')
division.inCludeStr = str
return division
},
// 获取分账记录
getRuleNote(merchantId) {
let method = getRulesListData()
let para = {
routerMethod: method,
currentPage: this.currentPage,
pageSize: this.pageSize,
merchantId
}
if (this.startDate) {
para.beginDateStr = utils.dateFormat(this.startDate, 'YYYY-MM-DD 00:00:00')
}
if (this.endDate) {
para.endDateStr = utils.dateFormat(this.endDate, 'YYYY-MM-DD 23:59:59')
}
converterApi(para).then(res => {
if (res.list.length) {
this.noteList = res.list.map(item => {
item.show = false
item.effectStartDate = item.effectStartDate ? utils.dateFormat(item.effectStartDate) : ''
item.effectEndDate = item.effectEndDate ? utils.dateFormat(item.effectEndDate) : ''
item.divisionRule = this.handleMoneyShow(item.divisionRule)
return item
})
this.noteList[0].show = true
this.noList = 1
} else {
this.noteList = []
this.noList = 0
}
})
},
// 展示分账记录表格
showTable(item, index) {
this.noteList[index].show = !item
},
// 查询
toFindNote() {
this.getRuleNote(this.merchantId)
},
// 关闭弹框
handleClose() {
this.computeShow = false
}
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -73,10 +305,11 @@ export default { ...@@ -73,10 +305,11 @@ export default {
// } // }
.top_wrapper { .top_wrapper {
width: 100%; width: 100%;
height: 520px; // min-height: 520px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 17px; margin-top: 17px;
padding-bottom: 15px;
.tip_line { .tip_line {
box-sizing: border-box; box-sizing: border-box;
padding: 22px 20px 25px 20px; padding: 22px 20px 25px 20px;
...@@ -134,6 +367,8 @@ export default { ...@@ -134,6 +367,8 @@ export default {
font-weight: 500; font-weight: 500;
color: #5850ff; color: #5850ff;
cursor: pointer; cursor: pointer;
z-index: 120;
position: relative;
} }
} }
.timeLine_wrap { .timeLine_wrap {
...@@ -178,6 +413,8 @@ export default { ...@@ -178,6 +413,8 @@ export default {
color: #5850ff; color: #5850ff;
margin-left: 10px; margin-left: 10px;
cursor: pointer; cursor: pointer;
z-index: 88;
position: relative;
} }
.showMoreBtn { .showMoreBtn {
position: absolute; position: absolute;
...@@ -197,4 +434,167 @@ export default { ...@@ -197,4 +434,167 @@ export default {
} }
} }
} }
.dialogTitle {
font-size: 20px;
font-weight: 500;
color: #333333;
}
.dialogContent {
.wrap {
background: #f6f6f7;
box-sizing: border-box;
padding: 17px 0 7px 15px;
}
.line_tip {
display: flex;
margin-bottom: 10px;
.tip_box {
font-size: 12px;
font-weight: 400;
color: #333333;
line-height: 20px;
.points_tip {
display: flex;
align-items: center;
.point {
width: 6px;
height: 6px;
background: #5850ff;
border-radius: 50%;
margin-right: 5px;
}
}
}
.spac {
font-weight: bold;
line-height: 20px;
}
}
.wrap2 {
margin-top: 20px;
.icon_title {
display: flex;
align-items: center;
}
.icon {
width: 20px;
height: 20px;
margin-right: 5px;
}
.spac {
font-weight: bold;
}
.content1 {
margin-top: 10px;
box-sizing: border-box;
padding: 0px 25px;
position: relative;
> p {
line-height: 20px;
}
.con_box {
width: calc(50% - 5.5px);
height: 82px;
border: 1px solid #ededed;
box-sizing: border-box;
padding: 15px 20px;
> p {
margin-bottom: 5px;
}
.title1 {
font-size: 12px;
font-weight: 600;
color: #333333;
line-height: 17px;
}
.title2 {
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 17px;
}
}
.arrow_icon {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 14px;
height: 14px;
}
}
}
}
.no_data {
text-align: center;
padding: 20px 0;
}
.nodata_widget {
margin-top: 17px;
.wrapper {
width: 100%;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
// padding: 150px 0 145px 0;
overflow: hidden;
.nodata_tip_1 {
font-size: 18px;
font-weight: 500;
color: #3a3a3a;
margin-top: 48px;
}
.nodata_tip_2 {
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
margin-top: 9px;
}
}
.step_wrap {
width: 100%;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 10px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.nodata_tip_3 {
font-size: 16px;
font-weight: 500;
color: #000000;
margin-bottom: 40px;
}
.step,
.step_content {
width: 100%;
box-sizing: border-box;
padding: 0 50px;
}
.step {
padding: 0 146px;
}
.step_content {
margin-top: 22px;
}
.stepLine {
width: 42%;
height: 1px;
background: #1890ff;
}
.stepIcon {
width: 32px;
height: 32px;
background: #5850ff;
font-size: 14px;
font-weight: 400;
color: #ffffff;
border-radius: 50%;
}
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
<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 \ 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 \ No newline at end of file
<template>
<div class="order-container">
<div class="find_wrap">
<div class="left_widget">
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">客户姓名</div>
<el-input size="mini" class="find_width" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="customName"></el-input>
</div>
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">核销状态</div>
<el-select class="find_width" clearable size="mini" v-model="hxstatus" placeholder="请选择">
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">领用时间</div>
<el-date-picker :picker-options="pickerOptions" class="find_width" clearable size="mini" v-model="dateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
<div class="cell_wrapper flex_sc">
<my-drop-menu :options="employeeNameList" @getValue="changeEmploy">
<div slot="right_con">
<el-select class="find_width" clearable size="mini" v-model="employeeName" placeholder="请选择">
<el-option v-for="item in employeeNameData" :key="item" :label="item" :value="item"></el-option>
</el-select>
</div>
</my-drop-menu>
</div>
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">手机号</div>
<el-input class="find_width" clearable size="mini" placeholder="请输入" suffix-icon="el-icon-search" v-model="phoneNum"></el-input>
</div>
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">核销时间</div>
<el-date-picker class="find_width" :picker-options="pickerOptions" clearable size="mini" v-model="hxdateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
</div>
<div v-if="!showNewLine" class="right_widget">
<div class="cell_wrapper flex_sc">
<el-button size="mini" @click="toshowDialog">查看礼券</el-button>
<el-button size="mini" @click="toExport">导出数据</el-button>
</div>
<div style="height: 2px"></div>
<div class="cell_wrapper flex_sc">
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary" @click="toHandlerFindParam">查询</el-button>
</div>
</div>
</div>
<div v-if="showNewLine" class="find_wrap flex_wrap_new">
<el-button size="mini" @click="toshowDialog">查看礼券</el-button>
<el-button size="mini" @click="toExport">导出数据</el-button>
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary" @click="toHandlerFindParam">查询</el-button>
</div>
<div class="table_wrap">
<GLTable ref="table" :hasNum="false" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="toGetCouponsList"></GLTable>
</div>
<el-dialog width="60%" :visible.sync="dialogTableVisible">
<div slot="title" class="customTitle">
<div class="title1">共计{{ tabletotal1 }}条数据</div>
<span class="h9_title">门店新车精品礼券由</span>
<span class="title2">专属顾问</span>
<span class="h9_title">进行配置,如需新增详情请联系管理员。</span>
</div>
<GLTable ref="table1" :layout="layout1" :pageConf="pageConf1" :tableTotal="tabletotal1" :hasNum="false" :tableData="tableData1" :tableParams="tableParams1" @refreshTable="toOpenCoupons"></GLTable>
</el-dialog>
</div>
</template>
<script>
import myDropMenu from '../../components/down-menu/index.vue'
import { findCoupons, checkCoupons, exportCoupons, getEmployName } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
export default {
name: '',
components: {
'my-drop-menu': myDropMenu
},
data() {
return {
layout: 'sizes, prev, pager, next, jumper, ->, total',
layout1: 'sizes, prev, pager, next, jumper, ->, total',
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
pageConf1: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: {
tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '领用时间',
prop: 'createdDate'
},
{
label: '客户姓名',
prop: 'customerName'
},
{
label: '手机号',
prop: 'customerPhone'
},
{
label: '礼券名称',
prop: 'couponName'
},
{
label: '发券人',
prop: 'employeeName'
},
{
label: '核销状态',
prop: 'status',
width: '100px'
},
{
label: '转化人',
prop: 'sellerName'
},
{
label: '核销时间',
prop: 'usedTime'
}
]
},
tableParams1: {
tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '礼券批次号',
prop: 'merchantCouponCode'
},
{
label: '礼券名称',
prop: 'couponName'
},
{
label: '适用产品',
prop: 'couponTypeName'
},
{
label: '总数',
prop: 'amount'
},
{
label: '余量',
prop: 'remainAmount'
},
{
label: '发放',
prop: 'getAmount',
width: '100px'
},
{
label: '核销',
prop: 'usedAmount'
},
{
label: '配置时间',
prop: 'createdDate'
}
]
},
tableData: [],
tableData1: [],
tableTotal: 0,
tabletotal1: 0,
statusList: [
{
value: 'Y',
label: '已核销'
},
{
value: 'N',
label: '待核销'
}
],
employeeNameList: [
{
label: '发券人',
value: '1'
},
{
label: '转化人',
value: '2'
}
],
employeeNameData: [],
dialogTableVisible: false,
currentPage1: 1,
pageSize1: 10,
// 查询条件
customName: '',
hxstatus: '',
dateBetween: '',
columType: 0,
hxdateBetween: '',
phoneNum: '',
employeeName: '',
// 日期限制
pickerOptions: {},
screenWidth: document.body.clientWidth,
showNewLine: false
}
},
watch: {
screenWidth: {
immediate: true,
handler(newValue) {
if (newValue < 1400) {
this.showNewLine = true
} else {
this.showNewLine = false
}
}
}
},
created() {
// this.pickerOptions = this.setDateLimit()
},
mounted() {
this.toGetCouponsList()
this.toOpenCoupons()
let that = this
window.addEventListener('resize', () => {
let width = document.body.clientWidth
that.screenWidth = width
})
},
methods: {
// 设置日期组件时间范围
setDateLimit() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startdate = utils.dateFormat(openInfo.openDate)
let obj = {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date(startdate).getTime()
}
}
return obj
},
// 发券人切换
changeEmploy(e) {
this.columType = e
this.getEmployNameList(e)
},
clearFind() {
let params = {}
this.customName = ''
this.hxstatus = ''
this.dateBetween = ''
this.columType = ''
this.hxdateBetween = ''
this.phoneNum = ''
this.employeeName = ''
this.toGetCouponsList(params)
},
// 处理查询条件
toHandlerFindParam() {
let params = {}
if (this.customName) {
//客户姓名
params.customerName = this.customName
}
if (this.hxstatus) {
//核销状态
params['usedFlagList[0]'] = this.hxstatus
}
if (this.dateBetween) {
//领用时间
let startDate = utils.dateFormat(this.dateBetween[0], 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.dateBetween[1], 'YYYY-MM-DD 23:59:59')
params.startDate = startDate
params.endDate = endDate
}
//发券人
if (this.employeeName && this.columType) {
params.columType = this.columType
let name = this.columType == 1 ? 'employeeNameList[0]' : 'sellerNameList[0]'
params[name] = this.employeeName
}
if (this.hxdateBetween) {
// 核销时间
let startDate = utils.dateFormat(this.hxdateBetween[0], 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.hxdateBetween[1], 'YYYY-MM-DD 23:59:59')
params.startUsedTime = startDate
params.endUsedTime = endDate
}
if (this.phoneNum) {
// 手机号
params.customerPhone = this.phoneNum
}
this.toGetCouponsList(params)
},
toshowDialog() {
this.dialogTableVisible = true
},
toGetCouponsList(params = {}) {
let method = findCoupons()
let para = {
routerMethod: method,
currentPage: this.$refs.table.page.pageNum,
pageSize: this.$refs.table.page.pageSize,
...params
}
converterApi(para).then(res => {
this.tableData = res.list.map(item => {
item.createdDate = utils.dateFormat(item.createdDate, 'YYYY-MM-DD HH:mm:ss')
item.usedTime = item.usedTime ? utils.dateFormat(item.usedTime, 'YYYY-MM-DD HH:mm:ss') : '--'
item.status = item.usedFlag == 'Y' ? '已核销' : '待核销'
item.sellerName = item.sellerName || '--'
item.couponName = `${item.couponName}${item.customerCouponCode}`
return item
})
this.tableTotal = res.total
this.httpParam = {
currentPage: this.$refs.table.page.pageNum,
pageSize: this.$refs.table.page.pageSize,
...params
}
})
},
toOpenCoupons() {
const { session } = this.$globalState
let merchantId = session.merchantId
let method = checkCoupons()
let para = {
routerMethod: method,
currentPage: this.dialogTableVisible ? this.$refs.table1.page.pageNum : 1,
pageSize: this.dialogTableVisible ? this.$refs.table1.page.pageSize : 10,
merchantId,
orderType: 6
}
converterApi(para).then(res => {
this.tabletotal1 = res.total
this.tableData1 = res.list.map(item => {
item.createdDate = item.createdDate ? utils.dateFormat(item.createdDate, 'YYYY-MM-DD HH:mm:ss') : '--'
item.couponTypeName = item.couponInfo.couponTypeName
return item
})
})
},
toExport() {
let method = exportCoupons()
let para = {
routerMethod: method,
...this.httpParam
}
converterApi(para).then(res => {
let tempaa = utils.getExplorer()
if (tempaa == 'QQ') {
window.open(res)
return
}
let iframe = document.createElement('iframe')
iframe.style.display = 'none'
iframe.src = res
document.body.appendChild(iframe)
})
},
// 获取发券人和转化人列表
getEmployNameList(type) {
let method = getEmployName()
let para = {
routerMethod: method,
columType: type,
currentPage: 1,
pageSize: 100
}
converterApi(para).then(res => {
this.employeeNameData = res
})
}
}
}
</script>
<style lang="scss" scoped>
.find_wrap {
box-sizing: border-box;
padding: 9px 0px;
display: flex;
position: relative;
.left_widget {
flex: 3;
display: flex;
align-items: center;
flex-wrap: wrap;
box-sizing: border-box;
}
.right_widget {
flex: 0.2;
box-sizing: border-box;
padding-right: 15px;
}
.cell_wrapper {
box-sizing: border-box;
display: flex;
align-items: center;
margin-bottom: 18px;
.cell_label {
text-align: right;
padding-right: 15px;
white-space: nowrap;
width: 80px;
}
.cell_btn {
width: 78px;
}
.cell_btn_max {
width: 156px;
}
}
.cell_wrapper /deep/ .el-select .el-input--mini .el-input__inner {
// border-left: none;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.find_width {
width: 215px;
}
.cell_position {
position: absolute;
bottom: 9px;
right: 15px;
}
.cell_position_next {
position: absolute;
bottom: -18px;
right: 15px;
}
.cell_position_export {
position: absolute;
bottom: 56px;
right: 15px;
}
}
.flex_wrap_new{
display: flex;
align-items: center;
justify-content: flex-end;
box-sizing: border-box;
padding-right: 15px;
.cell_btn {
width: 78px;
}
}
.table_wrap {
padding: 0 15px;
padding-bottom: 10px;
}
.customTitle {
display: flex;
align-items: center;
.title1 {
font-size: 20px;
font-weight: 500;
color: #333333;
margin-right: 11px;
}
.title2 {
font-size: 14px;
font-weight: 400;
color: #5850ff;
}
}
</style>
<template> <template>
<div class="guest-container"> <div v-if="accountLevel == 4" class="guest-container">
<div class="top_tip_title"> <div class="top_tip_title">
<span class="h6_title">客户评价使用场景</span> <span class="h6_title fw">客户评价使用场景</span>
<div class="toNext_widget"> <!-- <div class="toNext_widget">
<span class="h7_title">查看效果演示</span> <span class="h7_title">查看效果演示</span>
<i class="el-icon-d-arrow-right"></i> <i class="el-icon-d-arrow-right"></i>
</div> </div> -->
</div> </div>
<div class="tip_wrap"> <div class="tip_wrap">
<span class="h5_title">车主精品升级服务施工完成后,系统会通过微信小程序通知自动提醒客户取车,并且邀请客户好评,客户完成评价后,门店可以在对应的“订单-查看明细”中查看评价。</span> <span class="h5_title">车主精品升级服务施工完成后,系统会通过微信小程序通知自动提醒客户取车,并且邀请客户好评,客户完成评价后,门店可以在对应的“订单-查看明细”中查看评价。</span>
</div> </div>
<div class="box_wrapper"> <div class="box_wrapper">
<div class="box_1 flex-cc"> <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"> <div class="h8_title">
<span>7878</span> <span>{{ messageData.commentCount || 0 }}</span>
<span style="margin-left: 5px" class="h7_title">人</span> <span style="margin-left: 5px" class="h7_title">人</span>
</div> </div>
<span class="h9_title">(累计)施工完成客户数:10000</span> <span class="h9_title">(累计)施工完成客户数:{{ messageData.constructedCount || 0 }}</span>
</div> </div>
<div class="box_1 flex-cc"> <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"> <div class="h8_title">
<span>7878</span> <span>{{ messageData.goodCommentCount || 0 }}</span>
<span style="margin-left: 5px" class="h7_title">人</span> <span style="margin-left: 5px" class="h7_title">人</span>
</div> </div>
<span style="height: 20px" class="h9_title"></span> <span style="height: 20px" class="h9_title"></span>
...@@ -30,49 +32,71 @@ ...@@ -30,49 +32,71 @@
<div class="box_1 box_2 flex-ca"> <div class="box_1 box_2 flex-ca">
<div class="box_con"> <div class="box_con">
<div class="circle_wrap"> <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> </div>
<span class="h7_title">客户评价率</span> <span class="h7_title fw">客户评价率</span>
</div> </div>
<div class="box_con"> <div class="box_con">
<div class="circle_wrap"> <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> </div>
<span class="h7_title">客户好评率</span> <span class="h7_title fw">客户好评率</span>
</div> </div>
</div> </div>
</div> </div>
<div class="tip_title"> <div class="tip_title">
<span class="h6_title">客评</span> <span class="h6_title fw">客评效果预览</span>
</div> </div>
<div class="image_show"> <div class="image_show">
<div class="image_wrap"> <div class="image_wrap">
<span class="h9_title">小程序通知</span> <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> </div>
<img src="../../assets/scrm_arrow_radiu_icon.png">
<div class="image_wrap"> <div class="image_wrap">
<span class="h9_title">客评内容</span> <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> </div>
<div style="height:20px"></div> <div style="height: 20px"></div>
</div> </div>
</template> </template>
<script> <script>
import { guestComTotal } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
export default { export default {
name: '', name: '',
data() { data() {
return {} return {
messageData: {},
accountLevel: 4
}
},
created() {
const { session } = this.$globalState
this.accountLevel = session.accountLevel
this.getCompentData()
}, },
mounted() {}, mounted() {},
methods: {} methods: {
// 获取客户评价
getCompentData() {
let method = guestComTotal()
let para = {
routerMethod: method
}
converterApi(para).then(res => {
this.messageData = res
})
}
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.guest-container { .guest-container {
width: 100%; width: 100%;
// height: calc(100% - 17px); // height: calc(100% - 17px);
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 17px; margin-top: 17px;
...@@ -84,6 +108,9 @@ export default { ...@@ -84,6 +108,9 @@ export default {
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
padding: 20px 19px 15px 21px; padding: 20px 19px 15px 21px;
// > span {
// font-weight: 500;
// }
.toNext_widget { .toNext_widget {
cursor: pointer; cursor: pointer;
display: flex; display: flex;
...@@ -109,9 +136,13 @@ export default { ...@@ -109,9 +136,13 @@ export default {
padding: 17px 19px 19px 21px; padding: 17px 19px 19px 21px;
.box_1 { .box_1 {
width: calc(30% - 10px); width: calc(30% - 10px);
height: 120px; height: 180px;
border-radius: 4px; border-radius: 4px;
border: 1px solid #d8d8d8; border: 1px solid #d8d8d8;
.box_icon {
width: 40px;
height: 40px;
}
} }
.box_2 { .box_2 {
width: calc(40% - 10px); width: calc(40% - 10px);
...@@ -144,16 +175,24 @@ export default { ...@@ -144,16 +175,24 @@ export default {
.image_show { .image_show {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-around; justify-content: center;
margin-top: 10px; margin-top: 10px;
overflow: hidden;
.image_wrap { .image_wrap {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
>span{ > span {
margin-bottom: 10px; margin-bottom: 10px;
} }
>img{
width: 290px;
height: 83%;
}
} }
} }
.fw{
font-weight: bold;
}
</style> </style>
\ No newline at end of file \ 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 \ No newline at end of file
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
</template> </template>
<script> <script>
import {isOpenUpgrade} from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
export default { export default {
name: 'index', name: 'index',
data() { data() {
...@@ -12,13 +14,23 @@ export default { ...@@ -12,13 +14,23 @@ export default {
}, },
created() { created() {
// 默认进入精品升级页面 // 默认进入精品升级页面
this.$router.push('/inSale/upgrade') this.judgeOpen()
}, },
mounted() { 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> </script>
<template>
<div class="introduct-container">
<div class="wrap_con flex_scb">
<div class="text_wrap">
<span>《嘀加企微管家》</span>
<div class="maxText">
<span>
给您一套
<span style="font-size: 42px">帮你变现</span>
的服务系统
</span>
</div>
</div>
<div class="bg_wrap flex_cc">
<img class="max_icon" src="../../assets/intro_max_bg.png" />
<img @click="videoShow = true" class="play_icon" src="../../assets/play_icon.png" />
</div>
</div>
<div class="wrap_con_mid" :style="showCase ? 'padding-bottom:0' : 'padding-bottom:20px'">
<div class="first_con">
<template v-for="(item, index) in localList">
<div :key="index" class="box_con">
<img class="icon" :src="item.icon" />
<p class="title">{{ item.title }}</p>
<div style="height: 15px"></div>
<p class="h9_title">{{ item.desc }}</p>
<p v-if="item.miniDesc" class="h9_title">{{ item.miniDesc }}</p>
<div v-if="!item.miniDesc" style="height: 14px"></div>
<div style="height: 23px"></div>
<div class="btn_text h13_title flex_scb">
<span>{{ item.btnTitle }}</span>
<span class="btnTextBlue" @click="openDraw(index)">
查看案例
<i class="el-icon-d-arrow-right"></i>
</span>
</div>
</div>
</template>
</div>
<div v-if="showCase" class="sec_con" :class="[{ custH: curShowCaseIndex == 1 }]">
<div class="case_content">
<caseOne v-if="curShowCaseIndex == 0"></caseOne>
<caseThree v-if="curShowCaseIndex == 1"></caseThree>
<caseTwo v-if="curShowCaseIndex == 2"></caseTwo>
</div>
<img v-if="curShowCaseIndex == 0" class="bg_icon" :src="imagBaseURL + 'scrm_intro_1.png'" />
<img v-if="curShowCaseIndex == 1" class="bg_icon" :src="imagBaseURL + 'scrm_intro_2.png'" />
<img v-if="curShowCaseIndex == 2" class="bg_icon" :src="imagBaseURL + 'scrm_intro_3.png'" />
</div>
<div v-if="showCase" class="thr_con flex_cc">
<div class="btn" @click="showCase = false">
<span class="h18_title">收缩详情</span>
<img @click="showCase = false" src="../../assets/updown_icon.png" />
</div>
</div>
</div>
<div class="wrap_con_foot">
<div class="title">服务收益在线评估</div>
<div class="wrap_line">
<div class="line_left flex_sc">
<div class="cell flex_sc">
<div class="label h13_title">门店月平均新车销量</div>
<el-input style="width: 215px" maxlength="5" clearable size="mini" v-model="num1">
<template slot="append">台</template>
</el-input>
<span v-if="(!num1 && checked) || numberCheck1" :class="[{ err2: numberCheck1 }]" class="error_tip">{{ errorMessage1 }}</span>
</div>
<div style="width: 30px; height: 1px"></div>
<div class="cell flex_sc">
<div class="label h13_title">门店数</div>
<el-input style="width: 215px" maxlength="5" clearable size="mini" v-model="num2">
<template slot="append">家</template>
</el-input>
<span v-if="(!num2 && checked) || numberCheck2" :class="[{ err2: numberCheck2, err4: errorMessage2.length == 8 }]" class="error_tip err3">{{ errorMessage2 }}</span>
</div>
<div style="width: 30px; height: 1px"></div>
<el-button size="mini" type="primary" @click="computedInfo">计算</el-button>
</div>
</div>
<div class="wrap_pie_con">
<div class="titlemin h13_title flex_sc">
<span>结果预测</span>
<img @mouseenter="showTip = true" @mouseleave="showTip = false" src="../../assets/intro.png" alt="" />
</div>
<div v-if="showTip" class="tipContentClass">
<div class="title_1">说明</div>
<p class="h20_title">单店产值计算公式:用户量*渗透率*客单价</p>
<div class="single"></div>
<div class="single1"></div>
</div>
<div class="new_chart_container">
<div class="left_con">
<div class="maxTextPrice">
<span class="h13_title">总产值</span>
<span v-if="totalProduct" class="blueText">{{ totalProduct }}/年</span>
<span v-else class="blueText">--</span>
</div>
<div style="height: 20px"></div>
<div class="maxTextPrice">
<span class="h13_title">单店产值</span>
<span v-if="singleProduct" class="blueText">{{ singleProduct }}/年</span>
<span v-else class="blueText">--</span>
</div>
</div>
<div class="main_icon_wrap flex_cc">
<i class="el-icon-d-arrow-right"></i>
</div>
<div class="chart_wrapper">
<pie ref="mypie" echartId="myPie"></pie>
</div>
</div>
</div>
</div>
<qrCode></qrCode>
<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>
</el-dialog>
</div>
</template>
<script>
import pie from '../../components/service-echart/pie.vue'
import caseOne from '../../components/intro-case/case_one.vue'
import caseTwo from '../../components/intro-case/case_two.vue'
import caseThree from '../../components/intro-case/case_three.vue'
import qrCode from '../../components/qr-code/index.vue'
const imagBaseURL = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/'
export default {
name: '',
components: {
pie,
caseOne,
caseTwo,
caseThree,
qrCode
},
data() {
return {
imagBaseURL,
num1: '',
num2: 1,
checked: false,
totalProduct: 0,
singleProduct: 0,
showTip: false,
errorMessage1: '门店月平均新车销量不能为空',
errorMessage2: '门店数不能为空',
numberCheck1: false,
numberCheck2: false,
showQRCode: false,
localList: [
{
title: '新车售前打包增值方案',
desc: '4S店会员权益服务——赚钱、锁客两不误',
miniDesc: null,
btnTitle: '帮您年度产值增加50万',
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/scrm_tro_one.png'
},
{
title: '精品售中升级',
desc: '驻店升级转化精品——帮助门店新车流量',
miniDesc: '托管式增值变现',
btnTitle: '帮门店年度产值增值70W+',
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/scrm_tro_two.png'
},
{
title: '售后代运营服务',
desc: '企微魔方帮用户沉淀企微——精准推荐、',
miniDesc: '直播实现复购变现',
btnTitle: '帮您售后产值增加20W/年',
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/scrm_tro_three.png'
}
],
showCase: false,
curShowCaseIndex: 0,
videoShow: false
}
},
mounted() {},
methods: {
// 总产值=总售前产值+总售中产值+总售后产值;单店产值=总产值/门店数量;
// 售前权益新增产值(简称:售前产值)=新车销量*12(个月)*30%(渗透率)*2000(平均客单价);
// 售中精品新增产值(简称:售中产值)=新车销量*12(个月)*45%(渗透率)*1350(平均客单价);
// 售后代运营产值(简称:售后产值)=新车销量*12(个月)*3(触达3年的用户)*12%(渗透率)*500(平均客单价);
// temp.preSalePermeability = temp.preSalePermeability || '售前权益渗透率'
// temp.preSaleUnitPrice = temp.preSaleUnitPrice || '售前权益客单价'
// temp.onSalePermeability = temp.onSalePermeability || '售中精品渗透率'
// temp.onSaleUnitPrice = temp.onSaleUnitPrice || '售中精品客单价'
// temp.afterSalePermeability = temp.afterSalePermeability || '售后代运营渗透率'
// temp.afterSaleUnitPrice = temp.afterSaleUnitPrice || '售后代运营客单价'
// 新车销量 num1 门店数num2
computedInfo() {
if (!this.num1 || !this.num2) {
this.checked = true
this.errorMessage1 = '门店月平均新车销量不能为空'
this.errorMessage2 = '门店数不能为空'
setTimeout(() => {
this.checked = false
}, 1500)
return
}
let posPattern = /^\d*\.?\d+$/
if (!posPattern.test(this.num1)) {
this.numberCheck1 = true
this.errorMessage1 = '请输入正确的数字格式'
setTimeout(() => {
this.numberCheck1 = false
}, 1500)
return
}
if (!posPattern.test(this.num2)) {
this.numberCheck2 = true
this.errorMessage2 = '请输入正确的数字格式'
setTimeout(() => {
this.numberCheck2 = false
}, 1500)
return
}
if (this.num1 == 0) {
this.numberCheck1 = true
this.errorMessage1 = '门店新车销量不能小于0'
setTimeout(() => {
this.numberCheck1 = false
}, 1500)
return
}
if (this.num2 == 0) {
this.numberCheck2 = true
this.errorMessage2 = '门店数不能小于0'
setTimeout(() => {
this.numberCheck2 = false
}, 1500)
return
}
let num1 = parseInt(this.num1)
let num2 = parseInt(this.num2)
let obj = this.$refs.mypie.computeProduct(num1, num2)
this.totalProduct = obj.totalProduct
this.singleProduct = obj.singleProduct
},
openDraw(index) {
this.showCase = true
this.curShowCaseIndex = index
},
handleClose() {
this.videoShow = false
}
}
}
</script>
<style lang="scss" scoped>
.wrap_con {
width: 100%;
height: 360px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box;
padding-right: 80px;
.text_wrap {
box-sizing: border-box;
padding-left: 44px;
display: flex;
flex-direction: column;
justify-content: center;
position: relative;
> span {
font-size: 16px;
font-weight: 400;
color: #666666;
}
.maxText {
font-size: 30px;
font-weight: 500;
color: #000000;
margin-top: 10px;
}
}
.bg_wrap {
width: 480px;
height: 270px;
position: relative;
.max_icon {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
z-index: 1;
}
.play_icon {
position: relative;
z-index: 2;
cursor: pointer;
}
}
}
.wrap_con_mid {
// height: 270px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 10px;
padding: 20px 20px 0 20px;
.first_con {
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
.box_con {
width: 31.6%;
height: 100%;
background: #ffffff;
border-radius: 2px;
border: 1px solid #eae9ee;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.icon {
width: 40px;
height: 40px;
margin-top: 20px;
margin-bottom: 30px;
}
.title {
font-size: 18px;
font-weight: 600;
color: #333333;
}
.tip {
margin-top: 15px;
margin-bottom: 41px;
}
.btn_text {
margin-bottom: 30px;
}
.btnTextBlue {
font-size: 14px;
font-weight: 500;
color: #5850ff;
margin-left: 30px;
cursor: pointer;
> i {
margin-left: 14px;
}
}
}
}
.sec_con {
box-sizing: border-box;
margin-top: 10px;
height: 344px;
background: #ffffff;
position: relative;
.bg_icon {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
}
.case_content {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: calc(100% - 15px);
z-index: 2;
}
}
.custH {
height: 398px;
}
.thr_con {
height: 56px;
.btn {
cursor: pointer;
> img {
margin-left: 5px;
width: 10px;
height: 9px;
}
}
}
}
.wrap_con_foot {
height: 300px;
margin-top: 10px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
.title {
box-sizing: border-box;
font-size: 18px;
font-weight: 600;
color: #333333;
padding: 20px 0 10px 21px;
}
.wrap_line {
display: flex;
align-items: center;
box-sizing: border-box;
padding: 0 20px 0px 21px;
.line_left {
width: 100%;
.cell {
position: relative;
.error_tip {
position: absolute;
right: 56px;
bottom: -16px;
font-size: 11px;
color: #ee3527;
z-index: 22;
}
.err3 {
right: 129px;
}
.err2 {
right: 96px;
}
.err4 {
right: 129px;
}
}
.label {
margin-right: 15px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
.wrap_pie_con {
// margin: 20px 0;
height: 235px;
background: #ffffff;
// border-radius: 2px;
// border: 1px solid #eae9ee;
position: relative;
.tipContentClass {
position: absolute;
left: 104px;
top: -3px;
// width: 240px;
// height: 94px;
background: #ffffff;
box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 3px 6px -4px rgba(0, 0, 0, 0.12);
border: 1px solid #e4e7ed;
z-index: 999;
box-sizing: border-box;
padding: 10px 9px;
.title_1 {
font-size: 12px;
font-weight: bold;
color: #333333;
z-index: 999;
position: relative;
}
> p {
z-index: 999;
position: relative;
margin-top: 10px;
line-height: 18px;
}
.single {
position: absolute;
left: -5px;
top: 15px;
// transform: translate(0, -50%);
width: 10px;
height: 10px;
background: #ffffff;
transform: rotate(-60deg);
border: 1px solid #e4e7ed;
z-index: -1;
}
.single1 {
position: absolute;
left: 0px;
top: 50%;
transform: translate(0, -50%);
width: 20px;
height: 100%;
background: #ffffff;
z-index: 22;
}
}
.titlemin {
padding: 20px 0 0 20px;
> img {
width: 12px;
height: 12px;
margin-left: 5px;
cursor: pointer;
}
}
.new_chart_container {
margin: 20px;
display: flex;
align-items: center;
height: 150px;
background: #ffffff;
border-radius: 2px;
border: 1px solid #eae9ee;
.left_con {
width: 30%;
padding-left: 20px;
.maxTextPrice {
.blueText {
font-size: 20px;
font-weight: 600;
color: #5850ff;
margin-left: 10px;
}
}
}
.main_icon_wrap {
height: 100%;
margin-right: 76px;
> i {
color: #5850ff;
font-size: 20px;
}
}
.chart_wrapper {
width: 50%;
height: 150px;
}
}
// .text_line {
// margin-top: 19px;
// box-sizing: border-box;
// padding-left: 20px;
// .maxTextPrice {
// .blueText {
// font-size: 20px;
// font-weight: 600;
// color: #5850ff;
// margin-left: 10px;
// }
// }
// .spc {
// margin-left: 150px;
// }
// }
.chart_wrap {
width: 50%;
height: 152px;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="order-container">
<div class="tip_wrap flex_scb">
<div class="tip_text">
<p class="h14_title">合作了精品升级业务且开启了自动分账功能的商户,在“线上分账”列表中可查看分账明细,未开启线上自动分账或者因各种</p>
<div style="height: 10px"></div>
<p class="h14_title">其他因素导致未分账成功的,在线下对账中查看,统一下个月月初结算上个月订单。</p>
</div>
<div class="tip_btn flex_scb">
<el-button size="mini" :type="curDivisionType == 2 ? 'primary' : ''" @click="changDivisionType(2)">线上分账</el-button>
<el-button size="mini" :type="curDivisionType == 1 ? 'primary' : ''" @click="changDivisionType(1)">线下对账</el-button>
</div>
</div>
<div class="tip_wrap_line"></div>
<div class="find_wrap">
<div class="left_widget">
<div v-if="curDivisionType == 2" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">分账时间</div>
<el-date-picker class="find_width" :picker-options="pickerOptions" size="mini" clearable v-model="divisionTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">支付时间</div>
<el-date-picker class="find_width" :picker-options="pickerOptions" size="mini" clearable v-model="payTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
<div v-if="accountLevel == 4 && curDivisionType == 2" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">分账状态</div>
<el-select class="find_width" clearable size="mini" v-model="divisionTypeStatus" placeholder="请选择">
<el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div v-if="accountLevel == 3" 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="请选择">
<el-option v-for="item in list" :key="item.id" :label="item.merchantName" :value="item.id"></el-option>
</el-select>
</div>
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">主订单编号</div>
<el-input class="find_width" size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="orderNum"></el-input>
</div>
<div v-if="accountLevel != 4 && curDivisionType == 2" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">分账状态</div>
<el-select class="find_width" clearable size="mini" v-model="divisionTypeStatus" placeholder="请选择">
<el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div v-if="accountLevel == 4" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">商品名称</div>
<el-input class="find_width" size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="goodsName"></el-input>
</div>
<div v-if="accountLevel < 3" class="cell_wrapper flex_sc">
<div v-if="accountLevel == 2" class="cell_label h13_title">市级经销商</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" clearable size="mini" filterable v-model="curMerchantNo" placeholder="请选择" @change="selectCurMechant">
<el-option v-for="item in list" :key="item.id" :label="item.merchantName" :value="item.merchantNo"></el-option>
</el-select>
</div>
<selectSearch ref="myNewSelect" :show="curMerchantNo ? true : false" @getId="getCurStoreId"></selectSearch>
</div>
<div class="right_widget">
<div class="cell_wrapper flex_sc">
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary" @click="handlerParams">查询</el-button>
</div>
</div>
</div>
<div class="tipper flex_scb">
<div class="tip_text">
<span>共</span>
<sapn style="color: #5850ff">{{ mytotalNumData.orderCount }}</sapn>
<span>笔订单,累计{{ curDivisionType == 1 ? '线下对账' : '线上分账' }}金额</span>
<span style="color: #5850ff">{{ curDivisionType == 1 ? mytotalNumData.offlineDivisionMoneyCount : mytotalNumData.onlineDivisionMoneyCount }}</span>
<template v-if="curDivisionType == 1">
<span>元</span>
</template>
<template v-if="curDivisionType == 2">
<span>元(分账成功金额</span>
<span style="color: #5850ff">{{ mytotalNumData.divisionSuccessMoneyCount }}</span>
<span>元,分账中金额</span>
<span style="color: #5850ff">{{ mytotalNumData.inDivisionMoneyCount }}</span>
<span>元,分账失败金额</span>
<span style="color: #5850ff">{{ mytotalNumData.divisionFailureMoneyCount }}</span>
<span>元,待分账金额</span>
<span style="color: #5850ff">{{ mytotalNumData.waitingDivisionMoneyCount }}</span>
<span>元)。</span>
</template>
</div>
<!-- <div class="right_select">
<el-select class="myfindWidth" size="mini" collapse-tags multiple clearable v-model="fieldListData" placeholder="请选择要展示的字段">
<el-option v-for="item in fieldList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div> -->
</div>
<div :hidden="curDivisionType == 1" class="table_wrap">
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="toGetMyDivision"></GLTable>
<!-- <GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams1" @refreshTable="toGetMyDivision"></GLTable> -->
</div>
<div :hidden="curDivisionType == 2" class="table_wrap">
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams1" @refreshTable="toGetMyDivision"></GLTable>
</div>
</div>
</template>
<script>
import { mydivision, exportMydivision, myAccountTotalNumOfJT } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
const divistionStatus = ['待分账', '分账中', '分账成功', '分账失败']
import selectSearch from '../../components/search-select/index.vue'
export default {
name: '',
components: {
selectSearch
},
props: {
list: Array
},
data() {
return {
timeOptions: [
{
value: 1,
label: '分账时间'
},
{
value: 2,
label: '支付时间'
}
],
timeChangeName: '分账时间',
disivionOptions: [
{
value: 1,
label: '待分账'
},
{
value: 2,
label: '分账中'
},
{
value: 3,
label: '分账成功'
},
{
value: 4,
label: '分账失败'
}
],
numOptions: [
{
value: 1,
label: '主订单编号'
},
{
value: 2,
label: '交易参考号'
}
],
orderNumName: '主订单编号',
layout: 'sizes, prev, pager, next, jumper, ->, total',
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableTotal: 0,
tableParams2: {
tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '主订单编号',
prop: 'orderCode',
width: '200px'
},
{
label: '子订单编号',
prop: 'subOrderCode',
width: '200px'
},
{
label: '客户姓名',
prop: 'customerName',
width: '110px'
},
{
label: '车架号',
prop: 'standNo',
width: '110px'
},
{
label: '分账账户',
prop: 'realityMerchantName',
width: '200px'
},
{
label: '总分账金额(元)',
prop: 'divisionMoney',
width: '110px'
},
{
label: '导流方名称',
prop: 'merchantName',
width: '200px'
},
{
label: '园区店名',
prop: 'sellerMerchantName',
width: '200px'
},
{
label: '分账类型',
prop: 'divisionTypeName',
width: '110px'
},
{
label: '分账状态',
prop: 'divisionStatusName',
width: '110px'
},
{
label: '分账时间',
prop: 'divisionDate',
width: '200px'
},
{
label: '支付时间',
prop: 'successDate',
width: '200px'
},
{
label: '商品编号',
prop: 'upgradeGoodsCommodityCode',
width: '200px'
},
{
label: '商品名称',
prop: 'upgradeGoodsName',
width: '200px'
}
]
},
tableParams1: {
tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '主订单编号',
prop: 'orderCode',
width: '200px'
},
{
label: '子订单编号',
prop: 'subOrderCode',
width: '200px'
},
{
label: '客户姓名',
prop: 'customerName',
width: '110px'
},
{
label: '车架号',
prop: 'standNo',
width: '110px'
},
{
label: '分账账户',
prop: 'realityMerchantName',
width: '200px'
},
{
label: '总分账金额(元)',
prop: 'divisionMoney',
width: '110px'
},
{
label: '导流方名称',
prop: 'merchantName',
width: '200px'
},
{
label: '园区店名',
prop: 'sellerMerchantName',
width: '200px'
},
{
label: '分账类型',
prop: 'divisionTypeName',
width: '110px'
},
{
label: '支付时间',
prop: 'successDate',
width: '110px'
},
{
label: '商品编号',
prop: 'upgradeGoodsCommodityCode',
width: '200px'
},
{
label: '商品名称',
prop: 'upgradeGoodsName',
width: '200px'
}
]
},
curDivisionType: 2,
tableData: [],
tableParams: {},
// 查询参数
storeId: '',
timeChangeType: 1,
divisionTime: '',
payTime: '',
divisionTypeStatus: '',
orderNum: '',
tradeNum: '',
goodsName: '',
accountLevel: 1,
mytotalNumData: {
subOrderCount: 0
},
curMerchantNo: '',
isAdmin: false,
pickerOptions: {}
}
},
created() {
this.tableParams = this.tableParams2
const { session } = this.$globalState
this.accountLevel = session.accountLevel
this.isAdmin = session.admin
// this.pickerOptions = this.setDateLimit()
},
mounted() {
this.toGetMyDivision()
},
methods: {
// 设置日期组件时间范围
setDateLimit() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startdate = utils.dateFormat(openInfo.openDate)
let obj = {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date(startdate).getTime()
}
}
return obj
},
getCurStoreId(e) {
this.storeId = e
},
selectCurMechant(e) {
this.$refs.myNewSelect.selectCurMechant(e)
},
changeNOFind(e) {
this.orderNumType = e
this.orderNumName = e == 1 ? '主订单编号' : '交易参考号'
this.orderNum = ''
},
clearFind() {
this.divisionTime = ''
this.payTime = ''
this.divisionTypeStatus = ''
this.orderNum = ''
this.goodsName = ''
this.storeId = ''
this.$refs.table.page.pageNum = 1
this.curMerchantNo = ''
this.toGetMyDivision()
},
handlerParams() {
let params = {}
if (this.divisionTime) {
let startDate = utils.dateFormat(this.divisionTime[0], 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.divisionTime[1], 'YYYY-MM-DD 23:59:59')
params.divisionStartDate = startDate
params.divisionEndDate = endDate
} else {
delete params.divisionStartDate
delete params.divisionEndDate
}
if (this.payTime) {
let startDate = utils.dateFormat(this.payTime[0], 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.payTime[1], 'YYYY-MM-DD 23:59:59')
params.successDateStartDate = startDate
params.successDateEndDate = endDate
} else {
delete params.successDateStartDate
delete params.successDateEndDate
}
if (this.divisionTypeStatus) {
params.divisionStatus = this.divisionTypeStatus
} else {
delete params.divisionStatus
}
//主订单编号---交易参考号
if (this.orderNum) {
params.orderCode = this.orderNum
} else {
delete params.orderCode
}
if (this.tradeNum) {
params.tradeNo = this.orderNum
} else {
delete params.tradeNo
}
if (this.goodsName) {
params.upgradeGoodsName = this.goodsName
} else {
delete params.upgradeGoodsName
}
if (this.storeId) {
params['merchantIdList[0]'] = this.storeId
} else {
delete params['merchantIdList[0]']
}
this.toGetMyDivision(params)
},
timeChange(e) {
this.timeChangeType = e
this.timeChangeName = e == 1 ? '分账时间' : '支付时间'
},
changDivisionType(type) {
this.curDivisionType = type
this.tableParams = type == 1 ? this.tableParams1 : this.tableParams2
this.clearFind()
// this.toGetMyDivision()
},
toGetMyDivision(params = {}) {
// const { session } = this.$globalState
let method = mydivision()
let para = {
routerMethod: method,
currentPage: this.$refs.table.page.pageNum,
pageSize: this.$refs.table.page.pageSize,
divisionType: this.curDivisionType,
...params
// channelType
}
converterApi(para).then(res => {
res.list.map(item => {
item.sellerMerchantName = item.goodsOrder.sellerMerchantName
item.divisionTypeName = item.divisionType == 1 ? '线下对账' : '线上对账'
item.successDate = item.payOrder.successDate ? utils.dateFormat(item.payOrder.successDate, 'YYYY-MM-DD HH:mm:ss') : '--'
item.divisionDate = item.orderDivision.divisionDate ? utils.dateFormat(item.orderDivision.divisionDate, 'YYYY-MM-DD HH:mm:ss') : '--'
item.upgradeGoodsCommodityCode = item.goodsSubOrder.upgradeGoodsCommodityCode
item.upgradeGoodsName = item.goodsSubOrder.upgradeGoodsName
item.divisionStatusName = divistionStatus[item.orderDivision.divisionStatus - 1]
item.customerName = item.customerName || '--'
item.standNo = item.standNo || '--'
item.divisionMoney = item.divisionMoney || '--'
return item
})
this.tableData = res.list
this.tableTotal = res.total
this.httpParam = {
currentPage: this.$refs.table.page.pageNum,
pageSize: this.$refs.table.page.pageSize,
divisionType: this.curDivisionType,
...params
}
this.getMyTotalData(this.httpParam)
})
},
// 获取我的分账统计-集团
getMyTotalData(params) {
delete params.currentPage
delete params.pageSize
let method = myAccountTotalNumOfJT()
let para = {
routerMethod: method,
...params
}
converterApi(para).then(res => {
this.mytotalNumData = res
})
},
toExport() {
let method = exportMydivision()
let para = {
routerMethod: method,
...this.httpParam
}
converterApi(para).then(res => {
let iframe = document.createElement('iframe')
iframe.style.display = 'none'
iframe.src = res
document.body.appendChild(iframe)
})
}
}
}
</script>
<style lang="scss" scoped>
// 精品礼券
.find_wrap {
box-sizing: border-box;
padding: 9px 0px;
display: flex;
position: relative;
.left_widget {
flex: 3;
display: flex;
align-items: center;
flex-wrap: wrap;
box-sizing: border-box;
}
.right_widget {
flex: 0.2;
box-sizing: border-box;
padding-right: 15px;
}
.cell_wrapper {
box-sizing: border-box;
display: flex;
align-items: center;
margin-bottom: 18px;
.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;
}
.cell_position {
position: absolute;
bottom: 9px;
right: 15px;
}
.cell_position_next {
position: absolute;
bottom: -9px;
right: 15px;
}
}
.tipper {
width: 100%;
box-sizing: border-box;
padding: 15px 20px;
.tip_text {
font-size: 12px;
font-weight: 400;
color: #000000;
display: flex;
align-items: center;
}
.right_select {
width: 286rpx;
overflow: hidden;
}
}
.table_wrap {
padding: 0 15px;
padding-bottom: 10px;
}
// 我的分账
.tip_wrap {
box-sizing: border-box;
padding: 5px 15px 22px 15px;
}
.tip_wrap_line {
margin: 0 15px;
height: 1px;
background: #e8e8ea;
margin-bottom: 20px;
}
</style>
...@@ -9,7 +9,10 @@ ...@@ -9,7 +9,10 @@
<el-button size="small" type="primary" @click="openVideoWindow">接入演示</el-button> <el-button size="small" type="primary" @click="openVideoWindow">接入演示</el-button>
</div> </div>
</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>
<div class="mini_main_widget"> <div class="mini_main_widget">
<div class="box_wrap margin_1"> <div class="box_wrap margin_1">
...@@ -17,9 +20,10 @@ ...@@ -17,9 +20,10 @@
<div class="line_icon_text"> <div class="line_icon_text">
<div class="icon_num">1</div> <div class="icon_num">1</div>
<div class="text">一键转发您门店的精品礼券</div> <div class="text">一键转发您门店的精品礼券</div>
<img class="icon" src="../../assets/go_icon.png"> <!-- <img class="icon" src="../../assets/go_icon.png" /> -->
</div> </div>
</div> </div>
<i class="el-icon-d-arrow-right"></i>
<div class="box_wrap margin_2"> <div class="box_wrap margin_2">
<div class="h3_title">您将获得的</div> <div class="h3_title">您将获得的</div>
<div class="line_icon_text"> <div class="line_icon_text">
...@@ -57,24 +61,24 @@ ...@@ -57,24 +61,24 @@
<div v-if="count == 1" class="text_line_widget margin_4"> <div v-if="count == 1" class="text_line_widget margin_4">
<div class="h5_title"> <div class="h5_title">
2020年6月份累计收益: 2020年6月份累计收益:
<span class="price">5344</span> <span class="price">53400</span>
元 元
</div> </div>
<div class="h5_title"> <div class="h5_title">
2020年度累计收益约: 2020年度累计收益约:
<span class="price">10万</span> <span class="price">65万</span>
元 元
</div> </div>
</div> </div>
<div v-if="count == 2" class="text_line_widget margin_4"> <div v-if="count == 2" class="text_line_widget margin_4">
<div class="h5_title"> <div class="h5_title">
2020年集团累计收益约: 2020年集团累计收益约:
<span class="price">5344</span> <span class="price">53400</span>
元 元
</div> </div>
<div class="h5_title"> <div class="h5_title">
平均单店收益约: 平均单店收益约:
<span class="price">10万</span> <span class="price">81万</span>
元 元
</div> </div>
</div> </div>
...@@ -101,21 +105,25 @@ ...@@ -101,21 +105,25 @@
</template> </template>
</div> </div>
<el-dialog :visible.sync="videoShow" width="50%" :before-close="handleClose"> <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> </el-dialog>
<!-- <div class="qrcode_wrap"></div> --> <qrCode></qrCode>
</div> </div>
</template> </template>
<script> <script>
import qrCode from '../../components/qr-code/index.vue'
export default { export default {
name: '', name: '',
components:{
qrCode
},
data() { data() {
return { return {
tableHeader1: ['6月新增销量', '转化率', '转化量', '平均客单价', '增值产值', '分店分润'], tableHeader1: ['6月新增销量', '转化率', '转化量', '平均客单价', '增值产值', '分店分润'],
tableHeader2: ['门店年度新车销量', '年度转化率', '平均客单价', '门店年度产值', '集团年度产值'], tableHeader2: ['门店年度新车销量', '年度转化率', '平均客单价', '门店年度产值', '集团年度产值'],
tableTD1: [100, 50, 20, 30, 40, 60], tableTD1: [100, '52%', 52, 2283, 116716, 23400],
tableTD2: [100, 50, 20, 30, 40], tableTD2: [960, '63%', 1350, 816480, 22861440],
videoShow: false videoShow: false
} }
}, },
...@@ -161,7 +169,19 @@ export default { ...@@ -161,7 +169,19 @@ export default {
.posi_wrap_two { .posi_wrap_two {
width: 451px; width: 451px;
height: 276px; 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 { .mini_main_widget {
...@@ -174,6 +194,15 @@ export default { ...@@ -174,6 +194,15 @@ export default {
padding: 0 20px; padding: 0 20px;
display: flex; display: flex;
align-items: center; align-items: center;
position: relative;
>i{
// font-size: 13px;
position: absolute;
top: 50%;
left: 316px;
transform: translate(0,-50%);
color: #5850FF;
}
.box_wrap { .box_wrap {
height: 100%; height: 100%;
display: flex; display: flex;
...@@ -202,7 +231,7 @@ export default { ...@@ -202,7 +231,7 @@ export default {
color: #3a3a3a; color: #3a3a3a;
margin: 0 5px; margin: 0 5px;
} }
.icon{ .icon {
width: 16px; width: 16px;
height: 16px; height: 16px;
cursor: pointer; cursor: pointer;
...@@ -211,6 +240,7 @@ export default { ...@@ -211,6 +240,7 @@ export default {
} }
.margin_1 { .margin_1 {
margin-right: 200px; margin-right: 200px;
position: relative;
} }
.margin_2 { .margin_2 {
margin-right: 100px; margin-right: 100px;
...@@ -290,12 +320,4 @@ export default { ...@@ -290,12 +320,4 @@ export default {
margin-top: 25px; margin-top: 25px;
} }
} }
.qrcode_wrap {
position: fixed;
right: 0;
bottom: 182px;
width: 201px;
height: 201px;
background: #ffffff;
}
</style> </style>
...@@ -6,203 +6,120 @@ ...@@ -6,203 +6,120 @@
<div class="title_wrap"> <div class="title_wrap">
<img class="icon1" src="../../assets/money_icon.png" /> <img class="icon1" src="../../assets/money_icon.png" />
<span class="h3_title">累计产值</span> <span class="h3_title">累计产值</span>
<img class="icon cur" src="../../assets/intro.png" /> <img class="icon cur" @mouseenter="showTip = true" @mouseleave="showTip = false" src="../../assets/intro.png" />
<div v-if="showTip" class="tipContentClass">
<div class="title">说明</div>
<p class="h20_title">累计产值:总产值为门店的精品升级业务该获得的 分账金额总和,包括线上分账和线下对 账,但分账金额不明确订单不算入统计。</p>
<p class="h20_title">昨日产值:当前时间前一天的产值</p>
<p class="h20_title">今日产值:当前时间的实时产值</p>
<p class="h20_title">平均单店产值:一个门店的平均产值=累计产值/开通精品升级的门店数</p>
<p class="h20_title">冠军店:显示统计时间范围内产值最高的店及占比,占比=冠军店产值/总产值</p>
<p class="h20_title">累计利润:统计时间范围内该店的导流方分润金额的总和</p>
<p class="h20_title">昨日利润:当前时间前一天的导流方分润金额</p>
<p class="h20_title">发券总数:统计时间范围内旗下所有门店的发券总量</p>
<p class="h20_title">核券总数:统计时间范围内旗下所有门店的核券总量</p>
<p class="h20_title">转化订单数:统计时间范围内旗下所有门店的转化的升级(主)订单笔数</p>
<div class="single"></div>
<div class="single1"></div>
</div> </div>
<div class="price_max">
<span class="h8_title">¥--.--</span>
</div> </div>
<span class="text_tip h12_title">低于基准线</span> <div class="price_max">
<span class="text_tip_price h13_title">昨日产值:¥--.--</span> <span class="h8_title">¥{{ productValueInfo.divisionMoney || '---' }}</span>
<span class="text_tip_price1 h13_title">今日产值:¥--.--</span> </div>
<span class="text_tip_price2 h13_title">行业均值(单店):¥--.--</span> <template v-if="accountLevel == 4">
<span class="text_tip_price3 h13_title">累计利润:¥--.--</span> <span class="text_tip h12_title">{{ showMoneyLineTitle }}</span>
<span class="text_tip_price4 h13_title">昨日利润:¥--.--</span> <span class="text_tip_price h13_title">昨日产值:{{ productValueInfo.yesterdayDivisionMoney ? '¥' : '' }}{{ productValueInfo.yesterdayDivisionMoney || '---' }}</span>
<span class="text_tip_price1 h13_title">今日产值:{{ productValueInfo.todayDivisionMoney ? '¥' : '' }}{{ productValueInfo.todayDivisionMoney || '---' }}</span>
<span class="text_tip_price2 h13_title">行业均值(单店):{{ productValueInfo.totalDivisionMoney ? '¥' : '' }}{{ productValueInfo.totalDivisionMoney || '---' }}</span>
<span class="text_tip_price3 h13_title">累计利润:{{ productValueInfo.profitMoney ? '¥' : '' }}{{ productValueInfo.profitMoney || '---' }}</span>
<span class="text_tip_price4 h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span>
</template>
<template v-if="accountLevel != 4">
<span class="text_tip_price10 h13_title">昨日产值:{{ productValueInfo.yesterdayDivisionMoney ? '¥' : '' }}{{ productValueInfo.yesterdayDivisionMoney || '---' }}</span>
<span class="text_tip_price9 h13_title">今日产值:{{ productValueInfo.todayDivisionMoney ? '¥' : '' }}{{ productValueInfo.todayDivisionMoney || '---' }}</span>
<span class="text_tip_price8 h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span>
<span class="text_tip_price7 h13_title">累计利润:{{ productValueInfo.profitMoney ? '¥' : '' }}{{ productValueInfo.profitMoney || '---' }}</span>
<span class="text_tip_price6 h13_title">平均单店产值:{{ productValueInfo.totalDivisionMoney ? '¥' : '' }}{{ productValueInfo.totalDivisionMoney || '---' }}</span>
<span v-if="firsStore" class="text_tip_price5 h13_title">冠军店:{{ firsStore.merchantName }}(占{{ persent }}%)</span>
</template>
</div> </div>
<div class="wrap"> <div class="wrap">
<div class="date_line"> <div class="date_line">
<el-button size="mini" type="primary">统计时间</el-button> <!-- <el-button size="mini" type="primary" @click="toFindChart">统计时间</el-button> -->
<div class="date_title_label">统计时间</div>
<div class="date_wrap"> <div class="date_wrap">
<el-date-picker style="width: 160px" size="mini" v-model="startDate" :type="dateType" :placeholder="dateplaceholder"></el-date-picker> <el-date-picker style="width: 160px" :key="dateType == 'date' ? 'day' : 'month'" size="mini" v-model="chartStartDate" :type="dateType" :placeholder="dateplaceholder" @change="getChartStartTime" :picker-options="pickerOptions1"></el-date-picker>
</div> </div>
<div class="drive_w"></div> <div class="drive_w"></div>
<div class="date_wrap"> <div class="date_wrap">
<el-date-picker style="width: 160px" size="mini" v-model="endDate" :type="dateType" :placeholder="dateplaceholder"></el-date-picker> <el-date-picker style="width: 160px" :key="dateType == 'date' ? 'day' : 'month'" size="mini" v-model="chartEndDate" :type="dateType" :placeholder="dateplaceholder" @change="getChartEndTime" :picker-options="pickerOptions1"></el-date-picker>
</div> </div>
<div class="drive_w"></div> <div class="drive_w"></div>
<el-button size="mini" type="primary" @click="toFindChart">确定</el-button>
<div class="drive_w"></div>
<el-button size="mini" type="primary" @click="toChangeMonth">按月</el-button> <el-button size="mini" type="primary" @click="toChangeMonth">按月</el-button>
<div class="drive_w"></div> <div class="drive_w"></div>
<el-button size="mini" type="primary" @click="toChangeDay">按日</el-button> <el-button size="mini" type="primary" @click="toChangeDay">按日</el-button>
</div> </div>
<div class="funnle_chart_wrap"> <div class="funnle_chart_wrap">
<funnel echartId="my-funnel"></funnel> <funnel ref="myFunnel" echartId="my-funnel"></funnel>
</div> </div>
</div> </div>
<div v-if="!showMore" class="showMoreBtn h7_title flex_cc" @click="toChangeShowMoreBtn(showMore)">
<span>查看详情</span>
<img class="icon" src="../../assets/down_icon.png" />
</div> </div>
<div class="mian_line"></div> </div>
<div class="bottom_widget"> <div v-if="accountLevel == 4" class="mian_line"></div>
<div v-if="accountLevel != 4" class="mian_line2"></div>
<div v-if="accountLevel == 4 && showMore" class="bottom_widget">
<div class="chart_wrapper"> <div class="chart_wrapper">
<bar-chart echartId="my-bar"></bar-chart> <bar-chart ref="mybar" echartId="mybar"></bar-chart>
</div> </div>
<div class="chart_wrapper"> <div class="chart_wrapper">
<bar-chart echartId="my-bar1"></bar-chart> <line-chart ref="myline" echartId="myline"></line-chart>
</div> </div>
<div class="mid_line"></div> <div class="mid_line"></div>
<div class="showMoreBtn h7_title flex_cc"> <div class="showMoreBtn h7_title flex_cc" @click="toChangeShowMoreBtn(showMore)">
<span>{{ showMore ? '收缩详情' : '查看详情' }}</span> <span>收缩详情</span>
<img class="icon" src="../../assets/down_icon.png" /> <img class="icon" src="../../assets/updown_icon.png" />
</div> </div>
</div> </div>
<template v-if="accountLevel != 4">
<bloc-con ref="mybloc" :show="openRankFlag" @showRanking="toOpenRanking"></bloc-con>
</template>
</div> </div>
<template v-if="accountLevel != 4">
<ranking ref="myRanking" :product="productValueInfo.divisionMoney" :show="openRankFlag" @closeRank="toCloseRanking"></ranking>
</template>
<div class="box_bg_wrap mini_margin"> <div class="box_bg_wrap mini_margin">
<div class="tab_wrap"> <div class="tab_wrap">
<div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:48%' : 'width:32%'">
<template v-for="(item, index) in tabList"> <template v-for="(item, index) in tabList">
<div :key="index" class="tab_element_wrap" @click="changeTab(index)"> <div :key="index" class="tab_element_wrap" :style="accountLevel == 4 ? 'width:33.33%' : 'width:50%'" @click="changeTab(index)">
<div class="tab_item h13_title flex_cc" :class="curTabIndex == index ? 'tab_item_active' : ''">{{ item }}</div> <div class="tab_item h13_title flex_cc" :class="curTabIndex == index ? 'tab_item_active' : ''">{{ item }}</div>
</div> </div>
</template> </template>
</div> </div>
<template v-if="curTabIndex == 0">
<div class="find_wrap">
<div class="find_line">
<div class="cell_item">
<div class="cell_label h13_title">客户姓名</div>
<el-input class="myfindWidth" size="mini" placeholder="请输入" suffix-icon="el-icon-search" v-model="customName"></el-input>
</div>
<div class="cell_item">
<div class="cell_label h13_title">核销状态</div>
<el-select class="myfindWidth" size="mini" v-model="hxstatus" placeholder="请选择">
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div class="cell_item">
<div class="cell_label h13_title">领用时间</div>
<el-date-picker class="myfindWidth" size="mini" v-model="dateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
<div class="cell_btn_item">
<el-button size="mini">查看礼券</el-button>
<el-button size="mini">导出数据</el-button>
</div>
</div>
<div style="height: 18px"></div>
<div class="find_line">
<div class="cell_item">
<my-drop-menu leftName="发券人">
<div slot="right_con">
<el-select style="width: 190px" class="myfindWidth" size="mini" v-model="hxstatus" placeholder="请选择">
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
</my-drop-menu>
</div>
<div class="cell_item">
<div class="cell_label h13_title">核销时间</div>
<el-date-picker class="myfindWidth" size="mini" v-model="hxdateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
<div class="cell_item">
<div class="cell_label h13_title">手机号</div>
<el-input class="myfindWidth" size="mini" placeholder="请输入" suffix-icon="el-icon-search" v-model="phoneNum"></el-input>
</div>
<div class="cell_btn_item">
<el-button class="cell_btn" size="mini">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary">查询</el-button>
</div>
</div>
</div>
<div class="table_wrap">
<GLTable ref="table" :hasNum="false" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="getTableData"></GLTable>
</div> </div>
<template v-if="accountLevel == 4">
<template v-if="curTabIndex == 0">
<coupons-order></coupons-order>
</template> </template>
<template v-if="curTabIndex == 1"> <template v-if="curTabIndex == 1">
<div class="find_wrap"> <upgrade-order></upgrade-order>
<div class="find_line">
<div class="cell_item">
<my-drop-menu>
<div slot="right_con">
<el-date-picker class="myfindWidth" size="mini" v-model="dateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
</my-drop-menu>
</div>
<div class="cell_item">
<div class="cell_label h13_title">分账状态</div>
<el-select style="width: 166px" class="myfindWidth" size="mini" v-model="hxstatus" placeholder="请选择">
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div class="cell_item">
<my-drop-menu leftName="主订单编号">
<div slot="right_con">
<el-input style="width: 166px" class="myfindWidth" size="mini" placeholder="请输入" v-model="orderNum"></el-input>
</div>
</my-drop-menu>
</div>
<div class="cell_btn_item" style="width: 180px">
<el-button class="cell_btn_max" size="mini">导出数据</el-button>
</div>
</div>
<div style="height: 18px"></div>
<div class="find_line flex_scb">
<el-input style="width: 286px" size="mini" v-model="goodsName" placeholder="请输入查询的商品名称"></el-input>
<div class="cell_btn_item">
<el-button class="cell_btn" size="mini">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary">查询</el-button>
</div>
</div>
</div>
<div class="table_wrap">
<GLTable ref="table1" :isCustomHead="true" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams2" @refreshTable="getTableData"></GLTable>
</div>
</template> </template>
<template v-if="curTabIndex == 2"> <template v-if="curTabIndex == 2">
<div class="tip_wrap flex_scb"> <my-fashionable-order></my-fashionable-order>
<div class="tip_text"> </template>
<p class="h14_title">合作了精品升级业务且开启了自动分账功能的商户,在“线上分账”列表中可查看分账明细,未开启线上自动分账或者因各种</p> </template>
<div style="height: 10px"></div> <template v-if="accountLevel != 4">
<p class="h14_title">其他因素导致未分账成功的,在线下对账中查看,统一下个月月初结算上个月订单。</p> <template v-if="curTabIndex == 0">
</div> <upgrade-order :list="storeList"></upgrade-order>
<div class="tip_btn flex_scb"> </template>
<el-button size="mini">线上分账</el-button> <template v-if="curTabIndex == 1">
<el-button size="mini" type="primary">线下分账</el-button> <my-fashionable-order :list="storeList"></my-fashionable-order>
</div> </template>
</div>
<div class="tip_wrap_line"></div>
<div class="find_wrap">
<div class="find_line">
<div class="cell_item">
<my-drop-menu>
<div slot="right_con">
<el-date-picker class="myfindWidth" size="mini" v-model="dateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
</my-drop-menu>
</div>
<div class="cell_item">
<div class="cell_label h13_title">分账状态</div>
<el-select style="width: 166px" class="myfindWidth" size="mini" v-model="hxstatus" placeholder="请选择">
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div class="cell_item">
<my-drop-menu leftName="主订单编号">
<div slot="right_con">
<el-input style="width: 166px" class="myfindWidth" size="mini" placeholder="请输入" v-model="orderNum"></el-input>
</div>
</my-drop-menu>
</div>
<div class="cell_btn_item" style="width: 180px">
<el-button class="cell_btn_max" size="mini">导出数据</el-button>
</div>
</div>
<div style="height: 18px"></div>
<div class="find_line flex_scb">
<el-input style="width: 286px" size="mini" v-model="goodsName" placeholder="请输入查询的商品名称"></el-input>
<div class="cell_btn_item">
<el-button class="cell_btn" size="mini">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary">查询</el-button>
</div>
</div>
</div>
<div class="table_wrap">
<GLTable ref="table2" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams2" @refreshTable="getTableData"></GLTable>
</div>
</template> </template>
</div> </div>
</div> </div>
...@@ -210,146 +127,147 @@ ...@@ -210,146 +127,147 @@
<script> <script>
import funnel from '../../components/service-echart/funnel.vue' import funnel from '../../components/service-echart/funnel.vue'
import barChart from '../../components/service-echart/bar.vue' import bar from '../../components/service-echart/bar.vue'
import myDropMenu from '../../components/down-menu/index.vue' import line from '../../components/service-echart/line.vue'
import couponsOrder from './couponsOrder.vue'
import upgradeOrder from './upgradeOrder.vue'
import myFashionableOrder from './myFashionableOrder.vue'
import blocCon from './blocCon.vue'
import ranking from './ranking.vue'
import { orderTotal, orderTotalOfJT, get4SList } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
import util from '../../util/util'
// const openDdate = JSON.parse(localStorage.getItem('openInfo'))
export default { export default {
name: '', name: '',
components: { components: {
funnel, funnel,
'bar-chart': barChart, 'bar-chart': bar,
'my-drop-menu': myDropMenu 'line-chart': line,
'coupons-order': couponsOrder,
'upgrade-order': upgradeOrder,
'my-fashionable-order': myFashionableOrder,
'bloc-con': blocCon,
ranking: ranking
}, },
data() { data() {
return { return {
startDate: '', tipContent: '总产值为门店的精品升级业务该获得的 分账金额总和,包括线上分账和线下对 账,但分账金额不明确订单不算入统计。',
endDate: '', accountLevel: 4,
startDate: '', // 券开始时间
endDate: '', //券结束时间
dateType: 'date', dateType: 'date',
dateplaceholder: '选择日期', dateplaceholder: '选择日期',
showMore: true, showMore: true,
tabList: ['精品礼券领取订单', '精品升级订单', '我的分账'], tabList: ['精品礼券领取订单', '精品升级订单', '我的分账'],
curTabIndex: 1, curTabIndex: 0,
customName: '', customName: '',
hxstatus: '', hxstatus: '',
dateBetween: '', dateBetween: '',
hxdateBetween: '', hxdateBetween: '',
phoneNum: '', phoneNum: '',
statusList: [ productValueInfo: {},
{ showMoneyLineTitle: '',
value: '1', //图表时间
label: '已核销' chartStartDate: '',
}, chartEndDate: '',
{ openRankFlag: false,
value: '2', showTip: false,
label: '未核销' firsStore: null,
} persent: 0,
], storeList: [],
//表格配置 pickerOptions1:{}
layout: 'sizes, prev, pager, next, jumper, ->, total',
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: {
tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '领用时间',
prop: 'roleName'
},
{
label: '客户姓名',
prop: 'roleCode'
},
{
label: '手机号',
prop: 'statusName'
},
{
label: '礼券名称',
prop: 'createdTime'
},
{
label: '发券人',
prop: 'updatedTime'
},
{
label: '核销状态',
prop: 'updatedTime',
width: '100px'
},
{
label: '核销人',
prop: 'updatedTime'
},
{
label: '核销时间',
prop: 'updatedTime'
} }
]
},
tableParams2: {
tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '主订单编号',
prop: 'roleName'
},
{
label: '子订单编号',
prop: 'roleCode'
},
{
label: '客户姓名',
prop: 'statusName'
}, },
{ created() {
label: '车架号', const { session } = this.$globalState
prop: 'createdTime' this.accountLevel = session.accountLevel
if (session.accountLevel != 4) {
this.tabList = ['精品升级订单', '我的分账']
this.toGet4SStore()
}
// 获取上一次打开的状态
let lastOpenStatus = localStorage.getItem(`showMore${session.merchantId}`)
if (lastOpenStatus) {
let data = JSON.parse(lastOpenStatus)
if (session.merchantId == data.id) {
this.showMore = data.status
}
}
this.pickerOptions1 = this.setDateLimit()
}, },
{ mounted() {
label: '分账账户', this.judgeOpen()
prop: 'updatedTime'
}, },
{ methods: {
label: '总分账金额(元)', // 设置日期组件时间范围
prop: 'updatedTime' setDateLimit() {
}, let openInfo = JSON.parse(localStorage.getItem('openInfo'))
{ let startdate = util.dateFormat(openInfo.openDate)
label: '导流方名称', let obj = {
prop: 'updatedTime' disabledDate(time) {
}, return time.getTime() > Date.now() || time.getTime() < new Date(startdate).getTime()
{ }
label: '园区店名', }
prop: 'updatedTime' return obj
},
{
label: '分账状态',
prop: 'updatedTime'
},
{
label: '分账时间',
prop: 'updatedTime'
}, },
{ toOpenRanking(e) {
label: '支付时间', this.openRankFlag = e
prop: 'updatedTime'
}, },
{ toCloseRanking(e) {
label: '商品编号', this.openRankFlag = e
prop: 'updatedTime'
}, },
{ toFindChart() {
label: '商品名称', let type = this.dateType
prop: 'updatedTime' if (type == 'date') {
//按天
// 漏斗图
this.$refs.myFunnel.couponsChartData(this.chartStartDate, this.chartEndDate)
// 集团折线图+列表
if (this.accountLevel != 4) {
this.$refs.mybloc.changeTimeForLine(this.chartStartDate, this.chartEndDate)
this.$refs.mybloc.orderDataInfoOfJT(this.chartStartDate, this.chartEndDate)
}
if (this.accountLevel == 4) {
this.$refs.mybar.couponsChartData(this.chartStartDate, this.chartEndDate)
this.$refs.myline.couponsChartData(this.chartStartDate, this.chartEndDate)
}
// 累计产值
this.bengintime = this.chartStartDate
this.endtime = this.chartEndDate
this.orderDataInfo()
} else {
//按月
let start = this.chartStartDate
let end = this.chartEndDate
if (new Date(start).getTime() == new Date(end).getTime()) {
end = utils.dateFormat(new Date(utils.getLastDay(end)))
console.log(end)
}
// 漏斗图
this.$refs.myFunnel.couponsChartData(start, end)
// 集团折线图+列表
if (this.accountLevel != 4) {
this.$refs.mybloc.changeTimeForLine(start, end)
this.$refs.mybloc.orderDataInfoOfJT(start, end)
}
if (this.accountLevel == 4) {
this.$refs.mybar.couponsChartData(start, end)
this.$refs.myline.couponsChartData(start, end)
}
this.bengintime = start
this.endtime = end
// 累计产值
this.orderDataInfo()
} }
]
}, },
tableData: [], getChartStartTime(e) {
merchantList: [], this.chartStartDate = utils.dateFormat(e)
tableTotal: 0 },
} getChartEndTime(e) {
this.chartEndDate = utils.dateFormat(e)
}, },
mounted() {},
methods: {
toChangeMonth() { toChangeMonth() {
this.dateType = 'month' this.dateType = 'month'
this.dateplaceholder = '选择月' this.dateplaceholder = '选择月'
...@@ -361,10 +279,79 @@ export default { ...@@ -361,10 +279,79 @@ export default {
changeTab(index) { changeTab(index) {
this.curTabIndex = index this.curTabIndex = index
}, },
changePeople(e) { toChangeShowMoreBtn(flag) {
console.log(e) this.showMore = !flag
const { merchantId } = this.$globalState.session
localStorage.setItem(`showMore${merchantId}`, JSON.stringify({ id: merchantId, status: !flag }))
},
// 已开通--订单统计
judgeOpen() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
this.bengintime = utils.dateFormat(openInfo.openDate)
// this.bengintime = this.$defaultStartDate
this.endtime = utils.dateFormat(new Date())
this.chartStartDate = this.bengintime
this.chartEndDate = this.endtime
this.orderDataInfo()
}, },
getTableData() {} // 门店统计
orderDataInfo() {
let method = orderTotal()
let para = {
routerMethod: method,
beginDateStr: this.bengintime,
endDateStr: this.endtime,
reportType: 2
}
converterApi(para).then(res => {
this.productValueInfo = res
// 判断累计产值跟行业平均产值
this.showMoneyLineTitle = res.divisionMoney > res.totalDivisionMoney ? '高于基准线' : '低于基准线'
this.orderAll()
})
},
orderAll() {
if (this.accountLevel == 4) {
return
}
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
this.bengintime = utils.dateFormat(openInfo.openDate)
let method = orderTotalOfJT()
let para = {
routerMethod: method,
beginDateStr: this.bengintime,
endDateStr: this.endtime,
reportType: 2,
orderByType: 1 //1 分账 2分润
}
converterApi(para).then(res => {
let arr = res || []
if (arr.length) {
this.firsStore = arr[0]
let temp = utils.decimal(arr[0].divisionMoney / this.productValueInfo.divisionMoney, 2) || 0
this.persent = utils.decimal(temp * 100, 2)
}
})
},
toGet4SStore() {
const { session } = this.$globalState
let level = this.accountLevel
let para = {
currentPage: 1,
pageSize: 200000
}
let temp = level + 1
if (session.admin) {
temp = 1
}
para = {
...para,
'merchantAccountLevelList[0]': temp
}
get4SList(para).then(res => {
this.storeList = res.list || []
})
}
} }
} }
</script> </script>
...@@ -382,6 +369,7 @@ export default { ...@@ -382,6 +369,7 @@ export default {
width: 100%; width: 100%;
height: 314px; height: 314px;
display: flex; display: flex;
position: relative;
.wrap { .wrap {
width: 50%; width: 50%;
height: 100%; height: 100%;
...@@ -403,6 +391,55 @@ export default { ...@@ -403,6 +391,55 @@ export default {
} }
.cur { .cur {
cursor: pointer; cursor: pointer;
position: relative;
}
.tipContentClass {
position: absolute;
left: 130px;
top: -15px;
width: 500px;
// height: 94px;
background: #ffffff;
box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 3px 6px -4px rgba(0, 0, 0, 0.12);
border: 1px solid #e4e7ed;
z-index: 999;
box-sizing: border-box;
padding: 10px 9px;
.title {
font-size: 12px;
font-weight: bold;
color: #333333;
z-index: 999;
position: relative;
}
> p {
z-index: 999;
position: relative;
margin-top: 10px;
line-height: 18px;
}
.single {
position: absolute;
left: -5px;
top: 15px;
// transform: translate(0, -50%);
width: 10px;
height: 10px;
background: #ffffff;
transform: rotate(-60deg);
border: 1px solid #e4e7ed;
z-index: -1;
}
.single1 {
position: absolute;
left: 0px;
top: 50%;
transform: translate(0, -50%);
width: 20px;
height: 100%;
background: #ffffff;
z-index: 22;
}
} }
.icon1 { .icon1 {
width: 16.22px; width: 16.22px;
...@@ -423,8 +460,10 @@ export default { ...@@ -423,8 +460,10 @@ export default {
position: absolute; position: absolute;
top: 109px; top: 109px;
right: 108px; right: 108px;
min-width: 110px;
} }
.text_tip_price1 { .text_tip_price1 {
min-width: 110px;
position: absolute; position: absolute;
top: 144px; top: 144px;
right: 108px; right: 108px;
...@@ -444,11 +483,50 @@ export default { ...@@ -444,11 +483,50 @@ export default {
bottom: 60px; bottom: 60px;
left: 261px; left: 261px;
} }
.text_tip_price5 {
position: absolute;
bottom: 60px;
left: 261px;
}
.text_tip_price6 {
position: absolute;
bottom: 60px;
left: 21px;
}
.text_tip_price7 {
position: absolute;
bottom: 90px;
left: 21px;
}
.text_tip_price8 {
position: absolute;
bottom: 90px;
left: 261px;
}
.text_tip_price9 {
position: absolute;
top: 144px;
left: 261px;
}
.text_tip_price10 {
position: absolute;
top: 109px;
left: 261px;
}
.date_line { .date_line {
box-sizing: border-box; box-sizing: border-box;
padding: 28px 22px 0 28px; padding: 28px 22px 0 28px;
display: flex; display: flex;
flex-wrap: wrap;
align-items: center; align-items: center;
overflow: hidden;
.date_title_label {
font-size: 14px;
font-weight: 500;
color: #000000;
margin-right: 11px;
white-space: nowrap;
}
.drive_w { .drive_w {
width: 10px; width: 10px;
height: 1px; height: 1px;
...@@ -468,6 +546,11 @@ export default { ...@@ -468,6 +546,11 @@ export default {
background: #e8e8ea; background: #e8e8ea;
height: 1px; height: 1px;
} }
.mian_line2 {
margin: 0 22px;
background: #e8e8ea;
height: 1px;
}
.bottom_widget { .bottom_widget {
height: 400px; height: 400px;
position: relative; position: relative;
...@@ -475,7 +558,7 @@ export default { ...@@ -475,7 +558,7 @@ export default {
.chart_wrapper { .chart_wrapper {
width: 50%; width: 50%;
height: 350px; height: 350px;
background: #999; // background: #999;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -489,33 +572,19 @@ export default { ...@@ -489,33 +572,19 @@ export default {
height: 350px; height: 350px;
background: #e8e8ea; background: #e8e8ea;
} }
.showMoreBtn {
position: absolute;
left: 50%;
bottom: 15px;
transform: translate(-50%, 0);
width: 105px;
height: 30px;
border-radius: 2px;
cursor: pointer;
display: flex;
align-items: center;
> img {
margin-left: 5px;
width: 10px;
height: 9px;
}
}
} }
.tab_wrap { .tab_wrap {
box-sizing: border-box; box-sizing: border-box;
padding: 22px 15px; padding: 22px 15px;
display: flex; .tab_line {
align-items: center; width: 48%;
background: #f4f6fc;
border-radius: 4px;
box-sizing: border-box;
padding: 2px 5px;
.tab_element_wrap { .tab_element_wrap {
width: 180px; width: 33.33%;
height: 36px; height: 36px;
background: #f4f6fc;
.tab_item { .tab_item {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -523,12 +592,11 @@ export default { ...@@ -523,12 +592,11 @@ export default {
} }
.tab_item_active { .tab_item_active {
background: #ffffff; background: #ffffff;
border-radius: 4px;
border: 1px solid #eeedff;
font-weight: 500; font-weight: 500;
color: #5850ff; color: #5850ff;
} }
} }
}
} }
// 精品礼券 // 精品礼券
.find_wrap { .find_wrap {
...@@ -599,4 +667,22 @@ export default { ...@@ -599,4 +667,22 @@ export default {
background: #e8e8ea; background: #e8e8ea;
margin-bottom: 20px; margin-bottom: 20px;
} }
// 查看收缩按钮
.showMoreBtn {
position: absolute;
left: 50%;
bottom: 15px;
transform: translate(-50%, 0);
width: 105px;
height: 30px;
border-radius: 2px;
cursor: pointer;
display: flex;
align-items: center;
> img {
margin-left: 5px;
width: 10px;
height: 9px;
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
<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 \ 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 \ No newline at end of file
<template> <template>
<div class="content_body"> <div class="content_body">
<div class="max_widget"> <div ref="maxHBox" class="max_widget">
<div class="table_one"> <div class="table_one">
<p class="h7_title">商户名:深圳XXXX公司</p> <p class="h7_title">商户名:{{ merchantInfo.name }}</p>
<div class="title_text"> <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> <p class="min_text">仅针对POS机收款订单</p>
</div> </div>
</div> </div>
...@@ -15,45 +16,52 @@ ...@@ -15,45 +16,52 @@
</div> </div>
<div class="table_three"> <div class="table_three">
<div class="table_th h7_title">全部(除特殊分账品类)</div> <div class="table_th h7_title">全部(除特殊分账品类)</div>
<div class="table_th h7_title">收入分润</div> <div class="table_th h7_title">{{ settle.merchantSettleType == 1 ? '毛利分润' : '收入分润' }}</div>
<div class="table_th h7_title">30%</div> <div class="table_th h7_title">{{ settle.merchantProfitValue }}%</div>
</div> </div>
<div class="table_three"> <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"> <div class="table_th h7_title">
<span>特殊分账品类:</span> <span>特殊分账品类:</span>
太阳膜 {{ item.goodsTypeName }}
</div> </div>
<div class="table_th h7_title">毛利分润</div> <div class="table_th h7_title">{{ item.merchantSettleType == 1 ? '毛利分润' : '收入分润' }}</div>
<div class="table_th h7_title">30%</div> <div class="table_th h7_title">{{ item.merchantProfitValue }}%</div>
</div> </div>
</template>
<div class="table_four flex_scb"> <div class="table_four flex_scb">
<div class="h9_title"> <div class="h9_title">
<span>是否自动打款:</span> <span>是否自动打款:</span>
<span>是</span> <span>{{ division.autoFlag == 'Y' ? '是' : '否' }}</span>
</div> </div>
<div class="h9_title"> <div class="h9_title">
<span>分账周期:T+1</span> <span v-if="division.settleTimeType == 1">分账周期:T+{{ division.settleTime || '1' }}</span>
<span class="min_text">(分账后第2天到对公账户)</span> <span v-if="division.settleTimeType == 2">分账周期:每月{{ division.settleTime }}号</span>
<span v-if="division.settleTimeType == 1" class="min_text">(分账后第2天到对公账户)</span>
</div> </div>
</div> </div>
<div class="table_four flex_scb"> <div class="table_four flex_scb">
<div class="h9_title"> <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> </div>
<div class="table_four flex_scb border_all"> <div class="table_four flex_scb border_all">
<div class="h9_title"> <div class="h9_title">
<span>收款账户: XXXX商户有限公司</span> <span>收款账户:{{ division.realityShopMerchantName }}</span>
</div> </div>
</div> </div>
</div> </div>
<div class="min_widget"> <div class="min_widget">
<div class="title h7_title">对公账户信息</div> <div class="title h7_title">对公账户信息</div>
<div class="info_widget"> <div v-if="bankData" class="info_widget">
<span class="h9_title">开户账户户行:招商银行</span> <span class="h9_title">开户账户户行:{{ bankData.bankName }}</span>
<span class="h9_title">开户支行:招商银行深圳泰然支行</span> <span class="h9_title">开户支行:{{ bankData.openAccBankName }}</span>
<span class="h9_title">账户号:755918931710302</span> <span class="h9_title">账户号:{{ bankData.bankAccountNo }}</span>
<span class="h9_title">账户名称:深圳广联赛讯股份有限公司</span> <span class="h9_title">账户名称:{{ bankData.bankAccountName }}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -63,10 +71,28 @@ ...@@ -63,10 +71,28 @@
export default { export default {
name: '', name: '',
data() { data() {
return {} return {
merchantInfo: {
name: '',
merchantId: 0
}
}
},
props: {
bankData: Object,
division: Object,
settle: Object
}, },
mounted() {}, mounted() {
methods: {} const { session } = this.$globalState
this.merchantInfo = {
name: session.merchantName,
merchantId: session.session
}
},
methods: {
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -75,7 +101,7 @@ export default { ...@@ -75,7 +101,7 @@ export default {
justify-content: space-between; justify-content: space-between;
.max_widget { .max_widget {
width: calc(100% - 270px); width: calc(100% - 270px);
height: 389px; // min-height: 389px;
.table_one { .table_one {
width: 100%; width: 100%;
height: 54px; height: 54px;
...@@ -141,7 +167,7 @@ export default { ...@@ -141,7 +167,7 @@ export default {
} }
.min_widget { .min_widget {
width: 260px; width: 260px;
height: 393px; // min-height: 393px;
border: 2px solid #e8e8ea; border: 2px solid #e8e8ea;
.title { .title {
width: 100%; width: 100%;
......
<template>
<div class="store-container">门店端</div>
</template>
<script>
export default {
name: 'index',
data() {
return {
}
},
mounted() {
},
methods: {}
}
</script>
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
<script> <script>
import notOpenCon from './notOpenCon.vue' import notOpenCon from './notOpenCon.vue'
import openCon from './open.vue' import openCon from './open.vue'
import { isOpenUpgrade } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
export default { export default {
name: 'index', name: 'index',
components: { components: {
...@@ -16,11 +18,33 @@ export default { ...@@ -16,11 +18,33 @@ export default {
}, },
data() { data() {
return { 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() {}, 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> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
<template>
<div ref="orderContainer" class="order-container">
<div class="find_wrap">
<div class="left_widget">
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">支付时间</div>
<el-date-picker class="find_width" :picker-options="pickerOptions" size="mini" v-model="dateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">支付方式</div>
<el-select class="find_width" size="mini" clearable v-model="payType" placeholder="请选择">
<el-option v-for="item in payTypesList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div v-if="accountLevel == 4" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">分账类型</div>
<el-select class="find_width" clearable size="mini" v-model="divisionType" placeholder="请选择">
<el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div v-if="accountLevel == 3" 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="请选择">
<el-option v-for="item in list" :key="item.id" :label="item.merchantName" :value="item.merchantNo"></el-option>
</el-select>
</div>
<div v-if="accountLevel < 3" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">主订单编号</div>
<el-input class="find_width" size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="orderNum"></el-input>
</div>
<div v-if="accountLevel > 2" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">主订单编号</div>
<el-input class="find_width" size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="orderNum"></el-input>
</div>
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">交易参考号</div>
<el-input class="find_width" size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="tradeNum"></el-input>
</div>
<div v-if="accountLevel == 4" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">商品名称</div>
<el-input class="find_width" size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="goodsName"></el-input>
</div>
<div v-if="accountLevel != 4" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">分账类型</div>
<el-select class="find_width" clearable size="mini" v-model="divisionType" placeholder="请选择">
<el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div v-if="accountLevel < 3" class="cell_wrapper flex_sc">
<div v-if="accountLevel == 2" class="cell_label h13_title">市级经销商</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" clearable size="mini" filterable v-model="curMerchantNo" placeholder="请选择" @change="selectCurMechant">
<el-option v-for="item in list" :key="item.id" :label="item.merchantName" :value="item.merchantNo"></el-option>
</el-select>
</div>
<selectSearch ref="mySelectCon" :show="curMerchantNo ? true : false" @getId="getCurStoreId"></selectSearch>
</div>
<!-- :style="'flex:'+flexWidth" -->
<div class="right_widget">
<div class="cell_wrapper flex_sc">
<el-button class="cell_btn_max" size="mini" @click="toExport">导出数据</el-button>
</div>
<div class="cell_wrapper flex_sc">
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary" @click="handleParam">查询</el-button>
</div>
</div>
</div>
<!-- <div class="find_wrap">
<div class="find_line">
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">支付时间</div>
<el-date-picker class="find_width" :picker-options="pickerOptions" size="mini" v-model="dateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">支付方式</div>
<el-select class="find_width" size="mini" clearable v-model="payType" placeholder="请选择">
<el-option v-for="item in payTypesList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div v-if="accountLevel == 4" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">分账类型</div>
<el-select class="find_width" clearable size="mini" v-model="divisionType" placeholder="请选择">
<el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div v-if="accountLevel == 3" 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="请选择">
<el-option v-for="item in list" :key="item.id" :label="item.merchantName" :value="item.merchantNo"></el-option>
</el-select>
</div>
<div v-if="accountLevel < 3" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">主订单编号</div>
<el-input class="find_width" size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="orderNum"></el-input>
</div>
<div class="cell_wrapper flex_sc">
<el-button class="cell_btn_max" size="mini" @click="toExport">导出数据</el-button>
</div>
</div>
<div class="find_line">
<div v-if="accountLevel > 2" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">主订单编号</div>
<el-input class="find_width" size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="orderNum"></el-input>
</div>
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">交易参考号</div>
<el-input class="find_width" size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="tradeNum"></el-input>
</div>
<div v-if="accountLevel == 4" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">商品名称</div>
<el-input class="find_width" size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="goodsName"></el-input>
</div>
<div v-if="accountLevel != 4" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">分账类型</div>
<el-select class="find_width" clearable size="mini" v-model="divisionType" placeholder="请选择">
<el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div v-if="accountLevel < 3" class="cell_wrapper flex_sc">
<div v-if="accountLevel == 2" class="cell_label h13_title">市级经销商</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" clearable size="mini" filterable v-model="curMerchantNo" placeholder="请选择" @change="selectCurMechant">
<el-option v-for="item in list" :key="item.id" :label="item.merchantName" :value="item.merchantNo"></el-option>
</el-select>
</div>
<div class="cell_wrapper flex_sc">
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary" @click="handleParam">查询</el-button>
</div>
</div>
<selectSearch ref="mySelectCon" :show="curMerchantNo ? true : false" @getId="getCurStoreId"></selectSearch>
</div> -->
<div v-if="accountLevel == 1 && !isAdmin" style="height: 18px"></div>
<div class="tipper flex_scb">
<div class="tip_text">
<span>共</span>
<sapn style="color: #5850ff">{{ tableCountInfo.orderCount }}</sapn>
<span>笔主订单</span>
<span style="color: #5850ff">{{ tableCountInfo.nums || 0 }}</span>
<span>笔子订单</span>
<span>,累计订单支付金额:</span>
<span style="color: #5850ff">¥{{ tableCountInfo.totalPrice || 0 }}</span>
<span>元,累计导流方利润:</span>
<span style="color: #5850ff">{{ tableCountInfo.totalShopGrossProfit || 0 }}</span>
<span>元</span>
</div>
<div class="right_select">
<el-select class="myfindWidth" size="mini" collapse-tags multiple @removeTag="removeTag" v-model="tableCoulumList" @change="changTableCoulum" placeholder="请选择要展示的字段">
<el-option v-for="item in fieldList" :disabled="item.disabled" :key="item.value" :label="item.label" :value="item"></el-option>
</el-select>
</div>
</div>
<div class="table_wrap">
<el-table id="initTable" :data="tableData">
<el-table-column label="序号" align="center" width="100px" type="index" :index="index => index + (currentPage - 1) * pageSize + 1"></el-table-column>
<el-table-column label="订单信息" align="center">
<template v-for="(ele, index) in tableCoulumList">
<el-table-column v-if="ele.level == 1" :key="index" :width="ele.width" :prop="ele.value" :label="ele.label" align="center"></el-table-column>
</template>
</el-table-column>
<el-table-column label="支付信息" align="center">
<template v-for="(ele, index) in tableCoulumList">
<el-table-column v-if="ele.level == 2" :key="index" :width="ele.width" :prop="ele.value" :label="ele.label" align="center"></el-table-column>
</template>
</el-table-column>
<el-table-column label="导流方利润" align="center">
<template v-for="(ele, index) in tableCoulumList">
<el-table-column v-if="ele.level == 3" :key="index" :width="ele.width" :prop="ele.value" :label="ele.label" align="center"></el-table-column>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" align="center" width="120">
<template slot-scope="scope">
<div class="spanbtn h16_title" @click="openDetail(scope.row)">查看明细</div>
</template>
</el-table-column>
</el-table>
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="pageSize" :total="tableTotal" :layout="layout"></el-pagination>
</div>
<el-dialog title="订单详情" :visible.sync="dialogVisible" width="60%">
<div v-if="orderDetail" class="dialog_content">
<div class="wrapper">
<div class="title h18_title">
<div class="title_icon"></div>
<span>订单详情</span>
</div>
<div class="message_wrap flex_scb" :class="orderDetail.payOrder.payVoucher ? 'maxHeight' : ''">
<div class="box_info">
<div class="info_text">
<span>订单单号:</span>
<span class="h19_title">{{ orderDetail.orderCode }}</span>
</div>
<div class="info_text">
<span>交易流水:</span>
<span class="h19_title">{{ orderDetail.payOrder.outTradeNo || '--' }}</span>
</div>
</div>
<div class="box_info">
<div class="info_text">
<span>订单状态:</span>
<span class="h19_title">{{ orderStatusList[orderDetail.status - 1] }}</span>
</div>
<div class="info_text">
<span>支付状态:</span>
<span class="h19_title">{{ orderDetail.payOrder.payStatus == 1 ? '未支付' : '已支付' }}</span>
</div>
</div>
<div class="box_info">
<div class="info_text">
<span>支付方式:</span>
<span v-if="orderDetail.payOrder.payType == 1" class="h19_title">微信支付</span>
<span v-if="orderDetail.payOrder.payType == 2" class="h19_title">线下支付</span>
<span v-if="orderDetail.payOrder.payType == 3" class="h19_title">POS机收款</span>
</div>
<div class="info_text flex_img">
<span>收款凭证:</span>
<span v-if="!orderDetail.payOrder.payVoucher" class="h19_title">--</span>
<template v-else>
<el-image style="width: 100px; height: 100px" @error.once="reloadImg(detailImage)" :src="detailImage" :preview-src-list="detailImageList"></el-image>
</template>
</div>
</div>
</div>
</div>
<div class="wrapper">
<div class="title h18_title">
<div class="title_icon"></div>
<span>用户信息</span>
</div>
<div class="message_wrap flex_scb">
<div class="box_info">
<div class="info_text">
<span>用户姓名:</span>
<span class="h19_title">{{ orderDetail.customer.customerName || '--' }}</span>
</div>
<div class="info_text">
<span>评价:{{ orderDetail.comment ? '' : '--' }}</span>
<span class="h19_title"></span>
</div>
</div>
<div class="box_info">
<div class="info_text">
<span>车架号:</span>
<span class="h19_title">{{ orderDetail.customer.standNo || '--' }}</span>
</div>
<div class="info_text"></div>
</div>
<div class="box_info"></div>
</div>
<div v-if="orderDetail.comment" class="comment_wrap">
<div class="comment_rate">
<div class="comment_line h20_title">
<span>产品与描述相符:</span>
<el-rate disabled :colors="['#5850FF', '#5850FF', '#5850FF']" text-color="#5850FF" :value="orderDetail.comment.customerScore"></el-rate>
<span v-if="orderDetail.comment.customerScore == 5">非常好</span>
<span v-else-if="orderDetail.comment.customerScore == 4">好</span>
<span v-else-if="orderDetail.comment.customerScore == 3">一般</span>
<span v-else-if="orderDetail.comment.customerScore == 2">差</span>
<span v-else-if="orderDetail.comment.customerScore == 1">非常差</span>
<span v-else>--</span>
</div>
<div style="width: 110px; height: 1"></div>
<div class="comment_line h20_title">
<span>服务态度:</span>
<el-rate disabled :colors="['#5850FF', '#5850FF', '#5850FF']" text-color="#5850FF" :value="orderDetail.comment.serviceScore"></el-rate>
<span v-if="orderDetail.comment.serviceScore == 5">非常好</span>
<span v-else-if="orderDetail.comment.serviceScore == 4">好</span>
<span v-else-if="orderDetail.comment.serviceScore == 3">一般</span>
<span v-else-if="orderDetail.comment.serviceScore == 2">差</span>
<span v-else-if="orderDetail.comment.serviceScore == 1">非常差</span>
<span v-else>--</span>
</div>
</div>
<div class="comment_line nocenter h20_title">
<span>评价:</span>
<div class="textarea_con">{{ orderDetail.comment.customerComment }}</div>
</div>
</div>
</div>
<div class="wrapper">
<div class="title h18_title">
<div class="title_icon"></div>
<span>关联信息</span>
</div>
<div class="message_wrap flex_scb">
<div class="box_info">
<div class="info_text">
<span>流量来源:</span>
<span class="h19_title">{{ orderDetail.merchantName || '--' }}</span>
</div>
<div class="info_text">
<span>转化员:</span>
<span class="h19_title">{{ orderDetail.sellerName || '--' }}</span>
</div>
</div>
<div class="box_info">
<div class="info_text">
<span>推荐人:</span>
<span class="h19_title">{{ orderDetail.employeeName || '--' }}</span>
</div>
<div class="info_text">
<span>门店地址:</span>
<span v-if="orderDetail.yqMerchantInfo" class="h19_title">{{ orderDetail.yqMerchantInfo.address }}</span>
<span v-else class="h19_title">--</span>
</div>
</div>
<div class="box_info">
<div class="info_text">
<span>园区店:</span>
<span class="h19_title">{{ orderDetail.sellerMerchantName || '--' }}</span>
</div>
<div class="info_text"></div>
</div>
</div>
</div>
<div class="wrapper">
<div class="title h18_title">
<div class="title_icon"></div>
<span>订单商品</span>
</div>
<div class="dialog_table_wrap">
<GLTable ref="dialogTable" :hasPage="false" :hasNum="false" :tableData="dialogTableData" :tableParams="dialogTableParams"></GLTable>
</div>
</div>
<div class="wrapper noBorder">
<div class="title h18_title">
<div class="title_icon"></div>
<span>订单进度</span>
</div>
<div class="dialog_table_wrap">
<GLTable ref="dialogTable2" :hasPage="false" :hasNum="false" :tableData="dialogTableData2" :tableParams="dialogTableParams2"></GLTable>
</div>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="mini" type="primary" @click="dialogVisible = false">返回</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import selectSearch from '../../components/search-select/index.vue'
import { findupGradeOrder, exportUpgrade, checkDetail, orderTotalNumOfJT } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
const logTypeList = ['预录用户', '用户下单', '用户付款', '完成服务']
const orderStatusList = ['待升级', '未升级', '待支付', '已支付', '已退款', '已完成']
export default {
name: '',
components: {
selectSearch
},
props: {
list: Array
},
data() {
return {
orderStatusList,
payChangeName: '支付时间',
payTypesList: [
{
value: 0,
label: '不升级'
},
{
value: 1,
label: '微信支付'
},
{
value: 2,
label: '线下收款'
},
{
value: 3,
label: 'POS机'
}
],
disivionOptions: [
{
value: 1,
label: '线下对账'
},
{
value: 2,
label: '线上分账'
}
],
layout: 'sizes, prev, pager, next, jumper, ->, total',
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableData: [],
tableTotal: 0,
currentPage: 1,
pageSize: 10,
payTypeChange: 1,
// 查询参数
storeId: '',
dateBetween: '',
payType: '',
divisionType: '',
orderNumType: 1,
orderNum: '',
tradeNum: '',
goodsName: '',
dialogVisible: false,
// 弹框表格
dialogTableData: [],
dialogTableData2: [],
dialogTableParams: {
tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '商品ID',
prop: 'codeId'
},
{
label: '商品名称',
prop: 'goodsName'
},
{
label: '商品分类',
prop: 'goodsClass'
},
{
label: '品牌商',
prop: 'plateName'
},
{
label: '商品售价',
prop: 'saleprice'
},
{
label: '质保年限',
prop: 'upgradeWarrantyPeriodName'
},
{
label: '数量(件)',
prop: 'number'
},
{
label: '支付金额',
prop: 'totalPrice'
}
]
},
dialogTableParams2: {
tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '时间',
prop: 'createdDate'
},
{
label: '当前进度',
prop: 'logTypeName'
},
{
label: '关联操作员',
prop: 'userName'
}
]
},
orderDetail: null,
fieldList: [
{
value: 'orderCode',
label: '主订单编号',
level: 1,
width: '200',
disabled: true
},
{
value: 'tradeNo',
label: '交易参考号',
level: 1,
width: '200',
disabled: true
},
{
value: 'subOrderCode',
label: '子订单编号',
level: 1,
width: '200',
disabled: true
},
{
value: 'upgradeGoodsName',
label: '商品名称',
level: 1,
width: '200',
disabled: false
},
{
value: 'upgradeGoodsCommodityCode',
label: '商品编号',
level: 1,
width: '200',
disabled: false
},
{
value: 'goodsCost',
label: '商品成本',
level: 1,
width: '110',
disabled: false
},
{
value: 'customerName',
label: '客户姓名',
level: 1,
width: '110',
disabled: false
},
{
value: 'customerPhone',
label: '客户手机号',
level: 2,
width: '110',
disabled: false
},
{
value: 'sellerName',
label: '转化员姓名',
level: 2,
width: '110',
disabled: false
},
{
value: 'employeeName',
label: '销售顾问',
level: 2,
width: '110',
disabled: false
},
{
value: 'paySuccessDate',
label: '支付时间',
level: 2,
width: '160',
disabled: false
},
{
value: 'payTypeName',
label: '支付方式',
level: 3,
width: '110',
disabled: false
},
{
value: 'subTotalPrice',
label: '支付金额',
level: 3,
width: '110',
disabled: true
},
{
value: 'actualIncomeMoney',
label: '总分账金额',
level: 3,
width: '110',
disabled: true
},
{
value: 'shopMerchantName',
label: '分账对象',
level: 3,
width: '110',
disabled: false
},
{
value: 'rule',
label: '分账规则',
level: 3,
width: '80',
disabled: false
},
{
value: 'shopProfitMoney',
label: '分账金额',
level: 3,
width: '110',
disabled: true
},
{
value: 'divisionTypeName',
label: '分账类型',
level: 3,
width: '110',
disabled: false
}
],
tableCoulumList: [],
openCount: 0,
tableCountInfo: {
nums: 0,
totalPrice: 0,
totalShopGrossProfit: 0
},
accountLevel: 1,
isAdmin: false,
curMerchantNo: '',
detailImage: '',
detailImageList: [],
pickerOptions: {},
flexWidth: 1,
screenWidth: document.body.clientWidth
}
},
// watch: {
// screenWidth: {
// immediate: true,
// handler(newValue) {
// // if (newValue < 1400) {
// // this.flexWidth = 0.2
// // } else {
// // this.flexWidth = 1
// // }
// // console.log(this.flexWidth);
// }
// }
// },
created() {
const { session } = this.$globalState
this.accountLevel = session.accountLevel
this.merchantId = session.merchantId
this.isAdmin = session.admin
let temp = JSON.parse(localStorage.getItem(`menuList${session.merchantId}`))
if (temp) {
this.tableCoulumList = temp
} else {
this.tableCoulumList = this.fieldList
}
// this.pickerOptions = this.setDateLimit()
},
mounted() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startDate = utils.dateFormat(openInfo.openDate)
// let startDate = this.$defaultStartDate
let endDate = utils.dateFormat(new Date())
this.openCount = openInfo.openCount || 0
let params = {
payStartDateStr: utils.dateFormat(startDate, 'YYYY-MM-DD 00:00:00'),
payEndDateStr: utils.dateFormat(endDate, 'YYYY-MM-DD 23:59:59')
}
this.defaultStart = utils.dateFormat(startDate, 'YYYY-MM-DD 00:00:00')
this.defaultEnd = utils.dateFormat(endDate, 'YYYY-MM-DD 23:59:59')
this.toGetCouponsList(params)
// let that = this
// window.addEventListener('resize', () => {
// let width = document.body.clientWidth
// that.screenWidth = width
// })
},
methods: {
// 设置日期组件时间范围
setDateLimit() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startdate = utils.dateFormat(openInfo.openDate)
let obj = {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date(startdate).getTime()
}
}
return obj
},
reloadImg(item) {
let index = 0
if (/^err/.test(this.detailImageList[index])) {
this.$set(this.detailImageList, index, this.detailImageList[index].slice(3))
} else {
if (!this.errobj[item]) {
this.errobj[item] = 1
} else {
if (this.errobj[item] > 2) {
return
} else {
this.errobj[item] += 1
}
}
this.$set(this.detailImageList, index, 'err' + item)
}
},
getCurStoreId(e) {
this.storeId = e
},
selectCurMechant(e) {
this.$refs.mySelectCon.selectCurMechant(e)
},
changTableCoulum(e) {
const { session } = this.$globalState
localStorage.setItem(`menuList${session.merchantId}`, JSON.stringify(e))
},
// 查看明细
openDetail(item) {
this.getDetailInfo(item.orderCode)
},
clearFind() {
let params = {
payStartDateStr: this.httpParam.payStartDateStr,
payEndDateStr: this.httpParam.payEndDateStr
}
this.dateBetween = ''
this.payType = ''
this.divisionType = ''
this.orderNum = ''
this.tradeNum = ''
this.goodsName = ''
this.storeId = ''
this.currentPage = 1
this.curMerchantNo = ''
this.toGetCouponsList(params)
},
handleParam() {
let params = {
...this.httpParam
}
if (this.dateBetween) {
//支付时间
let startDate = utils.dateFormat(this.dateBetween[0], 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.dateBetween[1], 'YYYY-MM-DD 23:59:59')
params.payStartDateStr = startDate
params.payEndDateStr = endDate
} else {
params.payStartDateStr = this.defaultStart
params.payEndDateStr = this.defaultEnd
}
if (this.payType || this.payType == 0) {
//支付方式
params.payType = this.payType
}
if (this.divisionType) {
//分账类型
params.divisionType = this.divisionType
} else {
delete params.divisionType
}
if (this.orderNum) {
params.orderCode = this.orderNum
} else {
delete params.orderCode
}
if (this.tradeNum) {
params.tradeNo = this.tradeNum
} else {
delete params.tradeNo
}
if (this.goodsName) {
params.upgradeGoodsName = this.goodsName
} else {
delete params.upgradeGoodsName
}
if (this.storeId) {
params['merchantIdList[0]'] = this.storeId
} else {
delete params['merchantIdList[0]']
}
this.currentPage = 1
this.toGetCouponsList(params)
},
toGetCouponsList(params = {}) {
let method = findupGradeOrder()
let para = {
routerMethod: method,
pageNum: this.currentPage,
pageSize: this.pageSize,
...params
}
converterApi(para).then(res => {
this.tableData = res.list.map((item, index) => {
let ruleType = item.shopProfitType == 1 ? '毛利' : '收入'
item.rule = `${ruleType}${item.shopProfitPer}%`
item.divisionTypeName = item.divisionType == 1 ? '线下对账' : '线上分账'
item.paySuccessDate = utils.dateFormat(item.paySuccessDate, 'YYYY-MM-DD HH:mm:ss')
item.payTypeName = item.payType == 1 ? '微信支付' : item.payType == 2 ? '线下收款' : 'POS机'
return item
})
this.tableTotal = res.total
this.httpParam = {
pageNum: this.currentPage,
pageSize: this.pageSize,
...params
}
this.getTotalOfJT(this.httpParam)
})
},
// 获取导流方利润统计---集团
getTotalOfJT(params) {
delete params.pageNum
delete params.pageSize
let method = orderTotalNumOfJT()
let para = {
routerMethod: method,
...params
}
converterApi(para).then(res => {
if (res) {
this.tableCountInfo = res
}
})
},
// 每页条数
handleSizeChange(value) {
this.pageSize = value
let params = {
...this.httpParam
// payStartDateStr: this.httpParam.payStartDateStr,
// payEndDateStr: this.httpParam.payEndDateStr,
// divisionType: this.httpParam.divisionType
}
this.toGetCouponsList(params)
},
// 页码
handleCurrentChange(value) {
this.currentPage = value
let params = {
...this.httpParam
// payStartDateStr: this.httpParam.payStartDateStr,
// payEndDateStr: this.httpParam.payEndDateStr,
// divisionType: this.httpParam.divisionType
}
this.toGetCouponsList(params)
},
toExport() {
let method = exportUpgrade()
let para = {
routerMethod: method,
...this.httpParam
}
converterApi(para).then(res => {
let tempaa = utils.getExplorer()
if (tempaa == 'QQ') {
window.open(res)
} else {
let iframe = document.createElement('iframe')
iframe.style.display = 'none'
iframe.src = res
document.body.appendChild(iframe)
}
})
},
// 获取明细信息
getDetailInfo(orderCode) {
let method = checkDetail()
let para = {
routerMethod: method,
orderCode
}
converterApi(para).then(res => {
this.orderDetail = res
this.dialogTableData = res.subOrderList || []
this.dialogTableData.map(item => {
item.upgradeWarrantyPeriodName = `${item.upgradeWarrantyPeriod || '--'}` + `${item.upgradeWarrantyPeriod ? '年' : ''}`
// 显示需要判断是否已升级
item.codeId = item.upgradeGoodsCommodityCode || item.baseGoodsCommodityCode
item.goodsName = item.upgradeGoodsName || item.baseGoodsName
item.goodsClass = item.upgradeGoodsTypeName || item.baseGoodsTypeName
item.plateName = item.upgradeGoodsName || item.baseBrandMerchantName
item.saleprice = item.upgradePrice || item.baseShopPrice
return item
})
this.dialogTableData2 = res.accessLogs || []
this.dialogTableData2.map(item => {
item.logTypeName = logTypeList[parseInt(item.logType)]
item.createdDate = item.createdDate ? utils.dateFormat(item.createdDate, 'YYYY-MM-DD HH:mm') : '--'
return item
})
this.detailImage = res.payOrder.payVoucher
this.detailImageList = []
this.detailImageList.push(this.detailImage)
this.dialogVisible = true
})
}
}
}
</script>
<style lang="scss" scoped>
.find_wrap {
box-sizing: border-box;
padding: 9px 0px;
display: flex;
.left_widget {
flex: 3;
display: flex;
align-items: center;
flex-wrap: wrap;
}
.right_widget {
flex: 0.2;
box-sizing: border-box;
padding-right: 15px;
}
.cell_wrapper {
box-sizing: border-box;
display: flex;
align-items: center;
margin-bottom: 18px;
.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;
}
.cell_position {
position: absolute;
bottom: 9px;
right: 15px;
}
.cell_position_next {
position: absolute;
bottom: -18px;
right: 15px;
}
.cell_position_export {
position: absolute;
bottom: 56px;
right: 15px;
}
}
.tipper {
width: 100%;
box-sizing: border-box;
padding: 6px 20px 15px 20px;
.tip_text {
font-size: 12px;
font-weight: 400;
color: #000000;
display: flex;
align-items: center;
}
.right_select {
width: 286rpx;
overflow: hidden;
}
}
.table_wrap {
padding: 0 15px;
padding-bottom: 10px;
}
.spanbtn {
cursor: pointer;
}
.dialog_content {
height: 400px;
overflow-y: scroll;
.wrapper {
width: 100%;
box-sizing: border-box;
padding-bottom: 20px;
border-bottom: 1px solid #e6e6e6;
margin-bottom: 20px;
.title {
display: flex;
align-items: center;
font-weight: bold;
}
.title_icon {
width: 2px;
height: 10px;
background: #5850ff;
margin-right: 5px;
}
.message_wrap {
box-sizing: border-box;
padding-top: 10px;
padding-right: 10px;
.box_info {
width: 33.33%;
overflow: hidden;
> div:first-child {
margin-bottom: 10px;
}
.info_text {
min-height: 17px;
font-size: 12px;
font-weight: bold;
color: #333333;
line-height: 17px;
.infoImg {
width: 100px;
height: 100px;
}
}
.flex_img {
display: flex;
align-items: flex-start;
}
}
}
.maxHeight {
min-height: 127px;
align-items: flex-start;
}
.comment_wrap {
margin-top: 10px;
.comment_rate {
display: flex;
align-items: center;
}
.comment_line {
display: flex;
align-items: center;
margin-bottom: 5px;
.textarea_con {
width: 60%;
white-space: pre-wrap;
word-spacing: 2;
}
}
.nocenter {
display: flex;
align-items: flex-start;
}
}
.dialog_table_wrap {
margin-top: 5px;
}
}
.noBorder {
border: none;
}
}
.right_select /deep/ .el-select .el-tag__close.el-icon-close {
display: none;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!