| 1 |
- !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function a(e){for(var a=1;a<arguments.length;a++){var n=null!=arguments[a]?arguments[a]:{};a%2?t(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(t,a,i){var n;return n=function(t,a){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,a||"default");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(t)}(a,"string"),(a="symbol"==e(n)?n:String(n))in t?Object.defineProperty(t,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[a]=i,t}System.register(["./index-legacy.a130dba2.js","./composables-legacy.0c6ce36a.js","./total-icon8-legacy.8e480ff7.js","./LJFlexBox-legacy.f9c3d416.js","./LJLabelValue-legacy.d267bf3f.js","./LJPagiNation-legacy.9bb85dfb.js","./LJFieldsTable-legacy.e3a9d0a5.js","./LJWWData-legacy.844c3ebc.js","./XLSXUtils-legacy.9baaf4e1.js","./importDialog-legacy.f1497e9a.js","./on-icon-legacy.40ac8dde.js","./LJUploadFiles-legacy.8442d71c.js","./qiNiu.config-legacy.0345ccbb.js","./LJWWMSelect-legacy.84eca530.js","./LJUploadImages-legacy.ba71ea83.js","./vuedraggable.umd-legacy.a4f60da7.js","./sortable.esm-legacy.19def5ad.js"],(function(e,t){"use strict";var i,n,r,l,o,s,c,u,d,m,f,p,v,g,_,y,b,h,x,w,k,S,C,L=document.createElement("style");return L.textContent=".remind[data-v-00a8f627]{margin:20px 50px}.search-title[data-v-e19d7060]{width:100%;padding:15px 20px;border-radius:8px;background-color:#fff}.guide[data-v-e19d7060]{width:100%;display:flex;flex-direction:column;align-items:center;margin-top:40px;padding-bottom:45px}.show-title[data-v-e19d7060]{width:4%;height:25px;margin-bottom:5px;background-color:#fff;display:flex;align-items:center;justify-content:center;border-top:none;cursor:pointer;border-radius:0 0 8px 8px;margin-left:48%}.radio-btn[data-v-e19d7060]{width:180px;display:flex;align-items:center;justify-content:space-between;border:1px solid #dcdcdc;line-height:36px;height:36px;border-radius:4px;padding:0 15px;font-size:14px;color:#c0c4cc;cursor:pointer;transition:all .2s}.radio-btn[data-v-e19d7060]:hover{color:#1651ee;border-color:#1651ee;transition:all .3s}.total-box[data-v-e19d7060]{display:flex;justify-content:space-between}.total-num[data-v-e19d7060]{width:49.5%;height:100px;background-color:#fdfcff;border:1px solid #dcdcdc;margin-top:15px;border-radius:4px;display:flex;justify-content:space-between;align-items:center}.total-num .img-icon[data-v-e19d7060]{border-radius:50%;text-align:center;display:flex;align-items:center;justify-content:center;margin-left:30px}.total-num .img-icon .total-text[data-v-e19d7060]{font-size:15px;color:#333;margin-bottom:8px;margin-left:10px}.total-num .total-info[data-v-e19d7060]{display:flex;flex-direction:column;justify-content:center;margin-right:30px}.total-num .total-info .total-data[data-v-e19d7060]{font-size:30px;font-weight:700}.btn-list[data-v-e19d7060]{display:flex;justify-content:flex-end;margin:0 0 15px}.clients-views .type-label[data-v-e19d7060]{line-height:2}[data-v-e19d7060] .el-table thead{color:#606266}[data-v-e19d7060] .el-table{color:#909399;border:1px solid #ebeef5;border-radius:5px}[data-v-e19d7060] .el-progress-circle{width:78px!important;height:78px!important}.progress-class-green[data-v-e19d7060]{position:relative}.progress-class-green[data-v-e19d7060] svg>path:nth-child(2){stroke:url(#green)}\n",document.head.appendChild(L),{setters:[function(e){i=e.n,n=e.r,r=e.f,l=e.e,o=e.v,s=e.o,c=e.x,u=e.S,d=e.$},function(e){m=e.u},function(e){f=e.t,p=e.a,v=e.c,g=e.b,_=e._,y=e.d},function(){},function(){},function(e){b=e.L},function(e){h=e.L},function(e){x=e.L},function(e){w=e.E},function(e){k=e.i},function(e){S=e._,C=e.a},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var t={__name:"remindDialog",emits:["getList","refresh"],setup:function(e,t){var a=t.expose,i=t.emit,o=n(!1),s=n(),c=r({customer_id:"",way:0}),u=r({content:[{required:!0,message:"请输入日程描述",trigger:"blur"}],remind_date:[{required:!0,message:"请选择执行时间",trigger:"change"}]}),d=n([{id:0,name:"提前5分钟"},{id:1,name:"提前10分钟"},{id:2,name:"提前15分钟"},{id:3,name:"提前30分钟"},{id:4,name:"提前1小时"}]);function m(e){var t=JSON.parse(JSON.stringify(e));c.customer_id=t.id,o.value=!0}return a({init:m}),{__sfc:!0,dialogVisible:o,ruleFormRef:s,emits:i,ruleForm:c,rules:u,remindList:d,init:m,submit:function(e){s.value.validate((function(e){if(!e)return!1;c.type=1,HTTP.post("visitRemind",c).then((function(e){0==e.code&&(l.exports.Message({message:"操作成功",type:"success"}),o.value=!1,s.value.resetFields(),c.remind_time="",c.customer_id="",c.way=0,i("getList"))}))}))},cancle:function(e){s.value.resetFields(),c.remind_time="",c.way=0,o.value=!1}}}},L=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{staticClass:"clue-details"},[t("el-dialog",{attrs:{title:"新增日程提醒","append-to-body":!0,visible:a.dialogVisible,width:"40%","close-on-click-modal":!1,"before-close":a.cancle},on:{"update:visible":function(e){a.dialogVisible=e}}},[t("div",{staticClass:"remind"},[t("el-form",{ref:"ruleFormRef",attrs:{model:a.ruleForm,rules:a.rules,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"日程描述",prop:"content"}},[t("el-input",{attrs:{type:"textarea"},model:{value:a.ruleForm.content,callback:function(t){e.$set(a.ruleForm,"content",t)},expression:"ruleForm.content"}})],1),t("el-form-item",{attrs:{label:"跟进类型"}},[t("el-radio-group",{model:{value:a.ruleForm.way,callback:function(t){e.$set(a.ruleForm,"way",t)},expression:"ruleForm.way"}},[t("el-radio",{attrs:{label:0}},[e._v("电话拜访")]),t("el-radio",{attrs:{label:1}},[e._v("上门拜访")]),t("el-radio",{attrs:{label:2}},[e._v("网络拜访")])],1)],1),t("el-form-item",{attrs:{label:"执行时间",prop:"remind_date"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"请选择日期"},model:{value:a.ruleForm.remind_date,callback:function(t){e.$set(a.ruleForm,"remind_date",t)},expression:"ruleForm.remind_date"}})],1),t("el-form-item",{attrs:{label:"提醒"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:a.ruleForm.remind_time,callback:function(t){e.$set(a.ruleForm,"remind_time",t)},expression:"ruleForm.remind_time"}},e._l(a.remindList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(e){return a.cancle("ruleForm")}}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:function(e){return a.submit("ruleForm")}}},[e._v("确 定")])],1)])],1)},D=[];L._withStripped=!0;var T=i(t,L,D,!1,null,"00a8f627",null,null);T.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/markets/clients/components/remindDialog.vue";var j=T.exports,N={__name:"clientsViews",setup:function(e){var t=m(),i=n(),_=n(),y=n(null),S=n(0),C=n(),L=n(),D=n({}),T=n([]),N=n([]),F=n([]),P=n(),O=n(1),J=r({my_customer:0,concern_customer:0}),B=n(1),M=r({offset:0,limit:10,ordering:"-id",type:3,abandon_type:0}),H=n([]),$=n([]),z=n([]),W=n(!1),R=n(0),E=n(),V=r({already:"0%"}),U=n("155px"),q=n(!1),G=n([]),A=n([{name:"全部客户",id:3},{name:"关注的客户",id:2}]),I=n([{name:"已放弃的客户",id:1},{name:"未放弃的客户",id:0},{name:"全部",id:2}]),X=n(!1),K=n(),Q=n([]),Y=n([]),Z=n([]);function ee(){W.value=!0,""==M.search_type&&delete M.search_type,HTTP.post("get_customer",M).then((function(e){0==e.code&&(J.my_customer=e.data.my_customer,J.concern_customer=e.data.concern_customer,e.data.customer_res.map((function(e){e.customer_label&&(e.customer_label=e.customer_label.split(","))})),z.value=e.data.temp_fields,$.value=e.data.customer_res,$.value.length>0?X.value=!0:X.value=!1,S.value=e.data.total_customer,T.value=e.data.temp_fields,F.value=e.data.temp_fields.map((function(e){return e.width="140","name"==e.key||"source"==e.key?e.name="客户"+e.name:"become_customer_time"==e.key?e.width="120":"video_link"==e.key?e.width="400":"intention_level"==e.key?(e.width="160",e.sortable=!0):"customer_label"==e.key&&(e.width="300"),["become_customer_time","last_follow_up_time","last_follow_up_record"].includes(e.key)&&(e.width="180px"),["source","video_link"].includes(e.key)&&(e.width="120px"),e.checked=!0,e.visible=!0,e})),N.value=F.value.filter((function(e){return 0==e.is_custom})).map((function(e){return e.name})))})).finally((function(){setTimeout((function(){return W.value=!1}),100)}))}function te(){HTTP.post("get_member_url_permission",{url:"/crm/get_customer/"}).then((function(e){0==e.code&&(1==e.data.permission?(G.value=[{name:"我的客户",id:1}],M.search_type=1,ee()):(G.value=[{name:"我的客户",id:1},{name:"团队的客户",id:2}],M.search_type=1,ee()))}))}function ae(){ee()}var ie=n(),ne=function(){return new Promise((function(e){var t=[],a=JSON.parse(JSON.stringify(M));a.offset=0,a.limit=50;!function i(n){HTTP.post("get_customer",n).then((function(n){n.data.customer_res.map((function(r,l){t.push(r),l===n.data.customer_res.length-1&&(n.data.customer_count>=a.offset+a.limit?(a.offset+=a.limit,i(a)):e({list:t,total:n.data.customer_count,header:n.data.temp_fields}))}))}))}(a)}))};function re(){var e={offset:0,limit:9999,ordering:"-id",fileds:"id,name",del_flag:0,is_default:0};HTTP.get("used_customer_templates",e).then((function(e){0==e.code&&(Q.value=e.data.results)})),HTTP.get("customer_templates_member_level",a(a({},e),{},{company:d.getters.company})).then((function(e){0==e.code&&(Y.value=e.data.results)}))}return o("rowObj",D),o("templateList",z),s((function(){W.value=!0,te(),re(),$Bus.$on("refresh",ae)})),c((function(){$Bus.$off("refresh")})),{__sfc:!0,router:t,transfercustomer:i,transferhead:_,state:y,total:S,clientsDetail:C,remindChildren:L,rowObj:D,temp_fields:T,default_fields:N,fields:F,ljFieldsTableRef:P,currentPage:O,customerMine:J,timeType:B,filter:M,getSelect:H,tableData:$,templateList:z,loading:W,date:R,dateSearch:E,percentageNum:V,showHeigth:U,showNum:q,typeList:G,typeStatusList:A,giveUpList:I,showTip:X,transferOpportunityRef:K,clientTemplateList:Q,clientGrade:Y,tagList:Z,getList:ee,getClient:te,handleDayType:function(){delete M.start_date,delete M.end_date,M.time_type=B.value,M.offset=0,ee()},changeDatePicker:function(){delete M.time_type,E.value&&E.value.length?(M.start_date=E.value[0],M.end_date=E.value[1]):(delete M.start_date,delete M.end_date),M.offset=0,ee()},handleDetails:function(e,t){C.value.init(e,t),D.value=JSON.parse(JSON.stringify(e))},handleSearch:function(){console.log("filter:",M),M.search_fields||delete M.search_fields,ee()},handleSelectionChange:function(e){H.value=e},transferSale:function(){return 0==H.value.length?l.exports.Message("请选中需操作的客户"):H.value.length>1?l.exports.Message("请选中一位操作的客户"):void K.value.init(H.value[0].id)},transferCustomer:function(){0!=H.value.length?i.value.init(H.value):l.exports.Message("请选中需操作的客户")},addContact:function(){if(0!=H.value.length){var e=[];if(H.value.map((function(t){e.push(t.id)})),e.length>1)return l.exports.Message.error("只能选择一位客户新建合同");t.push({path:"/markets/contracts/ordersCEViews/",query:{customer:e[0]}})}else l.exports.Message("请选中需操作的线索")},transferHead:function(){0!=H.value.length?_.value.init(H.value):l.exports.Message("请选中需操作的客户")},refresh:ae,getFilterBtn:function(e){M.search_type=e,ee()},getFilterStatusBtn:function(e){M.type=e,ee()},getGiveUpBtn:function(e){O.value=1,M.offset=0,M.abandon_type=e,ee()},getTemplateBtn:function(e){M.offset=0,M.customer_templates_id=e,M.customer_label="",Z.value=[],HTTP.getById("customer_templates",e).then((function(e){0==e.code&&e.data.label_list.map((function(e){e.label_data.length>0&&e.label_data.map((function(e){Z.value.push(e)}))}))})),ee()},getLevelBtn:function(e){M.offset=0,M.level_id=e,ee()},getTagBtn:function(e){M.offset=0,M.customer_label=e,ee()},remind:function(e,t){var a=this;switch(e){case"y":y.value=0;var i={customer_id:t.id,type:y.value};l.exports.MessageBox.confirm("确定取消提醒吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){HTTP.post("visitRemind",i).then((function(e){0==e.code&&(l.exports.Message({message:"操作成功",type:"success"}),ee())}))})).catch((function(){a.$message({type:"info",message:"已取消操作"})}));break;case"n":L.value.init(t)}},follow:function(e,t){switch(e){case"y":y.value=2;break;case"n":y.value=1}var a={customer_id:t.id,type:y.value};HTTP.post("customerConcern",a).then((function(e){0==e.code&&(l.exports.Message({message:"操作成功",type:"success"}),ee())}))},handleNewClients:function(){t.push("/markets/clients/clientsCEViews")},handleSizeChange:function(e){M.limit=e,ee()},handleCurrentChange:function(e){O.value=e,M.offset=(e-1)*M.limit,ee()},showTotal:function(){q.value=!q.value,q.value?U.value="0px":U.value="155px"},importDialogRef:ie,importBtn:function(){ie.value.init({is_self:0,import_type:1})},getAllExportList:ne,exportBtn:function(){if(0==$.value.length)return l.exports.Message.error("暂无数据导出");var e=l.exports.Loading.service({lock:!0,text:"正在导出数据...",spinner:"el-icon-loading",background:"rgba(255, 255, 255, 0.7)"});ne().then((function(t){console.log("res",t);var a={};t.header.map((function(e){a[e.key]=e.name}));var i={fileName:"我的客户导出记录",sheetName:"我的客户导出记录"};i.headers=a,i.list=t.list;try{w(i),e.close(),l.exports.Message({type:"success",message:"导出成功!",offset:"20px"})}catch(n){l.exports.Message({type:"error",message:"导出失败!",offset:"20px"}),e.close()}}))},getClinetTemp:re,transferCustomerDialog:f,transferHeadDialog:p,remindDialog:j,clientsDetailDialog:v,LJPagiNation:b,LJFieldsTable:h,LJWWData:x,SystemConfig:u,importDialog:k,transferOpportunity:g}}},F=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{staticClass:"clients-views"},[t("div",{staticClass:"search-title"},[t("div",[t("LJTableHeader",{attrs:{dropdown:!1,search:!1}},[t("div",[t("el-radio-group",{on:{input:a.handleDayType},model:{value:a.timeType,callback:function(e){a.timeType=e},expression:"timeType"}},[t("el-radio-button",{attrs:{label:1}},[e._v("今日")]),t("el-radio-button",{attrs:{label:2}},[e._v("本周")]),t("el-radio-button",{attrs:{label:3}},[e._v("当月")])],1),t("el-date-picker",{staticStyle:{"margin-left":"10px","margin-right":"-10px",width:"215px"},attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:a.changeDatePicker},model:{value:a.dateSearch,callback:function(e){a.dateSearch=e},expression:"dateSearch"}})],1)])],1),t("div",{style:{height:a.showHeigth,overflow:"hidden",transition:"all, 0.3s",marginTop:"10px"}},[t("LJTableHeader",{attrs:{dropdown:!1,search:!1}},[t("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"客户名称/微信/电话","suffix-icon":"el-icon-search",clearable:""},on:{change:a.handleSearch},model:{value:a.filter.search_fields,callback:function(t){e.$set(a.filter,"search_fields",t)},expression:"filter.search_fields"}}),t("div",{staticClass:"search-btn"},[t("el-select",{attrs:{placeholder:"请选择"},on:{change:a.getFilterBtn},model:{value:a.filter.search_type,callback:function(t){e.$set(a.filter,"search_type",t)},expression:"filter.search_type"}},e._l(a.typeList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),t("div",{staticClass:"search-btn"},[t("el-select",{attrs:{placeholder:"请选择"},on:{change:a.getFilterStatusBtn},model:{value:a.filter.type,callback:function(t){e.$set(a.filter,"type",t)},expression:"filter.type"}},e._l(a.typeStatusList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),t("div",{staticClass:"search-btn"},[t("el-select",{attrs:{placeholder:"请选择"},on:{change:a.getGiveUpBtn},model:{value:a.filter.abandon_type,callback:function(t){e.$set(a.filter,"abandon_type",t)},expression:"filter.abandon_type"}},e._l(a.giveUpList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),t("div",{staticClass:"search-btn"},[t("el-select",{attrs:{placeholder:"客户模板"},on:{change:a.getTemplateBtn},model:{value:a.filter.customer_templates_id,callback:function(t){e.$set(a.filter,"customer_templates_id",t)},expression:"filter.customer_templates_id"}},e._l(a.clientTemplateList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),t("div",{staticClass:"search-btn"},[t("el-select",{attrs:{placeholder:"客户等级"},on:{change:a.getLevelBtn},model:{value:a.filter.level_id,callback:function(t){e.$set(a.filter,"level_id",t)},expression:"filter.level_id"}},e._l(a.clientGrade,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),t("div",{staticClass:"search-btn"},[t("el-select",{attrs:{placeholder:"客户标签(先选择模板)"},on:{change:a.getTagBtn},model:{value:a.filter.customer_label,callback:function(t){e.$set(a.filter,"customer_label",t)},expression:"filter.customer_label"}},e._l(a.tagList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1),t("div",{staticClass:"total-box"},[t("div",{staticClass:"total-num",staticStyle:{"background-color":"rgba(239, 254, 244, 0.50)","border-color":"#61D79A"}},[e._m(0),t("div",{staticClass:"total-info"},[t("div",{staticClass:"total-data"},[e._v(e._s(a.customerMine.my_customer))])])]),t("div",{staticClass:"total-num",staticStyle:{"background-color":"rgba(240, 245, 255, 0.50)","border-color":"#82A3FF"}},[e._m(1),t("div",{staticClass:"total-info"},[t("div",{staticClass:"total-data"},[e._v(e._s(a.customerMine.concern_customer))])])])])],1)]),t("div",{staticClass:"show-title",on:{click:a.showTotal}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!a.showNum,expression:"!showNum"}],staticStyle:{"font-size":"12px",color:"#7f7f7f"}},[e._v("收起")]),t("div",{directives:[{name:"show",rawName:"v-show",value:a.showNum,expression:"showNum"}],staticStyle:{"font-size":"12px",color:"#7f7f7f"}},[e._v("展开")])]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:a.loading,expression:"loading"}],staticStyle:{"background-color":"#fff",padding:"10px","border-radius":"8px"}},[t("div",{staticClass:"btn-list"},[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32203,expression:"32203"}],on:{click:a.handleNewClients}},[e._v("新建客户")]),t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32207,expression:"32207"}],on:{click:a.transferSale}},[e._v(" 转为销售机会 ")]),t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32205,expression:"32205"}],on:{click:a.transferHead}},[e._v(" 转移负责人 ")]),t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32206,expression:"32206"}],on:{click:a.transferCustomer}},[e._v(" 放回客户公海 ")]),t("el-button",{staticStyle:{"margin-right":"auto"},on:{click:a.addContact}},[e._v(" 新增合同 ")]),t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32211,expression:"32211"}],staticStyle:{padding:"0 10px"},on:{click:a.importBtn}},[t("img",{staticStyle:{height:"14px",margin:"0px 3px -3px 0"},attrs:{src:S,alt:""}}),e._v("导入")]),t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32212,expression:"32212"}],staticStyle:{padding:"0 10px"},on:{click:a.exportBtn}},[t("img",{staticStyle:{height:"14px",margin:"0px 3px -3px 0"},attrs:{src:C,alt:""}}),e._v("导出")])],1),t("div",{staticClass:"lj-el-table m-t-20"},[a.showTip?t(a.LJFieldsTable,{ref:"ljFieldsTableRef",attrs:{"table-key":"markets-client-myClient",loading:a.loading,fields:a.temp_fields,"fields-default":a.default_fields,data:a.tableData,"diff-height":355},on:{"selection-change":a.handleSelectionChange,edit:a.handleDetails},scopedSlots:e._u([{key:"name",fn:function(i){return[t("el-button",{attrs:{type:"text"},on:{click:function(e){return a.handleDetails(i.row,"items",i)}}},[e._v(" "+e._s(i.row.name)+" ")])]}},{key:"intention_level",fn:function(a){return[t("el-rate",{attrs:{disabled:"","text-color":"#ff9900","score-template":"{value}"},model:{value:a.row.intention_level,callback:function(t){e.$set(a.row,"intention_level",t)},expression:"scope.row.intention_level"}})]}},{key:"customer_label",fn:function(a){return e._l(a.row.customer_label,(function(a){return t("el-tag",{staticStyle:{margin:"0 3px 3px 0"}},[e._v(e._s(a))])}))}},{key:"member_name",fn:function(i){return[a.SystemConfig.isDD?t("div",[e._v(e._s(i.row.member_name))]):t(a.LJWWData,{attrs:{type:2,openid:i.row.member_name}})]}},{key:"pre_member_name",fn:function(i){return[a.SystemConfig.isDD?t("div",[e._v(e._s(i.row.pre_member_name))]):t(a.LJWWData,{attrs:{type:2,openid:i.row.pre_member_name}})]}},{key:"create_member_name",fn:function(i){return[a.SystemConfig.isDD?t("div",[e._v(e._s(i.row.create_member_name))]):t(a.LJWWData,{attrs:{type:2,openid:i.row.create_member_name}})]}},{key:"dept_name",fn:function(i){return[a.SystemConfig.isDD?t("div",[e._v(e._s(i.row.dept_name))]):t(a.LJWWData,{attrs:{type:1,openid:i.row.dept_name}})]}},{key:"source",fn:function(a){return[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:a.row.source,placement:"bottom"}},[t("div",{staticStyle:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis",width:"100px"}},[e._v(" "+e._s(a.row.source)+" ")])])]}},{key:"video_link",fn:function(a){return[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:a.row.video_link,placement:"bottom"}},[t("div",{staticStyle:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis",width:"100px"}},[e._v(" "+e._s(a.row.video_link)+" ")])])]}},{key:"is_abandon",fn:function(t){return[e._v(" "+e._s(0==t.row.is_abandon?"未放弃":"已放弃")+" ")]}}],null,!1,2115087169)},[t("template",{slot:"start"},[t("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),t("el-table-column",{attrs:{label:"关注",width:"70",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[0==e.row.is_concern?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32209,expression:"32209"}],staticStyle:{"font-size":"14px",color:"#fd9b03"},attrs:{icon:"el-icon-star-off",type:"text"},on:{click:function(t){return a.follow("n",e.row)}}}):t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32209,expression:"32209"}],staticStyle:{"font-size":"14px",color:"#fd9b03"},attrs:{icon:"el-icon-star-on",type:"text"},on:{click:function(t){return a.follow("y",e.row)}}})]}}],null,!1,2375501125)}),t("el-table-column",{attrs:{label:"提醒",width:"70",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[0==e.row.is_remind?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32210,expression:"32210"}],staticStyle:{"font-size":"14px",color:"#0a77f6"},attrs:{icon:"el-icon-bell",type:"text"},on:{click:function(t){return a.remind("n",e.row)}}}):1==e.row.is_remind?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32210,expression:"32210"}],staticStyle:{"font-size":"14px",color:"#0a77f6"},attrs:{icon:"el-icon-message-solid",type:"text"},on:{click:function(t){return a.remind("y",e.row)}}}):t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32210,expression:"32210"}],staticStyle:{"font-size":"14px",color:"#0a77f6"},attrs:{icon:"el-icon-bell",type:"text"},on:{click:function(t){return a.remind("n",e.row)}}})]}}],null,!1,3070453017)})],1),t("template",{slot:"end"},[t("el-table-column",{attrs:{label:"详情",fixed:"right",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32202,expression:"32202"}],attrs:{type:"text"},on:{click:function(e){return a.handleDetails(i.row,"items")}}},[e._v(" 查看 ")])]}}],null,!1,3135001572)})],1)],2):t("div",{staticClass:"guide"},[t("img",{attrs:{src:_,alt:""}}),t("div",{staticStyle:{"margin-top":"15px","font-size":"16px",color:"#919398"}},[e._v("把线索建联为客户,这是销售第一步,客户越多,签单越多")])])],1),a.showTip?t(a.LJPagiNation,{attrs:{"current-page":a.currentPage,"page-size":a.filter.limit,total:a.total},on:{"size-change":a.handleSizeChange,"current-change":a.handleCurrentChange}}):e._e()],1),t(a.transferCustomerDialog,{ref:"transfercustomer",on:{getList:a.getList}}),t(a.transferHeadDialog,{ref:"transferhead",on:{getList:a.getList}}),t(a.remindDialog,{ref:"remindChildren",on:{getList:a.getList}}),t(a.clientsDetailDialog,{ref:"clientsDetail"}),t(a.importDialog,{ref:"importDialogRef",on:{getList:a.getList}}),t(a.transferOpportunity,{ref:"transferOpportunityRef",on:{getList:a.getList}})],1)},P=[function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"img-icon"},[t("img",{attrs:{src:y,alt:""}}),t("div",{staticClass:"total-text"},[e._v("全部客户")])])},function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"img-icon"},[t("img",{attrs:{src:"/assets/total-icon9.8a115176.svg",alt:""}}),t("div",{staticClass:"total-text"},[e._v("关注的客户")])])}];F._withStripped=!0;var O=i(N,F,P,!1,null,"e19d7060",null,null);O.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/markets/clients/clientRoot/clientsViews.vue";e("default",O.exports)}}}))}();
|