import{A as e,M as t,T as n,X as r,dt as i,et as a,k as o,t as s,w as c}from"./_plugin-vue_export-helper-9JxOV_6y.js";import"./style-uQ45SeWa.js";import{i as l}from"./GxPagination-1gJXbpdv.js";import{G as u,V as d}from"./GxDialog-D15Qks3A.js";import{t as f}from"./message-Df5xzlPy.js";import{t as p}from"./button-CENWFHkZ.js";import{t as m}from"./message-box-281DaOHH.js";import"./css-kczJbcfV.js";import{a as h,i as g,n as _}from"./css-C7OSowuz.js";/* empty css            */import"./css-D9Wn5BV1.js";import"./css-DlXU0NHu.js";/* empty css            *//* empty css             */import{n as v,r as y}from"./useStructurizedVersionDialog-0SS1SzGE.js";import"./validate-D8FPRL2x.js";/* empty css            */import"./request-D0ipHUJ7.js";import{f as b}from"./project-2XcXb7qo.js";/* empty css            */import"./Data_Table-CO0OwwxJ.js";/* empty css            */import"./dist-fizESd4s.js";import"./enum-ET0qfRd1.js";/* empty css            */import"./api-BrMGQ2HQ.js";import"./request-object-map-DeVhrGNd.js";import"./dist-CzPA3L0H.js";import"./dist-wA8HUTa9.js";import"./dist-B3CIwgPS.js";import"./dist-CGCpNNkO.js";import{i as x,n as S,r as C,t as w}from"./view_base_options-B1nQ3fRa.js";import{n as T,r as E,t as D}from"./api-BKcsPtE6.js";var O=t({name:`module-list`,activated(){this.loadData()},data(){return{...C,componentName:`module-list`,orgIdentifyIdList:[],clientTypeList:[],tableProps:{},searchString:``,showAddFlag:!1,showEditFlag:!1,selectedItem:{},multiIdentify:!1}},components:{...w},computed:{...S,productId(){return this.$route.query.productId}},mounted(){},methods:{...x,loadData(){this.$refs.mainTable.loadTableData(),b({zxlPrdId:this.$route.query.productId}).then(e=>{this.multiIdentify=e.multiIdentify})},getOrgIdentifyIdList(){E({zxlPrdId:this.$route.query.productId}).then(e=>{this.orgIdentifyIdList=e})},getClientTypeList(){T({}).then(e=>{this.clientTypeList=e})},showHisotyEdition(e){this.activeRow=e,this.openReqObjectVersionDialog(e,`module`)},deleteModule(e){let t=this;m.confirm(`确认要删除模块：${e.moduleName}？`,`提示`,{confirmButtonText:`确定`,cancelButtonText:`取消`}).then(()=>{D({moduleObId:e.moduleObId,zxlPrdId:this.$route.query.productId}).then(n=>{f({message:`已申请删除模块：`+e.moduleName,type:`success`}),t.$refs.mainTable.loadTableData()})})},search(){console.log(`search~~`)}}});function k(t,s,f,m,b,x){let S=p,C=u,w=d,T=g,E=l,D=a(`data-table`),O=h,k=y,A=v,j=a(`detail-template`),M=_;return r(),c(M,{class:`app-container`},{default:i(()=>[e(T,null,{default:i(()=>[e(w,{gutter:0},{default:i(()=>[e(C,{span:2},{default:i(()=>[e(S,{type:`primary`,onClick:s[0]||=e=>t.showAddFlag=!0},{default:i(()=>[...s[5]||=[o(` 新增 `,-1)]]),_:1})]),_:1})]),_:1})]),_:1}),e(O,null,{default:i(()=>[e(D,{ref:`mainTable`,autoLoad:!1,loadUrl:`/zxl_pm/request/module.svc?cmd=getList&zxlPrdId=${t.$route.query.productId}`,tableProps:{...t.tableProps,"row-class-name":t.tableRowClassName}},{default:i(()=>[e(E,{prop:`moduleNo`,label:`模块编号`}),e(E,{prop:`moduleName`,label:`模块名称`}),t.multiIdentify?(r(),c(E,{key:0,prop:`identifyName`,label:`身份`})):n(``,!0),e(E,{label:`操作`},{default:i(n=>[e(S,{link:``,onClick:e=>t.show(n.row,`Detail`)},{default:i(()=>[...s[6]||=[o(`详情`,-1)]]),_:1},8,[`onClick`]),e(S,{link:``,onClick:e=>t.show(n.row,`Edit`)},{default:i(()=>[...s[7]||=[o(`修改`,-1)]]),_:1},8,[`onClick`]),e(S,{onClick:e=>t.showHisotyEdition(n.row),link:``},{default:i(()=>[...s[8]||=[o(`版本`,-1)]]),_:1},8,[`onClick`]),e(S,{onClick:e=>t.deleteModule(n.row),link:``,style:{"margin-right":`15px`}},{default:i(()=>[...s[9]||=[o(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`loadUrl`,`tableProps`])]),_:1}),e(k,{modelValue:t.showAddFlag,"onUpdate:modelValue":s[1]||=e=>t.showAddFlag=e,coreName:t.coreName,reloadHandler:t.loadData},null,8,[`modelValue`,`coreName`,`reloadHandler`]),e(k,{modelValue:t.showEditFlag,"onUpdate:modelValue":s[2]||=e=>t.showEditFlag=e,primaryKey:{fieldName:`moduleObId`,value:t.activeRow.moduleObId},coreName:t.coreName,reloadHandler:t.loadData},null,8,[`modelValue`,`primaryKey`,`coreName`,`reloadHandler`]),e(A,{visible:t.StructurizedVersionDialogState.visible,"onUpdate:visible":s[3]||=e=>t.StructurizedVersionDialogState.visible=e,mainObjectInfo:t.StructurizedVersionDialogState.mainObjectInfo},null,8,[`visible`,`mainObjectInfo`]),e(j,{modelValue:t.showDetailFlag,"onUpdate:modelValue":s[4]||=e=>t.showDetailFlag=e,primaryKey:{fieldName:`moduleObId`,value:t.activeRow.moduleObId},coreName:t.coreName},null,8,[`modelValue`,`primaryKey`,`coreName`])]),_:1})}var A=s(O,[[`render`,k]]);export{A as default};