You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wkcrm/static/js/chunk-9e99.6e7ce8be.js

1 line
44 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-9e99"],{"0dur":function(e,t,a){"use strict";var i=a("zhwh"),n=a("Ew9n"),s=a("raay"),l=a("w4ZA"),c=a("3gPr"),o=a("CjUg"),r=a("8OTK"),d=a("h59h"),u=a("f6dm"),m={name:"VisitDetail",components:{SlideView:n.a,CRMDetailHead:s.a,CRMEditBaseInfo:l.a,RelativeFiles:c.a,RelativeHandle:o.a,CRMAllCreate:r.default,Sections:d.a},mixins:[u.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:"visit",headDetails:[{title:"客户名称",value:""},{title:"回访时间",value:""},{title:"回访人",value:""},{title:"回访形式",value:""}],tabCurrentName:"CRMEditBaseInfo",isCreate:!1}},computed:{tabNames:function(){return[{label:"详细资料",name:"CRMEditBaseInfo"},{label:this.getTabName("附件",this.tabsNumber.fileCount),name:"RelativeFiles"},{label:"操作记录",name:"RelativeHandle"}]}},mounted:function(){},methods:{getDetial:function(){var e=this;this.loading=!0,Object(i.d)({id:this.id}).then(function(t){e.loading=!1,e.detailData=t.data,e.headDetails[0].value=t.data.customer_name,e.headDetails[1].value=t.data.visit_time,e.headDetails[2].value=t.data.owner_user_name,e.headDetails[3].value=t.data.shape}).catch(function(){e.loading=!1,e.hideView()})},hideView:function(){this.$emit("hide-view")},editSaveSuccess:function(){this.$emit("handle",{type:"save-success"}),this.getDetial()},previewImage:function(e,t){this.$bus.emit("preview-image-bus",{index:t,data:e})}}},h=(a("tPTb"),a("KHd+")),v=Object(h.a)(m,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("slide-view",{directives:[{name:"empty",rawName:"v-empty",value:!e.canShowDetail,expression:"!canShowDetail"}],attrs:{"listener-ids":e.listenerIDs,"no-listener-ids":e.noListenerIDs,"no-listener-class":e.noListenerClass,"body-style":{padding:0,height:"100%"},"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"},on:{afterEnter:e.viewAfterEnter,close:e.hideView}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"crmDetailMain",staticClass:"detail-main"},[e.canShowDetail&&e.detailData?a("flexbox",{staticClass:"d-container",attrs:{direction:"column",align:"stretch"}},[a("c-r-m-detail-head",{attrs:{detail:e.detailData,"head-details":e.headDetails,id:e.id,"crm-type":e.crmType},on:{handle:e.detailHeadHandle,close:e.hideView}}),e._v(" "),a("flexbox",{staticClass:"d-container-bd",attrs:{align:"stretch"}},[a("el-tabs",{staticClass:"d-container-bd--left",attrs:{type:"border-card"},model:{value:e.tabCurrentName,callback:function(t){e.tabCurrentName=t},expression:"tabCurrentName"}},e._l(e.tabNames,function(t,i){return a("el-tab-pane",{key:i,attrs:{label:t.label,name:t.name,lazy:""}},[a(t.name,{tag:"component",attrs:{detail:e.detailData,id:e.id,"crm-type":e.crmType}})],1)}))],1)],1):e._e()],1),e._v(" "),e.isCreate?a("c-r-m-all-create",{attrs:{action:{type:"update",id:e.id,batchId:e.detailData.batchId,editDetail:e.detailData},"crm-type":e.crmType},on:{"save-success":e.editSaveSuccess,close:function(t){e.isCreate=!1}}}):e._e()],1)},[],!1,null,"1000b537",null);v.options.__file="Detail.vue";t.a=v.exports},"0obv":function(e,t,a){"use strict";var i=a("GTvT");a.n(i).a},"2/Ty":function(e,t,a){},"3ojK":function(e,t,a){"use strict";var i=a("c2Co"),n=a("4XAY"),s=(a("ZoMv"),a("Ew9n")),l=a("raay"),c=a("eOwn"),o=a("BzA1"),r=a("w4ZA"),d=a("3gPr"),u=a("CjUg"),m=a("8OTK"),h=a("f6dm"),v={name:"LeadsDetail",components:{SlideView:s.a,CRMDetailHead:l.a,Activity:c.a,CRMEditBaseInfo:r.a,RelativeFiles:d.a,RelativeHandle:u.a,ImportInfo:o.a,CRMAllCreate:m.default},mixins:[h.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:"leads",headDetails:[{title:"姓名",value:""},{title:"线索来源",value:""},{title:"手机",value:""},{title:"负责人",value:""},{title:"创建时间",value:""}],tabCurrentName:"Activity",isCreate:!1,showImportInfo:!0,importList:[]}},computed:{activityHandle:function(){var e=[];return this.canCreateFollowRecord&&(e=[{type:"log",label:"写跟进"}]),e},tabNames:function(){return[{label:"活动",name:"Activity"},{label:"详细资料",name:"CRMEditBaseInfo"},{label:this.getTabName("附件",this.tabsNumber.fileCount),name:"RelativeFiles"},{label:"操作记录",name:"RelativeHandle"}]}},mounted:function(){},methods:{getDetial:function(){var e=this;this.loading=!0,Object(i.i)({id:this.id}).then(function(t){e.detailData=t.data,e.headDetails[0].value=t.data.name,e.headDetails[1].value=t.data.source,e.headDetails[2].value=t.data.mobile,e.headDetails[3].value=t.data.owner_user_id_info.realname||"",e.headDetails[4].value=t.data.create_time,e.loading=!1}).catch(function(){e.loading=!1,e.hideView()}),this.getBaseInfo()},getBaseInfo:function(){var e=this;this.loading=!0,Object(n.y)({id:this.id,types:"crm_"+this.crmType,action_id:this.id,module:"crm",controller:this.crmType,action:"read",system:1}).then(function(t){e.importList=t.data,e.loading=!1}).catch(function(){e.loading=!1})},hideView:function(){this.$emit("hide-view")}}},f=(a("Hb/7"),a("KHd+")),b=Object(f.a)(v,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("slide-view",{directives:[{name:"empty",rawName:"v-empty",value:!e.canShowDetail,expression:"!canShowDetail"}],attrs:{"listener-ids":e.listenerIDs,"no-listener-ids":e.noListenerIDs,"no-listener-class":e.noListenerClass,"body-style":{padding:0,height:"100%"},"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"},on:{afterEnter:e.viewAfterEnter,close:e.hideView}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"crmDetailMain",staticClass:"detail-main"},[e.canShowDetail&&e.detailData?a("flexbox",{staticClass:"d-container",attrs:{direction:"column",align:"stretch"}},[a("c-r-m-detail-head",{attrs:{detail:e.detailData,"head-details":e.headDetails,id:e.id,"crm-type":e.crmType},on:{handle:e.detailHeadHandle,close:e.hideView}},[a("template",{slot:"name"},[a("el-tooltip",{attrs:{content:0==e.detailData.star?"添加关注":"取消关注",effect:"dark",placement:"top"}},[a("i",{staticClass:"wk wk-focus-on focus-icon",class:{active:0!=e.detailData.star},on:{click:function(t){e.toggleStar()}}})])],1)],2),e._v(" "),a("flexbox",{staticClass:"d-container-bd",attrs:{align:"stretch"}},[a("el-tabs",{staticClass:"d-container-bd--left",attrs:{type:"border-card"},model:{value:e.tabCurrentName,callback:function(t){e.tabCurrentName=t},expression:"tabCurrentName"}},e._l(e.tabNames,function(t,i){return a("el-tab-pane",{key:i,attrs:{label:t.label,name:t.name,lazy:""}},[a(t.name,{tag:"component",attrs:{detail:e.detailData,id:e.id,handle:e.activityHandle,"crm-type":e.crmType}})],1)})),e._v(" "),a("transition",{attrs:{name:"slide-fade"}},[a("el-tabs",{directives:[{name:"show",rawName:"v-show",value:e.showImportInfo,expression:"showImportInfo"}],staticClass:"d-container-bd--right",attrs:{value:"chiefly-contacts",type:"border-card"}},[a("el-tab-pane",{attrs:{label:"重要信息",name:"chiefly-contacts",lazy:""}},[a("import-info",{staticClass:"import-info",attrs:{list:e.importList}})],1)],1)],1)],1)],1):e._e()],1),e._v(" "),a("el-button",{staticClass:"firse-button",on:{click:function(t){e.showImportInfo=!e.showImportInfo}}},[e._v("重"),a("br"),e._v("要"),a("br"),e._v("信"),a("br"),e._v("息"),a("br"),a("i",{staticClass:"el-icon-arrow-right el-icon--right",class:{"is-reverse":!e.showImportInfo}})]),e._v(" "),e.isCreate?a("c-r-m-all-create",{attrs:{action:{type:"update",id:e.id,batchId:e.detailData.batchId},"crm-type":e.crmType},on:{"save-success":e.editSaveSuccess,close:function(t){e.isCreate=!1}}}):e._e()],1)},[],!1,null,"402ea8b2",null);b.options.__file="Detail.vue";t.a=b.exports},"4q81":function(e,t,a){"use strict";var i=a("Rsh9");a.n(i).a},"5OAf":function(e,t,a){},ALhW:function(e,t,a){"use strict";var i=a("1DpC"),n=a("Ew9n"),s=a("raay"),l=a("w4ZA"),c=a("3gPr"),o=a("CjUg"),r=a("RE/G"),d=a("8OTK"),u=a("3biH"),m=a("f6dm"),h=a("jHPx"),v={name:"ReceivablesDetail",components:{SlideView:n.a,CRMDetailHead:s.a,CRMEditBaseInfo:l.a,RelativeFiles:c.a,RelativeHandle:o.a,RelativePrint:r.a,ExamineInfo:u.a,CRMAllCreate:d.default},mixins:[m.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:"receivables",name:"",headDetails:[{title:"客户名称",value:""},{title:"合同金额",value:""},{title:"合同名称",value:""},{title:"回款日期",value:""},{title:"回款金额",value:""},{title:"负责人",value:""}],tabCurrentName:"CRMEditBaseInfo",isCreate:!1}},computed:{tabNames:function(){return[{label:"详细资料",name:"CRMEditBaseInfo"},{label:this.getTabName("附件",this.tabsNumber.fileCount),name:"RelativeFiles"},{label:"操作记录",name:"RelativeHandle"}]}},mounted:function(){},methods:{getDetial:function(){var e=this;this.loading=!0,Object(i.i)({id:this.id}).then(function(t){e.loading=!1,e.name=t.data.number,e.detailData=t.data,e.headDetails[0].value=t.data.customer_id_info.name,e.headDetails[1].value=Object(h.h)(t.data.contract_id_info.money||0),e.headDetails[2].value=t.data.contract_id_info.name,e.headDetails[3].value=t.data.return_time,e.headDetails[4].value=Object(h.h)(t.data.money||0),e.headDetails[5].value=t.data.owner_user_name}).catch(function(){e.loading=!1,e.hideView()})},hideView:function(){this.$emit("hide-view")},examineHandle:function(){this.$emit("handle",{type:"examine"})}}},f=(a("l5fv"),a("KHd+")),b=Object(f.a)(v,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("slide-view",{directives:[{name:"empty",rawName:"v-empty",value:!e.canShowDetail,expression:"!canShowDetail"}],attrs:{"listener-ids":e.listenerIDs,"no-listener-ids":e.noListenerIDs,"no-listener-class":e.noListenerClass,"body-style":{padding:0,height:"100%"},"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"},on:{afterEnter:e.viewAfterEnter,close:e.hideView}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"crmDetailMain",staticClass:"detail-main"},[e.canShowDetail&&e.detailData?a("flexbox",{staticClass:"d-container",attrs:{direction:"column",align:"stretch"}},[a("c-r-m-detail-head",{attrs:{detail:e.detailData,"head-details":e.headDetails,id:e.id,"crm-type":e.crmType},on:{handle:e.detailHeadHandle,close:e.hideView}}),e._v(" "),e.detailData.flow_id?a("examine-info",{staticClass:"examine-info",attrs:{id:e.id,"record-id":e.detailData.flow_id,"owner-user-id":e.detailData.owner_user_id,"examine-type":"crm_receivables"},on:{"on-handle":e.examineHandle}}):e._e(),e._v(" "),a("div",{staticClass:"d-container-bd"},[a("el-tabs",{staticClass:"d-container-bd--left",attrs:{type:"border-card"},model:{value:e.tabCurrentName,callback:function(t){e.tabCurrentName=t},expression:"tabCurrentName"}},e._l(e.tabNames,function(t,i){return a("el-tab-pane",{key:i,attrs:{label:t.label,name:t.name,lazy:""}},[a(t.name,{tag:"component",attrs:{detail:e.detailData,id:e.id,"crm-type":e.crmType}})],1)}))],1)],1):e._e()],1),e._v(" "),e.isCreate?a("c-r-m-all-create",{attrs:{action:{type:"update",id:e.id,batchId:e.detailData.batchId},"crm-type":e.crmType},on:{"save-success":e.editSaveSuccess,close:function(t){e.isCreate=!1}}}):e._e()],1)},[],!1,null,"01a39834",null);b.options.__file="Detail.vue";t.a=b.exports},GTvT:function(e,t,a){},"Hb/7":function(e,t,a){"use strict";var i=a("5OAf");a.n(i).a},IHqA:function(e,t,a){},K7vC:function(e,t,a){},Rsh9:function(e,t,a){},Wp0z:function(e,t,a){},"fB/9":function(e,t,a){"use strict";var i=a("K7vC");a.n(i).a},fMrA:function(e,t,a){"use strict";var i=a("2/Ty");a.n(i).a},gmGe:function(e,t,a){"use strict";var i=a("IHqA");a.n(i).a},gwiD:function(e,t,a){"use strict";var i=a("AAeT"),n=a("Ew9n"),s=a("raay"),l=a("eOwn"),c=a("7Dod"),o=(a("ZoMv"),a("4XAY")),r={name:"ContactsImport",components:{ImportInfo:a("BzA1").a},props:{id:[Number,String],customerId:[Number,String]},data:function(){return{loading:!1,detail:null,list:[]}},computed:{hasInfo:function(){return this.id&&this.customerId},isDeal:function(){return 1==this.detail.dealStatus},dealIcon:function(){return this.isDeal?"wk wk-success":"wk wk-close"},dealName:function(){return this.isDeal?"已成交":"未成交"}},watch:{customerId:function(){this.detail=null,this.list=[],this.getDetial()},id:function(){this.detail=null,this.list=[],this.getDetial()}},created:function(){var e=this;this.$bus.on("crm-detail-update",function(t){e.getBaseInfo()})},mounted:function(){this.getDetial()},beforeDestroy:function(){this.$bus.off("crm-detail-update")},methods:{getDetial:function(){var e=this;this.hasInfo&&(this.loading=!0,Object(c.D)({id:this.customerId}).then(function(t){e.loading=!1,e.detail=t.data}).catch(function(){e.loading=!1}),this.getBaseInfo())},getBaseInfo:function(){var e=this;this.loading=!0,Object(o.y)({id:this.id,types:"crm_contacts",action_id:this.id,module:"crm",controller:"contacts",action:"read",system:1}).then(function(t){e.list=t.data,e.loading=!1}).catch(function(){e.loading=!1})}}},d=(a("fB/9"),a("KHd+")),u=Object(d.a)(r,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"contacts-import"},[e.detail?i("flexbox",{staticClass:"cell",attrs:{align:"stretch"}},[i("img",{staticClass:"cell-hd",attrs:{src:a("wfwE")}}),e._v(" "),i("div",{staticClass:"cell-bd"},[i("p",{staticClass:"cell-bd__name"},[i("span",[e._v(e._s(e.detail.name))])]),e._v(" "),i("div",{staticClass:"cell-bd__detail"},[i("i",{staticClass:"wk wk-circle-iphone"}),e._v(" "),e.detail.mobile?i("span",[e._v(e._s(e.detail.mobile))]):i("span",{staticClass:"no-data"},[e._v("暂无电话")]),e._v(" "),i("div",{staticClass:"deal-info"},[i("span",{class:["mark",e.isDeal?"mark-suc":"mark-un"]},[i("i",{class:e.dealIcon}),e._v(e._s(e.dealName))])])])])]):e._e(),e._v(" "),e.list.length?i("import-info",{attrs:{list:e.list}}):e._e()],1)},[],!1,null,"7dbf44b5",null);u.options.__file="ContactsImport.vue";var m=u.exports,h=a("w4ZA"),v=a("QUqu"),f=a("CjUg"),b=a("3gPr"),p=a("8OTK"),y=a("f6dm"),g={name:"ContactsDetail",components:{SlideView:n.a,CRMDetailHead:s.a,Activity:l.a,CRMEditBaseInfo:h.a,RelativeBusiness:v.a,RelativeHandle:f.a,RelativeFiles:b.a,CRMAllCreate:p.default,ContactsImport:m},mixins:[y.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:"contacts",headDetails:[{title:"客户名称",value:""},{title:"职务",value:""},{title:"手机",value:""},{title:"创建时间",value:""}],tabCurrentName:"Activity",isCreate:!1,showImportInfo:!0}},computed:{activityHandle:function(){var e=[{type:"task",label:"创建任务"},{type:"business",label:"创建商机"},{type:"contract",label:"创建合同"},{type:"receivables",label:"创建回款"}];return this.canCreateFollowRecord&&(e=[{type:"log",label:"写跟进"}].concat(e)),e},tabNames:function(){var e=[];return e.push({label:"活动",name:"Activity"}),this.crm.contacts&&this.crm.contacts.read&&e.push({label:"详细资料",name:"CRMEditBaseInfo"}),this.crm.business&&this.crm.business.index&&e.push({label:this.getTabName("商机",this.tabsNumber.businessCount),name:"RelativeBusiness"}),e.push({label:this.getTabName("附件",this.tabsNumber.fileCount),name:"RelativeFiles"}),e.push({label:"操作记录",name:"RelativeHandle"}),e},logTyps:function(){return[{icon:"all",color:"#2362FB",command:"",label:"全部活动"},{icon:"contacts",color:"#27BA4A",command:3,label:"联系人"},{icon:"o-task",color:"#D376FF",command:11,label:"任务"},{icon:"log",color:"#5864FF",command:8,label:"日志"},{icon:"approve",color:"#9376FF",command:9,label:"审批"}]},customerId:function(){return this.detailData&&this.detailData.customer_id||""}},mounted:function(){},methods:{getDetial:function(){var e=this;this.loading=!0,Object(i.j)({id:this.id}).then(function(t){e.loading=!1,e.detailData=t.data,e.headDetails[0].value=t.data.customer_name,e.headDetails[1].value=t.data.post,e.headDetails[2].value=t.data.mobile,e.headDetails[3].value=t.data.create_time}).catch(function(){e.loading=!1,e.hideView()})},hideView:function(){this.$emit("hide-view")}}},_=(a("gmGe"),Object(d.a)(g,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("slide-view",{directives:[{name:"empty",rawName:"v-empty",value:!e.canShowDetail,expression:"!canShowDetail"}],attrs:{"listener-ids":e.listenerIDs,"no-listener-ids":e.noListenerIDs,"no-listener-class":e.noListenerClass,"body-style":{padding:0,height:"100%"},"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"},on:{afterEnter:e.viewAfterEnter,close:e.hideView}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"crmDetailMain",staticClass:"detail-main"},[e.canShowDetail&&e.detailData?a("flexbox",{staticClass:"d-container",attrs:{direction:"column",align:"stretch"}},[a("c-r-m-detail-head",{attrs:{detail:e.detailData,"head-details":e.headDetails,id:e.id,"crm-type":e.crmType},on:{handle:e.detailHeadHandle,close:e.hideView}},[a("template",{slot:"name"},[a("el-tooltip",{attrs:{content:0==e.detailData.star?"添加关注":"取消关注",effect:"dark",placement:"top"}},[a("i",{staticClass:"wk wk-focus-on focus-icon",class:{active:0!=e.detailData.star},on:{click:function(t){e.toggleStar()}}})])],1)],2),e._v(" "),a("flexbox",{staticClass:"d-container-bd",attrs:{align:"stretch"}},[a("el-tabs",{staticClass:"d-container-bd--left",attrs:{type:"border-card"},model:{value:e.tabCurrentName,callback:function(t){e.tabCurrentName=t},expression:"tabCurrentName"}},e._l(e.tabNames,function(t,i){return a("el-tab-pane",{key:i,attrs:{label:t.label,name:t.name,lazy:""}},[a(t.name,{tag:"component",attrs:{detail:e.detailData,"type-list":e.logTyps,id:e.id,handle:e.activityHandle,"crm-type":e.crmType}})],1)})),e._v(" "),a("transition",{attrs:{name:"slide-fade"}},[a("el-tabs",{directives:[{name:"show",rawName:"v-show",value:e.showImportInfo,expression:"showImportInfo"}],staticClass:"d-container-bd--right",attrs:{value:"chiefly-contacts",type:"border-card"}},[a("el-tab-pane",{attrs:{label:"重要信息",name:"chiefly-contacts",lazy:""}},[a("contacts-import",{attrs:{id:e.id,"customer-id":e.customerId}})],1)],1)],1)],1)],1):e._e()],1),e._v(" "),a("el-button",{staticClass:"firse-button",on:{click:function(t){e.showImportInfo=!e.showImportInfo}}},[e._v("重"),a("br"),e._v("要"),a("br"),e._v("信"),a("br"),e._v("息"),a("br"),a("i",{staticClass:"el-icon-arrow-right el-icon--right",class:{"is-reverse":!e.showImportInfo}})]),e._v(" "),e.isCreate?a("c-r-m-all-create",{attrs:{action:{type:"update",id:e.id,batchId:e.detailData.batchId},"crm-type":e.crmType},on:{"save-success":e.editSaveSuccess,close:function(t){e.isCreate=!1}}}):e._e()],1)},[],!1,null,"8f619b7a",null));_.options.__file="Detail.vue";t.a=_.exports},k4Fl:function(e,t,a){},l5fv:function(e,t,a){"use strict";var i=a("Wp0z");a.n(i).a},mv0S:function(e,t,a){},onbw:function(e,t,a){"use strict";var i=a("mv0S");a.n(i).a},tPTb:function(e,t,a){"use strict";var i=a("k4Fl");a.n(i).a},uSKd:function(e,t,a){"use strict";var i=a("VcMt"),n=a("Ew9n"),s=a("raay"),l=a("ZoMv"),c=a("h59h"),o=a("4XAY"),r=a("Vm8M"),d=a("u2hk"),u=a("dAOq"),m=a("jHPx"),h=a("a/5N"),v=a("7Qib"),f={name:"CRMBaseInfo",components:{Sections:c.a,MapView:r.a,FileListView:d.a,CRMFullScreenDetail:function(){return Promise.all([a.e("chunk-7a7a"),a.e("chunk-1409"),a.e("chunk-4ee54a")]).then(a.bind(null,"3z7q"))}},filters:{arrayValue:function(e,t){return e&&"[object Array]"===Object.prototype.toString.call(e)?e.map(function(e){return t?e[t]:e}).join(""):""}},mixins:[u.a],props:{id:[String,Number],poolId:[String,Number],detail:{type:Object,default:function(){return{}}},crmType:{type:String,default:""},filedList:Array},data:function(){return{loading:!1,list:[],showMapView:!1,mapViewInfo:{},showFullDetail:!1,fullDetailId:"",fullDetailType:""}},inject:["rootTabs"],computed:{},watch:{id:function(e){this.filedList||this.getBaseInfo(!0)},filedList:function(){this.list=this.filedList},"rootTabs.currentName":function(e){"CRMBaseInfo"===e&&(this.filedList||this.getBaseInfo(!1))}},created:function(){var e=this;this.$bus.on("crm-detail-update",function(t){e.filedList||e.getBaseInfo(!1)})},beforeDestroy:function(){this.$bus.off("crm-detail-update")},mounted:function(){this.filedList?this.list=this.filedList:this.getBaseInfo(!0)},methods:{getBaseInfo:function(e){var t=this;this.loading=!!e;var a={types:l.a[this.crmType],id:this.id};this.poolId&&(a.poolId=this.poolId),Object(o.y)(a).then(function(e){var a=[],i=[];e.data.forEach(function(e){"floatnumber"===e.formType?e.value=Object(m.h)(e.value):"date"===e.formType&&(e.value=Object(v.r)(e.value)),1==e.sysInformation?i.push(e):a.push(e)}),t.list=[{name:"基本信息",list:a},{name:"系统信息",list:i}],t.loading=!1}).catch(function(){t.loading=!1})},checkMapView:function(e){e.value&&""!==e.value&&(this.mapViewInfo={title:e.value.location,lat:e.value.lat,lng:e.value.lng},this.showMapView=!0)},getArrayKey:function(e){return"structure"===e?"name":"user"===e?"realname":""},isModule:function(e){return["customer","business","contract","contacts","category","statusName","typeName"].includes(e.formType)},getShowBlock:function(e){return["map_address","file"].includes(e)},getModuleName:function(e){var t={customer:"customerName",business:"businessName",contract:"contractNum",contacts:"contactsName",category:"categoryName",statusName:"statusName",typeName:"typeName"}[e.formType];return e.value?e.value[t]:""},checkModuleDetail:function(e){Object(h.c)(e.value)&&(this.fullDetailType=e.formType,this.fullDetailId=e.value[e.formType+"Id"],this.showFullDetail=!0)}}},b=(a("4q81"),a("KHd+")),p=Object(b.a)(f,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"b-cont"},[a("div",[e._l(e.list,function(t,i){return a("sections",{key:i,staticClass:"b-cells",attrs:{title:t.name,"content-height":"auto"}},[a("flexbox",{staticStyle:{padding:"10px 8px 0"},attrs:{gutter:0,align:"stretch",wrap:"wrap"}},e._l(t.list,function(t,i){return a("flexbox-item",{key:i,class:{"b-cell":"map_address"!==t.formType},attrs:{span:e.getShowBlock(t.formType)?12:.5}},["map_address"===t.formType?a("flexbox",{attrs:{gutter:0,wrap:"wrap"}},[a("flexbox-item",{staticClass:"b-cell",attrs:{span:.5},nativeOn:{click:function(a){e.checkMapView(t)}}},[a("flexbox",{staticClass:"b-cell-b",attrs:{align:"stretch"}},[a("div",{staticClass:"b-cell-name"},[e._v("定位")]),e._v(" "),a("div",{staticClass:"b-cell-value",staticStyle:{color:"#3E84E9",cursor:"pointer"}},[e._v(e._s(t.value.location))])])],1),e._v(" "),a("flexbox-item",{staticClass:"b-cell",attrs:{span:.5}},[a("flexbox",{staticClass:"b-cell-b",attrs:{align:"stretch"}},[a("div",{staticClass:"b-cell-name"},[e._v("区域")]),e._v(" "),a("div",{staticClass:"b-cell-value"},[e._v(e._s(t.value.address))])])],1),e._v(" "),a("flexbox-item",{staticClass:"b-cell",attrs:{span:.5}},[a("flexbox",{staticClass:"b-cell-b",attrs:{align:"stretch"}},[a("div",{staticClass:"b-cell-name"},[e._v("详细地址")]),e._v(" "),a("div",{staticClass:"b-cell-value"},[e._v(e._s(t.value.detailAddress))])])],1)],1):"single_user"===t.formType?a("flexbox",{staticClass:"b-cell-b",attrs:{align:"stretch"}},[a("div",{staticClass:"b-cell-name"},[e._v(e._s(t.name))]),e._v(" "),a("div",{staticClass:"b-cell-value"},[e._v(e._s(t.value?t.value.realname:""))])]):e.isModule(t)?a("flexbox",{staticClass:"b-cell-b",attrs:{align:"stretch"}},[a("div",{staticClass:"b-cell-name"},[e._v(e._s(t.name))]),e._v(" "),a("div",{staticClass:"b-cell-value can-check",on:{click:function(a){e.checkModuleDetail(t)}}},[e._v(e._s(e.getModuleName(t)))])]):"checkbox"===t.formType||"structure"===t.formType||"user"===t.formType?a("flexbox",{staticClass:"b-cell-b",attrs:{align:"stretch"}},[a("div",{staticClass:"b-cell-name"},[e._v(e._s(t.name))]),e._v(" "),a("div",{staticClass:"b-cell-value"},[e._v(e._s(e._f("arrayValue")(t.value,e.getArrayKey(t.formType))))])]):"file"===t.formType?a("flexbox",{staticClass:"b-cell-b",attrs:{align:"stretch"}},[a("div",{staticClass:"b-cell-name"},[e._v(e._s(t.name))]),e._v(" "),a("div",{staticClass:"b-cell-value"},[a("file-list-view",{attrs:{list:t.value||[]}})],1)]):"check_status"===t.formType?a("flexbox",{staticClass:"b-cell-b",attrs:{align:"stretch"}},[a("div",{staticClass:"b-cell-name"},[e._v(e._s(t.name))]),e._v(" "),a("div",{staticClass:"b-cell-value"},[e._v(e._s(e.getStatusName(t.value)))])]):a("flexbox",{staticClass:"b-cell-b",attrs:{align:"stretch"}},[a("div",{staticClass:"b-cell-name"},[e._v(e._s(t.name))]),e._v(" "),a("div",{staticClass:"b-cell-value"},[e._v(e._s(t.value))])])],1)}))],1)}),e._v(" "),e._t("default")],2),e._v(" "),e.showMapView?a("map-view",{attrs:{title:e.mapViewInfo.title,lat:e.mapViewInfo.lat,lng:e.mapViewInfo.lng},on:{hidden:function(t){e.showMapView=!1}}}):e._e(),e._v(" "),a("c-r-m-full-screen-detail",{attrs:{visible:e.showFullDetail,id:e.fullDetailId,"crm-type":e.fullDetailType},on:{"update:visible":function(t){e.showFullDetail=t}}})],1)},[],!1,null,"0d2f3444",null);p.options.__file="CRMBaseInfo.vue";var y=p.exports,g=a("3gPr"),_=a("CjUg"),C=a("3biH"),D=a("ROSF"),w=a("f6dm"),I={name:"InvoiceDetail",components:{SlideView:n.a,CRMDetailHead:s.a,CRMBaseInfo:y,RelativeFiles:g.a,RelativeHandle:_.a,ExamineInfo:C.a,Create:D.a},mixins:[w.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:"invoice",name:"",headDetails:[{title:"客户名称",value:""},{title:"开票金额",value:""},{title:"发票号码",value:""},{title:"实际开票日期",value:""}],tabCurrentName:"CRMBaseInfo",baseDetailList:[],isCreate:!1}},computed:{tabNames:function(){return[{label:"详细资料",name:"CRMBaseInfo"},{label:this.getTabName("附件",this.tabsNumber.fileCount),name:"RelativeFiles"},{label:"操作记录",name:"RelativeHandle"}]}},mounted:function(){},methods:{viewAfterEnter:function(){this.getDetial()},getDetial:function(){var e=this;this.loading=!0,Object(i.g)({id:this.id}).then(function(t){e.loading=!1,e.name=t.data.invoice_number,e.detailData=t.data,e.getBaseList(t.data),e.headDetails[0].value=t.data.customer_name,e.headDetails[1].value=Object(m.h)(t.data.invoice_money||0),e.headDetails[2].value=t.data.invoice_number,e.headDetails[3].value=t.data.real_invoice_date}).catch(function(){e.loading=!1,e.hideView()})},getBaseList:function(e){this.baseDetailList=[{name:"基本信息",list:[{name:"发票申请编号",formType:"text",value:e.essential.invoice_apple_number},{name:"客户名称",value:e.essential.customer_name},{name:"合同编号",value:e.essential.contract_number},{name:"合同金额",value:e.essential.contract_money},{name:"开票金额(元)",value:e.essential.invoice_money},{name:"开票日期",value:e.essential.create_time},{name:"开票类型",value:{1:"增值税专用发票",2:"增值税普通发票",3:"国税通用机打发票",4:"地税通用机打发票",5:"收据"}[e.essential.invoice_type]},{name:"备注",value:e.essential.remark},{name:"创建人",value:e.essential.create_user_name},{name:"负责人",value:e.essential.owner_user_name},{name:"创建时间",value:e.essential.create_time},{name:"更新时间",value:e.essential.update_time}]},{name:"发票信息",list:[{name:"抬头类型",value:{1:"单位",2:"个人"}[e.invoice.title_type]},{name:"开票抬头",value:e.invoice.invoice_title},{name:"纳税人识别号",value:e.invoice.tax_number},{name:"开户行",value:e.invoice.deposit_bank},{name:"开户账号",value:e.invoice.deposit_account},{name:"开票地址",value:e.invoice.deposit_address},{name:"电话",value:e.invoice.phone}]},{name:"邮寄信息",list:[{name:"联系人",value:e.posting.contacts_name},{name:"联系方式",value:e.posting.contacts_mobile},{name:"邮寄地址",value:e.posting.contacts_address}]}]},hideView:function(){this.$emit("hide-view")},editSaveSuccess:function(){this.$emit("handle",{type:"save-success"}),this.getDetial()},examineHandle:function(){this.$emit("handle",{type:"examine"})}}},x=(a("0obv"),Object(b.a)(I,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("slide-view",{directives:[{name:"empty",rawName:"v-empty",value:!e.canShowDetail,expression:"!canShowDetail"}],attrs:{"listener-ids":e.listenerIDs,"no-listener-ids":e.noListenerIDs,"no-listener-class":e.noListenerClass,"body-style":{padding:0,height:"100%"},"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"},on:{afterEnter:e.viewAfterEnter,close:e.hideView}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"crmDetailMain",staticClass:"detail-main"},[e.canShowDetail&&e.detailData?a("flexbox",{staticClass:"d-container",attrs:{direction:"column",align:"stretch"}},[a("c-r-m-detail-head",{attrs:{detail:e.detailData,"head-details":e.headDetails,id:e.id,"crm-type":e.crmType},on:{handle:e.detailHeadHandle,close:e.hideView}}),e._v(" "),e.detailData.flow_id?a("examine-info",{staticClass:"examine-info",attrs:{id:e.id,"record-id":e.detailData.flow_id,"owner-user-id":e.detailData.owner_user_id,"examine-type":"crm_invoice"},on:{"on-handle":e.examineHandle}}):e._e(),e._v(" "),a("div",{staticClass:"d-container-bd"},[a("el-tabs",{staticClass:"d-container-bd--left",attrs:{type:"border-card"},model:{value:e.tabCurrentName,callback:function(t){e.tabCurrentName=t},expression:"tabCurrentName"}},e._l(e.tabNames,function(t,i){return a("el-tab-pane",{key:i,attrs:{label:t.label,name:t.name,lazy:""}},[a(t.name,{tag:"component",attrs:{detail:e.detailData,id:e.id,"crm-type":e.crmType,"filed-list":e.baseDetailList}})],1)}))],1)],1):e._e()],1),e._v(" "),e.isCreate?a("create",{attrs:{detail:e.detailData},on:{"save-success":e.editSaveSuccess,close:function(t){e.isCreate=!1}}}):e._e()],1)},[],!1,null,"6097713d",null));x.options.__file="Detail.vue";t.a=x.exports},"vV2+":function(e,t,a){"use strict";var i=a("ERJp"),n=a("Ew9n"),s=a("raay"),l=a("eOwn"),c=a("gTyn"),o=a("w4ZA"),r=a("J7m9"),d=a("f2Lb"),u=a("CjUg"),m=a("RDgq"),h=a("cnnj"),v=a("3gPr"),f=a("RE/G"),b=a("8OTK"),p=a("f6dm"),y=a("jHPx"),g={name:"BusinessDetail",components:{SlideView:n.a,CRMDetailHead:s.a,Activity:l.a,ChieflyContacts:c.a,CRMEditBaseInfo:o.a,RelativeContract:r.a,RelativeContacts:d.a,RelativeHandle:u.a,RelativeTeam:m.a,RelativeProduct:h.a,RelativeFiles:v.a,RelativePrint:f.a,CRMAllCreate:b.default},mixins:[p.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:"business",headDetails:[{title:"客户名称",value:""},{title:"商机金额(元)",value:""},{title:"商机组",value:""},{title:"负责人",value:""},{title:"创建时间",value:""}],tabCurrentName:"Activity",status:[],statuHandleItems:[{name:"赢单",type:1,value:"100%",img:a("y4JV")},{name:"输单",type:2,value:"0%",img:a("migV")},{name:"无效",type:3,value:"0%",img:a("x8Bg")}],isCreate:!1,showImportInfo:!0,firstContactsId:""}},computed:{activityHandle:function(){var e=[{type:"task",label:"创建任务"},{type:"contacts",label:"创建联系人"},{type:"contract",label:"创建合同"},{type:"receivables",label:"创建回款"}];return this.canCreateFollowRecord&&(e=[{type:"log",label:"写跟进"}].concat(e)),e},tabNames:function(){var e=[];return e.push({label:"活动",name:"Activity"}),this.crm.business&&this.crm.business.read&&e.push({label:"详细资料",name:"CRMEditBaseInfo"}),this.crm.contacts&&this.crm.contacts.index&&e.push({label:this.getTabName("联系人",this.tabsNumber.contactCount),name:"RelativeContacts"}),this.crm.contract&&this.crm.contract.index&&e.push({label:this.getTabName("合同",this.tabsNumber.contractCount),name:"RelativeContract"}),this.crm.product&&this.crm.product.index&&e.push({label:this.getTabName("产品",this.tabsNumber.productCount),name:"RelativeProduct"}),e.push({label:this.getTabName("团队成员",this.tabsNumber.memberCount),name:"RelativeTeam"}),e.push({label:this.getTabName("附件",this.tabsNumber.fileCount),name:"RelativeFiles"}),e.push({label:"操作记录",name:"RelativeHandle"}),e},logTyps:function(){return[{icon:"all",color:"#2362FB",command:"",label:"全部活动"},{icon:"customer",color:"#487DFF",command:2,label:"客户"},{icon:"o-task",color:"#D376FF",command:11,label:"任务"},{icon:"business",color:"#FB9323",command:5,label:"商机"},{icon:"contract",color:"#FD5B4A",command:6,label:"合同"},{icon:"contacts",color:"#27BA4A",command:3,label:"联系人"},{icon:"receivables",color:"#FFB940",command:7,label:"回款"},{icon:"log",color:"#5864FF",command:8,label:"日志"},{icon:"approve",color:"#9376FF",command:9,label:"审批"}]}},mounted:function(){},methods:{getDetial:function(){var e=this;this.firstContactsId="",this.loading=!0,Object(i.l)({id:this.id}).then(function(t){e.loading=!1,e.detailData=t.data,e.firstContactsId=e.detailData.contacts_id,e.headDetails[0].value=t.data.customer_id_info.name;var a=t.data.money||0;e.headDetails[1].value=a>0?Object(y.h)(a):"",e.headDetails[2].value=t.data.type_id_info,e.headDetails[3].value=t.data.owner_user_name,e.headDetails[4].value=t.data.create_time,e.handleBusinessStatus(t.data.is_end,t.data.status_id,t.data.status_list.status,t.data.statusRemark)}).catch(function(){e.loading=!1,e.hideView()})},getBusinessStatusById:function(){var e=this;this.loading=!0,Object(i.s)({business_id:this.id}).then(function(t){e.loading=!1;var a=t.data[0];e.handleBusinessStatus(a.is_end,a.statusId,a.statusList,a.statusRemark)}).catch(function(){e.loading=!1})},hideView:function(){this.$emit("hide-view")},handleBusinessStatus:function(e,t,a,i){if(this.status=[],a&&a.length>0){for(var n=0==e,s=-1,l=0;l<a.length;l++){var c=a[l];n?c.status_id==t?(s=l,c.class="state-suc"):c.class=s>=0?"state-undo":"state-suc":c.status_id==t?(s=l,c.class="state-suc"):c.class=s>=0?"state-invalid":"state-suc",this.status.push(c)}var o={type:e};0==e?(o.name="结束",o.overIcon=["el-icon-arrow-down","el-icon--right"],s==a.length-1?o.class="state-doing":(this.status.length>0&&0!=t&&(this.status[s+1].class="state-doing"),o.class="state-undo")):1==e?(o.name="赢单",o.title="赢单",o.detail="赢单率100%",o.overIcon=["el-icon-check","el-icon--right"],o.class="state-suc"):2==e?(o.name="输单",o.title="赢单率0%",o.detail=i,o.overIcon=["el-icon-circle-close","el-icon--right"],o.class="state-fail"):3==e&&(o.name="无效",o.title="赢单率0%",o.detail=i,o.overIcon=["el-icon-remove-outline","el-icon--right"],o.class="state-invalid"),this.status.push(o)}},handleStatuChange:function(e,t){var a=this;if(0==this.detailData.is_end&&!e.isdoing){var n="确定进入"+e.name+"阶段";this.$confirm(n,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.loading=!0,Object(i.a)({business_id:a.id,status_id:e.status_id}).then(function(e){a.loading=!1,a.$message.success("操作成功"),a.getDetial()}).catch(function(){a.loading=!1})}).catch(function(){})}},handleStatuResult:function(e,t){var a=this;if(0==this.detailData.is_end)if(2==e.type||3==e.type){var n="请填写"+e.name+"原因:",s=e.name+"原因";this.$prompt(n,s,{inputType:"text",confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(t){var n=t.value;a.loading=!0,Object(i.a)({business_id:a.id,status_id:e.status_id,is_end:e.type,statusRemark:n}).then(function(e){a.loading=!1,a.$message.success("操作成功"),a.getDetial()}).catch(function(){a.loading=!1})}).catch(function(){})}else this.$confirm("确定将当前商机设为"+e.name+"吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.loading=!0,Object(i.a)({business_id:a.id,status_id:e.status_id,is_end:e.type}).then(function(e){a.loading=!1,a.$message.success("操作成功"),a.getDetial()}).catch(function(){a.loading=!1})}).catch(function(){})}}},_=(a("onbw"),a("KHd+")),C=Object(_.a)(g,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("slide-view",{directives:[{name:"empty",rawName:"v-empty",value:!e.canShowDetail,expression:"!canShowDetail"}],attrs:{"listener-ids":e.listenerIDs,"no-listener-ids":e.noListenerIDs,"no-listener-class":e.noListenerClass,"body-style":{padding:0,height:"100%"},"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"},on:{afterEnter:e.viewAfterEnter,close:e.hideView}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"crmDetailMain",staticClass:"detail-main"},[e.canShowDetail&&e.detailData?a("flexbox",{staticClass:"d-container",attrs:{direction:"column",align:"stretch"}},[a("c-r-m-detail-head",{attrs:{detail:e.detailData,"head-details":e.headDetails,id:e.id,"crm-type":e.crmType},on:{handle:e.detailHeadHandle,close:e.hideView}},[a("template",{slot:"name"},[a("el-tooltip",{attrs:{content:0==e.detailData.star?"添加关注":"取消关注",effect:"dark",placement:"top"}},[a("i",{staticClass:"wk wk-focus-on focus-icon",class:{active:0!=e.detailData.star},on:{click:function(t){e.toggleStar()}}})])],1)],2),e._v(" "),e.status.length>0?a("div",{staticClass:"busi-state-main"},[a("flexbox",{staticClass:"busi-state",style:{opacity:(e.detailData.is_end,1)}},e._l(e.status,function(t,i){return a("a",{key:i},[a("el-popover",{attrs:{title:t.name,content:"赢单率"+t.rate+"%",placement:"bottom",width:"150",trigger:"hover"}},[e.status.length-1!=i?a("div",{staticClass:"busi-state-item",class:t.class,attrs:{slot:"reference"},on:{click:function(a){e.handleStatuChange(t,i)}},slot:"reference"},[e._v("\n "+e._s(t.name)+"\n "),0==i?a("div",{staticClass:"state-circle circle-left"}):e._e(),e._v(" "),0!=i?a("div",{staticClass:"state-arrow arrow-left"}):e._e(),e._v(" "),a("div",{staticClass:"state-arrow arrow-right"})]):e._e()]),e._v(" "),e.status.length-1==i?a("el-popover",{attrs:{title:0==t.type?"":t.title,content:0==t.type?"":t.detail,placement:"bottom",width:"150",trigger:"hover"}},[0==t.type?a("div",{staticClass:"state-handel-cont"},e._l(e.statuHandleItems,function(t,i){return a("flexbox",{key:i,staticClass:"state-handel-item",nativeOn:{click:function(a){e.handleStatuResult(t,i)}}},[a("img",{staticClass:"state-handel-item-img",attrs:{src:t.img||t.thumb_img}}),e._v(" "),a("div",{staticClass:"state-handel-item-name"},[e._v(e._s(t.name))]),e._v(" "),a("div",{staticClass:"state-handel-item-value"},[e._v(e._s(t.value))])])})):e._e(),e._v(" "),a("div",{staticClass:"busi-state-item",class:t.class,attrs:{slot:"reference"},slot:"reference"},[a("i",{class:t.overIcon,staticStyle:{"margin-right":"8px"}}),e._v("\n "+e._s(t.name)+"\n "),a("div",{staticClass:"state-arrow arrow-left"}),e._v(" "),a("div",{staticClass:"state-circle circle-right"})])]):e._e()],1)}))],1):e._e(),e._v(" "),a("flexbox",{staticClass:"d-container-bd",attrs:{align:"stretch"}},[a("el-tabs",{staticClass:"d-container-bd--left",attrs:{type:"border-card"},model:{value:e.tabCurrentName,callback:function(t){e.tabCurrentName=t},expression:"tabCurrentName"}},e._l(e.tabNames,function(t,i){return a("el-tab-pane",{key:i,attrs:{label:t.label,name:t.name,lazy:""}},[a(t.name,{tag:"component",attrs:{detail:e.detailData,"type-list":e.logTyps,id:e.id,handle:e.activityHandle,"crm-type":e.crmType,"contacts-id":e.firstContactsId},on:{"update:contactsId":function(t){e.firstContactsId=t},"on-handle":e.detailHeadHandle}})],1)})),e._v(" "),a("transition",{attrs:{name:"slide-fade"}},[a("el-tabs",{directives:[{name:"show",rawName:"v-show",value:e.showImportInfo,expression:"showImportInfo"}],staticClass:"d-container-bd--right",attrs:{value:"chiefly-contacts",type:"border-card"}},[a("el-tab-pane",{attrs:{label:"重要信息",name:"chiefly-contacts",lazy:""}},[a("chiefly-contacts",{attrs:{"contacts-id":e.firstContactsId,id:e.id,"crm-type":e.crmType}})],1)],1)],1)],1)],1):e._e()],1),e._v(" "),a("el-button",{staticClass:"firse-button",on:{click:function(t){e.showImportInfo=!e.showImportInfo}}},[e._v("重"),a("br"),e._v("要"),a("br"),e._v("信"),a("br"),e._v("息"),a("br"),a("i",{staticClass:"el-icon-arrow-right el-icon--right",class:{"is-reverse":!e.showImportInfo}})]),e._v(" "),e.isCreate?a("c-r-m-all-create",{attrs:{action:{type:"update",id:e.id,batchId:e.detailData.batchId},"crm-type":e.crmType},on:{"save-success":e.editSaveSuccess,close:function(t){e.isCreate=!1}}}):e._e()],1)},[],!1,null,"b3fe8112",null);C.options.__file="Detail.vue";t.a=C.exports},x8Bg:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkJGQkE4RTNGNDE2NTExRTlBREMyQzM3QjE2QkFDODFCIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkJGQkE4RTQwNDE2NTExRTlBREMyQzM3QjE2QkFDODFCIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QkZCQThFM0Q0MTY1MTFFOUFEQzJDMzdCMTZCQUM4MUIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QkZCQThFM0U0MTY1MTFFOUFEQzJDMzdCMTZCQUM4MUIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4PPbYiAAABIklEQVR42mI8c+YMAxbABsQBUGwJxFJA/AuInwDxeSBeD8QboWIogAWLYYFA3AXEKlgs0YDiSCC+A8TlQLwOWRETEpsZiDuhClQYCAOQmrVQPczYXNgGxGUMpAOYnnJkF4aQaRiyoSEwA0Fh089AOZgAMgtkYCgQy1DBQGkgDmOCJg1qgQCQgaZUNNAEFMsSyCLq6uoMPDw8ROn+8uULw82bN5GFJJmwpXZKAMiFz4GYFyaAZiOp4DnIhZeo6MAzIAM3UNHADSADV0NLEUrBU5BZsEgpooKBhUD8E5aXQa7spsCwbqgZKMVXJRBPIcOwqVC9GOXhXyDOhZYad4gw6A60HMiB6sVZYoMKzc1QxaDS2xia8WEBfxZaBazGlikAAgwA3vc6LEJJ7+0AAAAASUVORK5CYII="},yPq4:function(e,t,a){"use strict";var i=a("7Qib"),n=a("3ojK"),s=a("1bNe"),l=a("gwiD"),c=a("vV2+"),o=a("mVxz"),r=a("tMlD"),d=a("ALhW"),u=a("0dur"),m=a("uSKd"),h={name:"CRMAllDetail",components:{LeadsDetail:n.a,CustomerDetail:s.a,ContactsDetail:l.a,BusinessDetail:c.a,ContractDetail:o.a,ProductDetail:r.a,ReceivablesDetail:d.a,VisitDetail:u.a,InvoiceDetail:m.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(e){"leads"==this.crmType?this.tabName="LeadsDetail":"customer"==this.crmType?this.tabName="CustomerDetail":"contacts"==this.crmType?this.tabName="ContactsDetail":"business"==this.crmType?this.tabName="BusinessDetail":"contract"==this.crmType?this.tabName="ContractDetail":"product"==this.crmType?this.tabName="ProductDetail":"receivables"==this.crmType?this.tabName="ReceivablesDetail":"visit"==this.crmType?this.tabName="VisitDetail":"invoice"==this.crmType?this.tabName="InvoiceDetail":this.tabName=""}},mounted:function(){this.visible&&(document.body.appendChild(this.$el),this.$el.style.zIndex=Object(i.q)())},destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},methods:{hiddenView:function(){this.$emit("update:visible",!1)},detailHandle:function(e){"alloc"!==e.type&&"get"!==e.type&&"transfer"!==e.type&&"transform"!==e.type&&"delete"!==e.type&&"put_seas"!==e.type||this.hiddenView(),this.$emit("handle",e)}}},v=(a("fMrA"),a("KHd+")),f=Object(v.a)(h,function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.id&&e.visible?a(e.tabName,{tag:"component",staticClass:"d-view",attrs:{"crm-type":e.crmType,id:e.id,"listener-ids":e.listenerIDs,"no-listener-ids":e.noListenerIDs,"no-listener-class":e.noListenerClass},on:{handle:e.detailHandle,"hide-view":e.hiddenView}}):e._e()},[],!1,null,"40023ab0",null);f.options.__file="CRMAllDetail.vue";t.a=f.exports}}]);