(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b7bc4c3","chunk-41a1c5e1"],{"296d":function(t,e,r){"use strict";var a=r("037d"),n=r("eef8"),o=r("f7a3");a({target:"Array",proto:!0},{fill:n}),o("fill")},"31ab":function(t,e,r){"use strict";r("9a1c")},"40d6":function(t,e,r){"use strict";r.d(e,"dc",(function(){return n})),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 l})),r.d(e,"kc",(function(){return u})),r.d(e,"Nb",(function(){return c})),r.d(e,"Ub",(function(){return d})),r.d(e,"D",(function(){return m})),r.d(e,"gb",(function(){return p})),r.d(e,"oc",(function(){return f})),r.d(e,"fb",(function(){return h})),r.d(e,"E",(function(){return b})),r.d(e,"rb",(function(){return v})),r.d(e,"cc",(function(){return g})),r.d(e,"zc",(function(){return y})),r.d(e,"ic",(function(){return O})),r.d(e,"hb",(function(){return j})),r.d(e,"K",(function(){return k})),r.d(e,"hc",(function(){return T})),r.d(e,"L",(function(){return w})),r.d(e,"u",(function(){return L})),r.d(e,"S",(function(){return x})),r.d(e,"Mb",(function(){return S})),r.d(e,"xb",(function(){return C})),r.d(e,"O",(function(){return q})),r.d(e,"G",(function(){return P})),r.d(e,"gc",(function(){return _})),r.d(e,"Eb",(function(){return $})),r.d(e,"q",(function(){return N})),r.d(e,"lb",(function(){return z})),r.d(e,"N",(function(){return D})),r.d(e,"wb",(function(){return A})),r.d(e,"o",(function(){return I})),r.d(e,"U",(function(){return F})),r.d(e,"Ib",(function(){return E})),r.d(e,"Rb",(function(){return R})),r.d(e,"X",(function(){return B})),r.d(e,"Qb",(function(){return M})),r.d(e,"v",(function(){return V})),r.d(e,"nb",(function(){return Q})),r.d(e,"w",(function(){return U})),r.d(e,"W",(function(){return H})),r.d(e,"Pb",(function(){return J})),r.d(e,"Sb",(function(){return Y})),r.d(e,"Y",(function(){return G})),r.d(e,"x",(function(){return K})),r.d(e,"ob",(function(){return W})),r.d(e,"Zb",(function(){return X})),r.d(e,"db",(function(){return Z})),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 at})),r.d(e,"pb",(function(){return nt})),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 lt})),r.d(e,"Ab",(function(){return ut})),r.d(e,"Q",(function(){return ct})),r.d(e,"H",(function(){return dt})),r.d(e,"s",(function(){return mt})),r.d(e,"mb",(function(){return pt})),r.d(e,"P",(function(){return ft})),r.d(e,"zb",(function(){return ht})),r.d(e,"j",(function(){return bt})),r.d(e,"l",(function(){return vt})),r.d(e,"T",(function(){return gt})),r.d(e,"Gb",(function(){return yt})),r.d(e,"ib",(function(){return Ot})),r.d(e,"kb",(function(){return jt})),r.d(e,"tc",(function(){return kt})),r.d(e,"jb",(function(){return Tt})),r.d(e,"sc",(function(){return wt})),r.d(e,"vc",(function(){return Lt})),r.d(e,"yc",(function(){return xt})),r.d(e,"uc",(function(){return St})),r.d(e,"xc",(function(){return Ct})),r.d(e,"rc",(function(){return qt})),r.d(e,"qc",(function(){return Pt})),r.d(e,"Xb",(function(){return _t})),r.d(e,"cb",(function(){return $t})),r.d(e,"I",(function(){return Nt})),r.d(e,"z",(function(){return zt})),r.d(e,"qb",(function(){return Dt})),r.d(e,"bb",(function(){return At})),r.d(e,"Wb",(function(){return It})),r.d(e,"mc",(function(){return Ft})),r.d(e,"ab",(function(){return Et})),r.d(e,"Jb",(function(){return Rt})),r.d(e,"Kb",(function(){return Bt})),r.d(e,"d",(function(){return Mt})),r.d(e,"e",(function(){return Vt})),r.d(e,"R",(function(){return Qt})),r.d(e,"Hb",(function(){return Ut})),r.d(e,"Fb",(function(){return Ht})),r.d(e,"Lb",(function(){return Jt})),r.d(e,"jc",(function(){return Yt})),r.d(e,"F",(function(){return Gt})),r.d(e,"n",(function(){return Kt})),r.d(e,"m",(function(){return Wt})),r.d(e,"vb",(function(){return Xt})),r.d(e,"fc",(function(){return Zt})),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 ae})),r.d(e,"yb",(function(){return ne})),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 le})),r.d(e,"g",(function(){return ue})),r.d(e,"f",(function(){return ce})),r.d(e,"h",(function(){return de})),r.d(e,"ub",(function(){return me})),r.d(e,"Ob",(function(){return pe})),r.d(e,"Db",(function(){return fe})),r.d(e,"tb",(function(){return he})),r.d(e,"ac",(function(){return be})),r.d(e,"pc",(function(){return ve})),r.d(e,"lc",(function(){return ge})),r.d(e,"B",(function(){return ye})),r.d(e,"Ac",(function(){return Oe})),r.d(e,"eb",(function(){return je})),r.d(e,"Cb",(function(){return ke})),r.d(e,"nc",(function(){return Te})),r.d(e,"p",(function(){return we})),r.d(e,"b",(function(){return Le})),r.d(e,"c",(function(){return xe}));var a=r("b775");function n(t){return Object(a["a"])({url:"/smartor/target/targetInfo",method:"post",data:t})}function o(t){return Object(a["a"])({url:"/smartor/target/saveOrupdateIvrLibaTarget",method:"post",data:t})}function i(t){return Object(a["a"])({url:"/smartor/serviceSubtaskDetail/countPatByTarget/"+t,method:"get"})}function s(t){return Object(a["a"])({url:"/smartor/target/remove/"+t,method:"get"})}function l(t){return Object(a["a"])({url:"/smartor/icd10/list",method:"post",data:t})}function u(t){return Object(a["a"])({url:"/smartor/icd10/getInfo/"+t,method:"get"})}function c(t){return Object(a["a"])({url:"/smartor/baseopera/list",method:"post",data:t})}function d(t){return Object(a["a"])({url:"/smartor/outicd10/list",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/smartor/outicd10/add",method:"post",data:t})}function p(t){return Object(a["a"])({url:"/smartor/outicd10/remove/"+t,method:"get"})}function f(t){return Object(a["a"])({url:"/smartor/assort/selectIvrLibaTargetAssortList",method:"post",data:t})}function h(t){return Object(a["a"])({url:"/smartor/assort/remove/"+t,method:"get"})}function b(t){return Object(a["a"])({url:"/smartor/assort/addtree",method:"post",data:t})}function v(t){return Object(a["a"])({url:"/smartor/assort/edit",method:"post",data:t})}function g(t){return Object(a["a"])({url:"/smartor/target/list",method:"post",data:t})}function y(t){return Object(a["a"])({url:"/smartor/target/targetQuesMate",method:"post",data:t})}function O(t){return Object(a["a"])({url:"/smartor/script/list",method:"post",data:t})}function j(t){return Object(a["a"])({url:"/smartor/script/remove/"+t,method:"get"})}function k(t){return Object(a["a"])({url:"/smartor/script/saveOrUpdateScript",method:"post",data:t})}function T(t){return Object(a["a"])({url:"/smartor/script/selectInfoByCondition",method:"post",data:t})}function w(t){return Object(a["a"])({url:"/smartor/scriptassort/edit",method:"post",data:t})}function L(t){return Object(a["a"])({url:"/smartor/scriptassort/addtree",method:"post",data:t})}function x(t){return Object(a["a"])({url:"/smartor/scriptassort/remove/"+t,method:"get"})}function S(t){return Object(a["a"])({url:"/smartor/scriptassort/selectIvrLibaScriptAssortList",method:"post",data:t})}function C(t){return Object(a["a"])({url:"/smartor/template/list",method:"post",data:t})}function q(t){return Object(a["a"])({url:"/smartor/template/remove/"+t,method:"get"})}function P(t){return Object(a["a"])({url:"/smartor/template/saveOrUpdateScript",method:"post",data:t})}function _(t){return Object(a["a"])({url:"/smartor/template/selectInfoByCondition",method:"post",data:t})}function $(t){return Object(a["a"])({url:"/smartor/ivrTaskTemplate/getTemplateInfoByID/"+t,method:"get"})}function N(t){return Object(a["a"])({url:"/smartor/templateassort/addtree",method:"post",data:t})}function z(t){return Object(a["a"])({url:"/smartor/templateassort/edit",method:"post",data:t})}function D(t){return Object(a["a"])({url:"/smartor/templateassort/remove/"+t,method:"get"})}function A(t){return Object(a["a"])({url:"/smartor/templateassort/selectIvrLibaTemplateAssortList",method:"post",data:t})}function I(t){return Object(a["a"])({url:"/smartor/ivrTaskTemplate/saveOrUpdateTempScript",method:"post",data:t})}function F(t){return Object(a["a"])({url:"/smartor/ivrTaskTemplate/remove/"+t,method:"get"})}function E(t){return Object(a["a"])({url:"/smartor/ivrTaskTemplate/getInfo/"+t,method:"get"})}function R(t){return Object(a["a"])({url:"/smartor/extemplate/list",method:"post",data:t})}function B(t){return Object(a["a"])({url:"/smartor/extemplate/remove/"+t,method:"get"})}function M(t){return Object(a["a"])({url:"/smartor/extemplate/"+t,method:"get"})}function V(t){return Object(a["a"])({url:"/smartor/extemplate/add",method:"post",data:t})}function Q(t){return Object(a["a"])({url:"/smartor/extemplate/edit",method:"post",data:t})}function U(t){return Object(a["a"])({url:"/smartor/category/add",method:"post",data:t})}function H(t){return Object(a["a"])({url:"/smartor/category/remove/"+t,method:"get"})}function J(t){return Object(a["a"])({url:"/smartor/category/list",method:"post",data:t})}function Y(t){return Object(a["a"])({url:"/smartor/extemplatescript/list",method:"post",data:t})}function G(t){return Object(a["a"])({url:"/smartor/extemplatescript/remove/"+t,method:"get"})}function K(t){return Object(a["a"])({url:"/smartor/extemplatescript/add",method:"post",data:t})}function W(t){return Object(a["a"])({url:"/smartor/extemplatescript/edit",method:"post",data:t})}function X(t){return Object(a["a"])({url:"/smartor/library/list",method:"post",data:t})}function Z(t){return Object(a["a"])({url:"/smartor/library/remove/"+t,method:"get"})}function tt(t){return Object(a["a"])({url:"/smartor/library/selectInfoByCondition",method:"post",data:t})}function et(t){return Object(a["a"])({url:"/smartor/library/saveOrUpdateHeLibrary",method:"post",data:t})}function rt(t){return Object(a["a"])({url:"/common/htmlContent",method:"post",data:t})}function at(t){return Object(a["a"])({url:"/smartor/heLibraryAssort/addtree",method:"post",data:t})}function nt(t){return Object(a["a"])({url:"/smartor/heLibraryAssort/edit",method:"post",data:t})}function ot(t){return Object(a["a"])({url:"/smartor/heLibraryAssort/remove/"+t,method:"get"})}function it(t){return Object(a["a"])({url:"/smartor/heLibraryAssort/selectHeLibraryAssortList",method:"post",data:t})}r("b8cc");function st(t){return Object(a["a"])({url:"/smartor/svyLibTemplate/selectSvyLibTemplatelist",method:"post",data:t})}function lt(t){return Object(a["a"])({url:"smartor/svytemplateTask/selectInfoByCondition",method:"post",data:t})}function ut(t){return Object(a["a"])({url:"/smartor/svyLibTemplate/list",method:"get",params:t})}function ct(t){return Object(a["a"])({url:"/smartor/svyLibTemplate/remove/"+t,method:"get"})}function dt(t){return Object(a["a"])({url:"/smartor/svyLibTemplate/saveOrUpdateTemplate",method:"post",data:t})}function mt(t){return Object(a["a"])({url:"/smartor/svyLibTemplateCategory/addtree",method:"post",data:t})}function pt(t){return Object(a["a"])({url:"/smartor/svyLibTemplateCategory/edit",method:"post",data:t})}function ft(t){return Object(a["a"])({url:"/smartor/svyLibTemplateCategory/remove/"+t,method:"get"})}function ht(t){return Object(a["a"])({url:"/smartor/svyLibTemplateCategory/list",method:"post",data:t})}function bt(t){return Object(a["a"])({url:"/smartor/serviceSubtask/queryTaskByCondition",method:"post",data:t})}function vt(t){return Object(a["a"])({url:"/smartor/svytemplateTask/saveOrUpdateTaskTemp",method:"post",data:t})}function gt(t){return Object(a["a"])({url:"/smartor/svytemplateTask/remove/"+t,method:"get"})}function yt(t){return Object(a["a"])({url:"/smartor/svytemplateTask/"+t,method:"get"})}function Ot(t){return Object(a["a"])({url:"/smartor/td/add",method:"post",data:t})}function jt(t){return Object(a["a"])({url:"/smartor/td/list",method:"get",params:t})}function kt(t){return Object(a["a"])({url:"/smartor/taskdept/list",method:"post",data:t})}function Tt(t){return Object(a["a"])({url:"/smartor/td/remove/"+t,method:"get"})}function wt(t){return Object(a["a"])({url:"/smartor/taskdept/remove/"+t,method:"get"})}function Lt(t){return Object(a["a"])({url:"/smartor/taskdiag/remove/".concat(t),method:"get"})}function xt(t){return Object(a["a"])({url:"/smartor/taskoper/remove/".concat(t),method:"get"})}function St(t){return Object(a["a"])({url:"/smartor/taskdiag/list",method:"post",data:t})}function Ct(t){return Object(a["a"])({url:"/smartor/taskoper/list",method:"post",data:t})}function qt(t){return Object(a["a"])({url:"/smartor/serviceSubtaskDetail/editByCondition",method:"post",data:t})}function Pt(t){return Object(a["a"])({url:"/smartor/serviceSubtaskDetail/add",method:"post",data:t})}function _t(t){return Object(a["a"])({url:"/smartor/svyscript/list",method:"post",data:t})}function $t(t){return Object(a["a"])({url:"/smartor/svyscript/remove/"+t,method:"get"})}function Nt(t){return Object(a["a"])({url:"/smartor/svyscript/saveOrUpdateScript",method:"post",data:t})}function zt(t){return Object(a["a"])({url:"/smartor/svyLibScriptCategory/addtree",method:"post",data:t})}function Dt(t){return Object(a["a"])({url:"/smartor/svyLibScriptCategory/edit",method:"post",data:t})}function At(t){return Object(a["a"])({url:"/smartor/svyLibScriptCategory/remove/"+t,method:"get"})}function It(t){return Object(a["a"])({url:"/smartor/svyLibScriptCategory/list",method:"post",data:t})}function Ft(t){return Object(a["a"])({url:"/smartor/serviceExternal/query360PatInfo",method:"post",data:t})}function Et(t){return Object(a["a"])({url:"/smartor/serviceSubtask/remove/"+t,method:"get"})}function Rt(t){return Object(a["a"])({url:"/smartor/patarchive/getPatientInfo",method:"post",data:t})}function Bt(t){return Object(a["a"])({url:"/smartor/patarchive/getPatientInfoQC",method:"post",data:t})}function Mt(t){return Object(a["a"])({url:"/smartor/serviceSubtask/insertOrUpdateTask",method:"post",data:t})}function Vt(t){return Object(a["a"])({url:"/smartor/serviceSubtask/update",method:"post",data:t})}function Qt(t){return Object(a["a"])({url:"/smartor/servicetask/remove/"+t,method:"get"})}function Ut(t){return Object(a["a"])({url:"/smartor/servicetask/list",method:"post",data:t})}function Ht(t){return Object(a["a"])({url:"/smartor/serviceSubtask/queryTaskByCondition",method:"post",data:t})}function Jt(t){return Object(a["a"])({url:"/smartor/serviceSubtask/patItem",method:"post",data:t})}function Yt(t){return Object(a["a"])({url:"/smartor/serviceSubtask/getSubtaskByDiagname",method:"post",data:t})}function Gt(t){return Object(a["a"])({url:"/smartor/serviceSubtask/patItemByCondition",method:"post",data:t})}function Kt(t){return Object(a["a"])({url:"/smartor/ivrTaskTemplate/saveOrUpdateTempScript",method:"post",data:t})}function Wt(t){return Object(a["a"])({url:"/smartor/commonTask/taskSend",method:"post",data:t})}function Xt(t){return Object(a["a"])({url:"/smartor/servicetask/getScriptInfoByCondition",method:"post",data:t})}function Zt(t){return Object(a["a"])({url:"/smartor/outPath/getInfoByParam",method:"post",params:{param:t}})}function te(t){return Object(a["a"])({url:"/smartor/subtaskAnswer/saveQuestionCache",method:"post",data:t})}function ee(t){return Object(a["a"])({url:"/smartor/subtaskAnswer/getQuestionCache",method:"post",data:t})}function re(t){return Object(a["a"])({url:"/smartor/subtaskAnswer/saveQuestionAnswer",method:"post",data:t})}function ae(t){return Object(a["a"])({url:"/smartor/subtaskAnswer/selectPatQuestionResult",method:"post",data:t})}function ne(t){return Object(a["a"])({url:"/smartor/serviceSubtaskDetail/getPersonVoice",method:"post",data:t})}function oe(t){return Object(a["a"])({url:"/smartor/serviceSubtaskDetail/batchAdd",method:"post",data:t})}function ie(t){return Object(a["a"])({url:"/smartor/serviceSubtask/addSubTaskAgain",method:"post",data:t})}function se(t){return Object(a["a"])({url:"/smartor/serviceSubtask/addSubTask",method:"post",data:t})}function le(t){return Object(a["a"])({url:"/smartor/import/remove/"+t,method:"get"})}function ue(t){return Object(a["a"])({url:"/smartor/import/list",method:"post",data:t})}function ce(t){return Object(a["a"])({url:"/smartor/import/edit",method:"post",data:t})}function de(t){return Object(a["a"])({url:"/smartor/import/getInfo/"+t,method:"get"})}function me(t){return Object(a["a"])({url:"/smartor/patouthosp/selectPatMedOuthospCount",method:"post",data:t})}function pe(t){return Object(a["a"])({url:"/smartor/patinhosp/selectPatMedInhospListCount",method:"post",data:t})}function fe(t){return Object(a["a"])({url:"/smartor/serviceSubtask/getServiceStatistics",method:"post",data:t})}function he(t){return Object(a["a"])({url:"/smartor/patinhosp/getDeptRanking",method:"post",data:t})}function be(t){return Object(a["a"])({url:"/smartor/organization/list",method:"get"})}function ve(t){return Object(a["a"])({url:"/sms/send",method:"post",data:t})}r("c38a");function ge(t){return Object(a["a"])({url:"/smartor/satisfaction/list",method:"post",data:t})}function ye(t){return Object(a["a"])({url:"/smartor/satisfaction/batchinsert",method:"post",data:t})}function Oe(t){return Object(a["a"])({url:"/smartor/satisfaction/edit",method:"post",data:t})}function je(t){return Object(a["a"])({url:"/smartor/satisfaction/remove/"+t,method:"get"})}function ke(t){return Object(a["a"])({url:"/smartor/servicetask/getScriptByCondition",method:"post",data:t})}function Te(t){return Object(a["a"])({url:"/smartor/subtaskAnswer/saveMYDQuestionAnswer",method:"post",data:t})}function we(t){return Object(a["a"])({url:"/getDept/"+t,method:"get"})}function Le(){return Object(a["a"])({url:"/smartor/ServiceTelInfo/getList",method:"get",params:{orgid:localStorage.getItem("orgid")}})}function xe(t){return Object(a["a"])({url:"/smartor/ServiceTelInfo/setState",method:"get",params:t})}},"958b":function(t,e,r){"use strict";r.d(e,"l",(function(){return n})),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 l})),r.d(e,"g",(function(){return u})),r.d(e,"c",(function(){return c})),r.d(e,"j",(function(){return d})),r.d(e,"i",(function(){return m})),r.d(e,"a",(function(){return p})),r.d(e,"h",(function(){return f})),r.d(e,"k",(function(){return h})),r.d(e,"f",(function(){return b})),r.d(e,"b",(function(){return v}));var a=r("b775");r("c38a");function n(t){return Object(a["a"])({url:"/smartor/patarchive/patInfoByContion",method:"post",data:t})}function o(t){return Object(a["a"])({url:"/smartor/patarchive/list",method:"post",data:t})}function i(t){return Object(a["a"])({url:"/smartor/patarchive/saveOrUpdatePatInfo",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/smartor/patarchive/add",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/smartor/patarchive/getInfo/"+t,method:"get"})}function u(t){return Object(a["a"])({url:"/smartor/patarchive/remove/"+t,method:"get"})}function c(t){return Object(a["a"])({url:"/medicalhistory/add",method:"post",data:t})}function d(t){return Object(a["a"])({url:"/medicalhistory/selectMedicalHistoryList",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/medicalhistory/edit",method:"post",data:t})}function p(t){return Object(a["a"])({url:"/archivecontact/add",method:"post",data:t})}function f(t){return Object(a["a"])({url:"/archivecontact/edit",method:"post",data:t})}function h(t){return Object(a["a"])({url:"/archivecontact/selectPatArchivecontactList",method:"post",data:t})}function b(t){return Object(a["a"])({url:"/archivecontact/remove/"+t,method:"get"})}function v(t){return Object(a["a"])({url:"/smartor/filterlist/add",method:"post",data:t})}},"9a1c":function(t,e,r){},ede5:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"Questionnairemanagement"},[r("div",{staticClass:"sidecolumn"},[r("div",[r("el-steps",{attrs:{simple:"",active:t.Editprogress}},[r("el-step",{attrs:{icon:"el-icon-edit",title:"基础信息",description:"选择模板、形式等基础信息"}}),r("el-step",{attrs:{icon:"el-icon-user",title:"任务主体",description:"在本部选择服务患者"}})],1)],1)]),r("div",{staticClass:"leftvlue",staticStyle:{margin:"0 20px"}},[1==t.Editprogress?r("div",[r("el-alert",{attrs:{title:"选择模板、形式等基础信息",type:"success",effect:"dark"}}),r("div",{staticClass:"leftvlue-jbxx"},[r("div",{staticClass:"examine-jic"},[t._m(0),r("div",{staticClass:"jic-value"},[r("el-form",{ref:"form",attrs:{model:t.form,"label-width":"105px"}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"任务名称"}},[r("el-input",{staticStyle:{width:"220px"},attrs:{placeholder:"请输入任务名称"},model:{value:t.form.taskName,callback:function(e){t.$set(t.form,"taskName",e)},expression:"form.taskName"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"模板名称"}},[r("el-input",{staticStyle:{width:"220px"},attrs:{disabled:!0,placeholder:"点击右侧选择"},model:{value:t.form.templatename,callback:function(e){t.$set(t.form,"templatename",e)},expression:"form.templatename"}})],1)],1),r("el-col",{attrs:{span:4}},[r("el-button",{attrs:{type:"primary",icon:"el-icon-edit",circle:""},on:{click:function(e){t.drawermb=!0}}})],1)],1),r("el-form-item",{attrs:{label:"任务描述"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入任务描述"},model:{value:t.form.taskDesc,callback:function(e){t.$set(t.form,"taskDesc",e)},expression:"form.taskDesc"}})],1),r("el-form-item",{attrs:{label:"发送设置:"}},[r("el-radio-group",{model:{value:t.form.sendType,callback:function(e){t.$set(t.form,"sendType",e)},expression:"form.sendType"}},[r("el-radio",{attrs:{label:1}},[t._v("时间段发送")]),r("el-radio",{attrs:{label:3}},[t._v("时间点发送")]),r("el-radio",{attrs:{label:2}},[t._v("即刻发送")])],1)],1),1==t.form.sendType?r("el-form-item",{attrs:{label:"发送日期:"}},[r("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:t.changeTimeday},model:{value:t.daytime,callback:function(e){t.daytime=e},expression:"daytime"}})],1):t._e(),3==t.form.sendType?r("el-form-item",{attrs:{label:"发送时间点:"}},[r("div",{staticStyle:{display:"flex"}},[r("div",{staticStyle:{"margin-right":"10px"}},[r("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择日期时间"},on:{change:t.Totaldate},model:{value:t.time4,callback:function(e){t.time4=e},expression:"time4"}})],1)])]):t._e(),1==t.form.sendType?r("el-form-item",{attrs:{label:"发送时间段:"}},[r("div",{staticStyle:{display:"flex"}},[r("div",{staticStyle:{"margin-right":"10px"}},[r("span",{staticStyle:{"font-size":"18px","margin-right":"10px"}},[t._v("时间段一")]),r("el-time-picker",{attrs:{"is-range":"","arrow-control":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围","value-format":"HH:mm:ss"},on:{change:t.changeTime},model:{value:t.time1,callback:function(e){t.time1=e},expression:"time1"}})],1),r("div",{staticStyle:{"margin-right":"10px"}},[r("span",{staticStyle:{"font-size":"18px","margin-right":"10px"}},[t._v("时间段二")]),r("el-time-picker",{attrs:{"is-range":"","arrow-control":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围","value-format":"HH:mm:ss"},on:{change:t.changeTime},model:{value:t.time2,callback:function(e){t.time2=e},expression:"time2"}})],1),r("div",{staticStyle:{"margin-right":"10px"}},[r("span",{staticStyle:{"font-size":"18px","margin-right":"10px"}},[t._v("时间段三")]),r("el-time-picker",{attrs:{"is-range":"","arrow-control":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围","value-format":"HH:mm:ss"},on:{change:t.changeTime},model:{value:t.time3,callback:function(e){t.time3=e},expression:"time3"}})],1)])]):t._e(),r("el-form-item",{attrs:{label:"服务形式"}},[r("el-checkbox-group",{model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},t._l(t.checkboxlist,(function(e,a){return r("el-checkbox",{key:a,attrs:{label:e.value}},[t._v(" "+t._s(e.label))])})),1)],1)],1)],1)]),r("div",{staticClass:"examine-jic"},[t._m(1),r("div",{staticClass:"examine-jic"},[r("div",{staticClass:"jic-value"},[r("el-row",{attrs:{gutter:20}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.variableList}},[r("el-table-column",{attrs:{prop:"name",align:"center",label:"变量名称"}}),r("el-table-column",{attrs:{prop:"value",align:"center",label:"匹配符"}}),r("el-table-column",{attrs:{label:"替换值",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-input",{attrs:{disabled:e.row.default,placeholder:"请输入内容"},model:{value:e.row.fill,callback:function(r){t.$set(e.row,"fill",r)},expression:"scope.row.fill"}})]}}],null,!1,1223025055)}),r("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(r){return t.variableDelete(e.$index,e.row)}}},[t._v("删除")])]}}],null,!1,3648333006)})],1)],1)],1)])])]),r("el-button",{attrs:{type:"success"},on:{click:function(e){return t.nextstep("ruleForm")}}},[t._v(t._s(t.quote?"立即创建":"任务详情配置"))]),r("el-button",{on:{click:function(e){return t.resetForm("ruleForm")}}},[t._v("重置")])],1):t._e(),2==t.Editprogress?r("div",[r("el-alert",{attrs:{title:"在本阶段选择随访病人",type:"success",effect:"dark"}}),r("div",{staticClass:"leftvlue-jbxx"},[r("div",{staticClass:"examine-jic"},[t._m(2),r("div",{staticClass:"examine-jic"},[r("div",{staticClass:"jic-value"},[r("el-row",{attrs:{gutter:20}},[r("el-row",{staticClass:"mb8",attrs:{gutter:10}},[r("el-col",{attrs:{span:1.5}},[r("el-select",{attrs:{placeholder:"请选择新增类型"},model:{value:t.patientqueryParams.allhosp,callback:function(e){t.$set(t.patientqueryParams,"allhosp",e)},expression:"patientqueryParams.allhosp"}},t._l(t.taskoptions,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),r("el-col",{attrs:{span:1.5}},[r("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"medium",disabled:!t.patientqueryParams.allhosp},on:{click:t.handleAddpatient}},[t._v("新增")])],1),r("el-col",{attrs:{span:1.5}},[r("el-button",{attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"medium",disabled:t.multiple},on:{click:t.handleDelete}},[t._v("删除")])],1)],1),r("SFtable",{attrs:{currentList:t.overallCase,tableLabel:t.tableLabelhz,serialnumber:!1,searchTrue:!0,multiplechoice:!1,controlxz:!1,typeinfo:2},on:{details:t.detailhz,handleUpdate:t.handleUpdate}}),r("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.topqueryParams.pageNum,limit:t.topqueryParams.pageSize},on:{"update:page":function(e){return t.$set(t.topqueryParams,"pageNum",e)},"update:limit":function(e){return t.$set(t.topqueryParams,"pageSize",e)},pagination:t.getList}})],1)],1)])])]),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.laststep()}}},[t._v("上一步")]),r("el-button",{attrs:{type:"success"},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v(t._s(t.quote?"立即创建":"确认任务配置"))]),r("el-button",{on:{click:function(e){return t.resetForm("ruleForm")}}},[t._v("重置")])],1):t._e()]),r("el-dialog",{attrs:{title:"选择患者",visible:t.dialogVisiblepatient,width:"70%","before-close":t.handleClosehz,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogVisiblepatient=e}}},[r("div",{staticClass:"examine-jic"},[r("div",{staticClass:"jic-value"},[r("el-row",{attrs:{gutter:20}},[r("el-form",{directives:[{name:"show",rawName:"v-show",value:t.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:t.patientqueryParams,size:"small",inline:!0,"label-width":"98px"}},[r("el-form-item",{attrs:{label:"患者名称:"}},[r("el-input",{nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery(e)}},model:{value:t.patientqueryParams.name,callback:function(e){t.$set(t.patientqueryParams,"name",e)},expression:"patientqueryParams.name"}})],1),r("el-form-item",{attrs:{label:"创建时间"}},[r("el-date-picker",{staticStyle:{width:"240px"},attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"medium"},on:{click:t.handleQuery}},[t._v("搜索")]),r("el-button",{attrs:{icon:"el-icon-refresh",size:"medium"},on:{click:t.resetQuery}},[t._v("重置")])],1)],1),r("SFtable",{ref:"multipleTable",attrs:{currentList:t.patientuserList,tableLabel:t.tableLabelhz,serialnumber:!1,center:!1,typeinfo:3},on:{handleUpdate:t.handleUpdate,handleSelectionChange:t.handleSelectionChange}})],1),r("pagination",{directives:[{name:"show",rawName:"v-show",value:t.patienttotal>0,expression:"patienttotal > 0"}],attrs:{total:t.patienttotal,page:t.patientqueryParams.pageNum,limit:t.patientqueryParams.pageSize},on:{"update:page":function(e){return t.$set(t.patientqueryParams,"pageNum",e)},"update:limit":function(e){return t.$set(t.patientqueryParams,"pageSize",e)},pagination:t.handleAddpatient}})],1)]),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.dialogVisiblepatient=!1}}},[t._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:t.AddDispatchpatients}},[t._v("确定添加")])],1)]),r("el-dialog",{attrs:{title:"模板预览",visible:t.previewtf,width:"60%"},on:{"update:visible":function(e){t.previewtf=e}}},[r("div",{staticClass:"preview-left"},t._l(t.questionList,(function(e,a){return r("div",{key:e.aaa,staticClass:"scriptTopic-dev"},[r("div",{staticClass:"dev-text"},[t._v(" "+t._s(a+1)+"、"),r("span",[t._v(t._s(e.scriptContent))])]),1==e.valueType?r("div",{staticClass:"dev-xx"},[r("el-radio-group",{model:{value:e.radio,callback:function(r){t.$set(e,"radio",r)},expression:"item.radio"}},t._l(e.ivrLibaScriptTargetoptionList,(function(e,a){return r("el-radio",{key:e.id,attrs:{label:e.id}},[t._v(t._s(e.targetvalue)+" ")])})),1)],1):r("div",[r("el-input",{attrs:{type:"textarea",placeholder:"未获取到信息",rows:2},model:{value:e.scriptResult,callback:function(r){t.$set(e,"scriptResult",r)},expression:"item.scriptResult"}})],1)])})),0),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:t.previewGo}},[t._v("前往模板详情修改")]),r("el-button",{attrs:{type:"primary"},on:{click:t.previewFn}},[t._v("确认使用")])],1)]),r("el-drawer",{attrs:{title:"随访内容列表",visible:t.drawermb,direction:"rtl",size:"50%"},on:{"update:visible":function(e){t.drawermb=e}}},[r("div",{staticClass:"headline"}),r("div",{staticClass:"examine-jic"},[r("div",{staticClass:"jic-value"},[r("el-row",{attrs:{gutter:20}},[r("el-form",{directives:[{name:"show",rawName:"v-show",value:t.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:t.topqueryParams,size:"small",inline:!0,"label-width":"98px"}},[r("el-form-item",{attrs:{label:"随访名称"}},[r("el-input",{model:{value:t.topqueryParams.templateName,callback:function(e){t.$set(t.topqueryParams,"templateName",e)},expression:"topqueryParams.templateName"}})],1),r("el-form-item",{attrs:{label:"适用科室",prop:"status"}},[r("el-select",{attrs:{placeholder:"请选择"},model:{value:t.topqueryParams.topicd,callback:function(e){t.$set(t.topqueryParams,"topicd",e)},expression:"topqueryParams.topicd"}},t._l(t.topicoptions,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),r("el-form-item",{attrs:{label:"随访模板分类",prop:"region"}},[r("el-select",{attrs:{size:"medium",filterable:"",placeholder:"请选择分类"},model:{value:t.topqueryParams.assortid,callback:function(e){t.$set(t.topqueryParams,"assortid",e)},expression:"topqueryParams.assortid"}},t._l(t.indexAssortlist,(function(e){return r("el-option-group",{key:e.id,attrs:{label:e.indexAssortName}},t._l(e.ivrLibaTemplateAssortList,(function(t){return r("el-option",{key:t.id,attrs:{label:t.indexAssortName,value:t.id}})})),1)})),1)],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"medium"},on:{click:t.handleQuery}},[t._v("搜索")]),r("el-button",{attrs:{icon:"el-icon-refresh",size:"medium"},on:{click:t.resetQuery}},[t._v("重置")])],1)],1),r("el-divider"),r("SFtable",{attrs:{currentList:t.userList,tableLabel:t.tableLabel,controlsc:!1,multiplechoice:!1,typeinfo:1},on:{selectfn:t.selectfn}}),r("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.topqueryParams.pageNum,limit:t.topqueryParams.pageSize},on:{"update:page":function(e){return t.$set(t.topqueryParams,"pageNum",e)},"update:limit":function(e){return t.$set(t.topqueryParams,"pageSize",e)},pagination:t.Acquisitiontype}})],1)],1)])])],1)},n=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"headline"},[r("div",[t._v("基础信息")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"headline"},[r("div",[t._v("变量匹配量参")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"headline"},[r("div",[t._v("患者列表")])])}],o=(r("618d"),r("296d"),r("9364"),r("9c42"),r("a76c"),r("7103"),r("fb51"),r("2f82"),r("6678"),r("a5a2"),r("e4d7"),r("6e70"),r("f24b"),r("9493"),r("c33f"),r("21b9"),r("4a55"),r("e795"),r("cfee"),r("46e6"),r("aad4"),r("958b"),r("4360"),r("40d6")),i=r("fcb7"),s=r("9dd6"),l={name:"serviceDetailsa",data:function(){var t=new Date,e=new Date;return e.setDate(t.getDate()-7),{title:"随访内容列表",currenttype:1,id:"",previewid:"",libName:"",overallCase:[],dateRange:[e,t],allpids:[],libId:null,nhh:null,Editprogress:1,drawermb:!1,previewtf:!1,loading:!1,patientloading:!1,dialogVisiblepatient:!1,radio:1,checkboxlist:[],tableLabel:[],questionList:[],tableLabelhz:[{label:"患者名称",width:"",prop:"name"},{label:"性别",width:"",prop:"sex"},{label:"年龄",width:"",prop:"age"},{label:"就诊科室",width:"",prop:"deptName"},{label:"入院日期",width:"",prop:"birthdate"},{label:"创建人(缺)",width:"",prop:"update_by"}],tableLabelmz:[{label:"随访名称",width:"",prop:"templateName"},{label:"主要内容",width:"",prop:"note"},{label:"修改日期",width:"",prop:"updateTime"},{label:"创建人(缺)",width:"",prop:"updateBy"}],preachform:[{label:"线下",value:1},{label:"电话",value:2},{label:"小程序",value:3},{label:"短信",value:4},{label:"微信公众",value:5},{label:"钉钉",value:6},{label:"智能机器人",value:7}],daytime:[],applydaytime:[],time1:"",time2:"",time3:"",time4:"",topqueryParams:{pageNum:1,pageSize:10},checkList:[],deliverytopqueryParams:{pageNum:1,pageSize:10},patientqueryParams:{pageNum:1,pageSize:10},topicoptions:[{children:[{children:[]}]}],showSearch:!0,total:0,sontotal:0,patienttotal:0,ids:[],single:!0,multiple:!0,userList:[],patientuserList:[],sonuserList:[],delvariableList:[],indexAssortlist:[],variableList:[{name:"姓名",value:"${name}",fill:"派发时自动匹配",default:!0},{name:"地址",value:"${dzz}",fill:"派发时自动匹配",default:!0},{name:"电话",value:"${dhh}",fill:"派发时自动匹配",default:!0}],transitionList:[{name:"姓名",value:"${name}",fill:"派发时自动匹配",default:!0},{name:"地址",value:"${dzz}",fill:"派发时自动匹配",default:!0},{name:"电话",value:"${dhh}",fill:"派发时自动匹配",default:!0}],variableListTime:[],tasktopic:null,SelectPatientslist:[],form:{patTaskRelevances:[],sendType:1,templatename:"",templateid:null,libtemplateid:null},taskoptions:[{value:"1",label:"出院病人"},{value:"2",label:"门诊病人"},{value:"3",label:"体检病人"}],quote:!1,serviceType:null}},components:{SFtable:s["a"]},created:function(){this.id=this.$route.query.id,this.form.type=this.$route.query.type,this.serviceType=Number(this.$route.query.serviceType),this.form.serviceType=Number(this.$route.query.serviceType),this.form.nhh=this.$route.query.nhh,this.Acquisitiontype(),this.Getdetails()},methods:{convertFormat1ToFormat2:function(t){var e=[];for(var r in t){var a=Object.keys(t[r])[0];e.push({name:r,value:a,fill:t[r][a]})}return e},convertFormat2ToFormat1:function(t){var e={};return t.forEach((function(t){var r={};r[t.value]=t.fill,e[t.name]=r})),e},Acquisitiontype:function(){var t=this,e={pageNum:this.topqueryParams.pageNum,pageSize:this.topqueryParams.pageSize,isavailable:""};this.currenttype=this.$route.query.type,this.title="随访内容列表",this.tableLabel=this.tableLabelmz,2==this.form.serviceType||3==this.form.serviceType?this.checkboxlist=[{value:"1",label:"人工"},{value:"3",label:"电话"},{value:"4",label:"短信"},{value:"5",label:"微信公众号"},{value:"6",label:"微信小程序"},{value:"8",label:"智能机器人"}]:5==this.form.serviceType&&(this.checkboxlist=[{value:"3",label:"电话"},{value:"4",label:"短信"},{value:"5",label:"微信公众号"},{value:"6",label:"微信小程序"},{value:"8",label:"智能机器人"}]),Object(o["xb"])(e).then((function(e){t.userList=e.rows,t.total=e.total}))},nextstep:function(){if(this.Editprogress<=3)return this.Editprogress++},submitForm:function(t){var e=this;if(this.form.preachform=this.checkList.join(","),this.form.patTaskRelevances[0]){var r=this.variableList.filter((function(t){return"姓名"!==t.name&&"电话"!==t.name&&"地址"!==t.name}));console.log(r,"存前变量"),this.form.textParam=this.convertFormat2ToFormat1(r),this.form.taskid?this.form.isoperation=2:this.form.isoperation=1,this.form.serviceType=this.serviceType,Object(o["d"])(this.form).then((function(t){200==t.code&&(e.form.taskid?e.$modal.msgSuccess("新增成功"):e.$modal.msgSuccess("修改成功"),e.$router.push({path:"/followvisit/tasklist",query:{tasktopic:e.form.serviceType}}))}))}else this.$modal.msgError("请选择病人")},selectfn:function(t,e){var r=this;console.log(t,"选择模板"),this.libName=t.templateName,this.libId=t.id,Object(o["gc"])({id:t.id}).then((function(t){if(200==t.code){r.Tasktemplate=t.data;var e=t.data;r.questionList=e.ivrLibaTemplateScriptVOList,r.previewtf=!0,r.previewid=e.id,console.log(r.questionList,"questionList"),r.Variablehandling(e.ivrLibaTemplateScriptVOList,1)}}))},Variablehandling:function(t,e){var r=[];if(this.variableList=[],1==e){console.log(t),t.forEach((function(t){console.log(JSON.parse(t.otherdata),"ss"),JSON.parse(t.otherdata).forEach((function(t){1!=t.default&&r.push({value:t.variate,fill:"",name:t.variatename})}))}));var a=r.filter((function(t,e,r){return e===r.findIndex((function(e){return e.name===t.name&&e.value===t.value}))}));this.variableList=this.transitionList.concat(a),console.log(this.variableList,"variableList")}},handleAddpatient:function(t){var e=this;console.log(this.overallCase,"ssaaa"),this.allpids=[],this.overallCase.forEach((function(t){e.allpids.push(t.patid)})),1==this.patientqueryParams.allhosp?this.tableLabelhz=[{label:"患者名称",width:"",prop:"name"},{label:"性别",width:"",prop:"sex"},{label:"年龄",width:"",prop:"age"},{label:"主任医师",width:"",prop:"drname"},{label:"就诊科室",width:"",prop:"deptName"},{label:"入院日期",width:"",prop:"birthdate"},{label:"创建人",width:"",prop:"createBy"}]:2==this.patientqueryParams.allhosp&&(this.tableLabelhz=[{label:"患者名称",width:"",prop:"name"},{label:"性别",width:"",prop:"sex"},{label:"年龄",width:"",prop:"age"},{label:"诊断",width:"",prop:"diagname"},{label:"就诊科室",width:"",prop:"deptName"},{label:"入院日期",width:"",prop:"birthdate"},{label:"创建人",width:"",prop:"createBy"}]),this.allpids[0]?(this.patientqueryParams.pids=this.allpids,console.log(this.patientqueryParams.pids)):this.patientqueryParams.pids=null,Object(o["Jb"])(this.addDateRange(this.patientqueryParams,this.dateRange)).then((function(t){e.patientuserList=t.rows,e.patienttotal=t.total,e.loading=!1,e.Restorecheck()})),this.dialogVisiblepatient=!0},handleUpdate:function(){},handleDelete:function(){},handleExport:function(){},handlePitchionChange:function(){},handleSelectionChange:function(t){var e=this;console.log("多选患者"),this.SelectPatientslist=t,this.multiple=!t.length,this.SelectPatientslist.forEach((function(t){var r=e.overallCase.find((function(e){return e.name==t.name}));r||(console.log(e.patientqueryParams.allhosp,"allhosp"),t.isoperation=1,t.patid=t.id,t.hospType=e.patientqueryParams.allhosp,e.overallCase.push(t),e.form.patTaskRelevances.push(t),console.log(e.overallCase,"this.overallCase"))}))},Restorecheck:function(){console.log(this.overallCase,"this.overallCase");var t=this.overallCase.map((function(t){return t.id})),e=this.patientuserList.filter((function(e){return t.includes(e.id)}));console.log(e,"overlap"),this.SelectPatientslist=e,console.log(this.SelectPatientslist,"进入分页SelectPatientslist"),this.toggleSelection(e)},toggleSelection:function(t){var e=this;t?(this.decision=!0,this.$nextTick((function(){t.forEach((function(t){e.$refs.multipleTable.toggleRowSelection(t,!0)})),e.decision=!1})),console.log(123)):this.$refs.multipleTable.clearSelection()},detailhz:function(t,e){var r=this;this.$modal.confirm('是否确认删除患者"'+t.name+'"的服务项?').then((function(){var e=r.overallCase.indexOf(t),a=r.form.patTaskRelevances.indexOf(t);r.overallCase.splice(e,1),r.form.patTaskRelevances[a].isoperation=3,r.$modal.msgSuccess("删除成功")}))},getList:function(){},handleQuery:function(){this.handleAddpatient()},resetQuery:function(){this.dateRange=[],this.queryParams={pageNum:1,pageSize:10,userName:void 0,phonenumber:void 0,status:void 0,deptId:void 0}},handleClosehz:function(){this.dialogVisiblepatient=!1},laststep:function(){this.Editprogress--},resetForm:function(t){this.$refs[t].resetFields()},PreviewTemplate:function(){},Acknowledgereference:function(){this.quote=!0},Getdetails:function(){var t=this;this.id&&Object(o["Fb"])({taskid:this.id}).then((function(e){var r="";console.log(2233),200==e.code?(t.form=e.data,t.form.serviceType=t.serviceType,t.overallCase=t.form.patTaskRelevances.concat(),t.checkList=t.form.preachform.split(","),console.log(t.form.showDate,"this.form"),t.daytime=t.form.showDate.split(","),t.changeTimeday(t.daytime),t.form.showTimeMorn&&(3==t.form.sendType?t.time4=t.form.showTimeMorn:t.time1=t.form.showTimeMorn.split(",")),t.form.showTimeNoon&&(t.time2=t.form.showTimeNoon.split(",")),t.form.showTimeNight&&(t.time3=t.form.showTimeNight.split(",")),console.log(1122),r=t.convertFormat1ToFormat2(t.form.textParam),t.variableList=t.transitionList.concat(r)):t.$modal.msgError(e.code)})),Object(o["wb"])({}).then((function(e){t.indexAssortlist=e.rows}))},listDept:function(){var t=this;Object(i["d"])().then((function(e){t.topicoptions=t.handleTree(e.data,"deptId"),console.log(t.topicoptions,"topicoptions")}))},AddDispatchpatients:function(){this.dialogVisiblepatient=!1},variableDelete:function(t,e){this.variableList.splice(t,1),e.isoperation=3,this.delvariableList.push(e),console.log(t,e)},changeTime:function(t){console.log(t,"时间"),this.processingTime()},Totaldate:function(t){console.log(t,"时间"),this.form.sendTimeslot=[{begantime:t,endtime:t,xh:1}],this.form.showTimeMorn=t,console.log(this.form.sendTimeslot,"时间")},changeTimeday:function(t){console.log(t,"日期");var e=new Date(t[0]),r=new Date(t[1]);this.applydaytime=this.getDates(e,r),top||this.processingTime()},getDates:function(t,e){var r=[],a=new Date(t);while(a<=e)r.push(this.$moment(a).format("YYYY-MM-DD")),a.setDate(a.getDate()+1);return r},processingTime:function(){var t=[],e=1;if(this.time3[0])e=3;else if(this.time2[0])e=2;else{if(!this.time1[0])return;e=1}for(var r=0;r<this.applydaytime.length;r++)t.push({begantime:"".concat(this.applydaytime[r]," ").concat(this.time1[0]),endtime:"".concat(this.applydaytime[r]," ").concat(this.time1[1]),xh:e*r+1}),e>=2&&t.push({begantime:"".concat(this.applydaytime[r]," ").concat(this.time2[0]),endtime:"".concat(this.applydaytime[r]," ").concat(this.time2[1]),xh:e*r+2}),e>=3&&t.push({begantime:"".concat(this.applydaytime[r]," ").concat(this.time3[0]),endtime:"".concat(this.applydaytime[r]," ").concat(this.time3[1]),xh:e*r+3});this.form.sendTimeslot=t,console.log(this.daytime),this.form.showDate=this.daytime.join(","),this.time1&&(this.form.showTimeMorn=this.time1.join(",")),this.time2&&(this.form.showTimeNoon=this.time2.join(",")),this.time3&&(this.form.showTimeNight=this.time3.join(",")),console.log(t,"combinedData")},previewGo:function(){this.$router.push({path:"/knowledge/tpuconfigurat/",query:{id:this.previewid,task:!0,data:this.form}})},previewFn:function(){var t=this,e=this.Tasktemplate.id;this.Tasktemplate.id=null,this.Tasktemplate.ivrLibaTemplateScriptVOList.forEach((function(t){t.ivrTaskScriptTargetoptionList=t.ivrLibaScriptTargetoptionList})),console.log(this.Tasktemplate.ivrLibaTemplateScriptVOList),this.Tasktemplate.ivrTaskTemplateScriptVOList=this.Tasktemplate.ivrLibaTemplateScriptVOList,this.Tasktemplate.ivrLibaTemplateTagList=null,this.Tasktemplate.tempDetpRelevances=null,this.Tasktemplate.libtemplateid=e,this.Tasktemplate.isoperation=1,this.Tasktemplate.libtemplatename=this.Tasktemplate.templatename,console.log(this.libName,this.libId),Object(o["n"])(this.Tasktemplate).then((function(e){console.log(e),t.previewtf=!1,t.form.templateid=e.data,t.form.libtemplateid=t.libId,t.form.templatename=t.libName,console.log(t.form.templatename,"ss"),t.$modal.msgSuccess("选择模板成功",t.form.templatename)}))},formatFn:function(t){var e=this;console.log(this.preachform,"preachform"),console.log(this.checkList,"checklist");var r=[],a=[];1==t?(this.preachform.forEach((function(t){e.checkList.forEach((function(e){t.label==e&&r.push(t.value)}))})),this.form.preachform=r.join(",")):(console.log(this.form.preachform,"this.form.preachform"),a=this.form.preachform.split(","),console.log(11),this.preachform.forEach((function(t){a.forEach((function(e){t.value==e&&r.push(t.label)}))})),this.checkList=r)}}},u=l,c=(r("31ab"),r("1805")),d=Object(c["a"])(u,a,n,!1,null,"73797f0e",null);e["default"]=d.exports},eef8:function(t,e,r){"use strict";var a=r("ba03"),n=r("1d9b"),o=r("4e61");t.exports=function(t){var e=a(this),r=o(e),i=arguments.length,s=n(i>1?arguments[1]:void 0,r),l=i>2?arguments[2]:void 0,u=void 0===l?r:n(l,r);while(u>s)e[s++]=t;return e}},fcb7:function(t,e,r){"use strict";r.d(e,"d",(function(){return n})),r.d(e,"e",(function(){return o})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return s})),r.d(e,"f",(function(){return l})),r.d(e,"b",(function(){return u}));var a=r("b775");function n(t){return Object(a["a"])({url:"/system/dept/list",method:"get",params:t})}function o(t){return Object(a["a"])({url:"/system/dept/list/exclude/"+t,method:"get"})}function i(t){return Object(a["a"])({url:"/system/dept/getInfo/"+t,method:"get"})}function s(t){return Object(a["a"])({url:"/system/dept",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/system/dept/edit",method:"post",data:t})}function u(t){return Object(a["a"])({url:"/system/dept/remove/"+t,method:"get"})}}}]);
|