Commit f58ea694 by 前端

Merge branch 'SAAS+V4.55.0-0730' into 'master'

上线合并

See merge request !85
2 parents a70b3a70 8bb4240b
...@@ -66,7 +66,8 @@ const getStaffList = params => { ...@@ -66,7 +66,8 @@ const getStaffList = params => {
} }
// 企微高级群聊列表 // 企微高级群聊列表
const getGroupList = params => { const getGroupList = params => {
params.method = `entmicro.api.wechatcloudcontrol.batchmessaging.group.list` // params.method = `entmicro.api.wechatcloudcontrol.batchmessaging.group.list`
params.method = `entmicro.api.wechatcloudcontrol.activityreport.worktool.grouplist`
return http({ return http({
url: url1, url: url1,
method: 'POST', method: 'POST',
......
...@@ -72,7 +72,8 @@ const getStaffList = params => { ...@@ -72,7 +72,8 @@ const getStaffList = params => {
} }
// 企微高级群聊列表 // 企微高级群聊列表
const getGroupList = params => { const getGroupList = params => {
params.method = `entmicro.api.wechatcloudcontrol.batchmessaging.group.list` // params.method = `entmicro.api.wechatcloudcontrol.batchmessaging.group.list`
params.method = `entmicro.api.wechatcloudcontrol.activityreport.worktool.grouplist`
return http({ return http({
url: url1, url: url1,
method: 'POST', method: 'POST',
...@@ -84,39 +85,39 @@ const getGroupList = params => { ...@@ -84,39 +85,39 @@ const getGroupList = params => {
// 分页查询驻店员工群聊配置 // 分页查询驻店员工群聊配置
const getStaffCofList = params => { const getStaffCofList = params => {
params.method = `scrm.api.boutiquecoupon.rop.router` params.method = `scrm.api.boutiquecoupon.rop.router`
params.routerMethod = 'dj.api.smarcarlife.MerchantActionReportConfig.listStaffWithPage' params.routerMethod = 'dj.api.smarcarlife.MerchantActionReportConfig.listStaffWithPage'
return http({ return http({
url: 'rop-scrm-boutiquecoupon/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'post', method: 'post',
data: params, data: params,
sign: true sign: true
}) })
} }
// 查询广联数科商户下角色列表 // 查询广联数科商户下角色列表
const getGlskMerchantRole = params => { const getGlskMerchantRole = params => {
params.method = `scrm.api.boutiquecoupon.rop.router` params.method = `scrm.api.boutiquecoupon.rop.router`
params.routerMethod = 'dj.api.smarcarlife.MerchantActionReportConfig.getGlskMerchantRole' params.routerMethod = 'dj.api.smarcarlife.MerchantActionReportConfig.getGlskMerchantRole'
return http({ return http({
url: 'rop-scrm-boutiquecoupon/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'post', method: 'post',
data: params, data: params,
sign: true sign: true
}) })
} }
// 更新驻店员工群聊配置 // 更新驻店员工群聊配置
const updateStaffConfig = params => { const updateStaffConfig = params => {
params.method = `scrm.api.boutiquecoupon.rop.router` params.method = `scrm.api.boutiquecoupon.rop.router`
params.routerMethod = 'dj.api.smarcarlife.MerchantActionReportConfig.updateStaffConfig' params.routerMethod = 'dj.api.smarcarlife.MerchantActionReportConfig.updateStaffConfig'
return http({ return http({
url: 'rop-scrm-boutiquecoupon/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'post', method: 'post',
data: params, data: params,
sign: true, sign: true,
returnAll: true returnAll: true
}) })
} }
export default { getStaffList, getMerchantList, getlistDepartmentTree, getYqReportlist, updateYqConfig, insertStaff, getGroupList, getStaffCofList, getGlskMerchantRole, updateStaffConfig } export default { getStaffList, getMerchantList, getlistDepartmentTree, getYqReportlist, updateYqConfig, insertStaff, getGroupList, getStaffCofList, getGlskMerchantRole, updateStaffConfig }
...@@ -8,8 +8,10 @@ ...@@ -8,8 +8,10 @@
<div class="config-wrap gl-form-page"> <div class="config-wrap gl-form-page">
<el-form ref="form" :model="form" label-width="154px"> <el-form ref="form" :model="form" label-width="154px">
<el-form-item label="所属企业:"> <el-form-item label="所属企业:">
<el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange" @visible-change="hideSelect"> <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> @visible-change="hideSelect">
<el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName"
:value="item.merchantId"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 推送人 --> <!-- 推送人 -->
...@@ -21,7 +23,8 @@ ...@@ -21,7 +23,8 @@
{{ wechat.automaticName }} {{ wechat.automaticName }}
</div> </div>
<span class="el-input__suffix" @click="openAutomatic"> <span class="el-input__suffix" @click="openAutomatic">
<span class="el-input__suffix-inner"><i :class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', isAutomatic ? 'is-reverse' : '']"></i></span> <span class="el-input__suffix-inner"><i
:class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', isAutomatic ? 'is-reverse' : '']"></i></span>
</span> </span>
</div> </div>
</div> </div>
...@@ -32,7 +35,9 @@ ...@@ -32,7 +35,9 @@
</el-form-item> </el-form-item>
<div class="el-select-dropdown__wrap el-scrollbar__wrap"> <div class="el-select-dropdown__wrap el-scrollbar__wrap">
<template v-if="automaticData.length > 0"> <template v-if="automaticData.length > 0">
<el-tree class="filter-tree" :data="automaticData" node-key="id" :default-expanded-keys="expandedKeys" :props="defaultProps" default-expand-all :filter-node-method="filterNode" ref="tree" @node-click="handleNodeClick"></el-tree> <el-tree class="filter-tree" :data="automaticData" node-key="id"
:default-expanded-keys="expandedKeys" :props="defaultProps" default-expand-all
:filter-node-method="filterNode" ref="tree" @node-click="handleNodeClick"></el-tree>
</template> </template>
<div class="empty" v-else>暂无数据</div> <div class="empty" v-else>暂无数据</div>
</div> </div>
...@@ -46,13 +51,16 @@ ...@@ -46,13 +51,16 @@
<div class="input-box" v-for="(i, k) in groupCofListInput[bulletin.storageList]" :key="k"> <div class="input-box" v-for="(i, k) in groupCofListInput[bulletin.storageList]" :key="k">
<!-- <el-input v-model="i.name" ></el-input> --> <!-- <el-input v-model="i.name" ></el-input> -->
<el-select v-model="i.name" :placeholder="'将' + bulletin.label + '推送至群聊'" filterable clearable> <el-select v-model="i.name" :placeholder="'将' + bulletin.label + '推送至群聊'" filterable clearable>
<el-option v-for="item in selectGroupName" :key="item.groupName" :label="item.groupName" :value="item.groupName"></el-option> <el-option v-for="item in selectGroupName" :key="item.groupName" :label="item.groupName"
:value="item.groupName"></el-option>
</el-select> </el-select>
<i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput[bulletin.storageList])"></i> <i class="el-icon-circle-plus" v-if="k == 0"
@click="addGroup(groupCofListInput[bulletin.storageList])"></i>
<i class="el-icon-remove" v-else @click="delGroup(groupCofListInput[bulletin.storageList], k)"></i> <i class="el-icon-remove" v-else @click="delGroup(groupCofListInput[bulletin.storageList], k)"></i>
</div> </div>
</div> </div>
<span class="group-config-text" v-if="bulletin.componentName" @click="openConfigDialog(bulletin.componentName)">配置</span> <span class="group-config-text" v-if="bulletin.componentName"
@click="openConfigDialog(bulletin.componentName)">配置</span>
</el-form-item> </el-form-item>
</template> </template>
</el-form> </el-form>
...@@ -62,7 +70,8 @@ ...@@ -62,7 +70,8 @@
<el-button @click="handlebattleClose" size="medium">取消</el-button> <el-button @click="handlebattleClose" size="medium">取消</el-button>
<el-button type="primary" @click="handlebattleConfirm" size="medium" :loading="loading">保存</el-button> <el-button type="primary" @click="handlebattleConfirm" size="medium" :loading="loading">保存</el-button>
</GLFooter> </GLFooter>
<component :is="dialogComponent" ref="componentRef" v-if="isDialogVisible" :isDialogVisible="isDialogVisible" :switchList="switchList" @handlePreview="handlePreview" @handleClose="handleClose"></component> <component :is="dialogComponent" ref="componentRef" v-if="isDialogVisible" :isDialogVisible="isDialogVisible"
:switchList="switchList" @handlePreview="handlePreview" @handleClose="handleClose"></component>
</div> </div>
</template> </template>
<script> <script>
...@@ -125,7 +134,8 @@ export default { ...@@ -125,7 +134,8 @@ export default {
saasReport: [], saasReport: [],
viewReport: [], viewReport: [],
InvoicingReport: [], InvoicingReport: [],
storeReport: [] storeReport: [],
constructionReport: []
}, },
switchList: { switchList: {
// xiReport: [], // xiReport: [],
...@@ -134,6 +144,7 @@ export default { ...@@ -134,6 +144,7 @@ export default {
viewReport: [], viewReport: [],
InvoicingReport: [], InvoicingReport: [],
storeReport: [], storeReport: [],
constructionReport: [],
saReport: [ saReport: [
{ switchType: 401, switchStatus: 'Y', actionReportType: 4 }, { switchType: 401, switchStatus: 'Y', actionReportType: 4 },
{ switchType: 402, switchStatus: 'Y', actionReportType: 4 } { switchType: 402, switchStatus: 'Y', actionReportType: 4 }
...@@ -157,7 +168,8 @@ export default { ...@@ -157,7 +168,8 @@ export default {
scheduleReportValue: [], scheduleReportValue: [],
zhanReportValue: [], zhanReportValue: [],
saasReportValue: [], saasReportValue: [],
storeReportValue: [] storeReportValue: [],
constructionReportValue: []
}, },
groupToType: [ groupToType: [
// { // {
...@@ -203,6 +215,10 @@ export default { ...@@ -203,6 +215,10 @@ export default {
{ {
attr: 'storeReport', attr: 'storeReport',
type: 31 type: 31
},
{
attr: 'constructionReport',
type: 32
} }
], ],
buttetinList: [ buttetinList: [
...@@ -258,6 +274,12 @@ export default { ...@@ -258,6 +274,12 @@ export default {
// text: '预览配置', // text: '预览配置',
storageList: 'storeReportValue' storageList: 'storeReportValue'
// componentName: 'InvoicingDialog' // componentName: 'InvoicingDialog'
},
{
label: '.技师施工单',
// text: '预览配置',
storageList: 'constructionReportValue'
// componentName: 'InvoicingDialog'
} }
] ]
} }
...@@ -330,7 +352,7 @@ export default { ...@@ -330,7 +352,7 @@ export default {
this.idBefEncryption = data.idBefEncryption this.idBefEncryption = data.idBefEncryption
this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => { this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => {
this.selectGroupName = res.data.result || [] this.selectGroupName = res.data.result || []
this.groupCofListInput = { wordReportValue: [{ name: '' }], orderReportValue: [{ name: '' }], viewReportValue: [{ name: '' }], InvoicingReportValue: [{ name: '' }], saReportValue: [{ name: '' }], saPerReportValue: [{ name: '' }], scheduleReportValue: [{ name: '' }], zhanReportValue: [{ name: '' }], saasReportValue: [{ name: '' }], storeReportValue: [{ name: '' }] } this.groupCofListInput = { wordReportValue: [{ name: '' }], orderReportValue: [{ name: '' }], viewReportValue: [{ name: '' }], InvoicingReportValue: [{ name: '' }], saReportValue: [{ name: '' }], saPerReportValue: [{ name: '' }], scheduleReportValue: [{ name: '' }], zhanReportValue: [{ name: '' }], saasReportValue: [{ name: '' }], storeReportValue: [{ name: '' }], constructionReportValue: [{ name: '' }] }
}) })
}, },
// 弹窗数据回显 // 弹窗数据回显
...@@ -366,7 +388,8 @@ export default { ...@@ -366,7 +388,8 @@ export default {
viewReportValue: [], viewReportValue: [],
InvoicingReportValue: [], InvoicingReportValue: [],
saasReportValue: [], saasReportValue: [],
storeReportValue: [] storeReportValue: [],
constructionReportValue: []
} }
this.battleVisible = true this.battleVisible = true
// 编辑 // 编辑
...@@ -417,7 +440,8 @@ export default { ...@@ -417,7 +440,8 @@ export default {
scheduleReportValue: [{ name: '' }], scheduleReportValue: [{ name: '' }],
zhanReportValue: [{ name: '' }], zhanReportValue: [{ name: '' }],
saasReportValue: [{ name: '' }], saasReportValue: [{ name: '' }],
storeReportValue: [{ name: '' }] storeReportValue: [{ name: '' }],
constructionReportValue: [{ name: '' }]
} }
} }
}, },
...@@ -436,7 +460,8 @@ export default { ...@@ -436,7 +460,8 @@ export default {
scheduleReport: [], scheduleReport: [],
wordReport: [], wordReport: [],
saasReport: [], saasReport: [],
storeReport: [] storeReport: [],
constructionReport: []
} }
} }
} }
...@@ -462,7 +487,8 @@ export default { ...@@ -462,7 +487,8 @@ export default {
scheduleReport: [], scheduleReport: [],
wordReport: [], wordReport: [],
saasReport: [], saasReport: [],
storeReport: [] storeReport: [],
constructionReport: []
} }
}, },
async getDepartmentTree() { async getDepartmentTree() {
...@@ -562,7 +588,7 @@ export default { ...@@ -562,7 +588,7 @@ export default {
scene: 1 scene: 1
} }
let switchList = [] let switchList = []
let reportParams = ['saReport', 'zhanReport', 'orderReport', 'saPerReport', 'scheduleReport', 'wordReport', 'viewReport', 'InvoicingReport', 'storeReport'] let reportParams = ['saReport', 'zhanReport', 'orderReport', 'saPerReport', 'scheduleReport', 'wordReport', 'viewReport', 'InvoicingReport', 'storeReport', 'constructionReport']
reportParams.forEach(item => { reportParams.forEach(item => {
switchList.push(...this.switchList[item]) switchList.push(...this.switchList[item])
}) })
......
...@@ -3,15 +3,19 @@ ...@@ -3,15 +3,19 @@
<div class="activity"> <div class="activity">
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData"
@handleOk="handleSearch" @handleRest="handleReset">
<template slot="unionMerchantId"> <template slot="unionMerchantId">
<el-input v-model.trim="searchForm.unionMerchantId" maxlength="11" placeholder="请输入商户号" @input="merchantIdInput"></el-input> <el-input v-model.trim="searchForm.unionMerchantId" maxlength="11" placeholder="请输入商户号"
@input="merchantIdInput"></el-input>
</template> </template>
</GLCombiForm> </GLCombiForm>
<div class="flex-between title"> <div class="flex-between title">
<div class="title-text">喜报列表</div> <div class="title-text">喜报列表</div>
</div> </div>
<GLTable ref="battleRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun" @selectionTable="selectionTable"> <GLTable ref="battleRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm"
:tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun"
@selectionTable="selectionTable">
<div slot="content" slot-scope="scope"> <div slot="content" slot-scope="scope">
<div v-for="(item, index) in formatterContent(scope.scope)" :key="index">{{ item }}</div> <div v-for="(item, index) in formatterContent(scope.scope)" :key="index">{{ item }}</div>
</div> </div>
...@@ -115,7 +119,8 @@ export default { ...@@ -115,7 +119,8 @@ export default {
[3, '#7.补单通知>>'], [3, '#7.补单通知>>'],
[9, '#8.驻店日报>>'], [9, '#8.驻店日报>>'],
[10, '#9.业务预警>>'], [10, '#9.业务预警>>'],
[31, '#31.轻改门店产值及个人成交报表>>'] [31, '#31.轻改门店产值及个人成交报表>>'],
[32, '#11.技工施工单>>']
]) ])
let txt = '' let txt = ''
cellValue.groupConfigList?.forEach(item => { cellValue.groupConfigList?.forEach(item => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!