(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-d14c"],{"+/w/":function(t,e,a){"use strict";a.r(e);var l=a("vXQA"),n=a("vDqi"),s=a.n(n),r={data:function(){return{searchForm:{customer_name:"",customer_mobile:"",call_status:null,start_date:null,end_date:null},datetime:[],departmentList:[],departmentProps:{checkStrictly:!0,emitPath:!1,value:"id",label:"name",children:"childs"},callStatusOpt:[{label:"已拨打",value:""},{label:"已接通",value:1},{label:"未接通",value:2},{label:"拨打失败",value:3}],tableData:[],pagination:{total:0,page:1,pageSize:15}}},created:function(){this.getTableData()},methods:{getTableData:function(){var t=this;this.datetime&&2===this.datetime.length?(this.searchForm.start_date=this.datetime[0],this.searchForm.end_date=this.datetime[1]):(this.searchForm.start_date="",this.searchForm.end_date=""),$http.pc_post("plugin/OutboundSystem/getMyRecordList",{page:this.pagination.page,search:this.searchForm},"loading").then(function(e){var a=e.result,l=e.msg,n=e.data;if(1!=a)return t.$message.error(l);t.tableData=n.data,t.pagination.total=n.total,t.pagination.page=n.current_page})},filterDepartment:function(t){var e=this;return!!t&&(t.forEach(function(t){t.childs&&t.childs.length>0?t.childs=e.filterDepartment(t.childs):delete t.childs}),t)},handleSearch:function(){this.pagination.page=1,this.getTableData()},handleCurrentChange:function(t){this.pagination.page=t,this.getTableData()},toLink:function(t){if(!t)return this.$message.error("链接为空");window.open(t)},downLoad:function(t){var e=this;console.log(t),s()({method:"get",url:t,responseType:"blob"}).then(function(t){if(t){var e=window.URL.createObjectURL(t.data),a=document.createElement("a");document.body.appendChild(a),a.style.display="none",a.href=e,a.download="",a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(e)}}).catch(function(t){console.log(t),e.$message.error("文件下载失败!")})}},computed:{statusText:function(){return function(t){return["已拨打","已接通","未接通","拨打失败"][t]}}},components:{externalCallSystemsSide:l.a}},i=(a("tlYp"),a("KHd+")),o=Object(i.a)(r,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"all external_call_system_statistics"},[a("external-call-systems-side",{attrs:{defaultActive:"externalMyCallSystem_record"}}),t._v(" "),a("div",{staticStyle:{width:"calc(100% - 150px)"},attrs:{id:"app"}},[a("div",{staticClass:"vue-searchForm"},[t._m(0),t._v(" "),a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"客户名称"},model:{value:t.searchForm.customer_name,callback:function(e){t.$set(t.searchForm,"customer_name",e)},expression:"searchForm.customer_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"客户电话"},model:{value:t.searchForm.customer_mobile,callback:function(e){t.$set(t.searchForm,"customer_mobile",e)},expression:"searchForm.customer_mobile"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-select",{attrs:{clearable:"",placeholder:"通话状态"},model:{value:t.searchForm.call_status,callback:function(e){t.$set(t.searchForm,"call_status",e)},expression:"searchForm.call_status"}},t._l(t.callStatusOpt,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.datetime,callback:function(e){t.datetime=e},expression:"datetime"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:t.handleSearch}},[t._v("搜索")])],1)],1)],1),t._v(" "),a("div",{staticClass:"vue-main"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{align:"center",label:"客户姓名"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"text-hidden-2"},[t._v(t._s(e.row.has_one_call.has_one_customer.name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"active_tel",label:"主叫号码"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"passive_tel",label:"客户号码"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"middle_tel",label:"中间号码"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"call_status",label:"通话状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.statusText(e.row.status)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"call_time",label:"通话时长"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"start_time",label:"开始时间"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"end_time",label:"结束时间"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"备注"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.status?a("div",[a("i",{staticClass:"opt-icon el-icon-video-play",on:{click:function(a){t.toLink(e.row.local_path||e.row.download_url)}}}),t._v(" "),a("i",{staticClass:"opt-icon el-icon-download",on:{click:function(a){t.downLoad(e.row.local_path||e.row.download_url)}}})]):a("div",[a("span",[t._v(t._s(e.row.reason||"-"))])])]}}])})],1)],1),t._v(" "),a("div",{staticClass:"vue-page"},[a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.pagination.total,"current-page":t.pagination.page,"page-size":t.pagination.pageSize},on:{"current-change":t.handleCurrentChange}})],1)])],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"vue-main-title",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"vue-main-title-left"}),this._v(" "),e("div",{staticClass:"vue-main-title-content",staticStyle:{flex:"0 0 130px"}},[this._v("通话记录")])])}],!1,null,"584bc350",null);o.options.__file="MyCallRecord.vue";e.default=o.exports},tlYp:function(t,e,a){"use strict";var l=a("xTmM");a.n(l).a},xTmM:function(t,e,a){}}]);