Commit cd40e0c7 by 前端

Merge branch 'v2.10.0' into 'master'

V2.10.0

See merge request !5
2 parents 8d21f51a 1a26d2ae
......@@ -1494,6 +1494,43 @@
}
}
},
"@vue/compiler-sfc": {
"version": "2.7.10",
"resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-2.7.10.tgz",
"integrity": "sha512-55Shns6WPxlYsz4WX7q9ZJBL77sKE1ZAYNYStLs6GbhIOMrNtjMvzcob6gu3cGlfpCR4bT7NXgyJ3tly2+Hx8Q==",
"requires": {
"@babel/parser": "^7.18.4",
"postcss": "^8.4.14",
"source-map": "^0.6.1"
},
"dependencies": {
"@babel/parser": {
"version": "7.18.13",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.13.tgz",
"integrity": "sha512-dgXcIfMuQ0kgzLB2b9tRZs7TTFFaGM2AbtA4fJgUUYukzGH4jwsS7hzQHEGs67jdehpm22vkgKwvbU+aEflgwg=="
},
"picocolors": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
"integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ=="
},
"postcss": {
"version": "8.4.16",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.16.tgz",
"integrity": "sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ==",
"requires": {
"nanoid": "^3.3.4",
"picocolors": "^1.0.0",
"source-map-js": "^1.0.2"
}
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="
}
}
},
"@vue/component-compiler-utils": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/@vue/component-compiler-utils/-/component-compiler-utils-3.1.0.tgz",
......@@ -3779,6 +3816,11 @@
"css-tree": "1.0.0-alpha.37"
}
},
"csstype": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA=="
},
"current-script-polyfill": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/current-script-polyfill/-/current-script-polyfill-1.0.0.tgz",
......@@ -3812,7 +3854,7 @@
"de-indent": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
"integrity": "sha1-sgOOhG3DO6pXlhKNCAS0VbjB4h0=",
"integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==",
"dev": true
},
"debug": {
......@@ -4315,6 +4357,19 @@
"integrity": "sha512-QrvAIyfIVMxakBzfnoamzSuVP4xs6UpaPmshuz7PogSzC31K0us46gqYPf/UjjP+mYC+i02LROg8UgxF814oig==",
"dev": true
},
"element-ui": {
"version": "2.15.9",
"resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.15.9.tgz",
"integrity": "sha512-dx45nQLt4Hn87/Z9eRr3ex6KFZbxlFAwEU3QoW3wA5EsYftvHTyL9Pq7VnXXD7hu1Eiaup2jcs6kp+/VSFmXuA==",
"requires": {
"async-validator": "~1.8.1",
"babel-helper-vue-jsx-merge-props": "^2.0.0",
"deepmerge": "^1.2.0",
"normalize-wheel": "^1.0.1",
"resize-observer-polyfill": "^1.5.0",
"throttle-debounce": "^1.0.1"
}
},
"elliptic": {
"version": "6.5.2",
"resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz",
......@@ -6052,9 +6107,9 @@
}
},
"glsx-components": {
"version": "1.4.8",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.4.8.tgz",
"integrity": "sha512-tAIAWdOnHRuyzqz28UnuHQBv/+qWEfTBbEUwB8lwXpyO3eP7ytZwdmqnDOZ8KDaMuzJPfYgNc/aqczrGtyAdNg==",
"version": "1.5.2",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.2.tgz",
"integrity": "sha512-5/LaPu0B1uT7Kzl6oyIqyFT/NXIz2w7HNstiRtHaUQN1waSrPPPtzRRwywJg6CSSL+p994NaqPRnX696NAYzKg==",
"requires": {
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
......@@ -6067,19 +6122,6 @@
"version": "3.24.1",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.24.1.tgz",
"integrity": "sha512-0QTBSYSUZ6Gq21utGzkfITDylE8jWC9Ne1D2MrhvlsZBI1x39OdDIVbzSqtgMndIy6BlHxBXpMGqzZmnztg2rg=="
},
"element-ui": {
"version": "2.15.9",
"resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.15.9.tgz",
"integrity": "sha512-dx45nQLt4Hn87/Z9eRr3ex6KFZbxlFAwEU3QoW3wA5EsYftvHTyL9Pq7VnXXD7hu1Eiaup2jcs6kp+/VSFmXuA==",
"requires": {
"async-validator": "~1.8.1",
"babel-helper-vue-jsx-merge-props": "^2.0.0",
"deepmerge": "^1.2.0",
"normalize-wheel": "^1.0.1",
"resize-observer-polyfill": "^1.5.0",
"throttle-debounce": "^1.0.1"
}
}
}
},
......@@ -7961,6 +8003,11 @@
"integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==",
"dev": true
},
"nanoid": {
"version": "3.3.4",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz",
"integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw=="
},
"nanomatch": {
"version": "1.2.13",
"resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz",
......@@ -10810,6 +10857,11 @@
"integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
"dev": true
},
"source-map-js": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw=="
},
"source-map-resolve": {
"version": "0.5.3",
"resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz",
......@@ -11915,9 +11967,13 @@
"dev": true
},
"vue": {
"version": "2.6.11",
"resolved": "https://registry.npmjs.org/vue/-/vue-2.6.11.tgz",
"integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ=="
"version": "2.7.10",
"resolved": "https://registry.npmjs.org/vue/-/vue-2.7.10.tgz",
"integrity": "sha512-HmFC70qarSHPXcKtW8U8fgIkF6JGvjEmDiVInTkKZP0gIlEPhlVlcJJLkdGIDiNkIeA2zJPQTWJUI4iWe+AVfg==",
"requires": {
"@vue/compiler-sfc": "2.7.10",
"csstype": "^3.1.0"
}
},
"vue-cli-plugin-element": {
"version": "1.0.1",
......@@ -11982,13 +12038,13 @@
}
},
"vue-template-compiler": {
"version": "2.6.11",
"resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.6.11.tgz",
"integrity": "sha512-KIq15bvQDrcCjpGjrAhx4mUlyyHfdmTaoNfeoATHLAiWB+MU3cx4lOzMwrnUh9cCxy0Lt1T11hAFY6TQgroUAA==",
"version": "2.7.10",
"resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.10.tgz",
"integrity": "sha512-QO+8R9YRq1Gudm8ZMdo/lImZLJVUIAM8c07Vp84ojdDAf8HmPJc7XB556PcXV218k2AkKznsRz6xB5uOjAC4EQ==",
"dev": true,
"requires": {
"de-indent": "^1.0.2",
"he": "^1.1.0"
"he": "^1.2.0"
}
},
"vue-template-es2015-compiler": {
......
......@@ -13,7 +13,7 @@
"core-js": "^3.4.4",
"el-tree-transfer": "^2.2.6",
"glsx-common": "^1.4.6",
"glsx-components": "^1.4.8",
"glsx-components": "^1.5.2",
"glsx-table": "^1.0.9"
},
"devDependencies": {
......@@ -35,7 +35,7 @@
"prettier": "^1.19.1",
"sass-loader": "^8.0.0",
"vue-cli-plugin-element": "^1.0.1",
"vue-template-compiler": "^2.6.10"
"vue-template-compiler": "^2.7.10"
},
"browserslist": [
"> 1%",
......
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-01-11 18:42:34
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-08-29 15:18:21
* @FilePath: \scrm-micro-home\src\api\index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
/*
所有模块都定义在 modules
|-modules
|----demo.js
......
......@@ -24,7 +24,8 @@ const createTask = params => {
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
sign: true,
returnAll: true
})
}
//删除任务
......@@ -77,7 +78,28 @@ const phoneCheck = params => {
sign: true
})
}
//门店任务创建内容回显
const getTaskContent = params => {
params.method = 'entmicro.api.outbound.call.merchant.task.create.content.echo'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 更改外呼任务跟进人和欢迎语
const updateTaskContent = params => {
params.method = 'entmicro.api.outbound.call.merchant.task.create.content.update'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default {
checkTask,
createTask,
......@@ -85,5 +107,7 @@ export default {
taskPage,
taskDetail,
phoneStatusPage,
phoneCheck
phoneCheck,
getTaskContent,
updateTaskContent
}
......@@ -17,8 +17,8 @@ export const fetchConfig = function(isEnv = true) {
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/616d28231072f92988f059fb/home/config')
return new Http().get('https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
return new Http().get('https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config')
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
}
export const config = {
install(vue, cfg) {
......
......@@ -88,4 +88,31 @@ util.openTab = function(url) {
link.rel = 'opener'
link.click()
}
util.isShowBtn = function(value, permissions) {
let isShowStatus = false
const menu = JSON.parse(sessionStorage['SCRM_BASE_MENULIST'])
menuLevel(menu)
function menuLevel(item) {
item.forEach(itm => {
if (value && itm.path == value) {
isShowStatus = true
}
if (
!value &&
itm.path ==
'/' +
location.pathname
.split('/')
.slice(-2)
.join('/') &&
itm.meta && itm.meta.permissions.includes(permissions)
){isShowStatus = true}
if (itm.children) {
menuLevel(itm.children)
}
})
}
return isShowStatus
}
export default util
......@@ -111,8 +111,7 @@
</div>
</div>
</div>
<GLDialog mode="small" okText="去关联" @onOk="jumpStore" @onCancel="dialogVisible=false" content="您需先创建门店并且门店关联企业微信后,方可正常使用!" :visible.sync="dialogVisible">
</GLDialog>
<GLDialog mode="small" okText="去关联" @onOk="jumpStore" @onCancel="dialogVisible = false" content="您需先创建门店并且门店关联企业微信后,方可正常使用!" :visible.sync="dialogVisible"></GLDialog>
</div>
</template>
......@@ -178,14 +177,16 @@ export default {
dataEndDateStr
})
.then(res => {
this.outputRank = res
this.totalOutputValueMax = 0
this.averageValue = res ? res[0].averageValue : 0
this.outputRank.forEach(item => {
if (item.totalOutputValue >= this.totalOutputValueMax) {
this.totalOutputValueMax = item.totalOutputValue ? item.totalOutputValue : 1
}
})
if (res) {
this.outputRank = res
this.totalOutputValueMax = 0
this.averageValue = res.length ? res[0].averageValue : 0
this.outputRank.forEach(item => {
if (item.totalOutputValue >= this.totalOutputValueMax) {
this.totalOutputValueMax = item.totalOutputValue ? item.totalOutputValue : 1
}
})
}
})
},
//排名
......@@ -195,27 +196,28 @@ export default {
sortType: this.radioStore
})
.then(res => {
this.custSortList = res.custSortList ? res.custSortList : []
this.custAvergCount = res.custAvergCount
let modelStatus
if (this.$globalState.session.merchantModel == 1 && this.$globalState.session.accountLevel == 1 && sessionStorage.getItem('wxAcess')) {
modelStatus = true
}
if (this.$globalState.session.merchantModel == 2 && this.$globalState.session.accountLevel == 4 && sessionStorage.getItem('wxAcess')) {
modelStatus = true
}
if (this.custSortList.length == 0 && !sessionStorage.getItem('firstStatus') && modelStatus) {
this.dialogVisible = true
sessionStorage.setItem('firstStatus', 1)
return
}
this.custSortMax = 0
this.custSortList.forEach(item => {
if (item.custCount >= this.custSortMax) {
this.custSortMax = item.custCount ? item.custCount : 1
if (res) {
this.custSortList = res.custSortList ? res.custSortList : []
this.custAvergCount = res.custAvergCount
let modelStatus
if (this.$globalState.session.merchantModel == 1 && this.$globalState.session.accountLevel == 1 && sessionStorage.getItem('wxAcess')) {
modelStatus = true
}
})
console.log(this.custSortMax)
if (this.$globalState.session.merchantModel == 2 && this.$globalState.session.accountLevel == 4 && sessionStorage.getItem('wxAcess')) {
modelStatus = true
}
if (this.custSortList.length == 0 && !sessionStorage.getItem('firstStatus') && modelStatus) {
this.dialogVisible = true
sessionStorage.setItem('firstStatus', 1)
return
}
this.custSortMax = 0
this.custSortList.forEach(item => {
if (item.custCount >= this.custSortMax) {
this.custSortMax = item.custCount ? item.custCount : 1
}
})
}
})
}
},
......@@ -227,7 +229,7 @@ export default {
this.getOutput()
}
}
</script>
</script>
<style scoped lang="scss">
.dialog-panel {
......@@ -242,9 +244,9 @@ export default {
}
}
.summary-ranking-panel {
/deep/ .btn-three {
display: none;
}
/deep/ .btn-three {
display: none;
}
display: flex;
.summary-ranking-box {
width: 50%;
......@@ -407,4 +409,4 @@ export default {
height: 32px;
}
}
</style>
\ No newline at end of file
</style>
......@@ -5,6 +5,7 @@
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDel(scope.scope)" :disabled="scope.scope.taskStatus == 2 || scope.scope.taskStatus == 3">删除</el-button>
<el-button type="text" @click="goDetail(scope.scope)" v-if="activeIndex == 2">数据详情</el-button>
<el-button type="text" @click="goEdit(scope.scope)">编辑</el-button>
</div>
<template slot="taskStatus" slot-scope="scope">
<div :class="['task_icon', `task_icon${scope.scope.taskStatus}`]">{{ taskStatus(scope.scope.taskStatus) }}</div>
......@@ -98,12 +99,13 @@ export default {
},
{
label: '创建时间',
prop: 'createdTime'
prop: 'createdTime',
minWidth: 180
},
{
label: '操作',
prop: 'optionBtns',
width: '90px',
width: '120px',
addHtml: 'optionBtns',
fixed: 'right'
}
......@@ -141,12 +143,12 @@ export default {
{
label: '提交时间',
prop: 'submitTime',
width: 170
width: 180
},
{
label: '操作',
prop: 'optionBtns',
width: '160px',
width: '200px',
addHtml: 'optionBtns',
fixed: 'right'
}
......@@ -221,6 +223,9 @@ export default {
},
goDetail(scope) {
this.$router.push('/home/taskDetail?id=' + scope.id)
},
goEdit(data){
this.$emit('update',data)
}
}
}
......
......@@ -182,15 +182,15 @@
</div>
</div>
</div>
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisible = false" :visible.sync="dialogVisible">
<GLDialog title="提示" class="gl-form-min gl-form-page" @onOk="handleSure" @onCancel="dialogVisible = false" :visible.sync="dialogVisible">
<el-form ref="addForm" :model="addForm" class="code-body-form" label-width="120px" :rules="addRules">
<el-form-item label="号码备注" prop="remark" size="small" class="form-w40">
<el-form-item label="号码备注:" prop="remark" size="small" class="form-w40">
<el-input size="small" v-model.trim="addForm.remark" placeholder="请输入号码备注" maxlength="6"></el-input>
</el-form-item>
<el-form-item label="联系方式" prop="contactInformation" size="small" class="form-w40">
<el-form-item label="联系方式:" prop="contactInformation" size="small" class="form-w40">
<el-input size="small" v-model.trim="addForm.contactInformation" placeholder="请输入联系方式" maxlength="15"></el-input>
</el-form-item>
<el-form-item label="同步到卡片" prop="configName" size="small" class="form-w40">
<el-form-item label="同步到卡片:" prop="configName" size="small" class="form-w40">
<el-switch v-model="addForm.isShow" :active-value="0" :inactive-value="-1"></el-switch>
</el-form-item>
</el-form>
......
......@@ -120,14 +120,16 @@ export default {
this.loading = true
this.$apis.home.viewData({}).then(res => {
this.loading = false
const { purchaseCustomerCount, waitMatchCustomerAddCount, purchaseCustomerAddCount, purchaseCustomerAddPercent, waitMatchPercent, entmicroAddCustomerCount, customerCount } = res
this.purchaseCustomerCount = purchaseCustomerCount
this.waitMatchCustomerAddCount = waitMatchCustomerAddCount
this.purchaseCustomerAddCount = purchaseCustomerAddCount
this.purchaseCustomerAddPercent = (purchaseCustomerAddPercent * 100).toFixed(2)
this.waitMatchPercent = waitMatchPercent.toFixed(2)
this.entmicroAddCustomerCount = entmicroAddCustomerCount
this.entmicroAddCustomerCountPercent = customerCount ? ((100 * this.entmicroAddCustomerCount) / customerCount).toFixed(2) : 0
if (res) {
const { purchaseCustomerCount, waitMatchCustomerAddCount, purchaseCustomerAddCount, purchaseCustomerAddPercent, waitMatchPercent, entmicroAddCustomerCount, customerCount } = res
this.purchaseCustomerCount = purchaseCustomerCount
this.waitMatchCustomerAddCount = waitMatchCustomerAddCount
this.purchaseCustomerAddCount = purchaseCustomerAddCount
this.purchaseCustomerAddPercent = (purchaseCustomerAddPercent * 100).toFixed(2)
this.waitMatchPercent = waitMatchPercent.toFixed(2)
this.entmicroAddCustomerCount = entmicroAddCustomerCount
this.entmicroAddCustomerCountPercent = customerCount ? ((100 * this.entmicroAddCustomerCount) / customerCount).toFixed(2) : 0
}
})
}
},
......
......@@ -254,7 +254,7 @@ export default {
//折线图
async getChart() {
this.$apis.home.getChart({ day: 30, date: this.summaryTime }).then(res => {
const { custAddList, custEntmicroAdds, custLoseList } = res
const { custAddList, custEntmicroAdds, custLoseList } = res ? res : { custAddList: [], custEntmicroAdds: [], custLoseList: [] }
let custAddListData = custAddList.map(item => {
return item.customerCount
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!