(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5fda76c7"],{"40d6":function(t,e,r){"use strict";r.d(e,"dc",(function(){return o})),r.d(e,"ec",(function(){return a})),r.d(e,"i",(function(){return s})),r.d(e,"V",(function(){return i})),r.d(e,"Vb",(function(){return u})),r.d(e,"kc",(function(){return c})),r.d(e,"Nb",(function(){return d})),r.d(e,"Ub",(function(){return m})),r.d(e,"D",(function(){return l})),r.d(e,"gb",(function(){return p})),r.d(e,"oc",(function(){return f})),r.d(e,"fb",(function(){return b})),r.d(e,"E",(function(){return h})),r.d(e,"rb",(function(){return O})),r.d(e,"cc",(function(){return v})),r.d(e,"zc",(function(){return j})),r.d(e,"ic",(function(){return g})),r.d(e,"hb",(function(){return y})),r.d(e,"K",(function(){return k})),r.d(e,"hc",(function(){return T})),r.d(e,"L",(function(){return C})),r.d(e,"u",(function(){return S})),r.d(e,"S",(function(){return L})),r.d(e,"Mb",(function(){return A})),r.d(e,"xb",(function(){return q})),r.d(e,"O",(function(){return I})),r.d(e,"G",(function(){return x})),r.d(e,"gc",(function(){return R})),r.d(e,"Eb",(function(){return w})),r.d(e,"q",(function(){return E})),r.d(e,"lb",(function(){return B})),r.d(e,"N",(function(){return Q})),r.d(e,"wb",(function(){return D})),r.d(e,"o",(function(){return _})),r.d(e,"U",(function(){return U})),r.d(e,"Ib",(function(){return N})),r.d(e,"Rb",(function(){return K})),r.d(e,"X",(function(){return P})),r.d(e,"Qb",(function(){return M})),r.d(e,"v",(function(){return F})),r.d(e,"nb",(function(){return J})),r.d(e,"w",(function(){return V})),r.d(e,"W",(function(){return z})),r.d(e,"Pb",(function(){return W})),r.d(e,"Sb",(function(){return H})),r.d(e,"Y",(function(){return X})),r.d(e,"x",(function(){return Z})),r.d(e,"ob",(function(){return $})),r.d(e,"Zb",(function(){return G})),r.d(e,"db",(function(){return Y})),r.d(e,"Yb",(function(){return tt})),r.d(e,"J",(function(){return et})),r.d(e,"A",(function(){return rt})),r.d(e,"y",(function(){return nt})),r.d(e,"pb",(function(){return ot})),r.d(e,"Z",(function(){return at})),r.d(e,"Tb",(function(){return st})),r.d(e,"Bb",(function(){return it})),r.d(e,"wc",(function(){return ut})),r.d(e,"Ab",(function(){return ct})),r.d(e,"Q",(function(){return dt})),r.d(e,"H",(function(){return mt})),r.d(e,"s",(function(){return lt})),r.d(e,"mb",(function(){return pt})),r.d(e,"P",(function(){return ft})),r.d(e,"zb",(function(){return bt})),r.d(e,"j",(function(){return ht})),r.d(e,"l",(function(){return Ot})),r.d(e,"T",(function(){return vt})),r.d(e,"Gb",(function(){return jt})),r.d(e,"ib",(function(){return gt})),r.d(e,"kb",(function(){return yt})),r.d(e,"tc",(function(){return kt})),r.d(e,"jb",(function(){return Tt})),r.d(e,"sc",(function(){return Ct})),r.d(e,"vc",(function(){return St})),r.d(e,"yc",(function(){return Lt})),r.d(e,"uc",(function(){return At})),r.d(e,"xc",(function(){return qt})),r.d(e,"rc",(function(){return It})),r.d(e,"qc",(function(){return xt})),r.d(e,"Xb",(function(){return Rt})),r.d(e,"cb",(function(){return wt})),r.d(e,"I",(function(){return Et})),r.d(e,"z",(function(){return Bt})),r.d(e,"qb",(function(){return Qt})),r.d(e,"bb",(function(){return Dt})),r.d(e,"Wb",(function(){return _t})),r.d(e,"mc",(function(){return Ut})),r.d(e,"ab",(function(){return Nt})),r.d(e,"Jb",(function(){return Kt})),r.d(e,"Kb",(function(){return Pt})),r.d(e,"d",(function(){return Mt})),r.d(e,"e",(function(){return Ft})),r.d(e,"R",(function(){return Jt})),r.d(e,"Hb",(function(){return Vt})),r.d(e,"Fb",(function(){return zt})),r.d(e,"Lb",(function(){return Wt})),r.d(e,"jc",(function(){return Ht})),r.d(e,"F",(function(){return Xt})),r.d(e,"n",(function(){return Zt})),r.d(e,"m",(function(){return $t})),r.d(e,"vb",(function(){return Gt})),r.d(e,"fc",(function(){return Yt})),r.d(e,"a",(function(){return te})),r.d(e,"sb",(function(){return ee})),r.d(e,"k",(function(){return re})),r.d(e,"bc",(function(){return ne})),r.d(e,"yb",(function(){return oe})),r.d(e,"r",(function(){return ae})),r.d(e,"C",(function(){return se})),r.d(e,"t",(function(){return ie})),r.d(e,"M",(function(){return ue})),r.d(e,"g",(function(){return ce})),r.d(e,"f",(function(){return de})),r.d(e,"h",(function(){return me})),r.d(e,"ub",(function(){return le})),r.d(e,"Ob",(function(){return pe})),r.d(e,"Db",(function(){return fe})),r.d(e,"tb",(function(){return be})),r.d(e,"ac",(function(){return he})),r.d(e,"pc",(function(){return Oe})),r.d(e,"lc",(function(){return ve})),r.d(e,"B",(function(){return je})),r.d(e,"Ac",(function(){return ge})),r.d(e,"eb",(function(){return ye})),r.d(e,"Cb",(function(){return ke})),r.d(e,"nc",(function(){return Te})),r.d(e,"p",(function(){return Ce})),r.d(e,"b",(function(){return Se})),r.d(e,"c",(function(){return Le}));var n=r("b775");function o(t){return Object(n["a"])({url:"/smartor/target/targetInfo",method:"post",data:t})}function a(t){return Object(n["a"])({url:"/smartor/target/saveOrupdateIvrLibaTarget",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/smartor/serviceSubtaskDetail/countPatByTarget/"+t,method:"get"})}function i(t){return Object(n["a"])({url:"/smartor/target/remove/"+t,method:"get"})}function u(t){return Object(n["a"])({url:"/smartor/icd10/list",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/smartor/icd10/getInfo/"+t,method:"get"})}function d(t){return Object(n["a"])({url:"/smartor/baseopera/list",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/smartor/outicd10/list",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/smartor/outicd10/add",method:"post",data:t})}function p(t){return Object(n["a"])({url:"/smartor/outicd10/remove/"+t,method:"get"})}function f(t){return Object(n["a"])({url:"/smartor/assort/selectIvrLibaTargetAssortList",method:"post",data:t})}function b(t){return Object(n["a"])({url:"/smartor/assort/remove/"+t,method:"get"})}function h(t){return Object(n["a"])({url:"/smartor/assort/addtree",method:"post",data:t})}function O(t){return Object(n["a"])({url:"/smartor/assort/edit",method:"post",data:t})}function v(t){return Object(n["a"])({url:"/smartor/target/list",method:"post",data:t})}function j(t){return Object(n["a"])({url:"/smartor/target/targetQuesMate",method:"post",data:t})}function g(t){return Object(n["a"])({url:"/smartor/script/list",method:"post",data:t})}function y(t){return Object(n["a"])({url:"/smartor/script/remove/"+t,method:"get"})}function k(t){return Object(n["a"])({url:"/smartor/script/saveOrUpdateScript",method:"post",data:t})}function T(t){return Object(n["a"])({url:"/smartor/script/selectInfoByCondition",method:"post",data:t})}function C(t){return Object(n["a"])({url:"/smartor/scriptassort/edit",method:"post",data:t})}function S(t){return Object(n["a"])({url:"/smartor/scriptassort/addtree",method:"post",data:t})}function L(t){return Object(n["a"])({url:"/smartor/scriptassort/remove/"+t,method:"get"})}function A(t){return Object(n["a"])({url:"/smartor/scriptassort/selectIvrLibaScriptAssortList",method:"post",data:t})}function q(t){return Object(n["a"])({url:"/smartor/template/list",method:"post",data:t})}function I(t){return Object(n["a"])({url:"/smartor/template/remove/"+t,method:"get"})}function x(t){return Object(n["a"])({url:"/smartor/template/saveOrUpdateScript",method:"post",data:t})}function R(t){return Object(n["a"])({url:"/smartor/template/selectInfoByCondition",method:"post",data:t})}function w(t){return Object(n["a"])({url:"/smartor/ivrTaskTemplate/getTemplateInfoByID/"+t,method:"get"})}function E(t){return Object(n["a"])({url:"/smartor/templateassort/addtree",method:"post",data:t})}function B(t){return Object(n["a"])({url:"/smartor/templateassort/edit",method:"post",data:t})}function Q(t){return Object(n["a"])({url:"/smartor/templateassort/remove/"+t,method:"get"})}function D(t){return Object(n["a"])({url:"/smartor/templateassort/selectIvrLibaTemplateAssortList",method:"post",data:t})}function _(t){return Object(n["a"])({url:"/smartor/ivrTaskTemplate/saveOrUpdateTempScript",method:"post",data:t})}function U(t){return Object(n["a"])({url:"/smartor/ivrTaskTemplate/remove/"+t,method:"get"})}function N(t){return Object(n["a"])({url:"/smartor/ivrTaskTemplate/getInfo/"+t,method:"get"})}function K(t){return Object(n["a"])({url:"/smartor/extemplate/list",method:"post",data:t})}function P(t){return Object(n["a"])({url:"/smartor/extemplate/remove/"+t,method:"get"})}function M(t){return Object(n["a"])({url:"/smartor/extemplate/"+t,method:"get"})}function F(t){return Object(n["a"])({url:"/smartor/extemplate/add",method:"post",data:t})}function J(t){return Object(n["a"])({url:"/smartor/extemplate/edit",method:"post",data:t})}function V(t){return Object(n["a"])({url:"/smartor/category/add",method:"post",data:t})}function z(t){return Object(n["a"])({url:"/smartor/category/remove/"+t,method:"get"})}function W(t){return Object(n["a"])({url:"/smartor/category/list",method:"post",data:t})}function H(t){return Object(n["a"])({url:"/smartor/extemplatescript/list",method:"post",data:t})}function X(t){return Object(n["a"])({url:"/smartor/extemplatescript/remove/"+t,method:"get"})}function Z(t){return Object(n["a"])({url:"/smartor/extemplatescript/add",method:"post",data:t})}function $(t){return Object(n["a"])({url:"/smartor/extemplatescript/edit",method:"post",data:t})}function G(t){return Object(n["a"])({url:"/smartor/library/list",method:"post",data:t})}function Y(t){return Object(n["a"])({url:"/smartor/library/remove/"+t,method:"get"})}function tt(t){return Object(n["a"])({url:"/smartor/library/selectInfoByCondition",method:"post",data:t})}function et(t){return Object(n["a"])({url:"/smartor/library/saveOrUpdateHeLibrary",method:"post",data:t})}function rt(t){return Object(n["a"])({url:"/common/htmlContent",method:"post",data:t})}function nt(t){return Object(n["a"])({url:"/smartor/heLibraryAssort/addtree",method:"post",data:t})}function ot(t){return Object(n["a"])({url:"/smartor/heLibraryAssort/edit",method:"post",data:t})}function at(t){return Object(n["a"])({url:"/smartor/heLibraryAssort/remove/"+t,method:"get"})}function st(t){return Object(n["a"])({url:"/smartor/heLibraryAssort/selectHeLibraryAssortList",method:"post",data:t})}r("b8cc");function it(t){return Object(n["a"])({url:"/smartor/svyLibTemplate/selectSvyLibTemplatelist",method:"post",data:t})}function ut(t){return Object(n["a"])({url:"smartor/svytemplateTask/selectInfoByCondition",method:"post",data:t})}function ct(t){return Object(n["a"])({url:"/smartor/svyLibTemplate/list",method:"get",params:t})}function dt(t){return Object(n["a"])({url:"/smartor/svyLibTemplate/remove/"+t,method:"get"})}function mt(t){return Object(n["a"])({url:"/smartor/svyLibTemplate/saveOrUpdateTemplate",method:"post",data:t})}function lt(t){return Object(n["a"])({url:"/smartor/svyLibTemplateCategory/addtree",method:"post",data:t})}function pt(t){return Object(n["a"])({url:"/smartor/svyLibTemplateCategory/edit",method:"post",data:t})}function ft(t){return Object(n["a"])({url:"/smartor/svyLibTemplateCategory/remove/"+t,method:"get"})}function bt(t){return Object(n["a"])({url:"/smartor/svyLibTemplateCategory/list",method:"post",data:t})}function ht(t){return Object(n["a"])({url:"/smartor/serviceSubtask/queryTaskByCondition",method:"post",data:t})}function Ot(t){return Object(n["a"])({url:"/smartor/svytemplateTask/saveOrUpdateTaskTemp",method:"post",data:t})}function vt(t){return Object(n["a"])({url:"/smartor/svytemplateTask/remove/"+t,method:"get"})}function jt(t){return Object(n["a"])({url:"/smartor/svytemplateTask/"+t,method:"get"})}function gt(t){return Object(n["a"])({url:"/smartor/td/add",method:"post",data:t})}function yt(t){return Object(n["a"])({url:"/smartor/td/list",method:"get",params:t})}function kt(t){return Object(n["a"])({url:"/smartor/taskdept/list",method:"post",data:t})}function Tt(t){return Object(n["a"])({url:"/smartor/td/remove/"+t,method:"get"})}function Ct(t){return Object(n["a"])({url:"/smartor/taskdept/remove/"+t,method:"get"})}function St(t){return Object(n["a"])({url:"/smartor/taskdiag/remove/".concat(t),method:"get"})}function Lt(t){return Object(n["a"])({url:"/smartor/taskoper/remove/".concat(t),method:"get"})}function At(t){return Object(n["a"])({url:"/smartor/taskdiag/list",method:"post",data:t})}function qt(t){return Object(n["a"])({url:"/smartor/taskoper/list",method:"post",data:t})}function It(t){return Object(n["a"])({url:"/smartor/serviceSubtaskDetail/editByCondition",method:"post",data:t})}function xt(t){return Object(n["a"])({url:"/smartor/serviceSubtaskDetail/add",method:"post",data:t})}function Rt(t){return Object(n["a"])({url:"/smartor/svyscript/list",method:"post",data:t})}function wt(t){return Object(n["a"])({url:"/smartor/svyscript/remove/"+t,method:"get"})}function Et(t){return Object(n["a"])({url:"/smartor/svyscript/saveOrUpdateScript",method:"post",data:t})}function Bt(t){return Object(n["a"])({url:"/smartor/svyLibScriptCategory/addtree",method:"post",data:t})}function Qt(t){return Object(n["a"])({url:"/smartor/svyLibScriptCategory/edit",method:"post",data:t})}function Dt(t){return Object(n["a"])({url:"/smartor/svyLibScriptCategory/remove/"+t,method:"get"})}function _t(t){return Object(n["a"])({url:"/smartor/svyLibScriptCategory/list",method:"post",data:t})}function Ut(t){return Object(n["a"])({url:"/smartor/serviceExternal/query360PatInfo",method:"post",data:t})}function Nt(t){return Object(n["a"])({url:"/smartor/serviceSubtask/remove/"+t,method:"get"})}function Kt(t){return Object(n["a"])({url:"/smartor/patarchive/getPatientInfo",method:"post",data:t})}function Pt(t){return Object(n["a"])({url:"/smartor/patarchive/getPatientInfoQC",method:"post",data:t})}function Mt(t){return Object(n["a"])({url:"/smartor/serviceSubtask/insertOrUpdateTask",method:"post",data:t})}function Ft(t){return Object(n["a"])({url:"/smartor/serviceSubtask/update",method:"post",data:t})}function Jt(t){return Object(n["a"])({url:"/smartor/servicetask/remove/"+t,method:"get"})}function Vt(t){return Object(n["a"])({url:"/smartor/servicetask/list",method:"post",data:t})}function zt(t){return Object(n["a"])({url:"/smartor/serviceSubtask/queryTaskByCondition",method:"post",data:t})}function Wt(t){return Object(n["a"])({url:"/smartor/serviceSubtask/patItem",method:"post",data:t})}function Ht(t){return Object(n["a"])({url:"/smartor/serviceSubtask/getSubtaskByDiagname",method:"post",data:t})}function Xt(t){return Object(n["a"])({url:"/smartor/serviceSubtask/patItemByCondition",method:"post",data:t})}function Zt(t){return Object(n["a"])({url:"/smartor/ivrTaskTemplate/saveOrUpdateTempScript",method:"post",data:t})}function $t(t){return Object(n["a"])({url:"/smartor/commonTask/taskSend",method:"post",data:t})}function Gt(t){return Object(n["a"])({url:"/smartor/servicetask/getScriptInfoByCondition",method:"post",data:t})}function Yt(t){return Object(n["a"])({url:"/smartor/outPath/getInfoByParam",method:"post",params:{param:t}})}function te(t){return Object(n["a"])({url:"/smartor/subtaskAnswer/saveQuestionCache",method:"post",data:t})}function ee(t){return Object(n["a"])({url:"/smartor/subtaskAnswer/getQuestionCache",method:"post",data:t})}function re(t){return Object(n["a"])({url:"/smartor/subtaskAnswer/saveQuestionAnswer",method:"post",data:t})}function ne(t){return Object(n["a"])({url:"/smartor/subtaskAnswer/selectPatQuestionResult",method:"post",data:t})}function oe(t){return Object(n["a"])({url:"/smartor/serviceSubtaskDetail/getPersonVoice",method:"post",data:t})}function ae(t){return Object(n["a"])({url:"/smartor/serviceSubtaskDetail/batchAdd",method:"post",data:t})}function se(t){return Object(n["a"])({url:"/smartor/serviceSubtask/addSubTaskAgain",method:"post",data:t})}function ie(t){return Object(n["a"])({url:"/smartor/serviceSubtask/addSubTask",method:"post",data:t})}function ue(t){return Object(n["a"])({url:"/smartor/import/remove/"+t,method:"get"})}function ce(t){return Object(n["a"])({url:"/smartor/import/list",method:"post",data:t})}function de(t){return Object(n["a"])({url:"/smartor/import/edit",method:"post",data:t})}function me(t){return Object(n["a"])({url:"/smartor/import/getInfo/"+t,method:"get"})}function le(t){return Object(n["a"])({url:"/smartor/patouthosp/selectPatMedOuthospCount",method:"post",data:t})}function pe(t){return Object(n["a"])({url:"/smartor/patinhosp/selectPatMedInhospListCount",method:"post",data:t})}function fe(t){return Object(n["a"])({url:"/smartor/serviceSubtask/getServiceStatistics",method:"post",data:t})}function be(t){return Object(n["a"])({url:"/smartor/patinhosp/getDeptRanking",method:"post",data:t})}function he(t){return Object(n["a"])({url:"/smartor/organization/list",method:"get"})}function Oe(t){return Object(n["a"])({url:"/sms/send",method:"post",data:t})}r("c38a");function ve(t){return Object(n["a"])({url:"/smartor/satisfaction/list",method:"post",data:t})}function je(t){return Object(n["a"])({url:"/smartor/satisfaction/batchinsert",method:"post",data:t})}function ge(t){return Object(n["a"])({url:"/smartor/satisfaction/edit",method:"post",data:t})}function ye(t){return Object(n["a"])({url:"/smartor/satisfaction/remove/"+t,method:"get"})}function ke(t){return Object(n["a"])({url:"/smartor/servicetask/getScriptByCondition",method:"post",data:t})}function Te(t){return Object(n["a"])({url:"/smartor/subtaskAnswer/saveMYDQuestionAnswer",method:"post",data:t})}function Ce(t){return Object(n["a"])({url:"/getDept/"+t,method:"get"})}function Se(){return Object(n["a"])({url:"/smartor/ServiceTelInfo/getList",method:"get",params:{orgid:localStorage.getItem("orgid")}})}function Le(t){return Object(n["a"])({url:"/smartor/ServiceTelInfo/setState",method:"get",params:t})}},"5a07":function(t,e,r){"use strict";r("ffe7")},de98:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"questionnaire-optimized"},[t.accomplish?r("div",{staticClass:"completion-page"},[r("div",{staticClass:"completion-content"},[r("div",{staticClass:"completion-icon"},[t._v("✓")]),r("h2",{staticClass:"completion-title"},[t._v("感谢您的配合!")]),r("p",{staticClass:"completion-message"},[t._v(" "+t._s(t.jsy?t.jsy:"生活上要劳逸结合,注意休息和营养,适当锻炼,戒烟限酒,保持心情舒畅,定期复诊。那本次回访就到这里,祝您身体健康!")+" ")])])]):r("div",{staticClass:"content-wrapper"},[r("div",{staticClass:"questionnaire-container"},[r("div",{staticClass:"questionnaire-header"},[r("h1",{staticClass:"questionnaire-title"},[t._v(" "+t._s(t.taskname?t.taskname:"问卷")+" ")]),r("div",{staticClass:"questionnaire-description"},[t._v(" "+t._s(t.kcb?t.kcb:"亲爱的患者-家属,我们是医院的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,完成这份随访问卷。")+" ")])]),r("el-divider",{staticClass:"custom-divider"}),r("div",{staticClass:"questions-section"},t._l(t.visibleQuestions,(function(e,n){return r("div",{key:e.id,staticClass:"question-item",class:{"has-warning":e.prompt&&e.scriptResult&&(2!==e.scriptType||e.scriptResult.length>0)}},[r("div",{staticClass:"question-stem"},[r("span",{staticClass:"question-number"},[t._v(t._s(t.getVisibleQuestionIndex(n))+".")]),r("span",{staticClass:"question-text"},[t._v(t._s(e.scriptContent))]),r("span",{staticClass:"question-type-tag"},[t._v(" "+t._s(1===e.scriptType?"[单选]":2===e.scriptType?"[多选]":"[问答]")+" ")])]),1!=e.scriptType||e.ishide?t._e():r("div",{staticClass:"question-options"},[r("el-radio-group",{staticClass:"options-group",model:{value:e.scriptResult,callback:function(r){t.$set(e,"scriptResult",r)},expression:"item.scriptResult"}},t._l(e.svyTaskTemplateTargetoptions,(function(o,a){return r("el-radio",{key:a,staticClass:"option-radio",class:{"abnormal-option":o.isabnormal&&e.scriptResult==o.optioncontent},attrs:{label:o.optioncontent},nativeOn:{click:function(r){return r.preventDefault(),t.handleRadioToggle(e,n,e.svyTaskTemplateTargetoptions,o.optioncontent)}}},[r("span",{staticClass:"option-text"},[t._v(t._s(o.optioncontent))])])})),1)],1),2==e.scriptType?r("div",{staticClass:"question-options"},[r("el-checkbox-group",{staticClass:"options-group",model:{value:e.scriptResult,callback:function(r){t.$set(e,"scriptResult",r)},expression:"item.scriptResult"}},t._l(e.svyTaskTemplateTargetoptions,(function(e,n){return r("el-checkbox",{key:n,staticClass:"option-checkbox",class:{"abnormal-option":e.isabnormal},attrs:{label:e.optioncontent},on:{change:function(e){return t.$forceUpdate()}}},[r("span",{staticClass:"option-text"},[t._v(t._s(e.optioncontent))])])})),1)],1):t._e(),4==e.scriptType?r("div",{staticClass:"question-input"},[r("el-input",{staticClass:"answer-textarea",attrs:{type:"textarea",rows:3,placeholder:"请输入您的回答",clearable:""},model:{value:e.scriptResult,callback:function(r){t.$set(e,"scriptResult",r)},expression:"item.scriptResult"}})],1):t._e(),r("div",{directives:[{name:"show",rawName:"v-show",value:e.prompt&&e.scriptResult&&(2!==e.scriptType||e.scriptResult.length>0),expression:"\n item.prompt &&\n item.scriptResult &&\n (item.scriptType !== 2 || item.scriptResult.length > 0)\n "}],staticClass:"question-warning"},[r("el-alert",{staticClass:"warning-alert",attrs:{title:e.prompt,type:"warning",closable:!1}})],1)])})),0),r("div",{staticClass:"submit-section"},[r("el-button",{staticClass:"submit-button",attrs:{type:"primary"},on:{click:function(e){return t.cache(!0)}}},[t._v(" 提交问卷 ")])],1)],1)])])},o=[],a=r("025b"),s=(r("9364"),r("9c42"),r("7103"),r("fb51"),r("2f82"),r("7a82"),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("40d6")),i=r("1725"),u={data:function(){return{taskid:355,patid:265823,kcb:"",excep:0,isabnormal:0,taskname:"",questionList:[],jsy:null,dialogVisible:!1,Endornot:!0,accomplish:!1,publicKey:"MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKR0yHv0rbJWQE+Sc7/FwpW66qMd9qX2k6z+SDgkSdxWh/1GbBoAP7bDQQRF6vXmoKsD2ya42H6XRLSDXAoayuMCAwEAAQ== ",privateKey:" MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAtDOpbUQhcEoYy77agRhIHmAzs7H+KHJhN56gTTI9fWq23j77nI055MFV3oQQziIrNUTNaPpEQhZXBpI0+f9K9QIDAQABAkB3n0fcWfrcoMN/FU3VnrnZOEF6CzFNxkgU9P8y36QECWKZ9JhYQkNpKrMC9oXlN3VSaRigV7B+L/I/a0Rs1W+tAiEA4jx7xcXJ4y4BNwAmVHt6NNiEkzIwWnwC/0qsEu8NsOsCIQDL6MMn1D2uznC6OuOWpxDCkBh1JL1NzZTZeH2G+hj7nwIgKGAC9tjFnvWm4dn0/T7MIIJDpsFeP8fCAS2iZ/6hwuECIAS/eLvWr1EAsZNEh8QcQ8GkBU3E+ztyjAK8UX/xFt/VAiBf79/1tDErX4/DChecM8w3c3DhbBcjuE3fHZn7p6/UKg==",formData:{question1:"",question2:"",question3:""}}},mounted:function(){},beforeDestroy:function(){},created:function(){this.geturlinfo()},computed:{visibleQuestions:function(){return Array.isArray(this.questionList)?this.questionList.filter((function(t){return!t.ishide})):[]}},methods:{geturlinfo:function(){var t=this,e=this.$route.query.p;console.log(e,"url"),Object(s["fc"])(e).then((function(e){200==e.code&&t.getQuestionnaire(e.data.param1,e.data.param2,e.data.param3,e.data.param5)}))},getQuestionnaire:function(t,e,r){var n=this;this.taskid=decodeURIComponent(t),this.patid=decodeURIComponent(e),this.taskname=decodeURIComponent(r),Object(s["sb"])({param1:this.taskid,param2:this.patid}).then((function(t){if(200==t.code){if(n.questionList=t.data.result,n.accomplish=t.data.submit,n.questionList[0])return void n.questionList.forEach((function(t){t.scriptResult&&2!=t.scriptType?t.scriptResult=JSON.parse(t.scriptResult):t.scriptResult&&2==t.scriptType&&(t.scriptResult=t.scriptResult.split("&"))}));n.getExternalfollowup()}else n.getExternalfollowup()}))},getExternalfollowup:function(){var t=this;Object(s["vb"])({param1:this.taskid,param2:this.patid}).then((function(e){200==e.code&&(t.questionList=e.data.script,t.jsy=e.data.jsy,t.kcb=e.data.kcb,t.questionList.forEach((function(t){t.nextScriptno=Number(t.nextScriptno),2==t.scriptType&&(t.scriptResult=[])})))}))},encrypt:function(t){var e=new i["a"];return e.setPublicKey(this.publicKey),e.encrypt(t)},decrypt:function(t){var e=new i["a"];return e.setPrivateKey(this.privateKey),e.decrypt(t)},submitForm:function(){var t=this,e={param1:this.taskid,param2:this.patid,excep:this.excep,isabnormal:this.isabnormal,serviceSubtaskDetailList:[]};console.log(e.isabnormal,"formisabnormal");var r=structuredClone(this.questionList);e.serviceSubtaskDetailList=r,Object(s["k"])(e).then((function(e){200==e.code&&(t.jsy&&(t.dialogVisible=!0),t.accomplish=!0,t.$modal.msgSuccess("提交成功"))}))},cache:function(t){var e=this;console.log("进入缓存");var r={param1:this.taskid,param2:this.patid,svyTaskTemplateScriptVOS:[]},n=structuredClone(this.questionList);n.forEach((function(t){t.ishide=t.ishide?1:0})),n.forEach((function(t,n){if(1==t.scriptType&&t.scriptResult){var o=t.svyTaskTemplateTargetoptions.find((function(e){return e.optioncontent==t.scriptResult}));console.log(t),console.log(o,"obj"),o.sendTaskid&&(t.sendTaskname=o.sendTaskname,t.sendTaskid=o.sendTaskid,console.log(String(o.sendTaskid).split(",")),t.sendTaskids=String(o.sendTaskid).split(",")),o&&(r.excep=o.isabnormal,r.isabnormal=o.isabnormal,1!=e.isabnormal&&o.isabnormal&&(e.excep=o.isabnormal,e.isabnormal=o.isabnormal),console.log(o.isabnormal))}})),n.forEach((function(t){2==t.scriptType&&t.scriptResult[0]?t.scriptResult=t.scriptResult.join("&"):2!=t.scriptType&&t.scriptResult&&(t.scriptResult=JSON.stringify(t.scriptResult))})),r.svyTaskTemplateScriptVOS=n,r.type=2,Object(s["a"])(r).then((function(r){200==r.code&&t&&e.submitForm()}))},getVisibleQuestionIndex:function(t){return t+1},handleRadioToggle:function(t,e,r,n){JSON.parse(JSON.stringify(this.questionList));t.scriptResult===n?(t.scriptResult="",t.isabnormal=0,t.showAppendInput=!1):(t.scriptResult=n,this.handleOptionChange(n,e,r,t)),this.$forceUpdate()},handleOptionChange:function(t,e,r,n){var o=this;console.log(t,e,r,n,"888"),document.activeElement&&document.activeElement.blur();var s=r.find((function(e){return e.optioncontent==t}));s&&(this.questionList[e].nextScriptno=s.nextQuestion,this.questionList[e].score=s.score,this.questionList[e].prompt=s.prompt),this.questionList[e].isabnormal=s.isabnormal,this.questionList[e].showAppendInput=1==s.appendflag,console.log(this.questionList);var i=this.questionList.slice(0,e).map((function(t,e){return t.ishide?e:-1})).filter((function(t){return-1!==t}));this.questionList.map((function(t,e){return t.hiddenByEnd?e:-1})).filter((function(t){return-1!==t}));if(1==n.branchFlag)if(0==s.nextQuestion)this.questionList=this.questionList.map((function(t,r){return Object(a["a"])(Object(a["a"])({},t),{},{ishide:r>e,hiddenByEnd:r>e})}));else{var u=s.nextQuestion-1;console.log(u,4),console.log(s),this.questionList=this.questionList.map((function(t,r){return r<e?Object(a["a"])(Object(a["a"])({},t),{},{ishide:i.includes(r),hiddenByEnd:!1}):r===e||r===u||t.hiddenByEnd?Object(a["a"])(Object(a["a"])({},t),{},{ishide:0,hiddenByEnd:!1}):r>e&&r<u?Object(a["a"])(Object(a["a"])({},t),{},{ishide:1,hiddenByEnd:!1}):t}))}else this.questionList=this.questionList.map((function(t,r){return Object(a["a"])(Object(a["a"])({},t),{},{ishide:r===e+1?0:t.ishide,hiddenByEnd:r!==e+1&&t.hiddenByEnd})}));this.$nextTick((function(){o.$forceUpdate()}))}}},c=u,d=(r("5a07"),r("1805")),m=Object(d["a"])(c,n,o,!1,null,"03d28532",null);e["default"]=m.exports},ffe7:function(t,e,r){}}]);
|