HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/douyin.dsfnj.com/static/js/chunk-cb76.92fc4b07.js
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-cb76","chunk-24b7","chunk-3c8e"],{"+9np":function(t,e,i){"use strict";var a=i("Qf6f");i.n(a).a},"+9th":function(t,e,i){"use strict";i.d(e,"p",function(){return s}),i.d(e,"n",function(){return n}),i.d(e,"a",function(){return o}),i.d(e,"h",function(){return l}),i.d(e,"j",function(){return c}),i.d(e,"l",function(){return r}),i.d(e,"m",function(){return d}),i.d(e,"u",function(){return u}),i.d(e,"s",function(){return m}),i.d(e,"f",function(){return h}),i.d(e,"d",function(){return p}),i.d(e,"k",function(){return f}),i.d(e,"g",function(){return v}),i.d(e,"q",function(){return g}),i.d(e,"t",function(){return _}),i.d(e,"r",function(){return b}),i.d(e,"o",function(){return y}),i.d(e,"e",function(){return w}),i.d(e,"b",function(){return C}),i.d(e,"c",function(){return x}),i.d(e,"i",function(){return k});var a=i("t3Un");function s(t){return Object(a.a)({url:"oa/task/subTaskList",method:"post",data:t})}function n(t){return Object(a.a)({url:"oa/task/myTask",method:"post",data:t})}function o(t){return Object(a.a)({url:"oa/task/save",method:"post",data:t})}function l(t){return Object(a.a)({url:"oa/task/delete",method:"post",data:t})}function c(t){return Object(a.a)({url:"oa/task/read",method:"post",data:t})}function r(t){return Object(a.a)({url:"oa/task/update",method:"post",data:t})}function d(t){return Object(a.a)({url:"oa/task/updateName",method:"post",data:t})}function u(t){return Object(a.a)({url:"oa/task/updateStoptime",method:"post",data:t})}function m(t){return Object(a.a)({url:"oa/task/updateOwner",method:"post",data:t})}function h(t){return Object(a.a)({url:"oa/task/updateLable",method:"post",data:t})}function p(t){return Object(a.a)({url:"oa/tasklable/save",method:"post",data:t})}function f(t){return Object(a.a)({url:"oa/tasklable/update",method:"post",data:t})}function v(t){return Object(a.a)({url:"oa/tasklable/delete",method:"post",data:t})}function g(t){return Object(a.a)({url:"oa/tasklable/index",method:"post",data:t})}function _(t){return Object(a.a)({url:"oa/task/updatePriority",method:"post",data:t})}function b(t){return Object(a.a)({url:"oa/task/taskOver",method:"post",data:t})}function y(t){return Object(a.a)({url:"oa/task/readLoglist",method:"post",data:t})}function w(t){return Object(a.a)({url:"oa/task/delOwnerById",method:"post",data:t})}function C(t){return Object(a.a)({url:"oa/taskcomment/save",method:"post",data:t})}function x(t){return Object(a.a)({url:"oa/taskcomment/delete",method:"post",data:t})}function k(t){return Object(a.a)({url:"oa/task/delrelation",method:"post",data:t})}},"+NTD":function(t,e,i){"use strict";var a=i("mX3o"),s=i("EgJF"),n=i("ooHJ"),o=i("7Qib"),l={name:"RelativeReturnMoney",components:{CRMCreateView:s.default,CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-edbf"),i.e("chunk-6861"),i.e("chunk-f93a")]).then(i.bind(null,"uMjE"))}},mixins:[a.a],props:{id:[String,Number],crmType:{type:String,default:""},detail:{type:Object,default:function(){return{}}},isSeas:{type:Boolean,default:!1}},data:function(){return{list:[],fieldList:[],tableHeight:"250px",showFullDetail:!1,showFullCrmType:"receivables",showFullId:"",createCrmType:"receivables_plan",isCreate:!1,palnList:[],planFieldList:[],createActionInfo:{}}},computed:{},watch:{id:function(t){this.list=[],this.palnList=[],this.getList(),this.getPlanList()}},mounted:function(){this.planFieldList=[{prop:"num",width:"200",label:"期数"},{prop:"customer_id",width:"200",label:"客户名称"},{prop:"contract_id",width:"200",label:"合同编号"},{prop:"money",width:"200",label:"计划回款金额"},{prop:"return_date",width:"200",label:"计划回款日期"},{prop:"return_type",width:"200",label:"计划回款方式"},{prop:"remind",width:"200",label:"提前几日提醒"},{prop:"remark",width:"200",label:"备注"}],this.getPlanList(),this.fieldList=[{prop:"number",width:"200",label:"回款编号"},{prop:"contract_id",width:"200",label:"合同名称"},{prop:"contract_money",width:"200",label:"合同金额"},{prop:"money",width:"200",label:"回款金额"},{prop:"plan_id",width:"200",label:"期数"},{prop:"owner_user_id",width:"200",label:"负责人"},{prop:"check_status",width:"200",label:"状态"},{prop:"return_time",width:"200",label:"回款日期"}],this.getList()},methods:{getPlanList:function(){var t=this;this.loading=!0,Object(n.e)(this.getParams()).then(function(e){t.loading=!1,t.palnList=e.data.list}).catch(function(){t.loading=!1})},getList:function(){var t=this;this.loading=!0,Object(n.c)(this.getParams()).then(function(e){t.loading=!1,t.list=e.data.list}).catch(function(){t.loading=!1})},getParams:function(){return"customer"===this.crmType?{customer_id:this.id,pageType:"all"}:"contract"===this.crmType?{contract_id:this.id,pageType:"all"}:{}},handleRowClick:function(t,e,i){this.showFullId=t.receivables_id,this.showFullCrmType="receivables",this.showFullDetail=!0},cellStyle:function(t){t.row,t.column,t.rowIndex;return 1==t.columnIndex?{color:"#3E84E9"}:{textAlign:"center"}},createClick:function(t){this.createActionInfo={type:"relative",crmType:this.crmType,data:{}},"money"==t?("contract"===this.crmType?(this.createActionInfo.data.customer=this.detail.customer_id_info,this.createActionInfo.data.contract=this.detail):"customer"===this.crmType&&(this.createActionInfo.data.customer=this.detail),this.createCrmType="receivables",this.isCreate=!0):"plan"==t&&("contract"===this.crmType?(this.createActionInfo.data.customer=this.detail.customer_id_info,this.createActionInfo.data.contract=this.detail):"customer"===this.crmType&&(this.createActionInfo.data.customer=this.detail),this.createCrmType="receivables_plan",this.isCreate=!0)},saveSuccess:function(){"receivables"==this.createCrmType?this.getList():this.getPlanList()},handleFile:function(t,e){var i=this;"edit"==t?(this.createActionInfo={type:"update",id:e.row.plan_id},this.createCrmType="receivables_plan",this.isCreate=!0):"delete"==t&&this.$confirm("您确定要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.d)({id:e.row.plan_id}).then(function(t){i.palnList.splice(e.$index,1),i.$message.success(t.data)}).catch(function(){})}).catch(function(){i.$message({type:"info",message:"已取消操作"})})},fieldFormatter:function(t,e){return"contract_id"===e.property?t.contract_id_info.name:"customer_id"===e.property?t.customer_id_info.name:"create_time"===e.property?Object(o.m)(t.customer_id_info.create_time):"owner_user_id"===e.property?t.owner_user_id_info.realname:"plan_id"===e.property?t.plan_id_info:"check_status"===e.property?this.getStatusName(t.check_status):t[e.property]},getStatusName:function(t){return t>5?"":["待审核","审核中","审核通过","已拒绝","已撤回","未提交"][t]},headerRowStyle:function(t){t.row,t.column,t.rowIndex,t.columnIndex;return{textAlign:"center"}}}},c=(i("csXp"),i("KHd+")),r=Object(c.a)(l,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"rc-cont"},[t.isSeas?t._e():i("flexbox",{staticClass:"rc-head",attrs:{direction:"row-reverse"}},[i("el-button",{staticClass:"rc-head-item",attrs:{type:"primary"},nativeOn:{click:function(e){t.createClick("plan")}}},[t._v("新建回款计划")])],1),t._v(" "),i("el-table",{staticStyle:{width:"100%",border:"1px solid #E6E6E6"},attrs:{data:t.palnList,height:t.tableHeight,"header-cell-style":t.headerRowStyle,"cell-style":t.cellStyle,stripe:""}},[t._l(t.planFieldList,function(e,a){return i("el-table-column",{key:a,attrs:{prop:e.prop,formatter:t.fieldFormatter,label:e.label,"show-overflow-tooltip":""}})}),t._v(" "),i("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("flexbox",{attrs:{justify:"center"}},[i("el-button",{attrs:{type:"text"},nativeOn:{click:function(i){t.handleFile("edit",e)}}},[t._v("编辑")]),t._v(" "),i("el-button",{attrs:{type:"text"},nativeOn:{click:function(i){t.handleFile("delete",e)}}},[t._v("删除")])],1)]}}])})],2),t._v(" "),i("flexbox",{staticClass:"rc-head",staticStyle:{"margin-top":"15px"},attrs:{direction:"row-reverse"}},[t.isSeas?t._e():i("el-button",{staticClass:"rc-head-item",attrs:{type:"primary"},nativeOn:{click:function(e){t.createClick("money")}}},[t._v("新建回款")])],1),t._v(" "),i("el-table",{staticStyle:{width:"100%",border:"1px solid #E6E6E6"},attrs:{data:t.list,height:t.tableHeight,"header-cell-style":t.headerRowStyle,"cell-style":t.cellStyle,stripe:""},on:{"row-click":t.handleRowClick}},t._l(t.fieldList,function(e,a){return i("el-table-column",{key:a,attrs:{prop:e.prop,formatter:t.fieldFormatter,label:e.label,"show-overflow-tooltip":""}})})),t._v(" "),i("c-r-m-full-screen-detail",{attrs:{visible:t.showFullDetail,"crm-type":t.showFullCrmType,id:t.showFullId},on:{"update:visible":function(e){t.showFullDetail=e}}}),t._v(" "),t.isCreate?i("c-r-m-create-view",{attrs:{"crm-type":t.createCrmType,action:t.createActionInfo},on:{"save-success":t.saveSuccess,"hiden-view":function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"408d314c",null);r.options.__file="RelativeReturnMoney.vue";e.a=r.exports},"/U9q":function(t,e,i){"use strict";var a=i("mX3o"),s=i("EgJF"),n=i("qbf4"),o=i("mkuN"),l={name:"RelativeContacts",components:{CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-edbf"),i.e("chunk-6861"),i.e("chunk-f93a")]).then(i.bind(null,"uMjE"))},CRMCreateView:s.default,CrmRelative:o.a},mixins:[a.a],props:{id:[String,Number],crmType:{type:String,default:""},isSeas:{type:Boolean,default:!1},detail:{type:Object,default:function(){return{}}}},data:function(){return{nopermission:!1,list:[],fieldList:[],tableHeight:"400px",showFullDetail:!1,isCreate:!1,contactsId:"",createActionInfo:{type:"relative",crmType:this.crmType,data:{}},showRelativeView:!1,selectionList:[]}},computed:{customer_id:function(){return this.detail.customer_id},canRelation:function(){return"business"==this.crmType}},watch:{id:function(t){this.list=[],this.getDetail()}},mounted:function(){this.getDetail()},activated:function(){},deactivated:function(){},methods:{checkRelativeInfos:function(t){var e=this;if(t.data.length>0){var i={is_relation:1};i[this.crmType+"_id"]=this.id,i.contacts_id=t.data.map(function(t){return t.contacts_id}),Object(n.g)(i).then(function(t){e.getDetail(),e.$message.success(t.data)}).catch(function(){})}},unRelevanceHandleClick:function(){var t=this;0==this.selectionList.length?this.$message.error("请先勾选数据"):this.$confirm("确认取消关联?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e={is_relation:0};e[t.crmType+"_id"]=t.id,e.contacts_id=t.selectionList.map(function(t){return t.contacts_id}),Object(n.g)(e).then(function(e){t.getDetail(),t.$message.success(e.data)}).catch(function(){})}).catch(function(){t.$message.info("已取消操作")})},getFieldList:function(){this.fieldList.push({prop:"name",width:"200",label:"姓名"}),this.fieldList.push({prop:"mobile",width:"200",label:"手机"}),this.fieldList.push({prop:"post",width:"200",label:"职务"})},getDetail:function(){var t=this;this.loading=!0;var e={pageType:"all"};e[this.crmType+"_id"]=this.id,Object(n.e)(e).then(function(e){0==t.fieldList.length&&t.getFieldList(),t.nopermission=!1,t.loading=!1,t.list=e.data.list}).catch(function(e){102==e.code&&(t.nopermission=!0),t.loading=!1})},handleRowClick:function(t,e,i){this.contactsId=t.contacts_id,this.showFullDetail=!0},headerRowStyle:function(t){t.row,t.column,t.rowIndex,t.columnIndex;return{textAlign:"center"}},cellStyle:function(t){t.row,t.column,t.rowIndex,t.columnIndex;return{textAlign:"center"}},createClick:function(){"customer"==this.crmType?this.createActionInfo.data.customer=this.detail:"business"==this.crmType&&(this.createActionInfo.data.customer=this.detail.customer_id_info),this.isCreate=!0},createSaveSuccess:function(){this.canRelation?this.$refs.crmrelative.refreshList():this.getDetail()}}},c=(i("ixqQ"),i("KHd+")),r=Object(c.a)(l,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"empty",rawName:"v-empty",value:t.nopermission,expression:"nopermission"}],staticClass:"rc-cont",attrs:{"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"}},[t.isSeas?t._e():i("flexbox",{staticClass:"rc-head",attrs:{direction:"row-reverse"}},[i("el-button",{staticClass:"rc-head-item",attrs:{type:"primary"},nativeOn:{click:function(e){return t.createClick(e)}}},[t._v("新建联系人")]),t._v(" "),t.canRelation?i("el-button",{staticClass:"rc-head-item",attrs:{type:"primary"},nativeOn:{click:function(e){return t.unRelevanceHandleClick(e)}}},[t._v("解除关联")]):t._e(),t._v(" "),t.canRelation?i("el-popover",{staticStyle:{"margin-right":"20px"},attrs:{placement:"bottom",width:"700","popper-class":"no-padding-popover",trigger:"click"},model:{value:t.showRelativeView,callback:function(e){t.showRelativeView=e},expression:"showRelativeView"}},[i("crm-relative",{ref:"crmrelative",attrs:{show:t.showRelativeView,radio:!1,action:{type:"condition",data:{form_type:"customer",customer_id:t.customer_id}},"selected-data":{contacts:t.list},"crm-type":"contacts"},on:{close:function(e){t.showRelativeView=!1},changeCheckout:t.checkRelativeInfos},model:{value:t.showRelativeView,callback:function(e){t.showRelativeView=e},expression:"showRelativeView"}}),t._v(" "),i("el-button",{staticClass:"rc-head-item",staticStyle:{"margin-right":"0"},attrs:{slot:"reference",type:"primary"},nativeOn:{click:function(e){t.showRelativeView=!0}},slot:"reference"},[t._v("关联")])],1):t._e()],1),t._v(" "),i("el-table",{staticStyle:{width:"100%",border:"1px solid #E6E6E6"},attrs:{data:t.list,height:t.tableHeight,"header-cell-style":t.headerRowStyle,"cell-style":t.cellStyle,stripe:""},on:{"row-click":t.handleRowClick,"selection-change":function(e){t.selectionList=e}}},[t.canRelation&&t.fieldList.length>0?i("el-table-column",{attrs:{"show-overflow-tooltip":"",type:"selection",align:"center",width:"55"}}):t._e(),t._v(" "),t._l(t.fieldList,function(t,e){return i("el-table-column",{key:e,attrs:{prop:t.prop,label:t.label,"show-overflow-tooltip":""}})})],2),t._v(" "),i("c-r-m-full-screen-detail",{attrs:{visible:t.showFullDetail,id:t.contactsId,"crm-type":"contacts"},on:{"update:visible":function(e){t.showFullDetail=e}}}),t._v(" "),t.isCreate?i("c-r-m-create-view",{attrs:{action:t.createActionInfo,"crm-type":"contacts"},on:{"save-success":t.createSaveSuccess,"hiden-view":function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"eb29b296",null);r.options.__file="RelativeContacts.vue";e.a=r.exports},"/Z2C":function(t,e,i){"use strict";var a=i("9bSZ");i.n(a).a},"1RnH":function(t,e,i){"use strict";var a=i("QbLZ"),s=i.n(a),n=i("+9th"),o=i("mkuN"),l=i("Er7M"),c=i("7Qib"),r=i("L2JU"),d={components:{CrmRelative:o.a,RelatedBusinessCell:l.a},props:{marginLeft:{type:String,default:"20px"},allData:{type:Object,default:function(){return{contacts:[],customer:[],business:[],contract:[]}}},isTask:{type:Boolean,default:!1},taskID:Number,alterable:{type:Boolean,default:!0},alterableColor:{type:String,default:"#999"}},data:function(){return{showTypes:["customer","contacts","business","contract"],showPopover:!1,relevanceAll:{customer_ids:[],contract_ids:[],contacts_ids:[],business_ids:[]},relatedListData:{},showRelative:!1,showTaskRelative:!1}},computed:s()({},Object(r.b)(["crm"]),{showCRMPermission:function(){return this.crm}}),watch:{allData:function(){this.relatedListData=this.allData}},mounted:function(){this.relatedListData=this.allData},methods:{crmrelativeClose:function(){this.showPopover=!1},checkInfos:function(t){var e=this;this.showPopover=!1,this.relatedListData=t.data;var i=function(i){var a=t.data[i];e.relevanceAll[i+"_ids"]=a.map(function(t,e,a){return t[i+"_id"]})};for(var a in t.data)i(a);this.$emit("checkInfos",this.relevanceAll)},delRelevance:function(t,e,i){var a=this;this.$confirm("确认取消关联?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",customClass:"is-particulars"}).then(function(){Object(n.i)({task_id:a.taskID,type:{customer:1,contacts:2,business:3,contract:4}[t],id:i[t+"_id"]}).then(function(i){a.relatedListData[t].splice(e,1),a.relatedListData=Object(c.h)(a.relatedListData),a.$message.success("关联取消成功")}).catch(function(){})}).catch(function(){a.$message.info("已取消操作")})},checkRelatedDetail:function(t,e){e.key=e[t+"_id"],this.$emit("checkRelatedDetail",t,e)}}},u=(i("GsUu"),i("KHd+")),m=Object(u.a)(d,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"related-business",style:{"margin-left":t.marginLeft}},[!t.isTask&&t.alterable?a("el-popover",{attrs:{placement:"bottom",width:"800","popper-class":"no-padding-popover",trigger:"click"},model:{value:t.showPopover,callback:function(e){t.showPopover=e},expression:"showPopover"}},[t.showRelative?a("crm-relative",{ref:"crmrelative",attrs:{show:t.showPopover,radio:!1,"selected-data":t.relatedListData,"show-types":t.showTypes},on:{close:t.crmrelativeClose,changeCheckout:t.checkInfos}}):t._e(),t._v(" "),t.showCRMPermission?a("p",{staticClass:"add-file",attrs:{slot:"reference"},on:{click:function(e){t.showRelative=!0}},slot:"reference"},[a("img",{attrs:{src:i("AFlK"),alt:""}}),t._v("\n      关联业务\n    ")]):t._e()],1):t._e(),t._v(" "),t.alterable?t._e():a("p",{staticClass:"alterable-p",style:{color:t.alterableColor}},[t._v("关联业务")]),t._v(" "),t._l(t.relatedListData,function(e,i){return a("div",{key:i},t._l(e,function(e,s){return a("related-business-cell",{key:s,attrs:{data:e,"cell-index":s,type:i,"show-foot":t.isTask},on:{unbind:t.delRelevance,detail:function(a){t.checkRelatedDetail(i,e)}}})}))}),t._v(" "),t.isTask?a("el-popover",{attrs:{placement:"bottom",width:"800","popper-class":"no-padding-popover",trigger:"click"},model:{value:t.showPopover,callback:function(e){t.showPopover=e},expression:"showPopover"}},[t.showTaskRelative?a("crm-relative",{ref:"crmrelative",attrs:{radio:!1,show:t.showPopover,"selected-data":t.relatedListData,"show-types":t.showTypes},on:{close:t.crmrelativeClose,changeCheckout:t.checkInfos}}):t._e(),t._v(" "),t.showCRMPermission?a("p",{staticClass:"add-file",attrs:{slot:"reference"},on:{click:function(e){t.showTaskRelative=!0}},slot:"reference"},[a("img",{attrs:{src:i("AFlK"),alt:""}}),t._v("\n      关联业务\n    ")]):t._e()],1):t._e()],2)},[],!1,null,"8253b738",null);m.options.__file="relatedBusiness.vue";e.a=m.exports},"2P4K":function(t,e,i){"use strict";var a=i("zxr/");i.n(a).a},"3hkp":function(t,e,i){},"3yi6":function(t,e,i){"use strict";var a=i("7Qib"),s=i("KzkL"),n={name:"FollowRecordCell",components:{CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-66f9"),i.e("chunk-edbf"),i.e("chunk-6861"),i.e("chunk-24b7"),i.e("chunk-f93ad")]).then(i.bind(null,"uMjE"))}},props:{item:{type:Object,default:function(){return{}}},crmType:{type:String,default:""},index:[String,Number]},data:function(){return{showFullDetail:!1,relationID:"",relationCrmType:""}},computed:{},mounted:function(){},methods:{previewImg:function(t,e){this.$bus.emit("preview-image-bus",{index:e,data:t.map(function(t,e,i){return t.url=t.file_path,t})})},downloadFile:function(t){Object(a.a)({path:t.file_path,name:t.name})},handleCommand:function(t){var e=this;this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.j)({id:e.item.record_id}).then(function(i){e.$emit("on-handle",{type:t,data:{item:e.item,index:e.index}}),e.$message.success(i.data)}).catch(function(){})}).catch(function(){e.$message({type:"info",message:"已取消操作"})})},checkRelationDetail:function(t,e){this.relationID=e,this.relationCrmType=t,this.showFullDetail=!0}}},o=(i("+9np"),i("KHd+")),l=Object(o.a)(n,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"fl-c"},[a("flexbox",{staticClass:"fl-h"},[a("div",{directives:[{name:"photo",rawName:"v-photo",value:t.item.create_user_info,expression:"item.create_user_info"},{name:"lazy",rawName:"v-lazy:background-image",value:t.$options.filters.filterUserLazyImg(t.item.create_user_info.thumb_img),expression:"$options.filters.filterUserLazyImg(item.create_user_info.thumb_img)",arg:"background-image"}],key:t.item.create_user_info.thumb_img,staticClass:"div-photo fl-h-img"}),t._v(" "),a("div",{staticClass:"fl-h-b"},[a("div",{staticClass:"fl-h-name"},[t._v(t._s(t.item.create_user_info.realname))]),t._v(" "),a("div",{staticClass:"fl-h-time"},[t._v(t._s(t._f("filterTimestampToFormatTime")(t.item.create_time,"YYYY-MM-DD HH:mm")))])]),t._v(" "),a("flexbox",{staticClass:"fl-h-mark"},[a("img",{staticClass:"fl-h-mark-img",attrs:{src:i("N0PQ")}}),t._v(" "),a("div",{staticClass:"fl-h-mark-name"},[t._v("跟进记录")])]),t._v(" "),a("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[a("i",{staticClass:"el-icon-arrow-down el-icon-more",staticStyle:{color:"#CDCDCD","margin-left":"8px"}}),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"delete"}},[t._v("删除")])],1)],1)],1),t._v(" "),a("div",{staticClass:"fl-b"},[a("div",{staticClass:"fl-b-content"},[t._v(t._s(t.item.content))]),t._v(" "),t.item.dataInfo.imgList&&t.item.dataInfo.imgList.length>0?a("flexbox",{staticClass:"fl-b-images",attrs:{wrap:"wrap"}},t._l(t.item.dataInfo.imgList,function(e,i){return a("div",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:e.file_path_thumb,expression:"file.file_path_thumb",arg:"background-image"}],key:e.file_path_thumb,staticClass:"fl-b-img-item",on:{click:function(e){t.previewImg(t.item.dataInfo.imgList,i)}}})})):t._e(),t._v(" "),t.item.dataInfo.fileList&&t.item.dataInfo.fileList.length>0?a("div",{staticClass:"fl-b-files"},t._l(t.item.dataInfo.fileList,function(e,s){return a("flexbox",{key:s,staticClass:"cell"},[a("img",{staticClass:"cell-head",attrs:{src:i("6KEE")}}),t._v(" "),a("div",{staticClass:"cell-body"},[t._v(t._s(e.name)),a("span",{staticStyle:{color:"#ccc"}},[t._v("("+t._s(e.size)+")")])]),t._v(" "),a("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:function(i){t.downloadFile(e)}}},[t._v("下载")])],1)})):t._e(),t._v(" "),t.item.category||t.item.next_time?a("div",{staticClass:"follow"},[t.item.category?a("span",{staticClass:"follow-info"},[t._v(t._s(t.item.category))]):t._e(),t._v(" "),t.item.next_time?a("span",{staticClass:"follow-info"},[t._v(t._s(t._f("filterTimestampToFormatTime")(t.item.next_time,"YYYY-MM-DD HH:mm:ss")))]):t._e()]):t._e(),t._v(" "),t.item.dataInfo.contactsList&&t.item.dataInfo.contactsList.length>0?a("div",{staticClass:"fl-b-other"},[a("div",{staticClass:"fl-b-other-name"},[t._v("关联联系人")]),t._v(" "),a("div",t._l(t.item.dataInfo.contactsList,function(e,i){return a("flexbox",{key:i,staticClass:"cell",nativeOn:{click:function(i){t.checkRelationDetail("contacts",e.contacts_id)}}},[a("i",{staticClass:"wukong wukong-contacts cell-head crm-type",style:{opacity:0==i?1:0}}),t._v(" "),a("div",{staticClass:"cell-body",staticStyle:{color:"#6394E5",cursor:"pointer"}},[t._v(t._s(e.name))])])}))]):t._e(),t._v(" "),t.item.dataInfo.businessList&&t.item.dataInfo.businessList.length>0?a("div",{staticClass:"fl-b-other"},[a("div",{staticClass:"fl-b-other-name"},[t._v("关联商机")]),t._v(" "),a("div",t._l(t.item.dataInfo.businessList,function(e,i){return a("flexbox",{key:i,staticClass:"cell",nativeOn:{click:function(i){t.checkRelationDetail("business",e.business_id)}}},[a("i",{staticClass:"wukong wukong-business cell-head crm-type",style:{opacity:0==i?1:0}}),t._v(" "),a("div",{staticClass:"cell-body",staticStyle:{color:"#6394E5",cursor:"pointer"}},[t._v(t._s(e.name))])])}))]):t._e(),t._v(" "),t._t("default")],2),t._v(" "),a("c-r-m-full-screen-detail",{attrs:{visible:t.showFullDetail,"crm-type":t.relationCrmType,id:t.relationID},on:{"update:visible":function(e){t.showFullDetail=e}}})],1)},[],!1,null,"e92cd6c6",null);l.options.__file="FollowRecordCell.vue";e.a=l.exports},"4eao":function(t,e,i){"use strict";var a=i("YNUn");i.n(a).a},"4mnS":function(t,e,i){"use strict";var a=i("YJsf");i.n(a).a},"4tZP":function(t,e,i){"use strict";var a=i("ExMk"),s=i("Fpl1"),n=i("7z+D"),o=i("JXju"),l=i("QhmF"),c=i("+zsY"),r={components:{ExamineCell:s.a,ExamineDetail:n.a,CRMAllDetail:o.a,ExamineHandle:l.default,ExamineCreateView:c.a},props:{list:Array},data:function(){return{rowID:"",showDview:!1,relatedID:"",relatedCRMType:"",showRelatedDetail:!1,showExamineHandle:!1,isCreate:!1,createAction:{type:"update"},createInfo:{}}},watch:{list:function(){this.showRelatedDetail=!1,this.showDview=!1}},mounted:function(){},methods:{examineCellHandle:function(t){var e=this;if("edit"==t.type){var i=t.data.item;i.title=i.category_name,this.createInfo=i,this.createAction={type:"update",id:i.examine_id,data:i},this.isCreate=!0}else"delete"==t.type?this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.c)({id:t.data.item.examine_id}).then(function(t){e.handleResult("delete"),e.$message({type:"success",message:"删除成功!"})})}).catch(function(){e.$message({type:"info",message:"已取消删除"})}):"withdraw"==t.type?(this.rowID=t.data.item.examine_id,this.showExamineHandle=!0):"view"==t.type?(this.showRelatedDetail=!1,this.rowID=t.data.item.examine_id,this.showDview=!0):"related-detail"==t.type&&(this.showDview=!1,this.relatedID=t.data.item[t.data.type+"_id"],this.relatedCRMType=t.data.type,this.showRelatedDetail=!0)},handleResult:function(t){this.$emit("handle",t)}}},d=(i("ukN3"),i("KHd+")),u=Object(d.a)(r,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t._l(t.list,function(e,a){return i("examine-cell",{key:a,attrs:{data:e},on:{"on-handle":t.examineCellHandle}})}),t._v(" "),t._t("load"),t._v(" "),t.showDview?i("examine-detail",{staticClass:"d-view",attrs:{id:t.rowID},on:{"on-examine-handle":function(e){t.handleResult("examine-detail")},"hide-view":function(e){t.showDview=!1}}}):t._e(),t._v(" "),i("c-r-m-all-detail",{attrs:{visible:t.showRelatedDetail,"crm-type":t.relatedCRMType,"listener-ids":["workbench-main-container"],"no-listener-ids":["examine-list-box"],id:t.relatedID},on:{"update:visible":function(e){t.showRelatedDetail=e}}}),t._v(" "),i("examine-handle",{attrs:{show:t.showExamineHandle,id:t.rowID,"examine-type":"oa_examine",status:"2"},on:{close:function(e){t.showExamineHandle=!1},save:function(e){t.handleResult("examine-handle")}}}),t._v(" "),t.isCreate?i("examine-create-view",{attrs:{category_id:t.createInfo.category_id,category_title:t.createInfo.title,action:t.createAction},on:{"save-success":function(e){t.handleResult("edit")},"hiden-view":function(e){t.isCreate=!1}}}):t._e()],2)},[],!1,null,"f3831956",null);u.options.__file="examineSection.vue";e.a=u.exports},"5j45":function(t,e,i){"use strict";var a=i("mX3o"),s=i("EgJF"),n=i("UcQx"),o=i("qbf4"),l=i("mkuN"),c={name:"RelativeBusiness",components:{CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-edbf"),i.e("chunk-6861"),i.e("chunk-f93a")]).then(i.bind(null,"uMjE"))},CRMCreateView:s.default,CrmRelative:l.a},mixins:[a.a],props:{id:[String,Number],crmType:{type:String,default:""},isSeas:{type:Boolean,default:!1},detail:{type:Object,default:function(){return{}}}},data:function(){return{nopermission:!1,list:[],fieldList:[],tableHeight:"400px",showFullDetail:!1,isCreate:!1,businessId:"",formatterRules:{},createActionInfo:{type:"relative",crmType:this.crmType,data:{}},showRelativeView:!1,selectionList:[]}},computed:{customer_id:function(){return this.detail.customer_id},canRelation:function(){return"contacts"==this.crmType}},watch:{id:function(t){this.list=[],this.getDetail()}},mounted:function(){this.getDetail()},activated:function(){},deactivated:function(){},methods:{checkRelativeInfos:function(t){var e=this;if(t.data.length>0){var i={is_relation:1};i[this.crmType+"_id"]=this.id,i.business_id=t.data.map(function(t){return t.business_id}),Object(o.g)(i).then(function(t){e.getDetail(),e.$message.success(t.data)}).catch(function(){})}},unRelevanceHandleClick:function(){var t=this;0==this.selectionList.length?this.$message.error("请先勾选数据"):this.$confirm("确认取消关联?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e={is_relation:0};e[t.crmType+"_id"]=t.id,e.business_id=t.selectionList.map(function(t){return t.business_id}),Object(o.g)(e).then(function(e){t.getDetail(),t.$message.success(e.data)}).catch(function(){})}).catch(function(){t.$message.info("已取消操作")})},getFieldList:function(){function t(t){return t||""}this.fieldList.push({prop:"name",width:"200",label:"商机名称"}),this.fieldList.push({prop:"money",width:"200",label:"商机金额"}),this.fieldList.push({prop:"customer_id",width:"200",label:"客户名称"}),this.fieldList.push({prop:"type_id",width:"200",label:"商机状态组"}),this.fieldList.push({prop:"status_id",width:"200",label:"状态"}),this.formatterRules.customer_id={type:"crm",formatter:function(t){return t?t.name:""}},this.formatterRules.type_id={type:"crm",formatter:t},this.formatterRules.status_id={type:"crm",formatter:t}},getDetail:function(){var t=this;this.loading=!0;var e={pageType:"all"};e[this.crmType+"_id"]=this.id,Object(n.d)(e).then(function(e){0==t.fieldList.length&&t.getFieldList(),t.nopermission=!1,t.loading=!1,t.list=e.data.list}).catch(function(e){102==e.code&&(t.nopermission=!0),t.loading=!1})},fieldFormatter:function(t,e){var i=this.formatterRules[e.property];return i?"crm"===i.type?e.property?i.formatter(t[e.property+"_info"]):"":i.formatter(t[e.property]):t[e.property]},handleRowClick:function(t,e,i){this.businessId=t.business_id,this.showFullDetail=!0},headerRowStyle:function(t){t.row,t.column,t.rowIndex,t.columnIndex;return{textAlign:"center"}},cellStyle:function(t){t.row,t.column,t.rowIndex,t.columnIndex;return{textAlign:"center"}},createClick:function(){"contacts"==this.crmType?this.createActionInfo.data.customer=this.detail.customer_id_info:"customer"==this.crmType&&(this.createActionInfo.data.customer=this.detail),this.isCreate=!0},createSaveSuccess:function(){this.canRelation?this.$refs.crmrelative.refreshList():this.getDetail()}}},r=(i("4eao"),i("KHd+")),d=Object(r.a)(c,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"empty",rawName:"v-empty",value:t.nopermission,expression:"nopermission"}],staticClass:"rc-cont",attrs:{"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"}},[t.isSeas?t._e():i("flexbox",{staticClass:"rc-head",attrs:{direction:"row-reverse"}},[i("el-button",{staticClass:"rc-head-item",attrs:{type:"primary"},nativeOn:{click:function(e){return t.createClick(e)}}},[t._v("新建商机")]),t._v(" "),t.canRelation?i("el-button",{staticClass:"rc-head-item",attrs:{type:"primary"},nativeOn:{click:function(e){return t.unRelevanceHandleClick(e)}}},[t._v("解除关联")]):t._e(),t._v(" "),t.canRelation?i("el-popover",{staticStyle:{"margin-right":"20px"},attrs:{placement:"bottom",width:"700","popper-class":"no-padding-popover",trigger:"click"},model:{value:t.showRelativeView,callback:function(e){t.showRelativeView=e},expression:"showRelativeView"}},[i("crm-relative",{ref:"crmrelative",attrs:{show:t.showRelativeView,radio:!1,action:{type:"condition",data:{form_type:"customer",customer_id:t.customer_id}},"selected-data":{business:t.list},"crm-type":"business"},on:{close:function(e){t.showRelativeView=!1},changeCheckout:t.checkRelativeInfos},model:{value:t.showRelativeView,callback:function(e){t.showRelativeView=e},expression:"showRelativeView"}}),t._v(" "),i("el-button",{staticClass:"rc-head-item",staticStyle:{"margin-right":"0"},attrs:{slot:"reference",type:"primary"},nativeOn:{click:function(e){t.showRelativeView=!0}},slot:"reference"},[t._v("关联")])],1):t._e()],1),t._v(" "),i("el-table",{staticStyle:{width:"100%",border:"1px solid #E6E6E6"},attrs:{data:t.list,height:t.tableHeight,"header-cell-style":t.headerRowStyle,"cell-style":t.cellStyle,stripe:""},on:{"row-click":t.handleRowClick,"selection-change":function(e){t.selectionList=e}}},[t.canRelation&&t.fieldList.length>0?i("el-table-column",{attrs:{"show-overflow-tooltip":"",type:"selection",align:"center",width:"55"}}):t._e(),t._v(" "),t._l(t.fieldList,function(e,a){return i("el-table-column",{key:a,attrs:{prop:e.prop,formatter:t.fieldFormatter,label:e.label,"show-overflow-tooltip":""}})})],2),t._v(" "),i("c-r-m-full-screen-detail",{attrs:{visible:t.showFullDetail,id:t.businessId,"crm-type":"business"},on:{"update:visible":function(e){t.showFullDetail=e}}}),t._v(" "),t.isCreate?i("c-r-m-create-view",{attrs:{action:t.createActionInfo,"crm-type":"business"},on:{"save-success":t.createSaveSuccess,"hiden-view":function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"100cfc20",null);d.options.__file="RelativeBusiness.vue";e.a=d.exports},"6ENb":function(t,e,i){"use strict";var a=i("JHu1");i.n(a).a},"7z+D":function(t,e,i){"use strict";var a=i("ExMk"),s=i("KTTK"),n=i("Ew9n"),o=i("EP+0"),l=i("3biH"),c=i("Er7M"),r=i("O1Uw"),d=i("7Qib"),u={name:"ExamineDetail",components:{SlideView:n.a,CreateSections:o.a,ExamineInfo:l.a,RelatedBusinessCell:c.a,CRMFullScreenDetail:function(){return i.e("chunk-14f2").then(i.bind(null,"uMjE"))},FileCell:r.a},props:{id:[String,Number],noListenerClass:{type:Array,default:function(){return["list-box"]}}},data:function(){return{loading:!1,category_id:"",detail:{},list:[],category_name:"",fileList:[],imgList:[],travelList:[],travelField:[{prop:"vehicle",label:"交通工具"},{prop:"trip",label:"单程往返"},{prop:"start_address",label:"出发城市"},{prop:"end_address",label:"目的城市"},{prop:"start_time",label:"开始时间"},{prop:"end_time",label:"结束时间"},{prop:"duration",label:"时长(天)"},{prop:"description",label:"备注"}],expensesField:[{prop:"start_address",label:"出发城市"},{prop:"end_address",label:"目的城市"},{prop:"start_time",label:"开始时间"},{prop:"end_time",label:"结束时间"},{prop:"traffic",label:"交通费(元)"},{prop:"stay",label:"住宿费(元)"},{prop:"diet",label:"餐饮费(元)"},{prop:"other",label:"其他费用(元)"},{prop:"description",label:"费用明细描述"}],relatedID:"",relatedCRMType:"",showRelatedDetail:!1}},computed:{relatedListData:function(){return{contacts:this.detail.contactsList||[],customer:this.detail.customerList||[],business:this.detail.businessList||[],contract:this.detail.contractList||[]}}},watch:{id:function(t){this.getDetial()}},mounted:function(){this.getDetial()},methods:{getBaseInfo:function(){var t=this;this.loading=!0,Object(s.j)({types:"oa_examine",module:"oa",controller:"examine",action:"read",action_id:this.id,types_id:this.category_id}).then(function(e){var i=t;t.list=e.data.map(function(t,e){return i.handleShowInfo(t)}),t.loading=!1}).catch(function(){t.loading=!1})},handleShowInfo:function(t){return"date"===t.form_type&&"0000-00-00"==t.value?t.value="":"datetime"===t.form_type&&(0==t.value?t.value="":t.value=t.value?Object(d.m)(t.value,"YYYY-MM-DD HH:mm:ss"):""),t},getDetial:function(){var t=this;this.loading=!0,Object(a.e)({id:this.id}).then(function(e){t.loading=!1,t.category_id=e.data.category_id,t.getBaseInfo(),t.detail=e.data,t.category_name=t.detail.category_name,t.fileList=t.detail.fileList,t.imgList=t.detail.imgList,t.travelList=t.detail.travelList}).catch(function(){t.loading=!1})},fieldFormatter:function(t,e){return 3!=this.category_id||"start_time"!=e.property&&"end_time"!=e.property?5!=this.category_id||"start_time"!=e.property&&"end_time"!=e.property?t[e.property]:t[e.property]?Object(d.m)(t[e.property],"YYYY-MM-DD"):"":t[e.property]?Object(d.m)(t[e.property],"YYYY-MM-DD HH:mm:ss"):""},hideView:function(){this.$emit("hide-view")},checkRelatedDetail:function(t,e){this.relatedID=e[t+"_id"],this.relatedCRMType=t,this.showRelatedDetail=!0},handleFile:function(t,e,i){if("preview"===t){if(e&&e.length>0){var a=e.map(function(t){return t.url=t.file_path,t});this.$bus.emit("preview-image-bus",{index:i,data:a})}}else"download"===t&&Object(d.a)({path:e.file_path,name:e.name})},imgZoom:function(t,e){this.$bus.emit("preview-image-bus",{index:e,data:t.map(function(t,e,i){return{url:t.file_path,name:t.name}})})},downloadFile:function(t){Object(d.a)({path:t.file_path,name:t.name})},examineHandle:function(t){this.$store.dispatch("GetOAMessageNum","examine"),this.$emit("on-examine-handle",t)}}},m=(i("qQF9"),i("KHd+")),h=Object(m.a)(u,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("slide-view",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"d-view",attrs:{"listener-ids":["workbench-main-container"],"no-listener-class":t.noListenerClass,"body-style":{padding:"10px 30px",height:"100%"}},on:{"side-close":t.hideView}},[a("flexbox",{staticStyle:{height:"100%"},attrs:{orient:"vertical"}},[a("flexbox",{staticClass:"detail-header"},[a("div",{staticClass:"header-name"},[t._v(t._s(t.category_name))]),t._v(" "),a("img",{staticClass:"header-close",attrs:{src:i("cjwK")},on:{click:t.hideView}})]),t._v(" "),a("div",{staticClass:"detail-body"},[a("flexbox",{attrs:{gutter:0,align:"stretch",wrap:"wrap"}},t._l(t.list,function(e,s){return"examine_cause"!==e.form_type&&"business_cause"!==e.form_type?a("flexbox-item",{key:s,staticClass:"b-cell",attrs:{span:.5}},["user"===e.form_type?a("flexbox",{staticClass:"b-cell-b",attrs:{align:"stretch"}},[a("div",{staticClass:"b-cell-name"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"b-cell-value"},[a("flexbox",{staticStyle:{padding:"0px 10px 10px 0px"},attrs:{gutter:0,wrap:"wrap"}},t._l(e.value,function(e,i){return a("div",{key:i},[t._v("\n                  "+t._s(e.realname)+"  \n                ")])}))],1)]):"structure"===e.form_type?a("flexbox",{staticClass:"b-cell-b",attrs:{align:"stretch"}},[a("div",{staticClass:"b-cell-name"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"b-cell-value"},[a("flexbox",{staticStyle:{padding:"0px 10px 10px 0px"},attrs:{gutter:0,wrap:"wrap"}},t._l(e.value,function(e,i){return a("div",{key:i},[t._v("\n                  "+t._s(e.name)+"  \n                ")])}))],1)]):"checkbox"===e.form_type?a("flexbox",{staticClass:"b-cell-b",attrs:{align:"stretch"}},[a("div",{staticClass:"b-cell-name"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"b-cell-value"},[a("flexbox",{staticStyle:{padding:"0px 10px 10px 0px"},attrs:{gutter:0,wrap:"wrap"}},t._l(e.value,function(e,i){return a("div",{key:i},[t._v("\n                  "+t._s(e)+"  \n                ")])}))],1)]):"file"===e.form_type?a("flexbox",{staticClass:"b-cell-b",attrs:{align:"stretch"}},[a("div",{staticClass:"b-cell-name"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"b-cell-value"},t._l(e.value,function(s,n){return a("flexbox",{key:n,staticClass:"f-item"},[a("img",{staticClass:"f-img",attrs:{src:i("6KEE")}}),t._v(" "),a("div",{staticClass:"f-name"},[t._v(t._s(s.name.length>15?s.name.substring(0,15)+"...":s.name+"("+s.size+")"))]),t._v(" "),a("el-button",{attrs:{type:"text"},nativeOn:{click:function(i){t.handleFile("preview",e.value,n)}}},[t._v("预览")]),t._v(" "),a("el-button",{attrs:{type:"text"},nativeOn:{click:function(e){t.handleFile("download",s,n)}}},[t._v("下载")])],1)}))]):a("flexbox",{staticClass:"b-cell-b",attrs:{align:"stretch"}},[a("div",{staticClass:"b-cell-name"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"b-cell-value"},[t._v(t._s(e.value))])])],1):t._e()})),t._v(" "),t.fileList.length>0||t.imgList.length>0?a("div",{staticClass:"accessory"},[a("div",{staticClass:"upload-img-box"},t._l(t.imgList,function(e,i){return a("div",{key:i,staticClass:"img-list",on:{click:function(e){t.imgZoom(t.imgList,i)}}},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.file_path_thumb,expression:"imgItem.file_path_thumb"}],key:e.file_path_thumb})])})),t._v(" "),a("div",{staticClass:"accessory-box"},t._l(t.fileList,function(t,e){return a("file-cell",{key:e,attrs:{data:t,"cell-index":e}})}))]):t._e(),t._v(" "),t.category_id&&3==t.category_id&&t.travelList&&t.travelList.length>0?a("create-sections",{staticClass:"create-sections",attrs:{title:"行程"}},[a("el-table",{staticStyle:{"font-size":"13px"},attrs:{data:t.travelList,align:"center","header-align":"center",stripe:""}},t._l(t.travelField,function(e,i){return a("el-table-column",{key:i,attrs:{prop:e.prop,formatter:t.fieldFormatter,label:e.label,"show-overflow-tooltip":""},scopedSlots:t._u([{key:"header",fn:function(e){return[a("div",{staticClass:"table-head-name"},[t._v(t._s(e.column.label))])]}}])})}))],1):t._e(),t._v(" "),t.category_id&&5==t.category_id&&t.travelList&&t.travelList.length>0?a("create-sections",{staticClass:"create-sections",attrs:{title:"报销"}},[a("el-table",{staticStyle:{"font-size":"13px"},attrs:{data:t.travelList,align:"center","header-align":"center",stripe:""}},[t._l(t.expensesField,function(e,i){return a("el-table-column",{key:i,attrs:{prop:e.prop,formatter:t.fieldFormatter,label:e.label,"show-overflow-tooltip":""},scopedSlots:t._u([{key:"header",fn:function(e){return[a("div",{staticClass:"table-head-name"},[t._v(t._s(e.column.label))])]}}])})}),t._v(" "),a("el-table-column",{attrs:{label:"发票",width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("flexbox",{attrs:{justify:"center"}},[a("el-button",{attrs:{type:"text"},nativeOn:{click:function(i){t.handleFile("preview",e.row.imgList,0)}}},[t._v(t._s(e.row.imgList.length)+"张")])],1)]}}])})],2)],1):t._e(),t._v(" "),t.relatedListData.contacts.length>0||t.relatedListData.customer.length>0||t.relatedListData.business.length>0||t.relatedListData.contract.length>0?a("create-sections",{staticClass:"create-sections",attrs:{title:"关联业务"}},[a("div",{staticClass:"related-business create-sections-content"},t._l(t.relatedListData,function(e,i){return a("div",{key:i},t._l(e,function(e,s){return a("related-business-cell",{key:s,attrs:{data:e,"cell-index":s,type:i,"show-foot":!1},nativeOn:{click:function(a){t.checkRelatedDetail(i,e)}}})}))}))]):t._e(),t._v(" "),a("create-sections",{staticClass:"create-sections",attrs:{title:"审核信息"}},[a("examine-info",{staticClass:"create-sections-content",attrs:{id:t.id,flow_id:t.detail.flow_id,"examine-type":"oa_examine"},on:{"on-handle":t.examineHandle}})],1)],1)],1),t._v(" "),a("c-r-m-full-screen-detail",{attrs:{visible:t.showRelatedDetail,"crm-type":t.relatedCRMType,id:t.relatedID},on:{"update:visible":function(e){t.showRelatedDetail=e}}})],1)},[],!1,null,"c113f00a",null);h.options.__file="examineDetail.vue";e.a=h.exports},"8KPp":function(t,e,i){"use strict";var a=i("FyfS"),s=i.n(a),n=i("Qldq"),o=i("Iae0"),l=i("KzkL"),c={name:"JournalLog",components:{JournalCell:o.a,CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-edbf"),i.e("chunk-6861"),i.e("chunk-f93a")]).then(i.bind(null,"uMjE"))},NewDialog:function(){return i.e("chunk-3823").then(i.bind(null,"kFvY"))}},props:{id:[String,Number],crmType:{type:String,default:""}},data:function(){return{loading:!1,loadMoreLoading:!0,isPost:!1,page:1,list:[],rowID:"",showFullDetail:!1,detailCRMType:"",showNewDialog:!1,formData:{},dialogTitle:"",imgFileList:[],accessoryFileList:[],newLoading:!1}},computed:{},watch:{id:function(t){this.refreshList()}},mounted:function(){var t=this,e=document.getElementById("follow-log-content");e.onscroll=function(){var i=e.scrollTop+e.clientHeight-e.scrollHeight;Math.abs(i)<10&&1==t.loadMoreLoading&&(t.isPost?t.loadMoreLoading=!1:(t.isPost=!0,t.page++,t.getList()))},this.getList()},activated:function(){},deactivated:function(){},methods:{getList:function(){var t=this;this.loading=!0,Object(l.k)({page:this.page,limit:10,types:"crm_"+this.crmType,types_id:this.id,by:"log"}).then(function(e){var i=!0,a=!1,n=void 0;try{for(var o,l=s()(e.data.list);!(i=(o=l.next()).done);i=!0){var c=o.value;c.dataInfo.allData={},c.dataInfo.allData.business=c.dataInfo.businessList,c.dataInfo.allData.contacts=c.dataInfo.contactsList,c.dataInfo.allData.contract=c.dataInfo.contractList,c.dataInfo.allData.customer=c.dataInfo.customerList,0!=c.dataInfo.businessList.length||0!=c.dataInfo.contactsList.length||0!=c.dataInfo.contractList.length||0!=c.dataInfo.customerList.length?c.dataInfo.allDataShow=!0:c.dataInfo.allDataShow=!1}}catch(t){a=!0,n=t}finally{try{!i&&l.return&&l.return()}finally{if(a)throw n}}t.list=t.list.concat(e.data.list),e.data.list.length<10?t.loadMoreLoading=!1:t.loadMoreLoading=!0,t.loading=!1,t.isPost=!1}).catch(function(){t.isPost=!1,t.loading=!1})},refreshList:function(){this.page=1,this.list=[],this.getList()},jourecallCellHandle:function(t){var e=this;if("edit"==t.type){var i=t.data.item;if(this.showNewDialog=!0,this.dialogTitle="编辑日志",this.formData=i,this.imgFileList=[],i.imgList){var a=!0,o=!1,l=void 0;try{for(var c,r=s()(i.imgList);!(a=(c=r.next()).done);a=!0){var d=c.value;d.url=d.file_path_thumb,this.imgFileList.push(d)}}catch(t){o=!0,l=t}finally{try{!a&&r.return&&r.return()}finally{if(o)throw l}}}if(this.accessoryFileList=[],i.fileList){var u=!0,m=!1,h=void 0;try{for(var p,f=s()(i.fileList);!(u=(p=f.next()).done);u=!0){var v=p.value;v.url=v.file_path_thumb,this.accessoryFileList.push(v)}}catch(t){m=!0,h=t}finally{try{!u&&f.return&&f.return()}finally{if(m)throw h}}}this.formData.depData=i.sendStructList?i.sendStructList:[],this.formData.sentWhoList=i.sendUserList?i.sendUserList:[]}else"delete"==t.type?this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.d)({log_id:t.data.item.log_id}).then(function(i){for(var a in e.$message({type:"success",message:"删除成功!"}),e.list)if(e.list[a].log_id==t.data.item.log_id){e.list.splice(a,1);break}})}).catch(function(){e.$message({type:"info",message:"已取消删除"})}):"related-detail"==t.type&&(this.rowID=t.data.item.key,this.detailCRMType=t.data.type,this.showFullDetail=!0)},submitBtn:function(t,e,i,a){var o=this;this.newLoading=!0;var l=[],c=[],r=[];if(this.formData.depData){var d=!0,u=!1,m=void 0;try{for(var h,p=s()(this.formData.depData);!(d=(h=p.next()).done);d=!0){var f=h.value;r.push(f.id)}}catch(t){u=!0,m=t}finally{try{!d&&p.return&&p.return()}finally{if(u)throw m}}}var v=[];if(this.formData.sentWhoList){var g=!0,_=!1,b=void 0;try{for(var y,w=s()(this.formData.sentWhoList);!(g=(y=w.next()).done);g=!0){var C=y.value;v.push(C.id)}}catch(t){_=!0,b=t}finally{try{!g&&w.return&&w.return()}finally{if(_)throw b}}}var x=!0,k=!1,L=void 0;try{for(var D,I=s()(this.imgFileList);!(x=(D=I.next()).done);x=!0){var T=D.value;l.push(T.file_id)}}catch(t){k=!0,L=t}finally{try{!x&&I.return&&I.return()}finally{if(k)throw L}}var S=!0,R=!1,A=void 0;try{for(var E,j=s()(this.accessoryFileList);!(S=(E=j.next()).done);S=!0){var O=E.value;c.push(O.file_id)}}catch(t){R=!0,A=t}finally{try{!S&&j.return&&j.return()}finally{if(R)throw A}}var M={id:this.formData.log_id,category_id:t,content:this.formData.content,tomorrow:this.formData.tomorrow,question:this.formData.question,file:c.concat(l),send_user_ids:v,send_structure_ids:r,customer_ids:a.customer_ids,contacts_ids:a.contacts_ids,business_ids:a.business_ids,contract_ids:a.contract_ids};Object(n.e)(M).then(function(t){o.refreshList(),o.showNewDialog=!1,o.$message.success("编辑成功"),o.newLoading=!1}).catch(function(){o.newLoading=!1,o.$message.error("编辑失败")})}}},r=(i("bmHb"),i("KHd+")),d=Object(r.a)(c,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("div",{directives:[{name:"empty",rawName:"v-empty",value:0===t.list.length,expression:"list.length === 0"}]},[i("div",{staticClass:"log-items"},[t._l(t.list,function(e,a){return i("journal-cell",{key:a,staticClass:"list-cell",attrs:{data:e.dataInfo},on:{"on-handle":t.jourecallCellHandle}})}),t._v(" "),i("div",{staticClass:"load"},[i("el-button",{attrs:{loading:t.loadMoreLoading,type:"text"}},[t._v(t._s(t.loadMoreLoading?"加载更多":"没有更多了"))])],1)],2)]),t._v(" "),i("c-r-m-full-screen-detail",{attrs:{visible:t.showFullDetail,"crm-type":t.detailCRMType,id:t.rowID},on:{"update:visible":function(e){t.showFullDetail=e}}}),t._v(" "),t.showNewDialog?i("new-dialog",{attrs:{"form-data":t.formData,"dialog-title":t.dialogTitle,"img-file-list":t.imgFileList,"accessory-file-list":t.accessoryFileList,"new-loading":t.newLoading},on:{close:function(e){t.showNewDialog=!1},submitBtn:t.submitBtn}}):t._e()],1)},[],!1,null,"7297ab6e",null);d.options.__file="JournalLog.vue";e.a=d.exports},"9bSZ":function(t,e,i){},AnnZ:function(t,e,i){"use strict";var a=i("BirF");i.n(a).a},BirF:function(t,e,i){},BuGm:function(t,e,i){"use strict";i.r(e);var a=i("gDS+"),s=i.n(a),n=i("FyfS"),o=i.n(n),l=i("Dh/N"),c=i("1RnH"),r=i("0hym"),d=i("7Qib"),u={components:{relatedBusiness:c.a,XhUser:r.a},props:{formData:{type:Object,default:function(){return{color:""}}},text:{type:String,default:"创建日程"},appendToBody:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,i,a){t.formData.start_time&&t.formData.end_time&&t.formData.start_time.getTime()>=t.formData.end_time.getTime()&&a(new Error("开始时间必须小于结束时间")),a()};return{zIndex:Object(d.g)(),formList:[{label:"主题",field:"title",type:"color"},{label:"开始时间",field:"start_time",type:"time"},{label:"结束时间",field:"end_time",type:"time"},{label:"参与人",field:"owner_user_ids",type:"participant"},{label:"备注",field:"remark",type:"textarea",width:"100%"}],options:[{value:0,label:"无"},{value:1,label:"准时提醒"},{value:2,label:"5分钟前"},{value:3,label:"15分钟前"},{value:4,label:"30分钟前"},{value:5,label:"一个小时前"},{value:6,label:"二个小时前"},{value:7,label:"一天前"},{value:8,label:"二天前"},{value:9,label:"一周前"}],fileList:[],loading:!1,colorList:["#3E8EF7","#11C06C","#0BB2D4","#EB6709","#FF4C52","#526069","#9262F4"],rules:{title:[{required:!0,message:"主题不能为空",trigger:"blur"},{max:50,message:"主题长度最多为50个字符",trigger:"blur"}],start_time:[{required:!0,message:"开始时间不能为空",trigger:"blur"},{validator:e,trigger:"blur"}],end_time:[{required:!0,message:"结束时间不能为空",trigger:"blur"},{validator:e,trigger:"blur"}]},relevanceAll:{},allData:{},colleaguesList:[]}},created:function(){},mounted:function(){this.appendToBody&&document.body.appendChild(this.$el),this.allData.business=this.formData.businessList?this.formData.businessList:[],this.allData.contacts=this.formData.contactsList?this.formData.contactsList:[],this.allData.contract=this.formData.contractList?this.formData.contractList:[],this.allData.customer=this.formData.customerList?this.formData.customerList:[],this.formData.ownerList&&(this.colleaguesList=[].concat(this.formData.ownerList)),"创建日程"==this.text&&this.$set(this.formData,"color","#3E8EF7")},beforeDestroy:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},methods:{close:function(){1==this.$route.query.routerKey?this.$router.go(-1):this.$emit("closeDialog")},checkInfos:function(t){this.relevanceAll=t},onSubmit:function(){var t=this;this.$refs.form.validate(function(e){if(!e)return!1;t.loading=!0;var i=t.formData,a=[],n=!0,c=!1,r=void 0;try{for(var d,u=o()(t.colleaguesList);!(n=(d=u.next()).done);n=!0){var m=d.value;a.push(m.id)}}catch(t){c=!0,r=t}finally{try{!n&&u.return&&u.return()}finally{if(c)throw r}}if("创建日程"==t.text)Object(l.a)({title:i.title,start_time:i.start_time.getTime()/1e3,end_time:i.end_time.getTime()/1e3,owner_user_ids:a,remark:i.remark,color:i.color,customer_ids:t.relevanceAll.customer_ids,contacts_ids:t.relevanceAll.contacts_ids,business_ids:t.relevanceAll.business_ids,contract_ids:t.relevanceAll.contract_ids}).then(function(e){1==t.$route.query.routerKey?t.$router.push("schedule"):t.$emit("onSubmit"),t.loading=!1}).catch(function(){t.loading=!1});else{var h={customer_ids:[],contract_ids:[],contacts_ids:[],business_ids:[]};if(t.allData.customer){var p=!0,f=!1,v=void 0;try{for(var g,_=o()(t.allData.customer);!(p=(g=_.next()).done);p=!0){var b=g.value;h.customer_ids.push(b.customer_id)}}catch(t){f=!0,v=t}finally{try{!p&&_.return&&_.return()}finally{if(f)throw v}}}if(t.allData.contract){var y=!0,w=!1,C=void 0;try{for(var x,k=o()(t.allData.contract);!(y=(x=k.next()).done);y=!0){var L=x.value;h.contract_ids.push(L.contract_id)}}catch(t){w=!0,C=t}finally{try{!y&&k.return&&k.return()}finally{if(w)throw C}}}if(t.allData.contacts){var D=!0,I=!1,T=void 0;try{for(var S,R=o()(t.allData.contacts);!(D=(S=R.next()).done);D=!0){var A=S.value;h.contacts_ids.push(A.contacts_id)}}catch(t){I=!0,T=t}finally{try{!D&&R.return&&R.return()}finally{if(I)throw T}}}if(t.allData.business){var E=!0,j=!1,O=void 0;try{for(var M,N=o()(t.allData.business);!(E=(M=N.next()).done);E=!0){var F=M.value;h.business_ids.push(F.business_id)}}catch(t){j=!0,O=t}finally{try{!E&&N.return&&N.return()}finally{if(j)throw O}}}var B="{}"==s()(t.relevanceAll)?h:t.relevanceAll;Object(l.c)({event_id:i.event_id,title:i.title,start_time:new Date(i.start_time).getTime()/1e3,end_time:new Date(i.end_time).getTime()/1e3,owner_user_ids:a,remark:i.remark,color:i.color,customer_ids:B.customer_ids,contacts_ids:B.contacts_ids,business_ids:B.business_ids,contract_ids:B.contract_ids}).then(function(e){t.$emit("onSubmit"),t.loading=!1}).catch(function(){t.loading=!1})}})},httpRequest:function(t){this.fileList.push(t.file)},onRemove:function(t){for(var e in this.fileList)this.fileList[e].uid==t.uid&&this.fileList.splice(e,1)},changeColor:function(t){this.$set(this.formData,"color",t)},changeCheckout:function(t){this.colleaguesList=t.data},selectDelect:function(t,e){this.$refs.xhuser[0].cancelCheckItem(t),this.colleaguesList.splice(e,1)}}},m=(i("tgh5"),i("KHd+")),h=Object(m.a)(u,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"create-schedule",style:{"z-index":t.zIndex}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"add-schedule"},[a("div",{staticClass:"header",attrs:{slot:"header"},slot:"header"},[a("span",{staticClass:"text"},[t._v(t._s(t.text))]),t._v(" "),a("img",{staticClass:"el-icon-close rt",attrs:{src:i("cjwK"),alt:""},on:{click:t.close}})]),t._v(" "),a("div",{staticClass:"content"},[a("el-form",{ref:"form",attrs:{model:t.formData,rules:t.rules}},t._l(t.formList,function(e,i){return a("el-form-item",{key:i,class:"el-form-item-"+e.field,style:{width:e.width},attrs:{prop:e.field,label:e.label}},["time"==e.type?[a("el-date-picker",{attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期时间"},model:{value:t.formData[e.field],callback:function(i){t.$set(t.formData,e.field,i)},expression:"formData[item.field]"}})]:"textarea"==e.type?[a("el-input",{attrs:{autosize:{minRows:6},type:"textarea",placeholder:"请输入内容"},model:{value:t.formData[e.field],callback:function(i){t.$set(t.formData,e.field,i)},expression:"formData[item.field]"}})]:"participant"==e.type?[a("el-popover",{attrs:{placement:"bottom-end",width:"280",trigger:"click"}},[a("xh-user",{ref:"xhuser",refInFor:!0,attrs:{"selected-data":t.colleaguesList},on:{changeCheckout:t.changeCheckout}}),t._v(" "),a("div",{staticClass:"select-box",attrs:{slot:"reference"},slot:"reference"},[t._l(t.colleaguesList,function(e,i){return a("span",{key:i,staticClass:"select-box-span"},[t._v("\n                  "+t._s(e.realname)+"\n                  "),a("span",{staticClass:"el-icon-close",on:{click:function(a){a.stopPropagation(),t.selectDelect(e,i)}}})])}),t._v(" "),a("span",{staticClass:"el-icon-plus"})],2)],1)]:"select"==e.type?[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.formData[e.field],callback:function(i){t.$set(t.formData,e.field,i)},expression:"formData[item.field]"}},t._l(t.options,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))]:"color"==e.type?[a("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.formData[e.field],callback:function(i){t.$set(t.formData,e.field,i)},expression:"formData[item.field]"}},[a("i",{staticClass:"el-input__icon",attrs:{slot:"prefix"},slot:"prefix"},[a("span",{staticClass:"bg-color",style:{background:t.formData.color}})])]),t._v(" "),a("div",{staticClass:"color-box"},t._l(t.colorList,function(e,i){return a("span",{key:i,style:{background:e},on:{click:function(i){t.changeColor(e)}}})}))]:a("el-input",{model:{value:t.formData[e.field],callback:function(i){t.$set(t.formData,e.field,i)},expression:"formData[item.field]"}})],2)})),t._v(" "),a("related-business",{attrs:{"all-data":t.allData},on:{checkInfos:t.checkInfos}})],1),t._v(" "),a("div",{staticClass:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("保存")]),t._v(" "),a("el-button",{on:{click:t.close}},[t._v("取消")])],1)])])},[],!1,null,"8e8c2aa8",null);h.options.__file="createSchedule.vue";e.default=h.exports},DUlf:function(t,e,i){"use strict";var a=i("KzkL"),s=i("mX3o"),n={name:"RelativeTeam",components:{TeamsHandle:i("eOzp").a},mixins:[s.a],props:{id:[String,Number],detail:{type:Object,default:function(){return{}}},crmType:{type:String,default:""},isSeas:{type:Boolean,default:!1}},data:function(){return{list:[],fieldList:[],tableHeight:"400px",teamsDialogShow:!1,handleType:1,editPermissionShow:!1,selectionList:[]}},computed:{},watch:{id:function(t){this.list=[],this.getDetail()}},mounted:function(){this.fieldList.push({prop:"realname",width:"200",label:"姓名"}),this.fieldList.push({prop:"structure_name",width:"200",label:"职位"}),this.fieldList.push({prop:"group_name",width:"200",label:"团队角色"}),this.fieldList.push({prop:"authority",width:"200",label:"权限"}),this.getDetail()},activated:function(){},deactivated:function(){},methods:{getDetail:function(){var t=this;this.loading=!0,Object(a.t)({types:"crm_"+this.crmType,types_id:this.id}).then(function(e){t.loading=!1,t.list=e.data}).catch(function(){t.loading=!1})},handleSelectionChange:function(t){this.selectionList=t},handleClick:function(t){var e=this;"add"==t?this.teamsDialogShow=!0:0==this.selectionList.length?this.$message.error("请勾选需要操作的团队成员"):"edit"==t?this.editPermissionShow=!0:"remove"==t&&this.$confirm("此操作将移除这些团队成员是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t=e.selectionList.map(function(t,e,i){return t.id}),i={types:"crm_"+e.crmType,types_id:[e.detail[e.crmType+"_id"]],user_id:t,is_del:1};e.loading=!0,Object(a.u)(i).then(function(t){e.$message({type:"success",message:t.data}),e.loading=!1,e.getDetail()}).catch(function(){e.loading=!1})}).catch(function(){e.$message({type:"info",message:"已取消删除"})})},handleCallBack:function(t){this.getDetail()},handleEditConfirm:function(){var t=this,e=this.selectionList.map(function(t,e,i){return t.id});this.loading=!0,Object(a.u)({types:"crm_"+this.crmType,types_id:[this.detail[this.crmType+"_id"]],user_id:e,type:this.handleType}).then(function(e){t.editPermissionShow=!1,t.$message({type:"success",message:e.data}),t.loading=!1,t.getDetail()}).catch(function(){t.loading=!1})},handleSelectable:function(t,e){return 0!=t.type},handleRowClick:function(t,e,i){},headerRowStyle:function(t){t.row,t.column,t.rowIndex,t.columnIndex;return{textAlign:"center"}},cellStyle:function(t){t.row,t.column,t.rowIndex,t.columnIndex;return{textAlign:"center"}}}},o=(i("zBZy"),i("KHd+")),l=Object(o.a)(n,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"rc-cont"},[t.isSeas?t._e():i("flexbox",{staticClass:"rc-head",attrs:{direction:"row-reverse"}},[i("el-button",{staticClass:"rc-head-item",attrs:{type:"primary"},nativeOn:{click:function(e){t.handleClick("remove")}}},[t._v("移除")]),t._v(" "),i("el-button",{staticClass:"rc-head-item",attrs:{type:"primary"},nativeOn:{click:function(e){t.handleClick("edit")}}},[t._v("编辑")]),t._v(" "),i("el-button",{staticClass:"rc-head-item",attrs:{type:"primary"},nativeOn:{click:function(e){t.handleClick("add")}}},[t._v("添加团队成员")])],1),t._v(" "),i("el-table",{staticStyle:{width:"100%",border:"1px solid #E6E6E6"},attrs:{data:t.list,height:t.tableHeight,"header-cell-style":t.headerRowStyle,"cell-style":t.cellStyle,stripe:""},on:{"row-click":t.handleRowClick,"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{selectable:t.handleSelectable,"show-overflow-tooltip":"",type:"selection",align:"center",width:"55"}}),t._v(" "),t._l(t.fieldList,function(t,e){return i("el-table-column",{key:e,attrs:{prop:t.prop,label:t.label,"show-overflow-tooltip":""}})})],2),t._v(" "),i("teams-handle",{attrs:{"crm-type":t.crmType,"selection-list":[t.detail],"dialog-visible":t.teamsDialogShow,title:"添加团队成员"},on:{"update:dialogVisible":function(e){t.teamsDialogShow=e},handle:t.handleCallBack}}),t._v(" "),i("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{visible:t.editPermissionShow,"append-to-body":!0,title:"编辑权限",width:"400px"},on:{"update:visible":function(e){t.editPermissionShow=e}}},[i("div",{staticClass:"handle-box"},[i("flexbox",{staticClass:"handle-item"},[i("div",{staticClass:"handle-item-name"},[t._v("权限:")]),t._v(" "),i("el-radio-group",{model:{value:t.handleType,callback:function(e){t.handleType=e},expression:"handleType"}},[i("el-radio",{attrs:{label:1}},[t._v("只读")]),t._v(" "),i("el-radio",{attrs:{label:2}},[t._v("读写")])],1)],1)],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{nativeOn:{click:function(e){t.editPermissionShow=!1}}},[t._v("取消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},nativeOn:{click:function(e){return t.handleEditConfirm(e)}}},[t._v("保存")])],1)])],1)},[],!1,null,"a8be9566",null);l.options.__file="RelativeTeam.vue";e.a=l.exports},Dd9w:function(t,e,i){},"Dh/N":function(t,e,i){"use strict";i.d(e,"d",function(){return s}),i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return l});var a=i("t3Un");function s(t){return Object(a.a)({url:"oa/event/index",method:"post",data:t})}function n(t){return Object(a.a)({url:"oa/event/save",method:"post",data:t})}function o(t){return Object(a.a)({url:"oa/event/delete",method:"post",data:t})}function l(t){return Object(a.a)({url:"oa/event/update",method:"post",data:t})}},F1nN:function(t,e,i){"use strict";var a=i("Dd9w");i.n(a).a},Fpl1:function(t,e,i){"use strict";var a=i("Er7M"),s=i("O1Uw"),n={name:"ExamineCell",components:{RelatedBusinessCell:a.a,FileCell:s.a},mixins:[],props:{data:Object},data:function(){return{}},computed:{relatedListData:function(){return{contacts:this.data.contactsList||[],customer:this.data.customerList||[],business:this.data.businessList||[],contract:this.data.contractList||[]}}},watch:{},mounted:function(){},methods:{getStatusName:function(t){return 0==t?"待审":1==t?"审批中":2==t?"通过":3==t?"拒绝":4==t?"撤回":""},getStatusColor:function(t){return 0==t?"#F3A633":1==t?"#F3A633":2==t?"#93E06D":3==t?"#FF0000":4==t?"#FF0000":""},imgZoom:function(t,e){this.$bus.emit("preview-image-bus",{index:e,data:t.map(function(t,e,i){return{url:t.file_path,name:t.name}})})},handleCommand:function(t){this.$emit("on-handle",{type:t,data:{item:this.data}})},checkDetail:function(t){this.$emit("on-handle",{type:"view",data:{item:this.data}})},checkRelatedDetail:function(t,e){this.$emit("on-handle",{type:"related-detail",data:{type:t,item:e}})}}},o=(i("ZlMj"),i("KHd+")),l=Object(o.a)(n,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"list"},[i("div",{staticClass:"list-content"},[i("flexbox",{staticClass:"header"},[i("div",{directives:[{name:"photo",rawName:"v-photo",value:t.data.create_user_info,expression:"data.create_user_info"},{name:"lazy",rawName:"v-lazy:background-image",value:t.$options.filters.filterUserLazyImg(t.data.create_user_info.thumb_img),expression:"$options.filters.filterUserLazyImg(data.create_user_info.thumb_img)",arg:"background-image"}],key:t.data.create_user_info.thumb_img,staticClass:"div-photo head-img"}),t._v(" "),i("div",{staticClass:"name-time"},[i("span",{staticClass:"name"},[t._v(t._s(t.data.create_user_info.realname))]),t._v(" "),i("span",{staticClass:"time"},[t._v(t._s(t._f("filterTimestampToFormatTime")(t.data.create_time)))])]),t._v(" "),i("div",{staticClass:"rt-setting"},[i("span",{staticClass:"bg-color",style:{"background-color":t.getStatusColor(t.data.check_status)}}),t._v(" "),i("span",{staticClass:"dep"},[i("span",[t._v(t._s(t.data.category_name)+" - ")]),t._v(" "),i("span",[t._v(t._s(t.getStatusName(t.data.check_status)))])]),t._v(" "),t.data.permission&&(t.data.permission.is_recheck||t.data.permission.is_update||t.data.permission.is_delete)?i("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[i("i",{staticClass:"el-icon-arrow-down el-icon-more",staticStyle:{color:"#CDCDCD",cursor:"pointer"}}),t._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t.data.permission&&t.data.permission.is_recheck?i("el-dropdown-item",{attrs:{command:"withdraw"}},[t._v("撤回")]):t._e(),t._v(" "),t.data.permission&&t.data.permission.is_update?i("el-dropdown-item",{attrs:{command:"edit"}},[t._v("编辑")]):t._e(),t._v(" "),t.data.permission&&t.data.permission.is_delete?i("el-dropdown-item",{attrs:{command:"delete"}},[t._v("删除")]):t._e()],1)],1):t._e()],1)]),t._v(" "),i("div",{staticClass:"row",on:{click:function(e){t.checkDetail(t.data)}}},[t.data.content?i("p",{staticClass:"text"},[t._v(t._s(t.data.content))]):t._e(),t._v(" "),t.data.causeTitle?i("p",{staticClass:"title"},[t._v(t._s(t.data.causeTitle))]):t._e()]),t._v(" "),t.data.fileList.length>0||t.data.imgList.length>0?i("div",{staticClass:"accessory"},[i("div",{staticClass:"upload-img-box"},t._l(t.data.imgList,function(e,a){return i("div",{key:a,staticClass:"img-list",on:{click:function(e){t.imgZoom(t.data.imgList,a)}}},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.file_path_thumb,expression:"imgItem.file_path_thumb"}]})])})),t._v(" "),i("div",{staticClass:"accessory-box"},t._l(t.data.fileList,function(t,e){return i("file-cell",{key:e,attrs:{data:t,"cell-index":e}})}))]):t._e(),t._v(" "),t.relatedListData.contacts.length>0||t.relatedListData.customer.length>0||t.relatedListData.business.length>0||t.relatedListData.contract.length>0?i("div",{staticClass:"related-business"},[i("div",{staticClass:"label"},[t._v("关联业务")]),t._v(" "),t._l(t.relatedListData,function(e,a){return i("div",{key:a},t._l(e,function(e,s){return i("related-business-cell",{key:s,attrs:{data:e,"cell-index":s,type:a,"show-foot":!1},nativeOn:{click:function(i){t.checkRelatedDetail(a,e)}}})}))})],2):t._e()],1)])},[],!1,null,"ebcab814",null);l.options.__file="examineCell.vue";e.a=l.exports},"GJP/":function(t,e,i){},GsUu:function(t,e,i){"use strict";var a=i("SvQs");i.n(a).a},GynS:function(t,e,i){"use strict";var a=i("fmM0");i.n(a).a},I7zE:function(t,e,i){"use strict";var a=i("MAhc");i.n(a).a},Iae0:function(t,e,i){"use strict";var a=i("QbLZ"),s=i.n(a),n=i("S3Kq"),o=i("Qldq"),l=i("1RnH"),c=i("Xjjk"),r=i.n(c),d=i("L2JU"),u=i("O1Uw"),m={name:"JournalCell",components:{emoji:n.a,relatedBusiness:l.a,FileCell:u.a},mixins:[],props:{data:Object,logIndex:{type:Number,default:0},showWorkbench:{type:Boolean,default:!1}},data:function(){return{commentsTextarea:"",childCommentsTextarea:"",commentsPopover:!1,replyChildComment:null,replyChildIndex:-1,childCommentsPopover:!1,blurIndex:0,contentLoading:!1,parentTarget:null,awaitMoment:!1}},computed:s()({},Object(d.b)(["userInfo"]),{allData:function(){var t={};return t.business=this.data.businessList||[],t.contacts=this.data.contactsList||[],t.contract=this.data.contractList||[],t.customer=this.data.customerList||[],t},allDataShow:function(){return!this.showWorkbench&&!!(this.data.businessList&&0!=this.data.businessList.length||this.data.contactsList&&0!=this.data.contactsList.length||this.data.contractList&&0!=this.data.contractList.length||this.data.customerList&&0!=this.data.customerList.length)}}),watch:{},mounted:function(){var t=this;0!=this.data.is_read||this.showWorkbench||(this.$bus.on("journal-list-box-scroll",function(e){t.observePreview(e)}),this.observePreview(document.getElementById("journal-cell"+this.logIndex).parentNode))},beforeDestroy:function(){this.$bus.off("journal-list-box-scroll")},methods:{observePreview:function(t){var e=this;if(0==this.data.is_read){t&&(this.parentTarget=t);var i=this.whetherPreview();!this.awaitMoment&&i&&(this.awaitMoment=!0,setTimeout(function(){e.awaitMoment=!1,e.whetherPreview()&&e.submiteIsRead()},3e3))}},whetherPreview:function(){var t=this.parentTarget.children[this.logIndex];if(this.parentTarget.getBoundingClientRect()){var e=this.parentTarget.getBoundingClientRect().top-t.getBoundingClientRect().top,i=!1;return e<=0&&Math.abs(e)<this.parentTarget.clientHeight?i=!0:e>0&&e<t.clientHeight&&(i=!0),i}return!1},submiteIsRead:function(){var t=this;Object(o.g)({log_id:this.showWorkbench?this.data.action_id:this.data.log_id}).then(function(e){t.data.is_read=1,t.$store.dispatch("GetOAMessageNum","log")}).catch(function(){})},verifyAwaitInfo:function(){},handleCommand:function(t){this.$emit("on-handle",{type:t,data:{item:this.data}})},checkRelatedDetail:function(t,e){this.$emit("on-handle",{type:"related-detail",data:{type:t,item:e}})},discussDelete:function(t,e,i){var a=this;this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.b)({comment_id:t.comment_id,log_id:t.type_id}).then(function(t){a.$message({type:"success",message:"删除成功!"}),e.splice(i,1),a.$emit("on-handle",{type:"discuss-delete",data:{item:a.data}})})}).catch(function(){a.$message({type:"info",message:"已取消删除"})})},discussBtn:function(t,e){t.show?(this.$set(t,"show",!1),this.replyChildComment=null):(this.$set(t,"show",!0),this.$set(t,"showComment",!1),this.replyChildComment=t,this.replyChildIndex=e)},childCommentSubmit:function(){var t=this;if(this.replyChildComment&&this.childCommentsTextarea){var e=-1==this.replyChildIndex?this.replyChildComment:this.replyChildComment.replyList[this.replyChildIndex];this.contentLoading=!0,Object(o.c)({reply_fid:this.replyChildComment.comment_id,log_id:e.type_id,content:r()(this.childCommentsTextarea),reply_content:e.content,reply_comment_id:e.comment_id,reply_user_id:e.userInfo.id,reply_name:e.userInfo.realname}).then(function(i){t.replyChildComment.replyList.push({comment_id:i.data,type_id:e.type_id,userInfo:t.userInfo,create_time:parseInt((new Date).getTime()/1e3),content:r()(t.childCommentsTextarea),reply_content:e.content,replyuserInfo:e.userInfo}),t.$message.success("回复成功"),t.replyChildComment.show=!1,t.replyChildComment=null,t.contentLoading=!1,t.childCommentsTextarea="",t.$emit("on-handle",{type:"discuss-submit",data:{item:t.data}})}).catch(function(){t.$message.error("回复失败"),t.contentLoading=!1})}},commentSubmit:function(t){var e=this;this.commentsTextarea&&(this.contentLoading=!0,Object(o.c)({log_id:this.showWorkbench?this.data.action_id:this.data.log_id,content:r()(this.commentsTextarea)}).then(function(i){t.showComment=!1,t.replyList.push({comment_id:i.data,type_id:e.showWorkbench?e.data.action_id:e.data.log_id,userInfo:e.userInfo,create_time:parseInt((new Date).getTime()/1e3),content:r()(e.commentsTextarea),replyList:[],show:!1}),e.commentsTextarea="",e.$message.success("回复成功"),e.contentLoading=!1}).catch(function(){e.$message.error("回复失败"),e.contentLoading=!1}))},commentBtn:function(t){t.showComment?this.$set(t,"showComment",!1):(this.replyChildComment&&(this.replyChildComment.show=!1),this.$set(t,"showComment",!0))},selectEmoji:function(t){var e=this.commentsTextarea.split("");e.splice(this.blurIndex,0,t),this.commentsTextarea=e.join(""),this.commentsPopover=!1},childSelectEmoji:function(t){var e=this.childCommentsTextarea.split("");e.splice(this.blurIndex,0,t),this.childCommentsTextarea=e.join(""),this.childCommentsPopover=!1},blurFun:function(t){this.blurIndex=t.target.selectionEnd},imgZoom:function(t,e){this.$bus.emit("preview-image-bus",{index:e,data:t.map(function(t,e,i){return{url:t.file_path,name:t.name}})})}}},h=(i("F1nN"),i("KHd+")),p=Object(h.a)(m,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"list",attrs:{id:"journal-cell"+t.logIndex}},[a("div",{staticClass:"list-content"},[a("div",{staticClass:"header"},[a("div",{directives:[{name:"photo",rawName:"v-photo",value:t.data.create_user_info,expression:"data.create_user_info"},{name:"lazy",rawName:"v-lazy:background-image",value:t.$options.filters.filterUserLazyImg(t.data.create_user_info.thumb_img),expression:"$options.filters.filterUserLazyImg(data.create_user_info.thumb_img)",arg:"background-image"}],key:t.data.create_user_info.thumb_img,staticClass:"div-photo head-img header-circle"}),t._v(" "),a("div",{staticClass:"row"},[a("p",{staticClass:"row-title"},[a("span",{staticClass:"name"},[t._v(t._s(t.data.create_user_info.realname))]),t._v(" "),t.showWorkbench?a("span",{staticClass:"item-content"},[t._v(t._s(t.data.action_content))]):a("span",{staticClass:"read",style:{color:0==t.data.is_read?"#3E84E9":"#ccc"}},[t._v(t._s(0==t.data.is_read?"未读":"已读"))])]),t._v(" "),a("span",{staticClass:"time"},[t._v(t._s(t._f("moment")(t.data.create_time,"YYYY-MM-DD HH:mm")))]),t._v(" "),a("el-tooltip",{attrs:{disabled:!(t.data.sendUserList.length>0||t.data.sendStructList.length>0),placement:"bottom",effect:"light","popper-class":"tooltip-change-border"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("div",{staticClass:"members-dep-title"},[t.data.sendUserList?a("span",t._l(t.data.sendUserList,function(e,i){return a("span",{key:i},[t._v("\n                  "+t._s(0==t.data.sendStructList.length&&i==t.data.sendUserList.length-1?e.realname:e.realname+",")+"\n                ")])})):t._e(),t._v(" "),0!=t.data.sendStructList.legnth?a("span",t._l(t.data.sendStructList,function(e,i){return a("span",{key:i},[t._v("\n                  "+t._s(i==t.data.sendStructList.length-1?e.name:e.name+",")+"\n                ")])})):t._e()])]),t._v(" "),a("p",{staticClass:"row-title",staticStyle:{display:"inline-block"}},[t.data.sendStructList?a("span",[t._v(t._s(t.data.sendStructList.length)+" 个部门,")]):t._e(),t._v(" "),t.data.sendUserList?a("span",[t._v(t._s(t.data.sendUserList.length)+"个同事")]):t._e()])])],1),t._v(" "),!t.showWorkbench&&t.data.permission&&(t.data.permission.is_update||t.data.permission.is_delete)?a("div",{staticClass:"rt-setting"},[a("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[a("i",{staticClass:"el-icon-arrow-down el-icon-more",staticStyle:{color:"#CDCDCD",cursor:"pointer"}}),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t.data.permission.is_update?a("el-dropdown-item",{attrs:{command:"edit"}},[t._v("编辑")]):t._e(),t._v(" "),t.data.permission.is_delete?a("el-dropdown-item",{attrs:{command:"delete"}},[t._v("删除")]):t._e()],1)],1)],1):t._e()]),t._v(" "),a("div",{staticClass:"text"},[t.data.content?a("p",{staticClass:"row"},[a("span",{staticClass:"title"},[t._v(t._s(1==t.data.category_id?"今日工作内容":2==t.data.category_id?"本周工作内容":"本月工作内容")+":")]),t._v(t._s(t.data.content))]):t._e(),t._v(" "),t.data.tomorrow?a("p",{staticClass:"row"},[a("span",{staticClass:"title"},[t._v(t._s(1==t.data.category_id?"明日工作内容":2==t.data.category_id?"下周工作内容":"下月工作内容")+":")]),t._v(t._s(t.data.tomorrow))]):t._e(),t._v(" "),t.data.question?a("p",{staticClass:"row"},[a("span",{staticClass:"title"},[t._v("遇到的问题:")]),t._v(t._s(t.data.question))]):t._e()]),t._v(" "),a("div",{staticClass:"accessory"},[0!=t.data.imgList.length?a("div",{staticClass:"upload-img-box"},t._l(t.data.imgList,function(e,i){return a("div",{key:i,staticClass:"img-list",on:{click:function(e){t.imgZoom(t.data.imgList,i)}}},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.file_path,expression:"imgItem.file_path"}],key:e.file_path})])})):t._e(),t._v(" "),0!=t.data.fileList.length?a("div",{staticClass:"accessory-box"},t._l(t.data.fileList,function(t,e){return a("file-cell",{key:e,attrs:{data:t,"cell-index":e}})})):t._e()]),t._v(" "),t.allDataShow?a("related-business",{attrs:{"margin-left":"0",alterable:!1,"all-data":t.allData},on:{checkRelatedDetail:t.checkRelatedDetail}}):t._e(),t._v(" "),0!=t.data.replyList.length?a("div",{staticClass:"discuss"},[a("div",{staticClass:"border"}),t._v(" "),t._l(t.data.replyList,function(e,s){return a("div",{key:s,staticClass:"discuss-list"},[a("div",{directives:[{name:"photo",rawName:"v-photo",value:e.userInfo,expression:"discussItem.userInfo"},{name:"lazy",rawName:"v-lazy:background-image",value:t.$options.filters.filterUserLazyImg(e.userInfo.thumb_img),expression:"$options.filters.filterUserLazyImg(discussItem.userInfo.thumb_img)",arg:"background-image"}],key:e.userInfo.thumb_img,staticClass:"div-photo head-img header-circle"}),t._v(" "),a("span",{staticClass:"name"},[t._v(t._s(e.userInfo.realname))]),t._v(" "),a("span",{staticClass:"time"},[t._v(t._s(t._f("moment")(e.create_time,"YYYY-MM-DD HH:mm")))]),t._v(" "),a("p",{staticClass:"reply-title"},[a("span",{domProps:{innerHTML:t._s(t.emoji(e.content))}}),t._v(" "),a("i",{staticClass:"wukong wukong-log-reply log-handle",on:{click:function(i){t.discussBtn(e,-1)}}}),t._v(" "),a("i",{staticClass:"wukong wukong-log-delete log-handle",on:{click:function(i){t.discussDelete(e,t.data.replyList,s)}}})]),t._v(" "),a("p",{staticClass:"discuss-content",domProps:{innerHTML:t._s(t.emoji(e.reply_content))}}),t._v(" "),e.replyList&&e.replyList.length>0?a("div",{staticClass:"children-reply"},t._l(e.replyList,function(i,s){return a("div",{key:s,staticClass:"discuss-list"},[a("div",{directives:[{name:"photo",rawName:"v-photo",value:i.userInfo,expression:"childDiscussItem.userInfo"},{name:"lazy",rawName:"v-lazy:background-image",value:t.$options.filters.filterUserLazyImg(i.userInfo.thumb_img),expression:"$options.filters.filterUserLazyImg(childDiscussItem.userInfo.thumb_img)",arg:"background-image"}],key:i.userInfo.thumb_img,staticClass:"div-photo head-img header-circle"}),t._v(" "),a("span",{staticClass:"name"},[t._v(t._s(i.userInfo.realname))]),t._v(" "),a("span",{staticClass:"time"},[t._v(t._s(t._f("moment")(i.create_time,"YYYY-MM-DD HH:mm")))]),t._v(" "),a("p",{staticClass:"reply-title"},[[a("span",[t._v("回复")]),t._v(" "),a("span",{staticClass:"reply"},[t._v("@"+t._s(i.replyuserInfo.realname)+":")])],t._v(" "),a("span",{domProps:{innerHTML:t._s(t.emoji(i.content))}}),t._v(" "),a("i",{staticClass:"wukong wukong-log-reply log-handle",on:{click:function(i){t.discussBtn(e,s)}}}),t._v(" "),a("i",{staticClass:"wukong wukong-log-delete log-handle",on:{click:function(a){t.discussDelete(i,e.replyList,s)}}})],2)])})):t._e(),t._v(" "),e.show?a("div",{staticClass:"comment-box"},[a("el-input",{attrs:{rows:2,type:"textarea",placeholder:"请输入内容"},on:{blur:t.blurFun},model:{value:t.childCommentsTextarea,callback:function(e){t.childCommentsTextarea=e},expression:"childCommentsTextarea"}}),t._v(" "),a("div",{staticClass:"btn-group"},[a("el-popover",{attrs:{placement:"top",width:"400",trigger:"click"},model:{value:t.childCommentsPopover,callback:function(e){t.childCommentsPopover=e},expression:"childCommentsPopover"}},[a("emoji",{on:{select:t.childSelectEmoji}}),t._v(" "),a("img",{staticClass:"smiling-img",attrs:{slot:"reference",src:i("woiz")},slot:"reference"})],1),t._v(" "),a("div",{staticClass:"btn-box"},[a("el-button",{attrs:{loading:t.contentLoading,type:"primary"},on:{click:function(e){t.childCommentSubmit()}}},[t._v("回复")]),t._v(" "),a("el-button",{on:{click:function(t){e.show=!1}}},[t._v("取消")])],1)],1)],1):t._e(),t._v(" "),a("div",{staticClass:"border"})])})],2):t._e()],1),t._v(" "),a("div",{staticClass:"footer"},[a("el-button",{attrs:{type:"primary",icon:"el-icon-chat-line-round"},on:{click:function(e){t.commentBtn(t.data)}}},[t._v("回复")])],1),t._v(" "),t.data.showComment?a("div",{staticClass:"comment-box"},[a("el-input",{attrs:{rows:3,type:"textarea",placeholder:"请输入内容"},on:{blur:t.blurFun},model:{value:t.commentsTextarea,callback:function(e){t.commentsTextarea=e},expression:"commentsTextarea"}}),t._v(" "),a("div",{staticClass:"btn-group"},[a("el-popover",{attrs:{placement:"top",width:"400",trigger:"click"},model:{value:t.commentsPopover,callback:function(e){t.commentsPopover=e},expression:"commentsPopover"}},[a("emoji",{on:{select:t.selectEmoji}}),t._v(" "),a("img",{staticClass:"smiling-img",attrs:{slot:"reference",src:i("woiz")},slot:"reference"})],1),t._v(" "),a("div",{staticClass:"btn-box"},[a("el-button",{attrs:{loading:t.contentLoading,type:"primary"},on:{click:function(e){t.commentSubmit(t.data)}}},[t._v("回复")]),t._v(" "),a("el-button",{on:{click:function(e){t.data.showComment=!1}}},[t._v("取消")])],1)],1)],1):t._e()])},[],!1,null,"1b7b786c",null);p.options.__file="journalCell.vue";e.a=p.exports},JHu1:function(t,e,i){},JXju:function(t,e,i){"use strict";var a=i("7Qib"),s=i("mqlf"),n=i("ppJE"),o=i("PS1M"),l=i("n1dw"),c=i("xfX+"),r=i("8gwX"),d=i("K6D0"),u={name:"CRMAllDetail",components:{ClueDetail:s.a,CustomerDetail:n.a,ContactsDetail:o.a,BusinessDetail:l.a,ContractDetail:c.a,ProductDetail:r.a,MoneyDetail:d.a},props:{id:[String,Number],crmType:{type:String,default:""},visible:{type:Boolean,default:!1},listenerIDs:{type:Array,default:function(){return["crm-main-container"]}},noListenerIDs:{type:Array,default:function(){return[]}},noListenerClass:{type:Array,default:function(){return["el-table__body"]}}},data:function(){return{tabName:""}},computed:{},watch:{crmType:function(t){"leads"==this.crmType?this.tabName="clue-detail":"customer"==this.crmType?this.tabName="customer-detail":"contacts"==this.crmType?this.tabName="contacts-detail":"business"==this.crmType?this.tabName="business-detail":"contract"==this.crmType?this.tabName="contract-detail":"product"==this.crmType?this.tabName="product-detail":"receivables"==this.crmType&&(this.tabName="money-detail")}},mounted:function(){this.visible&&(document.body.appendChild(this.$el),this.$el.style.zIndex=Object(a.g)())},destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},methods:{hiddenView:function(){this.$emit("update:visible",!1)},detailHandle:function(t){this.$emit("handle",t)}}},m=(i("AnnZ"),i("KHd+")),h=Object(m.a)(u,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.id&&t.visible?i(t.tabName,{tag:"component",staticClass:"d-view",attrs:{"crm-type":t.crmType,id:t.id,"listener-ids":t.listenerIDs,"no-listener-ids":t.noListenerIDs},on:{handle:t.detailHandle,"hide-view":t.hiddenView}}):t._e()},[],!1,null,"30fef6ca",null);h.options.__file="CRMAllDetail.vue";e.a=h.exports},MAhc:function(t,e,i){},N0PQ:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjZGRjBCRTYxRTBBNzExRTg5QkREOEQxRjlDMkUxOUExIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjZGRjBCRTYyRTBBNzExRTg5QkREOEQxRjlDMkUxOUExIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NkZGMEJFNUZFMEE3MTFFODlCREQ4RDFGOUMyRTE5QTEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NkZGMEJFNjBFMEE3MTFFODlCREQ4RDFGOUMyRTE5QTEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz704RrgAAABwUlEQVR42uSXz0sCQRTH36h1sGNlaHjpVJoHC0KCOnVJOwSdqmM/6NZ/EF071rluQaduGQWd9BZEqWBhQQQmHYIQikDU6bs6G8Oy4q7sskYPPuzOzFu+++a9mZ1lnHNywlzkkDkm7JEb7/m8rWIDoVBHEc+DEuAaSmLMtqk+An6dfr8Ys0T4BHxJUbUzJq6q/yc47kR4CXg1fevgTcf3Faxp+vrAsuHikqxH054A5y2mWvYxnEaPwZTc/Kl1zJPJBt27gbR667YlnUjYMNWMORMxi8edETZhH+AZ9IIx4LZb+A5sieskGALfYMWW4hIFdQtmwJyIVt5gruEziucfrF5OVbAKZsGpzq42BVIQH+6suFovlRRQojnTzWethl73IO52wYaVEd+DcTDSaFUqRPV6c6RYJJ5ON8WJFqwuLkWl/7cWMhmE4SLm8xHP5YhFIkrEJPsYibhqQDgKCur3moXDROUy8Wy2KRoMqn5PZoQLBoSnxTf7otHyeonFYsSiUVlUsUMzwttAOfnV2my3e2ATvKjiFAjIPpdg30yOr0DYRL6VpbMDFoEPPIpz2EGrl2fyn0S3Hm8tNfbv/p1+BBgA+Vdv2Iz9D6cAAAAASUVORK5CYII="},NUF6:function(t,e,i){},NiH4:function(t,e,i){},O1Uw:function(t,e,i){"use strict";var a=i("7Qib"),s=i("KTTK"),n={name:"FileCell",props:{cellIndex:Number,data:Object,showFoot:{type:Boolean,default:!0},cursorPointer:{type:Boolean,default:!1},showDelete:{type:Boolean,default:!1},module_id:[String,Number]},data:function(){return{}},computed:{},watch:{},mounted:function(){},beforeDestroy:function(){},methods:{downloadClick:function(){Object(a.a)({path:this.data.file_path,name:this.data.name})},deleteClick:function(){var t=this;this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.d)({module:"work_task",module_id:t.module_id,save_name:t.data.save_name}).then(function(e){t.$message.success(e.data),t.$emit("delete",t.cellIndex,t.data)}).catch(function(){})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})}}},o=(i("wktz"),i("KHd+")),l=Object(o.a)(n,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("flexbox",{staticClass:"cell"},[a("img",{staticClass:"cell-head",attrs:{src:i("6KEE"),alt:""}}),t._v(" "),a("div",{staticClass:"cell-body",class:{"cursor-pointer":t.cursorPointer}},[a("span",[t._v(t._s(t.data.name.length>20?t.data.name.substring(0,20)+"...":t.data.name))]),t._v(" "),a("span",{staticClass:"size"},[t._v("("+t._s(t.data.size)+")")])]),t._v(" "),a("div",{staticClass:"cell-foot"},[a("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:t.downloadClick}},[t._v("下载")]),t._v(" "),t.showDelete?a("i",{staticClass:"el-icon-delete",on:{click:t.deleteClick}}):t._e()],1)])},[],!1,null,"327643c8",null);l.options.__file="index.vue";e.a=l.exports},OPCT:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjVENDNERTkxRTA5QjExRThBQkRDQjRERjVBMjY3MzE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjVENDNERTkyRTA5QjExRThBQkRDQjRERjVBMjY3MzE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NUQ0M0RFOEZFMDlCMTFFOEFCRENCNERGNUEyNjczMTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NUQ0M0RFOTBFMDlCMTFFOEFCRENCNERGNUEyNjczMTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7c1/V2AAABIElEQVR42mL8//8/AwicPXuWgVxgbGwMZzMRUBsGxBeB+AXITigfL2DBIxcCxHlA7AnEz4CYB4gnQ+VW4dKEz4UNQBwNNQwEvgBxBhAn4XMhPgMFgPghmthPIP5NroF/cYgzkmsgMw7x/+Qa+AGIZbBEIgu5BjYC8VIgloLyQbE8E4gXkJtsVkMt3Ak1DOTiDiBeSa6BDFDNK0nJNdi8rArEa4H4IzQC0PFHqLwqMQaqA/ERID4IxIrQJIKOFaDyR6Dq8Xq5DYon4fHVe6g8J1RtMD4XugDxYiKDazYQu5GSbMgC6AbuAeJYIvWmAPEuQmFYDQ3w/1Cvv8dikCDU0mIgtifkwhtAbAdV+BBHsnkIlbeDqieYsG+ixxwpACDAAIZEQR7SM/O0AAAAAElFTkSuQmCC"},Op00:function(t,e,i){"use strict";var a=i("+9th"),s={name:"TaskCell",components:{},mixins:[],props:{data:Object,dataIndex:Number},data:function(){return{}},computed:{},watch:{},mounted:function(){},methods:{taskOverClick:function(t){var e=this;Object(a.r)({task_id:t.task_id,type:t.checked?1:2}).then(function(t){e.$store.dispatch("GetOAMessageNum","task")}).catch(function(){t.checked=!1})},rowFun:function(t){this.$emit("on-handle",{type:"view",data:{item:this.data,index:this.dataIndex}})},onmouseoverFun:function(t){this.$refs.itemSpan.offsetWidth>this.$refs.listLeft.offsetWidth-21?this.$set(t,"show",!0):this.$set(t,"show",!1)}}},n=(i("cr3f"),i("KHd+")),o=Object(n.a)(s,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"taskRow",staticClass:"list",style:{"border-left-color":1==t.data.priority?"#8bb5f0":2==t.data.priority?"#FF9668":3==t.data.priority?"#ED6363":"transparent"},on:{click:function(e){t.rowFun(t.data)}}},[i("div",{ref:"listLeft",staticClass:"list-left"},[i("div",{class:t.data.checked?"title title-active":"title",on:{click:function(t){t.stopPropagation()}}},[i("el-checkbox",{on:{change:function(e){t.taskOverClick(t.data)}},model:{value:t.data.checked,callback:function(e){t.$set(t.data,"checked",e)},expression:"data.checked"}})],1),t._v(" "),i("el-tooltip",{attrs:{placement:"bottom",effect:"light","popper-class":"task-tooltip tooltip-change-border"}},[i("div",{attrs:{slot:"content"},slot:"content"},[i("span",[t._v(t._s(t.data.task_name))])]),t._v(" "),i("span",{ref:"itemSpan",class:t.data.checked?"item-name-active":"item-name"},[t._v("\n        "+t._s(t.data.task_name)+"\n      ")])])],1),t._v(" "),i("div",{staticClass:"list-right"},[t.data.lableList?i("div",{staticClass:"tag-box"},[t.data.lableList.length<=2?t._l(t.data.lableList,function(e,a){return i("div",{key:a,staticClass:"item-label"},[i("span",{staticClass:"k-name",style:{background:e.color}},[t._v(t._s(e.name))])])}):[i("span",{staticClass:"k-name",style:{background:t.data.lableList[0].color}},[t._v(t._s(t.data.lableList[0].name))]),t._v(" "),i("span",{staticClass:"k-name",style:{background:t.data.lableList[1].color}},[t._v(t._s(t.data.lableList[1].name))]),t._v(" "),i("el-tooltip",{attrs:{placement:"top",effect:"light","popper-class":"tooltip-change-border task-tooltip"}},[i("div",{staticClass:"tooltip-content",staticStyle:{margin:"10px 10px 10px 0"},attrs:{slot:"content"},slot:"content"},t._l(t.data.lableList,function(e,a){return i("div",{key:a,staticClass:"item-label",staticStyle:{display:"inline-block","margin-right":"10px"}},[a>=2?i("span",{staticClass:"k-name",staticStyle:{"border-radius":"3px",color:"#FFF",padding:"3px 10px"},style:{background:e.color?e.color:"#ccc"}},[t._v(t._s(e.name))]):t._e()])})),t._v(" "),i("span",{staticClass:"color-label-more"},[i("i",[t._v("...")])])])]],2):t._e(),t._v(" "),i("div",{staticClass:"img-group"},[t.data.relationCount?i("div",{staticClass:"img-box"},[i("i",{staticClass:"wukong wukong-relevance"}),t._v(" "),i("span",[t._v(t._s(t.data.relationCount))])]):t._e(),t._v(" "),t.data.subcount+t.data.subdonecount!=0?i("div",{staticClass:"img-box"},[i("i",{staticClass:"wukong wukong-sub-task"}),t._v(" "),i("span",[t._v(t._s(t.data.subdonecount)+"/"+t._s(t.data.subcount+t.data.subdonecount))])]):t._e(),t._v(" "),t.data.filecount?i("div",{staticClass:"img-box"},[i("i",{staticClass:"wukong wukong-file"}),t._v(" "),i("span",[t._v(t._s(t.data.filecount))])]):t._e(),t._v(" "),t.data.commentcount?i("div",{staticClass:"img-box"},[i("i",{staticClass:"wukong wukong-comment-task"}),t._v(" "),i("span",[t._v(t._s(t.data.commentcount))])]):t._e(),t._v(" "),t.data.stop_time?i("div",{staticClass:"img-box"},[i("i",{staticClass:"wukong wukong-time-task",style:{color:1!=t.data.is_end||t.data.checked?"#999":"red"}}),t._v(" "),i("span",{style:{color:1!=t.data.is_end||t.data.checked?"#999":"red"}},[t._v(t._s(t._f("moment")(t.data.stop_time,"MM-DD"))+" 截止")])]):t._e()]),t._v(" "),i("div",{staticClass:"item-own-box"},[t.data.main_user&&t.data.main_user.id?i("el-tooltip",{attrs:{placement:"bottom",effect:"light","popper-class":"tooltip-change-border"}},[i("div",{attrs:{slot:"content"},slot:"content"},[i("span",[t._v(t._s(t.data.main_user.realname))])]),t._v(" "),i("div",{directives:[{name:"photo",rawName:"v-photo",value:t.data.main_user,expression:"data.main_user"},{name:"lazy",rawName:"v-lazy:background-image",value:t.$options.filters.filterUserLazyImg(t.data.main_user.thumb_img),expression:"$options.filters.filterUserLazyImg(data.main_user.thumb_img)",arg:"background-image"}],key:t.data.main_user.thumb_img,staticClass:"div-photo"})]):t._e()],1)])])},[],!1,null,"829cdce6",null);o.options.__file="taskCell.vue";e.a=o.exports},QJC7:function(t,e,i){"use strict";var a=i("3yi6"),s=i("KzkL"),n={name:"RecordLog",components:{FollowRecordCell:a.a},props:{id:[String,Number],crmType:{type:String,default:""}},data:function(){return{loading:!1,loadMoreLoading:!0,isPost:!1,page:1,list:[]}},computed:{},watch:{id:function(t){this.refreshList()}},mounted:function(){var t=this;this.$bus.on("follow-log-refresh",function(e){"record-log"==e.type&&t.refreshList()});var e=document.getElementById("follow-log-content");e.onscroll=function(){var i=e.scrollTop+e.clientHeight-e.scrollHeight;Math.abs(i)<10&&1==t.loadMoreLoading&&(t.isPost?t.loadMoreLoading=!1:(t.isPost=!0,t.page++,t.getList()))},this.getList()},activated:function(){},deactivated:function(){},beforeDestroy:function(){this.$bus.off("follow-log-refresh")},methods:{getList:function(){var t=this;this.loading=!0,Object(s.k)({page:this.page,limit:10,types:"crm_"+this.crmType,types_id:this.id,by:"record"}).then(function(e){t.list=t.list.concat(e.data.list),e.data.list.length<10?t.loadMoreLoading=!1:t.loadMoreLoading=!0,t.loading=!1,t.isPost=!1}).catch(function(){t.isPost=!1,t.loading=!1})},refreshList:function(){this.page=1,this.list=[],this.getList()},cellHandle:function(t){"delete"==t.type&&this.list.splice(t.data.index,1)}}},o=(i("GynS"),i("KHd+")),l=Object(o.a)(n,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("div",{directives:[{name:"empty",rawName:"v-empty",value:0===t.list.length,expression:"list.length === 0"}]},[i("div",{staticClass:"log-items"},[t._l(t.list,function(e,a){return i("follow-record-cell",{key:a,attrs:{item:e,"crm-type":t.crmType,index:a},on:{"on-handle":t.cellHandle}})}),t._v(" "),i("div",{staticClass:"load"},[i("el-button",{attrs:{loading:t.loadMoreLoading,type:"text"}},[t._v(t._s(t.loadMoreLoading?"加载更多":"没有更多了"))])],1)],2)])])},[],!1,null,"6a287ea5",null);l.options.__file="RecordLog.vue";e.a=l.exports},QUdC:function(t,e,i){},Qf6f:function(t,e,i){},Qldq:function(t,e,i){"use strict";i.d(e,"f",function(){return s}),i.d(e,"a",function(){return n}),i.d(e,"e",function(){return o}),i.d(e,"c",function(){return l}),i.d(e,"d",function(){return c}),i.d(e,"b",function(){return r}),i.d(e,"g",function(){return d});var a=i("t3Un");function s(t){return Object(a.a)({url:"oa/log/index",method:"post",data:t})}function n(t){return Object(a.a)({url:"oa/log/save",method:"post",data:t})}function o(t){return Object(a.a)({url:"oa/log/update",method:"post",data:t})}function l(t){return Object(a.a)({url:"oa/log/commentSave",method:"post",data:t})}function c(t){return Object(a.a)({url:"oa/log/delete",method:"post",data:t})}function r(t){return Object(a.a)({url:"oa/log/commentDel",method:"post",data:t})}function d(t){return Object(a.a)({url:"oa/log/setread",method:"post",data:t})}},QwyR:function(t,e,i){},S3Kq:function(t,e,i){"use strict";var a=i("GQeE"),s=i.n(a),n=i("sCIN"),o={name:"Emoji",data:function(){return{emojiData:n.a,pannels:["表情","自然","物品","地点","符号"],activeIndex:0}},computed:{emojis:function(){var t=this;return this.pannels.map(function(e){return s()(t.emojiData[e])})}},created:function(){},methods:{changeActive:function(t){this.activeIndex=t},getPureName:function(t){return t.replace(/:/g,"")},selectItem:function(t){this.$emit("select",t)}}},l=(i("4mnS"),i("KHd+")),c=Object(l.a)(o,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"emoji"},[i("ul",{staticClass:"emoji-controller"},t._l(t.pannels,function(e,a){return i("li",{key:a,class:{active:a===t.activeIndex},on:{click:function(e){t.changeActive(a)}}},[t._v("\n      "+t._s(e)+"\n    ")])})),t._v(" "),i("ul",{staticClass:"emoji-container"},t._l(t.emojis,function(e,a){return a===t.activeIndex?i("li",{key:a,staticStyle:{padding:"0"}},[t._v("\n      "+t._s(e)+"--"+t._s(a)+"\n      "),t._l(e,function(e,a){return i("a",{key:a,attrs:{href:"javascript:;"},on:{click:function(i){t.selectItem(e)}}},[i("span",{staticClass:"emoji-item",class:"sprite-"+t.getPureName(e),attrs:{title:e}})])})],2):t._e()}))])},[],!1,null,"8cea1b02",null);c.options.__file="emoji.vue";e.a=c.exports},SoCr:function(t,e,i){},SvQs:function(t,e,i){},UEWd:function(t,e,i){"use strict";var a=i("7Qib"),s=i("KTTK"),n={name:"MixAdd",components:{CrmRelative:i("mkuN").a},props:{showRelativeBusiness:{type:Boolean,default:!1},showRelativeContacts:{type:Boolean,default:!1},id:[String,Number],crmType:{type:String,default:""}},data:function(){return{content:"",inputAutosize:{minRows:1,maxRows:6},barItems:[{img:i("S1Xc"),title:"图片",type:"img",data:"image/*"},{img:i("rl4O"),title:"附件",type:"file",data:"*.*"}],imgFiles:[],files:[],business:[],contacts:[],showRelativeType:""}},computed:{},mounted:function(){this.showRelativeBusiness&&this.barItems.push({img:i("i91G"),title:"关联商机",type:"business",show:!1}),this.showRelativeContacts&&this.barItems.push({img:i("OPCT"),title:"关联联系人",type:"contacts",show:!1}),this.$on("submit-info",function(){this.$emit("mixadd-info",{content:this.content,files:this.files,images:this.imgFiles,business:this.business,contacts:this.contacts})})},beforeDestroy:function(){this.$off("submit-info")},methods:{resetInfo:function(){this.content="",this.imgFiles=[],this.files=[],this.business=[],this.contacts=[],this.showRelativeType=""},checkRelativeInfos:function(t){"business"==this.showRelativeType?this.business=t.data:"contacts"==this.showRelativeType&&(this.contacts=t.data)},barClick:function(t){"business"==t.type?(this.showRelativeType=t.type,t.show=!0):"contacts"==t.type&&(this.showRelativeType=t.type,t.show=!0)},uploadFile:function(t){for(var e=this,i=t.target.files,n=this,o=function(o){var l=i[o];(c={}).module_id=e.id,c.module="crm_"+e.crmType,"image/*"==t.target.accept?c["img[]"]=l:"*.*"==t.target.accept&&(c["file[]"]=l),Object(s.f)(c).then(function(e){e.data.forEach(function(e,i){e.size=Object(a.c)(l.size),"image/*"==t.target.accept?n.imgFiles.push(e):"*.*"==t.target.accept&&(e.icon=Object(a.f)(l),n.files.push(e))})}).catch(function(){})},l=0;l<i.length;l++){var c;o(l)}t.target.value=""},deleteAllImg:function(){this.imgFiles=[]},deleteImgOrFile:function(t,e,i){var a=this;Object(s.d)({save_name:e.save_name,module_id:this.id,module:"crm_"+this.crmType}).then(function(e){"image"==t?a.imgFiles.splice(i,1):a.files.splice(i,1),a.$message.success(e.data)}).catch(function(){})},mouseImgOver:function(t,e){t.showDelete=!0,this.$set(this.imgFiles,e,t)},mouseImgLeave:function(t,e){t.showDelete=!1,this.$set(this.imgFiles,e,t)},inputFocus:function(){var t=this;this.inputAutosize={minRows:3,maxRows:6},this.$nextTick(function(){t.$refs.textarea.resizeTextarea()})}}},o=(i("eDCH"),i("KHd+")),l=Object(o.a)(n,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mix-container"},[a("div",{staticClass:"i-cont"},[a("el-input",{ref:"textarea",attrs:{autosize:t.inputAutosize,type:"textarea",clearable:"",resize:"none",placeholder:"请输入内容"},on:{focus:t.inputFocus},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1),t._v(" "),t.imgFiles.length>0?a("section",{staticClass:"img-cont"},[a("flexbox",{attrs:{wrap:"wrap"}},[t._l(t.imgFiles,function(e,i){return a("div",{key:i,staticClass:"img-item",style:{"background-image":"url("+e.path+")"},on:{mouseover:function(a){t.mouseImgOver(e,i)},mouseleave:function(a){t.mouseImgLeave(e,i)}}},[e.showDelete?a("div",{staticClass:"img-delete",on:{click:function(a){t.deleteImgOrFile("image",e,i)}}},[t._v("×")]):t._e()])}),t._v(" "),a("div",{staticClass:"img-item-add"},[a("input",{staticClass:"img-item-iput",attrs:{type:"file",accept:"image/*",multiple:""},on:{change:t.uploadFile}})])],2),t._v(" "),a("div",{staticClass:"img-bar",on:{click:t.deleteAllImg}},[t._v("全部删除")])],1):t._e(),t._v(" "),t.files.length>0?a("section",{staticClass:"file-cont"},[a("flexbox",{staticClass:"f-header"},[a("img",{staticClass:"f-logo",attrs:{src:i("rl4O")}}),t._v(" "),a("div",{staticClass:"f-name"},[t._v("附件")])]),t._v(" "),a("div",{staticClass:"f-body"},t._l(t.files,function(e,i){return a("flexbox",{key:i,staticClass:"f-item"},[a("img",{staticClass:"f-img",attrs:{src:e.icon}}),t._v(" "),a("div",{staticClass:"f-name"},[t._v(t._s(e.name+"("+e.size+")"))]),t._v(" "),a("div",{staticClass:"close-button",on:{click:function(a){t.deleteImgOrFile("file",e,i)}}},[t._v("×")])])})),t._v(" "),a("div",{staticClass:"img-bar",on:{click:function(e){t.files=[]}}},[t._v("全部删除")])],1):t._e(),t._v(" "),t.business.length>0?a("section",{staticClass:"c-cont"},[a("flexbox",{staticClass:"c-header"},[a("img",{staticClass:"c-logo",attrs:{src:i("i91G")}}),t._v(" "),a("div",{staticClass:"c-name"},[t._v("商机")])]),t._v(" "),a("div",{staticClass:"c-body"},[a("flexbox",{attrs:{wrap:"wrap"}},t._l(t.business,function(e,i){return a("flexbox",{key:i,staticClass:"c-item"},[a("div",{staticClass:"c-item-name"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"c-item-close",on:{click:function(e){t.business.splice(i,1)}}},[t._v("×")])])}))],1)],1):t._e(),t._v(" "),t.contacts.length>0?a("section",{staticClass:"c-cont"},[a("flexbox",{staticClass:"c-header"},[a("img",{staticClass:"c-logo",attrs:{src:i("OPCT")}}),t._v(" "),a("div",{staticClass:"c-name"},[t._v("联系人")])]),t._v(" "),a("div",{staticClass:"c-body"},[a("flexbox",{attrs:{wrap:"wrap"}},t._l(t.contacts,function(e,i){return a("flexbox",{key:i,staticClass:"c-item"},[a("div",{staticClass:"c-item-name"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"c-item-close",on:{click:function(e){t.contacts.splice(i,1)}}},[t._v("×")])])}))],1)],1):t._e(),t._v(" "),a("flexbox",{staticClass:"bar-cont"},[t._l(t.barItems,function(e,i){return["img"==e.type||"file"==e.type?a("flexbox",{key:i,staticClass:"bar-item",nativeOn:{click:function(i){t.barClick(e)}}},[a("input",{staticClass:"bar-input",attrs:{accept:e.data,type:"file",multiple:""},on:{change:t.uploadFile}}),t._v(" "),a("img",{staticClass:"bar-img",attrs:{src:e.img}}),t._v(" "),a("div",{staticClass:"bar-title"},[t._v(t._s(e.title))])]):a("el-popover",{key:i,attrs:{placement:"bottom",width:"700","popper-class":"no-padding-popover",trigger:"click"},model:{value:e.show,callback:function(i){t.$set(e,"show",i)},expression:"item.show"}},[a("crm-relative",{ref:"crmrelative",refInFor:!0,attrs:{show:e.show,radio:!1,action:{type:"condition",data:{form_type:"customer",customer_id:t.id}},"selected-data":"business"==e.type?{business:t.business}:{contacts:t.contacts},"crm-type":e.type},on:{close:function(t){e.show=!1},changeCheckout:t.checkRelativeInfos}}),t._v(" "),a("flexbox",{staticClass:"bar-item",attrs:{slot:"reference"},nativeOn:{click:function(i){t.barClick(e)}},slot:"reference"},[a("img",{staticClass:"bar-img",attrs:{src:e.img}}),t._v(" "),a("div",{staticClass:"bar-title"},[t._v(t._s(e.title))])])],1)]})],2)],1)},[],!1,null,"c3bfd986",null);l.options.__file="MixAdd.vue";e.a=l.exports},UHbi:function(t,e,i){"use strict";var a=i("sAYG");i.n(a).a},ULJF:function(t,e,i){"use strict";i.d(e,"e",function(){return s}),i.d(e,"d",function(){return n}),i.d(e,"c",function(){return o}),i.d(e,"b",function(){return l}),i.d(e,"a",function(){return c});var a=i("t3Un");function s(t){return Object(a.a)({url:"bi/log/statistics",method:"post",data:t})}function n(t){return Object(a.a)({url:"bi/log/excelExport",method:"post",data:t,responseType:"blob",timeout:6e5})}function o(t){return Object(a.a)({url:"bi/examine/statistics",method:"post",data:t})}function l(t){return Object(a.a)({url:"bi/examine/index",method:"post",data:t})}function c(t){return Object(a.a)({url:"bi/examine/excelExport",method:"post",data:t,responseType:"blob",timeout:6e5})}},YJsf:function(t,e,i){},YNUn:function(t,e,i){},Yytf:function(t,e,i){"use strict";var a=i("ovzS");i.n(a).a},ZlMj:function(t,e,i){"use strict";var a=i("NiH4");i.n(a).a},"aQg/":function(t,e,i){"use strict";var a=i("FyfS"),s=i.n(a),n=i("d0bK"),o=i("Op00"),l=i("KzkL"),c=i("7Qib"),r={name:"TaskLog",components:{TaskCell:o.a,Particulars:function(){return Promise.all([i.e("chunk-edbf"),i.e("chunk-6861"),i.e("chunk-65dd")]).then(i.bind(null,"+Gvz"))}},mixins:[n.a],props:{id:[String,Number],crmType:{type:String,default:""}},data:function(){return{loading:!1,loadMoreLoading:!0,isPost:!1,page:1,list:[]}},computed:{},watch:{id:function(t){this.refreshList()}},mounted:function(){var t=this,e=document.getElementById("follow-log-content");e.onscroll=function(){var i=e.scrollTop+e.clientHeight-e.scrollHeight;Math.abs(i)<10&&1==t.loadMoreLoading&&(t.isPost?t.loadMoreLoading=!1:(t.isPost=!0,t.page++,t.getList()))},this.getList()},activated:function(){},deactivated:function(){},methods:{getList:function(){var t=this;this.loading=!0,Object(l.k)({page:this.page,limit:10,types:"crm_"+this.crmType,types_id:this.id,by:"task"}).then(function(e){var i=!0,a=!1,n=void 0;try{for(var o,l=s()(e.data.list);!(i=(o=l.next()).done);i=!0){var c=o.value;5==c.dataInfo.status&&(c.dataInfo.checked=!0)}}catch(t){a=!0,n=t}finally{try{!i&&l.return&&l.return()}finally{if(a)throw n}}t.list=t.list.concat(e.data.list),e.data.list.length<10?t.loadMoreLoading=!1:t.loadMoreLoading=!0,t.loading=!1,t.isPost=!1}).catch(function(){t.isPost=!1,t.loading=!1})},refreshList:function(){this.page=1,this.list=[],this.getList()},taskCellHandle:function(t){var e=this;"view"==t.type&&this.showDetailView(t.data.item,t.data.index,function(){e.$nextTick(function(){document.body.appendChild(e.$refs.taskShade),e.$refs.taskShade.style.zIndex=Object(c.g)(),e.$refs.taskShade.addEventListener("click",e.handleDocumentClick,!1)})})},handleDocumentClick:function(t){t.stopPropagation(),this.$refs.taskShade==t.target&&(this.taskDetailShow=!1)}}},d=(i("hSY+"),i("KHd+")),u=Object(d.a)(r,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("div",{directives:[{name:"empty",rawName:"v-empty",value:0===t.list.length,expression:"list.length === 0"}]},[i("div",{staticClass:"log-items"},[t._l(t.list,function(e,a){return i("task-cell",{key:a,attrs:{data:e.dataInfo,"data-index":a},on:{"on-handle":t.taskCellHandle}})}),t._v(" "),i("div",{staticClass:"load"},[i("el-button",{attrs:{loading:t.loadMoreLoading,type:"text"}},[t._v(t._s(t.loadMoreLoading?"加载更多":"没有更多了"))])],1)],2)]),t._v(" "),t.taskDetailShow?i("div",{ref:"taskShade",staticClass:"full-container"},[i("particulars",{staticClass:"d-view",attrs:{id:t.taskID,"detail-index":t.detailIndex},on:{"on-handle":t.detailHandle,close:t.closeBtn}})],1):t._e()])},[],!1,null,"2aafd5d8",null);u.options.__file="TaskLog.vue";e.a=u.exports},bmHb:function(t,e,i){"use strict";var a=i("3hkp");i.n(a).a},cYid:function(t,e,i){"use strict";var a=i("mX3o"),s=i("EgJF"),n=i("6zBA"),o={name:"RelativeContract",components:{CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-edbf"),i.e("chunk-6861"),i.e("chunk-f93a")]).then(i.bind(null,"uMjE"))},CRMCreateView:s.default},mixins:[a.a],props:{id:[String,Number],crmType:{type:String,default:""},isSeas:{type:Boolean,default:!1},detail:{type:Object,default:function(){return{}}}},data:function(){return{nopermission:!1,list:[],fieldList:[],tableHeight:"400px",showFullDetail:!1,isCreate:!1,contractId:"",createActionInfo:{type:"relative",crmType:this.crmType,data:{}}}},computed:{},watch:{id:function(t){this.list=[],this.getDetail()}},mounted:function(){this.getDetail()},activated:function(){},deactivated:function(){},methods:{getFieldList:function(){this.fieldList.push({prop:"num",width:"200",label:"合同编号"}),this.fieldList.push({prop:"name",width:"200",label:"合同名称"}),this.fieldList.push({prop:"customer_id",width:"200",label:"客户名称"}),this.fieldList.push({prop:"money",width:"200",label:"合同金额"}),this.fieldList.push({prop:"start_time",width:"200",label:"开始日期"}),this.fieldList.push({prop:"end_time",width:"200",label:"结束日期"}),this.fieldList.push({prop:"check_status",width:"200",label:"状态"})},getDetail:function(){var t=this;this.loading=!0;var e={pageType:"all"};e[this.crmType+"_id"]=this.id,Object(n.e)(e).then(function(e){0==t.fieldList.length&&t.getFieldList(),t.nopermission=!1,t.loading=!1,t.list=e.data.list}).catch(function(e){102==e.code&&(t.nopermission=!0),t.loading=!1})},fieldFormatter:function(t,e){return"customer_id"===e.property?t.customer_id_info.name:"check_status"===e.property?this.getStatusName(t.check_status):t[e.property]},getStatusName:function(t){return t>5?"":["待审核","审核中","审核通过","已拒绝","已撤回","未提交"][t]},handleRowClick:function(t,e,i){this.contractId=t.contract_id,this.showFullDetail=!0},headerRowStyle:function(t){t.row,t.column,t.rowIndex,t.columnIndex;return{textAlign:"center"}},cellStyle:function(t){t.row,t.column,t.rowIndex,t.columnIndex;return{textAlign:"center"}},createClick:function(){"business"==this.crmType?(this.createActionInfo.data.customer=this.detail.customer_id_info,this.createActionInfo.data.business=this.detail):"customer"==this.crmType&&(this.createActionInfo.data.customer=this.detail),this.isCreate=!0},createSaveSuccess:function(){this.getDetail()}}},l=(i("I7zE"),i("KHd+")),c=Object(l.a)(o,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"empty",rawName:"v-empty",value:t.nopermission,expression:"nopermission"}],staticClass:"rc-cont",attrs:{"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"}},[t.isSeas?t._e():i("flexbox",{staticClass:"rc-head",attrs:{direction:"row-reverse"}},[i("el-button",{staticClass:"rc-head-item",attrs:{type:"primary"},nativeOn:{click:function(e){return t.createClick(e)}}},[t._v("新建合同\n    ")])],1),t._v(" "),i("el-table",{staticStyle:{width:"100%",border:"1px solid #E6E6E6"},attrs:{data:t.list,height:t.tableHeight,"header-cell-style":t.headerRowStyle,"cell-style":t.cellStyle,stripe:""},on:{"row-click":t.handleRowClick}},t._l(t.fieldList,function(e,a){return i("el-table-column",{key:a,attrs:{prop:e.prop,formatter:t.fieldFormatter,label:e.label,"show-overflow-tooltip":""}})})),t._v(" "),i("c-r-m-full-screen-detail",{attrs:{visible:t.showFullDetail,id:t.contractId,"crm-type":"contract"},on:{"update:visible":function(e){t.showFullDetail=e}}}),t._v(" "),t.isCreate?i("c-r-m-create-view",{attrs:{action:t.createActionInfo,"crm-type":"contract"},on:{"save-success":t.createSaveSuccess,"hiden-view":function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"b56dff82",null);c.options.__file="RelativeContract.vue";e.a=c.exports},cr3f:function(t,e,i){"use strict";var a=i("ejyP");i.n(a).a},csXp:function(t,e,i){"use strict";var a=i("tcwL");i.n(a).a},d0bK:function(t,e,i){"use strict";e.a={components:{},data:function(){return{taskID:"",detailIndex:-1,taskDetailShow:!1}},mounted:function(){},methods:{closeBtn:function(){this.taskDetailShow=!1},showDetailView:function(t,e,i){this.taskID=t.task_id,this.detailIndex=e,this.taskDetailShow=!0,i&&i()},detailHandle:function(t){if(0==t.index||t.index)if("title-check"==t.type)this.$set(this.list[t.index],"checked",t.value);else if("delete"==t.type)this.list.splice(t.index,1);else if("change-stop-time"==t.type){parseInt(t.value)+86399>new Date(new Date).getTime()/1e3?this.list[t.index].is_end=!1:this.list[t.index].is_end=!0,this.list[t.index].stop_time=t.value}else if("change-priority"==t.type)this.list[t.index].priority=t.value.id;else if("change-name"==t.type)this.list[t.index].task_name=t.value;else if("change-comments"==t.type){var e=this.list[t.index].commentcount;"add"==t.value?this.list[t.index].commentcount=e+1:this.list[t.index].commentcount=e-1}else"change-sub-task"==t.type&&(this.list[t.index].subdonecount=t.value.subdonecount,this.list[t.index].subcount=t.value.allcount-t.value.subdonecount)}},deactivated:function(){}}},eDCH:function(t,e,i){"use strict";var a=i("QUdC");i.n(a).a},eWO3:function(t,e,i){},ejyP:function(t,e,i){},fmM0:function(t,e,i){},gLe1:function(t,e,i){"use strict";i.r(e);var a=i("ULJF"),s=i("QbLZ"),n=i.n(s),o=i("Ew9n"),l=i("4tZP"),c={name:"ExamineList",components:{SlideView:o.a,ExamineSection:l.a},props:{request:Function,params:Object,listenerIDs:{type:Array,default:function(){return["crm-main-container"]}},noListenerIDs:{type:Array,default:function(){return[]}},noListenerClass:{type:Array,default:function(){return["el-table__body"]}}},data:function(){return{loading:!1,loadMoreLoading:!0,name:"",totalCount:0,sumData:"",isPost:!1,page:1,list:[]}},computed:{showDes:function(){return this.params.category_id>1&&this.params.category_id<=6},desInfo:function(){return 2==this.params.category_id?"请假总天数":3==this.params.category_id?"出差总天数":4==this.params.category_id?"加班总天数":5==this.params.category_id?"报销总金额":6==this.params.category_id?"借款总金额":""},desUnit:function(){return this.params.category_id>1&&this.params.category_id<=4?"天":"元"}},watch:{params:function(){this.refreshList()}},mounted:function(){var t=this,e=document.getElementById("oa-log-statistics");e.onscroll=function(){var i=e.scrollTop+e.clientHeight-e.scrollHeight;Math.abs(i)<10&&1==t.loadMoreLoading&&(t.isPost?t.loadMoreLoading=!1:(t.isPost=!0,t.page++,t.getList()))},this.getList()},methods:{refreshList:function(){this.page=1,this.list=[],this.name="",this.sumData="",this.totalCount=0,this.getList()},getList:function(){var t=this;this.loading=!0,this.request(n()({page:this.page,limit:15},this.params)).then(function(e){t.name=e.data.categoryName,t.sumData=e.data.sumData,t.list=t.list.concat(e.data.list.list),t.totalCount=e.data.list.dataCount,e.data.list.list.length<15?t.loadMoreLoading=!1:t.loadMoreLoading=!0,t.isPost=!1,t.loading=!1}).catch(function(){t.isPost=!1,t.loading=!1})},hideView:function(){this.$emit("hide")}}},r=(i("lPoO"),i("KHd+")),d=Object(r.a)(c,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("slide-view",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"d-view",attrs:{"listener-ids":t.listenerIDs,"no-listener-ids":t.noListenerIDs,"no-listener-class":t.noListenerClass,"body-style":{padding:0,height:"100%"}},on:{"side-close":t.hideView}},[t.loading?t._e():a("div",{staticClass:"t-section"},[a("span",{staticClass:"t-name"},[t._v(t._s(t.name))]),t._v(" \n    "),a("span",{staticClass:"t-des"},[t._v("("+t._s(t.name)+"申请:"),a("span",{staticClass:"t-value"},[t._v(t._s(t.totalCount)+"次")])]),t._v(" "),t.showDes?a("span",{staticClass:"t-des"},[t._v("    "+t._s(t.desInfo)+":"),a("span",{staticClass:"t-value"},[t._v(t._s(t.sumData+t.desUnit))])]):t._e(),a("span",{staticClass:"t-des"},[t._v(") ")]),t._v(" "),a("img",{staticClass:"t-close",attrs:{src:i("cjwK")},on:{click:t.hideView}})]),t._v(" "),a("examine-section",{staticClass:"t-content",attrs:{id:"oa-log-statistics",list:t.list},on:{handle:t.refreshList}},[a("p",{staticClass:"load",attrs:{slot:"load"},slot:"load"},[a("el-button",{attrs:{loading:t.loadMoreLoading,type:"text"}},[t._v(t._s(t.loadMoreLoading?"加载更多":"没有更多了"))])],1)])],1)},[],!1,null,"6d192302",null);d.options.__file="examineList.vue";var u=d.exports,m={name:"ExamineStatistics",components:{filtrateHandleView:i("gXW+").a,ExamineList:u},data:function(){return{loading:!1,tableHeight:document.documentElement.clientHeight-190,postParams:{},list:[],fieldList:[],indexParams:{},showList:!1}},computed:{indexRequest:function(){return a.b}},mounted:function(){var t=this;window.onresize=function(){t.tableHeight=document.documentElement.clientHeight-190}},methods:{getDataList:function(t){var e=this;this.postParams=t,this.loading=!0,Object(a.c)(t).then(function(t){e.fieldList=e.getFieldList(t.data.category_list||[]),e.list=t.data.userList||[],e.loading=!1}).catch(function(){e.loading=!1})},getFieldList:function(t){return[{name:"员工",width:100,field:"realname"}].concat(t.map(function(t){var e=0;return e=t.name&&t.name.length<=6?15*t.name.length+45:140,{name:t.title,width:e,field:"count_"+t.category_id}}))},fieldFormatter:function(t,e){return t[e.property]||"--"},cellStyle:function(t){var e=t.row,i=t.column;t.rowIndex,t.columnIndex;return"realname"!==i.property&&e[i.property]?{color:"#3E84E9",cursor:"pointer"}:""},handleRowClick:function(t,e,i){if("realname"!==e.property&&t[e.property]){var a=e.property.split("_"),s=a.length>1?a[1]:"",n={user_id:t.id,category_id:s};this.postParams.type?n.type=this.postParams.type:(n.start_time=this.postParams.start_time,n.end_time=this.postParams.end_time),this.indexParams=n,this.showList=!0}},exportExcel:function(){var t=this;this.loading=!0,Object(a.a)(this.postParams).then(function(e){t.loading=!1;var i=new Blob([e.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=document.createElement("a"),s=window.URL.createObjectURL(i);a.href=s,a.download=decodeURI(e.headers["content-disposition"].split("filename=")[1])||"",document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(s)}).catch(function(){t.loading=!1})}}},h=(i("iPBZ"),Object(r.a)(m,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"main-container"},[i("filtrate-handle-view",{staticClass:"filtrate-bar",attrs:{"module-type":"oa"},on:{load:function(e){t.loading=!0},change:t.getDataList}},[i("el-button",{staticClass:"export-button",attrs:{type:"primary"},nativeOn:{click:function(e){return t.exportExcel(e)}}},[t._v("导出")])],1),t._v(" "),i("div",{staticClass:"content"},[i("div",{staticClass:"table-content"},[i("el-table",{attrs:{data:t.list,height:t.tableHeight,"cell-style":t.cellStyle,stripe:"",border:"","show-overflow-tooltip":"","highlight-current-row":""},on:{"row-click":t.handleRowClick}},t._l(t.fieldList,function(e,a){return i("el-table-column",{key:a,attrs:{fixed:0==a,formatter:t.fieldFormatter,prop:e.field,"min-width":e.width,label:e.name,align:"center","header-align":"center"}})}))],1)]),t._v(" "),t.showList?i("examine-list",{attrs:{request:t.indexRequest,params:t.indexParams},on:{hide:function(e){t.showList=!1}}}):t._e()],1)},[],!1,null,"05c17e4e",null));h.options.__file="examine.vue";e.default=h.exports},"gXW+":function(t,e,i){"use strict";var a=i("KTTK"),s=i("UcQx"),n=i("conU"),o=i("uKQN"),l=i("wd/R"),c=i.n(l),r={name:"FiltrateHandleView",components:{timeTypeSelect:o.a},props:{moduleType:{required:!0,type:String},showYearSelect:{default:!1,type:Boolean},showBusinessSelect:{default:!1,type:Boolean},showUserSelect:{default:!0,type:Boolean},showCustomSelect:{default:!1,type:Boolean},customDefault:"",customOptions:{default:function(){return[]},type:Array},showProductSelect:{default:!1,type:Boolean}},data:function(){return{pickerOptions:{disabledDate:function(t){return t.getTime()>Date.now()}},yearValue:"",timeTypeValue:{},structuresProps:{children:"children",label:"label",value:"id"},deptList:[],structuresSelectValue:"",userOptions:[],userSelectValue:"",businessOptions:[],businessStatusValue:"",productValue:[],productOptions:[],customValue:""}},watch:{},mounted:function(){var t=this;this.showCustomSelect&&(this.customValue=this.customDefault),this.showYearSelect&&(this.yearValue=c()(new Date).year().toString()),this.$emit("load"),this.getDeptList(function(){t.showBusinessSelect?t.getBusinessStatusList(function(){t.postFiltrateValue()}):t.postFiltrateValue()}),this.showProductSelect&&this.getProductCategoryIndex()},beforeDestroy:function(){},methods:{customSelectChange:function(){this.$emit("typeChange",this.customValue)},timeTypeChange:function(t){this.timeTypeValue=t},getDeptList:function(t){var e=this;Object(a.c)({m:"bi",c:this.moduleType,a:"read"}).then(function(i){e.deptList=i.data,i.data.length>0?(e.structuresSelectValue=i.data[0].id,e.showUserSelect&&e.getUserList()):e.structuresSelectValue="",t(!0)}).catch(function(){e.$emit("error")})},structuresValueChange:function(t){this.showUserSelect&&(this.userSelectValue="",this.userOptions=[],this.getUserList())},getUserList:function(){var t=this,e={};e.structure_id=this.structuresSelectValue,Object(a.k)(e).then(function(e){t.userOptions=e.data}).catch(function(){t.$emit("error")})},getBusinessStatusList:function(t){var e=this;Object(s.h)().then(function(i){e.businessOptions=i.data,i.data.length>0&&(e.businessStatusValue=i.data[0].type_id),t(!0)}).catch(function(){e.$emit("error")})},getProductCategoryIndex:function(){var t=this;Object(n.v)({type:"tree"}).then(function(e){t.productOptions=e.data}).catch(function(){})},postFiltrateValue:function(){var t={structure_id:this.structuresSelectValue};this.showUserSelect&&(t.user_id=this.userSelectValue),this.showBusinessSelect&&(t.type_id=this.businessStatusValue),this.showProductSelect&&(t.category_id=this.productValue.length>0?this.productValue[this.productValue.length-1]:""),this.showYearSelect?t.year=this.yearValue:"custom"==this.timeTypeValue.type?(t.start_time=this.timeTypeValue.startTime,t.end_time=this.timeTypeValue.endTime):t.type=this.timeTypeValue.value,this.$emit("change",t)}}},d=(i("/Z2C"),i("KHd+")),u=Object(d.a)(r,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"filtrate-content"},[t.showYearSelect?t._e():i("time-type-select",{on:{change:t.timeTypeChange}}),t._v(" "),t.showYearSelect?i("el-date-picker",{attrs:{clearable:!1,"picker-options":t.pickerOptions,type:"year","value-format":"yyyy",placeholder:"选择年"},model:{value:t.yearValue,callback:function(e){t.yearValue=e},expression:"yearValue"}}):t._e(),t._v(" "),i("el-select",{attrs:{placeholder:"选择部门"},on:{change:t.structuresValueChange},model:{value:t.structuresSelectValue,callback:function(e){t.structuresSelectValue=e},expression:"structuresSelectValue"}},t._l(t.deptList,function(t){return i("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),t._v(" "),t.showUserSelect?i("el-select",{attrs:{clearable:!0,placeholder:"选择员工"},model:{value:t.userSelectValue,callback:function(e){t.userSelectValue=e},expression:"userSelectValue"}},t._l(t.userOptions,function(t){return i("el-option",{key:t.id,attrs:{label:t.realname,value:t.id}})})):t._e(),t._v(" "),t.showBusinessSelect?i("el-select",{attrs:{placeholder:"商机组"},model:{value:t.businessStatusValue,callback:function(e){t.businessStatusValue=e},expression:"businessStatusValue"}},t._l(t.businessOptions,function(t){return i("el-option",{key:t.type_id,attrs:{label:t.name,value:t.type_id}})})):t._e(),t._v(" "),t.showProductSelect?i("el-cascader",{staticStyle:{width:"100%"},attrs:{options:t.productOptions,"show-all-levels":!1,props:{children:"children",label:"label",value:"category_id"},"change-on-select":""},model:{value:t.productValue,callback:function(e){t.productValue=e},expression:"productValue"}}):t._e(),t._v(" "),t.showCustomSelect?i("el-select",{attrs:{placeholder:"图标类型"},on:{change:t.customSelectChange},model:{value:t.customValue,callback:function(e){t.customValue=e},expression:"customValue"}},t._l(t.customOptions,function(t){return i("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})):t._e(),t._v(" "),i("el-button",{attrs:{type:"primary"},nativeOn:{click:function(e){t.postFiltrateValue()}}},[t._v("搜索")]),t._v(" "),t._t("default")],2)},[],!1,null,"7c6c0e5c",null);u.options.__file="filtrateHandleView.vue";e.a=u.exports},gYEL:function(t,e,i){},gd5k:function(t,e,i){"use strict";var a=i("Fpl1"),s=i("+zsY"),n=i("KzkL"),o=i("ExMk"),l={name:"ExamineLog",components:{ExamineCell:a.a,CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-edbf"),i.e("chunk-6861"),i.e("chunk-f93a")]).then(i.bind(null,"uMjE"))},ExamineHandle:function(){return i.e("chunk-2cf3").then(i.bind(null,"QhmF"))},ExamineCreateView:s.a},props:{id:[String,Number],crmType:{type:String,default:""}},data:function(){return{loading:!1,loadMoreLoading:!0,isPost:!1,page:1,list:[],rowID:"",showExamineHandle:!1,isCreate:!1,createAction:{type:"save"},createInfo:{},showFullDetail:!1,detailCRMType:""}},computed:{},watch:{id:function(t){this.refreshList()}},mounted:function(){var t=this,e=document.getElementById("follow-log-content");e.onscroll=function(){var i=e.scrollTop+e.clientHeight-e.scrollHeight;Math.abs(i)<10&&1==t.loadMoreLoading&&(t.isPost?t.loadMoreLoading=!1:(t.isPost=!0,t.page++,t.getList()))},this.getList()},activated:function(){},deactivated:function(){},methods:{getList:function(){var t=this;this.loading=!0,Object(n.k)({page:this.page,limit:10,types:"crm_"+this.crmType,types_id:this.id,by:"examine"}).then(function(e){t.list=t.list.concat(e.data.list),e.data.list.length<10?t.loadMoreLoading=!1:t.loadMoreLoading=!0,t.loading=!1,t.isPost=!1}).catch(function(){t.isPost=!1,t.loading=!1})},refreshList:function(){this.page=1,this.list=[],this.getList()},examineCellHandle:function(t){var e=this;"edit"==t.type?(t.data.item.title=t.data.item.category_name,this.createInfo=t.data.item,this.createAction={type:"update",id:t.data.item.examine_id,data:t.data.item},this.isCreate=!0):"delete"==t.type?this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.c)({id:t.data.item.examine_id}).then(function(t){e.refreshList(),e.$message({type:"success",message:"删除成功!"})})}).catch(function(){e.$message({type:"info",message:"已取消删除"})}):"withdraw"==t.type?(this.rowID=t.data.item.examine_id,this.showExamineHandle=!0):"view"==t.type?(this.detailCRMType="examine",this.rowID=t.data.item.examine_id,this.showFullDetail=!0):"related-detail"==t.type&&(this.rowID=t.data.item[t.data.type+"_id"],this.detailCRMType=t.data.type,this.showFullDetail=!0)}}},c=(i("hSjU"),i("KHd+")),r=Object(c.a)(l,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("div",{directives:[{name:"empty",rawName:"v-empty",value:0===t.list.length,expression:"list.length === 0"}]},[i("div",{staticClass:"log-items"},[t._l(t.list,function(e,a){return i("examine-cell",{key:a,attrs:{data:e.dataInfo},on:{"on-handle":t.examineCellHandle}})}),t._v(" "),i("div",{staticClass:"load"},[i("el-button",{attrs:{loading:t.loadMoreLoading,type:"text"}},[t._v(t._s(t.loadMoreLoading?"加载更多":"没有更多了"))])],1)],2)]),t._v(" "),i("examine-handle",{attrs:{show:t.showExamineHandle,id:t.rowID,"examine-type":"oa_examine",status:"2"},on:{close:function(e){t.showExamineHandle=!1},save:t.refreshList}}),t._v(" "),t.isCreate?i("examine-create-view",{attrs:{category_id:t.createInfo.category_id,category_title:t.createInfo.title,action:t.createAction},on:{"save-success":t.refreshList,"hiden-view":function(e){t.isCreate=!1}}}):t._e(),t._v(" "),i("c-r-m-full-screen-detail",{attrs:{visible:t.showFullDetail,"crm-type":t.detailCRMType,id:t.rowID},on:{"update:visible":function(e){t.showFullDetail=e}}})],1)},[],!1,null,"1cf8abec",null);r.options.__file="ExamineLog.vue";e.a=r.exports},gqSe:function(t,e,i){},"hSY+":function(t,e,i){"use strict";var a=i("htha");i.n(a).a},hSjU:function(t,e,i){"use strict";var a=i("gYEL");i.n(a).a},htha:function(t,e,i){},hwcE:function(t,e,i){},i68b:function(t,e,i){"use strict";var a=i("QbLZ"),s=i.n(a),n=i("KzkL"),o=i("L2JU");e.a={data:function(){return{followTypes:[],followType:""}},computed:s()({},Object(o.b)(["oa"]),{showOAPermission:function(){return this.oa}}),created:function(){this.getFollowLogType()},methods:{getFollowLogType:function(){var t=this;this.loading=!0,Object(n.s)().then(function(e){t.loading=!1,t.followTypes=e.data.map(function(t){return{type:t,name:t}}),t.followType=e.data.length>0?e.data[0]:""}).catch(function(){t.loading=!1})}},deactivated:function(){}}},i91G:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjU2RjI0NjM0RTA5QjExRTg4QTE5QjM2OEE1QUE5MUZBIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjU2RjI0NjM1RTA5QjExRTg4QTE5QjM2OEE1QUE5MUZBIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NTZGMjQ2MzJFMDlCMTFFODhBMTlCMzY4QTVBQTkxRkEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTZGMjQ2MzNFMDlCMTFFODhBMTlCMzY4QTVBQTkxRkEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4H2LzoAAAAnklEQVR42mI8c+YMA7WAsbExAxMDlQGygSuA+B8Q/8eD/0HV4QQsSOwwNAtwAZChEcS4kJFIXzES62WqhyFdDESOqH1ocjuwRRQLAQPxRZQHEvsvLKKYKIkAbD5FNvA/kZr/ExuGq5HC6wiauo1I4bWa2IQdDsXYgP+gTTZUN5DYiPpHbDqERRQjAUtXE2sgvojCnnD///8/uCMFIMAAVWsql9WKpTgAAAAASUVORK5CYII="},iPBZ:function(t,e,i){"use strict";var a=i("k+UZ");i.n(a).a},ixqQ:function(t,e,i){"use strict";var a=i("hwcE");i.n(a).a},"k+UZ":function(t,e,i){},lPoO:function(t,e,i){"use strict";var a=i("eWO3");i.n(a).a},ovzS:function(t,e,i){},ppJE:function(t,e,i){"use strict";var a=i("vG5h"),s=i("Ew9n"),n=i("F03V"),o=i("UEWd"),l=i("QJC7"),c=i("8KPp"),r=i("gd5k"),d=i("aQg/"),u=i("y9lt"),m=i("KzkL"),h=i("7Qib"),p=i("i68b"),f={name:"CustomerFollow",components:{MixAdd:o.a,RecordLog:l.a,JournalLog:c.a,ExamineLog:r.a,TaskLog:d.a,ScheduleLog:u.a},mixins:[p.a],props:{id:[String,Number],crmType:{type:String,default:""},isSeas:{type:Boolean,default:!1}},data:function(){return{sendLoading:!1,next_time:"",is_event:!1,logType:"record"}},computed:{logTypes:function(){return this.oa?[{type:"record",name:"跟进记录"},{type:"log",name:"日志"},{type:"examine",name:"审批"},{type:"task",name:"任务"},{type:"schedule",name:"日程"}]:[{type:"record",name:"跟进记录"}]},componentsName:function(){return"record"==this.logType?"RecordLog":"log"==this.logType?"JournalLog":"examine"==this.logType?"ExamineLog":"task"==this.logType?"TaskLog":"schedule"==this.logType?"ScheduleLog":""}},watch:{},mounted:function(){},activated:function(){},deactivated:function(){},methods:{handleTypeDrop:function(t){this.followType=t},logTabsClick:function(t,e){this.logType=t.type},sendInfo:function(){this.$refs.mixadd.$emit("submit-info")},submitInfo:function(t){var e=this;if(!this.is_event||this.next_time){var i={};i.types="crm_"+this.crmType,i.types_id=this.id,i.content=t.content,i.category=this.followType;var a=t.images.map(function(t,e,i){return t.file_id}),s=t.files.map(function(t,e,i){return t.file_id}),n=t.business.map(function(t,e,i){return t.business_id}),o=t.contacts.map(function(t,e,i){return t.contacts_id});i.file_id=a.concat(s),i.business_ids=n,i.contacts_ids=o,this.next_time&&(i.is_event=this.is_event?1:0,i.next_time=Object(h.d)(this.next_time)),this.sendLoading=!0,Object(m.l)(i).then(function(t){e.sendLoading=!1,e.$message.success(t.data),e.$refs.mixadd.resetInfo(),e.is_event=!1,e.next_time="",e.$bus.emit("follow-log-refresh",{type:"record-log"})}).catch(function(){e.sendLoading=!1})}else this.$message.error("请选择下次联系时间")}}},v=(i("6ENb"),i("KHd+")),g=Object(v.a)(f,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"f-container"},[t.isSeas?t._e():i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.sendLoading,expression:"sendLoading"}]},[i("mix-add",{ref:"mixadd",attrs:{"crm-type":t.crmType,id:t.id,"show-relative-business":!0,"show-relative-contacts":!0},on:{"mixadd-info":t.submitInfo}}),t._v(" "),i("flexbox",{staticClass:"se-section"},[i("div",{staticClass:"se-name"},[t._v("记录类型")]),t._v(" "),i("el-dropdown",{staticStyle:{"margin-right":"20px"},attrs:{trigger:"click"},on:{command:t.handleTypeDrop}},[i("flexbox",{staticClass:"se-select"},[i("div",{staticClass:"se-select-name"},[t._v(t._s(t.followType?t.followType:"请选择"))]),t._v(" "),i("i",{staticClass:"el-icon-arrow-down el-icon--right",staticStyle:{color:"#ccc"}})]),t._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.followTypes,function(e,a){return i("el-dropdown-item",{key:a,attrs:{command:e.type}},[t._v(t._s(e.name))])}))],1),t._v(" "),i("div",{staticClass:"se-name"},[t._v("下次联系时间")]),t._v(" "),i("el-date-picker",{staticClass:"se-datepicker",attrs:{"default-value":new Date,editable:!1,type:"datetime",placeholder:"选择日期","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.next_time,callback:function(e){t.next_time=e},expression:"next_time"}}),t._v(" "),t.showOAPermission?i("el-checkbox",{model:{value:t.is_event,callback:function(e){t.is_event=e},expression:"is_event"}},[t._v("添加到日程提醒")]):t._e(),t._v(" "),i("el-button",{staticClass:"se-send",attrs:{type:"primary"},nativeOn:{click:function(e){return t.sendInfo(e)}}},[t._v("发布")])],1)],1),t._v(" "),i("div",{staticClass:"log-cont"},[i("flexbox",{staticStyle:{"border-bottom":"1px solid #E6E6E6"}},t._l(t.logTypes,function(e,a){return i("flexbox",{key:a,staticStyle:{width:"auto"},nativeOn:{click:function(i){t.logTabsClick(e,a)}}},[i("div",{staticClass:"log-tabs-item",style:{color:t.logType==e.type?"#F18C70":"#777"}},[t._v(t._s(e.name))]),t._v(" "),t.logTypes.length-1!=a?i("div",{staticClass:"log-tabs-line"}):t._e()])})),t._v(" "),i("keep-alive",[i(t.componentsName,{tag:"component",attrs:{id:t.id,"crm-type":t.crmType}})],1)],1)])},[],!1,null,"4f588198",null);g.options.__file="CustomerFollow.vue";var _=g.exports,b=i("U05J"),y=i("/U9q"),w=i("5j45"),C=i("cYid"),x=i("+NTD"),k=i("C+sD"),L=i("8DbX"),D=i("DUlf"),I=i("EgJF"),T=i("4+0Q"),S={name:"CustomerDetail",components:{SlideView:s.a,CustomerFollow:_,CRMDetailHead:n.a,CRMBaseInfo:b.a,RelativeContacts:y.a,RelativeBusiness:w.a,RelativeContract:C.a,RelativeReturnMoney:x.a,RelativeFiles:k.a,RelativeHandle:L.a,RelativeTeam:D.a,CRMCreateView:I.default},mixins:[T.a],props:{id:[String,Number],listenerIDs:{type:Array,default:function(){return["crm-main-container"]}},noListenerIDs:{type:Array,default:function(){return[]}},noListenerClass:{type:Array,default:function(){return["el-table__body"]}}},data:function(){return{loading:!1,crmType:"customer",detailData:{},headDetails:[{title:"客户级别",value:""},{title:"成交状态",value:""},{title:"负责人",value:""},{title:"更新时间",value:""}],tabCurrentName:"followlog",isCreate:!1}},computed:{tabName:function(){return"followlog"==this.tabCurrentName?"customer-follow":"basicinfo"==this.tabCurrentName?"c-r-m-base-info":"contacts"==this.tabCurrentName?"relative-contacts":"team"==this.tabCurrentName?"relative-team":"business"==this.tabCurrentName?"relative-business":"contract"==this.tabCurrentName?"relative-contract":"returnedmoney"==this.tabCurrentName?"relative-return-money":"file"==this.tabCurrentName?"relative-files":"operationlog"==this.tabCurrentName?"relative-handle":""},tabnames:function(){var t=[];return t.push({label:"跟进记录",name:"followlog"}),this.crm.customer&&this.crm.customer.read&&t.push({label:"基本信息",name:"basicinfo"}),this.crm.contacts&&this.crm.contacts.index&&t.push({label:"联系人",name:"contacts"}),t.push({label:"相关团队",name:"team"}),this.crm.business&&this.crm.business.index&&t.push({label:"商机",name:"business"}),this.crm.contract&&this.crm.contract.index&&t.push({label:"合同",name:"contract"}),this.crm.receivables&&this.crm.receivables.index&&t.push({label:"回款信息",name:"returnedmoney"}),t.push({label:"附件",name:"file"}),t.push({label:"操作记录",name:"operationlog"}),t},isSeasDetail:function(){return this.detailData&&this.detailData.hasOwnProperty("is_pool")?1==this.detailData.is_pool:this.isSeas}},mounted:function(){},methods:{getDetial:function(){var t=this;this.loading=!0,Object(a.l)({id:this.id}).then(function(e){t.loading=!1,t.detailData=e.data,t.headDetails[0].value=e.data.level,t.headDetails[1].value=e.data.deal_status,t.headDetails[2].value=t.isSeasDetail?"- -":e.data.owner_user_id_info?e.data.owner_user_id_info.realname:"",t.headDetails[3].value=e.data.update_time}).catch(function(e){e&&102==e.code&&(t.hasRequestAuth=!1),t.loading=!1})},hideView:function(){this.$emit("hide-view")},handleClick:function(t,e){},editSaveSuccess:function(){this.$emit("handle",{type:"save-success"}),this.getDetial()}}},R=(i("Yytf"),Object(v.a)(S,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("slide-view",{directives:[{name:"empty",rawName:"v-empty",value:!t.canShowDetail,expression:"!canShowDetail"}],attrs:{"listener-ids":t.listenerIDs,"no-listener-ids":t.noListenerIDs,"no-listener-class":t.noListenerClass,"body-style":{padding:0,height:"100%"},"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"},on:{"side-close":t.hideView}},[t.canShowDetail?i("flexbox",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"d-container",attrs:{direction:"column",align:"stretch"}},[i("c-r-m-detail-head",{attrs:{"is-seas":t.isSeasDetail,detail:t.detailData,"head-details":t.headDetails,id:t.id,"crm-type":"customer"},on:{handle:t.detailHeadHandle,close:t.hideView}}),t._v(" "),i("div",{staticClass:"tabs"},[i("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.tabCurrentName,callback:function(e){t.tabCurrentName=e},expression:"tabCurrentName"}},t._l(t.tabnames,function(t,e){return i("el-tab-pane",{key:e,attrs:{label:t.label,name:t.name}})}))],1),t._v(" "),i("div",{staticClass:"t-loading-content",attrs:{id:"follow-log-content"}},[i("keep-alive",[i(t.tabName,{tag:"component",attrs:{detail:t.detailData,id:t.id,"is-seas":t.isSeasDetail,"crm-type":"customer"}})],1)],1)],1):t._e(),t._v(" "),t.isCreate?i("c-r-m-create-view",{attrs:{action:{type:"update",id:t.id},"crm-type":"customer"},on:{"save-success":t.editSaveSuccess,"hiden-view":function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"5c0d4d52",null));R.options.__file="CustomerDetail.vue";e.a=R.exports},qQF9:function(t,e,i){"use strict";var a=i("gqSe");i.n(a).a},rl4O:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjUzM0EzN0E0RTA5QjExRTg4MTZEOEM2ODYxNjE5QjM3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjUzM0EzN0E1RTA5QjExRTg4MTZEOEM2ODYxNjE5QjM3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NTMzQTM3QTJFMDlCMTFFODgxNkQ4QzY4NjE2MTlCMzciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTMzQTM3QTNFMDlCMTFFODgxNkQ4QzY4NjE2MTlCMzciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7neeY0AAABL0lEQVR42syUv0tCURSA1Vzam5ya+h8ag5DG3GpqqsAiwVFoECJc+jGpCFZrLTpFUjQ7PPwjClxyiCY3+y6cB5fLud0rOXjhG965j++de865L5skSWaRK5dZ8JpHmIUG/MAA1v4jNLIWVKAO6/CmSWOFO3AAJbiCLVjVpLHCV9iAF3ke+6S5wDFr8Az78Ons29LHkNDImnAO3/AAZeU9I+3AZhrI/9EAU7Nd6egIbuEJJk5tL2RPzVCTpfGZ0qieZF/TMvTJzmT+TqzsbFnZ/pidYUORHcKNzF87JHMzPJXUB1ZsBY6gGyNzhUM4lhEYS6ztqZkqc4+8B1N4h4LSgH5I5gq/YFuRprL7kEwbm4kjrYrsLkbmuymp9AMu4VpGZhZz6fOeuJEWl+KP/SvAAHR5UyjSji44AAAAAElFTkSuQmCC"},sAYG:function(t,e,i){},tcwL:function(t,e,i){},tgh5:function(t,e,i){"use strict";var a=i("NUF6");i.n(a).a},u7bZ:function(t,e,i){},uKQN:function(t,e,i){"use strict";var a=i("7Qib"),s={name:"TimeTypeSelect",props:{defaultType:Object},data:function(){return{selectType:{label:"本年",value:"year"},showTypePopover:!1,showCustomContent:!1,sureCustomContent:!1,startTime:"",endTime:"",typeOptions:[{label:"今天",value:"today"},{label:"昨天",value:"yesterday"},{label:"本周",value:"week"},{label:"上周",value:"lastWeek"},{label:"本月",value:"month"},{label:"上月",value:"lastMonth"},{label:"本季度",value:"quarter"},{label:"上季度",value:"lastQuarter"},{label:"本年",value:"year"},{label:"去年",value:"lastYear"}]}},computed:{iconClass:function(){return this.showTypePopover?"arrow-up":"arrow-down"},typeShowValue:function(){return this.sureCustomContent?this.startTime||this.endTime?(this.startTime||"")+"-"+(this.endTime||""):"":this.selectType.label}},mounted:function(){this.defaultType?this.selectType=this.defaultType:this.$emit("change",{type:"default",value:this.selectType.value})},methods:{typeSelectClick:function(t){this.showTypePopover=!1,this.sureCustomContent=!1,this.showCustomContent=!1,this.selectType=t,this.$emit("change",{type:"default",value:this.selectType.value})},customSureClick:function(){this.startTime&&this.endTime&&(this.sureCustomContent=!0,this.showTypePopover=!1,this.$emit("change",{type:"custom",startTime:Object(a.d)(this.startTime),endTime:Object(a.d)(this.endTime)}))}}},n=(i("ubXe"),i("KHd+")),o=Object(n.a)(s,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-popover",{attrs:{placement:"bottom",width:"200","popper-class":"no-padding-popover",trigger:"click"},model:{value:t.showTypePopover,callback:function(e){t.showTypePopover=e},expression:"showTypePopover"}},[i("div",{staticClass:"type-popper"},[i("div",{staticClass:"type-content"},[t._l(t.typeOptions,function(e,a){return i("div",{key:a,staticClass:"type-content-item",class:{selected:t.selectType.value==e.value&&!t.showCustomContent},on:{click:function(i){t.typeSelectClick(e)}}},[i("div",{staticClass:"mark"}),t._v(t._s(e.label)+"\n      ")])}),t._v(" "),i("div",{staticClass:"type-content-item",class:{selected:t.showCustomContent},on:{click:function(e){t.showCustomContent=!0}}},[i("div",{staticClass:"mark"}),t._v("自定义\n      ")])],2),t._v(" "),t.showCustomContent?i("div",{staticClass:"type-content-custom"},[i("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:t.startTime,callback:function(e){t.startTime=e},expression:"startTime"}}),t._v(" "),i("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:t.endTime,callback:function(e){t.endTime=e},expression:"endTime"}}),t._v(" "),i("el-button",{on:{click:t.customSureClick}},[t._v("确定")])],1):t._e()]),t._v(" "),i("el-input",{staticClass:"type-select",attrs:{slot:"reference",readonly:!0,placeholder:"请选择选择"},slot:"reference",model:{value:t.typeShowValue,callback:function(e){t.typeShowValue=e},expression:"typeShowValue"}},[i("i",{class:["el-input__icon","el-icon-"+t.iconClass],attrs:{slot:"suffix"},slot:"suffix"})])],1)},[],!1,null,"7314d766",null);o.options.__file="index.vue";e.a=o.exports},ubXe:function(t,e,i){"use strict";var a=i("u7bZ");i.n(a).a},ukN3:function(t,e,i){"use strict";var a=i("QwyR");i.n(a).a},wktz:function(t,e,i){"use strict";var a=i("SoCr");i.n(a).a},woiz:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjhGQTE4Q0EzRjM4ODExRThCNjlDOEQxMEUxMzYwREE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjhGQTE4Q0E0RjM4ODExRThCNjlDOEQxMEUxMzYwREE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OEZBMThDQTFGMzg4MTFFOEI2OUM4RDEwRTEzNjBEQTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6OEZBMThDQTJGMzg4MTFFOEI2OUM4RDEwRTEzNjBEQTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4R34ZtAAABfUlEQVR42pzUPUsDQRDG8eTQVBZiQhqxU6KoWKiFhaAQ21gqQcXGTxDFSsRKBOMXsBGi+NLFlBYighbmClGLgFZiE1+wECGd/4HnZDmSIA78uNzN7LC3t5touVyOhKINS5jGIDrwgTsUsYsvd4AXapBFBaPIoxdRXfN6XlHdb7Q4v9exgAz8UPNXlGQYJ+jBhtskqwZjqEaah6+6azxh39MabGPmDw2CqKp+B+3WZBHnCFb4UuqFm7P6M8x5WoNCqDjaZBZuzsZlbE36nVlYjDdpEM7dYsBmksBb5H/xjrinHwknUUOswaCY8kHEbbw1uceIk3jWHqgX9vzFuR/CgzU5xbyTONTGqxdroY9g44rWZA+Tzmw20Ykj9KFVV7vvwpbqrH4q2Gx2mFZUlMQ30jojJeVLuk8rn1R9Dp/Btj9AN660E329Ur3XsrNzrNcqhA+gHaZHrdGF1sbX549r+rOYwKq9RqO/AptRCjdY1n9ITV8wp02ZchtY/AgwAM3YV79CKIEGAAAAAElFTkSuQmCC"},y9lt:function(t,e,i){"use strict";var a=i("FyfS"),s=i.n(a),n=i("KzkL"),o={name:"FollowScheduleCell",components:{},filters:{getRemindtypeText:function(t){switch(t){case 0:return"无";case 1:return"准时提醒";case 2:return"5分钟前";case 3:return"15分钟前";case 4:return"30分钟前";case 5:return"一个小时前";case 6:return"二个小时前";case 7:return"一天前";case 8:return"二天前";case 9:return"一周前"}return""}},props:{data:Object},data:function(){return{}},computed:{},mounted:function(){},methods:{checkRelatedDetail:function(t,e){this.$emit("on-handle",{type:"related-detail",data:{type:t,item:e}})},handleCommand:function(t){this.$emit("on-handle",{type:t,data:{item:this.data}})}}},l=(i("UHbi"),i("KHd+")),c=Object(l.a)(o,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"fl-c"},[a("flexbox",{staticClass:"fl-h"},[a("div",{directives:[{name:"photo",rawName:"v-photo",value:t.data.create_user_info,expression:"data.create_user_info"},{name:"lazy",rawName:"v-lazy:background-image",value:t.$options.filters.filterUserLazyImg(t.data.create_user_info.thumb_img),expression:"$options.filters.filterUserLazyImg(data.create_user_info.thumb_img)",arg:"background-image"}],key:t.data.create_user_info.thumb_img,staticClass:"div-photo fl-h-img"}),t._v(" "),a("div",{staticClass:"fl-h-b"},[a("div",{staticClass:"fl-h-name"},[t._v(t._s(t.data.create_user_info.realname))]),t._v(" "),a("div",{staticClass:"fl-h-time"},[t._v(t._s(t._f("filterTimestampToFormatTime")(t.data.create_time)))])]),t._v(" "),a("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[a("i",{staticClass:"el-icon-arrow-down el-icon-more",staticStyle:{color:"#CDCDCD"}}),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"edit"}},[t._v("编辑")]),t._v(" "),a("el-dropdown-item",{attrs:{command:"delete"}},[t._v("删除")])],1)],1)],1),t._v(" "),a("div",{staticClass:"fl-b"},[a("div",[a("div",{staticClass:"state-color",style:{"background-color":t.data.color?t.data.color:"#fff"}}),t._v(t._s(t.data.title)+"\n    ")]),t._v(" "),a("div",{staticClass:"fl-b-des"},[a("flexbox",{staticClass:"fl-b-des-item"},[a("div",{staticClass:"fl-b-des-item-name"},[t._v("参与人:")]),t._v(" "),a("div",{staticClass:"owner-list"},t._l(t.data.ownerList,function(e,i){return a("span",{key:i},[a("el-tooltip",{attrs:{placement:"bottom",effect:"light","popper-class":"tooltip-change-border"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(e.realname))])]),t._v(" "),a("div",{directives:[{name:"photo",rawName:"v-photo",value:e,expression:"k"},{name:"lazy",rawName:"v-lazy:background-image",value:t.$options.filters.filterUserLazyImg(e.thumb_img),expression:"$options.filters.filterUserLazyImg(k.thumb_img)",arg:"background-image"}],key:e.thumb_img,staticClass:"div-photo header-circle"})])],1)}))]),t._v(" "),a("flexbox",{staticClass:"fl-b-des-item"},[a("div",{staticClass:"fl-b-des-item-name"},[t._v("开始时间:")]),t._v(" "),a("div",[t._v(t._s(t._f("moment")(t.data.start_time,"YYYY-MM-DD HH:mm:ss")))])]),t._v(" "),a("flexbox",{staticClass:"fl-b-des-item"},[a("div",{staticClass:"fl-b-des-item-name"},[t._v("结束时间:")]),t._v(" "),a("div",[t._v(t._s(t._f("moment")(t.data.end_time,"YYYY-MM-DD HH:mm:ss")))])]),t._v(" "),a("flexbox",{staticClass:"fl-b-des-item"},[a("div",{staticClass:"fl-b-des-item-name"},[t._v("备注:")]),t._v(" "),a("div",[t._v(t._s(t.data.remark))])])],1),t._v(" "),t.data.contactsList.length>0||t.data.customerList.length>0||t.data.businessList.length>0||t.data.contractList.length>0?a("div",{staticClass:"related-business"},[a("div",{staticClass:"label"},[t._v("关联业务")]),t._v(" "),t._l(t.data.contactsList,function(e,s){return a("p",{key:"contacts"+s,on:{click:function(i){t.checkRelatedDetail("contacts",e)}}},[a("img",{attrs:{src:i("AFlK"),alt:""}}),t._v("\n        联系人-"+t._s(e.name)+"\n      ")])}),t._v(" "),t._l(t.data.customerList,function(e,s){return a("p",{key:"customer"+s,on:{click:function(i){t.checkRelatedDetail("customer",e)}}},[a("img",{attrs:{src:i("AFlK"),alt:""}}),t._v("\n        客户-"+t._s(e.name)+"\n      ")])}),t._v(" "),t._l(t.data.businessList,function(e,s){return a("p",{key:"business"+s,on:{click:function(i){t.checkRelatedDetail("business",e)}}},[a("img",{attrs:{src:i("AFlK"),alt:""}}),t._v("\n        商机-"+t._s(e.name)+"\n      ")])}),t._v(" "),t._l(t.data.contractList,function(e,s){return a("p",{key:"contract"+s,on:{click:function(i){t.checkRelatedDetail("contract",e)}}},[a("img",{attrs:{src:i("AFlK"),alt:""}}),t._v("\n        合同-"+t._s(e.name)+"\n      ")])})],2):t._e()])],1)},[],!1,null,"9d312f0a",null);c.options.__file="FollowScheduleCell.vue";var r=c.exports,d=i("Dh/N"),u=i("BuGm"),m=i("7Qib"),h={name:"ScheduleLog",components:{FollowScheduleCell:r,CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-edbf"),i.e("chunk-6861"),i.e("chunk-f93a")]).then(i.bind(null,"uMjE"))},CreateSchedule:u.default},props:{id:[String,Number],crmType:{type:String,default:""}},data:function(){return{loading:!1,loadMoreLoading:!0,isPost:!1,page:1,list:[],showFullDetail:!1,detailCRMType:"",rowID:"",showDialog:!1,formData:{checkList:[]},newtext:""}},computed:{},watch:{id:function(t){this.refreshList()}},mounted:function(){var t=this,e=document.getElementById("follow-log-content");e.onscroll=function(){var i=e.scrollTop+e.clientHeight-e.scrollHeight;Math.abs(i)<10&&1==t.loadMoreLoading&&(t.isPost?t.loadMoreLoading=!1:(t.isPost=!0,t.page++,t.getList()))},this.getList()},activated:function(){},deactivated:function(){},methods:{getList:function(){var t=this;this.loading=!0,Object(n.k)({page:this.page,limit:10,types:"crm_"+this.crmType,types_id:this.id,by:"event"}).then(function(e){t.list=t.list.concat(e.data.list),e.data.list.length<10?t.loadMoreLoading=!1:t.loadMoreLoading=!0,t.loading=!1,t.isPost=!1}).catch(function(){t.isPost=!1,t.loading=!1})},refreshList:function(){this.page=1,this.list=[],this.getList()},examineCellHandle:function(t){var e=this;if("edit"==t.type){this.newText="编辑日程";var i=t.data.item;i.start_time=Object(m.e)(i.start_time),i.end_time=Object(m.e)(i.end_time),i.owner_user_ids=[];var a=!0,n=!1,o=void 0;try{for(var l,c=s()(i.ownerList);!(a=(l=c.next()).done);a=!0){var r=l.value;i.owner_user_ids.push(r.owner_id)}}catch(t){n=!0,o=t}finally{try{!a&&c.return&&c.return()}finally{if(n)throw o}}this.formData=i,this.showDialog=!0}else"delete"==t.type?this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(d.b)({event_id:t.data.item.event_id}).then(function(t){e.refreshList(),e.$message({type:"success",message:"删除成功!"})})}).catch(function(){e.$message({type:"info",message:"已取消删除"})}):"related-detail"==t.type&&(this.rowID=t.data.item[t.data.type+"_id"],this.detailCRMType=t.data.type,this.showFullDetail=!0)},onSubmit:function(t,e){this.refreshList(),"创建日程"==this.newText?(this.$message.success("新建成功"),this.showDialog=!1):(this.$message.success("编辑成功"),this.showDialog=!1)}}},p=(i("2P4K"),Object(l.a)(h,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("div",{directives:[{name:"empty",rawName:"v-empty",value:0===t.list.length,expression:"list.length === 0"}]},[i("div",{staticClass:"log-items"},[t._l(t.list,function(e,a){return i("follow-schedule-cell",{key:a,attrs:{data:e.dataInfo},on:{"on-handle":t.examineCellHandle}})}),t._v(" "),i("div",{staticClass:"load"},[i("el-button",{attrs:{loading:t.loadMoreLoading,type:"text"}},[t._v(t._s(t.loadMoreLoading?"加载更多":"没有更多了"))])],1)],2)]),t._v(" "),i("c-r-m-full-screen-detail",{attrs:{visible:t.showFullDetail,"crm-type":t.detailCRMType,id:t.rowID},on:{"update:visible":function(e){t.showFullDetail=e}}}),t._v(" "),t.showDialog?i("create-schedule",{attrs:{text:t.newText,"form-data":t.formData,"append-to-body":!0},on:{onSubmit:t.onSubmit,closeDialog:function(e){t.showDialog=!1}}}):t._e()],1)},[],!1,null,"50a649f8",null));p.options.__file="ScheduleLog.vue";e.a=p.exports},zBZy:function(t,e,i){"use strict";var a=i("GJP/");i.n(a).a},"zxr/":function(t,e,i){}}]);