WXL (wul)
9 小时以前 1feb410410781eb56159c8fdd856e68d2c23e0a4
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0bd78feb","chunk-41a1c5e1"],{"40d6":function(t,e,r){"use strict";r.d(e,"dc",(function(){return a})),r.d(e,"ec",(function(){return o})),r.d(e,"i",(function(){return i})),r.d(e,"V",(function(){return s})),r.d(e,"Vb",(function(){return u})),r.d(e,"kc",(function(){return c})),r.d(e,"Nb",(function(){return l})),r.d(e,"Ub",(function(){return d})),r.d(e,"D",(function(){return m})),r.d(e,"gb",(function(){return f})),r.d(e,"oc",(function(){return p})),r.d(e,"fb",(function(){return b})),r.d(e,"E",(function(){return h})),r.d(e,"rb",(function(){return g})),r.d(e,"cc",(function(){return v})),r.d(e,"zc",(function(){return y})),r.d(e,"ic",(function(){return k})),r.d(e,"hb",(function(){return O})),r.d(e,"K",(function(){return j})),r.d(e,"hc",(function(){return S})),r.d(e,"L",(function(){return T})),r.d(e,"u",(function(){return w})),r.d(e,"S",(function(){return C})),r.d(e,"Mb",(function(){return D})),r.d(e,"xb",(function(){return x})),r.d(e,"O",(function(){return I})),r.d(e,"G",(function(){return $})),r.d(e,"gc",(function(){return _})),r.d(e,"Eb",(function(){return L})),r.d(e,"q",(function(){return P})),r.d(e,"lb",(function(){return A})),r.d(e,"N",(function(){return B})),r.d(e,"wb",(function(){return E})),r.d(e,"o",(function(){return M})),r.d(e,"U",(function(){return X})),r.d(e,"Ib",(function(){return R})),r.d(e,"Rb",(function(){return F})),r.d(e,"X",(function(){return N})),r.d(e,"Qb",(function(){return q})),r.d(e,"v",(function(){return U})),r.d(e,"nb",(function(){return V})),r.d(e,"w",(function(){return H})),r.d(e,"W",(function(){return z})),r.d(e,"Pb",(function(){return J})),r.d(e,"Sb",(function(){return Z})),r.d(e,"Y",(function(){return Y})),r.d(e,"x",(function(){return G})),r.d(e,"ob",(function(){return Q})),r.d(e,"Zb",(function(){return W})),r.d(e,"db",(function(){return K})),r.d(e,"Yb",(function(){return tt})),r.d(e,"J",(function(){return et})),r.d(e,"A",(function(){return rt})),r.d(e,"y",(function(){return nt})),r.d(e,"pb",(function(){return at})),r.d(e,"Z",(function(){return ot})),r.d(e,"Tb",(function(){return it})),r.d(e,"Bb",(function(){return st})),r.d(e,"wc",(function(){return ut})),r.d(e,"Ab",(function(){return ct})),r.d(e,"Q",(function(){return lt})),r.d(e,"H",(function(){return dt})),r.d(e,"s",(function(){return mt})),r.d(e,"mb",(function(){return ft})),r.d(e,"P",(function(){return pt})),r.d(e,"zb",(function(){return bt})),r.d(e,"j",(function(){return ht})),r.d(e,"l",(function(){return gt})),r.d(e,"T",(function(){return vt})),r.d(e,"Gb",(function(){return yt})),r.d(e,"ib",(function(){return kt})),r.d(e,"kb",(function(){return Ot})),r.d(e,"tc",(function(){return jt})),r.d(e,"jb",(function(){return St})),r.d(e,"sc",(function(){return Tt})),r.d(e,"vc",(function(){return wt})),r.d(e,"yc",(function(){return Ct})),r.d(e,"uc",(function(){return Dt})),r.d(e,"xc",(function(){return xt})),r.d(e,"rc",(function(){return It})),r.d(e,"qc",(function(){return $t})),r.d(e,"Xb",(function(){return _t})),r.d(e,"cb",(function(){return Lt})),r.d(e,"I",(function(){return Pt})),r.d(e,"z",(function(){return At})),r.d(e,"qb",(function(){return Bt})),r.d(e,"bb",(function(){return Et})),r.d(e,"Wb",(function(){return Mt})),r.d(e,"mc",(function(){return Xt})),r.d(e,"ab",(function(){return Rt})),r.d(e,"Jb",(function(){return Ft})),r.d(e,"Kb",(function(){return Nt})),r.d(e,"d",(function(){return qt})),r.d(e,"e",(function(){return Ut})),r.d(e,"R",(function(){return Vt})),r.d(e,"Hb",(function(){return Ht})),r.d(e,"Fb",(function(){return zt})),r.d(e,"Lb",(function(){return Jt})),r.d(e,"jc",(function(){return Zt})),r.d(e,"F",(function(){return Yt})),r.d(e,"n",(function(){return Gt})),r.d(e,"m",(function(){return Qt})),r.d(e,"vb",(function(){return Wt})),r.d(e,"fc",(function(){return Kt})),r.d(e,"a",(function(){return te})),r.d(e,"sb",(function(){return ee})),r.d(e,"k",(function(){return re})),r.d(e,"bc",(function(){return ne})),r.d(e,"yb",(function(){return ae})),r.d(e,"r",(function(){return oe})),r.d(e,"C",(function(){return ie})),r.d(e,"t",(function(){return se})),r.d(e,"M",(function(){return ue})),r.d(e,"g",(function(){return ce})),r.d(e,"f",(function(){return le})),r.d(e,"h",(function(){return de})),r.d(e,"ub",(function(){return me})),r.d(e,"Ob",(function(){return fe})),r.d(e,"Db",(function(){return pe})),r.d(e,"tb",(function(){return be})),r.d(e,"ac",(function(){return he})),r.d(e,"pc",(function(){return ge})),r.d(e,"lc",(function(){return ve})),r.d(e,"B",(function(){return ye})),r.d(e,"Ac",(function(){return ke})),r.d(e,"eb",(function(){return Oe})),r.d(e,"Cb",(function(){return je})),r.d(e,"nc",(function(){return Se})),r.d(e,"p",(function(){return Te})),r.d(e,"b",(function(){return we})),r.d(e,"c",(function(){return Ce}));var n=r("b775");function a(t){return Object(n["a"])({url:"/smartor/target/targetInfo",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/smartor/target/saveOrupdateIvrLibaTarget",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/smartor/serviceSubtaskDetail/countPatByTarget/"+t,method:"get"})}function s(t){return Object(n["a"])({url:"/smartor/target/remove/"+t,method:"get"})}function u(t){return Object(n["a"])({url:"/smartor/icd10/list",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/smartor/icd10/getInfo/"+t,method:"get"})}function l(t){return Object(n["a"])({url:"/smartor/baseopera/list",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/smartor/outicd10/list",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/smartor/outicd10/add",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/smartor/outicd10/remove/"+t,method:"get"})}function p(t){return Object(n["a"])({url:"/smartor/assort/selectIvrLibaTargetAssortList",method:"post",data:t})}function b(t){return Object(n["a"])({url:"/smartor/assort/remove/"+t,method:"get"})}function h(t){return Object(n["a"])({url:"/smartor/assort/addtree",method:"post",data:t})}function g(t){return Object(n["a"])({url:"/smartor/assort/edit",method:"post",data:t})}function v(t){return Object(n["a"])({url:"/smartor/target/list",method:"post",data:t})}function y(t){return Object(n["a"])({url:"/smartor/target/targetQuesMate",method:"post",data:t})}function k(t){return Object(n["a"])({url:"/smartor/script/list",method:"post",data:t})}function O(t){return Object(n["a"])({url:"/smartor/script/remove/"+t,method:"get"})}function j(t){return Object(n["a"])({url:"/smartor/script/saveOrUpdateScript",method:"post",data:t})}function S(t){return Object(n["a"])({url:"/smartor/script/selectInfoByCondition",method:"post",data:t})}function T(t){return Object(n["a"])({url:"/smartor/scriptassort/edit",method:"post",data:t})}function w(t){return Object(n["a"])({url:"/smartor/scriptassort/addtree",method:"post",data:t})}function C(t){return Object(n["a"])({url:"/smartor/scriptassort/remove/"+t,method:"get"})}function D(t){return Object(n["a"])({url:"/smartor/scriptassort/selectIvrLibaScriptAssortList",method:"post",data:t})}function x(t){return Object(n["a"])({url:"/smartor/template/list",method:"post",data:t})}function I(t){return Object(n["a"])({url:"/smartor/template/remove/"+t,method:"get"})}function $(t){return Object(n["a"])({url:"/smartor/template/saveOrUpdateScript",method:"post",data:t})}function _(t){return Object(n["a"])({url:"/smartor/template/selectInfoByCondition",method:"post",data:t})}function L(t){return Object(n["a"])({url:"/smartor/ivrTaskTemplate/getTemplateInfoByID/"+t,method:"get"})}function P(t){return Object(n["a"])({url:"/smartor/templateassort/addtree",method:"post",data:t})}function A(t){return Object(n["a"])({url:"/smartor/templateassort/edit",method:"post",data:t})}function B(t){return Object(n["a"])({url:"/smartor/templateassort/remove/"+t,method:"get"})}function E(t){return Object(n["a"])({url:"/smartor/templateassort/selectIvrLibaTemplateAssortList",method:"post",data:t})}function M(t){return Object(n["a"])({url:"/smartor/ivrTaskTemplate/saveOrUpdateTempScript",method:"post",data:t})}function X(t){return Object(n["a"])({url:"/smartor/ivrTaskTemplate/remove/"+t,method:"get"})}function R(t){return Object(n["a"])({url:"/smartor/ivrTaskTemplate/getInfo/"+t,method:"get"})}function F(t){return Object(n["a"])({url:"/smartor/extemplate/list",method:"post",data:t})}function N(t){return Object(n["a"])({url:"/smartor/extemplate/remove/"+t,method:"get"})}function q(t){return Object(n["a"])({url:"/smartor/extemplate/"+t,method:"get"})}function U(t){return Object(n["a"])({url:"/smartor/extemplate/add",method:"post",data:t})}function V(t){return Object(n["a"])({url:"/smartor/extemplate/edit",method:"post",data:t})}function H(t){return Object(n["a"])({url:"/smartor/category/add",method:"post",data:t})}function z(t){return Object(n["a"])({url:"/smartor/category/remove/"+t,method:"get"})}function J(t){return Object(n["a"])({url:"/smartor/category/list",method:"post",data:t})}function Z(t){return Object(n["a"])({url:"/smartor/extemplatescript/list",method:"post",data:t})}function Y(t){return Object(n["a"])({url:"/smartor/extemplatescript/remove/"+t,method:"get"})}function G(t){return Object(n["a"])({url:"/smartor/extemplatescript/add",method:"post",data:t})}function Q(t){return Object(n["a"])({url:"/smartor/extemplatescript/edit",method:"post",data:t})}function W(t){return Object(n["a"])({url:"/smartor/library/list",method:"post",data:t})}function K(t){return Object(n["a"])({url:"/smartor/library/remove/"+t,method:"get"})}function tt(t){return Object(n["a"])({url:"/smartor/library/selectInfoByCondition",method:"post",data:t})}function et(t){return Object(n["a"])({url:"/smartor/library/saveOrUpdateHeLibrary",method:"post",data:t})}function rt(t){return Object(n["a"])({url:"/common/htmlContent",method:"post",data:t})}function nt(t){return Object(n["a"])({url:"/smartor/heLibraryAssort/addtree",method:"post",data:t})}function at(t){return Object(n["a"])({url:"/smartor/heLibraryAssort/edit",method:"post",data:t})}function ot(t){return Object(n["a"])({url:"/smartor/heLibraryAssort/remove/"+t,method:"get"})}function it(t){return Object(n["a"])({url:"/smartor/heLibraryAssort/selectHeLibraryAssortList",method:"post",data:t})}r("b8cc");function st(t){return Object(n["a"])({url:"/smartor/svyLibTemplate/selectSvyLibTemplatelist",method:"post",data:t})}function ut(t){return Object(n["a"])({url:"smartor/svytemplateTask/selectInfoByCondition",method:"post",data:t})}function ct(t){return Object(n["a"])({url:"/smartor/svyLibTemplate/list",method:"get",params:t})}function lt(t){return Object(n["a"])({url:"/smartor/svyLibTemplate/remove/"+t,method:"get"})}function dt(t){return Object(n["a"])({url:"/smartor/svyLibTemplate/saveOrUpdateTemplate",method:"post",data:t})}function mt(t){return Object(n["a"])({url:"/smartor/svyLibTemplateCategory/addtree",method:"post",data:t})}function ft(t){return Object(n["a"])({url:"/smartor/svyLibTemplateCategory/edit",method:"post",data:t})}function pt(t){return Object(n["a"])({url:"/smartor/svyLibTemplateCategory/remove/"+t,method:"get"})}function bt(t){return Object(n["a"])({url:"/smartor/svyLibTemplateCategory/list",method:"post",data:t})}function ht(t){return Object(n["a"])({url:"/smartor/serviceSubtask/queryTaskByCondition",method:"post",data:t})}function gt(t){return Object(n["a"])({url:"/smartor/svytemplateTask/saveOrUpdateTaskTemp",method:"post",data:t})}function vt(t){return Object(n["a"])({url:"/smartor/svytemplateTask/remove/"+t,method:"get"})}function yt(t){return Object(n["a"])({url:"/smartor/svytemplateTask/"+t,method:"get"})}function kt(t){return Object(n["a"])({url:"/smartor/td/add",method:"post",data:t})}function Ot(t){return Object(n["a"])({url:"/smartor/td/list",method:"get",params:t})}function jt(t){return Object(n["a"])({url:"/smartor/taskdept/list",method:"post",data:t})}function St(t){return Object(n["a"])({url:"/smartor/td/remove/"+t,method:"get"})}function Tt(t){return Object(n["a"])({url:"/smartor/taskdept/remove/"+t,method:"get"})}function wt(t){return Object(n["a"])({url:"/smartor/taskdiag/remove/".concat(t),method:"get"})}function Ct(t){return Object(n["a"])({url:"/smartor/taskoper/remove/".concat(t),method:"get"})}function Dt(t){return Object(n["a"])({url:"/smartor/taskdiag/list",method:"post",data:t})}function xt(t){return Object(n["a"])({url:"/smartor/taskoper/list",method:"post",data:t})}function It(t){return Object(n["a"])({url:"/smartor/serviceSubtaskDetail/editByCondition",method:"post",data:t})}function $t(t){return Object(n["a"])({url:"/smartor/serviceSubtaskDetail/add",method:"post",data:t})}function _t(t){return Object(n["a"])({url:"/smartor/svyscript/list",method:"post",data:t})}function Lt(t){return Object(n["a"])({url:"/smartor/svyscript/remove/"+t,method:"get"})}function Pt(t){return Object(n["a"])({url:"/smartor/svyscript/saveOrUpdateScript",method:"post",data:t})}function At(t){return Object(n["a"])({url:"/smartor/svyLibScriptCategory/addtree",method:"post",data:t})}function Bt(t){return Object(n["a"])({url:"/smartor/svyLibScriptCategory/edit",method:"post",data:t})}function Et(t){return Object(n["a"])({url:"/smartor/svyLibScriptCategory/remove/"+t,method:"get"})}function Mt(t){return Object(n["a"])({url:"/smartor/svyLibScriptCategory/list",method:"post",data:t})}function Xt(t){return Object(n["a"])({url:"/smartor/serviceExternal/query360PatInfo",method:"post",data:t})}function Rt(t){return Object(n["a"])({url:"/smartor/serviceSubtask/remove/"+t,method:"get"})}function Ft(t){return Object(n["a"])({url:"/smartor/patarchive/getPatientInfo",method:"post",data:t})}function Nt(t){return Object(n["a"])({url:"/smartor/patarchive/getPatientInfoQC",method:"post",data:t})}function qt(t){return Object(n["a"])({url:"/smartor/serviceSubtask/insertOrUpdateTask",method:"post",data:t})}function Ut(t){return Object(n["a"])({url:"/smartor/serviceSubtask/update",method:"post",data:t})}function Vt(t){return Object(n["a"])({url:"/smartor/servicetask/remove/"+t,method:"get"})}function Ht(t){return Object(n["a"])({url:"/smartor/servicetask/list",method:"post",data:t})}function zt(t){return Object(n["a"])({url:"/smartor/serviceSubtask/queryTaskByCondition",method:"post",data:t})}function Jt(t){return Object(n["a"])({url:"/smartor/serviceSubtask/patItem",method:"post",data:t})}function Zt(t){return Object(n["a"])({url:"/smartor/serviceSubtask/getSubtaskByDiagname",method:"post",data:t})}function Yt(t){return Object(n["a"])({url:"/smartor/serviceSubtask/patItemByCondition",method:"post",data:t})}function Gt(t){return Object(n["a"])({url:"/smartor/ivrTaskTemplate/saveOrUpdateTempScript",method:"post",data:t})}function Qt(t){return Object(n["a"])({url:"/smartor/commonTask/taskSend",method:"post",data:t})}function Wt(t){return Object(n["a"])({url:"/smartor/servicetask/getScriptInfoByCondition",method:"post",data:t})}function Kt(t){return Object(n["a"])({url:"/smartor/outPath/getInfoByParam",method:"post",params:{param:t}})}function te(t){return Object(n["a"])({url:"/smartor/subtaskAnswer/saveQuestionCache",method:"post",data:t})}function ee(t){return Object(n["a"])({url:"/smartor/subtaskAnswer/getQuestionCache",method:"post",data:t})}function re(t){return Object(n["a"])({url:"/smartor/subtaskAnswer/saveQuestionAnswer",method:"post",data:t})}function ne(t){return Object(n["a"])({url:"/smartor/subtaskAnswer/selectPatQuestionResult",method:"post",data:t})}function ae(t){return Object(n["a"])({url:"/smartor/serviceSubtaskDetail/getPersonVoice",method:"post",data:t})}function oe(t){return Object(n["a"])({url:"/smartor/serviceSubtaskDetail/batchAdd",method:"post",data:t})}function ie(t){return Object(n["a"])({url:"/smartor/serviceSubtask/addSubTaskAgain",method:"post",data:t})}function se(t){return Object(n["a"])({url:"/smartor/serviceSubtask/addSubTask",method:"post",data:t})}function ue(t){return Object(n["a"])({url:"/smartor/import/remove/"+t,method:"get"})}function ce(t){return Object(n["a"])({url:"/smartor/import/list",method:"post",data:t})}function le(t){return Object(n["a"])({url:"/smartor/import/edit",method:"post",data:t})}function de(t){return Object(n["a"])({url:"/smartor/import/getInfo/"+t,method:"get"})}function me(t){return Object(n["a"])({url:"/smartor/patouthosp/selectPatMedOuthospCount",method:"post",data:t})}function fe(t){return Object(n["a"])({url:"/smartor/patinhosp/selectPatMedInhospListCount",method:"post",data:t})}function pe(t){return Object(n["a"])({url:"/smartor/serviceSubtask/getServiceStatistics",method:"post",data:t})}function be(t){return Object(n["a"])({url:"/smartor/patinhosp/getDeptRanking",method:"post",data:t})}function he(t){return Object(n["a"])({url:"/smartor/organization/list",method:"get"})}function ge(t){return Object(n["a"])({url:"/sms/send",method:"post",data:t})}r("c38a");function ve(t){return Object(n["a"])({url:"/smartor/satisfaction/list",method:"post",data:t})}function ye(t){return Object(n["a"])({url:"/smartor/satisfaction/batchinsert",method:"post",data:t})}function ke(t){return Object(n["a"])({url:"/smartor/satisfaction/edit",method:"post",data:t})}function Oe(t){return Object(n["a"])({url:"/smartor/satisfaction/remove/"+t,method:"get"})}function je(t){return Object(n["a"])({url:"/smartor/servicetask/getScriptByCondition",method:"post",data:t})}function Se(t){return Object(n["a"])({url:"/smartor/subtaskAnswer/saveMYDQuestionAnswer",method:"post",data:t})}function Te(t){return Object(n["a"])({url:"/getDept/"+t,method:"get"})}function we(){return Object(n["a"])({url:"/smartor/ServiceTelInfo/getList",method:"get",params:{orgid:localStorage.getItem("orgid")}})}function Ce(t){return Object(n["a"])({url:"/smartor/ServiceTelInfo/setState",method:"get",params:t})}},"4ed2":function(t,e,r){"use strict";var n=r("6ec7"),a=r("6932"),o=r("fe77"),i=r("9222"),s=(r("8d03"),r("618d"),r("7103"),r("cfee"),r("8adb"),r("35f6"),r("46e6"),r("e8a6"),r("9519")),u=r.n(s),c=r("2e36"),l=function(){function t(){Object(o["a"])(this,t),this.ua=null,this.currentSession=null,this.onStatusChange=null,this.onCallStatusChange=null,this.onIncomingCall=null,this.isRegistered=!1,this.registrationTime=null}return Object(i["a"])(t,[{key:"init",value:function(t){var e=this;try{this.updateStatus("connecting","连接中;..."),this.ua=new u.a.UA({sockets:[new u.a.WebSocketInterface(t.wsUrl)],uri:t.sipUri,password:t.password,display_name:t.displayName,iceServers:[],register:!0,sessionExpires:1800,minSessionExpires:90,register_expires:300}),this.ua.start(),this.ua.on("registered",(function(){e.isRegistered=!0,e.registrationTime=Date.now(),console.log(e.registrationTime,"注册时间"),e.updateStatus("registered","已注册")})),this.ua.on("registrationFailed",(function(t){e.isRegistered=!1,e.updateStatus("failed","注册失败: ".concat(t.cause))})),this.ua.on("unregistered",(function(){e.isRegistered=!1;var t=Date.now();console.log(t,"注销时间"),e.updateStatus("disconnected","已注销")})),this.ua.on("disconnected",(function(){return e.updateStatus("disconnected","连接断开")})),this.ua.on("connected",(function(){return e.updateStatus("connecting","重新连接中...")})),this.ua.on("newRTCSession",(function(t){return e.handleIncomingCall(t.session)}))}catch(r){throw this.updateStatus("failed","初始化失败: ".concat(r.message)),console.error("SIP初始化失败:",r),r}}},{key:"canMakeCall",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e3;if(!this.isRegistered)return{canCall:!1,reason:"SIP未注册,无法呼叫"};var e=Date.now(),r=e-this.registrationTime;if(r<t){var n=t-r;return{canCall:!1,reason:"注册成功,资源加载中请等待 ".concat(Math.ceil(n/1e3)," 秒后再呼叫")}}return{canCall:!0,reason:""}}},{key:"makeCall",value:function(t){var e=this,r=this.canMakeCall(),n=r.canCall,a=r.reason;return n?new Promise((function(r,n){try{if(!e.ua)throw new Error("SIP客户端未初始化");if(!e.ua.isRegistered())throw new Error("SIP未注册,无法呼叫");var a={sessionTimers:!0,sessionTimersExpires:150,extraHeaders:["Accept: application/sdp"],mediaConstraints:{audio:!0,video:!1},rtcOfferConstraints:{offerToReceiveAudio:!0,offerToReceiveVideo:!1},eventHandlers:{progress:function(){return e.updateCallStatus("calling","呼叫中...")},failed:function(t){e.handleCallFailure(t,n)},ended:function(){return e.updateCallStatus("ended","通话结束")},confirmed:function(){e.updateCallStatus("connected","通话已接通"),r()}}};e.currentSession=e.ua.call("sip:".concat(t,"@192.168.10.124"),a),e.setupPeerConnection(e.currentSession),e.setupAudio(e.currentSession)}catch(o){e.updateCallStatus("failed","呼叫失败22: ".concat(o.message)),n(o)}})):(c["Message"].error(a),Promise.reject(new Error(a)))}},{key:"setupPeerConnection",value:function(t){var e=this;t.on("peerconnection",(function(t){var r=t.createOffer.bind(t);t.createOffer=function(){var t=Object(a["a"])(Object(n["a"])().m((function t(a){var o,i;return Object(n["a"])().w((function(t){while(1)switch(t.p=t.n){case 0:return t.p=0,t.n=1,r(a);case 1:return o=t.v,t.a(2,e.normalizeSDP(o));case 2:throw t.p=2,i=t.v,console.error("创建Offer失败:",i),i;case 3:return t.a(2)}}),t,null,[[0,2]])})));return function(e){return t.apply(this,arguments)}}()}))}},{key:"normalizeSDP",value:function(t){var e=t.sdp;return e=e.replace(/c=IN IP4.*\r\n/,"c=IN IP4 0.0.0.0\r\n"),e=e.replace(/m=audio \d+.*\r\n/,"m=audio 9 UDP/TLS/RTP/SAVPF 0 8\r\n"),e.includes("PCMU/8000")||(e+="a=rtpmap:0 PCMU/8000\r\n"),e.includes("PCMA/8000")||(e+="a=rtpmap:8 PCMA/8000\r\n"),e+="a=rtcp-mux\r\n",e+="a=sendrecv\r\n",console.log("标准化后的SDP:",e),new RTCSessionDescription({type:t.type,sdp:e})}},{key:"handleCallFailure",value:function(t,e){var r;if(422===(null===(r=t.response)||void 0===r?void 0:r.status_code)){var n,a=(null===(n=t.response.headers["Min-SE"])||void 0===n||null===(n=n[0])||void 0===n?void 0:n.raw)||"未知";console.error("服务器要求 Min-SE ≤ ".concat(a,",当前设置: 120"))}console.error("呼叫失败详情:",{cause:t.cause,message:t.message,response:t.response&&{status:t.response.status_code,reason:t.response.reason_phrase}});var o="呼叫失败";switch(t.cause){case"Incompatible SDP":o="媒体协商失败,请检查编解码器配置";break;case"488":case"606":o="对方设备不支持当前媒体配置";break;case"422":o="会话参数不满足服务器要求";break;default:o="呼叫失败3: ".concat(t.cause||t.message)}this.updateCallStatus("failed55",o),e(new Error(o))}},{key:"setupAudio",value:function(t){t.connection.addEventListener("addstream",(function(t){var e=document.getElementById("remoteAudio");e&&(e.srcObject=t.stream)}))}},{key:"endCall",value:function(){this.currentSession&&(this.currentSession.terminate(),this.updateCallStatus("ended","通话已结束"),this.currentSession=null)}},{key:"updateStatus",value:function(t,e){console.log("SIP状态更新: ".concat(t," - ").concat(e)),this.onStatusChange&&this.onStatusChange({type:t,text:e})}},{key:"updateCallStatus",value:function(t,e){console.log("通话状态更新: ".concat(t," - ").concat(e)),this.onCallStatusChange&&this.onCallStatusChange({type:t,text:e})}},{key:"handleIncomingCall",value:function(t){"incoming"===t.direction&&(console.log("来电:",t.remote_identity.uri.toString()),this.onIncomingCall&&this.onIncomingCall(t))}}])}();e["a"]=new l},6341:function(t,e,r){},"958b":function(t,e,r){"use strict";r.d(e,"l",(function(){return a})),r.d(e,"n",(function(){return o})),r.d(e,"e",(function(){return i})),r.d(e,"d",(function(){return s})),r.d(e,"m",(function(){return u})),r.d(e,"g",(function(){return c})),r.d(e,"c",(function(){return l})),r.d(e,"j",(function(){return d})),r.d(e,"i",(function(){return m})),r.d(e,"a",(function(){return f})),r.d(e,"h",(function(){return p})),r.d(e,"k",(function(){return b})),r.d(e,"f",(function(){return h})),r.d(e,"b",(function(){return g}));var n=r("b775");r("c38a");function a(t){return Object(n["a"])({url:"/smartor/patarchive/patInfoByContion",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/smartor/patarchive/list",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/smartor/patarchive/saveOrUpdatePatInfo",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/smartor/patarchive/add",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/smartor/patarchive/getInfo/"+t,method:"get"})}function c(t){return Object(n["a"])({url:"/smartor/patarchive/remove/"+t,method:"get"})}function l(t){return Object(n["a"])({url:"/medicalhistory/add",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/medicalhistory/selectMedicalHistoryList",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/medicalhistory/edit",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/archivecontact/add",method:"post",data:t})}function p(t){return Object(n["a"])({url:"/archivecontact/edit",method:"post",data:t})}function b(t){return Object(n["a"])({url:"/archivecontact/selectPatArchivecontactList",method:"post",data:t})}function h(t){return Object(n["a"])({url:"/archivecontact/remove/"+t,method:"get"})}function g(t){return Object(n["a"])({url:"/smartor/filterlist/add",method:"post",data:t})}},d623: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("div",{staticClass:"Followupdetailspage",attrs:{id:"app-container"}},[r("div",{staticClass:"Followuserinfo"},[r("div",[r("div",{staticClass:"userinfo-text"},[r("div",{staticClass:"headline"},[r("div",[t._v("患者服务详情")]),r("div",{staticStyle:{"margin-left":"20px"}},[t.Whetherall?r("el-button",{attrs:{type:"success"},on:{click:function(e){return t.getTaskservelist(t.id)}}},[t._v("只展示本次服务信息")]):r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.getTaskservelist()}}},[t._v("查看患者全部服务")])],1)])])]),r("div",[r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.logsheetlist,"row-class-name":t.tableRowClassName}},[r("el-table-column",{attrs:{prop:"sendname",align:"center",label:"姓名",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{size:"medium",type:"text"},on:{click:function(r){return t.gettoken360(e.row.sfzh,e.row.drcode,e.row.drname)}}},[r("span",{staticClass:"button-textsc"},[t._v(t._s(e.row.sendname))])])]}}])}),r("el-table-column",{attrs:{prop:"taskName",align:"center",width:"200","show-overflow-tooltip":"",label:"任务名称"}}),r("el-table-column",{attrs:{prop:"sendstate",align:"center",width:"200",label:"任务状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.sendstate?r("div",[r("el-tag",{attrs:{type:"primary","disable-transitions":!1}},[t._v("表单已领取")])],1):t._e(),2==e.row.sendstate?r("div",[r("el-tag",{attrs:{type:"primary","disable-transitions":!1}},[t._v("待随访")])],1):t._e(),3==e.row.sendstate?r("div",[r("el-tag",{attrs:{type:"success","disable-transitions":!1}},[t._v("表单已发送")])],1):t._e(),4==e.row.sendstate?r("div",[r("el-tag",{attrs:{type:"info","disable-transitions":!1}},[t._v("不执行")])],1):t._e(),5==e.row.sendstate?r("div",[r("el-tag",{attrs:{type:"danger","disable-transitions":!1}},[t._v("发送失败")])],1):t._e(),6==e.row.sendstate?r("div",[r("el-tag",{attrs:{type:"success","disable-transitions":!1}},[t._v("已完成")])],1):t._e()]}}])}),r("el-table-column",{attrs:{prop:"finishtime",align:"center",label:"随访完成时间",width:"200","show-overflow-tooltip":""}}),r("el-table-column",{key:"endtime",attrs:{label:"出院日期",width:"200",align:"center",prop:"endtime"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t.formatTime(e.row.endtime)))])]}}])}),r("el-table-column",{key:"nurseName",attrs:{label:"责任护士",width:"120",align:"center",prop:"nurseName"}}),r("el-table-column",{key:"drname",attrs:{label:"主治医生",width:"120",align:"center",prop:"drname"}}),r("el-table-column",{key:"excep",attrs:{label:"结果状态",align:"center",prop:"excep",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("dict-tag",{attrs:{options:t.dict.type.sys_yujing,value:e.row.excep}})]}}])}),r("el-table-column",{key:"suggest",attrs:{label:"处理意见",align:"center",prop:"suggest",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("dict-tag",{attrs:{options:t.dict.type.sys_suggest,value:e.row.suggest}})]}}])}),r("el-table-column",{attrs:{prop:"templatename",align:"center",label:"服务模板",width:"200","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"remark",align:"center",label:"服务记录",width:"200","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"bankcardno",align:"center",label:"呼叫状态",width:"210"}}),r("el-table-column",{attrs:{label:"操作",fixed:"right",align:"center",width:"200","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{size:"medium",type:"text"},on:{click:function(r){return t.Seedetails(e.row)}}},[r("span",{staticClass:"button-zx"},[r("i",{staticClass:"el-icon-s-order"}),t._v("查看")])])]}}])})],1)],1)]),r("div",{staticClass:"Followuserinfos"},[r("div",[r("el-form",{ref:"userform",attrs:{model:t.form,rules:t.userrules,"label-width":"120px"}},[r("div",{staticClass:"headline"},[r("div",[t._v("人工处理")]),r("el-form-item",{attrs:{label:"联系电话"}},[r("el-input",{attrs:{placeholder:"联系电话缺失"},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}},[r("el-button",{attrs:{slot:"append",icon:"el-icon-phone",disabled:!t.isValidPhone(t.form.phone)},on:{click:function(e){return t.handleCall(t.form.phone,"tel")}},slot:"append"})],1)],1)],1),r("el-form-item",{attrs:{label:"随访记录"}},[r("el-input",{attrs:{type:"textarea"},model:{value:t.form.remark,callback:function(e){t.$set(t.form,"remark",e)},expression:"form.remark"}})],1),r("el-form-item",{attrs:{label:"处理意见"}},[r("div",[r("el-button",{attrs:{plain:"",type:"warning"},on:{click:function(e){return t.Editsingletaskson("1")}}},[t._v("暂不处理")]),r("el-button",{attrs:{plain:"",type:"success"},on:{click:function(e){return t.Editsingletaskson("2")}}},[t._v("病情稳定")]),r("el-button",{attrs:{plain:"",type:"primary"},on:{click:function(e){return t.Editsingletaskson("3")}}},[t._v("通知就诊")]),r("el-button",{attrs:{plain:"",type:"info"},on:{click:function(e){return t.Editsingletaskson("5")}}},[t._v("中心随访")]),2!=this.form.isVisitAgain?r("el-button",{attrs:{type:"primary",round:""},on:{click:function(e){return t.sendAgain()}}},[t._v("再次随访")]):t._e(),r("el-button",{attrs:{type:"success"},on:{click:function(e){return t.Editsingletasksonyic("")}}},[t._v("保存服务")])],1)])],1)],1)]),r("div",[r("CallButton",{ref:"callButton",staticStyle:{display:"none"},attrs:{phoneNumber:t.currentPhoneNumber}})],1),r("el-dialog",{directives:[{name:"dialogDrags",rawName:"v-dialogDrags"}],attrs:{title:"患者再次随访",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[r("el-form",{ref:"zcform",attrs:{rules:t.zcrules,model:t.form,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"任务名称"}},[r("el-input",{staticStyle:{width:"400px"},attrs:{disabled:""},model:{value:t.form.taskName,callback:function(e){t.$set(t.form,"taskName",e)},expression:"form.taskName"}})],1),r("el-form-item",{attrs:{label:"患者名称"}},[r("el-input",{staticStyle:{width:"400px"},attrs:{disabled:""},model:{value:t.form.sendname,callback:function(e){t.$set(t.form,"sendname",e)},expression:"form.sendname"}})],1),r("el-form-item",{attrs:{label:"年龄"}},[r("el-input",{staticStyle:{width:"400px"},attrs:{disabled:""},model:{value:t.form.age,callback:function(e){t.$set(t.form,"age",e)},expression:"form.age"}})],1),r("el-form-item",{attrs:{label:"科室"}},[r("el-input",{staticStyle:{width:"400px"},attrs:{disabled:""},model:{value:t.form.deptname,callback:function(e){t.$set(t.form,"deptname",e)},expression:"form.deptname"}})],1),r("el-form-item",{attrs:{label:"病区"}},[r("el-input",{staticStyle:{width:"400px"},attrs:{disabled:""},model:{value:t.form.leavehospitaldistrictname,callback:function(e){t.$set(t.form,"leavehospitaldistrictname",e)},expression:"form.leavehospitaldistrictname"}})],1),r("el-form-item",{attrs:{label:"出院时间"}},[r("el-input",{staticStyle:{width:"400px"},attrs:{disabled:""},model:{value:t.form.endtime,callback:function(e){t.$set(t.form,"endtime",e)},expression:"form.endtime"}})],1),r("div",{staticClass:"headline"},[t._v("上次随访")]),r("el-divider"),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"随访方式"}},[r("el-select",{staticClass:"custom-disabled",attrs:{filterable:"","allow-create":"","default-first-option":"",disabled:"",placeholder:"请选择随访方式"},model:{value:t.form.visitType2,callback:function(e){t.$set(t.form,"visitType2",e)},expression:"form.visitType2"}},t._l(t.options,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"随访时间"}},[r("el-date-picker",{staticClass:"custom-disabled",attrs:{type:"date",disabled:"",placeholder:"选择日期","picker-options":t.pickerOptions,align:"right"},model:{value:t.form.date2,callback:function(e){t.$set(t.form,"date2",e)},expression:"form.date2"}})],1)],1)],1),r("el-form-item",{attrs:{label:"随访记录"}},[r("el-input",{staticClass:"custom-disabled",attrs:{type:"textarea",disabled:""},model:{value:t.form.remark2,callback:function(e){t.$set(t.form,"remark2",e)},expression:"form.remark2"}})],1),r("div",{staticClass:"headline"},[t._v("下次随访")]),r("el-divider"),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"随访方式",prop:"date1"}},[r("el-select",{attrs:{filterable:"","allow-create":"","default-first-option":"",placeholder:"请选择随访方式(依出院时间技计算)"},on:{change:t.visitChange},model:{value:t.form.visitType,callback:function(e){t.$set(t.form,"visitType",e)},expression:"form.visitType"}},t._l(t.options,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"随访时间",prop:"date1"}},[r("el-date-picker",{attrs:{type:"date",placeholder:"选择日期","picker-options":t.pickerOptions,align:"right"},model:{value:t.form.date1,callback:function(e){t.$set(t.form,"date1",e)},expression:"form.date1"}})],1)],1)],1),r("el-form-item",{attrs:{label:"随访方式",prop:"resource"}},[r("el-radio-group",{model:{value:t.form.resource,callback:function(e){t.$set(t.form,"resource",e)},expression:"form.resource"}},[r("el-radio",{attrs:{label:"1"}},[t._v("本病区随访")]),r("el-radio",{attrs:{label:"2"}},[t._v("随访中心随访")])],1)],1),r("el-form-item",{attrs:{label:"随访记录"}},[r("el-input",{attrs:{type:"textarea"},model:{value:t.form.remark,callback:function(e){t.$set(t.form,"remark",e)},expression:"form.remark"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"warning"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:t.setupsubtask}},[t._v("确认创建服务")])],1)],1)],1)},a=[],o=r("025b"),i=(r("8d03"),r("618d"),r("9c42"),r("7103"),r("fb51"),r("2f82"),r("6678"),r("8081"),r("e4d7"),r("6e70"),r("9493"),r("c33f"),r("21b9"),r("16d2"),r("a26b"),r("4a55"),r("e795"),r("cfee"),r("8adb"),r("283d"),r("a04b"),r("46e6"),r("f76b"),r("ec4f"),r("aad4"),r("21e8"),r("f160"),r("8e97"),r("1b56"),r("661f"),r("40d6")),s=r("958b"),u=r("0239"),c={components:{CallButton:u["a"]},dicts:["sys_normal_disable","sys_user_sex","sys_yujing","sys_suggest"],data:function(){var t=function(t,e,r){if(!e)return r(new Error("请输入联系电话"));setTimeout((function(){/^1[3-9]\d{9}$/.test(e)?r():r(new Error("请输入正确的11位手机号码"))}),300)};return{userid:"",currentPhoneNumber:"",callType:"",input:"今天身体还不错",radio:"2",taskname:"",voice:"",templateid:"",again:"",zcform:{},form:{},tableDatatop:[],voiceDatatop:[],dynamicTags:[],zcrules:{resource:[{required:!0,message:"请选择随访方式",trigger:"change"}],date1:[{required:!0,message:"请选择随访时间",trigger:"blur"}]},userrules:{telcode:[{validator:t,trigger:"blur"}],relativetelcode:[{validator:t,trigger:"blur"}]},url:"http://9.208.2.190:8090/smartor/serviceExternal/query360PatInfo",postData:{XiaoXiTou:{FaSongFCSJC:"ZJHES",FaSongJGID:localStorage.getItem("orgid"),FaSongJGMC:localStorage.getItem("orgname"),FaSongSJ:"2025-01-09 17:29:36",FaSongXTJC:"SUIFANGXT",FaSongXTMC:"随访系统",XiaoXiID:"5FA92AFB-9833-4608-87C7-F56A654AC171",XiaoXiLX:"SC_LC_360STCX",XiaoXiMC:"360 视图查询",ZuHuID:localStorage.getItem("ZuHuID"),ZuHuMC:localStorage.getItem("orgname")},YeWuXX:{BingRenXX:{ZhengJianHM:"",ZhengJianLXDM:"01",ZhengJianLXMC:"居民身份证",ZuZhiJGID:localStorage.getItem("orgid"),ZuZhiJGMC:localStorage.getItem("orgname")},YongHuXX:{XiTongID:"SUIFANGXT",XiTongMC:"随访系统",YongHuID:localStorage.getItem("YongHuID"),YongHuXM:localStorage.getItem("YongHuXM"),ZuZhiJGID:localStorage.getItem("orgid"),ZuZhiJGMC:localStorage.getItem("orgname"),idp:"lyra"}}},pickerOptions:{shortcuts:[{text:"七天后",onClick:function(t){var e=new Date;e.setTime(e.getTime()+6048e5),t.$emit("pick",e)}},{text:"15天后",onClick:function(t){var e=new Date;e.setTime(e.getTime()+1296e6),t.$emit("pick",e)}},{text:"一个月后",onClick:function(t){var e=new Date;e.setTime(e.getTime()+2592e6),t.$emit("pick",e)}},{text:"三个月后",onClick:function(t){var e=new Date;e.setTime(e.getTime()+7776e6),t.$emit("pick",e)}},{text:"六个月后",onClick:function(t){var e=new Date;e.setTime(e.getTime()+15552e6),t.$emit("pick",e)}},{text:"一年后",onClick:function(t){var e=new Date;e.setTime(e.getTime()+31536e6),t.$emit("pick",e)}}]},options:[{value:"七天后",label:"七天后"},{value:"15天后",label:"15天后"},{value:"一个月后",label:"一个月后"},{value:"三个月后",label:"三个月后"},{value:"六个月后",label:"六个月后"},{value:"一年后",label:"一年后"}],userform:{},Whetherall:!0,dialogFormVisible:!1,Voicetype:0,visitCount:null,logsheetlist:[],topicobj:{},sendname:null,serviceType:null,id:null,taskid:null,patid:null}},created:function(){this.taskid=this.$route.query.taskid,this.id=this.$route.query.id,this.sendname=this.$route.query.sendname,this.patid=this.$route.query.patid,this.again=this.$route.query.again,this.Voicetype=this.$route.query.Voicetype,this.visitCount=this.$route.query.visitCount,this.serviceType=this.$route.query.serviceType,this.getTaskservelist()},methods:{gettoken360:function(t,e,r){var n=this;this.postData.YeWuXX.BingRenXX.ZhengJianHM=t,Object(i["mc"])(this.postData).then((function(t){t.data.url?window.open(t.data.url,"_blank"):n.$modal.msgWarning("360查询无结果")}))},getuserinfo:function(){var t=this,e={pid:Number(this.patid),allhosp:"0"};Object(s["l"])(e).then((function(e){e.rows[0]&&(t.userform=e.rows[0])})),Object(s["k"])({patid:this.patid}).then((function(e){t.tableData=e.rows,t.tableData.length&&(t.userform.relativetelcode=t.tableData[0].contactway,t.userform.relation=t.tableData[0].relation)}))},visitChange:function(t){new Date;t.includes("七天后")?this.form.date1=new Date(Date.parse(this.form.endtime)+6048e5):t.includes("15天后")?this.form.date1=new Date(Date.parse(this.form.endtime)+1296e6):t.includes("一个月后")?this.form.date1=new Date(Date.parse(this.form.endtime)+2592e6):t.includes("三个月后")?this.form.date1=new Date(Date.parse(this.form.endtime)+7776e6):t.includes("六个月后")?this.form.date1=new Date(Date.parse(this.form.endtime)+15552e6):t.includes("一年后")&&(this.form.date1=new Date(Date.parse(this.form.endtime)+31536e6))},getPersonVoices:function(t){var e=this,r={taskid:this.taskid,patid:this.patid,subId:t||this.id};Object(i["yb"])(r).then((function(t){200==t.code&&(e.voiceDatatop=t.data.serviceSubtaskDetails,e.voice=t.data.voice,e.activeName="yy",e.taskname=t.data.taskName,e.tableDatatop=t.data.filteredDetails,e.tableDatatop.forEach((function(t){t.targetvalue?t.scriptResult=t.targetvalue.split("&"):t.scriptResult=[]})),e.tableDatatop.length||e.puttaskid(e.templateid))}))},puttaskid:function(t){var e=this;Object(i["Eb"])(t).then((function(t){200==t.code&&(e.tableDatatop=t.data.ivrTaskTemplateScriptVOList,e.tableDatatop.forEach((function(t){t.id=null,t.ivrTaskScriptTargetoptionList&&(t.targetvalue=1,t.questiontext=t.scriptContent,t.targetvalue=t.ivrTaskScriptTargetoptionList.map((function(t){return t.targetvalue})).join("&")),t.targetvalue?t.scriptResult=t.targetvalue.split("&"):t.scriptResult=[]})))}))},getdetail:function(){var t=this,e="",r=[];this.tableDatatop.forEach((function(n){var a=n.svyLibTemplateTargetoptions.find((function(t){return t.optioncontent==n.scriptResult}));o&&a.isabnormal&&(e=1);var o={asrtext:null,patid:t.patid,subId:t.id,taskid:t.taskid,scriptid:n.id,excep:e,questiontext:n.scriptContent};2==n.scriptType&&n.scriptResult[0]?o.asrtext=n.scriptResult.join("&"):2!=n.scriptType&&n.scriptResult&&(o.asrtext=n.scriptResult),3==n.isoption?r.push(Object(i["rc"])(o)):r.push(Object(i["qc"])(o))})),Promise.all(r).then((function(e){e.forEach((function(e){200!==e.code&&t.$modal.error("修改失败")})),t.Editsingletasksonyic(6),t.$modal.confirm('任务保存成功是否针对患者:"'+t.logsheetlist[0].sendname+'"再次随访?',"确认",{confirmButtonText:"确定",cancelButtonText:"取消",showCancelButton:!0,dangerouslyUseHTMLString:!0,confirmButtonClass:"custom-confirm-button",cancelButtonClass:"custom-cancel-button"}).then((function(){document.querySelector("#app").scrollTo(0,0),t.formtidy(),t.dialogFormVisible=!0})).catch((function(){13==t.form.serviceType?t.visitCount?t.$router.push({path:"/logisticsservice/zbAgain"}):t.$router.push({path:"/logisticsservice/record"}):2==form.serviceType&&(t.visitCount?t.$router.push({path:"/followvisit/again"}):t.$router.push({path:"/followvisit/discharge"}))}))})).catch((function(t){console.error("发生错误:",t)}))},isValidPhone:function(t){return/^1[3-9]\d{9}$/.test(t)},handleCall:function(t,e){var r=this;this.isValidPhone(t)&&(this.currentPhoneNumber=t,this.callType=e,this.$nextTick((function(){r.$refs.callButton.startCall(),"tel"===e?console.log("正在呼叫患者本人:",t):console.log("正在呼叫联系人:",t)})))},yuyingetdetail:function(){var t=this;this.tableDatatop.forEach((function(e,r){e.scriptResult=e.scriptResult.join("&"),e.templatequestionnum=r+1,e.subId=t.id,e.taskid=t.taskid,e.asrtext=e.matchedtext,e.id||(e.isoperation=1),e.patid=t.patid,e.templateid=e.templateID}));var e={serviceSubtaskDetailList:this.tableDatatop,param1:this.taskid,param2:this.patid,subId:this.id};Object(i["r"])(e).then((function(e){200==e.code&&(t.$modal.msgSuccess("服务保存成功"),t.$modal.confirm('任务保存成功是否针对患者:"'+t.userform.name+'"再次随访?',"确认",{confirmButtonText:"确定",cancelButtonText:"取消",showCancelButton:!0,dangerouslyUseHTMLString:!0,confirmButtonClass:"custom-confirm-button",cancelButtonClass:"custom-cancel-button"}).then((function(){document.querySelector("#app").scrollTo(0,0),t.formtidy(),t.dialogFormVisible=!0})).catch((function(){13==t.form.serviceType?t.visitCount?t.$router.push({path:"/logisticsservice/zbAgain"}):t.$router.push({path:"/logisticsservice/record"}):2==form.serviceType&&(t.visitCount?t.$router.push({path:"/followvisit/again"}):t.$router.push({path:"/followvisit/discharge"}))})))}))},formtidy:function(){this.form.visitType2=this.form.visitType,this.form.date2=this.form.longSendTime,this.form.remark2=this.form.remark},getTaskservelist:function(t){var e=this;this.Whetherall=!t,Object(i["Lb"])({patid:this.patid,subId:t}).then((function(t){if(200==t.code){e.form=t.rows[0].serviceSubtaskList.find((function(t){return t.id==e.id})),e.form.remark||(e.form.remark=e.form.taskDesc),e.logsheetlist=t.rows[0].serviceSubtaskList,e.templateid=e.logsheetlist[0].templateid;var r=new Date(e.form.longSendTime),n=new Date;e.form.endtime=e.formatTime(e.form.endtime),n<r&&2==e.form.sendstate&&e.$confirm("当前服务未到发送时间请谨慎修改","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){})).catch((function(){})),e.getuserinfo()}}))},Editsingletaskson:function(t){var e=this,r={};Object(i["Lb"])({patid:this.patid,subId:this.id}).then((function(n){200==n.code&&(r=n.rows[0].serviceSubtaskList[0],r.suggest=t,Object(i["e"])(r).then((function(t){t.code&&(e.$modal.msgSuccess("服务记录成功"),e.getTaskservelist())})))}))},Editsingletasksonyic:function(t){var e=this,r={};Object(i["Lb"])({patid:this.patid,subId:this.id}).then((function(n){200==n.code&&(r=n.rows[0].serviceSubtaskList.find((function(t){return t.id==e.id})),r.remark=e.form.remark,t&&(r.sendstate=t),Object(i["e"])(r).then((function(t){t.code&&(e.$modal.msgSuccess("服务修改成功"),Object(s["e"])(e.userform).then((function(t){200==t.code?e.$modal.msgSuccess("基础信息保存成功"):e.$modal.msgError("基础信息修改失败")})),e.getTaskservelist())})))}))},tableRowClassName:function(t){var e=t.row;t.rowIndex;return e.id==this.id?"warning-row":""},sendAgain:function(){document.querySelector("#app").scrollTo(0,0),this.formtidy(),this.dialogFormVisible=!0},Seedetails:function(t){var e=this;this.$modal.confirm('是否查看任务为"'+t.taskName+'"的服务详情数据?').then((function(){console.log(t,"rwo"),t.type,e.taskid=t.taskid,e.id=t.id,e.patid=t.patid,e.serviceType=t.serviceType,e.getTaskservelist()})).catch((function(){}))},handleOptionChange:function(t,e,r){var n=r.find((function(e){return e.optioncontent==t}));if(0==n.nextQuestion?this.tableDatatop=this.tableDatatop.reduce((function(t,r,n){return t.push(n>e?Object(o["a"])(Object(o["a"])({},r),{},{astrict:1}):r),t}),[]):this.tableDatatop=this.tableDatatop.reduce((function(t,r,n){return t.push(n>e?Object(o["a"])(Object(o["a"])({},r),{},{astrict:0}):r),t}),[]),this.Voicetype)var a=this.tableDatatop[e].ivrTaskScriptTargetoptionList.find((function(e){return e.optioncontent==t}));else a=this.tableDatatop[e].svyLibTemplateTargetoptions.find((function(e){return e.optioncontent==t}));a.isabnormal?this.tableDatatop[e].isabnormal=!0:this.tableDatatop[e].isabnormal=!1,this.$forceUpdate()},overdata:function(){var t=this;this.tableDatatop.forEach((function(e,r){var n=e.svyLibTemplateTargetoptions.find((function(t){return t.optioncontent==e.scriptResult}));n&&(n.isabnormal?t.tableDatatop[r].isabnormal=!0:t.tableDatatop[r].isabnormal=!1,t.$forceUpdate())}))},setupsubtask:function(){var t=this;this.$refs["zcform"].validate((function(e){if(e){t.form.remark=t.form.remark+"【"+t.getCurrentTime()+"】";var r=structuredClone(t.form);if(r.longSendTime=t.formatTime(r.date1),r.finishtime="",!r.resource)return void t.$modal.msgError("未选择随访方式");2==r.resource?(r.serviceType=13,r.visitDeptCode=localStorage.getItem("deptCode"),r.visitDeptName="随访中心"):(r.visitDeptCode=r.deptcode,r.visitDeptName=r.deptname),r.sendstate=2,Object(i["C"])(r).then((function(e){200==e.code?(t.$modal.msgSuccess("创建成功"),13==r.serviceType?t.$router.push({path:"/logisticsservice/again"}):2==r.serviceType&&t.$router.push({path:"/logisticsservice/zbAgain"})):t.$modal.msgError("创建失败"),document.querySelector("#app").scrollTo(0,0),t.dialogFormVisible=!1}))}}))},getCurrentTime:function(){var t=new Date,e=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),a=String(t.getHours()).padStart(2,"0"),o=String(t.getMinutes()).padStart(2,"0"),i=String(t.getSeconds()).padStart(2,"0");return"".concat(e,"-").concat(r,"-").concat(n," ").concat(a,":").concat(o,":").concat(i)},updateScore:function(t,e,r){}}},l=c,d=(r("e6dd"),r("1805")),m=Object(d["a"])(l,n,a,!1,null,null,null);e["default"]=m.exports},e6dd:function(t,e,r){"use strict";r("6341")}}]);