import{$ as e,C as t,O as n,Y as r,dt as i,j as a,k as o,w as s}from"./vue.runtime.esm-bundler-DpGzKKN4.js";import"./GxPagination-DOexUzbO.js";import{n as c}from"./table-C_Bpc8FZ.js";import{n as l,o as u}from"./switch-CGmtldbS.js";import{t as d}from"./message-XPlwcXDH.js";import{t as f}from"./button-CHjzS7b0.js";import{t as p}from"./message-box-DHGKoTag.js";import{a as m,i as h,n as g}from"./css-BYms2pL-.js";import{t as _}from"./_plugin-vue_export-helper-CnS4QQza.js";import"./css-CvqL1q4I.js";import"./css-Cz1Qpx-y.js";import{n as v,r as y}from"./useStructurizedVersionDialog-CNAsWSWf.js";import"./css-DunA3L7q.js";import{f as b}from"./project-DYXf60Qj.js";import"./css-BrGVMe3H.js";import{i as x,n as S,r as C,t as w}from"./view_base_options-B9YSRjyH.js";import{n as T,r as E,t as D}from"./api-C09Zqq5K.js";var O=a({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;p.confirm(`确认要删除模块：${e.moduleName}？`,`提示`,{confirmButtonText:`确定`,cancelButtonText:`取消`}).then(()=>{D({moduleObId:e.moduleObId,zxlPrdId:this.$route.query.productId}).then(n=>{d({message:`已申请删除模块：`+e.moduleName,type:`success`}),t.$refs.mainTable.loadTableData()})})},search(){console.log(`search~~`)}}});function k(a,d,p,_,b,x){let S=f,C=u,w=l,T=h,E=c,D=e(`data-table`),O=m,k=y,A=v,j=e(`detail-template`),M=g;return r(),t(M,{class:`app-container`},{default:i(()=>[o(T,null,{default:i(()=>[o(w,{gutter:0},{default:i(()=>[o(C,{span:2},{default:i(()=>[o(S,{type:`primary`,onClick:d[0]||=e=>a.showAddFlag=!0},{default:i(()=>[...d[5]||=[n(` 新增 `,-1)]]),_:1})]),_:1})]),_:1})]),_:1}),o(O,null,{default:i(()=>[o(D,{ref:`mainTable`,autoLoad:!1,loadUrl:`/zxl_pm/request/module.svc?cmd=getList&zxlPrdId=${a.$route.query.productId}`,tableProps:{...a.tableProps,"row-class-name":a.tableRowClassName}},{default:i(()=>[o(E,{prop:`moduleNo`,label:`模块编号`}),o(E,{prop:`moduleName`,label:`模块名称`}),a.multiIdentify?(r(),t(E,{key:0,prop:`identifyName`,label:`身份`})):s(``,!0),o(E,{label:`操作`},{default:i(e=>[o(S,{link:``,onClick:t=>a.show(e.row,`Detail`)},{default:i(()=>[...d[6]||=[n(`详情`,-1)]]),_:1},8,[`onClick`]),o(S,{link:``,onClick:t=>a.show(e.row,`Edit`)},{default:i(()=>[...d[7]||=[n(`修改`,-1)]]),_:1},8,[`onClick`]),o(S,{onClick:t=>a.showHisotyEdition(e.row),link:``},{default:i(()=>[...d[8]||=[n(`版本`,-1)]]),_:1},8,[`onClick`]),o(S,{onClick:t=>a.deleteModule(e.row),link:``,style:{"margin-right":`15px`}},{default:i(()=>[...d[9]||=[n(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`loadUrl`,`tableProps`])]),_:1}),o(k,{modelValue:a.showAddFlag,"onUpdate:modelValue":d[1]||=e=>a.showAddFlag=e,coreName:a.coreName,reloadHandler:a.loadData},null,8,[`modelValue`,`coreName`,`reloadHandler`]),o(k,{modelValue:a.showEditFlag,"onUpdate:modelValue":d[2]||=e=>a.showEditFlag=e,primaryKey:{fieldName:`moduleObId`,value:a.activeRow.moduleObId},coreName:a.coreName,reloadHandler:a.loadData},null,8,[`modelValue`,`primaryKey`,`coreName`,`reloadHandler`]),o(A,{visible:a.StructurizedVersionDialogState.visible,"onUpdate:visible":d[3]||=e=>a.StructurizedVersionDialogState.visible=e,mainObjectInfo:a.StructurizedVersionDialogState.mainObjectInfo},null,8,[`visible`,`mainObjectInfo`]),o(j,{modelValue:a.showDetailFlag,"onUpdate:modelValue":d[4]||=e=>a.showDetailFlag=e,primaryKey:{fieldName:`moduleObId`,value:a.activeRow.moduleObId},coreName:a.coreName},null,8,[`modelValue`,`primaryKey`,`coreName`])]),_:1})}var A=_(O,[[`render`,k]]);export{A as default};