import{A as e,C as t,M as n,X as r,cn as i,dt as a,et as o,fn as s,ft as c,h as l,k as u,mn as d,t as f,w as p}from"./_plugin-vue_export-helper-C0lsYS1a.js";import{t as m}from"./button-CTBy3KbX.js";import{n as h,t as g}from"./collapse-Bn6U00Wn.js";import{a as _,n as v}from"./css-CNIqhbiM.js";import{t as y}from"./directive-2hBfY9mU.js";import{r as b}from"./useStructurizedVersionDialog-ByTgs9AA.js";import{n as x}from"./request-B9wfR4zJ.js";import{i as S,n as C,r as w,t as T}from"./view_base_options-c2kiHw0P.js";import{t as E}from"./business-rule-BrlLCtf5.js";import{t as D}from"./segment-manage-BOG2710S.js";var O=n({name:`data-req-design`,activated(){this.loadData()},data(){return{...w,componentName:`data-req`,hid:``,loading:!0,showEditFlag:!1,detailInfo:{}}},props:{prop_entityId:{type:String,default:``}},computed:{...C,bizEntityObId(){return this.$route.query.bizEntityObId||this.prop_entityId}},components:{...T,BusinessRule:E,DataReqSegmentManage:D},mounted(){this.prop_entityId&&this.loadData()},methods:{...S,loadData(){this.loading=!0,x({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)}}}),k=s({default:()=>M}),A={style:{display:`flex`,"align-items":`center`}};function j(n,s,d,f,x,S){let C=m,w=o(`detail-template`),T=b,E=h,D=g,O=o(`data-req-segment-manage`),k=_,j=v,M=y;return r(),p(j,{class:`app-container`},{default:a(()=>[c((r(),p(k,null,{default:a(()=>[e(D,null,{default:a(()=>[e(E,null,{title:a(()=>[t(`h2`,A,[u(i(n.loading?`基本信息`:`${n.description} - ${n.detailInfo.bizEntityNameCn}(${n.detailInfo.bizEntityNo})的基本信息`)+` `,1),e(C,{type:`primary`,link:``,style:{"margin-left":`30px`},onClick:s[0]||=l(e=>n.showEditFlag=!0,[`stop`])},{default:a(()=>[...s[2]||=[u(`修改`,-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":s[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(O,{fatherInfo:n.detailInfo},{header:a(()=>[...s[3]||=[t(`h2`,{style:{display:`inline-block`,"align-items":`center`}},`数据字段`,-1)]]),_:1},8,[`fatherInfo`])])]),_:1})),[[M,n.loading]])]),_:1})}var M=f(O,[[`render`,j],[`__scopeId`,`data-v-58db9dba`]]);export{k as n,M as t};