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-CS4FI5Lo.js";import{G as u,V as d}from"./GxDialog-CFvkSS2u.js";import{t as f}from"./message-ClNpdsVP.js";import{t as p}from"./button-BmZH_xSR.js";import{t as m}from"./message-box-q2bM3KqJ.js";import"./css-COm46Nlm.js";import{a as h,i as g,n as _}from"./css-fMDhFlct.js";/* empty css            */import"./css-CYCIpdQd.js";import"./css-D9Wn5BV1.js";/* empty css            *//* empty css            */import{n as v,r as y}from"./useStructurizedVersionDialog-Bub-H4iG.js";import"./validate-xgwjLZZ4.js";/* empty css            */import"./request-BvcjdDug.js";import{f as b}from"./project-2prMzkbr.js";/* empty css            */import"./Data_Table-Ck0Hbek0.js";/* empty css            */import"./dist-CbnK6oQ4.js";import"./enum-ojXbJSfr.js";/* empty css            */import"./api-B-rZ1TR9.js";import"./request-object-map-jH6wehOh.js";import"./dist-B8tH5cbJ.js";import"./dist-4Ihk7icp.js";import"./dist-FxzpKE0d.js";import"./dist-lfqR52a1.js";import{i as x,n as S,r as C,t as w}from"./view_base_options-DGV97Tsn.js";import{n as T,r as E,t as D}from"./api-TlBe3uA1.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};