企微助手 ,仓库名 短剧

86.27b6125ddec8c46ed520.js 5.5KB

1
  1. webpackJsonp([86],{"1wR+":function(t,e){},"f/8d":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("McOJ"),s=a("erru"),n={name:"importRecordDetial",components:{dialogPublic:a("MYCg").a,selfInput:i.a,selfChannel:s.a},data:function(){return{dialogType:"",loading:!1,tableData:[],height:"",page:1,pages:0,total:0,page_size:20,dialogTitle:"",dialogMsg:"",input_keyword:"",addStatus:"",allNum:"",addedNum:"",user_ids:[]}},created:function(){this.height=document.documentElement.clientHeight-260>400?document.documentElement.clientHeight-260:400,this.init(1)},methods:{handleCurrentChange:function(t){this.init(t)},remindCustomer:function(t,e){var a=this;this.$nextTick(function(){a.$refs.dialogPublic.dialogVisible=!0,a.dialogType="remindSingle",a.dialogTitle="提醒",a.dialogMsg="将通过企微提醒给该成员添加该手机号为好友,是否确认发送?",a.user_ids=[],a.user_ids.push(t)})},init:function(t,e){var a=this;this.page=t||this.page,this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.batchAddCustomerRecordDetail,{params:{record_id:this.$route.params.id,add_status:0==this.addStatus?"":this.addStatus,keyword:this.input_keyword,page:this.page,page_size:this.page_size}}).then(function(t){t=t.data;a.loading=!1,t&&0==t.errno?(a.tableData=t.rst.data.list,a.allNum=t.rst.data.total,a.addedNum=t.rst.data.complete_total,a.total=t.rst.pageInfo.total,a.pages=t.rst.pageInfo.pages):4002!=t.errno&&a.$message({message:t.err,type:"warning"})}).catch(function(t){a.loading=!1})}}},l={render: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"}]},[a("div",{staticClass:"backBox",on:{click:function(e){return t.$router.go(-1)}}},[t._m(0)]),t._v(" "),a("div",{staticClass:"flex-align-center"},[a("div",{staticStyle:{"padding-left":"20px"}},[a("span",{staticClass:"fWeight600 c-000 f14"},[t._v("共"+t._s(t.allNum?t.allNum:"0")+"个客户")]),t._v(" "),a("span",{staticClass:"c-666 lMar10 f14"},[t._v("已添加"+t._s(t.addedNum?t.addedNum:"0")+"个客户")])]),t._v(" "),a("div",{staticClass:"flex-align-center lMarauto"},[a("self-channel",{attrs:{type:"importRecordDetial_addStatus",width:"180px"},on:{channelDefine:function(e){t.addStatus=e,t.init(1)}}}),t._v(" "),a("self-input",{staticStyle:{"margin-left":"15px"},attrs:{hasLabel:!1,label_name:"电话",width:"180px"},on:{inputChange:function(e){t.input_keyword=e,t.init(1)}}})],1)]),t._v(" "),a("div",{staticClass:"bg-ffffff",staticStyle:{padding:"15px"}},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:t.height,data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"客户电话",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.phone?e.row.phone:"-"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"120",label:"备注名",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.remark?e.row.remark:"-"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"员工","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"customerServiceTagBox"},[a("div",{staticClass:"customerServiceTag"},[a("i",{staticClass:"el-icon-user-solid"}),t._v(" "+t._s(e.row.user_name?e.row.user_name:"-"))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center"},scopedSlots:t._u([{key:"header",fn:function(){return[t._v("\n 添加状态\n "),a("el-tooltip",{staticClass:"disinblock",attrs:{placement:"top",effect:"light"}},[a("div",{staticClass:"f12",attrs:{slot:"content"},slot:"content"},[a("div",[t._v("待分配:未分配跟进成员的客户")]),t._v(" "),a("div",[t._v("待添加:成员未添加的客户")]),t._v(" "),a("div",[t._v("待通过:已发送申请,等待通过的客户")]),t._v(" "),a("div",[t._v("已添加:成功添加的客户")])]),t._v(" "),a("i",{staticClass:"el-icon-question"})])]},proxy:!0},{key:"default",fn:function(e){return[1==e.row.add_status?a("span",{staticClass:"c-FFB055"},[t._v("待添加")]):2==e.row.add_status?a("span",{staticClass:"c-448AFF"},[t._v("待通过")]):3==e.row.add_status?a("span",{staticClass:"c-58BCA6"},[t._v("已添加")]):4==e.row.add_status?a("span",{staticClass:"c-F03F5C"},[t._v("待分配")]):a("span",[t._v("-")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{class:3==e.row.add_status?"c-999 pointer-drop":"c-00B38A pointer",on:{click:function(a){3!=e.row.add_status&&t.remindCustomer(e.row.user_id,e.row.add_status)}}},[t._v("提醒添加")])]}}])})],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),a("dialogPublic",{ref:"dialogPublic",attrs:{dialogTitle:t.dialogTitle,dialogMsg:t.dialogMsg,type:t.dialogType,user_ids:t.user_ids},on:{clearuser_ids:function(){t.user_ids=[]},init:function(){t.init(1)}}})],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"back"},[e("i",{staticClass:"el-icon-back"}),this._v(" "),e("span",[this._v("返回")]),this._v("\n (导入记录详情)\n ")])}]};var o=a("VU/8")(n,l,!1,function(t){a("1wR+")},"data-v-64acd500",null);e.default=o.exports}});