(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d80a26d2"],{5248:function(t,e,o){"use strict";o("ddde")},"67d5":function(t,e,o){"use strict";o.d(e,"i",(function(){return n})),o.d(e,"j",(function(){return r})),o.d(e,"f",(function(){return i})),o.d(e,"b",(function(){return l})),o.d(e,"c",(function(){return s})),o.d(e,"k",(function(){return c})),o.d(e,"e",(function(){return u})),o.d(e,"d",(function(){return p})),o.d(e,"h",(function(){return d})),o.d(e,"a",(function(){return f})),o.d(e,"g",(function(){return m}));var a=o("b775");function n(t){return Object(a["a"])({url:"/hakocompany/Role/pageList",method:"post",data:t})}function r(t){return Object(a["a"])({url:"/company/organizationalStructure/selectOsList",method:"post",data:t})}function i(t){return Object(a["a"])({url:"/company/organizationalStructure/findOsTree",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/hakocompany/Role/create",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/hakocompany/Role/delete",method:"post",data:t})}function c(t){return Object(a["a"])({url:"/hakocompany/Role/update",method:"post",data:t})}function u(t){return Object(a["a"])({url:"/hakocompany/RoleMenuRel/findByRoleIdAndClienId",method:"post",data:t})}function p(t){return Object(a["a"])({url:"/hakocompany/OrganizationRoleRel/findByRoleId",method:"post",data:t})}function d(t){return Object(a["a"])({url:"/company/member/pageListForRole",method:"post",data:t})}function f(t){return Object(a["a"])({url:"/company/MemberRoleRel/batchDelete",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/hakocompany/account/findProjectByRole",method:"post",data:t})}},"90e7":function(t,e,o){"use strict";o.d(e,"g",(function(){return n})),o.d(e,"m",(function(){return r})),o.d(e,"f",(function(){return i})),o.d(e,"l",(function(){return l})),o.d(e,"h",(function(){return s})),o.d(e,"n",(function(){return c})),o.d(e,"a",(function(){return u})),o.d(e,"b",(function(){return p})),o.d(e,"c",(function(){return d})),o.d(e,"e",(function(){return f})),o.d(e,"d",(function(){return m})),o.d(e,"i",(function(){return y})),o.d(e,"j",(function(){return v})),o.d(e,"o",(function(){return g})),o.d(e,"k",(function(){return h}));var a=o("b775");function n(t){return Object(a["a"])({url:"/hakocompany/DeductionInfo/findById",method:"post",data:t})}function r(t){return Object(a["a"])({url:"/hakocompany/DeductionInfo/update",method:"post",data:t})}function i(t){return Object(a["a"])({url:"/hakocompany/CollectionInfoApi/findById",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/hakocompany/CollectionInfoApi/update",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/hakocompany/ChargePushConfigApi/findById",method:"post",data:t})}function c(t){return Object(a["a"])({url:"/hakocompany/ChargePushConfigApi/update",method:"post",data:t})}function u(t){return Object(a["a"])({url:"/company/ProjectSatisfactionConfig/pageList",method:"post",data:t})}function p(t){return Object(a["a"])({url:"/company/ProjectSatisfactionConfig/update",method:"post",data:t})}function d(t){return Object(a["a"])({url:"/hakocompany/CockpitConfig/create",method:"post",data:t})}function f(t){return Object(a["a"])({url:"/hakocompany/CockpitConfig/findByCompanyIdAndType",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/hakocompany/CockpitConfig/sceneMenuList",method:"post",data:t})}function y(t){return Object(a["a"])({url:"/hakocompany/ProjectConfig/pageList",method:"post",data:t})}function v(t){return Object(a["a"])({url:"/hakocompany/ProjectConfig/updateExponentByProjectUuid",method:"post",data:t})}function g(t,e){return Object(a["a"])({url:"/oss/upload",isFile:!0,isReturnResponse:!0,headers:{"Content-Type":"multipart/form-data;charset=UTF-8"},method:"post",data:t,onUploadProgress:e&&e.onUploadProgress})}function h(t){return Object(a["a"])({url:"/hakocompany/ProjectConfig/updateVisitPollRateByProjectUuid",method:"post",data:t})}},ddde:function(t,e,o){},fc97:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-container tabs-card"},[o("el-tabs",{attrs:{type:"border-card"},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[o("el-tab-pane",{attrs:{label:"短信回访配置",name:"sms"}},[o("el-card",{staticClass:"box-card"},[o("el-row",[o("el-col",{staticClass:"elCol",attrs:{span:4}},[o("el-select",{attrs:{multiple:"","collapse-tags":"",clearable:"",placeholder:"请选择项目"},model:{value:t.query.projectUuidList,callback:function(e){t.$set(t.query,"projectUuidList",e)},expression:"query.projectUuidList"}},t._l(t.projectList,(function(t){return o("el-option",{key:t.uuid,attrs:{label:t.name,value:t.uuid}})})),1)],1),t._v(" "),o("el-col",{staticClass:"elCol",attrs:{span:4}},[o("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(e){return t.resetForm()}}},[t._v("重置")]),t._v(" "),o("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(" "),o("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"15px"}},[o("div",{staticClass:"planLst"},[o("span",{staticStyle:{color:"#2f2c2c","font-size":"16px"}},[t._v("短信回访配置")])]),t._v(" "),o("el-table",{staticStyle:{width:"100%","margin-top":"15px"},attrs:{border:"",data:t.tableData,"header-cell-style":t.headClass}},[o("el-table-column",{attrs:{label:"#",align:"center",width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("span",[t._v(t._s(e.$index+(t.query.pageNumber-1)*t.query.pageSize+1))])]}}])}),t._v(" "),o("el-table-column",{attrs:{align:"center",prop:"projectName",label:"项目","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.projectName))]}}])}),t._v(" "),o("el-table-column",{attrs:{align:"center",prop:"visitPollRate",label:"短信发送比例%"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("div",[e.row.forEdit?t._e():o("div",[t._v("\n "+t._s(e.row.visitPollRate||0)+"%\n "),o("i",{staticClass:"el-icon-edit",on:{click:function(o){return t.toEdit(e.row)}}})]),t._v(" "),e.row.forEdit?o("div",{staticClass:"setEdit"},[o("el-input-number",{staticStyle:{width:"170px"},attrs:{"controls-position":"right",min:0,max:100},model:{value:e.row.visitPollRate,callback:function(o){t.$set(e.row,"visitPollRate",o)},expression:"scope.row.visitPollRate"}}),t._v("%\n "),o("div",[o("el-button",{attrs:{type:"text"},on:{click:function(o){return t.editRateSave(e.row)}}},[t._v("保存")]),t._v(" "),o("el-button",{attrs:{type:"text"},on:{click:function(o){return t.escEdit(e.row)}}},[t._v("取消")])],1)],1):t._e()])]}}])}),t._v(" "),o("el-table-column",{attrs:{align:"center",prop:"operatorName",label:"操作人"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.visitPollUpdaterName||"-"))]}}])}),t._v(" "),o("el-table-column",{attrs:{align:"center",prop:"operatingTime",label:"操作时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.visitPollUpdateTime||"-"))]}}])})],1),t._v(" "),o("div",{staticClass:"paginations"},[o("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(" "),o("el-tab-pane",{attrs:{label:"拜访控制配置",name:"visitControl"}},[o("el-card",{staticClass:"box-card"},[o("el-row",[o("el-col",{staticClass:"elCol",attrs:{span:4}},[o("el-select",{attrs:{multiple:"","collapse-tags":"",clearable:"",placeholder:"请选择项目"},model:{value:t.query.projectUuidList,callback:function(e){t.$set(t.query,"projectUuidList",e)},expression:"query.projectUuidList"}},t._l(t.projectList,(function(t){return o("el-option",{key:t.uuid,attrs:{label:t.name,value:t.uuid}})})),1)],1),t._v(" "),o("el-col",{staticClass:"elCol",attrs:{span:4}},[o("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(e){return t.resetForm()}}},[t._v("重置")]),t._v(" "),o("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(" "),o("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"15px"}},[o("div",{staticClass:"planLst"},[o("span",{staticStyle:{color:"#2f2c2c","font-size":"16px"}},[t._v("拜访控制配置")])]),t._v(" "),o("el-table",{staticStyle:{width:"100%","margin-top":"15px"},attrs:{border:"",data:t.tableData,"header-cell-style":t.headClass}},[o("el-table-column",{attrs:{label:"#",align:"center",width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("span",[t._v(t._s(e.$index+(t.query.pageNumber-1)*t.query.pageSize+1))])]}}])}),t._v(" "),o("el-table-column",{attrs:{align:"center",prop:"projectName",label:"项目","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.projectName))]}}])}),t._v(" "),o("el-table-column",{attrs:{align:"center",prop:"visitPhotoAllowType",label:"回访拍照拜访方式"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("div",[e.row.forEditPhotoAllowType?t._e():o("div",{staticClass:"allow-type-cell"},[o("el-tooltip",{attrs:{content:t.formatVisitWays(e.row.visitPhotoAllowType),placement:"top",effect:"dark"}},[o("span",{staticClass:"allow-type-text"},[t._v("\n "+t._s(t.formatVisitWays(e.row.visitPhotoAllowType))+"\n ")])]),t._v(" "),o("i",{staticClass:"el-icon-edit allow-type-edit",on:{click:function(o){return t.toggleAllowTypeEdit(e.row,"visitPhotoAllowType","forEditPhotoAllowType")}}})],1),t._v(" "),e.row.forEditPhotoAllowType?o("div",[o("el-select",{attrs:{"collapse-tags":"",multiple:"",clearable:"",placeholder:"请选择拜访方式"},model:{value:e.row.visitPhotoAllowType,callback:function(o){t.$set(e.row,"visitPhotoAllowType",o)},expression:"scope.row.visitPhotoAllowType"}},t._l(t.visitWayList,(function(t){return o("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),t._v(" "),o("div",[o("el-button",{attrs:{type:"text"},on:{click:function(o){return t.editAllowTypeSave(e.row,"visitPhotoAllowType","forEditPhotoAllowType")}}},[t._v("保存")]),t._v(" "),o("el-button",{attrs:{type:"text"},on:{click:function(o){return t.escAllowTypeEdit(e.row,"forEditPhotoAllowType")}}},[t._v("取消")])],1)],1):t._e()])]}}])}),t._v(" "),o("el-table-column",{attrs:{align:"center",prop:"visitVideoAllowType",label:"回访视频拜访方式"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("div",[e.row.forEditVideoAllowType?t._e():o("div",{staticClass:"allow-type-cell"},[o("el-tooltip",{attrs:{content:t.formatVisitWays(e.row.visitVideoAllowType),placement:"top",effect:"dark"}},[o("span",{staticClass:"allow-type-text"},[t._v("\n "+t._s(t.formatVisitWays(e.row.visitVideoAllowType))+"\n ")])]),t._v(" "),o("i",{staticClass:"el-icon-edit allow-type-edit",on:{click:function(o){return t.toggleAllowTypeEdit(e.row,"visitVideoAllowType","forEditVideoAllowType")}}})],1),t._v(" "),e.row.forEditVideoAllowType?o("div",[o("el-select",{attrs:{"collapse-tags":"",multiple:"",clearable:"",placeholder:"请选择拜访方式"},model:{value:e.row.visitVideoAllowType,callback:function(o){t.$set(e.row,"visitVideoAllowType",o)},expression:"scope.row.visitVideoAllowType"}},t._l(t.visitWayList,(function(t){return o("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),t._v(" "),o("div",[o("el-button",{attrs:{type:"text"},on:{click:function(o){return t.editAllowTypeSave(e.row,"visitVideoAllowType","forEditVideoAllowType")}}},[t._v("保存")]),t._v(" "),o("el-button",{attrs:{type:"text"},on:{click:function(o){return t.escAllowTypeEdit(e.row,"forEditVideoAllowType")}}},[t._v("取消")])],1)],1):t._e()])]}}])}),t._v(" "),o("el-table-column",{attrs:{align:"center",prop:"operatorName",label:"操作人"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.visitPollUpdaterName||"-"))]}}])}),t._v(" "),o("el-table-column",{attrs:{align:"center",prop:"operatingTime",label:"操作时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.visitPollUpdateTime||"-"))]}}])})],1),t._v(" "),o("div",{staticClass:"paginations"},[o("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)],1)],1)},n=[],r=(o("1bc7"),o("e680"),o("fc02"),o("5821")),i=(o("a450"),o("67d5")),l=o("90e7"),s=o("dce5"),c={name:"smsVisitConfig",components:{},data:function(){return{activeTab:"sms",visitWayList:s["Gb"],companyInfo:{},pageTotal:0,projectList:[],query:{projectUuidList:[],pageNumber:1,pageSize:10,permittedExpireDays:30},tableData:[]}},watch:{},mounted:function(){this.getProjectInfo(),this.memberId=window.localStorage.getItem("memberId"),this.headClass(),this.getlistData()},methods:{onToggleVisitSwitch:function(t,e){var o=this,a=t[e],n=1===a?0:1;t._saving=!0;var i=Object(r["a"])(Object(r["a"])({visitPollUpdaterName:JSON.parse(window.localStorage.getItem("memberInfor")).name,projectUuid:t.projectUuid},e,a),"visitPollRate",t.visitPollRate);Object(l["k"])(i).then((function(a){0===a.code?(o.$message({message:"已更新",type:"success"}),o.getlistData()):(t[e]=n,o.$message({message:a.msg||"更新失败",type:"error"}))})).catch((function(){t[e]=n,o.$message({message:"更新失败",type:"error"})})).finally((function(){t._saving=!1}))},editRateSave:function(t){var e=this,o={visitPollUpdaterName:JSON.parse(window.localStorage.getItem("memberInfor")).name,visitPollRate:t.visitPollRate,projectUuid:t.projectUuid};Object(l["k"])(o).then((function(o){0===o.code?(t.forEdit=!1,e.$message({message:"编辑成功",type:"success"}),e.getlistData()):(t.forEdit=!1,e.$message({message:o.msg||"编辑失败",type:"error"}))})).catch((function(){t.forEdit=!1,e.$message({message:"编辑失败",type:"error"})}))},toEdit:function(t){t.forEdit=!t.forEdit},escEdit:function(t){t.forEdit=!1},toggleAllowTypeEdit:function(t,e,o){if(t[o]=!t[o],t[o]){var a=t[e];"string"===typeof a&&a?t[e]=a.split(",").map((function(t){return Number(t)})).filter((function(t){return!isNaN(t)})):null!=a&&""!==a||(t[e]=[])}},escAllowTypeEdit:function(t,e){t[e]=!1},editAllowTypeSave:function(t,e,o){var a=this,n=function(e){var o=null;return Array.isArray(t[e])?o=t[e].length>0?t[e].join(","):null:void 0!==t[e]&&null!==t[e]&&""!==t[e]&&(o=t[e]),""===o&&(o=null),o},i=n(e),s="visitPhotoAllowType"===e?"visitVideoAllowType":"visitPhotoAllowType",c=n(s),u=Object(r["a"])(Object(r["a"])(Object(r["a"])({visitPollUpdaterName:JSON.parse(window.localStorage.getItem("memberInfor")).name,projectUuid:t.projectUuid},e,i),s,c),"visitPollRate",t.visitPollRate);Object(l["k"])(u).then((function(e){0===e.code?(t[o]=!1,a.$message({message:"编辑成功",type:"success"}),a.getlistData()):(t[o]=!1,a.$message({message:e.msg||"编辑失败",type:"error"}))})).catch((function(){t[o]=!1,a.$message({message:"编辑失败",type:"error"})}))},getProjectInfo:function(){var t=this,e=JSON.parse(window.localStorage.getItem("companyInfo")).osId;Object(i["j"])({id:e,attribute:1,permittedExpireDays:30}).then((function(e){0===e.code&&e.data?t.projectList=e.data:t.projectList=[]}))},getlistData:function(){var t=this;0==this.query.projectUuidList.length?this.query.companyId=JSON.parse(window.localStorage.getItem("companyInfo")).osId:delete this.query.companyId,Object(l["i"])(this.query).then((function(e){0===e.code&&e.data?(e.data.records.forEach((function(t){t.forEdit=!1,t.forEditPhotoAllowType=!1,t.forEditVideoAllowType=!1})),t.tableData=e.data.records,t.pageTotal=e.data.rowsCount):(t.tableData=[],t.pageTotal=0)}))},onSearch:function(){this.query.pageNumber=1,this.getlistData()},handleSizeChange:function(t){this.query.pageSize=t,this.getlistData()},handleCurrentChange:function(t){this.query.pageNumber=t,this.getlistData()},resetForm:function(){this.query.pageNumber=1,this.query.projectUuidList=[],this.getlistData()},headClass:function(){return"text-align:center;background:#FAFAFA;"},formatVisitWays:function(t){var e=function(t){return Array.isArray(t)?t:"string"===typeof t&&t?t.split(",").map((function(t){return Number(t)})).filter((function(t){return!isNaN(t)})):[]},o=e(t);if(!this.visitWayList||0===this.visitWayList.length)return o.join(",")||"-";var a={};this.visitWayList.forEach((function(t){a[t.value]=t.label}));var n=o.map((function(t){return a[t]||String(t)}));return n.length?n.join("、"):"-"}}},u=c,p=(o("5248"),o("829d")),d=Object(p["a"])(u,a,n,!1,null,"b88fac1e",null);e["default"]=d.exports}}]);