Commit 8fb8fde0 by 前端

Merge branch 'v3.7.0' into 'master'

V3.7.0

See merge request !56
2 parents f7b02736 1cb544ff
...@@ -1860,6 +1860,75 @@ ...@@ -1860,6 +1860,75 @@
"webpack-chain": "^6.4.0", "webpack-chain": "^6.4.0",
"webpack-dev-server": "^3.11.0", "webpack-dev-server": "^3.11.0",
"webpack-merge": "^4.2.2" "webpack-merge": "^4.2.2"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
}
} }
}, },
"@vue/cli-shared-utils": { "@vue/cli-shared-utils": {
...@@ -12634,75 +12703,6 @@ ...@@ -12634,75 +12703,6 @@
} }
} }
}, },
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": { "vue-router": {
"version": "3.6.5", "version": "3.6.5",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz",
......
...@@ -24,7 +24,8 @@ const getlistDepartmentTree = params => { ...@@ -24,7 +24,8 @@ const getlistDepartmentTree = params => {
// 园区店战报配置 // 园区店战报配置
const getYqReportlist = params => { const getYqReportlist = params => {
params.method = `scrm.api.boutiquecoupon.rop.router` params.method = `scrm.api.boutiquecoupon.rop.router`
params.routerMethod = 'dj.api.smarcarlife.YqMerchantActionReportConfig.listWithPage' // params.routerMethod = 'dj.api.smarcarlife.YqMerchantActionReportConfig.listWithPage'
params.routerMethod = 'dj.api.smarcarlife.MerchantActionReportConfig.listWithPage'
return http({ return http({
url: 'rop-scrm-boutiquecoupon/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'post', method: 'post',
...@@ -36,7 +37,8 @@ const getYqReportlist = params => { ...@@ -36,7 +37,8 @@ const getYqReportlist = params => {
// 更新园区店战报配置 // 更新园区店战报配置
const updateYqConfig = params => { const updateYqConfig = params => {
params.method = `scrm.api.boutiquecoupon.rop.router` params.method = `scrm.api.boutiquecoupon.rop.router`
params.routerMethod = 'dj.api.smarcarlife.YqMerchantActionReportConfig.updateConfig' // params.routerMethod = 'dj.api.smarcarlife.YqMerchantActionReportConfig.updateConfig'
params.routerMethod = 'dj.api.smarcarlife.MerchantActionReportConfig.updateConfig'
return http({ return http({
url: 'rop-scrm-boutiquecoupon/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'post', method: 'post',
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* @version: * @version:
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-01-10 10:29:41 * @LastEditTime: 2023-03-30 16:27:13
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
......
...@@ -132,6 +132,9 @@ ...@@ -132,6 +132,9 @@
</gl-select-menu> </gl-select-menu>
</transition> </transition>
</el-form-item> </el-form-item>
<el-form-item class="select-wrap" label="群名:">
<el-input v-model="groupName" placeholder="请输入群名" @blur="importGroup"></el-input>
</el-form-item>
</el-form> </el-form>
</div> </div>
</GLDialog> </GLDialog>
...@@ -153,6 +156,7 @@ export default { ...@@ -153,6 +156,7 @@ export default {
}, },
data() { data() {
return { return {
groupName: '',
isgroup: true, isgroup: true,
isAutomatic: true, isAutomatic: true,
menuIndex: 0, menuIndex: 0,
...@@ -277,6 +281,8 @@ export default { ...@@ -277,6 +281,8 @@ export default {
goodStaffName: '', goodStaffName: '',
roomName: '' roomName: ''
}, },
idBefEncryptionBattle: '',
idBefEncryptionGood: '',
baseData: { baseData: {
activityTypeList: [ activityTypeList: [
{ confId: '3', confName: '众筹' }, { confId: '3', confName: '众筹' },
...@@ -320,6 +326,12 @@ export default { ...@@ -320,6 +326,12 @@ export default {
}, },
immediate: true immediate: true
}, },
idBefEncryptionBattle(val) {
this.importGroup()
},
idBefEncryptionGood(val) {
this.importGroup()
},
filterText(val) { filterText(val) {
this.$refs.tree.filter(val) this.$refs.tree.filter(val)
}, },
...@@ -383,6 +395,7 @@ export default { ...@@ -383,6 +395,7 @@ export default {
goodStaffName: '', goodStaffName: '',
roomName: '' roomName: ''
} }
this.groupName = ''
this.hideSelect() this.hideSelect()
}, },
filterNode(value, data) { filterNode(value, data) {
...@@ -399,6 +412,12 @@ export default { ...@@ -399,6 +412,12 @@ export default {
handleNodeClick(data) { handleNodeClick(data) {
this.setSendName(data.name, data.staffId) this.setSendName(data.name, data.staffId)
// this.wechat.roomName = '' // this.wechat.roomName = ''
if (this.menuIndex == 1) {
this.idBefEncryptionBattle = data.idBefEncryption
}
if (this.menuIndex == 2) {
this.idBefEncryptionGood = data.idBefEncryption
}
this.hideSelect() this.hideSelect()
}, },
setSendName(name, staffId, isClear, i) { setSendName(name, staffId, isClear, i) {
...@@ -428,17 +447,25 @@ export default { ...@@ -428,17 +447,25 @@ export default {
this.hideSelect() this.hideSelect()
this.wechat.roomName = data.roomName this.wechat.roomName = data.roomName
const { goodStaffId, battleStaffId } = this.wechat const { goodStaffId, battleStaffId } = this.wechat
if (!data.staffInfoList) return
if (this.wechat.battleStaffName) { if (this.wechat.battleStaffName) {
const staffCloudId = data.staffInfoList.find(i => i.staffId == battleStaffId)?.staffCloudId const staffCloudId = data.staffInfoList.find(i => i.staffId == battleStaffId)?.staffCloudId
this.wechat.battleGroupId = staffCloudId + '_' + data.roomIdOnly this.wechat.battleGroupId = staffCloudId + '_R:' + data.roomIdOnly
} }
if (this.wechat.goodStaffName) { if (this.wechat.goodStaffName) {
const staffCloudId = data.staffInfoList.find(i => i.staffId == goodStaffId)?.staffCloudId const staffCloudId = data.staffInfoList.find(i => i.staffId == goodStaffId)?.staffCloudId
this.wechat.goodGroupId = staffCloudId + '_' + data.roomIdOnly this.wechat.goodGroupId = staffCloudId + '_R:' + data.roomIdOnly
} }
// this.wechat.groupId = data.roomChatId // this.wechat.groupId = data.roomChatId
}, },
importGroup() {
if (this.wechat.roomName) return
if (this.wechat.battleStaffName) {
this.wechat.battleGroupId = this.idBefEncryptionBattle + '_R:' + this.groupName
}
if (this.wechat.goodStaffName) {
this.wechat.goodGroupId = this.idBefEncryptionGood + '_R:' + this.groupName
}
},
openMenu(e) { openMenu(e) {
if (e == this.menuIndex) return (this.menuIndex = 0) if (e == this.menuIndex) return (this.menuIndex = 0)
this.menuIndex = e this.menuIndex = e
...@@ -541,7 +568,7 @@ export default { ...@@ -541,7 +568,7 @@ export default {
}) })
return return
} }
if (this.wechat.battleStaffName !== '' && this.wechat.roomName == '') { if (this.wechat.battleStaffName !== '' && this.wechat.roomName == '' && !this.groupName) {
this.$message({ this.$message({
message: '请选择关联群', message: '请选择关联群',
type: 'error' type: 'error'
...@@ -571,7 +598,7 @@ export default { ...@@ -571,7 +598,7 @@ export default {
goodGroupId, goodGroupId,
goodStaffName, goodStaffName,
goodStaffId, goodStaffId,
autoGroupName: roomName, autoGroupName: roomName ? roomName : this.groupName,
autoGroupMerchantId: this.$merchantId autoGroupMerchantId: this.$merchantId
} }
} }
...@@ -638,9 +665,18 @@ export default { ...@@ -638,9 +665,18 @@ export default {
battleStaffName, battleStaffName,
goodGroupId, goodGroupId,
battleGroupId, battleGroupId,
roomName: autoGroupName, roomName: '',
autoGroupMerchantId autoGroupMerchantId
} }
const groupId = battleGroupId || goodGroupId
if (groupId.split('_R:')[1] == autoGroupName) {
this.groupName = autoGroupName
this.idBefEncryptionBattle = battleGroupId.split('_R:')[0]
this.idBefEncryptionGood = goodGroupId.split('_R:')[0]
} else {
this.wechat.roomName = autoGroupName
}
this.getGroupList(this.wechat.staffId) this.getGroupList(this.wechat.staffId)
}) })
}, },
......
...@@ -5,7 +5,10 @@ ...@@ -5,7 +5,10 @@
<div class="container"> <div class="container">
<div class="flex-between title"> <div class="flex-between title">
<div class="title-text">专员列表</div> <div class="title-text">专员列表</div>
<el-button :size="size" type="primary" class="battle-set-btn" @click="battleSetHandle">批量配置专员</el-button> <!-- <el-button :size="size"
type="primary"
class="battle-set-btn"
@click="battleSetHandle">批量配置专员</el-button> -->
</div> </div>
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
...@@ -19,7 +22,7 @@ ...@@ -19,7 +22,7 @@
</div> </div>
<GLDialog :mode="mode" class="battle-dialog" title="配置专员" @onOk="handlebattleConfirm" @onCancel="handlebattleClose" :visible.sync="battleVisible"> <GLDialog :mode="mode" class="battle-dialog" title="配置专员" @onOk="handlebattleConfirm" @onCancel="handlebattleClose" :visible.sync="battleVisible">
<div class="gl-form-page gl-form-min"> <div class="gl-form-page gl-form-min">
<el-form :model="wechat" ref="form" label-width="210px" :rules="rules"> <el-form :model="wechat" ref="form" label-width="230px" :rules="rules">
<el-form-item label="所属企业:"> <el-form-item label="所属企业:">
<el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange"> <el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange">
<el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId"></el-option> <el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId"></el-option>
...@@ -54,7 +57,8 @@ ...@@ -54,7 +57,8 @@
</el-form-item> </el-form-item>
<!-- 收款喜报 - 关联群 --> <!-- 收款喜报 - 关联群 -->
<el-form-item class="select-wrap"> <el-form-item class="select-wrap">
<div slot="label">将 收款喜报 <div slot="label">
将 收款喜报
<img class="icon-eye" @click="handlePoster('xiReport')" src="@/assets/icon-eye.png" /> <img class="icon-eye" @click="handlePoster('xiReport')" src="@/assets/icon-eye.png" />
:推送至群聊: :推送至群聊:
</div> </div>
...@@ -92,9 +96,13 @@ ...@@ -92,9 +96,13 @@
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="手动输入群名:">
<el-input v-model="groupCofListInput.xiReportValue" placeholder="将收款喜报推送至群聊"></el-input>
</el-form-item>
<!-- 战报 - 关联群 --> <!-- 战报 - 关联群 -->
<el-form-item class="select-wrap"> <el-form-item class="select-wrap">
<div slot="label">将 战报 <div slot="label">
将 战报
<img class="icon-eye" @click="handlePoster('zhanReport')" src="@/assets/icon-eye.png" /> <img class="icon-eye" @click="handlePoster('zhanReport')" src="@/assets/icon-eye.png" />
:推送至群聊: :推送至群聊:
</div> </div>
...@@ -132,9 +140,13 @@ ...@@ -132,9 +140,13 @@
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="手动输入群名:">
<el-input v-model="groupCofListInput.zhanReportValue" placeholder="将战报推送至群聊"></el-input>
</el-form-item>
<!-- 补单通知 - 关联群 --> <!-- 补单通知 - 关联群 -->
<el-form-item class="select-wrap"> <el-form-item class="select-wrap">
<div slot="label">将 补单通知 <div slot="label">
将 补单通知
<img class="icon-eye" @click="handlePoster('orderReport')" src="@/assets/icon-eye.png" /> <img class="icon-eye" @click="handlePoster('orderReport')" src="@/assets/icon-eye.png" />
:推送至群聊: :推送至群聊:
</div> </div>
...@@ -172,9 +184,13 @@ ...@@ -172,9 +184,13 @@
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="手动输入群名:">
<el-input v-model="groupCofListInput.orderReportValue" placeholder="将补单通知推送至群聊"></el-input>
</el-form-item>
<!-- SA喜报 - 关联群 --> <!-- SA喜报 - 关联群 -->
<el-form-item class="select-wrap"> <el-form-item class="select-wrap">
<div slot="label">将 SA喜报 <div slot="label">
将 SA喜报
<img class="icon-eye" @click="handlePoster('saReport')" src="@/assets/icon-eye.png" /> <img class="icon-eye" @click="handlePoster('saReport')" src="@/assets/icon-eye.png" />
:推送至群聊: :推送至群聊:
</div> </div>
...@@ -212,6 +228,53 @@ ...@@ -212,6 +228,53 @@
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="手动输入群名:">
<el-input v-model="groupCofListInput.saReportValue" placeholder="将SA喜报推送至群聊"></el-input>
</el-form-item>
<!-- SA个人喜报 - 关联群 -->
<el-form-item class="select-wrap">
<div slot="label">
将 SA个人喜报
<img class="icon-eye" @click="handlePoster('saPerReport')" src="@/assets/icon-eye.png" />
:推送至群聊:
</div>
<div class="common el-form-item__content">
<div class="el-input" ref="groupSaPerRef">
<div class="el-input__inner" @click="openGroup('saPerReport')">
<span class="placeholder">请选择(可多选)</span>
</div>
<span class="el-input__suffix" @click="openGroup('saPerReport')">
<span class="el-input__suffix-inner"><i :class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', groupHideObj.saPerReport ? 'is-reverse' : '']"></i></span>
</span>
</div>
</div>
<transition name="el-zoom-in-top" v-if="!groupHideObj.saPerReport">
<gl-select-menu :domEl="domSaPerEl" @changeStatu="hideSelect">
<el-form-item class="search-groomname">
<el-input placeholder="请输入搜索关键词" prefix-icon="el-icon-search" v-model="roomName"></el-input>
</el-form-item>
<div class="el-select-dropdown__wrap el-scrollbar__wrap">
<ul class="el-scrollbar__view el-select-dropdown__list">
<template v-if="groupList.length > 0">
<li v-for="(k, kIdx) in roomName == '' ? groupList : stageList" class="el-select-dropdown__item" :key="kIdx" @click="e => selectGroup(e, k, 'saPerReport')">
<span :class="[groupCofList.saPerReport.findIndex(i => i.roomName == k.roomName) != -1 ? 'grey-txt' : '']">{{ k.roomName }}</span>
</li>
</template>
<div class="empty" v-else>暂无数据</div>
</ul>
</div>
</gl-select-menu>
</transition>
<div class="group-list-box">
<div class="list-tag" v-for="(k, kIdx) in groupCofList.saPerReport" :key="kIdx">
<span class="tag-txt">{{ k.roomName }}</span>
<img class="icon-close" @click="handleGroupRemove(kIdx, 'saPerReport')" src="@/assets/icon-close.png" />
</div>
</div>
</el-form-item>
<el-form-item label="手动输入群名:">
<el-input v-model="groupCofListInput.saPerReportValue" placeholder="将SA个人喜报推送至群聊"></el-input>
</el-form-item>
</el-form> </el-form>
</div> </div>
</GLDialog> </GLDialog>
...@@ -237,13 +300,22 @@ export default { ...@@ -237,13 +300,22 @@ export default {
xiReport: true, xiReport: true,
zhanReport: true, zhanReport: true,
orderReport: true, orderReport: true,
saReport: true saReport: true,
saPerReport: true
}, },
groupCofList: { groupCofList: {
xiReport: [], xiReport: [],
zhanReport: [], zhanReport: [],
orderReport: [], orderReport: [],
saReport: [] saReport: [],
saPerReport: []
},
groupCofListInput: {
xiReportValue: '',
zhanReportValue: '',
orderReportValue: '',
saReportValue: '',
saPerReportValue: ''
}, },
groupToType: [ groupToType: [
{ {
...@@ -261,6 +333,10 @@ export default { ...@@ -261,6 +333,10 @@ export default {
{ {
attr: 'saReport', attr: 'saReport',
type: 4 type: 4
},
{
attr: 'saPerReport',
type: 5
} }
], ],
// 查看大图 // 查看大图
...@@ -303,11 +379,17 @@ export default { ...@@ -303,11 +379,17 @@ export default {
}, },
{ {
label: '商户号', label: '商户号',
name: 'yqMerchantId', name: 'unionMerchantId',
type: 'input', type: 'input',
maxlength: 11 maxlength: 11
}, },
{ {
label: '4S店',
name: 'merchantName',
type: 'input',
maxlength: 128
},
{
label: '企微名称', label: '企微名称',
name: 'enterpriseMerchantId', name: 'enterpriseMerchantId',
type: 'select', type: 'select',
...@@ -326,11 +408,18 @@ export default { ...@@ -326,11 +408,18 @@ export default {
listName: 'list', listName: 'list',
tableOption: true, tableOption: true,
// // 行数据的key // // 行数据的key
mutiSelectUniqueKey: 'activityId', // mutiSelectUniqueKey: 'activityId',
// 多选ref的名称 // 多选ref的名称
mutiSelectName: 'activity', // mutiSelectName: 'activity',
tableColumns: [ tableColumns: [
{ {
label: '4S店',
prop: 'merchantName',
formatter: cellValue => {
return cellValue.merchantName + (cellValue.merchantId || '')
}
},
{
label: '园区店', label: '园区店',
prop: 'yqMerchantName', prop: 'yqMerchantName',
formatter: cellValue => { formatter: cellValue => {
...@@ -339,13 +428,14 @@ export default { ...@@ -339,13 +428,14 @@ export default {
}, },
{ {
label: '企微', label: '企微',
prop: 'enterpriseMerchantName' prop: 'enterpriseMerchantName',
width: 200
}, },
{ {
label: '推送人', label: '推送人',
prop: 'staffName', prop: 'staffName',
line: 1, line: 1,
width: 300 width: 200
}, },
{ {
label: '内容', label: '内容',
...@@ -355,7 +445,8 @@ export default { ...@@ -355,7 +445,8 @@ export default {
1: '(推收款喜报)', 1: '(推收款喜报)',
2: '(推战报)', 2: '(推战报)',
3: '(推补录订单)', 3: '(推补录订单)',
4: '(推SA喜报)' 4: '(推SA喜报)',
5: '(推SA个人喜报)'
} }
let txt = '' let txt = ''
cellValue.groupConfigList?.forEach(item => { cellValue.groupConfigList?.forEach(item => {
...@@ -417,6 +508,9 @@ export default { ...@@ -417,6 +508,9 @@ export default {
}, },
automaticEl() { automaticEl() {
return this.$refs.automaticRef return this.$refs.automaticRef
},
domSaPerEl() {
return this.$refs.groupSaPerRef
} }
}, },
watch: { watch: {
...@@ -490,7 +584,8 @@ export default { ...@@ -490,7 +584,8 @@ export default {
xiReport: [], xiReport: [],
zhanReport: [], zhanReport: [],
orderReport: [], orderReport: [],
saReport: [] saReport: [],
saPerReport: []
} }
this.hideSelect() this.hideSelect()
}, },
...@@ -509,6 +604,7 @@ export default { ...@@ -509,6 +604,7 @@ export default {
this.hideSelect() this.hideSelect()
this.wechat.automaticName = data.name this.wechat.automaticName = data.name
this.wechat.staffId = data.staffId this.wechat.staffId = data.staffId
this.idBefEncryption = data.idBefEncryption
this.getGroupList(this.wechat.staffId, true) this.getGroupList(this.wechat.staffId, true)
}, },
hideSelect() { hideSelect() {
...@@ -551,6 +647,7 @@ export default { ...@@ -551,6 +647,7 @@ export default {
this.groupHideObj.zhanReport = true this.groupHideObj.zhanReport = true
this.groupHideObj.orderReport = true this.groupHideObj.orderReport = true
this.groupHideObj.saReport = true this.groupHideObj.saReport = true
this.groupHideObj.saPerReport = true
this.isAutomatic = !this.isAutomatic this.isAutomatic = !this.isAutomatic
}, },
handleGroupRemove(idx, groupHideAttr) { handleGroupRemove(idx, groupHideAttr) {
...@@ -570,7 +667,8 @@ export default { ...@@ -570,7 +667,8 @@ export default {
xiReport: [], xiReport: [],
zhanReport: [], zhanReport: [],
orderReport: [], orderReport: [],
saReport: [] saReport: [],
saPerReport: []
} }
}, },
battleSetHandle() { battleSetHandle() {
...@@ -589,7 +687,8 @@ export default { ...@@ -589,7 +687,8 @@ export default {
xiReport: [], xiReport: [],
zhanReport: [], zhanReport: [],
orderReport: [], orderReport: [],
saReport: [] saReport: [],
saPerReport: []
} }
this.getDepartmentTree() this.getDepartmentTree()
this.battleVisible = true this.battleVisible = true
...@@ -618,7 +717,8 @@ export default { ...@@ -618,7 +717,8 @@ export default {
let isGroupEmpty = Object.keys(this.groupCofList) let isGroupEmpty = Object.keys(this.groupCofList)
.map(item => this.groupCofList[item].length) .map(item => this.groupCofList[item].length)
.every(item => item == 0) .every(item => item == 0)
if (isGroupEmpty) { let isGroupEmptyInput = Object.keys(this.groupCofListInput).every(item => !item)
if (isGroupEmpty && isGroupEmptyInput) {
this.$message({ this.$message({
message: '推送配置必须配置至少一项', message: '推送配置必须配置至少一项',
type: 'error', type: 'error',
...@@ -636,7 +736,8 @@ export default { ...@@ -636,7 +736,8 @@ export default {
groupMerchantId: this.config.merchantId, groupMerchantId: this.config.merchantId,
updatedBy: this.$globalState.session.accountName, updatedBy: this.$globalState.session.accountName,
yqMerchantIdList: [], yqMerchantIdList: [],
groupConfigList: [] groupConfigList: [],
merchantId: this.setectList[0]?.merchantId
} }
this.setectList.forEach(item => { this.setectList.forEach(item => {
...@@ -654,6 +755,13 @@ export default { ...@@ -654,6 +755,13 @@ export default {
actionReportType: type actionReportType: type
}) })
}) })
} else if (this.groupCofListInput[item + 'Value']) {
params.groupConfigList.push({
groupId: this.idBefEncryption + '_R:' + this.groupCofListInput[item + 'Value'],
groupName: this.groupCofListInput[item + 'Value'],
groupMerchantId: this.config.merchantId,
actionReportType: type
})
} }
}) })
console.log(params, 'params---') console.log(params, 'params---')
...@@ -674,7 +782,7 @@ export default { ...@@ -674,7 +782,7 @@ export default {
this.battleVisible = false this.battleVisible = false
this.clearData() this.clearData()
}, },
handleDetails() { }, handleDetails() {},
handlebattleOn(data, sign) { handlebattleOn(data, sign) {
this.setectList = [] this.setectList = []
this.setectList.push(data) this.setectList.push(data)
...@@ -686,7 +794,15 @@ export default { ...@@ -686,7 +794,15 @@ export default {
xiReport: [], xiReport: [],
zhanReport: [], zhanReport: [],
orderReport: [], orderReport: [],
saReport: [] saReport: [],
saPerReport: []
}
this.groupCofListInput = {
xiReportValue: '',
zhanReportValue: '',
orderReportValue: '',
saReportValue: '',
saPerReportValue: ''
} }
this.battleVisible = true this.battleVisible = true
// 编辑 // 编辑
...@@ -700,11 +816,16 @@ export default { ...@@ -700,11 +816,16 @@ export default {
data.groupConfigList.forEach(item => { data.groupConfigList.forEach(item => {
let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType).attr let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType).attr
if (item.groupId) { if (item.groupId) {
if (item.groupId.split('_R:')[1] && item.groupId.split('_R:')[1] == item.groupName) {
this.groupCofListInput[groupHideAttr + 'Value'] = item.groupName
this.idBefEncryption = item.groupId.split('_R:')[0]
} else {
this.groupCofList[groupHideAttr].push({ this.groupCofList[groupHideAttr].push({
groupId: item.groupId, groupId: item.groupId,
roomName: item.groupName roomName: item.groupName
}) })
} }
}
}) })
this.getGroupList(this.wechat.staffId) this.getGroupList(this.wechat.staffId)
} }
...@@ -719,7 +840,8 @@ export default { ...@@ -719,7 +840,8 @@ export default {
xiReport: [], xiReport: [],
zhanReport: [], zhanReport: [],
orderReport: [], orderReport: [],
saReport: [] saReport: [],
saPerReport: []
} }
} }
} }
...@@ -872,6 +994,7 @@ export default { ...@@ -872,6 +994,7 @@ export default {
} }
.group-list-box { .group-list-box {
display: flex; display: flex;
flex-wrap: wrap;
.list-tag { .list-tag {
box-sizing: border-box; box-sizing: border-box;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!