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-29ec.bff89416.js

1 line
124 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-29ec"],{"+YG/":function(t,e,i){"use strict";var a=i("eI0G");i.n(a).a},"+uuU":function(t,e,i){},"/akV":function(t,e,i){"use strict";var a=i("8OTK"),n=i("7Dod"),s=i("d9x6"),l=i("1DpC"),o=i("7Qib"),c=i("dAOq"),r=i("jHPx"),d={name:"RelativeReturnMoney",components:{CRMAllCreate:a.default,CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-21d9"),i.e("chunk-a3e9"),i.e("chunk-5553")]).then(i.bind(null,"3z7q"))}},mixins:[c.a],props:{id:[String,Number],crmType:{type:String,default:""},isSeas:{type:Boolean,default:!1},detail:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,list:[],fieldList:[],tableHeight:"250px",showFullDetail:!1,showFullCrmType:"receivables",showFullId:"",createCrmType:"receivables_plan",isCreate:!1,palnList:[],planFieldList:[],createActionInfo:{}}},inject:["rootTabs"],computed:{},watch:{id:function(t){this.list=[],this.palnList=[],this.getList(),this.getPlanList()},"rootTabs.currentName":function(t){"RelativeReturnMoney"===t&&(this.getList(!1),this.getPlanList(!1))}},mounted:function(){this.planFieldList=[{prop:"num",width:"200",label:"期数"},{prop:"customer_name",width:"200",label:"客户名称"},{prop:"contract_name",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_name",width:"200",label:"合同名称"},{prop:"contract_money",width:"200",label:"合同金额"},{prop:"money",width:"200",label:"回款金额"},{prop:"plan_id_info",width:"200",label:"期数"},{prop:"owner_user_name",width:"200",label:"负责人"},{prop:"check_status",width:"200",label:"状态"},{prop:"return_time",width:"200",label:"回款日期"}],this.getList()},methods:{getPlanList:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.loading=e,(0,{customer:n.L,contract:s.k}[this.crmType])(this.getParams()).then(function(e){t.loading=!1;var i=e.data.list||[];i.forEach(function(t){t.returnDate=Object(o.r)(t.returnDate)}),t.palnList=i}).catch(function(){t.loading=!1})},getList:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.loading=e,(0,{customer:n.K,contract:s.j}[this.crmType])(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){"number"==e.property&&(this.showFullId=t.receivables_id,this.showFullCrmType="receivables",this.showFullDetail=!0)},createClick:function(t){this.createActionInfo={type:"relative",crmType:this.crmType,data:{}},"money"==t?("contract"===this.crmType?(this.createActionInfo.data.customer=Object(o.t)(this.detail),this.createActionInfo.data.contract=Object(o.t)(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=Object(o.t)(this.detail),this.createActionInfo.data.contract=Object(o.t)(this.detail)):"customer"===this.crmType&&(this.createActionInfo.data.customer=this.detail),this.createCrmType="receivables_plan",this.isCreate=!0)},saveSuccess:function(){"receivables"==this.createCrmType?(this.$bus.emit("crm-tab-num-update"),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(l.g)({id:e.row.plan_id}).then(function(t){i.palnList.splice(e.$index,1),i.$message.success("删除成功")}).catch(function(){})}).catch(function(){})},fieldFormatter:function(t,e){return"check_status"===e.property?this.getCRMStatusName(t.check_status):"contract_money"==e.property||"money"==e.property?Object(r.h)(t[e.property]||0):t[e.property]},cellClassName:function(t){t.row;var e=t.column;t.rowIndex,t.columnIndex;return"number"===e.property?"can-visit--underline":""},detailHandle:function(t){var e=this;"delete"===t.type&&(this.getList(),this.$nextTick(function(){e.$bus.emit("crm-tab-num-update")}))}}},u=(i("Xrnn"),i("KHd+")),m=Object(u.a)(d,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:"rc-cont"},[t.isSeas?t._e():i("flexbox",{staticClass:"rc-head",attrs:{direction:"row-reverse"}},[i("el-button",{staticClass:"xr-btn--orange rc-head-item",attrs:{icon:"el-icon-plus",type:"primary"},on:{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,stripe:""}},[t._l(t.planFieldList,function(t,e){return i("el-table-column",{key:e,attrs:{prop:t.prop,label:t.label,"show-overflow-tooltip":""}})}),t._v(" "),i("el-table-column",{attrs:{label:"操作",fixed:"right",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:"xr-btn--orange rc-head-item",attrs:{icon:"el-icon-plus",type:"primary"},on:{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,"cell-class-name":t.cellClassName,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},handle:t.detailHandle}}),t._v(" "),t.isCreate?i("c-r-m-all-create",{attrs:{"crm-type":t.createCrmType,action:t.createActionInfo},on:{"save-success":t.saveSuccess,close:function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"10d8839d",null);m.options.__file="RelativeReturnMoney.vue";e.a=m.exports},"0dur":function(t,e,i){"use strict";var a=i("zhwh"),n=i("Ew9n"),s=i("raay"),l=i("w4ZA"),o=i("3gPr"),c=i("CjUg"),r=i("8OTK"),d=i("h59h"),u=i("f6dm"),m={name:"VisitDetail",components:{SlideView:n.a,CRMDetailHead:s.a,CRMEditBaseInfo:l.a,RelativeFiles:o.a,RelativeHandle:c.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 t=this;this.loading=!0,Object(a.d)({id:this.id}).then(function(e){t.loading=!1,t.detailData=e.data,0!==t.detailData.dataAuth&&(t.headDetails[0].value=e.data.customer_name,t.headDetails[1].value=e.data.visit_time,t.headDetails[2].value=e.data.owner_user_name,t.headDetails[3].value=e.data.shape)}).catch(function(){t.loading=!1,t.hideView()})},hideView:function(){this.$emit("hide-view")},previewImage:function(t,e){this.$bus.emit("preview-image-bus",{index:e,data:t})}}},h=(i("vCOl"),i("KHd+")),p=Object(h.a)(m,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:{afterEnter:t.viewAfterEnter,close:t.hideView}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"crmDetailMain",staticClass:"detail-main"},[t.canShowDetail&&t.detailData?i("flexbox",{staticClass:"d-container",attrs:{direction:"column",align:"stretch"}},[i("c-r-m-detail-head",{attrs:{detail:t.detailData,"head-details":t.headDetails,id:t.id,"crm-type":t.crmType,"page-list":t.pageList},on:{pageChange:t.pageChange,handle:t.detailHeadHandle,close:t.hideView}}),t._v(" "),i("flexbox",{staticClass:"d-container-bd",attrs:{align:"stretch"}},[i("el-tabs",{staticClass:"d-container-bd--left",attrs:{type:"border-card"},model:{value:t.tabCurrentName,callback:function(e){t.tabCurrentName=e},expression:"tabCurrentName"}},t._l(t.tabNames,function(e,a){return i("el-tab-pane",{key:a,attrs:{label:e.label,name:e.name,lazy:""}},[i(e.name,{tag:"component",attrs:{detail:t.detailData,id:t.id,"crm-type":t.crmType},on:{handle:t.detailHeadHandle}})],1)}))],1)],1):t._e()],1),t._v(" "),t.isCreate?i("c-r-m-all-create",{attrs:{action:{type:"update",id:t.id,batchId:t.detailData.batchId,editDetail:t.detailData},"crm-type":t.crmType},on:{"save-success":t.editSaveSuccess,close:function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"52497cac",null);p.options.__file="Detail.vue";e.a=p.exports},"0tpr":function(t,e,i){"use strict";var a=i("3531");i.n(a).a},"1bNe":function(t,e,i){"use strict";var a=i("7Dod"),n=i("Ew9n"),s=i("raay"),l=i("eOwn"),o=i("gTyn"),c=i("w4ZA"),r=i("f2Lb"),d=i("QUqu"),u=i("J7m9"),m=i("/akV"),h=i("3gPr"),p=i("CjUg"),f=i("RDgq"),v=i("35zX"),b=i("QbLZ"),g=i.n(b),_=i("VcMt"),y=i("dAOq"),w=i("jHPx"),C={name:"InvoiceTitleSet",components:{},mixins:[],props:{visible:{type:Boolean,required:!0,default:!1},customerId:[String,Number],detail:Object},data:function(){return{loading:!0,form:{title_type:1},fieldList:[]}},computed:{title:function(){return this.detail?"编辑发票抬头":"新建发票抬头"},contentHeight:function(){return 2==this.form.title_type?"190px":"300px"}},watch:{visible:function(){this.visible&&(this.detail&&(this.form=g()({},this.detail)),this.getFieldList())}},mounted:function(){},methods:{getFieldList:function(){var t=this.detail&&2==(this.detail.titleType||this.form.title_type);this.fieldList=[{name:"抬头类型",field:"title_type",formType:"select",setting:[{name:"单位",value:1},{name:"个人",value:2}]},{name:"开票抬头",field:"invoice_title",formType:"text",setting:[]},{name:"纳税人识别号",field:"tax_number",formType:"text",hidden:t,setting:[]},{name:"开户行",field:"deposit_bank",formType:"text",hidden:t,setting:[]},{name:"开户账号",field:"deposit_account",formType:"text",hidden:t,setting:[]},{name:"开票地址",field:"deposit_address",formType:"text",hidden:t,setting:[]},{name:"电话",field:"phone",formType:"text",setting:[]}]},handleCancel:function(){this.form={title_type:1},this.$emit("update:visible",!1)},valueChange:function(){var t=2==(this.form.title_type||this.form.title_type);this.fieldList[2].hidden=t,this.fieldList[3].hidden=t,this.fieldList[4].hidden=t,this.fieldList[5].hidden=t},handleConfirm:function(){var t=this,e={customer_id:this.customerId};2==this.form.title_type?(e.title_type=this.form.title_type,e.invoice_title=this.form.invoice_title,e.phone=this.form.phone):e=g()({},e,this.form),this.detail&&(e.info_id=this.detail.info_id,delete e.create_user_name,delete e.create_time),this.loading=!0,(this.detail?_.n:_.i)(e).then(function(e){t.$message({type:"success",message:"操作成功"}),t.loading=!1,t.handleCancel(),t.$emit("change")}).catch(function(){t.loading=!1})}}},x=(i("VEyr"),i("KHd+")),D=Object(x.a)(C,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"invoice-title-set",attrs:{visible:t.visible,"append-to-body":!0,"close-on-click-modal":!1,title:t.title,width:"500px"},on:{close:t.handleCancel}},[i("div",{staticClass:"handle-box",style:{height:t.contentHeight}},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px"}},[t._l(t.fieldList,function(e,a){return["title_type"==e.field?i("el-form-item",{key:a,attrs:{label:e.name,prop:e.field}},[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:!1},on:{change:t.valueChange},model:{value:t.form[e.field],callback:function(i){t.$set(t.form,e.field,i)},expression:"form[item.field]"}},t._l(e.setting,function(t,e){return i("el-option",{key:e,attrs:{label:t.name,value:t.value}})}))],1):i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!item.hidden"}],key:a,attrs:{label:e.name,prop:e.field}},[i("el-input",{model:{value:t.form[e.field],callback:function(i){t.$set(t.form,e.field,i)},expression:"form[item.field]"}})],1)]})],2)],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{nativeOn:{click:function(e){return t.handleCancel(e)}}},[t._v("取消")]),t._v(" "),i("el-button",{directives:[{name:"debounce",rawName:"v-debounce",value:t.handleConfirm,expression:"handleConfirm"}],attrs:{type:"primary"}},[t._v("保存")])],1)])},[],!1,null,null,null);D.options.__file="InvoiceTitleSet.vue";var I=D.exports,k=i("wS25"),T=i("ROSF"),R=i("L2JU"),N={name:"RelativeInvoice",components:{Create:T.a,InvoiceTitleSet:I,MarkInvoice:k.a,CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-21d9"),i.e("chunk-a3e9"),i.e("chunk-5553")]).then(i.bind(null,"3z7q"))}},mixins:[y.a],props:{id:[String,Number],crmType:{type:String,default:""},isSeas:{type:Boolean,default:!1},detail:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,list:[],fieldList:[],tableHeight:"250px",showFullDetail:!1,showFullId:"",isCreate:!1,titleList:[],titleFieldList:[],titleCreateShow:!1,titleDetail:null,rowDetail:{},markShow:!1}},inject:["rootTabs"],computed:g()({},Object(R.b)(["crm"]),{canUpdateStatus:function(){return this.crm&&this.crm.invoice&&this.crm.invoice.updateInvoiceStatus}}),watch:{id:function(t){this.list=[],this.titleList=[],this.getInvoiceList(),this.getTitleList()},"rootTabs.currentName":function(t){"RelativeInvoice"===t&&(this.getInvoiceList(!1),this.getTitleList(!1))}},mounted:function(){this.titleFieldList=[{prop:"title_type",width:"120",label:"抬头类型"},{prop:"invoice_title",width:"120",label:"开票抬头"},{prop:"tax_number",width:"120",label:"纳税人识别号"},{prop:"deposit_bank",width:"120",label:"开户行"},{prop:"deposit_account",width:"120",label:"开户账号"},{prop:"deposit_address",width:"120",label:"开票地址"},{prop:"phone",width:"120",label:"电话"},{prop:"create_user_name",width:"120",label:"创建人"},{prop:"create_time",width:"120",label:"创建时间"}],this.getTitleList(),this.fieldList=[{prop:"invoice_apple_number",width:"120",label:"发票申请编号"},{prop:"contract_number",width:"120",label:"合同名称"},{prop:"contract_money",width:"120",label:"合同金额"},{prop:"invoice_money",width:"120",label:"开票金额(元)"},{prop:"invoice_date",width:"120",label:"开票日期"},{prop:"real_invoice_date",width:"120",label:"实际开票日期"},{prop:"invoice_type",width:"120",label:"开票类型"},{prop:"invoice_number",width:"120",label:"发票号码"},{prop:"logistics_number",width:"120",label:"物流单号"},{prop:"owner_user_name",width:"120",label:"负责人"},{prop:"check_status",width:"120",label:"审核状态"}],this.getInvoiceList()},methods:{getTitleList:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.loading=e,Object(a.m)({customer_id:this.id,pageType:"all"}).then(function(e){t.loading=!1,t.titleList=e.data.list}).catch(function(){t.loading=!1})},getInvoiceList:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.loading=e,Object(a.l)({customer_id:this.id,pageType:"all"}).then(function(e){t.loading=!1,t.list=e.data.list}).catch(function(){t.loading=!1})},handleRowClick:function(t,e,i){"invoice_apple_number"==e.property&&(this.showFullId=t.invoice_id,this.showFullDetail=!0)},createClick:function(t){"invoice"==t?this.isCreate=!0:"title"==t&&(this.titleDetail=null,this.titleCreateShow=!0)},handleTitle:function(t,e){var i=this;"edit"==t?(this.titleDetail=e.row,this.titleCreateShow=!0):"delete"==t&&this.$confirm("您确定要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(_.b)({info_id:e.row.info_id}).then(function(t){i.titleList.splice(e.$index,1),i.$message.success("删除成功")}).catch(function(){})}).catch(function(){})},invoicefieldFormatter:function(t,e){return"check_status"===e.property?this.getStatusName(t.check_status):"invoice_type"==e.property?{1:"增值税专用发票",2:"增值税普通发票",3:"国税通用机打发票",4:"地税通用机打发票",5:"收据"}[t[e.property]]:"contract_money"==e.property||"invoice_money"==e.property?Object(w.h)(t[e.property]||0):""===t[e.property]||null===t[e.property]?"--":t[e.property]},titleFieldFormatter:function(t,e){return"title_type"===e.property?{1:"单位",2:"个人"}[t[e.property]]:""===t[e.property]||null===t[e.property]?"--":t[e.property]},cellClassName:function(t){t.row;var e=t.column;t.rowIndex,t.columnIndex;return"invoice_apple_number"===e.property?"can-visit--underline":""},detailHandle:function(t){var e=this;"delete"===t.type&&(this.getInvoiceList(),this.$nextTick(function(){e.$bus.emit("crm-tab-num-update")}))},markReceivables:function(t){this.rowDetail=t.row,this.markShow=!0}}},S=(i("AYVk"),Object(x.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"}],staticClass:"rc-cont"},[t.isSeas?t._e():i("flexbox",{staticClass:"rc-head",attrs:{direction:"row-reverse"}},[i("el-button",{staticClass:"xr-btn--orange rc-head-item",attrs:{icon:"el-icon-plus",type:"primary"},on:{click:function(e){t.createClick("title")}}},[t._v("新建发票抬头")])],1),t._v(" "),i("el-table",{staticStyle:{width:"100%",border:"1px solid #E6E6E6"},attrs:{data:t.titleList,height:t.tableHeight,stripe:""}},[t._l(t.titleFieldList,function(e,a){return i("el-table-column",{key:a,attrs:{prop:e.prop,label:e.label,width:e.width,formatter:t.titleFieldFormatter,"show-overflow-tooltip":""}})}),t._v(" "),i("el-table-column",{attrs:{label:"操作",width:"100",fixed:"right"},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.handleTitle("edit",e)}}},[t._v("编辑")]),t._v(" "),i("el-button",{attrs:{type:"text"},nativeOn:{click:function(i){t.handleTitle("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:"xr-btn--orange rc-head-item",attrs:{icon:"el-icon-plus",type:"primary"},on:{click:function(e){t.createClick("invoice")}}},[t._v("新建发票")])],1),t._v(" "),i("el-table",{staticStyle:{width:"100%",border:"1px solid #E6E6E6"},attrs:{data:t.list,height:t.tableHeight,"cell-class-name":t.cellClassName,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.invoicefieldFormatter,label:e.label,width:e.width,"show-overflow-tooltip":""}})}),t._v(" "),t.canUpdateStatus?i("el-table-column",{attrs:{resizable:!1,label:"操作",fixed:"right",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{disabled:1==e.row.invoice_status,type:1==e.row.invoice_status?"":"primary",plain:""},nativeOn:{click:function(i){t.markReceivables(e)}}},[t._v(t._s(1==e.row.invoice_status?"已开票":"标记为开票"))])]}}])}):t._e()],2),t._v(" "),i("c-r-m-full-screen-detail",{attrs:{visible:t.showFullDetail,id:t.showFullId,"crm-type":"invoice"},on:{"update:visible":function(e){t.showFullDetail=e},handle:t.detailHandle}}),t._v(" "),t.isCreate?i("create",{attrs:{action:{type:"relative",crmType:t.crmType,data:{customer:{customer_name:t.detail.name,customer_id:t.detail.customer_id},contacts_name:t.detail.contacts_name,contacts_mobile:t.detail.contacts_mobile,contacts_address:t.detail.contacts_address}}},on:{"save-success":t.getInvoiceList,close:function(e){t.isCreate=!1}}}):t._e(),t._v(" "),i("invoice-title-set",{attrs:{visible:t.titleCreateShow,"customer-id":t.id,detail:t.titleDetail},on:{"update:visible":function(e){t.titleCreateShow=e},change:t.getTitleList}}),t._v(" "),i("mark-invoice",{attrs:{visible:t.markShow,detail:t.rowDetail},on:{"update:visible":function(e){t.markShow=e},change:t.getInvoiceList}})],1)},[],!1,null,"35de6bf1",null));S.options.__file="RelativeInvoice.vue";var L=S.exports,A=i("8OTK"),F=i("f6dm"),H={name:"CustomerDetail",components:{SlideView:n.a,Activity:l.a,ChieflyContacts:o.a,CRMDetailHead:s.a,CRMEditBaseInfo:c.a,RelativeContacts:r.a,RelativeBusiness:d.a,RelativeContract:u.a,RelativeReturnMoney:m.a,RelativeFiles:h.a,RelativeHandle:p.a,RelativeTeam:f.a,RelativeVisit:v.a,CRMAllCreate:A.default,RelativeInvoice:L},mixins:[F.a],props:{id:[String,Number],pool_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",headDetails:[{title:"客户级别",value:""},{title:"成交状态",value:""},{title:"负责人",value:""},{title:"更新时间",value:""}],tabCurrentName:"Activity",createActionInfo:null,createCRMType:"customer",isCreate:!1,showImportInfo:!0,firstContactsId:"",poolAuth:{}}},computed:{activityHandle:function(){var t=[{type:"task",label:"创建任务"},{type:"contacts",label:"创建联系人"},{type:"business",label:"创建商机"},{type:"contract",label:"创建合同"},{type:"receivables",label:"创建回款"}];return this.canCreateFollowRecord&&(t=[{type:"log",label:"写跟进"}].concat(t)),t},tabNames:function(){var t=[];return t.push({label:"活动",name:"Activity"}),this.crm.customer&&this.crm.customer.read&&t.push({label:"详细资料",name:"CRMEditBaseInfo"}),this.crm.contacts&&this.crm.contacts.index&&t.push({label:this.getTabName("联系人",this.tabsNumber.contactCount),name:"RelativeContacts"}),t.push({label:this.getTabName("团队成员",this.tabsNumber.memberCount),name:"RelativeTeam"}),this.crm.business&&this.crm.business.index&&t.push({label:this.getTabName("商机",this.tabsNumber.businessCount),name:"RelativeBusiness"}),this.crm.contract&&this.crm.contract.index&&t.push({label:this.getTabName("合同",this.tabsNumber.contractCount),name:"RelativeContract"}),this.crm.receivables&&this.crm.receivables.index&&t.push({label:this.getTabName("回款",this.tabsNumber.receivablesCount),name:"RelativeReturnMoney"}),this.crm.visit&&this.crm.visit.index&&t.push({label:this.getTabName("回访",this.tabsNumber.returnVisitCount),name:"RelativeVisit"}),this.crm.invoice&&this.crm.invoice.index&&t.push({label:this.getTabName("发票",this.tabsNumber.invoiceCount),name:"RelativeInvoice"}),t.push({label:this.getTabName("附件",this.tabsNumber.fileCount),name:"RelativeFiles"}),t.push({label:"操作记录",name:"RelativeHandle"}),t},isSeasDetail:function(){return this.detailData&&this.detailData.hasOwnProperty("is_pool")?1==this.detailData.is_pool:this.isSeas},seasPoolId:function(){return this.poolAuth&&this.poolAuth.pool_id?this.poolAuth.pool_id:this.pool_id},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:"审批"}]}},watch:{},mounted:function(){},methods:{getDetial:function(){var t=this;this.firstContactsId="",this.loading=!0;var e={id:this.id};this.pool_id&&(e.pool_id=this.pool_id,e.customer_id=this.id),Object(a.N)(e).then(function(e){t.loading=!1;var i=e.data||{};if(t.detailData=i,0!==i.dataAuth){t.firstContactsId=t.detailData.contacts_id,t.poolAuth=i.poolAuthList||{},Object(a.w)({pool_id:t.pool_id}).then(function(e){t.poolAuth=e.data||{}}),t.headDetails[0].value=t.detailData.level;var n=t.headDetails[1];null===t.detailData.deal_status||""===t.detailData.deal_status||void 0===t.detailData.deal_status?(n.showIcon=!1,n.value=""):(n.showIcon=!0,"已成交"==t.detailData.deal_status?(n.icon="wk wk-success deal-suc",n.style={fontSize:"14px",color:"#20b559",marginRight:"3px"},n.value="已成交"):(n.icon="wk wk-close deal-un",n.style={fontSize:"14px",color:"#f95a5a",marginRight:"3px"},n.value="未成交")),t.headDetails[2].title=t.isSeasDetail?"":"负责人",t.headDetails[2].value=t.isSeasDetail?t.detailDatabefore_owner_user_name:t.detailData.owner_user_id_info.realname||"",t.headDetails[3].value=t.detailData.create_time}}).catch(function(){t.loading=!1,t.hideView()})},hideView:function(){this.$emit("hide-view")},addChieflyContacts:function(){this.createCRMType="contacts",this.createActionInfo={type:"relative",crmType:this.crmType,data:{customer:this.detailData}},this.isCreate=!0},detailHeadHandleClick:function(t){if("edit"===t.type)return this.createCRMType="customer",this.createActionInfo={type:"update",id:this.id,batchId:this.detailData.batchId},this.isCreate=!0,!1}}},E=(i("PBZq"),Object(x.a)(H,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:{afterEnter:t.viewAfterEnter,close:t.hideView}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"crmDetailMain",staticClass:"detail-main"},[t.canShowDetail&&t.detailData?i("flexbox",{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,pool_id:t.seasPoolId,"pool-auth":t.poolAuth,"crm-type":t.crmType,"page-list":t.pageList},on:{pageChange:t.pageChange,handle:t.detailHeadHandle,close:t.hideView}},[i("template",{slot:"name"},[1==t.detailData.is_lock?i("i",{staticClass:"wk wk-circle-password"}):t._e(),t._v(" "),t.isSeasDetail?t._e():i("el-tooltip",{attrs:{content:0==t.detailData.star?"添加关注":"取消关注",effect:"dark",placement:"top"}},[i("i",{staticClass:"wk wk-focus-on focus-icon",class:{active:0!=t.detailData.star},on:{click:function(e){t.toggleStar()}}})])],1)],2),t._v(" "),i("flexbox",{staticClass:"d-container-bd",attrs:{align:"stretch"}},[i("el-tabs",{staticClass:"d-container-bd--left",attrs:{type:"border-card"},model:{value:t.tabCurrentName,callback:function(e){t.tabCurrentName=e},expression:"tabCurrentName"}},t._l(t.tabNames,function(e,a){return i("el-tab-pane",{key:a,attrs:{label:e.label,name:e.name,lazy:""}},[i(e.name,{tag:"component",attrs:{detail:t.detailData,"type-list":t.logTyps,id:t.id,pool_id:t.seasPoolId,handle:t.activityHandle,"is-seas":t.isSeasDetail,"crm-type":t.crmType,"contacts-id":t.firstContactsId},on:{"update:contactsId":function(e){t.firstContactsId=e},handle:t.detailHeadHandle}})],1)})),t._v(" "),i("transition",{attrs:{name:"slide-fade"}},[i("el-tabs",{directives:[{name:"show",rawName:"v-show",value:t.showImportInfo,expression:"showImportInfo"}],staticClass:"d-container-bd--right",attrs:{value:"chiefly-contacts",type:"border-card"}},[i("el-tab-pane",{attrs:{label:"重要信息",name:"chiefly-contacts",lazy:""}},[i("chiefly-contacts",{attrs:{"contacts-id":t.firstContactsId,id:t.id,pool_id:t.seasPoolId,"crm-type":t.crmType,"is-seas":t.isSeasDetail},on:{add:t.addChieflyContacts}})],1)],1)],1)],1)],1):t._e()],1),t._v(" "),i("el-button",{staticClass:"firse-button",on:{click:function(e){t.showImportInfo=!t.showImportInfo}}},[t._v("重"),i("br"),t._v("要"),i("br"),t._v("信"),i("br"),t._v("息"),i("br"),i("i",{staticClass:"el-icon-arrow-right el-icon--right",class:{"is-reverse":!t.showImportInfo}})]),t._v(" "),t.isCreate?i("c-r-m-all-create",{attrs:{action:t.createActionInfo,"crm-type":t.createCRMType},on:{"save-success":t.editSaveSuccess,close:function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"45f59e72",null));E.options.__file="Detail.vue";e.a=E.exports},"1c2Q":function(t,e,i){},3531:function(t,e,i){},"35zX":function(t,e,i){"use strict";var a=i("8OTK"),n=i("7Dod"),s=i("d9x6"),l=i("4XAY"),o={name:"RelativeVisit",components:{CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-21d9"),i.e("chunk-a3e9"),i.e("chunk-5553")]).then(i.bind(null,"3z7q"))},CRMAllCreate:a.default},mixins:[],props:{id:[String,Number],crmType:{type:String,default:""},detail:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,nopermission:!1,list:[],fieldList:[],tableHeight:"400px",showFullDetail:!1,isCreate:!1,detailId:"",createActionInfo:{type:"relative",crmType:this.crmType,data:{}},showRelativeView:!1,selectionList:[]}},inject:["rootTabs"],computed:{},watch:{id:function(t){this.list=[],this.getDetail()},"rootTabs.currentName":function(t){"RelativeVisit"===t&&this.getDetail(!1)}},mounted:function(){this.getDetail()},methods:{getFieldList:function(){var t=this;Object(l.A)({types:"crm_visit",module:"crm",action:"index",controller:"visit"}).then(function(e){for(var i=e.data||[],a=[],n=0;n<i.length;n++){var s=i[n];s.field&&a.push({prop:s.fieldName||s.field,width:"80",label:s.name})}t.fieldList=a}).catch(function(){})},getDetail:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];0==this.fieldList.length&&this.getFieldList(),this.loading=e;var i={customer:n.M,contract:s.l}[this.crmType],a={pageType:"all"};a[this.crmType+"_id"]=this.id,i(a).then(function(e){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){"number"==e.property&&(this.detailId=t.visit_id,this.showFullDetail=!0)},cellClassName:function(t){t.row;var e=t.column;t.rowIndex,t.columnIndex;return"number"===e.property?"can-visit--underline":""},createClick:function(){"customer"==this.crmType?this.createActionInfo.data.customer=this.detail:"contract"==this.crmType&&(this.createActionInfo.data.customer=this.detail,this.createActionInfo.data.contract=this.detail,this.createActionInfo.relativeData={contractId:this.detail.contractId}),this.isCreate=!0},createSaveSuccess:function(){this.canRelation?this.$refs.crmrelative.refreshList():(this.$bus.emit("crm-tab-num-update"),this.getDetail())},detailHandle:function(t){var e=this;"delete"===t.type&&(this.getDetail(),this.$nextTick(function(){e.$bus.emit("crm-tab-num-update")}))}}},c=(i("UNNM"),i("KHd+")),r=Object(c.a)(o,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"},{name:"empty",rawName:"v-empty",value:t.nopermission,expression:"nopermission"}],staticClass:"rc-cont",attrs:{"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"}},[i("flexbox",{staticClass:"rc-head",attrs:{direction:"row-reverse"}},[i("el-button",{staticClass:"xr-btn--orange rc-head-item",attrs:{icon:"el-icon-plus",type:"primary"},on:{click:t.createClick}},[t._v("新建回访")])],1),t._v(" "),i("el-table",{directives:[{name:"show",rawName:"v-show",value:t.fieldList.length>0,expression:"fieldList.length > 0"}],staticStyle:{width:"100%",border:"1px solid #E6E6E6"},attrs:{data:t.list,height:t.tableHeight,"cell-class-name":t.cellClassName,stripe:""},on:{"row-click":t.handleRowClick}},t._l(t.fieldList,function(t,e){return i("el-table-column",{key:e,attrs:{prop:t.prop,"min-width":t.width,label:t.label,"show-overflow-tooltip":""}})})),t._v(" "),i("c-r-m-full-screen-detail",{attrs:{visible:t.showFullDetail,id:t.detailId,"crm-type":"visit"},on:{"update:visible":function(e){t.showFullDetail=e},handle:t.detailHandle}}),t._v(" "),t.isCreate?i("c-r-m-all-create",{attrs:{action:t.createActionInfo,"crm-type":"visit"},on:{"save-success":t.createSaveSuccess,close:function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"29ce7ee2",null);r.options.__file="RelativeVisit.vue";e.a=r.exports},"3biH":function(t,e,i){"use strict";var a=i("/861"),n=i("7qmR"),s=i("Ktth"),l=i.n(s),o=i("QhmF"),c=i("dAOq"),r={name:"CheckFlow",components:{},filters:{stepName:function(t){return"第"+l.a.encodeS(t)+"级"}},mixins:[c.a],props:{examineType:{type:String,default:""},id:[String,Number],show:Boolean},data:function(){return{loading:!1,list:[]}},computed:{},watch:{show:function(t){t&&(this.list=[],this.getDetail())}},mounted:function(){},methods:{getDetail:function(){var t=this;this.id&&(this.loading=!0,(0,{crm_contract:a.f,crm_receivables:a.f,crm_invoice:a.f,oa_examine:n.g}[this.examineType])({types_id:this.id,types:this.examineType,is_record:1}).then(function(e){t.loading=!1,t.list=e.data}).catch(function(){t.loading=!1}))},close:function(){this.$emit("close")}}},d=(i("CLSc"),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"},{name:"empty",rawName:"v-empty",value:t.list,expression:"list"}],attrs:{"xs-empty-icon":"none","xs-empty-text":"暂无记录"}},[i("flexbox",{staticClass:"flow-head"},[i("div",{staticClass:"flow-head-name"},[t._v("审批流程")]),t._v(" "),i("i",{staticClass:"el-icon-close flow-head-close",on:{click:t.close}})]),t._v(" "),i("div",{staticClass:"flow-body"},t._l(t.list,function(e,a){return i("flexbox",{key:a,staticClass:"cf-flow-item",attrs:{align:"stretch",justify:"flex-start"}},[i("img",{staticClass:"cf-flow-item-img",attrs:{src:t.getStatusImageIcon(e.status)}}),t._v(" "),i("div",[i("flexbox",{staticClass:"cf-flow-item-head"},[i("div",{staticClass:"cf-flow-item-des"},[t._v(t._s(t._f("stepName")(e.order_id)))]),t._v(" "),i("div",[t._v(t._s(e.check_date))])]),t._v(" "),i("flexbox",{staticClass:"cf-flow-item-info"},[i("div",{staticClass:"cf-flow-item-name"},[t._v(t._s(e.check_user_id_info.realname))]),t._v(" "),i("div",[i("span",[t._v(t._s(t.getStatusName(e.status)))]),t._v("了此申请")])]),t._v(" "),e.content?i("div",{staticClass:"cf-flow-item-content"},[t._v(t._s(e.content)+"\n "),i("div",{staticClass:"cf-flow-item-content-arrow"})]):t._e()],1),t._v(" "),i("div",{staticClass:"cf-flow-item-line"})])}))],1)},[],!1,null,"1fc6d1fe",null);u.options.__file="CheckFlow.vue";var m=u.exports,h={name:"ExamineInfo",components:{ExamineHandle:o.a,CheckFlow:m},filters:{detailName:function(t){return 2==t.status?t.user_id_info.length+"人或签":3==t.status?t.user_id_info.length+"人会签":1==t.status?"负责人主管":4==t.status?"上一级审批人主管":5==t.status?t.user_id_info&&t.user_id_info.length?t.user_id_info[0].realname:"":void 0},stepName:function(t){return"第"+l.a.encodeS(t)+"级"}},mixins:[c.a],props:{examineType:{type:String,default:""},id:[String,Number],recordId:[String,Number],ownerUserId:[String,Number]},data:function(){return{loading:!1,examineInfo:{},showFlowPopover:!1,examineHandleInfo:{status:1},showExamineHandle:!1}},computed:{},watch:{recordId:{handler:function(t){t&&(this.examineInfo={},this.getFlowStepList(),this.$refs.checkFlow&&this.$refs.checkFlow.getDetail())},deep:!0,immediate:!0}},mounted:function(){},methods:{getFlowStepList:function(){var t=this;this.recordId&&this.id&&(this.loading=!0,(0,{crm_contract:a.g,crm_receivables:a.g,crm_invoice:a.g,oa_examine:n.h}[this.examineType])({flow_id:this.recordId,types:this.examineType,types_id:this.id,action:"view"}).then(function(e){t.loading=!1,t.examineInfo=e.data,t.$emit("value-change",{config:e.data.examineType,value:[]})}).catch(function(){t.loading=!1}))},examineHandle:function(t){this.examineHandleInfo.status=t,this.showExamineHandle=!0},getContentFilters:function(t){for(var e="",i=0;i<t.length;i++){var a=t[i];e=i==t.length-1?e+a.realname+""+this.getStatusName(a.checkType):e+a.realname+""+this.getStatusName(a.checkType)+"、"}return e},examineHandleClick:function(t){this.getFlowStepList(),this.$refs.checkFlow&&this.$refs.checkFlow.getDetail(),this.$emit("on-handle",t)}}},p=(i("+YG/"),Object(d.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"}],staticClass:"approval-flow"},[i("flexbox",{staticClass:"approval-flow__hd",attrs:{justify:"space-between"}},[i("div",{staticClass:"approval-flow__hd--left"},[i("span",{staticClass:"flow-title"},[i("i",{staticClass:"wk wk-approve"}),t._v("审批流信息\n ")]),t._v(" "),i("el-popover",{attrs:{width:"300",trigger:"click"},model:{value:t.showFlowPopover,callback:function(e){t.showFlowPopover=e},expression:"showFlowPopover"}},[i("check-flow",{ref:"checkFlow",attrs:{show:t.showFlowPopover,id:t.id,"examine-type":t.examineType},on:{close:function(e){t.showFlowPopover=!1}}}),t._v(" "),i("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("查看历史审批流程")])],1)],1),t._v(" "),i("div",{staticClass:"approval-flow__hd--right"},[1==t.examineInfo.is_check?i("el-button",{staticClass:"xr-btn--green",attrs:{icon:"wk wk-success"},on:{click:function(e){t.examineHandle(1)}}},[t._v("通过")]):t._e(),t._v(" "),1==t.examineInfo.is_check?i("el-button",{staticClass:"xr-btn--red",attrs:{icon:"wk wk-close"},on:{click:function(e){t.examineHandle(2)}}},[t._v("拒绝")]):t._e(),t._v(" "),1==t.examineInfo.is_recheck?i("el-button",{staticClass:"xr-btn--primary",attrs:{icon:"wk wk-reset"},on:{click:function(e){t.examineHandle(4)}}},[t._v("撤回")]):t._e()],1)]),t._v(" "),0==t.examineInfo.config?i("flexbox",{staticClass:"check-items"},t._l(t.examineInfo.stepList,function(e,a){return i("flexbox",{key:a,staticClass:"check-item"},[i("img",{staticClass:"check-item-img",attrs:{src:t.getStatusImageIcon(e.type)}}),t._v(" "),i("div",{staticClass:"check-item-name"},[t._v(t._s(e.userInfo.realname))]),t._v(" "),i("div",{staticClass:"check-item-status"},[t._v(t._s(t.getStatusName(e.type)))]),t._v(" "),t.examineInfo.stepList.length-1!=a?i("i",{staticClass:"el-icon-arrow-right check-item-arrow"}):t._e()])})):1==t.examineInfo.config?i("flexbox",{staticClass:"check-items",attrs:{wrap:"wrap"}},t._l(t.examineInfo.stepList,function(e,a){return i("el-popover",{key:a,attrs:{disabled:!e.user_id_info||0==e.user_id_info.length,placement:"bottom",trigger:"hover"}},[i("div",{staticClass:"popover-detail"},t._l(e.user_id_info,function(e,a){return i("flexbox",{key:a,staticClass:"popover-detail-item",attrs:{align:"stretch"}},[i("img",{staticClass:"popover-detail-item-img",attrs:{src:t.getStatusImageIcon(e.check_type)}}),t._v(" "),i("div",[i("div",{staticClass:"popover-detail-item-time"},[t._v(t._s(e.check_time))]),t._v(" "),i("flexbox",{staticClass:"popover-detail-item-examine"},[i("div",{staticClass:"examine-name"},[t._v(t._s(e.realname))]),t._v(" "),i("div",{staticClass:"examine-info"},[t._v(t._s(t.getStatusName(e.check_type))+"此申请")])])],1)])})),t._v(" "),i("flexbox",{staticClass:"check-item",attrs:{slot:"reference"},slot:"reference"},[i("img",{staticClass:"check-item-img",attrs:{src:t.getStatusImageIcon(e.type)}}),t._v(" "),i("div",{staticClass:"check-item-name"},[t._v(t._s(t._f("detailName")(e)))]),t._v(" "),i("div",{staticClass:"check-item-status"},[t._v(t._s(t.getStatusName(e.type)))]),t._v(" "),t.examineInfo.stepList.length-1!=a?i("i",{staticClass:"el-icon-arrow-right check-item-arrow"}):t._e()])],1)})):t._e(),t._v(" "),i("examine-handle",{attrs:{show:t.showExamineHandle,id:t.id,"record-id":t.recordId,"examine-type":t.examineType,detail:t.examineInfo,status:t.examineHandleInfo.status},on:{close:function(e){t.showExamineHandle=!1},save:t.examineHandleClick}})],1)},[],!1,null,"79450e3a",null));p.options.__file="ExamineInfo.vue";e.a=p.exports},"5j9w":function(t,e,i){"use strict";var a=i("mwqc");i.n(a).a},"6IJe":function(t,e,i){"use strict";var a=i("wV7O");i.n(a).a},"6vV0":function(t,e,i){"use strict";var a=i("O8n3");i.n(a).a},"8Jo7":function(t,e,i){},"99BB":function(t,e,i){},"9HDP":function(t,e,i){"use strict";var a=i("u4cs");i.n(a).a},ALhW:function(t,e,i){"use strict";var a=i("1DpC"),n=i("Ew9n"),s=i("raay"),l=i("w4ZA"),o=i("3gPr"),c=i("CjUg"),r=i("RE/G"),d=i("RDgq"),u=i("8OTK"),m=i("3biH"),h=i("f6dm"),p=i("jHPx"),f={name:"ReceivablesDetail",components:{SlideView:n.a,CRMDetailHead:s.a,CRMEditBaseInfo:l.a,RelativeFiles:o.a,RelativeHandle:c.a,RelativePrint:r.a,ExamineInfo:m.a,CRMAllCreate:u.default,RelativeTeam:d.a},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:"receivables",name:"",headDetails:[{title:"客户名称",value:""},{title:"合同金额",value:""},{title:"合同名称",value:""},{title:"回款日期",value:""},{title:"回款金额",value:""},{title:"负责人",value:""}],tabCurrentName:"CRMEditBaseInfo",isCreate:!1}},computed:{tabNames:function(){var t=[{label:"详细资料",name:"CRMEditBaseInfo"},{label:this.getTabName("附件",this.tabsNumber.fileCount),name:"RelativeFiles"},{label:"操作记录",name:"RelativeHandle"}];return t.push({label:this.getTabName("团队成员",this.tabsNumber.memberCount),name:"RelativeTeam"}),this.crm.receivables&&this.crm.receivables.print&&t.push({label:"打印记录",name:"RelativePrint"}),t}},mounted:function(){},methods:{getDetial:function(){var t=this;this.loading=!0,Object(a.i)({id:this.id}).then(function(e){t.loading=!1,t.name=e.data.number,t.detailData=e.data,0!==t.detailData.dataAuth&&(t.headDetails[0].value=e.data.customer_id_info.name,t.headDetails[1].value=Object(p.h)(e.data.contract_id_info.money||0),t.headDetails[2].value=e.data.contract_id_info.name,t.headDetails[3].value=e.data.return_time,t.headDetails[4].value=Object(p.h)(e.data.money||0),t.headDetails[5].value=e.data.owner_user_name)}).catch(function(){t.loading=!1,t.hideView()})},hideView:function(){this.$emit("hide-view")},examineHandle:function(){this.$emit("handle",{type:"examine"})}}},v=(i("Mc92"),i("KHd+")),b=Object(v.a)(f,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:{afterEnter:t.viewAfterEnter,close:t.hideView}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"crmDetailMain",staticClass:"detail-main"},[t.canShowDetail&&t.detailData?i("flexbox",{staticClass:"d-container",attrs:{direction:"column",align:"stretch"}},[i("c-r-m-detail-head",{attrs:{detail:t.detailData,"head-details":t.headDetails,id:t.id,"crm-type":t.crmType,"page-list":t.pageList},on:{pageChange:t.pageChange,handle:t.detailHeadHandle,close:t.hideView}}),t._v(" "),t.detailData.flow_id?i("examine-info",{staticClass:"examine-info",attrs:{id:t.id,"record-id":t.detailData.flow_id,"owner-user-id":t.detailData.owner_user_id,"examine-type":"crm_receivables"},on:{"on-handle":t.examineHandle}}):t._e(),t._v(" "),i("div",{staticClass:"d-container-bd"},[i("el-tabs",{staticClass:"d-container-bd--left",attrs:{type:"border-card"},model:{value:t.tabCurrentName,callback:function(e){t.tabCurrentName=e},expression:"tabCurrentName"}},t._l(t.tabNames,function(e,a){return i("el-tab-pane",{key:a,attrs:{label:e.label,name:e.name,lazy:""}},[i(e.name,{tag:"component",attrs:{detail:t.detailData,id:t.id,"crm-type":t.crmType},on:{handle:t.detailHeadHandle}})],1)}))],1)],1):t._e()],1),t._v(" "),t.isCreate?i("c-r-m-all-create",{attrs:{action:{type:"update",id:t.id,batchId:t.detailData.batchId},"crm-type":t.crmType},on:{"save-success":t.editSaveSuccess,close:function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"587d3fe6",null);b.options.__file="Detail.vue";e.a=b.exports},AYVk:function(t,e,i){"use strict";var a=i("XRFe");i.n(a).a},CLSc:function(t,e,i){"use strict";var a=i("fogi");i.n(a).a},GyZQ:function(t,e,i){},Itf4:function(t,e,i){"use strict";var a=i("GyZQ");i.n(a).a},J7m9:function(t,e,i){"use strict";var a=i("8OTK"),n=i("7Dod"),s=i("ERJp"),l=i("dAOq"),o=i("jHPx"),c={name:"RelativeContract",components:{CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-21d9"),i.e("chunk-a3e9"),i.e("chunk-5553")]).then(i.bind(null,"3z7q"))},CRMAllCreate:a.default},mixins:[l.a],props:{id:[String,Number],crmType:{type:String,default:""},isSeas:{type:Boolean,default:!1},detail:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,nopermission:!1,list:[],fieldList:[],tableHeight:"400px",showFullDetail:!1,isCreate:!1,contract_id:"",createActionInfo:{type:"relative",crmType:this.crmType,data:{}}}},inject:["rootTabs"],computed:{},watch:{id:function(t){this.list=[],this.getDetail()},"rootTabs.currentName":function(t){"RelativeContract"===t&&this.getDetail(!1)}},mounted:function(){this.getDetail()},methods:{getFieldList:function(){this.fieldList.push({prop:"name",width:"200",label:"合同名称"}),this.fieldList.push({prop:"num",width:"200",label:"合同编号"}),this.fieldList.push({prop:"customer_name",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,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.loading=e;var i={customer:n.J,business:s.j}[this.crmType],a={pageType:"all"};a[this.crmType+"_id"]=this.id,i(a).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"check_status"===e.property?this.getCRMStatusName(t.check_status):"money"==e.property?Object(o.h)(t[e.property]||0):t[e.property]},handleRowClick:function(t,e,i){"name"==e.property&&(this.contract_id=t.contract_id,this.showFullDetail=!0)},cellClassName:function(t){t.row;var e=t.column;t.rowIndex,t.columnIndex;return"name"===e.property?"can-visit--underline":""},createClick:function(){"business"==this.crmType?(this.createActionInfo.data.customer=this.detail,this.createActionInfo.data.business=this.detail):"customer"==this.crmType&&(this.createActionInfo.data.customer=this.detail),this.isCreate=!0},createSaveSuccess:function(){this.$bus.emit("crm-tab-num-update"),this.getDetail()},detailHandle:function(t){var e=this;"delete"===t.type&&(this.getDetail(),this.$nextTick(function(){e.$bus.emit("crm-tab-num-update")}))}}},r=(i("v4Nb"),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"},{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:"xr-btn--orange rc-head-item",attrs:{icon:"el-icon-plus",type:"primary"},on:{click:t.createClick}},[t._v("新建合同")])],1),t._v(" "),i("el-table",{staticStyle:{width:"100%",border:"1px solid #E6E6E6"},attrs:{data:t.list,height:t.tableHeight,"cell-class-name":t.cellClassName,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.contract_id,"crm-type":"contract"},on:{"update:visible":function(e){t.showFullDetail=e},handle:t.detailHandle}}),t._v(" "),t.isCreate?i("c-r-m-all-create",{attrs:{action:t.createActionInfo,"crm-type":"contract"},on:{"save-success":t.createSaveSuccess,close:function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"7cbddb45",null);d.options.__file="RelativeContract.vue";e.a=d.exports},JRVM:function(t,e,i){"use strict";var a=i("wZvc");i.n(a).a},L9en:function(t,e,i){"use strict";var a=i("99BB");i.n(a).a},Le1A:function(t,e,i){t.exports={xrColorPrimary:"#2362FB"}},Mc92:function(t,e,i){"use strict";var a=i("ZbM5");i.n(a).a},MmuK:function(t,e,i){"use strict";var a=i("biFq");i.n(a).a},Nq7O:function(t,e,i){"use strict";var a=i("ZkWu");i.n(a).a},O8n3:function(t,e,i){},PBZq:function(t,e,i){"use strict";var a=i("nnSI");i.n(a).a},Pcy3:function(t,e,i){},QUqu:function(t,e,i){"use strict";var a=i("8OTK"),n=i("7Dod"),s=i("AAeT"),l=i("mkuN"),o=i("jHPx"),c={name:"RelativeBusiness",components:{CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-21d9"),i.e("chunk-a3e9"),i.e("chunk-5553")]).then(i.bind(null,"3z7q"))},CRMAllCreate:a.default,CrmRelative:l.a},mixins:[],props:{id:[String,Number],crmType:{type:String,default:""},isSeas:{type:Boolean,default:!1},detail:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,nopermission:!1,list:[],fieldList:[],tableHeight:"400px",showFullDetail:!1,isCreate:!1,business_id:"",createActionInfo:{type:"relative",crmType:this.crmType,data:{}},showRelativeView:!1,selectionList:[]}},inject:["rootTabs"],computed:{customerId:function(){return this.detail.customer_id},canRelation:function(){return"contacts"==this.crmType}},watch:{id:function(t){this.list=[],this.getDetail()},"rootTabs.currentName":function(t){"RelativeBusiness"===t&&this.getDetail(!1)}},mounted:function(){this.getDetail()},methods:{checkRelativeInfos:function(t){var e=this;if(t.data.length>0){var i={contacts_id:this.id,is_relation:1};i.business_id=t.data.map(function(t){return t.business_id}),Object(s.k)(i).then(function(t){e.getDetail(),e.$message.success("操作成功")}).catch(function(){})}},unRelevanceHandleClick:function(){var t=this;0==this.selectionList.length?this.$message.error("请先勾选数据"):this.$confirm("确认取消关联?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e={contacts_id:t.id,is_relation:0};e.business_id=t.selectionList.map(function(t){return t.business_id}),Object(s.o)(e).then(function(e){t.getDetail(),t.$message.success("操作成功")}).catch(function(){})}).catch(function(){})},getFieldList:function(){this.fieldList.push({prop:"name",width:"200",label:"商机名称"}),this.fieldList.push({prop:"money",width:"200",label:"商机金额"}),this.fieldList.push({prop:"customer_name",width:"200",label:"客户名称"}),this.fieldList.push({prop:"type_id_info",width:"200",label:"商机组"}),this.fieldList.push({prop:"status_id_info",width:"200",label:"商机阶段"})},fieldFormatter:function(t,e){return"money"==e.property?Object(o.h)(t[e.property]||0):t[e.property]},getDetail:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.loading=e;var i={contacts:s.i,customer:n.H}[this.crmType],a={pageType:"all"};a[this.crmType+"_id"]=this.id,i(a).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){"name"==e.property&&(this.business_id=t.business_id,this.showFullDetail=!0)},cellClassName:function(t){t.row;var e=t.column;t.rowIndex,t.columnIndex;return"name"===e.property?"can-visit--underline":""},createClick:function(){"contacts"==this.crmType?(this.createActionInfo.data.customer=this.detail,this.createActionInfo.relativeData={contactsId:this.detail.contactsId}):"customer"==this.crmType&&(this.createActionInfo.data.customer=this.detail),this.isCreate=!0},createSaveSuccess:function(){this.canRelation?this.$refs.crmrelative.refreshList():(this.$bus.emit("crm-tab-num-update"),this.getDetail())},detailHandle:function(t){var e=this;"delete"===t.type&&(this.getDetail(),this.$nextTick(function(){e.$bus.emit("crm-tab-num-update")}))}}},r=(i("6IJe"),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"},{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:"xr-btn--orange rc-head-item",attrs:{icon:"el-icon-plus",type:"primary"},on:{click:t.createClick}},[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:{moduleType:"customer",customerId:t.customerId}},"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,"cell-class-name":t.cellClassName,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,label:e.label,formatter:t.fieldFormatter,"show-overflow-tooltip":""}})})],2),t._v(" "),i("c-r-m-full-screen-detail",{attrs:{visible:t.showFullDetail,id:t.business_id,"crm-type":"business"},on:{"update:visible":function(e){t.showFullDetail=e},handle:t.detailHandle}}),t._v(" "),t.isCreate?i("c-r-m-all-create",{attrs:{action:t.createActionInfo,"crm-type":"business"},on:{"save-success":t.createSaveSuccess,close:function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"24859b54",null);d.options.__file="RelativeBusiness.vue";e.a=d.exports},QbLr:function(t,e,i){},QhmF:function(t,e,i){"use strict";var a=i("/861"),n=i("7qmR"),s={name:"ExamineHandle",components:{XhUserCell:i("8GhS").p},props:{show:{type:Boolean,default:!1},status:{type:[String,Number],default:1},id:[String,Number],recordId:[String,Number],detail:{type:Object,default:function(){return{}}},examineType:{type:String,default:""}},data:function(){return{loading:!1,showDialog:!1,handleType:1,selectUsers:[],content:""}},computed:{title:function(){return 1==this.status?"审批通过":2==this.status?"审批拒绝":4==this.status?"撤回审批":""},placeholder:function(){return 1==this.status?"请输入审批意见(选填)":2==this.status?"请输入审批意见(必填)":4==this.status?"请输入撤回理由(必填)":""}},watch:{show:{handler:function(t){this.showDialog=t},deep:!0,immediate:!0}},mounted:function(){},methods:{submitInfo:function(){2!=this.status&&4!=this.status||this.content?2==this.status||1==this.status?this.handlePassAndReject():4==this.status&&this.handleRevoke():this.$message.error(this.placeholder)},handleRevoke:function(){var t=this;this.loading=!0,this.getRequest()({id:this.id,recordId:this.recordId,status:2==this.status?0:this.status,content:this.content,type:"revoke"}).then(function(e){t.loading=!1,t.$message.success("操作成功"),"crm_contract"!=t.examineType&&"crm_invoice"!=t.examineType&&"crm_receivables"!=t.examineType||t.$store.dispatch("GetMessageNum"),t.resetInfo(),t.$bus.emit("examine-handle-bus"),t.$emit("save",{type:t.status}),t.hiddenView()}).catch(function(){t.loading=!1})},getRequest:function(){return{crm_contract:a.e,crm_invoice:a.b,crm_receivables:a.d,oa_examine:n.f}[this.examineType]},handlePassAndReject:function(){var t=this;this.loading=!0;var e={id:this.id,recordId:this.recordId,status:2==this.status?0:this.status,content:this.content};if(1==this.status&&0==this.detail.examine_config||0==this.detail.config)if(2==this.handleType){if(this.selectUsers&&0==this.selectUsers.length)return this.$message.error("请先选择下一审批人"),void(this.loading=!1);e.check_user_id=this.selectUsers[0].id}else e.is_end=1;this.getRequest()(e).then(function(e){t.loading=!1,t.$message.success("操作成功"),"crm_contract"!=t.examineType&&"crm_invoice"!=t.examineType&&"crm_receivables"!=t.examineType||t.$store.dispatch("GetMessageNum"),t.resetInfo(),t.$bus.emit("examine-handle-bus"),t.$emit("save",{type:t.status}),t.hiddenView()}).catch(function(){t.loading=!1})},handleClick:function(t){"cancel"==t?(this.hiddenView(),this.resetInfo()):"confirm"==t&&this.submitInfo()},selectUserFocus:function(){this.handleType=2},selectExamineUser:function(t){this.selectUsers=t.value},hiddenView:function(){this.$emit("close")},resetInfo:function(){this.handleType=1,this.selectUsers=[],this.content=""}}},l=(i("9HDP"),i("KHd+")),o=Object(l.a)(s,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{title:t.title,"append-to-body":!0,"close-on-click-modal":!1,visible:t.showDialog,width:"400px"},on:{"update:visible":function(e){t.showDialog=e},close:t.hiddenView}},[1!=t.status||0!=t.detail.examine_config&&0!=t.detail.config?t._e():i("div",{staticClass:"handle-type"},[i("flexbox",{staticClass:"handle-item"},[i("el-radio",{attrs:{label:1},model:{value:t.handleType,callback:function(e){t.handleType=e},expression:"handleType"}},[i("span")]),t._v(" "),i("div",{staticStyle:{"font-size":"12px"},nativeOn:{click:function(e){t.handleType=1}}},[t._v("审核结束")])],1),t._v(" "),i("flexbox",{staticClass:"handle-item",attrs:{id:"selectUser"}},[i("el-radio",{attrs:{label:2},model:{value:t.handleType,callback:function(e){t.handleType=e},expression:"handleType"}},[i("span")]),t._v(" "),i("xh-user-cell",{staticClass:"select-user",attrs:{value:t.selectUsers,placeholder:"选择下一审批人"},on:{focus:t.selectUserFocus,"value-change":t.selectExamineUser}})],1)],1),t._v(" "),1!=t.status||0!=t.detail.examine_config&&0!=t.detail.config?t._e():i("div",{staticClass:"title"},[t._v("意见")]),t._v(" "),i("el-input",{attrs:{rows:5,maxlength:200,placeholder:t.placeholder,type:"textarea",resize:"none","show-word-limit":""},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}),t._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.handleClick("cancel")}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(e){t.handleClick("confirm")}}},[t._v("确 定")])],1)],1)},[],!1,null,"563f4c14",null);o.options.__file="ExamineHandle.vue";e.a=o.exports},RDgq:function(t,e,i){"use strict";var a=i("QbLZ"),n=i.n(a),s=i("7Dod"),l=i("p3/6"),o=i("L2JU"),c={name:"RelativeTeam",components:{TeamsHandle:l.a},mixins:[],props:{id:[String,Number],detail:{type:Object,default:function(){return{}}},crmType:{type:String,default:""},isSeas:{type:Boolean,default:!1}},data:function(){return{loading:!1,list:[],fieldList:[],tableHeight:"400px",teamsDialogShow:!1,handleType:1,editPermissionShow:!1,selectionList:[],validType:"",teamsType:"",pickerOptions:{disabledDate:function(t){return t.getTime()<new Date((new Date).toLocaleDateString()).getTime()}},target_time:""}},inject:["rootTabs"],computed:n()({},Object(o.b)(["crm"]),{teamEditAuth:function(){return this.crm[this.crmType].teamsave}}),watch:{id:function(t){this.list=[],this.getDetail()},"rootTabs.currentName":function(t){"RelativeTeam"===t&&this.getDetail(!1)}},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:"target_time",width:"200",label:"有效时间"}),this.fieldList.push({prop:"authority",width:"200",label:"权限"}),this.getDetail()},methods:{getDetail:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.loading=e;var i={types_id:this.id,types:"crm_"+this.crmType};Object(s.V)(i).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,this.teamsType="add"):"exit"==t?this.$confirm("确定退出团队?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.loading=!0,Object(s.i)({types_id:e.id,types:"crm_"+e.crmType}).then(function(t){e.$message({type:"success",message:"操作成功"}),e.$emit("on-handle",{type:"exit-team"}),e.loading=!1}).catch(function(){e.loading=!1})}).catch(function(){}):0==this.selectionList.length?this.$message.error("请勾选需要操作的团队成员"):"edit"==t?(this.handleType=1,this.validType="",this.target_time="",this.editPermissionShow=!0):"delete"==t&&("customer"===this.crmType?(this.teamsType="delete",this.teamsDialogShow=!0):this.$confirm("此操作将移除这些团队成员是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={types:"crm_"+e.crmType,types_id:[e.id],user_id:e.selectionList.map(function(t){return t.id}),is_del:1};e.loading=!0,Object(s.S)(t).then(function(t){e.$message({type:"success",message:"操作成功"}),e.loading=!1,e.$bus.emit("crm-tab-num-update"),e.getDetail()}).catch(function(){e.loading=!1})}).catch(function(){}))},handleCallBack:function(t){this.$bus.emit("crm-tab-num-update"),this.getDetail()},handleEditConfirm:function(){var t=this;"end"!==this.validType||this.target_time?(this.loading=!0,Object(s.X)({types:"crm_"+this.crmType,types_id:[this.id],user_id:this.selectionList.map(function(t){return t.id}),type:this.handleType,target_time:"end"===this.validType?this.target_time:""}).then(function(e){t.editPermissionShow=!1,t.$message({type:"success",message:"操作成功"}),t.loading=!1,t.getDetail()}).catch(function(){t.loading=!1})):this.$message.error("请选择截止日期")},handleSelectable:function(t,e){return"负责人权限"!=t.authority}}},r=(i("wMCL"),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"}],staticClass:"rc-cont"},[t.isSeas?t._e():i("flexbox",{staticClass:"rc-head",attrs:{direction:"row-reverse"}},[t.teamEditAuth?[i("el-button",{staticClass:"rc-head-item",attrs:{type:"primary"},nativeOn:{click:function(e){t.handleClick("exit")}}},[t._v("退出团队")]),t._v(" "),i("el-button",{staticClass:"rc-head-item",attrs:{type:"primary"},nativeOn:{click:function(e){t.handleClick("delete")}}},[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:"xr-btn--orange rc-head-item",attrs:{icon:"el-icon-plus",type:"primary"},on:{click:function(e){t.handleClick("add")}}},[t._v("团队成员")])]:t._e()],2),t._v(" "),i("el-table",{staticStyle:{width:"100%",border:"1px solid #E6E6E6"},attrs:{data:t.list,height:t.tableHeight,stripe:""},on:{"selection-change":t.handleSelectionChange}},[t.teamEditAuth?i("el-table-column",{attrs:{selectable:t.handleSelectable,"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(" "),t.teamsDialogShow?i("teams-handle",{attrs:{"crm-type":t.crmType,"selection-list":[t.detail],"dialog-visible":t.teamsDialogShow,type:t.teamsType,members:"add"===t.teamsType?null:t.selectionList},on:{"update:dialogVisible":function(e){t.teamsDialogShow=e},handle:t.handleCallBack}}):t._e(),t._v(" "),i("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{visible:t.editPermissionShow,"close-on-click-modal":!1,"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("只读"),i("el-tooltip",{staticStyle:{"margin-left":"3px"},attrs:{content:"支持查看详细资料、添加和查看活动中所有跟进记录",effect:"dark",placement:"top"}},[i("i",{staticClass:"wk wk-help wk-help-tips"})])],1),t._v(" "),i("el-radio",{attrs:{label:2}},[t._v("读写"),i("el-tooltip",{staticStyle:{"margin-left":"3px"},attrs:{content:"支持编辑和查看详细资料、可以添加和查看活动中所有跟进记录",effect:"dark",placement:"top"}},[i("i",{staticClass:"wk wk-help wk-help-tips"})])],1)],1)],1),t._v(" "),i("flexbox",{staticClass:"handle-item"},[i("div",{staticClass:"handle-item-name"},[t._v("有效时间:")]),t._v(" "),i("el-select",{model:{value:t.validType,callback:function(e){t.validType=e},expression:"validType"}},[i("el-option",{attrs:{label:"不限",value:""}}),t._v(" "),i("el-option",{attrs:{label:"截止到",value:"end"}})],1),t._v(" "),"end"===t.validType?i("el-date-picker",{staticStyle:{"margin-left":"8px"},attrs:{"picker-options":t.pickerOptions,"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期"},model:{value:t.target_time,callback:function(e){t.target_time=e},expression:"target_time"}}):t._e()],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,"d9ffd89a",null);d.options.__file="RelativeTeam.vue";e.a=d.exports},"RE/G":function(t,e,i){"use strict";var a=i("6iAj"),n=i("ZoMv"),s={name:"RelativePrint",components:{},mixins:[],props:{id:[String,Number],crmType:{type:String,default:""},detail:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,nopermission:!1,list:[],fieldList:[{prop:"create_time",label:"打印时间",width:"115px"},{prop:"template_name",label:"打印模板",width:"115px"}],tableHeight:"450px"}},inject:["rootTabs"],computed:{},watch:{id:function(t){this.list=[],this.getDetail()},"rootTabs.currentName":function(t){"RelativePrint"===t&&this.getDetail(!1)}},mounted:function(){this.getDetail()},methods:{getDetail:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.loading=e,Object(a.D)({crmType:n.a.convertKeyToType(this.crmType),typeId:this.id}).then(function(e){t.nopermission=!1,t.loading=!1,t.list=e.data.list}).catch(function(e){102==e.code&&(t.nopermission=!0),t.loading=!1})},print:function(t){var e=this.$router.resolve("/print/?&type=history&module="+this.crmType+"&id="+t.record_id);window.open(e.href,"_blank")}}},l=(i("VKWv"),i("KHd+")),o=Object(l.a)(s,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"},{name:"empty",rawName:"v-empty",value:t.nopermission,expression:"nopermission"}],staticClass:"rc-cont",attrs:{"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"}},[i("el-table",{directives:[{name:"show",rawName:"v-show",value:t.fieldList.length>0,expression:"fieldList.length > 0"}],staticStyle:{width:"100%",border:"1px solid #E6E6E6"},attrs:{data:t.list,height:t.tableHeight,stripe:""}},[t._l(t.fieldList,function(t,e){return i("el-table-column",{key:e,attrs:{prop:t.prop,label:t.label,"show-overflow-tooltip":""}})}),t._v(" "),i("el-table-column",{attrs:{prop:"down",label:"操作",width:"80px"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{staticClass:"el-button--primary",attrs:{type:"text"},on:{click:function(i){t.print(e.row)}}},[t._v("打印预览")])]}}])})],2)],1)},[],!1,null,"081c68af",null);o.options.__file="RelativePrint.vue";e.a=o.exports},UNNM:function(t,e,i){"use strict";var a=i("+uuU");i.n(a).a},VEyr:function(t,e,i){"use strict";var a=i("Le1A");i.n(a).a},VKWv:function(t,e,i){"use strict";var a=i("xxdi");i.n(a).a},XRFe:function(t,e,i){},Xrnn:function(t,e,i){"use strict";var a=i("zRdn");i.n(a).a},ZZZb:function(t,e,i){"use strict";var a=i("Pcy3");i.n(a).a},ZbM5:function(t,e,i){},ZkWu:function(t,e,i){},biFq:function(t,e,i){},cnnj:function(t,e,i){"use strict";var a=i("ERJp"),n=i("d9x6"),s=i("jHPx"),l={name:"RelativeProduct",components:{CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-21d9"),i.e("chunk-a3e9"),i.e("chunk-5553")]).then(i.bind(null,"3z7q"))}},mixins:[],props:{id:[String,Number],detail:{type:Object,default:function(){return{}}},crmType:{type:String,default:""},isSeas:{type:Boolean,default:!1}},data:function(){return{loading:!1,nopermission:!1,list:[],fieldList:[],tableHeight:"400px",showFullDetail:!1,productId:"",totalInfo:{money:"0.00",discountRate:"0.00"}}},inject:["rootTabs"],computed:{},watch:{id:function(t){this.list=[],this.getDetail()},"rootTabs.currentName":function(t){"RelativeProduct"===t&&this.getDetail(!1)}},mounted:function(){this.getDetail()},methods:{getFieldList:function(){this.fieldList.push({prop:"name",width:"200",label:"产品名称"}),this.fieldList.push({prop:"category_id_info",width:"200",label:"产品类别"}),this.fieldList.push({prop:"unit",width:"200",label:"单位"}),this.fieldList.push({prop:"price",width:"200",label:"标准价格"}),this.fieldList.push({prop:"sales_price",width:"200",label:"售价"}),this.fieldList.push({prop:"num",width:"200",label:"数量"}),this.fieldList.push({prop:"discount",width:"200",label:"折扣(%"}),this.fieldList.push({prop:"subtotal",width:"200",label:"合计"})},fieldFormatter:function(t,e){return"price"==e.property||"sales_price"==e.property?Object(s.h)(t[e.property]||0):t[e.property]},getDetail:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.loading=e,this.getRequest()(this.getParams()).then(function(e){0==t.fieldList.length&&t.getFieldList(),t.nopermission=!1,t.loading=!1,t.list=e.data.list,t.totalInfo.money=e.data.total_price,t.totalInfo.discountRate=e.data.discount_rate}).catch(function(e){102==e.code&&(t.nopermission=!0),t.loading=!1})},getRequest:function(){return"business"==this.crmType?a.h:"contract"==this.crmType?n.h:void 0},getParams:function(){return"business"==this.crmType?{business_id:this.id,pageType:0}:"contract"==this.crmType?{contract_id:this.id,pageType:0}:void 0},handleRowClick:function(t,e,i){"name"==e.property&&(this.productId=t.product_id,this.showFullDetail=!0)},cellClassName:function(t){t.row;var e=t.column;t.rowIndex,t.columnIndex;return"name"===e.property?"can-visit--underline":""}}},o=(i("MmuK"),i("KHd+")),c=Object(o.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"},{name:"empty",rawName:"v-empty",value:t.nopermission,expression:"nopermission"}],staticClass:"rc-cont",attrs:{"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"}},[i("flexbox",{staticClass:"rc-head",attrs:{direction:"row-reverse"}}),t._v(" "),i("el-table",{staticStyle:{width:"100%",border:"1px solid #E6E6E6"},attrs:{data:t.list,height:t.tableHeight,"cell-class-name":t.cellClassName,stripe:""},on:{"row-click":t.handleRowClick}},t._l(t.fieldList,function(e,a){return i("el-table-column",{key:a,attrs:{prop:e.prop,label:e.label,formatter:t.fieldFormatter,"show-overflow-tooltip":""}})})),t._v(" "),i("flexbox",{staticClass:"handle-footer"},[i("div",{staticClass:"discount-title"},[t._v("整单折扣(%"),i("span",{staticClass:"discount-title-value"},[t._v(t._s(t.totalInfo.discountRate))])]),t._v(" "),i("div",{staticClass:"total-info"},[t._v("已选中产品:"),i("span",{staticClass:"info-yellow"},[t._v(t._s(t.list.length))]),t._v(" 种  总金额:"),i("span",{staticClass:"info-yellow"},[t._v(t._s(t.totalInfo.money))]),t._v(" 元")])]),t._v(" "),i("c-r-m-full-screen-detail",{attrs:{visible:t.showFullDetail,id:t.productId,"crm-type":"product"},on:{"update:visible":function(e){t.showFullDetail=e}}})],1)},[],!1,null,"42736f28",null);c.options.__file="RelativeProduct.vue";e.a=c.exports},dlFl:function(t,e,i){},eCeL:function(t,e,i){"use strict";var a=i("jp08");i.n(a).a},eI0G:function(t,e,i){},f2Lb:function(t,e,i){"use strict";var a=i("8OTK"),n=i("7Dod"),s=i("ERJp"),l=i("mkuN"),o={name:"RelativeContacts",components:{CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-21d9"),i.e("chunk-a3e9"),i.e("chunk-5553")]).then(i.bind(null,"3z7q"))},CRMAllCreate:a.default,CrmRelative:l.a},mixins:[],props:{id:[String,Number],contactsId:[String,Number],crmType:{type:String,default:""},isSeas:{type:Boolean,default:!1},detail:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,nopermission:!1,list:[],fieldList:[],tableHeight:"400px",showFullDetail:!1,isCreate:!1,detailId:"",createActionInfo:{type:"relative",crmType:this.crmType,data:{}},showRelativeView:!1,selectionList:[]}},inject:["rootTabs"],computed:{customerId:function(){return this.detail.customer_id},canRelation:function(){return"business"==this.crmType}},watch:{id:function(t){this.list=[],this.getDetail()},"rootTabs.currentName":function(t){"RelativeContacts"===t&&this.getDetail(!1)}},mounted:function(){this.getDetail()},methods:{checkRelativeInfos:function(t){var e=this;if(t.data.length>0){var i={business_id:this.id,is_relation:1};i.contacts_id=t.data.map(function(t){return t.contacts_id}),Object(s.l)(i).then(function(t){e.getDetail(),e.$message.success("操作成功")}).catch(function(){})}},unRelevanceHandleClick:function(){var t=this;0==this.selectionList.length?this.$message.error("请先勾选数据"):this.$confirm("确认取消关联?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e={business_id:t.id,is_relation:0};e.contacts_id=t.selectionList.map(function(t){return t.contacts_id}),Object(s.s)(e).then(function(e){t.getDetail(),t.$message.success("操作成功")}).catch(function(){})}).catch(function(){})},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,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.loading=e;var i={customer:n.I,business:s.i}[this.crmType],a={pageType:"all"};a[this.crmType+"_id"]=this.id,i(a).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){"name"==e.property&&(this.detailId=t.contacts_id,this.showFullDetail=!0)},cellClassName:function(t){t.row;var e=t.column;t.rowIndex,t.columnIndex;return"name"===e.property?"can-visit--underline":""},createClick:function(){"customer"==this.crmType?this.createActionInfo.data.customer=this.detail:"business"==this.crmType&&(this.createActionInfo.data.customer=this.detail,this.createActionInfo.relativeData={business_id:this.detail.business_id}),this.isCreate=!0},createSaveSuccess:function(){this.canRelation?this.$refs.crmrelative.refreshList():(this.$bus.emit("crm-tab-num-update"),this.getDetail())},setChieflyContacts:function(t){var e=this,i={customer:n.Q,business:s.n}[this.crmType],a={contacts_id:t.row.contacts_id};a[this.crmType+"_id"]=this.id,this.loading=!0,i(a).then(function(i){e.$message.success("操作成功"),e.$emit("update:contactsId",t.row.contacts_id),e.loading=!1}).catch(function(t){e.loading=!1})},detailHandle:function(t){var e=this;"delete"===t.type&&(this.getDetail(),this.$nextTick(function(){e.$bus.emit("crm-tab-num-update")}))}}},c=(i("yPn9"),i("KHd+")),r=Object(c.a)(o,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"},{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:"xr-btn--orange rc-head-item",attrs:{icon:"el-icon-plus",type:"primary"},on:{click:t.createClick}},[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:{moduleType:"customer",customerId:t.customerId}},"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",{directives:[{name:"show",rawName:"v-show",value:t.fieldList.length>0,expression:"fieldList.length > 0"}],staticStyle:{width:"100%",border:"1px solid #E6E6E6"},attrs:{data:t.list,height:t.tableHeight,"cell-class-name":t.cellClassName,stripe:""},on:{"row-click":t.handleRowClick,"selection-change":function(e){t.selectionList=e}}},[t.canRelation?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":""}})}),t._v(" "),i("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("flexbox",{attrs:{justify:"center"}},[t.contactsId==e.row.contacts_id?i("span",{staticClass:"chief"},[i("i",{staticClass:"wk wk-success"}),t._v("首要联系人")]):i("el-button",{staticClass:"set-chief-btn",attrs:{type:"text"},nativeOn:{click:function(i){t.setChieflyContacts(e)}}},[t._v("设为首要联系人")])],1)]}}])})],2),t._v(" "),i("c-r-m-full-screen-detail",{attrs:{visible:t.showFullDetail,id:t.detailId,"crm-type":"contacts"},on:{"update:visible":function(e){t.showFullDetail=e},handle:t.detailHandle}}),t._v(" "),t.isCreate?i("c-r-m-all-create",{attrs:{action:t.createActionInfo,"crm-type":"contacts"},on:{"save-success":t.createSaveSuccess,close:function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"10d504cf",null);r.options.__file="RelativeContacts.vue";e.a=r.exports},fogi:function(t,e,i){},gTyn:function(t,e,i){"use strict";var a=i("QbLZ"),n=i.n(a),s=i("AAeT"),l=i("4XAY"),o=i("BzA1"),c={name:"ImportInfoEmpty",components:{},props:{title:{type:String,default:"暂无数据"},btnName:String},data:function(){return{}},computed:{},watch:{},mounted:function(){},beforeDestroy:function(){},methods:{click:function(){this.$emit("add")}}},r=(i("0tpr"),i("KHd+")),d=Object(r.a)(c,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("flexbox",{attrs:{align:"center",justify:"center"}},[i("div",{staticClass:"empty"},[i("p",{staticClass:"empty-title"},[t._v(t._s(t.title))]),t._v(" "),t.btnName?i("el-button",{staticClass:"xr-btn--orange empty-btn",attrs:{icon:"el-icon-plus",type:"primary"},on:{click:t.click}},[t._v(t._s(t.btnName))]):t._e()],1)])},[],!1,null,"1da205b2",null);d.options.__file="ImportInfoEmpty.vue";var u=d.exports,m=i("ZoMv"),h=i("L2JU"),p={name:"ChieflyContacts",components:{ImportInfo:o.a,ImportInfoEmpty:u,CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-21d9"),i.e("chunk-a3e9"),i.e("chunk-5553")]).then(i.bind(null,"3z7q"))}},props:{id:[Number,String],pool_id:[Number,String],contactsId:[Number,String],crmType:{required:!0,type:String,default:""},isSeas:{type:Boolean,default:!1}},data:function(){return{loading:!1,detail:null,list:[],showFullDetail:!1}},computed:n()({},Object(h.b)(["crm"]),{canShowContacts:function(){return this.crm&&this.crm.contacts&&this.crm.contacts.read},hasInfo:function(){return this.contactsId},emptyBtnName:function(){return this.$listeners.add&&!this.isSeas?"新建联系人":""},emptyName:function(){return{customer:"暂无客户首要联系人",business:"暂无商机首要联系人"}[this.crmType]||"暂无数据"}}),watch:{contactsId:function(){this.detail=null,this.getDetial()},id:function(){this.list=[],this.detail=null,this.getBaseInfo(),this.getDetial()}},created:function(){var t=this;this.canShowContacts&&this.getDetial(),this.getBaseInfo(),this.$bus.on("crm-detail-update",function(e){t.getBaseInfo()})},beforeDestroy:function(){this.$bus.off("crm-detail-update")},methods:{getDetial:function(){var t=this;this.hasInfo&&(this.loading=!0,Object(s.j)({id:this.contactsId}).then(function(e){t.loading=!1,t.detail=e.data}).catch(function(){t.loading=!1}))},getBaseInfo:function(){var t=this;this.loading=!0;var e={id:this.id,types:m.a[this.crmType],action_id:this.id,module:"crm",controller:this.crmType,action:"read",system:1};this.pool_id&&(e.pool_id=this.pool_id),Object(l.y)(e).then(function(e){t.list=e.data,t.loading=!1}).catch(function(){t.loading=!1})}}},f=(i("hTD5"),Object(r.a)(p,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:"chiefly-contacts"},[t.detail&&t.canShowContacts?i("flexbox",{staticClass:"cell",attrs:{align:"stretch"}},[i("xr-avatar",{staticClass:"cell-hd",attrs:{name:t.detail.name,size:40}}),t._v(" "),i("div",{staticClass:"cell-bd"},[i("p",{staticClass:"cell-bd__name"},[i("span",[t._v(t._s(t.detail.name))]),t._v(" "),t.detail.post?i("span",{staticClass:"cell-bd__name--des"},[t._v(t._s(t.detail.post))]):t._e()]),t._v(" "),i("p",{staticClass:"cell-bd__detail"},[i("i",{staticClass:"wk wk-circle-iphone"}),t._v(" "),t.detail.mobile?i("span",[t._v(t._s(t.detail.mobile))]):i("span",{staticClass:"no-data"},[t._v("暂无电话")])]),t._v(" "),i("p",{staticClass:"cell-bd__detail"},[i("i",{staticClass:"wk wk-circle-email"}),t._v(" "),t.detail.email?i("span",[t._v(t._s(t.detail.email))]):i("span",{staticClass:"no-data"},[t._v("暂无邮箱")])])]),t._v(" "),i("span",{staticClass:"mark"},[i("i",{staticClass:"wk wk-s-contacts"}),t._v("首要联系人")])],1):!t.contactsId&&t.canShowContacts?i("import-info-empty",t._g({staticClass:"empty-info",attrs:{title:t.emptyName,"btn-name":t.emptyBtnName}},t.$listeners)):t._e(),t._v(" "),t.list.length?i("import-info",{attrs:{list:t.list}}):t._e(),t._v(" "),i("c-r-m-full-screen-detail",{attrs:{visible:t.showFullDetail,id:t.contactsId,"model-data":{model:"contacts",modelId:t.contactsId},"crm-type":"contacts"},on:{"update:visible":function(e){t.showFullDetail=e}}})],1)},[],!1,null,"64b08a77",null));f.options.__file="ChieflyContacts.vue";e.a=f.exports},gwiD:function(t,e,i){"use strict";var a=i("AAeT"),n=i("Ew9n"),s=i("raay"),l=i("eOwn"),o=i("7Dod"),c=i("4XAY"),r={name:"ContactsImport",components:{ImportInfo:i("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 t=this;this.$bus.on("crm-detail-update",function(e){t.getBaseInfo()})},mounted:function(){this.getDetial()},beforeDestroy:function(){this.$bus.off("crm-detail-update")},methods:{getDetial:function(){var t=this;this.hasInfo&&(this.loading=!0,Object(o.N)({id:this.customerId}).then(function(e){t.loading=!1,t.detail=e.data}).catch(function(){t.loading=!1}),this.getBaseInfo())},getBaseInfo:function(){var t=this;this.loading=!0,Object(c.y)({id:this.id,types:"crm_contacts",action_id:this.id,module:"crm",controller:"contacts",action:"read",system:1}).then(function(e){t.list=e.data,t.loading=!1}).catch(function(){t.loading=!1})}}},d=(i("ZZZb"),i("KHd+")),u=Object(d.a)(r,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"contacts-import"},[t.detail?a("flexbox",{staticClass:"cell",attrs:{align:"stretch"}},[a("img",{staticClass:"cell-hd",attrs:{src:i("wfwE")}}),t._v(" "),a("div",{staticClass:"cell-bd"},[a("p",{staticClass:"cell-bd__name"},[a("span",[t._v(t._s(t.detail.name))])]),t._v(" "),a("div",{staticClass:"cell-bd__detail"},[a("i",{staticClass:"wk wk-circle-iphone"}),t._v(" "),t.detail.mobile?a("span",[t._v(t._s(t.detail.mobile))]):a("span",{staticClass:"no-data"},[t._v("暂无电话")]),t._v(" "),a("div",{staticClass:"deal-info"},[a("span",{class:["mark",t.isDeal?"mark-suc":"mark-un"]},[a("i",{class:t.dealIcon}),t._v(t._s(t.dealName))])])])])]):t._e(),t._v(" "),t.list.length?a("import-info",{attrs:{list:t.list}}):t._e()],1)},[],!1,null,"06f5a3d6",null);u.options.__file="ContactsImport.vue";var m=u.exports,h=i("w4ZA"),p=i("RDgq"),f=i("QUqu"),v=i("CjUg"),b=i("3gPr"),g=i("8OTK"),_=i("f6dm"),y={name:"ContactsDetail",components:{SlideView:n.a,CRMDetailHead:s.a,Activity:l.a,CRMEditBaseInfo:h.a,RelativeBusiness:f.a,RelativeHandle:v.a,RelativeFiles:b.a,CRMAllCreate:g.default,ContactsImport:m,RelativeTeam:p.a},mixins:[_.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 t=[{type:"task",label:"创建任务"},{type:"business",label:"创建商机"},{type:"contract",label:"创建合同"},{type:"receivables",label:"创建回款"}];return this.canCreateFollowRecord&&(t=[{type:"log",label:"写跟进"}].concat(t)),t},tabNames:function(){var t=[];return t.push({label:"活动",name:"Activity"}),this.crm.contacts&&this.crm.contacts.read&&t.push({label:"详细资料",name:"CRMEditBaseInfo"}),t.push({label:this.getTabName("团队成员",this.tabsNumber.memberCount),name:"RelativeTeam"}),this.crm.business&&this.crm.business.index&&t.push({label:this.getTabName("商机",this.tabsNumber.businessCount),name:"RelativeBusiness"}),t.push({label:this.getTabName("附件",this.tabsNumber.fileCount),name:"RelativeFiles"}),t.push({label:"操作记录",name:"RelativeHandle"}),t},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 t=this;this.loading=!0,Object(a.j)({id:this.id}).then(function(e){t.loading=!1,t.detailData=e.data,0!==t.detailData.dataAuth&&(t.headDetails[0].value=e.data.customer_name,t.headDetails[1].value=e.data.post,t.headDetails[2].value=e.data.mobile,t.headDetails[3].value=e.data.create_time)}).catch(function(){t.loading=!1,t.hideView()})},hideView:function(){this.$emit("hide-view")}}},w=(i("Nq7O"),Object(d.a)(y,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:{afterEnter:t.viewAfterEnter,close:t.hideView}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"crmDetailMain",staticClass:"detail-main"},[t.canShowDetail&&t.detailData?i("flexbox",{staticClass:"d-container",attrs:{direction:"column",align:"stretch"}},[i("c-r-m-detail-head",{attrs:{detail:t.detailData,"head-details":t.headDetails,id:t.id,"page-list":t.pageList,"crm-type":t.crmType},on:{pageChange:t.pageChange,handle:t.detailHeadHandle,close:t.hideView}},[i("template",{slot:"name"},[i("el-tooltip",{attrs:{content:0==t.detailData.star?"添加关注":"取消关注",effect:"dark",placement:"top"}},[i("i",{staticClass:"wk wk-focus-on focus-icon",class:{active:0!=t.detailData.star},on:{click:function(e){t.toggleStar()}}})])],1)],2),t._v(" "),i("flexbox",{staticClass:"d-container-bd",attrs:{align:"stretch"}},[i("el-tabs",{staticClass:"d-container-bd--left",attrs:{type:"border-card"},model:{value:t.tabCurrentName,callback:function(e){t.tabCurrentName=e},expression:"tabCurrentName"}},t._l(t.tabNames,function(e,a){return i("el-tab-pane",{key:a,attrs:{label:e.label,name:e.name,lazy:""}},[i(e.name,{tag:"component",attrs:{detail:t.detailData,"type-list":t.logTyps,id:t.id,handle:t.activityHandle,"crm-type":t.crmType},on:{handle:t.detailHeadHandle}})],1)})),t._v(" "),i("transition",{attrs:{name:"slide-fade"}},[i("el-tabs",{directives:[{name:"show",rawName:"v-show",value:t.showImportInfo,expression:"showImportInfo"}],staticClass:"d-container-bd--right",attrs:{value:"chiefly-contacts",type:"border-card"}},[i("el-tab-pane",{attrs:{label:"重要信息",name:"chiefly-contacts",lazy:""}},[i("contacts-import",{attrs:{id:t.id,"customer-id":t.customerId}})],1)],1)],1)],1)],1):t._e()],1),t._v(" "),i("el-button",{staticClass:"firse-button",on:{click:function(e){t.showImportInfo=!t.showImportInfo}}},[t._v("重"),i("br"),t._v("要"),i("br"),t._v("信"),i("br"),t._v("息"),i("br"),i("i",{staticClass:"el-icon-arrow-right el-icon--right",class:{"is-reverse":!t.showImportInfo}})]),t._v(" "),t.isCreate?i("c-r-m-all-create",{attrs:{action:{type:"update",id:t.id,batchId:t.detailData.batchId},"crm-type":t.crmType},on:{"save-success":t.editSaveSuccess,close:function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"36b26895",null));w.options.__file="Detail.vue";e.a=w.exports},hTD5:function(t,e,i){"use strict";var a=i("1c2Q");i.n(a).a},jp08:function(t,e,i){},mVxz:function(t,e,i){"use strict";var a=i("d9x6"),n=i("Ew9n"),s=i("raay"),l=i("eOwn"),o=i("w4ZA"),c=i("CjUg"),r=i("RDgq"),d=i("cnnj"),u=i("/akV"),m=i("3gPr"),h=i("35zX"),p=i("RE/G"),f=i("3biH"),v=i("8OTK"),b=i("f6dm"),g=i("jHPx"),_={name:"ContractDetail",components:{SlideView:n.a,CRMDetailHead:s.a,Activity:l.a,CRMEditBaseInfo:o.a,RelativeHandle:c.a,RelativeTeam:r.a,RelativeProduct:d.a,RelativeReturnMoney:u.a,RelativeFiles:m.a,RelativeVisit:h.a,RelativePrint:p.a,ExamineInfo:f.a,CRMAllCreate:v.default},mixins:[b.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:"contract",headDetails:[{title:"合同编号",value:""},{title:"客户名称",value:""},{title:"合同金额(元)",value:""},{title:"下单时间",value:""},{title:"回款金额(元)",value:""},{title:"负责人",value:""}],tabCurrentName:"Activity",createAction:{},isCreate:!1}},computed:{activityHandle:function(){var t=[{type:"task",label:"创建任务"},{type:"receivables",label:"创建回款"}];return this.canCreateFollowRecord&&(t=[{type:"log",label:"写跟进"}].concat(t)),t},tabNames:function(){var t=[];return this.crm.contract&&this.crm.contract.read&&t.push({label:"详细资料",name:"CRMEditBaseInfo"}),t.push({label:"活动",name:"Activity"}),this.crm.product&&this.crm.product.index&&t.push({label:this.getTabName("产品",this.tabsNumber.productCount),name:"RelativeProduct"}),this.crm.receivables&&this.crm.receivables.index&&t.push({label:this.getTabName("回款",this.tabsNumber.receivablesCount),name:"RelativeReturnMoney"}),this.crm.visit&&this.crm.visit.index&&t.push({label:this.getTabName("回访",this.tabsNumber.returnVisitCount),name:"RelativeVisit"}),t.push({label:this.getTabName("团队成员",this.tabsNumber.memberCount),name:"RelativeTeam"}),t.push({label:this.getTabName("附件",this.tabsNumber.fileCount),name:"RelativeFiles"}),t.push({label:"操作记录",name:"RelativeHandle"}),this.crm.contract&&this.crm.contract.print&&t.push({label:"打印记录",name:"RelativePrint"}),t},logTyps:function(){return[{icon:"all",color:"#2362FB",command:"",label:"全部活动"},{icon:"contract",color:"#FD5B4A",command:6,label:"合同"},{icon:"o-task",color:"#D376FF",command:11,label:"任务"},{icon:"receivables",color:"#FFB940",command:7,label:"回款"},{icon:"log",color:"#5864FF",command:8,label:"日志"},{icon:"approve",color:"#9376FF",command:9,label:"审批"}]}},mounted:function(){this.crm.contract&&this.crm.contract.read&&(this.tabCurrentName="CRMEditBaseInfo")},methods:{getDetial:function(){var t=this;this.loading=!0,Object(a.m)({id:this.id}).then(function(e){t.loading=!1;var i=e.data||{};t.detailData=i,0!==t.detailData.dataAuth&&(t.headDetails[0].value=i.num,t.headDetails[1].value=i.customer_id_info.name,t.headDetails[2].value=Object(g.h)(i.money||0),t.headDetails[3].value=i.order_date,t.headDetails[4].value=Object(g.h)(i.receivablesMoney.doneMoney||0),t.headDetails[5].value=i.owner_user_name)}).catch(function(){t.loading=!1,t.hideView()})},hideView:function(){this.$emit("hide-view")},editSaveSuccess:function(){this.$bus.$emit("crm-detail-update",this.crmType),this.$emit("handle",{type:"save-success"}),this.detailData=null,this.getDetial()},examineHandle:function(t){1==t.type&&this.getDetial(),this.$emit("handle",{type:"examine"})},detailHeadHandleClick:function(t){if("edit"===t.type){if(2===this.detailData.check_status)return this.$message.error("已通过的合同作废后才可编辑"),!1;if(1===this.detailData.check_status)return this.$message.error("审核中的合同撤回后才可编辑"),!1;this.createAction={type:"update",id:this.id,batchId:this.detailData.batchId}}},deadHandleClick:function(t){"copyContract"===t.type&&(this.createAction={type:"update",title:"复制合同",id:this.id,isCopy:!0},this.isCreate=!0)}}},y=(i("L9en"),i("KHd+")),w=Object(y.a)(_,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:{afterEnter:t.viewAfterEnter,close:t.hideView}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"crmDetailMain",staticClass:"detail-main"},[t.canShowDetail&&t.detailData?i("flexbox",{staticClass:"d-container",attrs:{direction:"column",align:"stretch"}},[i("c-r-m-detail-head",{attrs:{detail:t.detailData,"head-details":t.headDetails,id:t.id,"crm-type":t.crmType,"page-list":t.pageList},on:{pageChange:t.pageChange,"handle-click":t.deadHandleClick,handle:t.detailHeadHandle,close:t.hideView}},[i("template",{slot:"name"},[6==t.detailData.check_status?i("span",{staticClass:"is-invalid"},[t._v("(已作废)")]):t._e()])],2),t._v(" "),t.detailData.flow_id?i("examine-info",{staticClass:"examine-info",attrs:{id:t.id,"record-id":t.detailData.flow_id,"owner-user-id":t.detailData.owner_user_id,"examine-type":"crm_contract"},on:{"on-handle":t.examineHandle}}):t._e(),t._v(" "),i("div",{staticClass:"d-container-bd"},[i("el-tabs",{staticClass:"d-container-bd--left",attrs:{type:"border-card"},model:{value:t.tabCurrentName,callback:function(e){t.tabCurrentName=e},expression:"tabCurrentName"}},t._l(t.tabNames,function(e,a){return i("el-tab-pane",{key:a,attrs:{label:e.label,name:e.name,lazy:""}},[i(e.name,{tag:"component",attrs:{detail:t.detailData,"type-list":t.logTyps,id:t.id,handle:t.activityHandle,"crm-type":t.crmType},on:{handle:t.detailHeadHandle}})],1)}))],1)],1):t._e()],1),t._v(" "),t.isCreate?i("c-r-m-all-create",{attrs:{action:t.createAction,"crm-type":t.crmType},on:{"save-success":t.editSaveSuccess,close:function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"17f15d3a",null);w.options.__file="Detail.vue";e.a=w.exports},mwqc:function(t,e,i){},nnSI:function(t,e,i){},tMlD:function(t,e,i){"use strict";var a=i("Y4Le"),n=i("Ew9n"),s=i("raay"),l=i("w4ZA"),o=i("3gPr"),c=i("CjUg"),r=i("8OTK"),d=i("6V3D"),u=i("h59h"),m=i("f6dm"),h=i("jHPx"),p={name:"ProductDetail",components:{SlideView:n.a,CRMDetailHead:s.a,DetailImg:d.a,CRMEditBaseInfo:l.a,RelativeFiles:o.a,RelativeHandle:c.a,CRMAllCreate:r.default,Sections:u.a},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:"product",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"}]},mainFileList:function(){return this.detailData&&this.detailData.cover_images?this.detailData.cover_images:[]},detailFileList:function(){return this.detailData&&this.detailData.details_images?this.detailData.details_images:[]}},mounted:function(){},methods:{getDetial:function(){var t=this;this.loading=!0,Object(a.i)({id:this.id}).then(function(e){t.loading=!1,t.detailData=e.data,0!==t.detailData.dataAuth&&(t.headDetails[0].value=e.data.category_id_info,t.headDetails[1].value=e.data.unit,t.headDetails[2].value=Object(h.h)(e.data.price||0),t.headDetails[3].value=e.data.num)}).catch(function(){t.loading=!1,t.hideView()})},hideView:function(){this.$emit("hide-view")},previewImage:function(t,e){this.$bus.emit("preview-image-bus",{index:e,data:t.map(function(t){return t.file_path&&(t.url=t.file_path),t})})}}},f=(i("eCeL"),i("KHd+")),v=Object(f.a)(p,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:{afterEnter:t.viewAfterEnter,close:t.hideView}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"crmDetailMain",staticClass:"detail-main"},[t.canShowDetail&&t.detailData?i("flexbox",{staticClass:"d-container",attrs:{direction:"column",align:"stretch"}},[i("c-r-m-detail-head",{attrs:{detail:t.detailData,"head-details":t.headDetails,id:t.id,"crm-type":t.crmType,"page-list":t.pageList},on:{pageChange:t.pageChange,handle:t.detailHeadHandle,close:t.hideView}}),t._v(" "),i("flexbox",{staticClass:"d-container-bd",attrs:{align:"stretch"}},[i("el-tabs",{staticClass:"d-container-bd--left",attrs:{type:"border-card"},model:{value:t.tabCurrentName,callback:function(e){t.tabCurrentName=e},expression:"tabCurrentName"}},t._l(t.tabNames,function(e,a){return i("el-tab-pane",{key:a,attrs:{label:e.label,name:e.name,lazy:""}},["CRMEditBaseInfo"===e.name?i(e.name,{tag:"c-r-m-edit-base-info",attrs:{detail:t.detailData,id:t.id,"crm-type":t.crmType,"ignore-fields":["status"]},on:{handle:t.detailHeadHandle}},[i("sections",{staticClass:"b-cells",attrs:{title:"图片信息","content-height":"auto"}},[i("div",{staticClass:"image"},[t.mainFileList.length>0?i("div",{staticClass:"image-info"},[i("div",{staticClass:"image-info__label"},[t._v("产品图片")]),t._v(" "),i("div",{staticClass:"image-info__list"},t._l(t.mainFileList,function(e,a){return i("img",{directives:[{name:"src",rawName:"v-src",value:e.url||e.file_path,expression:"item.url||item.file_path"}],key:a,staticClass:"main-img",on:{click:function(e){t.previewImage(t.mainFileList,a)}}})}))]):t._e(),t._v(" "),t.detailFileList.length>0?i("div",{staticClass:"image-info"},[i("div",{staticClass:"image-info__label"},[t._v("产品详情图片")]),t._v(" "),i("div",{staticClass:"image-info__list"},t._l(t.detailFileList,function(e,a){return i("img",{directives:[{name:"src",rawName:"v-src",value:e.url||e.file_path,expression:"item.url||item.file_path"}],key:a,staticClass:"detial-img",on:{click:function(e){t.previewImage(t.detailFileList,a)}}})}))]):t._e(),t._v(" "),0==t.detailFileList.length&&0==t.mainFileList.length?i("div",{staticClass:"no-img"},[t._v("暂无图片")]):t._e()])])],1):i(e.name,{tag:"component",attrs:{detail:t.detailData,id:t.id,"crm-type":t.crmType}})],1)}))],1)],1):t._e()],1),t._v(" "),t.isCreate?i("c-r-m-all-create",{attrs:{action:{type:"update",id:t.id,batchId:t.detailData.batchId,editDetail:t.detailData},"crm-type":t.crmType},on:{"save-success":t.editSaveSuccess,close:function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"fa03810c",null);v.options.__file="Detail.vue";e.a=v.exports},u4cs:function(t,e,i){},uSKd:function(t,e,i){"use strict";var a=i("VcMt"),n=i("Ew9n"),s=i("raay"),l=i("w4ZA"),o=i("3gPr"),c=i("CjUg"),r=i("3biH"),d=i("ROSF"),u=i("f6dm"),m=i("jHPx"),h={name:"InvoiceDetail",components:{SlideView:n.a,CRMDetailHead:s.a,CRMEditBaseInfo:l.a,RelativeFiles:o.a,RelativeHandle:c.a,ExamineInfo:r.a,Create: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:"invoice",name:"",headDetails:[{title:"客户名称",value:""},{title:"开票金额",value:""},{title:"发票号码",value:""},{title:"实际开票日期",value:""}],tabCurrentName:"CRMEditBaseInfo",baseDetailList:[],isCreate:!1}},computed:{tabNames:function(){return[{label:"详细资料",name:"CRMEditBaseInfo"},{label:this.getTabName("附件",this.tabsNumber.fileCount),name:"RelativeFiles"},{label:"操作记录",name:"RelativeHandle"}]}},mounted:function(){},methods:{viewAfterEnter:function(){this.getDetial()},getDetial:function(){var t=this;this.loading=!0,Object(a.g)({id:this.id}).then(function(e){t.loading=!1,t.name=e.data.invoice_number,t.detailData=e.data,t.getBaseList(e.data),0!==t.detailData.dataAuth&&(t.headDetails[0].value=e.data.customer_name,t.headDetails[1].value=Object(m.h)(e.data.invoice_money||0),t.headDetails[2].value=e.data.invoice_number,t.headDetails[3].value=e.data.real_invoice_date)}).catch(function(){t.loading=!1,t.hideView()})},getBaseList:function(t){this.baseDetailList=[{name:"发票信息",list:[{name:"抬头类型",form_type:"text",value:{1:"单位",2:"个人"}[t.invoice.title_type]},{name:"开票抬头",form_type:"text",value:t.invoice.invoice_title},{name:"纳税人识别号",form_type:"text",value:t.invoice.tax_number},{name:"开户行",form_type:"text",value:t.invoice.deposit_bank},{name:"开户账号",form_type:"text",value:t.invoice.deposit_account},{name:"开票地址",form_type:"text",value:t.invoice.deposit_address},{name:"电话",form_type:"text",value:t.invoice.phone}]},{name:"邮寄信息",list:[{name:"联系人",form_type:"text",value:t.posting.contacts_name},{name:"联系方式",form_type:"text",value:t.posting.contacts_mobile},{name:"邮寄地址",form_type:"text",value:t.posting.contacts_address}]}]},hideView:function(){this.$emit("hide-view")},examineHandle:function(){this.detailHeadHandle({type:"examine"})}}},p=(i("5j9w"),i("KHd+")),f=Object(p.a)(h,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:{afterEnter:t.viewAfterEnter,close:t.hideView}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"crmDetailMain",staticClass:"detail-main"},[t.canShowDetail&&t.detailData?i("flexbox",{staticClass:"d-container",attrs:{direction:"column",align:"stretch"}},[i("c-r-m-detail-head",{attrs:{detail:t.detailData,"head-details":t.headDetails,id:t.id,"crm-type":t.crmType,"page-list":t.pageList},on:{pageChange:t.pageChange,handle:t.detailHeadHandle,close:t.hideView}}),t._v(" "),t.detailData.flow_id?i("examine-info",{staticClass:"examine-info",attrs:{id:t.id,"record-id":t.detailData.flow_id,"owner-user-id":t.detailData.owner_user_id,"examine-type":"crm_invoice"},on:{"on-handle":t.examineHandle}}):t._e(),t._v(" "),i("div",{staticClass:"d-container-bd"},[i("el-tabs",{staticClass:"d-container-bd--left",attrs:{type:"border-card"},model:{value:t.tabCurrentName,callback:function(e){t.tabCurrentName=e},expression:"tabCurrentName"}},t._l(t.tabNames,function(e,a){return i("el-tab-pane",{key:a,attrs:{label:e.label,name:e.name,lazy:""}},[i(e.name,{tag:"component",attrs:{detail:t.detailData,id:t.id,"crm-type":t.crmType,"ignore-fields":["invoice_type"],"other-list":t.baseDetailList},on:{handle:t.detailHeadHandle}})],1)}))],1)],1):t._e()],1),t._v(" "),t.isCreate?i("create",{attrs:{action:{type:"update",id:t.id,batchId:t.detailData.batchId,detail:t.detailData}},on:{"save-success":t.editSaveSuccess,close:function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"9eaceb7a",null);f.options.__file="Detail.vue";e.a=f.exports},v4Nb:function(t,e,i){"use strict";var a=i("8Jo7");i.n(a).a},vCOl:function(t,e,i){"use strict";var a=i("dlFl");i.n(a).a},"vV2+":function(t,e,i){"use strict";var a=i("ERJp"),n=i("Ew9n"),s=i("raay"),l=i("eOwn"),o=i("gTyn"),c=i("w4ZA"),r=i("J7m9"),d=i("f2Lb"),u=i("CjUg"),m=i("RDgq"),h=i("cnnj"),p=i("3gPr"),f=i("RE/G"),v=i("8OTK"),b=i("f6dm"),g=i("jHPx"),_={name:"BusinessDetail",components:{SlideView:n.a,CRMDetailHead:s.a,Activity:l.a,ChieflyContacts:o.a,CRMEditBaseInfo:c.a,RelativeContract:r.a,RelativeContacts:d.a,RelativeHandle:u.a,RelativeTeam:m.a,RelativeProduct:h.a,RelativeFiles:p.a,RelativePrint:f.a,CRMAllCreate:v.default},mixins:[b.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:i("y4JV")},{name:"输单",type:2,value:"0%",img:i("migV")},{name:"无效",type:3,value:"0%",img:i("x8Bg")}],isCreate:!1,showImportInfo:!0,firstContactsId:""}},computed:{activityHandle:function(){var t=[{type:"task",label:"创建任务"},{type:"contacts",label:"创建联系人"},{type:"contract",label:"创建合同"},{type:"receivables",label:"创建回款"}];return this.canCreateFollowRecord&&(t=[{type:"log",label:"写跟进"}].concat(t)),t},tabNames:function(){var t=[];return t.push({label:"活动",name:"Activity"}),this.crm.business&&this.crm.business.read&&t.push({label:"详细资料",name:"CRMEditBaseInfo"}),this.crm.contacts&&this.crm.contacts.index&&t.push({label:this.getTabName("联系人",this.tabsNumber.contactCount),name:"RelativeContacts"}),this.crm.contract&&this.crm.contract.index&&t.push({label:this.getTabName("合同",this.tabsNumber.contractCount),name:"RelativeContract"}),this.crm.product&&this.crm.product.index&&t.push({label:this.getTabName("产品",this.tabsNumber.productCount),name:"RelativeProduct"}),t.push({label:this.getTabName("团队成员",this.tabsNumber.memberCount),name:"RelativeTeam"}),t.push({label:this.getTabName("附件",this.tabsNumber.fileCount),name:"RelativeFiles"}),t.push({label:"操作记录",name:"RelativeHandle"}),this.crm.business&&this.crm.business.print&&t.push({label:"打印记录",name:"RelativePrint"}),t},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 t=this;this.firstContactsId="",this.loading=!0,Object(a.k)({id:this.id}).then(function(e){if(t.loading=!1,t.detailData=e.data,0!==t.detailData.dataAuth){t.firstContactsId=t.detailData.contacts_id,t.headDetails[0].value=e.data.customer_id_info.name;var i=e.data.money||0;t.headDetails[1].value=i>0?Object(g.h)(i):"",t.headDetails[2].value=e.data.type_id_info,t.headDetails[3].value=e.data.owner_user_name,t.headDetails[4].value=e.data.create_time,t.handleBusinessStatus(e.data.is_end,e.data.status_id,e.data.status_list.status,e.data.statusRemark)}}).catch(function(){t.loading=!1,t.hideView()})},getBusinessStatusById:function(){var t=this;this.loading=!0,Object(a.p)({business_id:this.id}).then(function(e){t.loading=!1;var i=e.data[0];t.handleBusinessStatus(i.is_end,i.statusId,i.statusList,i.statusRemark)}).catch(function(){t.loading=!1})},hideView:function(){this.$emit("hide-view")},handleBusinessStatus:function(t,e,i,a){if(this.status=[],i&&i.length>0){for(var n=0==t,s=-1,l=0;l<i.length;l++){var o=i[l];n?o.status_id==e?(s=l,o.class="state-suc"):o.class=s>=0?"state-undo":"state-suc":o.status_id==e?(s=l,o.class="state-suc"):o.class=s>=0?"state-invalid":"state-suc",this.status.push(o)}var c={type:t};0==t?(c.name="结束",c.overIcon=["el-icon-arrow-down","el-icon--right"],s==i.length-1?c.class="state-doing":(this.status.length>0&&0!=e&&(this.status[s+1].class="state-doing"),c.class="state-undo")):1==t?(c.name="赢单",c.title="赢单",c.detail="赢单率100%",c.overIcon=["el-icon-check","el-icon--right"],c.class="state-suc"):2==t?(c.name="输单",c.title="赢单率0%",c.detail=a,c.overIcon=["el-icon-circle-close","el-icon--right"],c.class="state-fail"):3==t&&(c.name="无效",c.title="赢单率0%",c.detail=a,c.overIcon=["el-icon-remove-outline","el-icon--right"],c.class="state-invalid"),this.status.push(c)}},handleStatuChange:function(t,e){var i=this;if(0==this.detailData.is_end&&!t.isdoing){var n="确定进入"+t.name+"阶段";this.$confirm(n,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){i.loading=!0,Object(a.a)({business_id:i.id,status_id:t.status_id}).then(function(t){i.loading=!1,i.$message.success("操作成功"),i.getDetial()}).catch(function(){i.loading=!1})}).catch(function(){})}},handleStatuResult:function(t,e){var i=this;if(0==this.detailData.is_end)if(2==t.type||3==t.type){var n="请填写"+t.name+"原因:",s=t.name+"原因";this.$prompt(n,s,{inputType:"text",confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(e){var n=e.value;i.loading=!0,Object(a.a)({business_id:i.id,status_id:t.status_id,is_end:t.type,statusRemark:n}).then(function(t){i.loading=!1,i.$message.success("操作成功"),i.getDetial()}).catch(function(){i.loading=!1})}).catch(function(){})}else this.$confirm("确定将当前商机设为"+t.name+"吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){i.loading=!0,Object(a.a)({business_id:i.id,status_id:t.status_id,is_end:t.type}).then(function(t){i.loading=!1,i.$message.success("操作成功"),i.getDetial()}).catch(function(){i.loading=!1})}).catch(function(){})}}},y=(i("JRVM"),i("KHd+")),w=Object(y.a)(_,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:{afterEnter:t.viewAfterEnter,close:t.hideView}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"crmDetailMain",staticClass:"detail-main"},[t.canShowDetail&&t.detailData?i("flexbox",{staticClass:"d-container",attrs:{direction:"column",align:"stretch"}},[i("c-r-m-detail-head",{attrs:{detail:t.detailData,"head-details":t.headDetails,id:t.id,"crm-type":t.crmType,"page-list":t.pageList},on:{pageChange:t.pageChange,handle:t.detailHeadHandle,close:t.hideView}},[i("template",{slot:"name"},[i("el-tooltip",{attrs:{content:0==t.detailData.star?"添加关注":"取消关注",effect:"dark",placement:"top"}},[i("i",{staticClass:"wk wk-focus-on focus-icon",class:{active:0!=t.detailData.star},on:{click:function(e){t.toggleStar()}}})])],1)],2),t._v(" "),t.status.length>0?i("div",{staticClass:"busi-state-main"},[i("flexbox",{staticClass:"busi-state",style:{opacity:(t.detailData.is_end,1)}},t._l(t.status,function(e,a){return i("a",{key:a},[i("el-popover",{attrs:{title:e.name,content:"赢单率"+e.rate+"%",placement:"bottom",width:"150",trigger:"hover"}},[t.status.length-1!=a?i("div",{staticClass:"busi-state-item",class:e.class,attrs:{slot:"reference"},on:{click:function(i){t.handleStatuChange(e,a)}},slot:"reference"},[t._v("\n "+t._s(e.name)+"\n "),0==a?i("div",{staticClass:"state-circle circle-left"}):t._e(),t._v(" "),0!=a?i("div",{staticClass:"state-arrow arrow-left"}):t._e(),t._v(" "),i("div",{staticClass:"state-arrow arrow-right"})]):t._e()]),t._v(" "),t.status.length-1==a?i("el-popover",{attrs:{title:0==e.type?"":e.title,content:0==e.type?"":e.detail,placement:"bottom",width:"150",trigger:"hover"}},[0==e.type?i("div",{staticClass:"state-handel-cont"},t._l(t.statuHandleItems,function(e,a){return i("flexbox",{key:a,staticClass:"state-handel-item",nativeOn:{click:function(i){t.handleStatuResult(e,a)}}},[i("img",{staticClass:"state-handel-item-img",attrs:{src:e.img||e.thumb_img}}),t._v(" "),i("div",{staticClass:"state-handel-item-name"},[t._v(t._s(e.name))]),t._v(" "),i("div",{staticClass:"state-handel-item-value"},[t._v(t._s(e.value))])])})):t._e(),t._v(" "),i("div",{staticClass:"busi-state-item",class:e.class,attrs:{slot:"reference"},slot:"reference"},[i("i",{class:e.overIcon,staticStyle:{"margin-right":"8px"}}),t._v("\n "+t._s(e.name)+"\n "),i("div",{staticClass:"state-arrow arrow-left"}),t._v(" "),i("div",{staticClass:"state-circle circle-right"})])]):t._e()],1)}))],1):t._e(),t._v(" "),i("flexbox",{staticClass:"d-container-bd",attrs:{align:"stretch"}},[i("el-tabs",{staticClass:"d-container-bd--left",attrs:{type:"border-card"},model:{value:t.tabCurrentName,callback:function(e){t.tabCurrentName=e},expression:"tabCurrentName"}},t._l(t.tabNames,function(e,a){return i("el-tab-pane",{key:a,attrs:{label:e.label,name:e.name,lazy:""}},[i(e.name,{tag:"component",attrs:{detail:t.detailData,"type-list":t.logTyps,id:t.id,handle:t.activityHandle,"crm-type":t.crmType,"contacts-id":t.firstContactsId},on:{"update:contactsId":function(e){t.firstContactsId=e},handle:t.detailHeadHandle}})],1)})),t._v(" "),i("transition",{attrs:{name:"slide-fade"}},[i("el-tabs",{directives:[{name:"show",rawName:"v-show",value:t.showImportInfo,expression:"showImportInfo"}],staticClass:"d-container-bd--right",attrs:{value:"chiefly-contacts",type:"border-card"}},[i("el-tab-pane",{attrs:{label:"重要信息",name:"chiefly-contacts",lazy:""}},[i("chiefly-contacts",{attrs:{"contacts-id":t.firstContactsId,id:t.id,"crm-type":t.crmType}})],1)],1)],1)],1)],1):t._e()],1),t._v(" "),i("el-button",{staticClass:"firse-button",on:{click:function(e){t.showImportInfo=!t.showImportInfo}}},[t._v("重"),i("br"),t._v("要"),i("br"),t._v("信"),i("br"),t._v("息"),i("br"),i("i",{staticClass:"el-icon-arrow-right el-icon--right",class:{"is-reverse":!t.showImportInfo}})]),t._v(" "),t.isCreate?i("c-r-m-all-create",{attrs:{action:{type:"update",id:t.id,batchId:t.detailData.batchId},"crm-type":t.crmType},on:{"save-success":t.editSaveSuccess,close:function(e){t.isCreate=!1}}}):t._e()],1)},[],!1,null,"69147db1",null);w.options.__file="Detail.vue";e.a=w.exports},vxle:function(t,e,i){},wMCL:function(t,e,i){"use strict";var a=i("vxle");i.n(a).a},wS25:function(t,e,i){"use strict";var a=i("QbLZ"),n=i.n(a),s=i("VcMt"),l={name:"MarkInvoice",components:{},mixins:[],props:{visible:{type:Boolean,required:!0,default:!1},detail:Object,reset:{type:Boolean,default:!1}},data:function(){return{loading:!0,form:{invoice_number:"",logistics_number:"",real_invoice_date:""}}},computed:{title:function(){return this.reset?"重置开票信息":"标记为已开票"}},watch:{visible:function(){this.reset&&(this.form={invoice_number:this.detail.invoice_number,logistics_number:this.detail.logistics_number,real_invoice_date:this.detail.real_invoice_date})}},mounted:function(){},methods:{handleCancel:function(){this.form={invoice_number:"",logistics_number:"",real_invoice_date:""},this.$emit("update:visible",!1)},handleConfirm:function(){var t=this;if(!(this.invoiceNumber<=0)){var e=n()({},this.form);e.invoice_id=this.detail.invoice_id,this.loading=!0,(this.reset?s.j:s.k)(e).then(function(e){t.$message({type:"success",message:"操作成功"}),t.loading=!1,t.detail.invoiceStatus=1,t.handleCancel(),t.$emit("change")}).catch(function(){t.loading=!1})}}}},o=(i("6vV0"),i("KHd+")),c=Object(o.a)(l,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{visible:t.visible,"append-to-body":!0,"close-on-click-modal":!1,title:t.title,width:"400px"},on:{close:t.handleCancel}},[i("div",{staticClass:"handle-box"},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"发票号码"}},[i("el-input",{model:{value:t.form.invoice_number,callback:function(e){t.$set(t.form,"invoice_number",e)},expression:"form.invoice_number"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"实际开票日期"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期"},model:{value:t.form.real_invoice_date,callback:function(e){t.$set(t.form,"real_invoice_date",e)},expression:"form.real_invoice_date"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"物流单号"}},[i("el-input",{model:{value:t.form.logistics_number,callback:function(e){t.$set(t.form,"logistics_number",e)},expression:"form.logistics_number"}})],1)],1)],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{nativeOn:{click:function(e){return t.handleCancel(e)}}},[t._v("取消")]),t._v(" "),i("el-button",{directives:[{name:"debounce",rawName:"v-debounce",value:t.handleConfirm,expression:"handleConfirm"}],attrs:{type:"primary"}},[t._v("保存")])],1)])},[],!1,null,"44a608e8",null);c.options.__file="MarkInvoice.vue";e.a=c.exports},wV7O:function(t,e,i){},wZvc:function(t,e,i){},x8Bg:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkJGQkE4RTNGNDE2NTExRTlBREMyQzM3QjE2QkFDODFCIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkJGQkE4RTQwNDE2NTExRTlBREMyQzM3QjE2QkFDODFCIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QkZCQThFM0Q0MTY1MTFFOUFEQzJDMzdCMTZCQUM4MUIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QkZCQThFM0U0MTY1MTFFOUFEQzJDMzdCMTZCQUM4MUIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4PPbYiAAABIklEQVR42mI8c+YMAxbABsQBUGwJxFJA/AuInwDxeSBeD8QboWIogAWLYYFA3AXEKlgs0YDiSCC+A8TlQLwOWRETEpsZiDuhClQYCAOQmrVQPczYXNgGxGUMpAOYnnJkF4aQaRiyoSEwA0Fh089AOZgAMgtkYCgQy1DBQGkgDmOCJg1qgQCQgaZUNNAEFMsSyCLq6uoMPDw8ROn+8uULw82bN5GFJJmwpXZKAMiFz4GYFyaAZiOp4DnIhZeo6MAzIAM3UNHADSADV0NLEUrBU5BZsEgpooKBhUD8E5aXQa7spsCwbqgZKMVXJRBPIcOwqVC9GOXhXyDOhZYad4gw6A60HMiB6sVZYoMKzc1QxaDS2xia8WEBfxZaBazGlikAAgwA3vc6LEJJ7+0AAAAASUVORK5CYII="},xxdi:function(t,e,i){},yPn9:function(t,e,i){"use strict";var a=i("QbLr");i.n(a).a},yPq4:function(t,e,i){"use strict";var a=i("7Qib"),n=i("3ojK"),s=i("1bNe"),l=i("gwiD"),o=i("vV2+"),c=i("mVxz"),r=i("tMlD"),d=i("ALhW"),u=i("0dur"),m=i("uSKd"),h={name:"CRMAllDetail",components:{LeadsDetail:n.a,CustomerDetail:s.a,ContactsDetail:l.a,BusinessDetail:o.a,ContractDetail:c.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(t){"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(a.q)())},destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},methods:{hiddenView:function(){this.$emit("update:visible",!1)},detailHandle:function(t){"alloc"!==t.type&&"get"!==t.type&&"transfer"!==t.type&&"transform"!==t.type&&"delete"!==t.type&&"put_seas"!==t.type||this.hiddenView(),this.$emit("handle",t)}}},p=(i("Itf4"),i("KHd+")),f=Object(p.a)(h,function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.id&&t.visible?i(t.tabName,t._g(t._b({tag:"component",staticClass:"d-view",attrs:{"crm-type":t.crmType,id:t.id,"listener-ids":t.listenerIDs,"no-listener-ids":t.noListenerIDs,"no-listener-class":t.noListenerClass},on:{handle:t.detailHandle,"hide-view":t.hiddenView}},"component",t.$attrs,!1),t.$listeners)):t._e()},[],!1,null,"085bcfd2",null);f.options.__file="CRMAllDetail.vue";e.a=f.exports},zRdn:function(t,e,i){}}]);