You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
3.0 KiB
JavaScript
2 lines
3.0 KiB
JavaScript
1 year ago
|
import{C as N}from"./index-5094bb16.js";import{f as F,b as U}from"./first_inspect-8edbcac9.js";import{u as v}from"./inquiry-227d0c94.js";import{l as q}from"./inquiry-8a7adca2.js";import{d as A,r as g,a as H,l as y,b as i,g as h,c as I,f as t,w as s,h as d,e,j as b,F as R,k as j,t as E,x as K,y as $,_ as G}from"./index-93dfb385.js";const _=r=>(K("data-v-33964863"),r=r(),$(),r),J={class:"content"},M={class:"inspect_title"},O=["src"],Q=_(()=>e("span",null,"初步诊断",-1)),W={class:"inspect_list"},X=_(()=>e("div",{class:"circle"},null,-1)),Y={class:"form_title",style:{"margin-top":"22px"}},Z=["src"],ee=_(()=>e("span",null,"请选择处置方式",-1)),te={class:"form_title",style:{"margin-top":"22px"}},se=["src"],oe=_(()=>e("span",null,"处置计划",-1)),ae=A({name:"FinishInspect",__name:"FinishInspect",props:{visible:{type:Boolean,default:!1}},emits:["update:visible","finish"],setup(r,{emit:k}){const w=r,c=g(!1),x=g([]),T=k,n=H({treatmentPlan:"",treatmentPlanType:""}),P=g(),C={treatmentPlanType:[{required:!0,message:"请选择方案",trigger:"change"}]};y(()=>c.value,a=>{T("update:visible",a)}),y(()=>w.visible,a=>{c.value=a}),y(()=>v().firstInspectList,a=>{x.value=a});const m=()=>{c.value=!1},D=a=>{a.validate(async(o,p)=>{if(o){const u={treatmentPlan:n.treatmentPlan,treatmentPlanType:n.treatmentPlanType,processId:v().processId};(await q(u)).code===200&&(v().changeActivedKey(3),m())}else return p})};return(a,o)=>{const p=i("el-radio"),u=i("el-radio-group"),f=i("el-form-item"),S=i("el-input"),z=i("el-form"),V=i("el-button"),B=i("el-dialog");return h(),I("div",null,[t(B,{width:"640","append-to-body":"","before-close":m,modelValue:c.value,"onUpdate:modelValue":o[3]||(o[3]=l=>c.value=l),"custom-class":"FinishInspect"},{header:s(()=>[t(N,{title:"确认诊断"})]),footer:s(()=>[t(V,{size:"large",onClick:o[2]||(o[2]=l=>D(P.value)),type:"primary"},{default:s(()=>[d("诊毕")]),_:1}),t(V,{size:"large",onClick:m},{default:s(()=>[d("取消")]),_:1})]),default:s(()=>[e("div",J,[e("div",M,[e("img",{src:b(F),alt:""},null,8,O),Q]),e("div",W,[(h(!0),I(R,null,j(x.value,(l,L)=>(h(),I("div",{class:"inspect_list_item",key:L},[X,e("span",null,E(l.primaryDiseaseName),1)]))),128))]),e("div",Y,[e("img",{src:b(F)},null,8,Z),ee]),t(z,{ref_key:"ruleFormRef",ref:P,model:n,"label-position":"top",rules:C,"label-width":"100px"},{default:s(()=>[t(f,{prop:"treatmentPlanType"},{default:s(()=>[t(u,{modelValue:n.treatmentPlanType,"onUpdate:modelValue":o[0]||(o[0]=l=>n.treatmentPlanType=l)},{default:s(()=>[t(p,{size:"large",label:0},{default:s(()=>[d("门诊治疗")]),_:1}),t(p,{size:"large",label:1},{default:s(()=>[d("入院治疗")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e("div",te,[e("img",{src:b(U)},null,8,se),oe]),t(f,{prop:"treatmentPlan"},{default:s(()=>[t(S,{modelValue:n.treatmentPlan,"onUpdate:modelValue":o[1]||(o[1]=l=>n.treatmentPlan=l),rows:4,type:"textarea",maxLength:500,placeholder:"请输入处置计划"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])]),_:1},8,["modelValue"])])}}});const pe=G(ae,[["__scopeId","data-v-33964863"]]);export{pe as default};
|