(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-57e34515"],{"468f":function(t,e,r){"use strict";r.d(e,"k",(function(){return o})),r.d(e,"h",(function(){return i})),r.d(e,"a",(function(){return s})),r.d(e,"l",(function(){return a})),r.d(e,"b",(function(){return u})),r.d(e,"i",(function(){return c})),r.d(e,"f",(function(){return d})),r.d(e,"j",(function(){return l})),r.d(e,"d",(function(){return f})),r.d(e,"e",(function(){return m})),r.d(e,"c",(function(){return b})),r.d(e,"g",(function(){return h}));var n=r("b775");function o(t){return Object(n["a"])({url:"/system/Order/list",method:"get",params:t})}function i(t){return Object(n["a"])({url:"/system/Order/"+t,method:"get"})}function s(t){return Object(n["a"])({url:"/system/Order",method:"post",data:t})}function a(t){return Object(n["a"])({url:"/system/Order",method:"put",data:t})}function u(t){return Object(n["a"])({url:"/system/Order/"+t,method:"delete"})}function c(t){return Object(n["a"])({url:"/system/Order/receive-records/"+t,method:"get"})}function d(){return Object(n["a"])({url:"/system/QuoteType/goodsDataList",method:"get"})}function l(t){return Object(n["a"])({url:"/system/transfer/getUsersDataList/"+t,method:"get"})}function f(t){return Object(n["a"])({url:"/system/Order/call-records/"+t,method:"get"})}function m(t){return Object(n["a"])({url:"/system/Order/comment-records/"+t,method:"get"})}function b(t){return Object(n["a"])({url:"/system/Order/audio-records/"+t,method:"get"})}function h(t){return Object(n["a"])({url:"/system/Order/notify-records/"+t,method:"get"})}},"6b48":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{attrs:{title:"通话记录",visible:t.visible,width:"70%","before-close":t.handleClose,"append-to-body":""},on:{"update:visible":function(e){t.visible=e}}},[r("div",{staticClass:"dialog-content"},[r("div",{staticClass:"dialog-header"},[r("div",{staticClass:"order-info"},[r("span",[t._v("订单号: "+t._s(t.orderInfo?t.orderInfo.orderId:""))]),r("span",{staticStyle:{"margin-left":"20px"}},[t._v("客户: "+t._s(t.orderInfo?t.orderInfo.name:""))])]),r("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-refresh"},on:{click:t.refresh}},[t._v("刷新")])],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{"max-height":400,data:t.recordList,border:"",stripe:""}},[r("el-table-column",{attrs:{label:"类型",align:"center",prop:"type"}}),r("el-table-column",{attrs:{label:"呼叫开始时间",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.parseTime(e.row.startCallTime))+" ")]}}])}),r("el-table-column",{attrs:{label:"呼叫结束时间",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.parseTime(e.row.endTime))+" ")]}}])}),r("el-table-column",{attrs:{label:"通话时长",align:"center",prop:"duration"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.formatDuration(e.row.duration))+" ")]}}])})],1),t.recordList&&0!==t.recordList.length?t._e():r("div",{staticClass:"empty-record"},[r("i",{staticClass:"el-icon-document"}),r("p",[t._v("暂无记录信息")])])],1)])},o=[],i=(r("99af"),r("468f")),s={name:"CallRecord",props:{visible:{type:Boolean,default:!1},orderInfo:{type:Object,default:function(){return{}}}},data:function(){return{recordList:[],loading:!1}},watch:{visible:function(t){t&&this.orderInfo&&this.getList()}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(i["d"])(this.orderInfo.orderId).then((function(e){t.recordList=e.data,t.loading=!1})).catch((function(){t.loading=!1,t.$message.error("获取记录失败")}))},formatDuration:function(t){var e=Math.floor(t/60),r=t%60;return"".concat(e,"分").concat(r,"秒")},refresh:function(){this.getList()},handleClose:function(){this.$emit("update:visible",!1)}}},a=s,u=(r("f94c"),r("2877")),c=Object(u["a"])(a,n,o,!1,null,"4dfe1aa3",null);e["default"]=c.exports},e4e7:function(t,e,r){},f94c:function(t,e,r){"use strict";r("e4e7")}}]);