import{X as h,a6 as I,a7 as E,U as N,a8 as z,_ as $,a9 as v}from"./index-share-B6-9kT2P.js";/* empty css                    */import{D}from"./segment-manage-DhkCsCFz.js";import{B as q}from"./business-rule-CbT0TCHf.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-CrDyBScg.js";import{a8 as V,a3 as k,u as R,d as F,v as K,C as M}from"./element-plus-BbvtkfL8.js";import"./svg-icons-register-D2E0-Ytb.js";import"./vue-router-CDV152up.js";import"./pinia-vendor-C5ybfmFP.js";import"./x2js-CcPE71Wh.js";import"./spark-md5-D1K1GNLF.js";import"./bpmn-js-vendor-Bd_1XxTD.js";import"./element-plus/icons-vue-vfyt3uzf.js";import"./feelin-UGyKEr6I.js";import"./tiny-svg-DwrM6wVX.js";import"./axios-Bz4la0P9.js";import"./vueuse-NhOBqbZl.js";import"./echarts-Sg1_iEix.js";import"./dragula-Be-__dyI.js";import"./vuedraggable-D1AhDi8L.js";import"./tui-image-editor-vendor-DBxMdFCh.js";import"./fabric-CQUnJ-mJ.js";import"./RequestFieldTypeEnumDelDictV2-Czo48ZyG.js";import"./CreateEnumItem.vue_vue_type_style_index_0_lang-DPgY-yPo.js";import"./IntercomRoom-DvhPthCC.js";import"./ChooseTranslateDialog.vue_vue_type_script_setup_true_lang-BZMnypKE.js";import"./enum-field-manage-M0SQ5AXB.js";import"./BusinessRuleListDialog-CBqsEop6.js";import"./product-DbPwd_qF.js";const S=O({name:"data-req-design",activated(){this.loadData()},data(){return{...z,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,U,X,j){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 It=$(S,[["render",P],["__scopeId","data-v-58db9dba"]]);export{It as default};
