Files
wysite/hc-etms.sqygj.cn/static/js/chunk-67aab86e.14cc989f.js

1 line
20 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67aab86e"],{"0994":function(t,e,a){},4513:function(t,e,a){"use strict";a.d(e,"v",(function(){return r})),a.d(e,"w",(function(){return o})),a.d(e,"x",(function(){return i})),a.d(e,"l",(function(){return u})),a.d(e,"t",(function(){return s})),a.d(e,"j",(function(){return c})),a.d(e,"o",(function(){return l})),a.d(e,"u",(function(){return d})),a.d(e,"b",(function(){return p})),a.d(e,"p",(function(){return m})),a.d(e,"D",(function(){return f})),a.d(e,"B",(function(){return h})),a.d(e,"q",(function(){return b})),a.d(e,"c",(function(){return y})),a.d(e,"s",(function(){return g})),a.d(e,"i",(function(){return v})),a.d(e,"n",(function(){return w})),a.d(e,"a",(function(){return _})),a.d(e,"g",(function(){return S})),a.d(e,"d",(function(){return k})),a.d(e,"f",(function(){return O})),a.d(e,"C",(function(){return j})),a.d(e,"m",(function(){return L})),a.d(e,"y",(function(){return C})),a.d(e,"r",(function(){return q})),a.d(e,"e",(function(){return I})),a.d(e,"z",(function(){return T})),a.d(e,"A",(function(){return x})),a.d(e,"h",(function(){return N})),a.d(e,"k",(function(){return z}));var n=a("b775");function r(){return Object(n["a"])({url:"/company/organizationalStructure/updateOrgnization",method:"post"})}function o(t){return Object(n["a"])({url:"/company/organizationalStructure/findOsTree",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/company/organizationalStructure/findOsTreeV2",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/company/OrganizationRoleRel/findProjectByRoleIdAndParent",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/company/member/pageListByCompanyId",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/company/member/findByProjectUuidAndJobUuid",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/company/member/getList",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/company/organizationalStructure/findOsPathList",method:"post",data:t})}function p(t){return Object(n["a"])({url:"/company/member/create",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/company/member/findById",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/company/member/update",method:"post",data:t})}function h(t){return Object(n["a"])({url:"/company/member/suspendMember",method:"post",data:t})}function b(t){return Object(n["a"])({url:"/enterprise/os/memberQuit/".concat(t.memberUuid),method:"post"})}function y(t){return Object(n["a"])({url:"/company/organizationalStructure/create",method:"post",data:t})}function g(t){return Object(n["a"])({url:"/company/organizationalStructure/update",method:"post",data:t})}function v(t){return Object(n["a"])({url:"/company/member/findByProjectUuid",method:"post",data:t})}function w(t){return Object(n["a"])({url:"/hakocompany/Job/getJobList",method:"post",data:t})}function _(t){return Object(n["a"])({url:"/company/member/ChangeDepartment",method:"post",data:t})}function S(t){return Object(n["a"])({url:"/hakocompany/Role/pageList",method:"post",data:t})}function k(t){return Object(n["a"])({url:"/hakocompany/MemberRoleRel/create",method:"post",data:t})}function O(t){return Object(n["a"])({url:"/hakocompany/MemberRoleRel/findByMemberId",method:"post",data:t})}function j(t){return Object(n["a"])({url:"/hakocompany/MemberRoleRel/update",method:"post",data:t})}function L(t){return Object(n["a"])({url:"/company/member/getList",method:"POST",data:t})}function C(t){return Object(n["a"])({url:"/company/member/queryByStaff",method:"POST",data:t})}function q(t){return Object(n["a"])({url:"/company/member/memberQuit",method:"POST",data:t})}function I(t){return Object(n["a"])({url:"/company/organizationalStructure/delete",method:"POST",data:t})}function T(t){return Object(n["a"])({url:"/hakocompany/Space/queryInitData",method:"POST",data:t})}function x(t){return Object(n["a"])({url:"/hakocompany/Space/queryList",method:"POST",data:t})}function N(t){return Object(n["a"])({url:"/hakocompany/Space/findByProId",method:"POST",data:t})}function z(t){return Object(n["a"])({url:"/company/organizationalStructure/findOSListByRoleId",method:"POST",data:t})}},"4cfb":function(t,e,a){"use strict";a.d(e,"e",(function(){return r})),a.d(e,"h",(function(){return o})),a.d(e,"f",(function(){return i})),a.d(e,"g",(function(){return u})),a.d(e,"d",(function(){return s})),a.d(e,"a",(function(){return c})),a.d(e,"b",(function(){return l})),a.d(e,"c",(function(){return d}));var n=a("b775");function r(t){return Object(n["a"])({url:"/hakocompany/QywxContact/pageList",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/hakocompany/QywxContact/syncContactData",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/hakocompany/QywxContractTagGroup/pageList",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/hakocompany/QywxUser/pageList",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/hakocompany/QywxUserCheckin/pageList",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/hakocompany/MemberManualAttendance/pageList",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/hakocompany/MemberManualAttendance/out/excel",method:"post",responseType:"blob",data:t})}function d(t,e){return Object(n["a"])({url:"/hakocompany/MemberManualAttendance/input/excel/".concat(e),method:"post",isReturnResponse:!0,isFile:!0,responseType:"blob",headers:{"Content-Type":"multipart/form-data;charset=UTF-8"},data:t})}},"67d5":function(t,e,a){"use strict";a.d(e,"i",(function(){return r})),a.d(e,"j",(function(){return o})),a.d(e,"f",(function(){return i})),a.d(e,"b",(function(){return u})),a.d(e,"c",(function(){return s})),a.d(e,"k",(function(){return c})),a.d(e,"e",(function(){return l})),a.d(e,"d",(function(){return d})),a.d(e,"h",(function(){return p})),a.d(e,"a",(function(){return m})),a.d(e,"g",(function(){return f}));var n=a("b775");function r(t){return Object(n["a"])({url:"/hakocompany/Role/pageList",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/company/organizationalStructure/selectOsList",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/company/organizationalStructure/findOsTree",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/hakocompany/Role/create",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/hakocompany/Role/delete",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/hakocompany/Role/update",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/hakocompany/RoleMenuRel/findByRoleIdAndClienId",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/hakocompany/OrganizationRoleRel/findByRoleId",method:"post",data:t})}function p(t){return Object(n["a"])({url:"/company/member/pageListForRole",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/company/MemberRoleRel/batchDelete",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/hakocompany/account/findProjectByRole",method:"post",data:t})}},"77f6a":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"workPointsManage"},[a("div",{staticClass:"workPointsRuleList"},[a("el-card",{staticClass:"box-card secarch-box"},[a("el-row",[a("el-col",{staticClass:"elCol",attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",multiple:"","collapse-tags":"",clearable:"",placeholder:"请选择标签"},model:{value:t.query.tagIds,callback:function(e){t.$set(t.query,"tagIds",e)},expression:"query.tagIds"}},t._l(t.tagList,(function(e){return a("el-option-group",{key:e.id,attrs:{label:e.groupName}},t._l(e.tags,(function(t){return a("el-option",{key:t.tagId,attrs:{label:t.tagName,value:t.tagId}})})),1)})),1)],1),t._v(" "),a("el-col",{staticClass:"elCol",attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",placeholder:"请选择添加人"},model:{value:t.query.userId,callback:function(e){t.$set(t.query,"userId",e)},expression:"query.userId"}},t._l(t.userList,(function(t){return a("el-option",{key:t.userId,attrs:{label:t.name,value:t.userId}})})),1)],1),t._v(" "),a("el-col",{staticClass:"elCol",attrs:{span:3}},[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请选择客户来源"},model:{value:t.query.type,callback:function(e){t.$set(t.query,"type",e)},expression:"query.type"}},[a("el-option",{attrs:{label:"微信",value:1}}),t._v(" "),a("el-option",{attrs:{label:"企业微信",value:2}})],1)],1),t._v(" "),a("el-col",{staticClass:"elCol",attrs:{span:8}},[a("el-date-picker",{attrs:{type:"datetimerange",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},model:{value:t.bindTime,callback:function(e){t.bindTime=e},expression:"bindTime"}})],1),t._v(" "),a("el-col",{staticClass:"elCol",attrs:{span:4}},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(e){return t.resetForm()}}},[t._v("重置")]),t._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")])],1)],1)],1),t._v(" "),a("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"15px"}},[a("div",{staticClass:"planLst"},[a("span",{staticClass:"planTitle"},[t._v("客户微信列表")]),t._v(" "),a("span",{staticClass:"add"},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",size:"small",loading:t.syncLoad,icon:"el-icon-refresh"},on:{click:t.syncClick}},[t._v("同步数据")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],staticStyle:{width:"100%","margin-top":"15px"},attrs:{border:"",data:t.tableData,"header-cell-style":t.headClass}},[a("el-table-column",{attrs:{label:"#",align:"center",width:"80",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.query.pageNumber-1)*t.query.pageSize+1)+" ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"realName",label:"客户名称",width:"200","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark&&e.row.remark===e.row.name?e.row.name:e.row.remark+"("+e.row.name+")"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"realName",label:"客户手机号",width:"140","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remarkMobiles||"-"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"realName",label:"来源",width:"140","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(2==e.row.type?"@"+e.row.corpName:"微信"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"标签","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",t._l(e.row.tagList,(function(e,n){return a("el-tag",{key:n,staticStyle:{margin:"0 8px 8px 0",display:"inline-block"},attrs:{type:"info"}},[t._v(t._s(e.tagName))])})),1)]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"添加人",width:"140","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.username||"-"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"添加时间",width:"190","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.addTime||"-")+" ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"备注",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.description||"-")+" ")])]}}])})],1),t._v(" "),a("div",{staticClass:"paginations"},[a("el-pagination",{attrs:{background:"","current-page":t.query.pageNumber,"page-sizes":[10,20,30,50],"page-size":t.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.pageTotal},on:{"update:currentPage":function(e){return t.$set(t.query,"pageNumber",e)},"update:current-page":function(e){return t.$set(t.query,"pageNumber",e)},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1),t._v(" "),a("screenUser",{attrs:{show:t.screenShow},on:{close:t.screenClose,callback:t.getlistData}})],1)},r=[],o=a("4cfb"),i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"workPointsManage"},[a("el-dialog",{attrs:{title:"选择同步数据的账号",visible:t.show,width:"50%","before-close":t.handleClose},on:{"update:visible":function(e){t.show=e}}},[a("el-form",{ref:"query",staticClass:"demo-form-inline",attrs:{inline:!0,model:t.query}},[a("el-form-item",{attrs:{prop:"id"}},[a("el-select",{attrs:{placeholder:"选择项目"},model:{value:t.query.id,callback:function(e){t.$set(t.query,"id",e)},expression:"query.id"}},t._l(t.listData,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"name"}},[a("el-input",{attrs:{placeholder:"员工"},model:{value:t.query.name,callback:function(e){t.$set(t.query,"name",e)},expression:"query.name"}})],1),t._v(" "),a("el-form-item",{attrs:{prop:"attribute"}},[a("el-select",{attrs:{placeholder:"项目负责人"},model:{value:t.query.attribute,callback:function(e){t.$set(t.query,"attribute",e)},expression:"query.attribute"}},[a("el-option",{attrs:{label:"是",value:1}}),t._v(" "),a("el-option",{attrs:{label:"否",value:null}})],1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.searchClick}},[t._v("查询")]),t._v(" "),a("el-button",{on:{click:t.resetSearch}},[t._v("重置")])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],ref:"screenTable",staticStyle:{width:"100%","margin-top":"15px"},attrs:{border:"",data:t.tableData,"header-cell-style":t.headClass},on:{"selection-change":t.getSelect}},[a("el-table-column",{attrs:{align:"center",width:"50",fixed:"",type:"selection"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"realName",label:"项目","min-width":"200","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.departmentName||"-"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"realName",label:"员工","min-width":"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.name||"-"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"realName",label:"项目负责人","min-width":"100","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(1==e.row.attribute?"是":"否"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"岗位","min-width":"200","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.postName||"-")+"\n ")]}}])})],1),t._v(" "),a("div",{staticClass:"paginations"},[a("el-pagination",{attrs:{background:"","current-page":t.query.pageNumber,"page-sizes":[10,20,30,50],"page-size":t.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.pageTotal},on:{"update:currentPage":function(e){return t.$set(t.query,"pageNumber",e)},"update:current-page":function(e){return t.$set(t.query,"pageNumber",e)},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.handleClose}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary",loading:t.postLoad},on:{click:t.submitPost}},[t._v("确 定")])],1)],1)],1)},u=[],s=(a("a450"),a("1bc7"),a("4513")),c=a("67d5"),l={props:{show:{type:Boolean,default:!1}},data:function(){return{tableData:[],listData:[],tableLoading:!1,pageTotal:0,query:{id:"",name:"",attribute:"",pageNumber:1,pageSize:10},postLoad:!1,selectList:[]}},mounted:function(){this.getMemberList(),this.getProjectList()},methods:{getMemberList:function(){var t=this;this.query.osId=this.query.id?this.query.id:JSON.parse(window.localStorage.getItem("companyInfo")).osId,this.query.tag=1,this.query.isStop=1,this.query.onJobState=1,this.query.bindWxUser=1,this.tableLoading=!0,Object(s["t"])(this.query).then((function(e){t.tableLoading=!1,e.data?(t.tableData=e.data.records,t.pageTotal=e.data.rowsCount):(t.tableData=[],t.pageTotal=0)})).catch((function(e){t.tableLoading=!1}))},getProjectList:function(){var t=this,e={id:JSON.parse(window.localStorage.getItem("companyInfo")).osId,attribute:1};Object(c["j"])(e).then((function(e){0===e.code&&e.data?t.listData=e.data:t.listData=[]}))},getSelect:function(t){t.length>0?this.selectList=t:this.selectList=[]},submitPost:function(){var t=this;if(this.selectList.length>0){this.postLoad=!0;var e=[];this.selectList.forEach((function(t){e.push({memberName:t.name,wxUserId:t.wxUserId})})),Object(o["h"])({companyId:JSON.parse(window.localStorage.getItem("companyInfo")).osId,syncDTOList:e}).then((function(e){t.$message({type:"success",message:"同步请求成功请1分钟后刷新页面查看最新数据"}),t.postLoad=!1,t.$refs.screenTable.clearSelection(),t.$emit("callback")})).catch((function(){t.postLoad=!1}))}else this.$message("请先选择需要同步数据的账号")},handleClose:function(){this.$refs.screenTable.clearSelection(),this.$emit("close")},handleSizeChange:function(t){this.query.pageSize=t,this.query.pageNumber=1,this.getMemberList()},handleCurrentChange:function(t){this.query.pageNumber=t,this.getMemberList()},searchClick:function(){this.query.pageNumber=1,this.getMemberList()},resetSearch:function(){this.$refs["query"].resetFields(),this.getMemberList()},headClass:function(){return"text-align:center;background:#FAFAFA;"}}},d=l,p=(a("ebb1"),a("829d")),m=Object(p["a"])(d,i,u,!1,null,"62440021",null),f=m.exports,h={components:{screenUser:f},data:function(){return{query:{pageNumber:1,pageSize:10,userId:"",addStartTime:"",addEndTime:"",tagIds:[],type:""},bindTime:"",companyId:"",pageTotal:0,tableData:[],syncLoad:!1,tagList:[],userList:[],tableLoading:!1,screenShow:!1}},mounted:function(){this.companyId=JSON.parse(localStorage.getItem("companyInfo")).osId,this.getlistData(),this.getTagList(),this.getQYWXuser()},methods:{getlistData:function(){var t=this;this.query.addStartTime=this.bindTime?this.bindTime[0]:"",this.query.addEndTime=this.bindTime?this.bindTime[1]:"",this.query.companyId=this.companyId,this.tableLoading=!0,Object(o["e"])(this.query).then((function(e){t.tableLoading=!1,0===e.code&&e.data?(t.tableData=e.data.records,t.pageTotal=e.data.rowsCount):t.tableData=[]})).catch((function(){t.tableLoading=!1}))},handleSizeChange:function(t){this.query.pageSize=t,this.getlistData()},handleCurrentChange:function(t){this.query.pageNumber=t,this.getlistData()},onSearch:function(){this.query.pageNumber=1,this.getlistData()},resetForm:function(){this.query={pageNumber:1,pageSize:10,userId:"",addStartTime:"",addEndTime:"",tagIds:[]},this.bindTime="",this.getlistData()},getTagList:function(){var t=this;Object(o["f"])({companyId:this.companyId}).then((function(e){t.tagList=e.data.records}))},getQYWXuser:function(){var t=this,e={companyId:this.companyId,mainDepartment:1,pageNumber:-1,pageSize:-1};Object(o["g"])(e).then((function(e){t.userList=e.data.records}))},syncClick:function(){this.screenShow=!0},headClass:function(){return"text-align:center;background:#FAFAFA;"},screenClose:function(){this.screenShow=!1}}},b=h,y=(a("fcb0"),Object(p["a"])(b,n,r,!1,null,"60e20f45",null));e["default"]=y.exports},"7d98":function(t,e,a){},ebb1:function(t,e,a){"use strict";a("7d98")},fcb0:function(t,e,a){"use strict";a("0994")}}]);