import{b as h,k as I,l as E,r as N,n as z,d as v,o as D}from"./index-mobile-Cdp4yXnt.js";/* empty css                    */import{D as $}from"./segment-manage-t4AzWL9W.js";import{B as q}from"./business-rule-DbKoyRm3.js";import{d as C,ao as r,Z as l,Q as s,_ as a,a3 as O,m as o,U as i,ab as d,a1 as w,a0 as k}from"./vue-C-_v7KcX.js";import{a1 as B,a2 as V,u as F,d as K,v as R,C as M}from"./element-plus-iuNPLb4-.js";import"./pinia-vendor-DqLuw_80.js";import"./vueuse-J27V8FGo.js";import"./axios-Bz4la0P9.js";import"./vant-BNLLsthV.js";import"./vue-router-D_nWtb8f.js";import"./vue-i18n-4yY82-Ci.js";import"./vuedraggable-DV4qFI8a.js";import"./x2js-CcPE71Wh.js";import"./spark-md5-D1K1GNLF.js";import"./bpmn-js-vendor-CwLTIyp_.js";import"./element-plus/icons-vue-Cy7qy6Bt.js";import"./feelin-Bync8taw.js";import"./tiny-svg-DwrM6wVX.js";import"./echarts-Sg1_iEix.js";import"./dragula-jclGFaB5.js";import"./tui-image-editor-vendor-DBxMdFCh.js";import"./fabric-DOAjKBsy.js";import"./postmate-Cq34cWQu.js";import"./panzoom-BXNyZ4BI.js";import"./RequestFieldTypeEnumDelDictV2-UIZ6nxOc.js";import"./CreateEnumItem.vue_vue_type_style_index_0_lang-D5rTi5Fw.js";import"./ChooseTranslateDialog.vue_vue_type_script_setup_true_lang-Bnt3IvVD.js";import"./enum-field-manage-BA3p2rPq.js";import"./BusinessRuleListDialog-BdyOz-0J.js";import"./product-CAsFD9WK.js";const S=C({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:$},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,Z,j){const m=K,p=r("detail-template"),u=D,f=F,y=V,_=r("data-req-segment-manage"),c=B,b=M,g=R;return s(),l(b,{class:"app-container"},{default:a(()=>[O((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]=k(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 Nt=v(S,[["render",P],["__scopeId","data-v-58db9dba"]]);export{Nt as default};
