import{A as e,M as t,T as n,X as r,dt as i,et as a,k as o,mn as s,t as c,w as l}from"./_plugin-vue_export-helper-C0lsYS1a.js";import"./style-Bvb0L3Ww.js";import{i as u}from"./GxPagination-DaT0MOF0.js";import{L as d,N as f}from"./GxDialog-DixGJxSz.js";import{t as p}from"./message-Bn2oVZM9.js";import{t as m}from"./button-CTBy3KbX.js";import{t as h}from"./message-box-DuFVMV9v.js";import"./css-Dlj1uVAN.js";import{a as g,i as _,n as v}from"./css-CNIqhbiM.js";/* empty css            */import"./css-ByTzEe1Z.js";import"./css-DkMwYtTI.js";/* empty css            *//* empty css            */import{n as y,r as b}from"./useStructurizedVersionDialog-ByTgs9AA.js";import"./validate-C3ezFD8l.js";/* empty css            */import"./request-B9wfR4zJ.js";import{f as x}from"./project-DmuW7_Il.js";/* empty css            */import"./Data_Table-D3M72EzC.js";/* empty css            */import"./dist-vqWK4Cer.js";import"./enum-BDOokdVp.js";/* empty css            */import"./api-6R2yRADk.js";import"./request-object-map-BbUK30jY.js";import"./dist-DLb51VnU.js";import"./dist-bFkGdJab.js";import"./dist-ocZsTCMM.js";import"./dist-v9np1tFX.js";import{i as S,n as C,r as w,t as T}from"./view_base_options-c2kiHw0P.js";import{n as E,r as D,t as O}from"./api-DgSILqxY.js";var k=t({name:`module-list`,activated(){this.loadData()},data(){return{...w,componentName:`module-list`,orgIdentifyIdList:[],clientTypeList:[],tableProps:{},searchString:``,showAddFlag:!1,showEditFlag:!1,selectedItem:{},multiIdentify:!1}},components:{...T},computed:{...C,productId(){return this.$route.query.productId}},mounted(){},methods:{...S,loadData(){this.$refs.mainTable.loadTableData(),x({zxlPrdId:this.$route.query.productId}).then(e=>{this.multiIdentify=e.multiIdentify})},getOrgIdentifyIdList(){D({zxlPrdId:this.$route.query.productId}).then(e=>{this.orgIdentifyIdList=e})},getClientTypeList(){E({}).then(e=>{this.clientTypeList=e})},showHisotyEdition(e){this.activeRow=e,this.openReqObjectVersionDialog(e,`module`)},deleteModule(e){let t=this;h.confirm(`确认要删除模块：${e.moduleName}？`,`提示`,{confirmButtonText:`确定`,cancelButtonText:`取消`}).then(()=>{O({moduleObId:e.moduleObId,zxlPrdId:this.$route.query.productId}).then(n=>{p({message:`已申请删除模块：`+e.moduleName,type:`success`}),t.$refs.mainTable.loadTableData()})})},search(){console.log(`search~~`)}}});function A(t,s,c,p,h,x){let S=m,C=d,w=f,T=_,E=u,D=a(`data-table`),O=g,k=b,A=y,j=a(`detail-template`),M=v;return r(),l(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(),l(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 j=c(k,[[`render`,A]]);export{j as default};