|
@@ -23,10 +23,10 @@
|
|
<aside class="menu-expanded">
|
|
<aside class="menu-expanded">
|
|
<!--导航菜单-->
|
|
<!--导航菜单-->
|
|
<el-menu
|
|
<el-menu
|
|
- background-color="#323A58"
|
|
|
|
- text-color="#fff"
|
|
|
|
|
|
+ :background-color="$setting.menu_bg"
|
|
|
|
+ text-color="#333"
|
|
:collapse-transition="false"
|
|
:collapse-transition="false"
|
|
- active-text-color="#FDB863"
|
|
|
|
|
|
+ :active-text-color="$setting.theme_color"
|
|
:default-active="$route.path.replace('/', '')"
|
|
:default-active="$route.path.replace('/', '')"
|
|
:collapse="isCollapse"
|
|
:collapse="isCollapse"
|
|
theme="light"
|
|
theme="light"
|
|
@@ -36,38 +36,19 @@
|
|
@select="handleselect"
|
|
@select="handleselect"
|
|
ref="expandmenu"
|
|
ref="expandmenu"
|
|
>
|
|
>
|
|
- <!-- <el-menu-item
|
|
|
|
- v-if="Role!=='rai_researcher' &&
|
|
|
|
- Role!=='ficc_researcher' &&
|
|
|
|
- Role!=='researcher' &&
|
|
|
|
- Role!=='compliance'&&
|
|
|
|
- Role!=='special_researcher'"
|
|
|
|
- :class="'/dashboard'==activePath?'active': ''"
|
|
|
|
- path="dashboard"
|
|
|
|
- key="dashboard"
|
|
|
|
- index="dashboard"
|
|
|
|
- :style="!isCollapse?'padding-left:0':''">
|
|
|
|
- <a href="/dashboard" :style="`display: block;color:${'dashboard'===activePath ? '#FDB863 ' : '#fff'}`" @click="(e) => e.preventDefault() ">
|
|
|
|
-
|
|
|
|
- <img src="~@/assets/img/home/work_ico.png" style="width:20px;height:20px;margin-right:20px;"/>
|
|
|
|
- <span
|
|
|
|
- style="display:inline-block; width:96px; text-align:left; box-sizing:border-box;font-size:15px;"
|
|
|
|
- >工作台</span>
|
|
|
|
- </a>
|
|
|
|
- </el-menu-item> -->
|
|
|
|
- <template v-for="(item, index) in navlists" v-show="!item.hidden">
|
|
|
|
|
|
+ <template v-for="(item, index) in navlists">
|
|
<el-menu-item
|
|
<el-menu-item
|
|
:path="item.level_path"
|
|
:path="item.level_path"
|
|
:index="item.level_path"
|
|
:index="item.level_path"
|
|
:key="item.level_path"
|
|
:key="item.level_path"
|
|
:style="!isCollapse ? 'text-align:left' : ''"
|
|
:style="!isCollapse ? 'text-align:left' : ''"
|
|
- v-if="item.IsLevel === 1"
|
|
|
|
|
|
+ v-if="item.IsLevel === 1&&!item.hidden"
|
|
>
|
|
>
|
|
<a
|
|
<a
|
|
:href="`/${item.level_path}`"
|
|
:href="`/${item.level_path}`"
|
|
class="el-level-path"
|
|
class="el-level-path"
|
|
:style="`display: block;color:${
|
|
:style="`display: block;color:${
|
|
- item.level_path === activePath ? '#FDB863 ' : '#fff'
|
|
|
|
|
|
+ item.level_path === activePath ? $setting.theme_color : '#666'
|
|
}`"
|
|
}`"
|
|
@click="(e) => e.preventDefault()"
|
|
@click="(e) => e.preventDefault()"
|
|
>
|
|
>
|
|
@@ -92,7 +73,7 @@
|
|
</a>
|
|
</a>
|
|
</el-menu-item>
|
|
</el-menu-item>
|
|
|
|
|
|
- <el-submenu v-else :index="index + ''" :key="index">
|
|
|
|
|
|
+ <el-submenu v-else-if="item.IsLevel!==1&&!item.hidden" :index="index + ''" :key="index">
|
|
<template slot="title">
|
|
<template slot="title">
|
|
<img
|
|
<img
|
|
:src="item.icon_path"
|
|
:src="item.icon_path"
|
|
@@ -123,7 +104,7 @@
|
|
<a
|
|
<a
|
|
:href="`/${child.path}`"
|
|
:href="`/${child.path}`"
|
|
:style="`display: block;color:${
|
|
:style="`display: block;color:${
|
|
- child.path === activePath ? '#FDB863 ' : '#fff'
|
|
|
|
|
|
+ child.path === activePath ? $setting.theme_color : '#666'
|
|
}`"
|
|
}`"
|
|
@click="(e) => e.preventDefault()"
|
|
@click="(e) => e.preventDefault()"
|
|
>
|
|
>
|
|
@@ -144,11 +125,10 @@
|
|
<div class="main_left_section" v-if="isHaveAside">
|
|
<div class="main_left_section" v-if="isHaveAside">
|
|
<!-- 折叠按钮 -->
|
|
<!-- 折叠按钮 -->
|
|
<div class="coll_btn" @click="collapseHandle">
|
|
<div class="coll_btn" @click="collapseHandle">
|
|
- <!-- <img src="~@/assets/img/home/slide_up.png" alt="" class="coll_ico" v-if="isCollapse"> -->
|
|
|
|
<i class="el-icon-s-unfold coll_ico" v-if="isCollapse"></i>
|
|
<i class="el-icon-s-unfold coll_ico" v-if="isCollapse"></i>
|
|
<i class="el-icon-s-fold coll_ico" v-else></i>
|
|
<i class="el-icon-s-fold coll_ico" v-else></i>
|
|
- <!-- <img src="~@/assets/img/home/slide_down.png" alt="" class="coll_ico" v-else> -->
|
|
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
<!-- 面包屑 -->
|
|
<!-- 面包屑 -->
|
|
<el-breadcrumb separator="/" class="breadcrumb-inner">
|
|
<el-breadcrumb separator="/" class="breadcrumb-inner">
|
|
<el-breadcrumb-item
|
|
<el-breadcrumb-item
|
|
@@ -158,7 +138,7 @@
|
|
<span
|
|
<span
|
|
v-if="item.meta.pathFrom"
|
|
v-if="item.meta.pathFrom"
|
|
@click.stop="handleClickBread(item)"
|
|
@click.stop="handleClickBread(item)"
|
|
- style="cursor: pointer; color: #4099ef; fontsize: 16px"
|
|
|
|
|
|
+ :style="`cursor: pointer; color: ${$setting.theme_color}`"
|
|
>
|
|
>
|
|
<template v-if="item.meta.pathFrom == 'pickList'">
|
|
<template v-if="item.meta.pathFrom == 'pickList'">
|
|
{{ RoleType == "ficc" ? "权益客户" : "ficc客户" }}
|
|
{{ RoleType == "ficc" ? "权益客户" : "ficc客户" }}
|
|
@@ -188,7 +168,7 @@
|
|
>
|
|
>
|
|
<span
|
|
<span
|
|
v-if="item.parent"
|
|
v-if="item.parent"
|
|
- style="cursor: pointer; color: #4099ef; fontsize: 16px"
|
|
|
|
|
|
+ :style="`cursor: pointer; color: ${$setting.theme_color}`"
|
|
@click.stop="routeClick(item)"
|
|
@click.stop="routeClick(item)"
|
|
>
|
|
>
|
|
<template v-if="item.path == '/pickList'">
|
|
<template v-if="item.path == '/pickList'">
|
|
@@ -205,7 +185,7 @@
|
|
{{ item.name }}
|
|
{{ item.name }}
|
|
</template>
|
|
</template>
|
|
</span>
|
|
</span>
|
|
- <span v-else style="fontsize: 16px">{{ item.name }}</span>
|
|
|
|
|
|
+ <span v-else>{{ item.name }}</span>
|
|
</el-breadcrumb-item>
|
|
</el-breadcrumb-item>
|
|
</el-breadcrumb>
|
|
</el-breadcrumb>
|
|
</div>
|
|
</div>
|
|
@@ -216,7 +196,6 @@
|
|
class="left_section_logo"
|
|
class="left_section_logo"
|
|
v-else
|
|
v-else
|
|
/>
|
|
/>
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="right_section">
|
|
<div class="right_section">
|
|
@@ -240,21 +219,23 @@
|
|
v-if="isShowRole"
|
|
v-if="isShowRole"
|
|
>帮助文档</el-button
|
|
>帮助文档</el-button
|
|
>
|
|
>
|
|
|
|
+
|
|
|
|
+ <el-button
|
|
|
|
+ @click="linkToOtherMS(item.path)"
|
|
|
|
+ v-for="item in linkSystems"
|
|
|
|
+ :key="item.path"
|
|
|
|
+ type="text"
|
|
|
|
+ style="margin-left: 20px;"
|
|
|
|
+ >
|
|
|
|
+ <img :src="item.icon" v-if="item.icon" width="20" height="20" style="vertical-align: middle;">
|
|
|
|
+ {{item.name}}
|
|
|
|
+ </el-button>
|
|
</div>
|
|
</div>
|
|
- <span
|
|
|
|
- style="color: #409eff; cursor: pointer"
|
|
|
|
- @click="linkToOtherMS('VUE_APP_HR_MANAGEMENT_SYSTEM')"
|
|
|
|
- >HR系统</span
|
|
|
|
- >
|
|
|
|
- <span
|
|
|
|
- style="color: #409eff; cursor: pointer"
|
|
|
|
- @click="linkToOtherMS('VUE_APP_FINANCIAL_MANAGEMENT_SYSTEM')"
|
|
|
|
- >财务报表系统</span
|
|
|
|
- >
|
|
|
|
- <el-dropdown trigger="click">
|
|
|
|
|
|
+
|
|
|
|
+ <el-dropdown trigger="click" style="width:130px;">
|
|
<span class="el-dropdown-link userinfo-inner">
|
|
<span class="el-dropdown-link userinfo-inner">
|
|
<img src="~@/assets/img/set_m/user_img.png" />
|
|
<img src="~@/assets/img/set_m/user_img.png" />
|
|
- {{ sysUserName + ",欢迎您!" }}
|
|
|
|
|
|
+ {{ sysUserName }}
|
|
</span>
|
|
</span>
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-item divided @click.native="resetpwd"
|
|
<el-dropdown-item divided @click.native="resetpwd"
|
|
@@ -300,21 +281,28 @@
|
|
:isShow.sync="isFeedbackDialog"
|
|
:isShow.sync="isFeedbackDialog"
|
|
:data="roadshowFeedbackList"
|
|
:data="roadshowFeedbackList"
|
|
/> -->
|
|
/> -->
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
checkPwd,
|
|
checkPwd,
|
|
|
|
+ getnavlist,
|
|
|
|
+ positionlist,
|
|
departInterence,
|
|
departInterence,
|
|
customInterence,
|
|
customInterence,
|
|
roadshowInterence,
|
|
roadshowInterence,
|
|
} from "api/api.js";
|
|
} from "api/api.js";
|
|
import PwdDlg from "@/components/pwdDlg.vue";
|
|
import PwdDlg from "@/components/pwdDlg.vue";
|
|
|
|
+// import feedbackDialog from "@/components/todo/roadShowFeedbackDia.vue";
|
|
|
|
+import questionMsgDia from "@/components/questionMsgDia.vue";
|
|
import EventBus from "@/api/bus.js";
|
|
import EventBus from "@/api/bus.js";
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
PwdDlg,
|
|
PwdDlg,
|
|
|
|
+ // feedbackDialog,
|
|
|
|
+ questionMsgDia,
|
|
},
|
|
},
|
|
inject: ["reload"],
|
|
inject: ["reload"],
|
|
filters: {
|
|
filters: {
|
|
@@ -330,20 +318,20 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.activePath = newval.replace("/", "");
|
|
this.activePath = newval.replace("/", "");
|
|
}
|
|
}
|
|
- // 用印审批页面 头部需要加上公告
|
|
|
|
- if (newval === "/sealApprovalList") {
|
|
|
|
- this.isShowApprovalNotice = true;
|
|
|
|
- console.log(this.isShowApprovalNotice);
|
|
|
|
- } else {
|
|
|
|
- this.isShowApprovalNotice = false;
|
|
|
|
- console.log(this.isShowApprovalNotice);
|
|
|
|
- }
|
|
|
|
this.sysUserName = localStorage.getItem("userName") || "";
|
|
this.sysUserName = localStorage.getItem("userName") || "";
|
|
this.Role = localStorage.getItem("Role") || "";
|
|
this.Role = localStorage.getItem("Role") || "";
|
|
this.RoleType = localStorage.getItem("RoleType") || "";
|
|
this.RoleType = localStorage.getItem("RoleType") || "";
|
|
},
|
|
},
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
|
|
+ done() {
|
|
|
|
+ //今日待办是否处理完
|
|
|
|
+ if (!this.todayList) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ // 之前是通过判断列表中是否都有说明,现需要判断列表中都要添加或编辑
|
|
|
|
+ return this.todayList.every((item) => item.isEdited);
|
|
|
|
+ },
|
|
// Role() {
|
|
// Role() {
|
|
// let role = localStorage.getItem("Role") || "";
|
|
// let role = localStorage.getItem("Role") || "";
|
|
// return role;
|
|
// return role;
|
|
@@ -375,16 +363,37 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ showTodayRemark: {
|
|
|
|
+ CompanyId: 0,
|
|
|
|
+ ProductId: 0,
|
|
|
|
+ remark: "",
|
|
|
|
+ toDoRemark: "",
|
|
|
|
+ show: false,
|
|
|
|
+ index: 0,
|
|
|
|
+ new: false, //是否为新增
|
|
|
|
+ isGiveUp: false, //是否不继续跟进
|
|
|
|
+ }, //显示填写待办备注弹窗
|
|
|
|
|
|
isCollapse: false, //侧边栏折叠
|
|
isCollapse: false, //侧边栏折叠
|
|
breadcrumbFixed: false, //吸顶盒固定
|
|
breadcrumbFixed: false, //吸顶盒固定
|
|
|
|
+
|
|
Role: "", //角色名称
|
|
Role: "", //角色名称
|
|
RoleType: "", //角色类型
|
|
RoleType: "", //角色类型
|
|
sysUserName: "", //登录系统用户名
|
|
sysUserName: "", //登录系统用户名
|
|
sysUserAvatar: "", //登录系统用户头像
|
|
sysUserAvatar: "", //登录系统用户头像
|
|
-
|
|
|
|
|
|
+ form: {
|
|
|
|
+ name: "",
|
|
|
|
+ region: "",
|
|
|
|
+ date1: "",
|
|
|
|
+ date2: "",
|
|
|
|
+ delivery: false,
|
|
|
|
+ type: [],
|
|
|
|
+ resource: "",
|
|
|
|
+ desc: "",
|
|
|
|
+ },
|
|
navlists: [],
|
|
navlists: [],
|
|
activePath: "",
|
|
activePath: "",
|
|
|
|
+
|
|
noticeList: [], //消息提醒列表
|
|
noticeList: [], //消息提醒列表
|
|
isShowNotice: false, //显示提示红点
|
|
isShowNotice: false, //显示提示红点
|
|
currentNoticeList: [], //当前显示的消息提醒列表
|
|
currentNoticeList: [], //当前显示的消息提醒列表
|
|
@@ -419,6 +428,9 @@ export default {
|
|
供应分析: "Sup",
|
|
供应分析: "Sup",
|
|
商品价格曲线: "Crv",
|
|
商品价格曲线: "Crv",
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ //链接系统
|
|
|
|
+ linkSystems: this.$setting.linkSystems,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -452,6 +464,169 @@ export default {
|
|
this.dialogVisiblePwd = res.Data;
|
|
this.dialogVisiblePwd = res.Data;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 点击导航 打开今日待办
|
|
|
|
+ // handleShowSallerTodayList() {
|
|
|
|
+ // this.getSellerTodayList("click");
|
|
|
|
+ // },
|
|
|
|
+
|
|
|
|
+ // 点击完成 批量提交备注
|
|
|
|
+ handleTodayFinished() {
|
|
|
|
+ let arr = this.todayList.map((item) => {
|
|
|
|
+ return customInterence.sellerTodayListRemark({
|
|
|
|
+ CompanyId: item.CompanyId,
|
|
|
|
+ ProductId: item.ProductId,
|
|
|
|
+ Remark: item.RenewalReason,
|
|
|
|
+ Renew: item.isGiveUp ? 1 : 0,
|
|
|
|
+ RenewalTodo: item.RenewalTodo,
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ Promise.all(arr)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.show = false;
|
|
|
|
+ this.getSellerFeedBackList();
|
|
|
|
+ })
|
|
|
|
+ .catch((error) => {
|
|
|
|
+ this.$message.waring("部分提交失败请重试");
|
|
|
|
+ this.getSellerTodayList();
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ //提交备注
|
|
|
|
+ async handleSubmitTodayRemark() {
|
|
|
|
+ if (!this.showTodayRemark.remark && !this.showTodayRemark.isGiveUp) {
|
|
|
|
+ this.$message.warning("请填写最新情况");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (!this.showTodayRemark.toDoRemark && !this.showTodayRemark.isGiveUp) {
|
|
|
|
+ this.$message.warning("请填写To Do事项");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // 如果选中不再跟进,需要在备注中添加额外内容
|
|
|
|
+ const addRemark = this.showTodayRemark.isGiveUp
|
|
|
|
+ ? this.showTodayRemark.remark
|
|
|
|
+ ? "。客户无续约意向,不再跟进(转为冻结客户)"
|
|
|
|
+ : "客户无续约意向,不再跟进(转为冻结客户)"
|
|
|
|
+ : "";
|
|
|
|
+ // 自动开大的点击完成时批量更新
|
|
|
|
+ if (this.todayListOpen === "auto") {
|
|
|
|
+ this.todayList[this.showTodayRemark.index].RenewalReason =
|
|
|
|
+ this.showTodayRemark.remark + addRemark;
|
|
|
|
+ this.todayList[this.showTodayRemark.index].RenewalTodo =
|
|
|
|
+ this.showTodayRemark.toDoRemark;
|
|
|
|
+ this.todayList[this.showTodayRemark.index].isGiveUp =
|
|
|
|
+ this.showTodayRemark.isGiveUp;
|
|
|
|
+ this.$set(this.todayList[this.showTodayRemark.index], "isEdited", true);
|
|
|
|
+ this.handleTodayRemarkClose();
|
|
|
|
+ } else {
|
|
|
|
+ const res = await customInterence.sellerTodayListRemark({
|
|
|
|
+ CompanyId: this.showTodayRemark.CompanyId,
|
|
|
|
+ ProductId: this.showTodayRemark.ProductId,
|
|
|
|
+ Remark: this.showTodayRemark.remark + addRemark,
|
|
|
|
+ Renew: this.showTodayRemark.isGiveUp ? 1 : 0,
|
|
|
|
+ RenewalTodo: this.showTodayRemark.toDoRemark,
|
|
|
|
+ });
|
|
|
|
+ if (res.Ret === 200) {
|
|
|
|
+ this.todayList[this.showTodayRemark.index].RenewalReason =
|
|
|
|
+ this.showTodayRemark.remark;
|
|
|
|
+ this.todayList[this.showTodayRemark.index].RenewalTodo =
|
|
|
|
+ this.showTodayRemark.toDoRemark;
|
|
|
|
+ this.handleTodayRemarkClose();
|
|
|
|
+ this.getSellerTodayList();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ handleTodayRemarkClose() {
|
|
|
|
+ this.showTodayRemark = {
|
|
|
|
+ remark: "",
|
|
|
|
+ toDoRemark: "",
|
|
|
|
+ show: false,
|
|
|
|
+ index: 0,
|
|
|
|
+ new: false,
|
|
|
|
+ ProductId: 0,
|
|
|
|
+ CompanyId: 0,
|
|
|
|
+ isGiveUp: false,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ //显示填写今日待办备注
|
|
|
|
+ handleShowEditTodayRemark(e) {
|
|
|
|
+ this.showTodayRemark.remark = e.row.RenewalReason;
|
|
|
|
+ this.showTodayRemark.toDoRemark = e.row.RenewalTodo;
|
|
|
|
+ this.showTodayRemark.CompanyId = e.row.CompanyId;
|
|
|
|
+ this.showTodayRemark.ProductId = e.row.ProductId;
|
|
|
|
+ if (e.row.RenewalReason && this.todayListOpen !== "auto") {
|
|
|
|
+ // 如果有说明且不是自动弹出,则为编辑
|
|
|
|
+ this.showTodayRemark.new = false;
|
|
|
|
+ } else {
|
|
|
|
+ this.showTodayRemark.new = true;
|
|
|
|
+ }
|
|
|
|
+ this.showTodayRemark.show = true;
|
|
|
|
+ this.showTodayRemark.index = e.$index;
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ //获取销售今日待办
|
|
|
|
+ async getSellerTodayList(type) {
|
|
|
|
+ this.todayListOpen = type;
|
|
|
|
+ let ReasonStatus = -1;
|
|
|
|
+ if (type === "auto") {
|
|
|
|
+ ReasonStatus = -1;
|
|
|
|
+ } else {
|
|
|
|
+ ReasonStatus = 0;
|
|
|
|
+ }
|
|
|
|
+ const res = await customInterence.sellerTodayList({
|
|
|
|
+ ReasonStatus: ReasonStatus,
|
|
|
|
+ PageSize: 10000,
|
|
|
|
+ CurrentIndex: 1,
|
|
|
|
+ });
|
|
|
|
+ if (res.Ret === 200) {
|
|
|
|
+ if (type === "auto" && res.Data.Paging.Totals > 0) {
|
|
|
|
+ // 自动弹出清除上次说明
|
|
|
|
+ res.Data.List &&
|
|
|
|
+ res.Data.List.forEach((item) => (item.RenewalReason = ""));
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ (type === "auto" && res.Data.Paging.Totals > 0) ||
|
|
|
|
+ type !== "auto"
|
|
|
|
+ ) {
|
|
|
|
+ this.show = true;
|
|
|
|
+ } else {
|
|
|
|
+ this.getSellerFeedBackList();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.todayList = res.Data.List;
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ //获取销售代办中的历史记录
|
|
|
|
+ async getSellerTodayHistoryList(item) {
|
|
|
|
+ const res = await customInterence.sellerTodayHistoryList({
|
|
|
|
+ CompanyId: Number(item.CompanyId),
|
|
|
|
+ ProductId: Number(item.ProductId),
|
|
|
|
+ });
|
|
|
|
+ if (res.Ret === 200) {
|
|
|
|
+ this.showTodayHistoryList = true;
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.todayHistoryList = res.Data || [];
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ /* 获取销售路演待反馈 */
|
|
|
|
+ getSellerFeedBackList() {
|
|
|
|
+ roadshowInterence.toFeedbacklist().then((res) => {
|
|
|
|
+ if (res.Ret !== 200) return;
|
|
|
|
+
|
|
|
|
+ const { Data } = res;
|
|
|
|
+
|
|
|
|
+ if (!Data || !Data.length) return;
|
|
|
|
+
|
|
|
|
+ this.isFeedbackDialog = true;
|
|
|
|
+ this.roadshowFeedbackList = Data;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
|
|
// 操作指南的跳转
|
|
// 操作指南的跳转
|
|
toOperation(url) {
|
|
toOperation(url) {
|
|
@@ -468,10 +643,8 @@ export default {
|
|
* VUE_APP_HR_MANAGEMENT_SYSTEM -- HR管理系统
|
|
* VUE_APP_HR_MANAGEMENT_SYSTEM -- HR管理系统
|
|
* VUE_APP_FINANCIAL_MANAGEMENT_SYSTEM -- 财务管理系统
|
|
* VUE_APP_FINANCIAL_MANAGEMENT_SYSTEM -- 财务管理系统
|
|
*/
|
|
*/
|
|
- console.log(process.env)
|
|
|
|
- let href = process.env[key];
|
|
|
|
- console.log(href);
|
|
|
|
- window.open(href, "_blank");
|
|
|
|
|
|
+ // let href = process.env[key];
|
|
|
|
+ window.open(key, "_blank");
|
|
},
|
|
},
|
|
// 切换通知消息类型
|
|
// 切换通知消息类型
|
|
handleNoticeTypeChange(e) {
|
|
handleNoticeTypeChange(e) {
|
|
@@ -512,7 +685,152 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ /* 待办事项列表 */
|
|
|
|
+ getNotice() {
|
|
|
|
+ customInterence.noticeList().then((res) => {
|
|
|
|
+ if (res.Ret === 200) {
|
|
|
|
+ res.Data.Company.List &&
|
|
|
|
+ res.Data.Company.List.forEach((item) => {
|
|
|
|
+ item.CreateTime = item.CreateTime.replace(/-/g, ".");
|
|
|
|
+ });
|
|
|
|
+ res.Data.Contract.List &&
|
|
|
|
+ res.Data.Contract.List.forEach((item) => {
|
|
|
|
+ item.CreateTime = item.CreateTime.replace(/-/g, ".");
|
|
|
|
+ });
|
|
|
|
+ res.Data.Seal.List &&
|
|
|
|
+ res.Data.Seal.List.forEach((item) => {
|
|
|
|
+ item.CreateTime = item.CreateTime.replace(/-/g, ".");
|
|
|
|
+ });
|
|
|
|
+ res.Data.EdbReplace.List &&
|
|
|
|
+ res.Data.EdbReplace.List.forEach(
|
|
|
|
+ (item) => (item.CreateTime = item.CreateTime.replace(/-/g, "."))
|
|
|
|
+ );
|
|
|
|
+ res.Data.BusinessTrip.List &&
|
|
|
|
+ res.Data.BusinessTrip.List.forEach(
|
|
|
|
+ (item) => (item.CreateTime = item.CreateTime.replace(/-/g, "."))
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ this.noticeList = res.Data;
|
|
|
|
+ this.noticeCount =
|
|
|
|
+ this.Role === "admin"
|
|
|
|
+ ? res.Data.EdbReplace.Total + res.Data.BusinessTrip.Total
|
|
|
|
+ : res.Data.Company.Total +
|
|
|
|
+ res.Data.Contract.Total +
|
|
|
|
+ res.Data.Seal.Total +
|
|
|
|
+ res.Data.EdbReplace.Total +
|
|
|
|
+ res.Data.BusinessTrip.Total;
|
|
|
|
+
|
|
|
|
+ this.noticeType = this.Role === "admin" ? "更新" : "客户";
|
|
|
|
+ // 默认显示客户
|
|
|
|
+ this.currentNoticeList =
|
|
|
|
+ this.Role === "admin"
|
|
|
|
+ ? res.Data.EdbReplace.List
|
|
|
|
+ : res.Data.Company.List;
|
|
|
|
+
|
|
|
|
+ // 检查是否有未读的
|
|
|
|
+ if (this.Role != "admin") {
|
|
|
|
+ this.flag1 = res.Data.Company.List.some((item) => {
|
|
|
|
+ return item.MessageStatus === 0;
|
|
|
|
+ });
|
|
|
|
+ this.flag2 = res.Data.Contract.List.some((item) => {
|
|
|
|
+ return item.MessageStatus === 0;
|
|
|
|
+ });
|
|
|
|
+ this.flag3 = res.Data.Seal.List.some((item) => {
|
|
|
|
+ return item.MessageStatus === 0;
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ this.flag5 = res.Data.ETATrial.List.some((item) => {
|
|
|
|
+ return item.MessageStatus === 0;
|
|
|
|
+ });
|
|
|
|
+ this.flag6 = res.Data.BusinessTrip.List.some((item) => {
|
|
|
|
+ return item.MessageStatus === 0;
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ /* 点击消息列表 跳转审批列表 */
|
|
|
|
+ noticeClick(item) {
|
|
|
|
+ customInterence
|
|
|
|
+ .readNotice({
|
|
|
|
+ Id: Number(item.Id),
|
|
|
|
+ })
|
|
|
|
+ .then((res) => {
|
|
|
|
+ if (res.Ret === 200) {
|
|
|
|
+ item.MessageStatus = 1;
|
|
|
|
+ if (this.noticeType === "客户") {
|
|
|
|
+ if (this.$route.path != "/approvalList") {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: "/approvalList",
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ window.location.reload();
|
|
|
|
+ }
|
|
|
|
+ } else if (this.noticeType === "合同") {
|
|
|
|
+ let Role = localStorage.getItem("Role");
|
|
|
|
+ // 主管跳转合同审批列表
|
|
|
|
+ if (Role === "ficc_admin" || Role === "rai_admin") {
|
|
|
|
+ if (this.$route.path != "/contractapprovallist") {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: "/contractapprovallist",
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ window.location.reload();
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (this.$route.path != "/contractmanagelist") {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: "/contractmanagelist",
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ window.location.reload();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ } else if (this.noticeType === "用印") {
|
|
|
|
+ // 用印
|
|
|
|
+ if (this.$route.path != "/sealApprovalList") {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: "/sealApprovalList",
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ window.location.reload();
|
|
|
|
+ }
|
|
|
|
+ } else if (this.noticeType === "ETA试用") {
|
|
|
|
+ const path = this.$route.path;
|
|
|
|
+ let pushPath = "/etaApprovalList";
|
|
|
|
+ //非管理员:若通过跳转用户列表,若驳回跳转审批列表
|
|
|
|
+ //const etaApprovalListType = item.Content.includes('通过')?'approved':'all'
|
|
|
|
+ const etaApprovalListType =
|
|
|
|
+ item.Redirect === 1 ? "approved" : "all";
|
|
|
|
+ sessionStorage.setItem(
|
|
|
|
+ "etaApprovalListType",
|
|
|
|
+ etaApprovalListType
|
|
|
|
+ );
|
|
|
|
+ if (path == pushPath) {
|
|
|
|
+ window.location.reload();
|
|
|
|
+ } else {
|
|
|
|
+ this.$router.push(pushPath);
|
|
|
|
+ }
|
|
|
|
+ } else if (this.noticeType === "出差") {
|
|
|
|
+ const path = this.$route.path;
|
|
|
|
+ let pushPath;
|
|
|
|
+ if (item.ApprovalStatus != 1) {
|
|
|
|
+ // 跳到申请列表
|
|
|
|
+ pushPath = "/businessTripApplication";
|
|
|
|
+ } else {
|
|
|
|
+ // 跳到审批列表
|
|
|
|
+ pushPath = "/businessTripApproval";
|
|
|
|
+ }
|
|
|
|
+ if (path == pushPath) {
|
|
|
|
+ window.location.reload();
|
|
|
|
+ } else {
|
|
|
|
+ this.$router.push(pushPath);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
resetpwd() {
|
|
resetpwd() {
|
|
//修改密码
|
|
//修改密码
|
|
this.$router.push({ path: "/resetpsd" });
|
|
this.$router.push({ path: "/resetpsd" });
|
|
@@ -548,7 +866,7 @@ export default {
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
},
|
|
},
|
|
- collapseHandle: function () {
|
|
|
|
|
|
+ collapseHandle () {
|
|
//折叠导航栏
|
|
//折叠导航栏
|
|
this.isCollapse = !this.isCollapse;
|
|
this.isCollapse = !this.isCollapse;
|
|
// 派发折叠导航栏事件
|
|
// 派发折叠导航栏事件
|
|
@@ -577,6 +895,8 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
|
|
+@import "../styles/theme-vars.scss";
|
|
|
|
+
|
|
.notice_item:hover {
|
|
.notice_item:hover {
|
|
color: #409eff;
|
|
color: #409eff;
|
|
}
|
|
}
|
|
@@ -618,7 +938,7 @@ export default {
|
|
#main_left {
|
|
#main_left {
|
|
// width: 200px;
|
|
// width: 200px;
|
|
height: 100%;
|
|
height: 100%;
|
|
- background: #323a58 !important;
|
|
|
|
|
|
+ background: $menu_bg !important;
|
|
color: #000;
|
|
color: #000;
|
|
border-bottom: 1px solid #eaeaea;
|
|
border-bottom: 1px solid #eaeaea;
|
|
position: fixed;
|
|
position: fixed;
|
|
@@ -626,22 +946,23 @@ export default {
|
|
top: 0;
|
|
top: 0;
|
|
z-index: 99;
|
|
z-index: 99;
|
|
.logo_cont {
|
|
.logo_cont {
|
|
|
|
+ height: 60px;
|
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
|
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
|
|
- padding: 10px 0;
|
|
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ border-bottom: 1px solid #DCDFE6;
|
|
.logo {
|
|
.logo {
|
|
width: 148px;
|
|
width: 148px;
|
|
height: 38px;
|
|
height: 38px;
|
|
display: block;
|
|
display: block;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
- // margin: 0 auto;
|
|
|
|
- margin-left: 18px;
|
|
|
|
}
|
|
}
|
|
.logo_coll {
|
|
.logo_coll {
|
|
width: 35px;
|
|
width: 35px;
|
|
height: 35px;
|
|
height: 35px;
|
|
display: block;
|
|
display: block;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
- margin-left: 14px;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
aside {
|
|
aside {
|
|
@@ -652,20 +973,13 @@ export default {
|
|
width: 200px;
|
|
width: 200px;
|
|
height: 100%;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
- background: #323a58 !important;
|
|
|
|
|
|
+ /* background: #323a58 !important; */
|
|
}
|
|
}
|
|
.el-menu--collapse {
|
|
.el-menu--collapse {
|
|
width: 70px;
|
|
width: 70px;
|
|
height: 100%;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
- background: #323a58 !important;
|
|
|
|
- }
|
|
|
|
- .collapsed {
|
|
|
|
- width: 59px;
|
|
|
|
- background: #344058;
|
|
|
|
- .item {
|
|
|
|
- position: relative;
|
|
|
|
- }
|
|
|
|
|
|
+ /* background: #323a58 !important; */
|
|
}
|
|
}
|
|
.menuitem {
|
|
.menuitem {
|
|
height: 55px;
|
|
height: 55px;
|
|
@@ -682,18 +996,17 @@ export default {
|
|
margin-right: 6px;
|
|
margin-right: 6px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- // .menuitem.active {
|
|
|
|
- // background: rgba($color: #FDB863, $alpha: 0.2);
|
|
|
|
- // color: #FDB863;
|
|
|
|
- // }
|
|
|
|
.el-submenu .el-menu-item {
|
|
.el-submenu .el-menu-item {
|
|
font-size: 15px;
|
|
font-size: 15px;
|
|
padding: 0 0 0 62px !important;
|
|
padding: 0 0 0 62px !important;
|
|
text-align: left;
|
|
text-align: left;
|
|
}
|
|
}
|
|
.el-menu-item.is-active {
|
|
.el-menu-item.is-active {
|
|
- background: rgba($color: #fdb863, $alpha: 0.2) !important;
|
|
|
|
- color: #fdb863 !important;
|
|
|
|
|
|
+ background: #ECF2FE !important;
|
|
|
|
+ color: $theme-color !important;
|
|
|
|
+ a {
|
|
|
|
+ color: $theme-color !important;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.el-submenu__title {
|
|
.el-submenu__title {
|
|
//padding-left: 0 !important;
|
|
//padding-left: 0 !important;
|
|
@@ -748,14 +1061,13 @@ export default {
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|
|
border-right: none;
|
|
border-right: none;
|
|
- // .el-submenu > .el-menu > .el-menu-item:hover {/* background-color: #5882EF !important;color: #fff !important; */}
|
|
|
|
- .el-submenu > .el-menu > .active {
|
|
|
|
|
|
+ /* .el-submenu > .el-menu > .active {
|
|
background: rgba($color: #fdb863, $alpha: 0.2) !important;
|
|
background: rgba($color: #fdb863, $alpha: 0.2) !important;
|
|
color: #fdb863 !important;
|
|
color: #fdb863 !important;
|
|
- }
|
|
|
|
|
|
+ } */
|
|
}
|
|
}
|
|
.el-submenu__title > i:nth-of-type(1) {
|
|
.el-submenu__title > i:nth-of-type(1) {
|
|
- color: #fff !important;
|
|
|
|
|
|
+ color: #C0C4CC !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.left_section_logo {
|
|
.left_section_logo {
|
|
@@ -796,7 +1108,6 @@ export default {
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
color: #ee9a34;
|
|
color: #ee9a34;
|
|
line-height: 19px;
|
|
line-height: 19px;
|
|
- -webkit-background-clip: text;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -853,8 +1164,8 @@ export default {
|
|
z-index: 10;
|
|
z-index: 10;
|
|
}
|
|
}
|
|
.userinfo {
|
|
.userinfo {
|
|
- min-width: 420px;
|
|
|
|
- width: 480px;
|
|
|
|
|
|
+ /* min-width: 420px;
|
|
|
|
+ width: 480px; */
|
|
height: 60px;
|
|
height: 60px;
|
|
text-align: right;
|
|
text-align: right;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
@@ -870,7 +1181,10 @@ export default {
|
|
left: 0px;
|
|
left: 0px;
|
|
}
|
|
}
|
|
.userinfo-fingerpost {
|
|
.userinfo-fingerpost {
|
|
- margin-left: 20px;
|
|
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ margin-right: 150px;
|
|
|
|
+ color: $theme-color;
|
|
}
|
|
}
|
|
.item {
|
|
.item {
|
|
padding: 4px;
|
|
padding: 4px;
|