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-XZKTTfG1.js";import U from"./OnlineFormDetail-e036cd11-BnxINQ6Y.js";import{f as V}from"./useExtendComponent-bb7cca20-DLrsSGUN.js";import{t as j}from"./CommentPanel-C19DClKt.js";import{E as q}from"./constant-fa63bd66-Ddbq-fz2.js";import{c9 as z}from"./index-CLZzJyTP.js";import"./antd-vue-vendor-CahNzUUa.js";import"./DetailForm-4aa2570b-CNmLfkjP.js";import"./index-Bn2zmO2L.js";import"./index-BZa-EKMZ.js";import"./componentMap-DpsJvoqz.js";import"./index-ByX9XNkE.js";import"./index-Bz3DhbXN.js";import"./user.api-DAu0nuTv.js";import"./customExpression-CGrP-C85.js";import"./index-KOQNKxnC.js";import"./useListPage-CevWQ3ci.js";import"./LinkTableListPiece-2660d709-C_0uiCkV.js";import"./OnlineSelectCascade-471fcc76-D9SPP1nv.js";import"./JModalTip-4a83aaed-HQN1qwWE.js";import"./OnlineSubFormDetail-03f8ee5c-BMFQbdvm.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useForm-Dx3lJ3DG.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JUpload-DgDEmizw.js";import"./BasicTable-DUJWN3yz.js";import"./injectionKey-DPVn4AgL.js";import"./JAreaLinkage-M9TGy8nY.js";import"./areaDataUtil-Dk3xkGfK.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JSelectDept-CaEHrQp6.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./JCodeEditor-CR57XeIe.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-B36c3B5x.js";import"./index-C7yPiS0L.js";import"./depart.api-DHG2p2Yd.js";import"./JPopup-BvqhHpPl.js";import"./EasyCronInput-CWOTSpxK.js";import"./JEllipsis-C_gT_vEQ.js";import"./JDictSelectTag-CfF54ALX.js";import"./JImageUpload-BFwNYdm5.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./index-CDfdiE5a.js";var A=(t,n,o)=>new Promise((p,i)=>{var l=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?p(e.value):Promise.resolve(e.value).then(l,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 p(){o.value&&o.value.reload()}const{title:i,modalWidth:l,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},p);_(()=>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:l,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,p,i,l){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 ne=z(E,[["render",G]]);export{ne as default};
