Commit 773e27dc by 胡悦

提交审批

1 parent 791aa609
......@@ -154,4 +154,16 @@ img {
.el-cascader-menu {
max-height:500px;
}
\ No newline at end of file
}
.footer-panel {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
width: 100%;
bottom: 0px;
height: 64px;
background: #ffffff;
z-index: 999;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
\ No newline at end of file
/*
* @Author: your name
* @Date: 2022-03-02 15:56:07
* @LastEditTime: 2022-03-07 14:34:37
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-settings\src\router\routes.js
*/
const staticRoutes = Object.freeze([{
name: 'account',
path: '/account/index',
meta: {},
component: resolve => require([`@/views/account/index.vue`], resolve)
},
{
name: 'addAccount',
path: '/account/addAccount/:id',
meta: {},
component: resolve => require([`@/views/account/addAccount.vue`], resolve)
},
{
name: 'editAccount',
path: '/account/editAccount/:id',
meta: {},
component: resolve => require([`@/views/account/editAccount.vue`], resolve)
},
{
name: 'detailAccount',
path: '/account/detailAccount/:id',
meta: {},
component: resolve => require([`@/views/account/detailAccount.vue`], resolve)
},
{
name: 'role',
path: '/role/index',
component: resolve => require([`@/views/role/index.vue`], resolve),
meta: {}
},
{
name: 'role',
path: '/role/create/:id',
component: resolve => require([`@/views/role/create.vue`], resolve),
meta: {}
},
{
name: 'role',
path: '/role/look:id',
component: resolve => require([`@/views/role/look.vue`], resolve),
meta: {}
},
{
name: 'Account2EmployeeIndex',
path: '/employee/index',
meta: {},
component: resolve => require([`@/views/employee/index.vue`], resolve)
},
{
name: 'Account2EmployeeEditEmployee',
path: '/employee/editEmployee/:addOrEdit/:id',
meta: {},
component: resolve => require([`@/views/employee/editEmployee.vue`], resolve)
},
{
name: 'Account2EmployeeDetailEmployee',
path: '/employee/detailEmployee/:id',
meta: {},
component: resolve => require([`@/views/employee/detailEmployee.vue`], resolve)
},
{
name: 'baseInfo',
path: '/baseInfo/index',
meta: {},
component: resolve => require([`@/views/baseInfo/index.vue`], resolve)
},
{
name: 'relevance',
path: '/baseInfo/relevance',
meta: {},
component: resolve => require([`@/views/baseInfo/relevance.vue`], resolve)
},
{
name: 'EnterpriseWechat',
path: '/enterpriseWechat/index',
component: resolve => require([`@/views/enterpriseWechat/index.vue`], resolve),
meta: {}
},
{
name: 'FollowUp',
path: '/followUp/index',
component: resolve => require([`@/views/followUp/index.vue`], resolve),
meta: {}
}
name: 'account',
path: '/account/index',
meta: {},
component: resolve => require([`@/views/account/index.vue`], resolve)
},
{
name: 'addAccount',
path: '/account/addAccount/:id',
meta: {},
component: resolve => require([`@/views/account/addAccount.vue`], resolve)
},
{
name: 'editAccount',
path: '/account/editAccount/:id',
meta: {},
component: resolve => require([`@/views/account/editAccount.vue`], resolve)
},
{
name: 'detailAccount',
path: '/account/detailAccount/:id',
meta: {},
component: resolve => require([`@/views/account/detailAccount.vue`], resolve)
},
{
name: 'role',
path: '/role/index',
component: resolve => require([`@/views/role/index.vue`], resolve),
meta: {}
},
{
name: 'role',
path: '/role/create/:id',
component: resolve => require([`@/views/role/create.vue`], resolve),
meta: {}
},
{
name: 'role',
path: '/role/look:id',
component: resolve => require([`@/views/role/look.vue`], resolve),
meta: {}
},
{
name: 'Account2EmployeeIndex',
path: '/employee/index',
meta: {},
component: resolve => require([`@/views/employee/index.vue`], resolve)
},
{
name: 'Account2EmployeeEditEmployee',
path: '/employee/editEmployee/:addOrEdit/:id',
meta: {},
component: resolve => require([`@/views/employee/editEmployee.vue`], resolve)
},
{
name: 'Account2EmployeeDetailEmployee',
path: '/employee/detailEmployee/:id',
meta: {},
component: resolve => require([`@/views/employee/detailEmployee.vue`], resolve)
},
{
name: 'baseInfo',
path: '/baseInfo/index',
meta: {},
component: resolve => require([`@/views/baseInfo/index.vue`], resolve)
},
{
name: 'EditInfo',
path: '/baseInfo/editInfo',
meta: {},
component: resolve => require([`@/views/baseInfo/editInfo.vue`], resolve)
},
{
name: 'relevance',
path: '/baseInfo/relevance',
meta: {},
component: resolve => require([`@/views/baseInfo/relevance.vue`], resolve)
},
{
name: 'EnterpriseWechat',
path: '/enterpriseWechat/index',
component: resolve => require([`@/views/enterpriseWechat/index.vue`], resolve),
meta: {}
},
{
name: 'FollowUp',
path: '/followUp/index',
component: resolve => require([`@/views/followUp/index.vue`], resolve),
meta: {}
},
{
name: 'ApprovalConfig',
path: '/approvalConfig/index',
component: resolve => require([`@/views/approvalConfig/index.vue`], resolve),
meta: {}
},
{
name: 'ApprovalConfig',
path: '/approvalConfig/createGuide',
component: resolve => require([`@/views/approvalConfig/createGuide.vue`], resolve),
meta: {}
}
])
export default staticRoutes
\ No newline at end of file
<!--
* @Author: your name
* @Date: 2022-03-03 17:45:22
* @LastEditTime: 2022-03-04 16:53:04
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-settings\src\views\approvalConfig\createGuide.vue
-->
<template>
<div class="guide-page">
<div class="guide-title">操作手册</div>
<div class="guide-content">
<div class="step-line"></div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">1</span></span>
</div>
<div class="step-content">
打开企微后台登录地址:
<el-link type="primary" target="_blank" :underline="false" href="https://work.weixin.qq.com/wework_admin/loginpage_wx?from=myhome">https://work.weixin.qq.com/wework_admin/loginpage_wx?from=myhome</el-link>
企微管理员用企微或者微信扫码进行登录
</div>
</div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">2</span></span>
</div>
<div class="step-content">
<div class="step-title">登录后,在【应用管理-应用】下,找到【嘀加企微管家】,点击进入</div>
<img class="step2-img" src="../../../src/assets/guide/01@3x.png" alt="" />
</div>
</div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">3</span></span>
</div>
<div class="step-content">
<div class="step-title" style="margin-bottom: 16px">在【嘀加企微管家】应用页下方,根据接入方式,找到对应功能(自建应用模式和应用代开发模式为2存1,不会同时出现,企微管理员只需关注“审批设置”在企微后台那里 展示,点进去配置即可)</div>
<div class="half-step">
<div class="half-title">自建应用模式:</div>
<div class="half-content third-content">在【开发者接口】模块,找到“审批接口”,点击【设置】,进入设置页</div>
<img class="step3-img" src="../../../src/assets/guide/02@3x.png" alt="" />
</div>
<div class="half-step m-l-md">
<div class="half-title">应用代开发模式:</div>
<div class="half-content" :style="{ height: thirdHeight + 'px' }">在【功能】模块,找到“审批流程”,点击【前往设置】,进入设置页</div>
<img class="step3-img" src="../../../src/assets/guide/03@3x.png" alt="" />
</div>
</div>
</div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">4</span></span>
</div>
<div class="step-content">
<div class="step-title">配置审批人及审批流</div>
<div class="half-title">自建应用模式:</div>
<div class="half-content">点击【+添加模板】,进入审批模板配置页,按自店需要,配置好审批人信息后,点击【保存】</div>
<div class="half-step">
<img class="step4-img m-b-md" src="../../../src/assets/guide/04@3x.png" alt="" />
</div>
<div class="half-step m-b-md m-l-md">
<img class="step4-img" src="../../../src/assets/guide/05@3x.png" alt="" />
</div>
<div class="half-title">应用代开发模式:</div>
<div class="half-content">点击出现的对应模板(若为空或缺少需要审批的模板,请联系我们:18928408808进行配置),进入审批模板配置页,按自店需要,配置好审批人信息后,点击【保存】</div>
<div class="half-step">
<img class="step4-img" src="../../../src/assets/guide/06@3x.png" alt="" />
</div>
<div class="half-step m-l-md">
<img class="step4-img" src="../../../src/assets/guide/07@3x.png" alt="" />
</div>
</div>
</div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">5</span></span>
</div>
<div class="step-content">
<div class="step-title">复制审批模板的ID</div>
<div class="half-step">
<div class="half-title">自建应用模式:</div>
<div class="half-content" :style="{ height: fiveHeight + 'px' }">点击【复制ID】,即可获取审批模板的ID</div>
<img class="step5-img" src="../../../src/assets/guide/08@3x.png" alt="" />
</div>
<div class="half-step m-l-md">
<div class="half-title">应用代开发模式:</div>
<div class="half-content five-content">需进入模板的配置页,在浏览器链接中,复制如图位置的字符,即可获取审批 模板的ID</div>
<img class="step5-img" src="../../../src/assets/guide/09@3x.png" alt="" />
</div>
</div>
</div>
</div>
<div class="footer-panel" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"><el-button type="primary" @click="handleCancel">返回</el-button></div>
</div>
</template>
<script>
export default {
name: 'CreateGuide',
data() {
return {
lineHeight: 2200,
footerLeft: 0,
footerWidth: 0,
// 当屏幕太小导致换行,出现对不齐问题
fiveHeight: 20,
thirdHeight: 20
}
},
mounted() {
// setTimeout(() => {
// this.lineHeight = document.querySelector('.guide-content').clientHeight - 92
// this.resize()
window.onresize = () => {
// this.resize()
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.thirdHeight = document.querySelector('.third-content').clientHeight
this.fiveHeight = document.querySelector('.five-content').clientHeight
}
// window.addEventListener('resize', this.resize())
// }, 1000 / 60)
},
beforeDestroy() {
// 事件注销
window.onresize = null
},
methods: {
handleCancel() {
this.$router.push({ path: '/approvalConfig/index' })
},
resize() {
// this.resetData()
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.thirdHeight = document.querySelector('.third-content').clientHeight
this.fiveHeight = document.querySelector('.five-content').clientHeight
},
resetData() {
this.lineHeight = 2200
this.footerLeft = 0
this.footerWidth = 0
this.fiveHeight = 20
this.thirdHeight = 20
}
}
}
</script>
<style lang="scss">
.guide-page {
background-color: #fff;
margin-bottom: 64px;
.guide-title {
padding: 15px 20px;
font-size: 16px;
font-weight: 500;
color: #333333;
line-height: 28px;
border-bottom: 1px solid #d8d8d8;
}
.guide-content {
position: relative;
padding: 32px 20px 20px;
z-index: 1;
.step-line {
position: absolute;
background-color: #5850ff;
width: 1px;
height: calc(100% - 92px);
left: 35px;
top: 63px;
z-index: -1;
}
.step {
display: flex;
margin-bottom: 10px;
z-index: 1;
.step-icon {
display: inline-flex;
// position: relative;
width: 32px;
height: 63px;
align-items: center;
// justify-content: center;
color: #fff;
.icon-shell {
width: 100%;
background-color: #fff;
padding: 8px 0;
}
.icon-number {
display: inline-flex;
width: 100%;
height: 32px;
background-color: #5850ff;
border-radius: 50%;
align-items: center;
justify-content: center;
}
}
.step-content {
position: relative;
width: 100%;
padding: 20px;
margin-left: 20px;
line-height: 20px;
border: 1px solid #d8d8d8;
height: 100%;
.step-title {
margin-bottom: 10px;
}
.step2-img {
// width: 800px;
// height: 725px;
width: 100%;
height: 100%;
}
.half-step {
display: inline-flex;
width: calc(50% - 10px);
flex-direction: column;
.step3-img {
// width: 500px;
// height: 430px;
width: 100%;
height: 100%;
margin-top: 10px;
}
.step4-img,
.step5-img {
// width: 500px;
// height: 345px;
width: 100%;
height: 100%;
margin-top: 10px;
}
}
.half-title {
position: relative;
font-size: 14px;
color: #333;
font-weight: 600;
padding-left: 10px;
&::after {
content: '';
display: inline-block;
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 5px;
height: 5px;
background-color: #5850ff;
border-radius: 50%;
}
}
.half-content {
font-size: 14px;
margin-left: 10px;
}
}
}
}
}
.el-link.el-link--primary {
color: #5850ff;
&:hover {
color: #5850ff;
}
}
.m-b-md {
margin-bottom: 20px;
}
.m-l-md {
margin-left: 20px;
}
</style>
\ No newline at end of file
<!--
* @Author: your name
* @Date: 2022-03-02 18:28:20
* @LastEditTime: 2022-03-03 21:40:03
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-settings\src\views\approvalConfig\index.vue
-->
<template>
<div>
<div class="page-tips">
<img src="../../../src/assets/img/Shape.png" alt="" />
<span>企微管理员通过在企微后台创建审批模板,设置好审批人员后,将对应审批模板的ID复制到下方需要调用该审批的模块,该模块即可调用审批。</span>
</div>
<div class="config-page" :style="{ 'min-height': clientHeight + 'px' }">
<div class="page-title">
审批配置
<!-- <GLButton type="text" class="guide-btn" @click="jumpGuide" fn="审批模板创建指引">查看创建审批模板指引</GLButton> -->
<el-button type="text" class="guide-btn" @click="jumpGuide">查看创建审批模板指引></el-button>
</div>
<div class="config-list">
<div class="config-item" v-for="(item, index) in configList" :key="item.id">
<div class="config-title">
<span>{{ item.title }}</span>
</div>
<div class="config-content">
<span class="config-label">{{ item.name }}</span>
<el-input class="config-input" :placeholder="item.placeholder" :disabled="item.disabled" :size="size" v-model="config[item.model]" clearable></el-input>
<el-button-group class="config-btn" v-if="!item.disabled">
<el-button type="text" @click="cancel(item.model, index)">取消</el-button>
<el-button type="text" @click="submit(item.model, index)">确定</el-button>
</el-button-group>
<el-button-group v-else class="config-btn">
<el-button type="text" @click="edit(index)">编辑</el-button>
</el-button-group>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import util from '@/utils/util'
export default {
name: 'ApprovalConfig',
data() {
return {
input: '',
config: {
input: 'adfasd',
input1: '3'
},
oldConfig: {},
configList: [
{
id: 1,
title: '定向礼包',
name: '审批模板ID:',
model: 'input',
placeholder: '请将模板ID粘贴到此处,不填写则不调用审批',
disabled: true
// },
// {
// id: 2,
// title: '定向礼包',
// name: '审批模板ID:',
// model: 'input1',
// placeholder: '请将模板ID粘贴到此处,不填写则不调用审批',
// disabled: true
}
],
clientHeight: 500
}
},
mounted() {
this.oldConfig = util.deepClone(this.config)
this.clientHeight = document.documentElement.scrollHeight - 140
},
methods: {
// 编辑
edit(index) {
this.configList[index].disabled = false
},
// 编辑
submit(model, index) {
this.oldConfig[model] = this.config[model]
this.configList[index].disabled = true
},
// 取消
cancel(model, index) {
this.config[model] = this.oldConfig[model]
this.configList[index].disabled = true
},
// 调整环审批模板指引
jumpGuide() {
this.$router.push({ path: '/approvalConfig/createGuide' })
}
}
}
</script>
<style scoped lang="scss">
.page-tips {
display: flex;
align-items: center;
font-size: 14px;
font-weight: 400;
line-height: 20px;
padding: 10px 16px;
border: 1px solid #5850ff;
border-radius: 4px;
background-color: #e6e9ff;
margin-bottom: 10px;
img {
width: 14px;
height: 14px;
margin-right: 8px;
}
}
.config-page {
background-color: #fff;
.page-title {
font-size: 16px;
font-weight: 500;
color: #333;
padding: 15px 20px;
border-bottom: 1px solid #d8d8d8;
.guide-btn {
text-decoration: underline;
margin-left: 16px;
}
}
.config-list {
padding: 32px 20px;
.config-item {
margin-bottom: 20px;
}
.config-title {
font-size: 14px;
font-weight: 500;
color: #333;
margin-bottom: 16px;
span {
position: relative;
display: inline-block;
width: 76px;
text-align: center;
z-index: 0;
&::after {
content: '';
display: inline-block;
position: absolute;
width: 100%;
height: 9px;
background-color: #e6e5ff;
left: 0;
bottom: 0;
z-index: -1;
}
}
}
.config-content {
.config-label {
display: inline-block;
width: 118px;
font-size: 14px;
font-weight: 400;
color: #333333;
text-align: right;
}
.config-input {
width: 415px;
}
.config-btn {
.el-button {
margin-left: 12px;
}
}
}
}
}
</style>
\ No newline at end of file
<!--
* @Author: your name
* @Date: 2022-03-07 14:32:50
* @LastEditTime: 2022-03-07 14:43:18
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-settings\src\views\baseInfo\editInfo.vue
-->
<template>
<div>
<el-button>选择地址</el-button>
<el-dialog :visible.sync="dialogMapVisible" width="60%">
<map-view ref="mapForm" :mapHeight="mapHeight"></map-view>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogMapVisible = false">取 消</el-button>
<el-button type="primary" @click="getAddress">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import mapView from '@/components/mapView/index'
export default {
name: 'EditInfo',
components: {
mapView
},
data() {
return {}
}
}
</script>
<style lang="scss" scoped>
</style>
......@@ -4,25 +4,22 @@
<div class="top_widget">
<img class="sign_icon" src="../../assets/scrm_base_info_icon_one.png" />
<div class="info_widget">
<div class="title_text">
{{ blocInfo.merchantName }}
<span class="min_text">(商户号:{{ blocInfo.merchantNo }})</span>
<div style="display: flex">
<div class="title_text">
{{ blocInfo.merchantName }}
<span class="min_text">(商户号:{{ blocInfo.merchantNo }})</span>
</div>
<el-button type="primary" :size="size" @click="editInfo">修改企业信息</el-button>
</div>
<div class="sec_title_text dr_top_1">
<span>关联企微:{{ blocInfo.entmicroName || '--' }}</span>
<div
v-if="blocInfo.entmicroName"
class="auth_btn"
:class="accountLevel != 4 ? 'auth_btn_cp' : ''"
>已授权</div>
<div v-if="blocInfo.entmicroName" class="auth_btn" :class="accountLevel != 4 ? 'auth_btn_cp' : ''">已授权</div>
</div>
<div v-if="accountLevel==1" class="min_text dr_top_1">所属企业:--</div>
<div v-if="accountLevel!=1" class="min_text dr_top_1">所属企业:{{ blocInfo.parentName }}</div>
<div
v-if="blocInfo.channelId == 2"
class="min_text"
>商户SAP编码:{{blocInfo.sapCode ? blocInfo.sapCode : '--'}}</div>
<div v-if="accountLevel==4" class="min_text">企微员工:{{ blocInfo.entMicroEmployeeCount }}人</div>
<div v-if="accountLevel == 1" class="min_text dr_top_1">所属企业:--</div>
<div v-if="accountLevel != 1" class="min_text dr_top_1">所属企业:{{ blocInfo.parentName }}</div>
<div v-if="blocInfo.channelId == 2" class="min_text">商户SAP编码:{{ blocInfo.sapCode ? blocInfo.sapCode : '--' }}</div>
<div v-if="accountLevel == 4" class="min_text">企微员工:{{ blocInfo.entMicroEmployeeCount }}人</div>
</div>
</div>
<blocModule :bloc="blocInfo" :list.sync="storesList" v-if="accountLevel != 4"></blocModule>
......@@ -72,7 +69,7 @@ export default {
})
})
},
dateFormat: function(dateTime, format = 'yyyy-MM-dd') {
dateFormat: function (dateTime, format = 'yyyy-MM-dd') {
const date = new Date(dateTime)
const config = {
YYYY: date.getFullYear(),
......@@ -86,6 +83,9 @@ export default {
format = format.replace(key, config[key])
}
return format
},
editInfo() {
this.$router.push({ path: '/baseInfo/editInfo' })
}
}
}
......@@ -118,7 +118,7 @@ export default {
.top_widget {
width: 100%;
box-sizing: border-box;
padding: 40px 0 0 40px;
padding: 40px 40px 0 40px;
display: flex;
.sign_icon {
width: 64px;
......@@ -127,10 +127,12 @@ export default {
}
.info_widget {
margin-left: 15px;
width: 100%;
.title_text {
color: #333333;
font-size: 16px;
font-weight: 500;
width: 100%;
}
.min_text {
color: #999999;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!