import{A as e,C as t,M as n,X as r,cn as i,dt as a,et as o,ft as s,h as c,k as l,t as u,w as d}from"./_plugin-vue_export-helper-9JxOV_6y.js";import{t as f}from"./button-CENWFHkZ.js";import{n as p,t as m}from"./collapse-BzzHlyd2.js";import{a as h,n as g}from"./css-C7OSowuz.js";import{t as _}from"./directive-CkUp73VW.js";import{r as v}from"./useStructurizedVersionDialog-Z2GQgiO7.js";import{n as y}from"./request-D0ipHUJ7.js";import{i as b,n as x,r as S,t as C}from"./view_base_options-tpLT5NKN.js";import{t as w}from"./business-rule-BhhZi2B2.js";import{t as T}from"./segment-manage-DoS1TWGE.js";var E=n({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(n,u,y,b,x,S){let C=f,w=o(`detail-template`),T=v,E=p,O=m,k=o(`data-req-segment-manage`),A=h,j=g,M=_;return r(),d(j,{class:`app-container`},{default:a(()=>[s((r(),d(A,null,{default:a(()=>[e(O,null,{default:a(()=>[e(E,null,{title:a(()=>[t(`h2`,D,[l(i(n.loading?`基本信息`:`${n.description} - ${n.detailInfo.bizEntityNameCn}(${n.detailInfo.bizEntityNo})的基本信息`)+` `,1),e(C,{type:`primary`,link:``,style:{"margin-left":`30px`},onClick:u[0]||=c(e=>n.showEditFlag=!0,[`stop`])},{default:a(()=>[...u[2]||=[l(`修改`,-1)]]),_:1})])]),default:a(()=>[e(w,{mode:`direct`,primaryKey:{fieldName:`bizEntityObId`,value:n.bizEntityObId},coreName:n.coreName,refillData:n.detailInfo,showRelateObject:!1},null,8,[`primaryKey`,`coreName`,`refillData`]),e(T,{modelValue:n.showEditFlag,"onUpdate:modelValue":u[1]||=e=>n.showEditFlag=e,primaryKey:{fieldName:`bizEntityObId`,value:n.bizEntityObId},coreName:n.coreName,reloadHandler:n.loadData},null,8,[`modelValue`,`primaryKey`,`coreName`,`reloadHandler`])]),_:1})]),_:1}),t(`section`,null,[e(k,{fatherInfo:n.detailInfo},{header:a(()=>[...u[3]||=[t(`h2`,{style:{display:`inline-block`,"align-items":`center`}},`数据字段`,-1)]]),_:1},8,[`fatherInfo`])])]),_:1})),[[M,n.loading]])]),_:1})}var k=u(E,[[`render`,O],[`__scopeId`,`data-v-58db9dba`]]);export{k as t};