You can not 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
2.2KB

  1. import{d as U,r as v,c as a,e as r,G as g,i as l,f as c,F as f,H as k,g as F,t as S,h as e}from"./index.1cbb0c88.js";const D={class:"font-bold text-16"},N=U({name:"reviewCheck"}),P=Object.assign(N,{props:{detailData:{type:Object,default:()=>({})},data:{type:Array,default:()=>[]}},setup(w,{expose:C}){const s=v({reviewChecklist:w.data}),_=v();return C({validForm:n=>{_.value.validate(V=>{n(V)})},formData:s,setFormData:n=>{s.value={reviewChecklist:n.reviewChecklist}}}),(n,V)=>{const u=a("el-input"),m=a("el-form-item"),d=a("el-col"),x=a("el-row"),y=a("el-form");return r(),g(y,{ref_key:"formRef",ref:_,model:s.value,"label-suffix":":","label-position":"top","scroll-to-error":""},{default:l(()=>[(r(!0),c(f,null,k(s.value.reviewChecklist,(b,p)=>(r(),c(f,{key:p},[F("p",D,S(b.title),1),(r(!0),c(f,null,k(b.modules,(t,i)=>(r(),g(x,{key:i,gutter:16,class:"items-center"},{default:l(()=>[e(d,{span:9},{default:l(()=>[e(m,{label:t.subTitle},{default:l(()=>[e(u,{modelValue:t.content,"onUpdate:modelValue":o=>t.content=o,type:"textarea",disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:2},1024),e(d,{span:6},{default:l(()=>[e(m,{label:"\u5426\u51B3\u60C5\u5F62"},{default:l(()=>[e(u,{modelValue:t.rejectionSituation,"onUpdate:modelValue":o=>t.rejectionSituation=o,type:"textarea",disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),e(d,{span:9},{default:l(()=>[e(m,{label:"\u54CD\u5E94\u60C5\u51B5",class:"flex-form-item",style:{"margin-bottom":"14px"},prop:`reviewChecklist[${p}].modules[${i}].responseSituation`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:l(()=>[e(u,{modelValue:t.responseSituation,"onUpdate:modelValue":o=>t.responseSituation=o},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"]),e(m,{label:"\u5BF9\u5E94\u9875\u9762",class:"flex-form-item",style:{"margin-bottom":"0"},prop:`reviewChecklist[${p}].modules[${i}].corrPageNum`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:l(()=>[e(u,{modelValue:t.corrPageNum,"onUpdate:modelValue":o=>t.corrPageNum=o},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024)]),_:2},1024))),128))],64))),128))]),_:1},8,["model"])}}});export{P as default};