(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7d500420","chunk-41a1c5e1"],{"296d":function(t,e,r){"use strict";var a=r("037d"),i=r("eef8"),o=r("f7a3");a({target:"Array",proto:!0},{fill:i}),o("fill")},"40d6":function(t,e,r){"use strict";r.d(e,"dc",(function(){return i})),r.d(e,"ec",(function(){return o})),r.d(e,"i",(function(){return s})),r.d(e,"V",(function(){return n})),r.d(e,"Vb",(function(){return l})),r.d(e,"kc",(function(){return c})),r.d(e,"Nb",(function(){return u})),r.d(e,"Ub",(function(){return d})),r.d(e,"D",(function(){return p})),r.d(e,"gb",(function(){return m})),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 y})),r.d(e,"zc",(function(){return g})),r.d(e,"ic",(function(){return j})),r.d(e,"hb",(function(){return k})),r.d(e,"K",(function(){return w})),r.d(e,"hc",(function(){return O})),r.d(e,"L",(function(){return T})),r.d(e,"u",(function(){return x})),r.d(e,"S",(function(){return S})),r.d(e,"Mb",(function(){return L})),r.d(e,"xb",(function(){return q})),r.d(e,"O",(function(){return C})),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 D})),r.d(e,"N",(function(){return z})),r.d(e,"wb",(function(){return A})),r.d(e,"o",(function(){return I})),r.d(e,"U",(function(){return E})),r.d(e,"Ib",(function(){return F})),r.d(e,"Rb",(function(){return V})),r.d(e,"X",(function(){return R})),r.d(e,"Qb",(function(){return W})),r.d(e,"v",(function(){return B})),r.d(e,"nb",(function(){return Q})),r.d(e,"w",(function(){return M})),r.d(e,"W",(function(){return U})),r.d(e,"Pb",(function(){return H})),r.d(e,"Sb",(function(){return J})),r.d(e,"Y",(function(){return Y})),r.d(e,"x",(function(){return G})),r.d(e,"ob",(function(){return K})),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 it})),r.d(e,"Z",(function(){return ot})),r.d(e,"Tb",(function(){return st})),r.d(e,"Bb",(function(){return nt})),r.d(e,"wc",(function(){return lt})),r.d(e,"Ab",(function(){return ct})),r.d(e,"Q",(function(){return ut})),r.d(e,"H",(function(){return dt})),r.d(e,"s",(function(){return pt})),r.d(e,"mb",(function(){return mt})),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 yt})),r.d(e,"Gb",(function(){return gt})),r.d(e,"ib",(function(){return jt})),r.d(e,"kb",(function(){return kt})),r.d(e,"tc",(function(){return wt})),r.d(e,"jb",(function(){return Ot})),r.d(e,"sc",(function(){return Tt})),r.d(e,"vc",(function(){return xt})),r.d(e,"yc",(function(){return St})),r.d(e,"uc",(function(){return Lt})),r.d(e,"xc",(function(){return qt})),r.d(e,"rc",(function(){return Ct})),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 Dt})),r.d(e,"qb",(function(){return zt})),r.d(e,"bb",(function(){return At})),r.d(e,"Wb",(function(){return It})),r.d(e,"mc",(function(){return Et})),r.d(e,"ab",(function(){return Ft})),r.d(e,"Jb",(function(){return Vt})),r.d(e,"Kb",(function(){return Rt})),r.d(e,"d",(function(){return Wt})),r.d(e,"e",(function(){return Bt})),r.d(e,"R",(function(){return Qt})),r.d(e,"Hb",(function(){return Mt})),r.d(e,"Fb",(function(){return Ut})),r.d(e,"Lb",(function(){return Ht})),r.d(e,"jc",(function(){return Jt})),r.d(e,"F",(function(){return Yt})),r.d(e,"n",(function(){return Gt})),r.d(e,"m",(function(){return Kt})),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 ie})),r.d(e,"r",(function(){return oe})),r.d(e,"C",(function(){return se})),r.d(e,"t",(function(){return ne})),r.d(e,"M",(function(){return le})),r.d(e,"g",(function(){return ce})),r.d(e,"f",(function(){return ue})),r.d(e,"h",(function(){return de})),r.d(e,"ub",(function(){return pe})),r.d(e,"Ob",(function(){return me})),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 ye})),r.d(e,"B",(function(){return ge})),r.d(e,"Ac",(function(){return je})),r.d(e,"eb",(function(){return ke})),r.d(e,"Cb",(function(){return we})),r.d(e,"nc",(function(){return Oe})),r.d(e,"p",(function(){return Te})),r.d(e,"b",(function(){return xe})),r.d(e,"c",(function(){return Se}));var a=r("b775");function i(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 s(t){return Object(a["a"])({url:"/smartor/serviceSubtaskDetail/countPatByTarget/"+t,method:"get"})}function n(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 c(t){return Object(a["a"])({url:"/smartor/icd10/getInfo/"+t,method:"get"})}function u(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 p(t){return Object(a["a"])({url:"/smartor/outicd10/add",method:"post",data:t})}function m(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 y(t){return Object(a["a"])({url:"/smartor/target/list",method:"post",data:t})}function g(t){return Object(a["a"])({url:"/smartor/target/targetQuesMate",method:"post",data:t})}function j(t){return Object(a["a"])({url:"/smartor/script/list",method:"post",data:t})}function k(t){return Object(a["a"])({url:"/smartor/script/remove/"+t,method:"get"})}function w(t){return Object(a["a"])({url:"/smartor/script/saveOrUpdateScript",method:"post",data:t})}function O(t){return Object(a["a"])({url:"/smartor/script/selectInfoByCondition",method:"post",data:t})}function T(t){return Object(a["a"])({url:"/smartor/scriptassort/edit",method:"post",data:t})}function x(t){return Object(a["a"])({url:"/smartor/scriptassort/addtree",method:"post",data:t})}function S(t){return Object(a["a"])({url:"/smartor/scriptassort/remove/"+t,method:"get"})}function L(t){return Object(a["a"])({url:"/smartor/scriptassort/selectIvrLibaScriptAssortList",method:"post",data:t})}function q(t){return Object(a["a"])({url:"/smartor/template/list",method:"post",data:t})}function C(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 D(t){return Object(a["a"])({url:"/smartor/templateassort/edit",method:"post",data:t})}function z(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 E(t){return Object(a["a"])({url:"/smartor/ivrTaskTemplate/remove/"+t,method:"get"})}function F(t){return Object(a["a"])({url:"/smartor/ivrTaskTemplate/getInfo/"+t,method:"get"})}function V(t){return Object(a["a"])({url:"/smartor/extemplate/list",method:"post",data:t})}function R(t){return Object(a["a"])({url:"/smartor/extemplate/remove/"+t,method:"get"})}function W(t){return Object(a["a"])({url:"/smartor/extemplate/"+t,method:"get"})}function B(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 M(t){return Object(a["a"])({url:"/smartor/category/add",method:"post",data:t})}function U(t){return Object(a["a"])({url:"/smartor/category/remove/"+t,method:"get"})}function H(t){return Object(a["a"])({url:"/smartor/category/list",method:"post",data:t})}function J(t){return Object(a["a"])({url:"/smartor/extemplatescript/list",method:"post",data:t})}function Y(t){return Object(a["a"])({url:"/smartor/extemplatescript/remove/"+t,method:"get"})}function G(t){return Object(a["a"])({url:"/smartor/extemplatescript/add",method:"post",data:t})}function K(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 it(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 st(t){return Object(a["a"])({url:"/smartor/heLibraryAssort/selectHeLibraryAssortList",method:"post",data:t})}r("b8cc");function nt(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 ct(t){return Object(a["a"])({url:"/smartor/svyLibTemplate/list",method:"get",params:t})}function ut(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 pt(t){return Object(a["a"])({url:"/smartor/svyLibTemplateCategory/addtree",method:"post",data:t})}function mt(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 yt(t){return Object(a["a"])({url:"/smartor/svytemplateTask/remove/"+t,method:"get"})}function gt(t){return Object(a["a"])({url:"/smartor/svytemplateTask/"+t,method:"get"})}function jt(t){return Object(a["a"])({url:"/smartor/td/add",method:"post",data:t})}function kt(t){return Object(a["a"])({url:"/smartor/td/list",method:"get",params:t})}function wt(t){return Object(a["a"])({url:"/smartor/taskdept/list",method:"post",data:t})}function Ot(t){return Object(a["a"])({url:"/smartor/td/remove/"+t,method:"get"})}function Tt(t){return Object(a["a"])({url:"/smartor/taskdept/remove/"+t,method:"get"})}function xt(t){return Object(a["a"])({url:"/smartor/taskdiag/remove/".concat(t),method:"get"})}function St(t){return Object(a["a"])({url:"/smartor/taskoper/remove/".concat(t),method:"get"})}function Lt(t){return Object(a["a"])({url:"/smartor/taskdiag/list",method:"post",data:t})}function qt(t){return Object(a["a"])({url:"/smartor/taskoper/list",method:"post",data:t})}function Ct(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 Dt(t){return Object(a["a"])({url:"/smartor/svyLibScriptCategory/addtree",method:"post",data:t})}function zt(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 Et(t){return Object(a["a"])({url:"/smartor/serviceExternal/query360PatInfo",method:"post",data:t})}function Ft(t){return Object(a["a"])({url:"/smartor/serviceSubtask/remove/"+t,method:"get"})}function Vt(t){return Object(a["a"])({url:"/smartor/patarchive/getPatientInfo",method:"post",data:t})}function Rt(t){return Object(a["a"])({url:"/smartor/patarchive/getPatientInfoQC",method:"post",data:t})}function Wt(t){return Object(a["a"])({url:"/smartor/serviceSubtask/insertOrUpdateTask",method:"post",data:t})}function Bt(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 Mt(t){return Object(a["a"])({url:"/smartor/servicetask/list",method:"post",data:t})}function Ut(t){return Object(a["a"])({url:"/smartor/serviceSubtask/queryTaskByCondition",method:"post",data:t})}function Ht(t){return Object(a["a"])({url:"/smartor/serviceSubtask/patItem",method:"post",data:t})}function Jt(t){return Object(a["a"])({url:"/smartor/serviceSubtask/getSubtaskByDiagname",method:"post",data:t})}function Yt(t){return Object(a["a"])({url:"/smartor/serviceSubtask/patItemByCondition",method:"post",data:t})}function Gt(t){return Object(a["a"])({url:"/smartor/ivrTaskTemplate/saveOrUpdateTempScript",method:"post",data:t})}function Kt(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 ie(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 se(t){return Object(a["a"])({url:"/smartor/serviceSubtask/addSubTaskAgain",method:"post",data:t})}function ne(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 ce(t){return Object(a["a"])({url:"/smartor/import/list",method:"post",data:t})}function ue(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 pe(t){return Object(a["a"])({url:"/smartor/patouthosp/selectPatMedOuthospCount",method:"post",data:t})}function me(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 ye(t){return Object(a["a"])({url:"/smartor/satisfaction/list",method:"post",data:t})}function ge(t){return Object(a["a"])({url:"/smartor/satisfaction/batchinsert",method:"post",data:t})}function je(t){return Object(a["a"])({url:"/smartor/satisfaction/edit",method:"post",data:t})}function ke(t){return Object(a["a"])({url:"/smartor/satisfaction/remove/"+t,method:"get"})}function we(t){return Object(a["a"])({url:"/smartor/servicetask/getScriptByCondition",method:"post",data:t})}function Oe(t){return Object(a["a"])({url:"/smartor/subtaskAnswer/saveMYDQuestionAnswer",method:"post",data:t})}function Te(t){return Object(a["a"])({url:"/getDept/"+t,method:"get"})}function xe(){return Object(a["a"])({url:"/smartor/ServiceTelInfo/getList",method:"get",params:{orgid:localStorage.getItem("orgid")}})}function Se(t){return Object(a["a"])({url:"/smartor/ServiceTelInfo/setState",method:"get",params:t})}},"470c":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,rules:t.rules,"label-width":"125px"}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"任务名称",prop:"taskName"}},[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:12}},[r("el-form-item",{attrs:{label:"任务类型"}},[r("el-select",{attrs:{placeholder:"请选择新增类型"},model:{value:t.serviceType,callback:function(e){t.serviceType=e},expression:"serviceType"}},t._l(t.tasktypes,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1)],1),r("el-form-item",{attrs:{label:"任务描述",prop:"taskDesc"}},[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("SortCheckbox",{attrs:{options:t.checkboxlist,initialselectedOrder:t.selectedOrder,"value-key":"value","label-key":"label"},on:{change:t.checkSelectionChange},model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}})],1),r("el-form-item",{attrs:{label:"执行周期",prop:"longTask"}},[r("el-radio-group",{model:{value:t.form.longTask,callback:function(e){t.$set(t.form,"longTask",e)},expression:"form.longTask"}},[r("el-radio",{attrs:{label:0}},[t._v("自定义周期")]),r("el-radio",{attrs:{label:1}},[t._v("长期任务")])],1)],1),t.form.longTask?r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"周期时间",prop:"name"}},[r("el-input",{attrs:{placeholder:"默认5天后"},model:{value:t.form.sendDay,callback:function(e){t.$set(t.form,"sendDay",e)},expression:"form.sendDay"}})],1)],1)],1):t._e(),t.form.longTask?t._e():r("el-form-item",{attrs:{label:"执行设置",prop:"sendType"}},[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||t.form.longTask?t._e():r("el-form-item",{attrs:{label:"执行日期",prop:"daytime"}},[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),3!=t.form.sendType||t.form.longTask?t._e():r("el-form-item",{attrs:{label:"执行时间点",prop:"daytime"}},[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)])]),1!=t.form.sendType||t.form.longTask?t._e():r("el-form-item",{attrs:{label:"执行时间段",prop:"daytime"}},[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)])]),r("el-form-item",{attrs:{label:"任务关联",prop:"longTask"}},[r("el-radio-group",{model:{value:t.form.appltype,callback:function(e){t.$set(t.form,"appltype",e)},expression:"form.appltype"}},[r("el-radio",{attrs:{label:"1"}},[t._v("科室关联")]),r("el-radio",{attrs:{label:"2"}},[t._v("病区关联")]),r("el-radio",{attrs:{label:"3"}},[t._v("疾病关联")]),r("el-radio",{attrs:{label:"4"}},[t._v("手术关联")])],1)],1),1==t.form.appltype?r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"适用科室",prop:"region"}},[r("el-select",{staticStyle:{width:"400px"},attrs:{size:"medium",multiple:"",filterable:"",placeholder:"请选择科室"},on:{"remove-tag":t.removetag},model:{value:t.deptcodesWards,callback:function(e){t.deptcodesWards=e},expression:"deptcodesWards"}},t._l(t.belongDepts,(function(t){return r("el-option",{key:t.deptCode,staticClass:"ruleFormaa",attrs:{label:t.deptName,value:t.deptCode}})})),1)],1)],1)],1):t._e(),2==t.form.appltype?r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"适用病区",prop:"region"}},[r("el-select",{staticStyle:{width:"400px"},attrs:{size:"medium",multiple:"",filterable:"",placeholder:"请选择病区"},on:{"remove-tag":t.removehpsp},model:{value:t.leavehospitaldistrictcodes,callback:function(e){t.leavehospitaldistrictcodes=e},expression:"leavehospitaldistrictcodes"}},t._l(t.belongWards,(function(t){return r("el-option",{key:t.districtCode,staticClass:"ruleFormaa",attrs:{label:t.districtName,value:t.districtCode}})})),1)],1)],1)],1):t._e(),3==t.form.appltype?r("el-row",[r("div",{staticClass:"xinz-infs"},[r("el-form-item",{scopedSlots:t._u([{key:"label",fn:function(){return[r("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:"选择好适用疾病后,可以方便您通过疾病诊断查找到对应的病人!",placement:"top-start"}},[r("i",{staticClass:"el-icon-warning-outline"})])]},proxy:!0}],null,!1,3514719235)},[r("div",{staticStyle:{"margin-bottom":"10px"}},[r("el-button",{attrs:{type:"warning"},on:{click:function(e){return t.$refs.child.handleAddpatient()}}},[t._v("添加疾病诊断")])],1),t._l(t.diagglist,(function(e){return r("el-tag",{key:e.icdcode,attrs:{type:"warning",closable:"","disable-transitions":!1},on:{close:function(r){return t.removediagg(e.icd10code)}}},[t._v(" "+t._s(e.icdname)+" ")])}))],2)],1)]):t._e(),4==t.form.appltype?r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"适用手术",prop:"region"}},[r("el-select",{staticStyle:{width:"400px"},attrs:{"remote-method":t.remoteopcode,size:"medium",multiple:"",filterable:"",remote:"",placeholder:"请选择手术"},on:{"remove-tag":t.removeopera},model:{value:t.operationcodes,callback:function(e){t.operationcodes=e},expression:"operationcodes"}},t._l(t.baseoperaList,(function(t){return r("el-option",{key:t.icdcode,staticClass:"ruleFormaa",attrs:{label:t.icdname,value:t.icdcode}})})),1)],1)],1)],1):t._e(),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"开场白",prop:"kcb"}},[r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入开场白"},model:{value:t.form.kcb,callback:function(e){t.$set(t.form,"kcb",e)},expression:"form.kcb"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"结束语",prop:"jsy"}},[r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入结束语"},model:{value:t.form.jsy,callback:function(e){t.$set(t.form,"jsy",e)},expression:"form.jsy"}})],1)],1)],1)],1)],1)]),r("div",{staticClass:"examine-jic"},[r("div",{staticClass:"headline"},[r("div",[t._v("任务使用模板")]),r("div",{staticStyle:{"margin-left":"20px"}},[r("el-form",{ref:"forms"},[r("el-form-item",{attrs:{label:""}},[r("el-input",{staticStyle:{width:"300px"},attrs:{disabled:!0,placeholder:"请点击右侧选择"},model:{value:t.form.templatename,callback:function(e){t.$set(t.form,"templatename",e)},expression:"form.templatename"}}),t.form.templateid&&1==t.form.sendState||!t.form.templateid?r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit",circle:""},on:{click:function(e){t.drawermb=!0}}}):t._e(),t.form.templateid?r("el-button",{attrs:{type:"success",icon:"el-icon-search",circle:""},on:{click:function(e){return t.previewfnmb()}}}):t._e()],1)],1)],1)]),r("div",{staticClass:"examine-jic"},[r("div",{staticClass:"jic-value"},[r("div",{staticStyle:{"margin-bottom":"10px"}},[t._v("模板中使用的变量:")]),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?"立即创建":"任务详情配置"))])],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(1),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.handleQuery}},[t._v("添加患者")])],1)],1),r("SFtable",{attrs:{currentList:t.overallCase,tableLabel:t.tableLabelhzwb,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:{loading:t.submitLoading,type:"success"},on:{click:function(e){return t.submitForm("11")}}},[t._v(t._s(t.quote?"立即创建":"确认任务配置"))])],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.drname,callback:function(e){t.$set(t.patientqueryParams,"drname",e)},expression:"patientqueryParams.drname"}})],1),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-select",{attrs:{placeholder:"请选择患者范围"},model:{value:t.patientqueryParams.searchscope,callback:function(e){t.$set(t.patientqueryParams,"searchscope",e)},expression:"patientqueryParams.searchscope"}},t._l(t.source,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),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:"70%"},on:{"update:visible":function(e){t.previewtf=e}}},[r("el-tabs",{attrs:{type:"border-card"}},[r("el-tab-pane",{attrs:{label:"模板基础数据"}},[r("div",{staticClass:"preview-left"},[r("el-form",{staticClass:"demo-objyl",attrs:{model:t.objyl,"label-width":"100px"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:14}},[r("el-form-item",{attrs:{label:"随访分类",prop:"assortid"}},[r("el-select",{attrs:{size:"medium",filterable:"",placeholder:"请选择分类"},model:{value:t.objyl.assortid,callback:function(e){t.$set(t.objyl,"assortid",e)},expression:"objyl.assortid"}},t._l(t.optionsclass,(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)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:14}},[r("el-form-item",{attrs:{label:"可用状态",prop:"isenable"}},[r("el-radio-group",{model:{value:t.objyl.isenable,callback:function(e){t.$set(t.objyl,"isenable",e)},expression:"objyl.isenable"}},t._l(t.usable,(function(e,a){return r("el-radio",{attrs:{label:e.value}},[t._v(t._s(e.label))])})),1)],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"版本号",prop:"name"}},[r("el-input",{attrs:{placeholder:"默认1.0"},model:{value:t.objyl.version,callback:function(e){t.$set(t.objyl,"version",e)},expression:"objyl.version"}})],1)],1)],1),r("el-form-item",{attrs:{label:"随访标题",prop:"templateName"}},[r("div",{staticStyle:{width:"400px"}},[r("el-input",{model:{value:t.objyl.templateName,callback:function(e){t.$set(t.objyl,"templateName",e)},expression:"objyl.templateName"}})],1)]),r("div",{staticClass:"xinz-infs"},[r("el-form-item",{scopedSlots:t._u([{key:"label",fn:function(){return[t._v(" 适用疾病 "),r("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:"选择好适用疾病后,可以方便您通过疾病诊断查找到对应的病人!",placement:"top-start"}},[r("i",{staticClass:"el-icon-warning-outline"})])]},proxy:!0}])},t._l(t.illnesslist,(function(e){return r("el-tag",{key:e.icdid,attrs:{type:"warning","disable-transitions":!1}},[t._v(" "+t._s(e.icdname)+" ")])})),1)],1),r("el-form-item",{attrs:{label:"随访描述",prop:"description"}},[r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入内容"},model:{value:t.objyl.description,callback:function(e){t.$set(t.objyl,"description",e)},expression:"objyl.description"}})],1),r("el-form-item",{attrs:{label:"随访结束语",prop:"conclusion"}},[r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入内容"},model:{value:t.objyl.conclusion,callback:function(e){t.$set(t.objyl,"conclusion",e)},expression:"objyl.conclusion"}})],1)],1)],1)]),r("el-tab-pane",{attrs:{label:"问题展示"}},[r("div",{staticClass:"preview-left"},t._l(t.questionList,(function(e){return r("div",[1==e.scriptType?r("div",{key:e.sort,staticClass:"scriptTopic-dev"},[r("div",{staticClass:"dev-text"},[t._v(" "+t._s(e.sort)+"、[单选]"),r("span",[t._v(t._s(e.scriptContent))])]),r("div",{staticClass:"dev-xx"},[r("el-radio-group",{model:{value:e.remark,callback:function(r){t.$set(e,"remark",r)},expression:"item.remark"}},t._l(e.ivrTaskScriptTargetoptionList,(function(e,a){return r("el-radio",{key:a,attrs:{label:a}},[t._v(t._s(e.targetvalue))])})),1)],1)]):t._e(),2==e.scriptType?r("div",{key:e.sort,staticClass:"scriptTopic-dev"},[r("div",{staticClass:"dev-text"},[t._v(" "+t._s(e.sort)+"、[多选]"),r("span",[t._v(t._s(e.scriptContent))])]),r("div",{staticClass:"dev-xx"},[r("el-checkbox-group",{model:{value:t.qremark,callback:function(e){t.qremark=e},expression:"qremark"}},t._l(e.ivrTaskScriptTargetoptionList,(function(e,a){return r("el-checkbox",{key:a,attrs:{label:a}},[t._v(" "+t._s(e.targetvalue)+" ")])})),1)],1)]):t._e(),4==e.scriptType?r("div",{key:e.sort,staticClass:"scriptTopic-dev"},[r("div",{staticClass:"dev-text"},[t._v(" "+t._s(e.sort)+"、[问答]"),r("span",[t._v(t._s(e.scriptContent))])]),r("div",{staticClass:"dev-xx"},[r("el-input",{attrs:{placeholder:"请输入答案",clearable:""},model:{value:e.radioas,callback:function(r){t.$set(e,"radioas",r)},expression:"item.radioas"}})],1)]):t._e()])})),0)])],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t.form.templateid&&1==t.form.sendState||!t.form.templateid?r("el-button",{attrs:{type:"primary"},on:{click:t.Departmenttreatment}},[t._v(t._s(t.form.templateid?"替换使用":"选择使用"))]):t._e(),r("el-button",{attrs:{type:t.previewtftype?"success":"warning"},on:{click:t.Modifytemplate}},[t._v(t._s(t.previewtftype?"前往修改已选择模板":"新增保存并前往修改"))])],1)],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",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"medium"},on:{click:t.handleQuerymb}},[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,serialnumber:!1,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)])]),r("Optional-Form",{ref:"child",attrs:{dialogVisiblepatient:t.dialogVisiblepatientjb,overallCase:t.diagglist},on:{addoption:function(e){t.dialogVisiblepatientjb=!1},kkoption:function(e){t.dialogVisiblepatientjb=!0}}})],1)},i=[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("8ada"),r("a26b"),r("4a55"),r("e795"),r("cfee"),r("a04b"),r("46e6"),r("aad4"),r("f160"),r("8e97"),r("1b56"),r("661f"),r("958b"),r("4360")),s=r("40d6"),n=(r("c0c7"),r("09e5")),l=r("8e23"),c=r("2e36"),u=r("9dd6"),d={name:"particty",data:function(){return{title:"宣教内容列表",currenttype:1,id:"",previewid:"",libName:"",username:"",templateor:!1,submitLoading:!1,objyl:{},overallCase:[],allpids:[],appraiselist:[],optionsclass:[],illnesslist:[],mode:[],libId:null,Editprogress:1,drawermb:!1,previewtf:!1,previewtftype:0,loading:!1,patientloading:!1,dialogVisiblepatient:!1,dialogVisiblepatientjb:!1,deptcodesWards:[],leavehospitaldistrictcodes:[],operationcodes:[],illnesscodes:[],radio:1,checkboxlist:[],tableLabel:[],questionList:[],skip:!1,donorchargeList:[],baseoperaList:[],selectedOrder:[],usable:[{value:"0",label:"可用"},{value:"1",label:"停用"}],required:[{value:"1",label:"必填"},{value:"2",label:"不必填"}],props:{multiple:!0,value:"deptCode",label:"deptName"},propstask:{value:"deptCode",label:"deptName"},tableLabelhz:[{label:"出院日期",width:"150",prop:"inhosptime"},{label:"患者",width:"",prop:"name"},{label:"身份证",width:"200",prop:"idcardno"},{label:"电话号码",width:"180",prop:"telcode"},{label:"性别",width:"",prop:"sex"},{label:"年龄",width:"",prop:"age"},{label:"电话",width:"180",prop:"telcode"},{label:"责任护士",width:"",prop:"nurseName"},{label:"主治医生",width:"",prop:"drname"},{label:"科室",width:"240",prop:"dept"},{label:"病区",width:"240",prop:"leavehospitaldistrictname"}],tableLabelhzwb:[{label:"出院日期",width:"150",prop:"endtime"},{label:"患者",width:"",prop:"name"},{label:"身份证",width:"200",prop:"sfzh"},{label:"电话号码",width:"180",prop:"telcode"},{label:"性别",width:"",prop:"sex"},{label:"年龄",width:"",prop:"age"},{label:"出院天数",width:"",prop:"endDay"},{label:"责任护士",width:"",prop:"nurseName"},{label:"主治医生",width:"",prop:"drname"},{label:"科室",width:"180",prop:"deptName"},{label:"病区",width:"150",prop:"leavehospitaldistrictname"}],tableLabelwj:[{label:"创建人",width:"",prop:"createBy"},{label:"模板标题",width:"",prop:"templateName"},{label:"随访描述",width:"",prop:"note"},{label:"修改日期",width:"",prop:"updateTime"}],tableLabelvariable:[{label:"变量名称",width:"",prop:"variablename"},{label:"匹配符",width:"",prop:"character"},{label:"替换值",width:"",prop:"Replacementvalue"}],preachform:[{label:"多媒体",value:1},{label:"纸质",value:2},{label:"智能语音",value:3},{label:"短信",value:4},{label:"微信公众号",value:5},{label:"微信小程序",value:6},{label:"支付宝",value:7},{label:"智能小程序",value:8},{label:"钉钉",value:9},{label:"线下(纸质)",value:10},{label:"线上(短信/钉钉的文本、随访链接)",value:11}],daytime:[],applydaytime:[],time1:"",time2:"",time3:"",time4:"",topqueryParams:{pageNum:1,pageSize:10},checkList:[],foncheckList:[],formatvalue:{format1:"",format2:"",format3:""},deliverytopqueryParams:{pageNum:1,pageSize:10},patientqueryParams:{pageNum:1,pageSize:10,topica:1,leaveldeptcodes:[],leavehospitaldistrictcodes:[]},topicoptions:[{children:[{children:[]}]}],showSearch:!0,total:0,sontotal:0,patienttotal:0,ids:[],single:!0,multiple:!0,userList:[],multiplechoice:[],patientuserList:[],sonuserList:[],delvariableList:[],longtype:[{value:0,label:"自定义周期"},{value:1,label:"长期任务"}],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:3,longTask:0,templatename:"",templateid:null,libtemplateid:null,kcb:"亲爱的患者/家属,您好!我们是"+localStorage.getItem("orgname")+"的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,进行本次回访服务。",jsy:"请您注意休息和营养,生活上要劳逸结合,适当锻炼,戒烟限酒,保持心情舒畅,定期复诊。那本次回访内容就到这里,祝您身体健康!"},taskoptions:[{value:"4",label:"出院病人"},{value:"1",label:"在院病人"},{value:"2",label:"门诊病人"},{value:"3",label:"体检病人"},{value:"5",label:"手术病人"}],source:[{value:0,label:"所属患者"},{value:1,label:"科室患者"},{value:2,label:"病区患者"}],tasktypes:o["a"].getters.tasktypes,belongWards:[],deptlist:[],hosplist:[],diagglist:[],operlist:[],tempDetpRelevanceslist:[],tempDetpRelevanceslistform:[],tempbelongWards:[],tempbelongWardsform:[],rules:{taskName:[{required:!0,message:"任务名称不能为空",trigger:"blur"},{min:2,max:30,message:"任务名称长度必须介于 2 和 30 之间",trigger:"blur"}],sendType:[{required:!0,message:"发送设置不能为空",trigger:"blur"}],longTask:[{required:!0,message:"请选择执行周期",trigger:"blur"}]},queryParamsdept:{tempid:"",type:2},belongDepts:[],quote:!1,serviceType:null}},components:{SFtable:u["a"],OptionalForm:n["a"],SortCheckbox:l["a"]},created:function(){this.appraiselist=o["a"].getters.appraiselist,this.belongWards=o["a"].getters.belongWards,this.belongDepts=o["a"].getters.belongDepts,this.username=o["a"].getters.name,this.mode=o["a"].getters.Askmode,this.id=this.$route.query.id,this.newadd=this.$route.query.newadd,this.form.type=this.$route.query.type,this.form.typename=this.$route.query.typename,this.serviceType=Number(this.$route.query.serviceType),this.form.serviceType=Number(this.$route.query.serviceType),console.log(localStorage.getItem("orgid"),"orgid"),this.Acquisitiontype(),this.getillnesslist(),this.Getdetails(),this.getFollowupclassify()},activated:function(){console.log(this.id,"CS",this.$route.query.id),this.id!=this.$route.query.id&&(this.id=this.$route.query.id,this.newadd=this.$route.query.newadd,this.form.type=this.$route.query.type,this.form.typename=this.$route.query.typename,this.serviceType=Number(this.$route.query.serviceType),this.form.serviceType=Number(this.$route.query.serviceType),this.Acquisitiontype(),this.Getdetails(),this.getFollowupclassify())},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},flattenArray:function(t){var e=[];function r(t){if(t.children&&t.children.length>0)t.children.forEach((function(t){return r(t)}));else{var a=JSON.parse(JSON.stringify(t));e.push(a)}}return t.forEach((function(t){return r(t)})),e},Acquisitiontype:function(){var t=this;this.topqueryParams.pageNum,this.topqueryParams.pageSize;this.currenttype=this.$route.query.type,this.title="随访内容列表",this.tableLabel=this.tableLabelwj,1==this.form.serviceType?this.checkboxlist=[{value:"1",label:"人工"},{value:"2",label:"纸质"},{value:"4",label:"短信"},{value:"5",label:"微信公众号"}]:6==this.form.serviceType?this.checkboxlist=[{value:"3",label:"智能语音"},{value:"4",label:"短信"},{value:"5",label:"微信公众号"},{value:"6",label:"微信小程序"}]:7==this.form.serviceType||5==this.form.serviceType||8==this.form.serviceType||9==this.form.serviceType||11==this.form.serviceType||12==this.form.serviceType||10==this.form.serviceType?this.checkboxlist=[{value:"1",label:"人工"},{value:"2",label:"纸质"},{value:"3",label:"智能语音"},{value:"4",label:"短信"},{value:"5",label:"微信公众号"},{value:"6",label:"微信小程序"},{value:"7",label:"术后随访"}]:2!=this.form.serviceType&&3!=this.form.serviceType&&16!=this.form.serviceType&&4!=this.form.serviceType||(this.checkboxlist=[{value:"1",label:"人工"},{value:"3",label:"智能语音"},{value:"4",label:"短信"},{value:"5",label:"微信公众号"},{value:"6",label:"微信小程序"}]),Object(s["xb"])(this.topqueryParams).then((function(e){t.userList=e.rows,t.total=e.total}))},nextstep:function(){var t=this;this.$refs["form"].validate((function(e){if(e){if(t.Editprogress<=3)return t.Editprogress++}else t.$modal.msgError("表单内容未完善,请检查")}))},submitForm:function(t){var e=this;if(!this.submitLoading){this.submitLoading=!0;try{if(this.templateor&&t&&(this.templateor=!1),this.time4&&3==this.form.sendType&&(this.form.showTimeMorn=this.time4),this.form.sendTimeslot=[{begantime:this.time4,endtime:"",xh:1}],1==this.form.appltype?(this.leavehospitaldistrictcodes=[],this.operationcodes=[],this.illnesscodes=[]):2==this.form.appltype?(this.deptcodesWards=[],this.operationcodes=[],this.illnesscodes=[]):3==this.form.appltype?(this.deptcodesWards=[],this.leavehospitaldistrictcodes=[],this.operationcodes=[]):4==this.form.appltype&&(this.deptcodesWards=[],this.illnesscodes=[],this.leavehospitaldistrictcodes=[]),!this.checkList)return this.$modal.msgError("请选择服务类型"),void(this.submitLoading=!1);if(this.form.preachform=this.checkList.join(","),this.form.preachformList=this.selectedOrder,!(this.deptcodesWards[0]||this.leavehospitaldistrictcodes[0]||this.diagglist[0]||this.operationcodes[0]||2==this.form.longTask||3==this.serviceType))return this.$modal.msgError("请选择任务关联条件"),void(this.submitLoading=!1);if(!this.form.templatename&&!this.templateor)return this.$modal.msgError("未选择模板"),void(this.submitLoading=!1);if(1==this.form.sendType&&this.time1||2==this.form.sendType);else if(!(3==this.form.sendType&&this.time4||this.form.longTask))return this.submitLoading=!1,this.$modal.msgError("时间信息缺失");var r=this.variableList.filter((function(t){return"姓名"!==t.name&&"电话"!==t.name&&"地址"!==t.name}));this.form.textParam=this.convertFormat2ToFormat1(r),this.form.taskid?this.form.isoperation=2:this.form.isoperation=1,this.form.type||(this.form.type=this.$route.query.type),this.form.serviceType=this.serviceType,this.form.deptcode=this.deptcodesWards.join(","),this.form.leavehospitaldistrictcode=this.leavehospitaldistrictcodes.join(","),this.form.opcode=this.operationcodes.join(","),this.form.icd10code=this.diagglist.map((function(t){return t.icdcode})).join(","),Object(s["d"])(this.form).then((function(t){200==t.code&&(e.form.taskid?e.$modal.msgSuccess("修改成功"):e.$modal.msgSuccess("新增成功"),e.submitLoading=!1,e.$router.push({path:"/followvisit/tasklist",query:{tasktopic:e.form.serviceType}}))}))}catch(a){this.submitLoading=!1}}},selectfn:function(t,e){var r=this;1==e&&(this.libName=t.templateName,this.libId=t.id,this.questionList=t.ivrLibaTemplateScriptVOList,Object(s["gc"])({id:t.id}).then((function(e){200==e.code&&(r.objyl=e.data,r.queryParamsdept.type=2,r.queryParamsdept.tempid=t.id,r.tempDetpRelevanceslist=[],r.tempbelongWards=[],r.objyl.suitway=r.objyl.suitway.split(","),r.questionList=e.data.ivrLibaTemplateScriptVOList,r.getillness(t.id),r.Variablehandling(e.data.ivrLibaTemplateScriptVOList,1),r.previewtf=!0)})),this.previewid=t.id)},previewfnmb:function(){var t=this;Object(s["Ib"])(this.form.templateid).then((function(e){200==e.code&&(t.objyl=e.data,t.objyl.suitway&&(t.objyl.suitway=t.objyl.suitway.split(",")),t.queryParamsdept.tempid=t.form.templateid,t.queryParamsdept.type=21,t.getillness(t.form.libtemplateid),Object(s["gc"])({id:t.form.libtemplateid}).then((function(e){200==e.code&&(t.previewtf=!0,t.previewtftype=1,t.questionList=e.data.ivrLibaTemplateScriptVOList,t.objyl.ivrLibaTemplateScriptVOList=e.data.ivrLibaTemplateScriptVOList)})))}))},getillness:function(t){var e=this;t&&Object(s["Ub"])({outid:t,type:5}).then((function(t){e.illnesslist=t.rows,e.illnesslist.forEach((function(t){t.icdname=t.icd10name}))}))},Variablehandling:function(t,e){var r=[];if(1==e){t.forEach((function(t){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)}},handleAddpatient:function(t){var e=this;this.allpids=[],this.overallCase.forEach((function(t){e.allpids.push(t.patid)})),1==this.patientqueryParams.allhosp?this.tableLabelhz=[{label:"出院日期",width:"150",prop:"endtime"},{label:"患者",width:"",prop:"name"},{label:"身份证",width:"200",prop:"idcardno"},{label:"电话号码",width:"180",prop:"telcode"},{label:"性别",width:"",prop:"sex"},{label:"年龄",width:"",prop:"age"},{label:"电话",width:"180",prop:"telcode"},{label:"出院天数",width:"",prop:"endDay"},{label:"责任护士",width:"",prop:"nurseName"},{label:"医生",width:"",prop:"drname"},{label:"科室",width:"180",prop:"dept"},{label:"病区",width:"150",prop:"leavehospitaldistrictname"}]:4==this.patientqueryParams.allhosp?this.tableLabelhz=[{label:"入院日期",width:"150",prop:"starttime"},{label:"患者",width:"",prop:"name"},{label:"身份证",width:"200",prop:"idcardno"},{label:"电话号码",width:"180",prop:"telcode"},{label:"性别",width:"",prop:"sex"},{label:"年龄",width:"",prop:"age"},{label:"电话",width:"180",prop:"telcode"},{label:"出院天数",width:"",prop:"endDay"},{label:"责任护士",width:"",prop:"nurseName"},{label:"医生",width:"",prop:"drname"},{label:"科室",width:"180",prop:"dept"},{label:"病区",width:"150",prop:"leavehospitaldistrictname"}]:2==this.patientqueryParams.allhosp&&(this.tableLabelhz=[{label:"就诊日期",width:"150",prop:"admitdate"},{label:"患者",width:"",prop:"name"},{label:"身份证",width:"200",prop:"idcardno"},{label:"电话号码",width:"180",prop:"telcode"},{label:"性别",width:"",prop:"sex"},{label:"年龄",width:"",prop:"age"},{label:"电话",width:"180",prop:"telcode"},{label:"出院天数",width:"",prop:"endDay"},{label:"责任护士",width:"",prop:"nurseName"},{label:"医生",width:"",prop:"drname"},{label:"科室",width:"180",prop:"dept"},{label:"病区",width:"150",prop:"leavehospitaldistrictname"}]),this.allpids[0]?this.patientqueryParams.pids=this.allpids:this.patientqueryParams.pids=null,1==this.patientqueryParams.allhosp?this.patientqueryParams.cry=1:this.patientqueryParams.allhosp,1==this.patientqueryParams.searchscope?(this.patientqueryParams.leaveldeptcodes=o["a"].getters.belongDepts.map((function(t){return t.deptCode})),this.patientqueryParams.leavehospitaldistrictcodes=[]):2==this.patientqueryParams.searchscope?(this.patientqueryParams.leavehospitaldistrictcodes=o["a"].getters.belongWards.map((function(t){return t.districtCode})),this.patientqueryParams.leaveldeptcodes=[]):(this.patientqueryParams.leaveldeptcodes=o["a"].getters.belongDepts.map((function(t){return t.deptCode})),this.patientqueryParams.leavehospitaldistrictcodes=o["a"].getters.belongWards.map((function(t){return t.districtCode}))),Object(s["Kb"])(this.patientqueryParams).then((function(t){e.patientuserList=t.rows,e.patientuserList.forEach((function(t){t.endtime&&(t.endDay=e.daysBetween(t.endtime))})),e.patienttotal=t.total,e.loading=!1,e.Restorecheck()})),this.dialogVisiblepatient=!0},handleUpdate:function(){},handleDelete:function(){},handleExport:function(){},handleSelectionChange:function(t){var e=this;this.SelectPatientslist=structuredClone(t),this.multiple=!t.length,this.SelectPatientslist.forEach((function(t){var r=e.overallCase.find((function(e){return e.name==t.name}));r||(t.isoperation=1,t.patid=t.id,t.hospType=e.patientqueryParams.allhosp,t.sfzh=t.idcardno,t.deptCode=t.deptcode,t.deptName=t.dept,t.admindate=t.inhosptime,t.sfzh=t.idcardno,6==e.patientqueryParams.allhosp&&(t.patfrom=1),1==e.patientqueryParams.allhosp?t.visittime=t.endtime:4==e.patientqueryParams.allhosp?t.visittime=t.starttime:2==e.patientqueryParams.allhosp&&(t.visittime=t.admitdate),e.overallCase.push(t),e.form.patTaskRelevances.push(t))}))},Restorecheck:function(){var t=this.overallCase.map((function(t){return t.patid})),e=this.patientuserList.filter((function(e){return t.includes(e.patid)}));this.SelectPatientslist=e,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}))):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.taskid?r.form.patTaskRelevances[a].isoperation=3:r.form.patTaskRelevances.splice(e,1),r.$modal.msgSuccess("删除成功")}))},getList:function(){},handleQuery:function(){console.log("this.patientqueryParams.allhosp",this.patientqueryParams.allhosp),0==this.patientqueryParams.topica?(this.patientqueryParams.leavehospitaldistrictcodes=o["a"].getters.leavehospitaldistrictcodes,this.patientqueryParams.leaveldeptcodes=o["a"].getters.leaveldeptcodes):1==this.patientqueryParams.topica?(this.patientqueryParams.leavehospitaldistrictcodes=null,this.patientqueryParams.leaveldeptcodes=o["a"].getters.leaveldeptcodes):2==this.patientqueryParams.topica&&(this.patientqueryParams.leavehospitaldistrictcodes=o["a"].getters.leavehospitaldistrictcodes,this.patientqueryParams.leaveldeptcodes=null),this.patientqueryParams.leavehospitaldistrictcodes&&this.patientqueryParams.leavehospitaldistrictcodes[0]||(this.patientqueryParams.leavehospitaldistrictcodes=null),this.patientqueryParams.leaveldeptcodes&&this.patientqueryParams.leaveldeptcodes[0]||(this.patientqueryParams.leaveldeptcodes=null),this.handleAddpatient(),console.log("this.patientqueryParams.allhosp",this.patientqueryParams.allhosp)},resetQuerymb:function(){this.topqueryParams={svyname:""},this.handleQuerymb()},resetQuery:function(){this.patientqueryParams={pageNum:1,pageSize:10,topica:1,leaveldeptcodes:[],leavehospitaldistrictcodes:[]},this.handleQuery()},handleQuerymb:function(){var t=this;Object(s["xb"])(this.topqueryParams).then((function(e){t.userList=e.rows,t.total=e.total}))},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.form={patTaskRelevances:[],sendType:1,sendDay:5,templatename:"",templateid:null,libtemplateid:null,kcb:"亲爱的患者/家属,您好!我们是"+localStorage.getItem("orgname")+"的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,进行本次回访服务。",jsy:"请您注意休息和营养,生活上要劳逸结合,适当锻炼,戒烟限酒,保持心情舒畅,定期复诊。那本次回访就到这里,祝您身体健康!"},this.questionList=[],this.id&&Object(s["Fb"])({taskid:this.id}).then((function(e){var r="";200==e.code?(t.form=e.data,t.form.serviceType=t.serviceType,t.form.patTaskRelevances=t.form.patTaskRelevances?t.form.patTaskRelevances:[],t.overallCase=t.form.patTaskRelevances.concat(),t.checkList=t.form.preachform.split(",")||[],t.selectedOrder=t.form.preachformList,t.overallCase.forEach((function(e){e.endtime&&(e.endDay=t.daysBetween(e.endtime))})),t.form.showDate&&(t.daytime=t.form.showDate.split(",")),t.form.showTimeMorn&&(3==t.form.sendType?t.time4=t.form.showTimeMorn:t.time1=t.form.showTimeMorn.split(",")),t.form.taskid&&t.listDept(),t.form.showTimeNoon&&(t.time2=t.form.showTimeNoon.split(",")),t.form.showTimeNight&&(t.time3=t.form.showTimeNight.split(",")),r=t.convertFormat1ToFormat2(t.form.textParam),t.variableList=t.transitionList.concat(r)):t.$modal.msgError(e.code),t.newadd&&t.neWaddfn()}))},neWaddfn:function(){this.id=null,this.form.taskName="",this.form.sendState=null,this.form.taskid=null,this.overallCase=[],this.form.patTaskRelevances=[],this.daytime=[],this.applydaytime=[],this.time1="",this.time2="",this.time3="",this.time4=""},listDept:function(){var t=this;this.leavehospitaldistrictcodes=[],this.deptcodesWards=[],this.queryParamsdept.taskId=this.form.taskid,Object(s["tc"])(this.queryParamsdept).then((function(e){if(200==e.code){var r=e.rows;r.forEach((function(e){1==e.deptType?(t.deptlist.push(e),t.deptcodesWards.push(e.deptCode)):2==e.deptType&&(t.hosplist.push(e),t.leavehospitaldistrictcodes.push(e.deptCode))}))}})),Object(s["uc"])(this.queryParamsdept).then((function(e){if(200==e.code){var r=e.rows;r.forEach((function(e){Object(s["Vb"])({icdcode:e.icd10code}).then((function(r){e.icdname=r.rows[0].icdname,t.diagglist.push(e)})),t.illnesscodes.push(e.icd10code)}))}})),Object(s["xc"])(this.queryParamsdept).then((function(e){if(200==e.code){var r=e.rows;r.forEach((function(e){t.operlist.push(e),t.operationcodes.push(e.opcode)}))}}))},getillnesslist:function(){var t=this;Object(s["Vb"])({pageNum:1,pageSize:1e3}).then((function(e){t.donorchargeList=res.rows})),Object(s["Nb"])({pageNum:1,pageSize:1e3}).then((function(e){t.baseoperaList=res.rows}))},remoteopcode:function(t){var e=this;t&&Object(s["Nb"])({pageNum:1,pageSize:1e3,opdesc:t}).then((function(t){e.baseoperaList=t.rows}))},removetag:function(t){var e=this,r=this.deptlist.filter((function(e){return e.deptCode==t})).map((function(t){return t.id}));r.length&&Object(s["sc"])(r).then((function(t){t.code&&e.$modal.msgSuccess("删除成功")}))},removehpsp:function(t){var e=this,r=this.hosplist.filter((function(e){return e.deptCode==t})).map((function(t){return t.id}));r.length&&Object(s["sc"])(r).then((function(t){t.code&&e.$modal.msgSuccess("删除成功")}))},removeopera:function(t){var e=this,r=this.operlist.filter((function(e){return e.opcode==t})).map((function(t){return t.id}));r.length&&Object(s["yc"])(r).then((function(t){t.code&&e.$modal.msgSuccess("删除成功")}))},removediagg:function(t){var e=this,r=this.diagglist.filter((function(e){return e.icd10code==t})).map((function(t){return t.id}));r.length&&Object(s["vc"])(r).then((function(r){r.code&&(e.diagglist=e.diagglist.filter((function(e){return e.icd10code!=t})),e.$modal.msgSuccess("删除成功"))}))},getFollowupclassify:function(){var t=this;Object(s["wb"])({}).then((function(e){t.optionsclass=e.rows}))},AddDispatchpatients:function(){this.dialogVisiblepatient=!1},variableDelete:function(t,e){this.variableList.splice(t,1),e.isoperation=3,this.delvariableList.push(e)},changeTime:function(t){this.processingTime()},Totaldate:function(t){this.form.sendTimeslot=[{begantime:t,endtime:t,xh:1}],this.form.showTimeMorn=t},changeTimeday:function(t){var e=new Date(t[0]),r=new Date(t[1]);this.applydaytime=this.getDates(e,r),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=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,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(","))},previewFn:function(){var t=this;Array.isArray(this.objyl.suitway)&&(this.objyl.suitway=this.objyl.suitway.join(",")),this.objyl.ivrLibaTemplateScriptVOList.forEach((function(t){t.ivrTaskScriptTargetoptionList=t.ivrTaskScriptTargetoptionList})),this.objyl.ivrTaskTemplateScriptVOList=this.objyl.ivrLibaTemplateScriptVOList,this.objyl.isoperation=1,this.form.id&&(this.objyl.taskid=this.form.id),this.form.templateid?Object(s["U"])(this.form.templateid).then((function(e){200==e.code&&Object(s["o"])(t.objyl).then((function(e){t.previewtf=!1,t.form.libtemplateid=t.objyl.id,t.form.libtemplatename=t.objyl.templateName,t.form.templateid=e.data,t.putbelongDepts(e.data),t.form.templatename=t.objyl.templateName,t.$modal.msgSuccess("替换模板成功"),t.drawermb=!1,t.previewtf=!1,t.skip&&t.$router.push({path:"/knowledge/taskub/",query:{id:e.data}})}))})):Object(s["o"])(this.objyl).then((function(e){t.previewtf=!1,t.form.libtemplateid=t.objyl.id,t.form.libtemplatename=t.objyl.templateName,t.form.templateid=e.data,t.putbelongDepts(e.data),t.form.templatename=t.objyl.templateName,t.$modal.msgSuccess("选择模板成功"),t.drawermb=!1,t.previewtf=!1,t.skip&&t.$router.push({path:"/knowledge/taskub/",query:{id:e.data}})}))},putbelongDepts:function(t){var e=this;this.tempDetpRelevanceslistform.forEach((function(e){e.tempid=t})),this.tempbelongWardsform.forEach((function(e){e.tempid=t})),Object(s["ib"])(this.tempDetpRelevanceslistform).then((function(t){200==t.code&&(e.$modal.msgSuccess("科室更新成功"),e.tempDetpRelevanceslistform=[])})),Object(s["ib"])(this.tempbelongWardsform).then((function(t){200==t.code&&(e.$modal.msgSuccess("病区更新成功"),e.tempbelongWardsform=[])}))},checkSelectionChange:function(t,e){this.selectedOrder=t,console.log("当前选中:",t),console.log("选中顺序:",e)},handleCheckedCitiesChange:function(t){console.log(t,"服务"),this.foncheckList=this.checkboxlist.filter((function(e){return t.includes(e.value)}))},handleClosetag:function(t){console.log(t,"tag"),console.log(this.foncheckList,"foncheckList"),this.checkList=this.checkList.filter((function(e){return e!=t.value})),this.foncheckList=this.foncheckList.filter((function(e){return e.value!==t.value}))},Departmenttreatment:function(){var t=this;this.form.taskid?setTimeout((function(){t.previewFn()}),1e3):(this.templateor=!0,c["MessageBox"].confirm("当前为新增任务未保存不可关联模板,是否先暂存模板保存任务后生效?","功能提示",{confirmButtonText:"暂存模板",cancelButtonText:"取消",type:"warning"}).then((function(){Array.isArray(t.objyl.suitway)&&(t.objyl.suitway=t.objyl.suitway.join(",")),t.objyl.templateid=t.objyl.id,t.objyl.isoperation=1,t.objyl.ivrLibaTemplateScriptVOList.forEach((function(t){t.ivrTaskScriptTargetoptionList=t.ivrTaskScriptTargetoptionList})),t.objyl.ivrTaskTemplateScriptVOList=t.objyl.ivrLibaTemplateScriptVOList,t.form.ivrTaskTemplateVO=t.objyl,t.form.templatename=t.objyl.templateName,t.$modal.msgSuccess("暂存成功保存任务后模板失效"),t.drawermb=!1,t.previewtf=!1})).catch((function(){t.drawermb=!1,t.previewtf=!1})))},Modifytemplate:function(){var t=this;this.form.templateid&&this.previewtftype?this.$modal.confirm("是否前往修改任务模板详细内容?").then((function(){t.drawermb=!1,t.previewtf=!1,t.$router.push({path:"/knowledge/taskub/",query:{id:t.form.templateid}})})):this.$modal.confirm("当前为基础预览是否创建任务模板并前往修改详情?").then((function(){t.Departmenttreatment(),t.skip=!0}))}}},p=d,m=(r("7ba6"),r("1805")),f=Object(m["a"])(p,a,i,!1,null,"f1c73efc",null);e["default"]=f.exports},7887:function(t,e,r){},"7ba6":function(t,e,r){"use strict";r("7887")},"958b":function(t,e,r){"use strict";r.d(e,"l",(function(){return i})),r.d(e,"n",(function(){return o})),r.d(e,"e",(function(){return s})),r.d(e,"d",(function(){return n})),r.d(e,"m",(function(){return l})),r.d(e,"g",(function(){return c})),r.d(e,"c",(function(){return u})),r.d(e,"j",(function(){return d})),r.d(e,"i",(function(){return p})),r.d(e,"a",(function(){return m})),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 i(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 s(t){return Object(a["a"])({url:"/smartor/patarchive/saveOrUpdatePatInfo",method:"post",data:t})}function n(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 c(t){return Object(a["a"])({url:"/smartor/patarchive/remove/"+t,method:"get"})}function u(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 p(t){return Object(a["a"])({url:"/medicalhistory/edit",method:"post",data:t})}function m(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})}},c0c7:function(t,e,r){"use strict";r.d(e,"k",(function(){return o})),r.d(e,"i",(function(){return s})),r.d(e,"a",(function(){return n})),r.d(e,"p",(function(){return l})),r.d(e,"d",(function(){return c})),r.d(e,"m",(function(){return u})),r.d(e,"c",(function(){return d})),r.d(e,"j",(function(){return p})),r.d(e,"q",(function(){return m})),r.d(e,"g",(function(){return f})),r.d(e,"h",(function(){return h})),r.d(e,"n",(function(){return b})),r.d(e,"r",(function(){return v})),r.d(e,"s",(function(){return y})),r.d(e,"f",(function(){return g})),r.d(e,"o",(function(){return j})),r.d(e,"l",(function(){return k})),r.d(e,"e",(function(){return w})),r.d(e,"b",(function(){return O}));var a=r("b775"),i=r("c38a");function o(t){return Object(a["a"])({url:"/system/user/list",method:"get",params:t})}function s(t){return Object(a["a"])({url:"/system/user/getInfo/"+Object(i["g"])(t),method:"get"})}function n(t){return Object(a["a"])({url:"/system/user/add",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/system/user/edit",method:"post",data:t})}function c(t){return Object(a["a"])({url:"/system/user/remove/"+t,method:"get"})}function u(t,e){var r={userId:t,password:e};return Object(a["a"])({url:"/system/user/resetPwd",method:"post",data:r})}function d(t,e){var r={userId:t,status:e};return Object(a["a"])({url:"/system/user/changeStatus/edit",method:"post",data:r})}function p(){return Object(a["a"])({url:"/system/user/profile",method:"get"})}function m(t){return Object(a["a"])({url:"/system/user/profile/edit",method:"post",data:t})}function f(t){return Object(a["a"])({url:"/smartor/serviceSubtask/getSfStatistics",method:"post",data:t})}function h(t){return Object(a["a"])({url:"/smartor/serviceSubtask/getSfStatisticsJoy",method:"post",data:t})}function b(t){return Object(a["a"])({url:"/smartor/servicetask/selectTimelyRate",method:"post",data:t})}function v(t,e){var r={oldPassword:t,newPassword:e};return Object(a["a"])({url:"/system/user/profile/updatePwd",method:"post",params:r})}function y(t){return Object(a["a"])({url:"/system/user/profile/avatar",method:"post",data:t})}function g(t){return Object(a["a"])({url:"/system/user/authRole/"+t,method:"get"})}function j(t){return Object(a["a"])({url:"/system/user/authRole/insertAuthRole",method:"post",data:t})}function k(t,e){return Object(a["a"])({url:"/smartor/userdept/removeByCode/"+t+"/"+e,method:"get"})}function w(t){var e={deptType:t,orgid:localStorage.getItem("orgid")};return Object(a["a"])({url:"/system/user/deptTree",method:"get",params:e})}function O(t){return Object(a["a"])({url:"/smartor/userdept/add",method:"post",data:t})}},eef8:function(t,e,r){"use strict";var a=r("ba03"),i=r("1d9b"),o=r("4e61");t.exports=function(t){var e=a(this),r=o(e),s=arguments.length,n=i(s>1?arguments[1]:void 0,r),l=s>2?arguments[2]:void 0,c=void 0===l?r:i(l,r);while(c>n)e[n++]=t;return e}}}]);