import{U as d,a2 as x,ad as D,af as s,k as c,G as P,ag as I,d as L,f as W,w as _}from"./vue-vendor-CxLCUzY4.js";import{B as O}from"./index-CF_FJn6P.js";import U from"./OnlineFormDetail-e036cd11-_G3_D0ap.js";import{f as V}from"./useExtendComponent-bb7cca20-qwBBEorv.js";import{t as j}from"./CommentPanel-DJGekQLW.js";import{E as q}from"./constant-fa63bd66-Ddbq-fz2.js";import{c9 as z}from"./index-CYriLmQo.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./DetailForm-4aa2570b-DVPV0ggH.js";import"./index-Bx9Mnn3N.js";import"./index-CEZCyHDA.js";import"./componentMap-7D1QIeNI.js";import"./index-BkgeZpOO.js";import"./index-C143YDY6.js";import"./user.api-BUwWVSBN.js";import"./customExpression-CGrP-C85.js";import"./index-BN5Ac_IG.js";import"./useListPage-i3Wl0_Fg.js";import"./LinkTableListPiece-2660d709-BxbO6G9v.js";import"./OnlineSelectCascade-471fcc76-BhQCunHf.js";import"./JModalTip-4a83aaed-BVM0v87K.js";import"./OnlineSubFormDetail-03f8ee5c-I9PjYtbT.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useForm-8o5KRzWo.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JUpload-pyrTRFCz.js";import"./BasicTable-DAfCfXmD.js";import"./injectionKey-DPVn4AgL.js";import"./JAreaLinkage-DFTeDmm8.js";import"./areaDataUtil-DFHnz1wu.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JSelectDept-DorRVguN.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./JCodeEditor-_KZ8XnNK.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-CXT54-j9.js";import"./index-BTSd5ebC.js";import"./depart.api-C9T5xfw6.js";import"./JPopup-KP1kIsae.js";import"./EasyCronInput-XK54XB3r.js";import"./JEllipsis-287cEHxd.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./index-CYNQc9BL.js";var A=(t,n,o)=>new Promise((l,i)=>{var p=e=>{try{m(o.next(e))}catch(r){i(r)}},a=e=>{try{m(o.throw(e))}catch(r){i(r)}},m=e=>e.done?l(e.value):Promise.resolve(e.value).then(p,a);m((o=o.apply(t,n)).next())});const E=L({name:"OnlineDetailModal",props:{id:{type:String,required:!1,default:""},source:{type:String,default:""}},components:{BasicModal:O,OnlineFormDetail:U,CommentPanel:j},emits:["success","register","formConfig"],setup(t,{emit:n}){const o=W();function l(){o.value&&o.value.reload()}const{title:i,modalWidth:p,registerModal:a,cgButtonList:m,handleCgButtonClick:e,disableSubmit:r,handleSubmit:f,submitLoading:h,handleCancel:b,handleFormConfig:C,onlineFormCompRef:g,formTemplate:w,isTreeForm:S,pidFieldName:T,renderSuccess:B,formRendered:F,showSub:N,tableName:R,formDataId:k,enableComment:v,themeTemplate:y}=V(!1,{emit:n},l);_(()=>t.id,M,{immediate:!0});function M(){return A(this,null,function*(){if(F.value=!1,!t.id)return;let u={};t.source===q&&(u.tabletype=3),yield C(t.id,u)})}return{title:i,onlineFormCompRef:g,renderSuccess:B,registerModal:a,handleSubmit:f,handleCancel:b,modalWidth:p,formTemplate:w,disableSubmit:r,cgButtonList:m,handleCgButtonClick:e,isTreeForm:S,pidFieldName:T,submitLoading:h,showSub:N,tableName:R,formDataId:k,enableComment:v,commentPanelRef:o,themeTemplate:y}}});function G(t,n,o,l,i,p){const a=d("a-button"),m=d("online-form-detail"),e=d("comment-panel"),r=d("BasicModal");return x(),D(r,I({title:t.title,width:t.modalWidth,maxHeight:600,enableComment:t.enableComment,defaultFullscreen:!1},t.$attrs,{onRegister:t.registerModal,wrapClassName:"jeecg-online-detail-modal"}),{footer:s(()=>[c(a,{key:"back",onClick:t.handleCancel},{default:s(()=>[P("关闭")]),_:1},8,["onClick"])]),comment:s(()=>[c(e,{ref:"commentPanelRef",tableName:t.tableName,dataId:t.formDataId},null,8,["tableName","dataId"])]),default:s(()=>[c(m,{ref:"onlineFormCompRef",id:t.id,"form-template":t.formTemplate,"show-sub":t.showSub,themeTemplate:t.themeTemplate,onRendered:t.renderSuccess},null,8,["id","form-template","show-sub","themeTemplate","onRendered"])]),_:1},16,["title","width","enableComment","onRegister"])}const ae=z(E,[["render",G]]);export{ae as default};
