import{$ as e,C as t,O as n,S as r,Y as i,cn as a,dt as o,ft as s,j as c,k as l,m as u}from"./vue.runtime.esm-bundler-DpGzKKN4.js";import"./GxPagination-DOexUzbO.js";import{t as d}from"./button-CHjzS7b0.js";import{n as f,t as p}from"./collapse-B9-372uV.js";import{a as m,n as h}from"./css-BYms2pL-.js";import{t as g}from"./directive-9SA1IQHd.js";import{t as _}from"./_plugin-vue_export-helper-CnS4QQza.js";import"./css-CvqL1q4I.js";import"./css-CW_FwBqc2.js";import{r as v}from"./useStructurizedVersionDialog-CNAsWSWf.js";import"./css-DunA3L7q.js";import{n as y}from"./request-CWxGgYu0.js";import"./css-70Wp40ko.js";import{i as b,n as x,r as S,t as C}from"./view_base_options-B9YSRjyH.js";import"./css-YIqg8Ucx.js";import{t as w}from"./business-rule-Ia3Q2pDC.js";import{t as T}from"./segment-manage-CUz32ngW.js";var E=c({name:`data-req-design`,activated(){this.loadData()},data(){return{...S,componentName:`data-req`,hid:``,loading:!0,showEditFlag:!1,detailInfo:{}}},props:{prop_entityId:{type:String,default:``}},computed:{...x,bizEntityObId(){return this.$route.query.bizEntityObId||this.prop_entityId}},components:{...C,BusinessRule:w,DataReqSegmentManage:T},mounted(){this.prop_entityId&&this.loadData()},methods:{...b,loadData(){this.loading=!0,y({method:`post`,url:`/zxl_pm/request/entity.svc?cmd=getDetail`,data:{zxlPrdId:this.$route.query.productId,objectType:`ZxlPrdRequestEntity`,bizEntityObId:this.bizEntityObId}}).then(e=>{this.detailInfo=e,this.hid=e.hid}).finally(()=>this.loading=!1)}}}),D={style:{display:`flex`,"align-items":`center`}};function O(c,_,y,b,x,S){let C=d,w=e(`detail-template`),T=v,E=f,O=p,k=e(`data-req-segment-manage`),A=m,j=h,M=g;return i(),t(j,{class:`app-container`},{default:o(()=>[s((i(),t(A,null,{default:o(()=>[l(O,null,{default:o(()=>[l(E,null,{title:o(()=>[r(`h2`,D,[n(a(c.loading?`基本信息`:`${c.description} - ${c.detailInfo.bizEntityNameCn}(${c.detailInfo.bizEntityNo})的基本信息`)+` `,1),l(C,{type:`primary`,link:``,style:{"margin-left":`30px`},onClick:_[0]||=u(e=>c.showEditFlag=!0,[`stop`])},{default:o(()=>[..._[2]||=[n(`修改`,-1)]]),_:1})])]),default:o(()=>[l(w,{mode:`direct`,primaryKey:{fieldName:`bizEntityObId`,value:c.bizEntityObId},coreName:c.coreName,refillData:c.detailInfo,showRelateObject:!1},null,8,[`primaryKey`,`coreName`,`refillData`]),l(T,{modelValue:c.showEditFlag,"onUpdate:modelValue":_[1]||=e=>c.showEditFlag=e,primaryKey:{fieldName:`bizEntityObId`,value:c.bizEntityObId},coreName:c.coreName,reloadHandler:c.loadData},null,8,[`modelValue`,`primaryKey`,`coreName`,`reloadHandler`])]),_:1})]),_:1}),r(`section`,null,[l(k,{fatherInfo:c.detailInfo},{header:o(()=>[..._[3]||=[r(`h2`,{style:{display:`inline-block`,"align-items":`center`}},`数据字段`,-1)]]),_:1},8,[`fatherInfo`])])]),_:1})),[[M,c.loading]])]),_:1})}var k=_(E,[[`render`,O],[`__scopeId`,`data-v-58db9dba`]]);export{k as t};