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-D2AmS0aU.js";import U from"./OnlineFormDetail-e036cd11-DsImcRh4.js";import{f as V}from"./useExtendComponent-bb7cca20-GHWcCVHB.js";import{t as j}from"./CommentPanel-eXaPNp1h.js";import{E as q}from"./constant-fa63bd66-Ddbq-fz2.js";import{c9 as z}from"./index-B_2CoVdl.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./DetailForm-4aa2570b-DhakTra8.js";import"./index-khU3p_On.js";import"./index-Dug0Hu36.js";import"./componentMap-CzCGDP7x.js";import"./index-ARbUvvsq.js";import"./index-h7B1dCH2.js";import"./user.api-BLHI3_6c.js";import"./customExpression-CGrP-C85.js";import"./index-LwlFn7Y4.js";import"./useListPage-BEtybUiF.js";import"./LinkTableListPiece-2660d709-DDMDnGr2.js";import"./OnlineSelectCascade-471fcc76-Cn70lvcH.js";import"./JModalTip-4a83aaed-DJGQp0DH.js";import"./OnlineSubFormDetail-03f8ee5c-dpujw1nw.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useForm-CcjrODHR.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JUpload-DzM-D4DX.js";import"./BasicTable-Clbg3fHx.js";import"./injectionKey-DPVn4AgL.js";import"./JAreaLinkage-CSgDAlrn.js";import"./areaDataUtil-DFHnz1wu.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JSelectDept-wKz_Qtmc.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./JCodeEditor-esTLnfS3.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-YFlAniYT.js";import"./index-CkL00Q0a.js";import"./depart.api-0qTriT9h.js";import"./JPopup-BJBYqoWe.js";import"./EasyCronInput-DclSHT47.js";import"./JEllipsis-Cn7GCKHR.js";import"./JDictSelectTag-CxpDdimB.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.js";import"./index-C3hJupKy.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};
