Commit 2ddcaf8c by 张立顺

feat 喜报配置

1 parent a70b3a70
......@@ -8,8 +8,10 @@
<div class="config-wrap gl-form-page">
<el-form ref="form" :model="form" label-width="154px">
<el-form-item label="所属企业:">
<el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange" @visible-change="hideSelect">
<el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId"></el-option>
<el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange"
@visible-change="hideSelect">
<el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName"
:value="item.merchantId"></el-option>
</el-select>
</el-form-item>
<!-- 推送人 -->
......@@ -21,7 +23,8 @@
{{ wechat.automaticName }}
</div>
<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>
</div>
</div>
......@@ -32,7 +35,9 @@
</el-form-item>
<div class="el-select-dropdown__wrap el-scrollbar__wrap">
<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>
<div class="empty" v-else>暂无数据</div>
</div>
......@@ -46,13 +51,16 @@
<div class="input-box" v-for="(i, k) in groupCofListInput[bulletin.storageList]" :key="k">
<!-- <el-input v-model="i.name" ></el-input> -->
<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>
<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>
</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>
</template>
</el-form>
......@@ -62,7 +70,8 @@
<el-button @click="handlebattleClose" size="medium">取消</el-button>
<el-button type="primary" @click="handlebattleConfirm" size="medium" :loading="loading">保存</el-button>
</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>
</template>
<script>
......@@ -125,7 +134,8 @@ export default {
saasReport: [],
viewReport: [],
InvoicingReport: [],
storeReport: []
storeReport: [],
constructionReport: []
},
switchList: {
// xiReport: [],
......@@ -134,6 +144,7 @@ export default {
viewReport: [],
InvoicingReport: [],
storeReport: [],
constructionReport: [],
saReport: [
{ switchType: 401, switchStatus: 'Y', actionReportType: 4 },
{ switchType: 402, switchStatus: 'Y', actionReportType: 4 }
......@@ -157,7 +168,8 @@ export default {
scheduleReportValue: [],
zhanReportValue: [],
saasReportValue: [],
storeReportValue: []
storeReportValue: [],
constructionReportValue: []
},
groupToType: [
// {
......@@ -203,6 +215,10 @@ export default {
{
attr: 'storeReport',
type: 31
},
{
attr: 'constructionReport',
type: 11
}
],
buttetinList: [
......@@ -258,6 +274,12 @@ export default {
// text: '预览配置',
storageList: 'storeReportValue'
// componentName: 'InvoicingDialog'
},
{
label: '.技师施工单',
// text: '预览配置',
storageList: 'constructionReportValue'
// componentName: 'InvoicingDialog'
}
]
}
......@@ -330,7 +352,7 @@ export default {
this.idBefEncryption = data.idBefEncryption
this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => {
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 {
viewReportValue: [],
InvoicingReportValue: [],
saasReportValue: [],
storeReportValue: []
storeReportValue: [],
constructionReportValue: []
}
this.battleVisible = true
// 编辑
......@@ -417,7 +440,8 @@ export default {
scheduleReportValue: [{ name: '' }],
zhanReportValue: [{ name: '' }],
saasReportValue: [{ name: '' }],
storeReportValue: [{ name: '' }]
storeReportValue: [{ name: '' }],
constructionReportValue: [{ name: '' }]
}
}
},
......@@ -436,7 +460,8 @@ export default {
scheduleReport: [],
wordReport: [],
saasReport: [],
storeReport: []
storeReport: [],
constructionReport: []
}
}
}
......@@ -462,7 +487,8 @@ export default {
scheduleReport: [],
wordReport: [],
saasReport: [],
storeReport: []
storeReport: [],
constructionReport: []
}
},
async getDepartmentTree() {
......@@ -562,7 +588,7 @@ export default {
scene: 1
}
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 => {
switchList.push(...this.switchList[item])
})
......
......@@ -3,15 +3,19 @@
<div class="activity">
<!-- 表格区域 开始 -->
<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">
<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>
</GLCombiForm>
<div class="flex-between title">
<div class="title-text">喜报列表</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 v-for="(item, index) in formatterContent(scope.scope)" :key="index">{{ item }}</div>
</div>
......@@ -116,6 +120,7 @@ export default {
[9, '#8.驻店日报>>'],
[10, '#9.业务预警>>'],
[31, '#31.轻改门店产值及个人成交报表>>']
[32, '#11.技工施工单>>']
])
let txt = ''
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!