import{a1 as h,a2 as I,Z as E,r as N,$,_ as z,a5 as v}from"./index-design-C8wrC2s6.js";/* empty css                    */import{D}from"./segment-manage-BPdwZwQM.js";import{B as q}from"./business-rule-CBB7P4Sp.js";import{d as O,ao as r,X as l,O as s,Y as a,a1 as C,a4 as o,R as i,ab as d,$ as w,_ as B}from"./vue-BQyCGvUQ.js";import{a7 as V,a1 as k,u as R,d as F,v as K,C as M}from"./element-plus-DXXGg0hD.js";import"./svg-icons-register-D2E0-Ytb.js";import"./vue-router-3s92ZBQp.js";import"./pinia-vendor-Dca3jG8Z.js";import"./x2js-CcPE71Wh.js";import"./spark-md5-D1K1GNLF.js";import"./bpmn-js-vendor-CmbY3e_O.js";import"./element-plus/icons-vue-W2FFUolX.js";import"./feelin-BX8uiLPw.js";import"./tiny-svg-DwrM6wVX.js";import"./axios-Bz4la0P9.js";import"./vueuse-DpVqiu7V.js";import"./echarts-Sg1_iEix.js";import"./dragula-CfHszRTf.js";import"./vuedraggable-DggeXcQm.js";import"./tui-image-editor-vendor-DBxMdFCh.js";import"./fabric-Cm_BIpEs.js";import"./qrcode-DgLtAz-0.js";import"./RequestFieldTypeEnumDelDictV2-vZM38jBo.js";import"./CreateEnumItem.vue_vue_type_style_index_0_lang-DKaPRRrX.js";import"./IntercomRoom-BIowDLdp.js";import"./ChooseTranslateDialog.vue_vue_type_script_setup_true_lang-RVsN8XBU.js";import"./enum-field-manage-dPPRmhvc.js";import"./BusinessRuleListDialog-Q3wDHeAm.js";import"./product-CdbI2oTF.js";const S=O({name:"data-req-design",activated(){this.loadData()},data(){return{...$,componentName:"data-req",hid:"",loading:!0,showEditFlag:!1,detailInfo:{}}},props:{prop_entityId:{type:String,default:""}},computed:{...E,bizEntityObId(){return this.$route.query.bizEntityObId||this.prop_entityId}},components:{...I,BusinessRule:q,DataReqSegmentManage:D},mounted(){this.prop_entityId&&this.loadData()},methods:{...h,loadData(){this.loading=!0,N({method:"post",url:"/zxl_pm/request/entity.svc?cmd=getDetail",data:{zxlPrdId:this.$route.query.productId,objectType:"ZxlPrdRequestEntity",bizEntityObId:this.bizEntityObId}}).then(t=>{this.detailInfo=t,this.hid=t.hid}).finally(()=>this.loading=!1)}}}),H={style:{display:"flex","align-items":"center"}};function P(t,e,T,Z,j,L){const m=F,p=r("detail-template"),u=v,f=R,y=k,_=r("data-req-segment-manage"),c=V,b=M,g=K;return s(),l(b,{class:"app-container"},{default:a(()=>[C((s(),l(c,null,{default:a(()=>[o(y,null,{default:a(()=>[o(f,null,{title:a(()=>[i("h2",H,[d(w(t.loading?"基本信息":`${t.description} - ${t.detailInfo.bizEntityNameCn}(${t.detailInfo.bizEntityNo})的基本信息`)+" ",1),o(m,{type:"primary",link:"",style:{"margin-left":"30px"},onClick:e[0]||(e[0]=B(n=>t.showEditFlag=!0,["stop"]))},{default:a(()=>[...e[2]||(e[2]=[d("修改",-1)])]),_:1})])]),default:a(()=>[o(p,{mode:"direct",primaryKey:{fieldName:"bizEntityObId",value:t.bizEntityObId},coreName:t.coreName,refillData:t.detailInfo,showRelateObject:!1},null,8,["primaryKey","coreName","refillData"]),o(u,{modelValue:t.showEditFlag,"onUpdate:modelValue":e[1]||(e[1]=n=>t.showEditFlag=n),primaryKey:{fieldName:"bizEntityObId",value:t.bizEntityObId},coreName:t.coreName,reloadHandler:t.loadData},null,8,["modelValue","primaryKey","coreName","reloadHandler"])]),_:1})]),_:1}),i("section",null,[o(_,{fatherInfo:t.detailInfo},{header:a(()=>[...e[3]||(e[3]=[i("h2",{style:{display:"inline-block","align-items":"center"}},"数据字段",-1)])]),_:1},8,["fatherInfo"])])]),_:1})),[[g,t.loading]])]),_:1})}const Et=z(S,[["render",P],["__scopeId","data-v-58db9dba"]]);export{Et as default};
