123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- // 质量月报
- import request from '@/utils/request'
- import { TeamManagement } from '@/apiConfig/api'
- // ----------------- 主页 --------------
- // 获取月报主页下拉选择
- export function getAvaliableInfo() {
- return request({
- url: TeamManagement + `/monthlyReport/getAvaliableInfo`,
- method: 'get'
- })
- }
- // 获取月报主页data
- export function monthlyReportIndex(id) {
- return request({
- url: TeamManagement + `/monthlyReport/monthlyReportIndex?id=${id}`,
- method: 'get'
- })
- }
- // ---------------- 通用设置 -------------------
- // 获取月报发起人列表
- export function getSponsorList() {
- return request({
- url: TeamManagement + `/monthlyReport/sponsorList`,
- method: 'get'
- })
- }
- // 添加月报发起人
- export function createSponsor(data) {
- return request({
- url: TeamManagement + `/monthlyReport/createSponsor`,
- method: 'post',
- data
- })
- }
- // 删除月报发起人
- export function deleteSponsor(data) {
- return request({
- url: TeamManagement + `/monthlyReport/deleteSponsor`,
- method: 'post',
- data
- })
- }
- // 获取业务线设置list
- export function monthlyReportSettingList() {
- return request({
- url: TeamManagement + `/monthlyReport/settingList`,
- method: 'get'
- })
- }
- // 更新业务线设置
- export function monthlyReportUpdatSetting(data) {
- return request({
- url: TeamManagement + `/monthlyReport/updatSetting`,
- method: 'post',
- data
- })
- }
- // -------------------- 团队设置 ----------------------
- // 获取部门信息列表
- export function getDeptSetting() {
- return request({
- url: TeamManagement + `/monthlyReport/getDeptSetting`,
- method: 'get'
- })
- }
- // 删除部门关联业务线
- export function deleteDeptBizRel(data) {
- return request({
- url: TeamManagement + `/monthlyReport/deleteDeptBizRel`,
- method: 'post',
- data
- })
- }
- // 部门添加关联业务线
- export function createDeptBizRel(data) {
- return request({
- url: TeamManagement + `/monthlyReport/createDeptBizRel`,
- method: 'post',
- data
- })
- }
- // 点击部门获取部门人员信息
- export function getDeptMember(id) {
- return request({
- url: TeamManagement + `/monthlyReport/getDeptMember?deptCode=${id}`,
- method: 'get'
- })
- }
- // 获取月报业务线
- export function getReportBizInfo(id) {
- return request({
- url: TeamManagement + `/monthlyReport/getReportBizInfo`,
- method: 'get'
- })
- }
- // 获取部门下odin节点
- export function getOdinNode(id) {
- return request({
- url: TeamManagement + `/monthlyReport/getOdinNode?deptId=${id}`,
- method: 'get'
- })
- }
- // -------------- 节点树 ---------------
- // 获取月报节点树 待定
- export function getOdinTree(data) {
- return request({
- url: data !== null ? TeamManagement + `/monthlyReport/getOdinTree?keyWord=${data}` : TeamManagement + `/monthlyReport/getOdinTree`,
- timeout: '10000',
- method: 'get'
- })
- }
- // 添加根节点
- export function addShowOdinNode(data) {
- return request({
- url: TeamManagement + `/monthlyReport/addShowOdinNode`,
- method: 'post',
- data
- })
- }
- // 创建月报
- export function createMonthlyReport(data) {
- return request({
- url: TeamManagement + `/monthlyReport/create`,
- method: 'post',
- data
- })
- }
- // 根据父odin节点加载odin子节点
- export function getOdinNodeByParentId(id) {
- return request({
- url: TeamManagement + `/monthlyReport/getOdinNodeByParentId?odinId=${id}`,
- timeout: '10000',
- method: 'get'
- })
- }
- // 部门模糊搜索
- export function getDeptByKeyWord(id) {
- return request({
- url: TeamManagement + `/monthlyReport/getDeptByKeyWord?keyWord=${id}`,
- timeout: '10000',
- method: 'get'
- })
- }
- // 节点树 增加团队
- export function createOdinDeptRel(data) {
- return request({
- url: TeamManagement + `/monthlyReport/createOdinDeptRelV2`,
- method: 'post',
- data
- })
- }
- // 节点树 删除团队
- export function deleteOdinBizRel(data) {
- return request({
- url: TeamManagement + `/monthlyReport/deleteOdinDeptRelV2`,
- method: 'post',
- data
- })
- }
|