import{_ as h}from"./index-sxX6oYqj.js";import{_ as C,a as $}from"./add-or-edit.vue_vue_type_style_index_0_lang-DU4oKO67.js";/* empty css                        *//* empty css                  */import{b as v,c as V,a as k,e as D}from"./view_base_options-B9MEmwMX.js";import{p as E}from"./project-FP849N9h.js";import{d as T,g as O,a as L}from"./index-CafwlHru.js";import{B as z,o as F,n as P,m as q,C as S,K as B,k as H,l as M,r as R}from"./element-plus-xvP3-5Ws.js";import{d as U,V as m,W as a,aq as u,N as p,a1 as t,_ as d,Y as K}from"./vue-ChXMuCsz.js";import"./vue-router-CTTnLdLz.js";import"./element-plus/icons-vue-2sk4hdpg.js";import"./index-BPkXZdhA.js";/* empty css                   *//* empty css                   */import"./request-yGlVfSRy.js";import"./pinia-vendor-H-YmYYbA.js";/* empty css                     */import"./api-BltKmiW7.js";import"./request-object-map-Ffk0JZ0p.js";import"./bpmn-js-vendor-DQM0iEEi.js";import"./feelin-63dveMpj.js";/* empty css                    */import"./Data_Table-8GrTVIee.js";const j=U({name:"module-list",activated(){this.loadData()},data(){return{...D,componentName:"module-list",orgIdentifyIdList:[],clientTypeList:[],tableProps:{},searchString:"",showAddFlag:!1,showEditFlag:!1,selectedItem:{},multiIdentify:!1}},components:{...k},computed:{...V,productId(){return this.$route.query.productId}},mounted(){},methods:{...v,loadData(){this.$refs.mainTable.loadTableData(),E({zxlPrdId:this.$route.query.productId}).then(e=>{this.multiIdentify=e.multiIdentify})},getOrgIdentifyIdList(){L({zxlPrdId:this.$route.query.productId}).then(e=>{this.orgIdentifyIdList=e})},getClientTypeList(){O({}).then(e=>{this.clientTypeList=e})},showHisotyEdition(e){this.activeRow=e,this.openReqObjectVersionDialog(e,"module")},deleteModule(e){let o=this;z.confirm(`确认要删除模块：${e.moduleName}？`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(()=>{T({moduleObId:e.moduleObId,zxlPrdId:this.$route.query.productId}).then(f=>{F({message:"已申请删除模块："+e.moduleName,type:"success"}),o.$refs.mainTable.loadTableData()})})},search(){console.log("search~~")}}});function A(e,o,f,W,Y,G){const n=H,b=B,c=S,g=q,i=R,y=u("data-table"),I=M,s=C,_=$,w=u("detail-template"),N=P;return p(),m(N,{class:"app-container"},{default:a(()=>[t(g,null,{default:a(()=>[t(c,{gutter:0},{default:a(()=>[t(b,{span:2},{default:a(()=>[t(n,{type:"primary",onClick:o[0]||(o[0]=l=>e.showAddFlag=!0)},{default:a(()=>[...o[5]||(o[5]=[d(" 新增 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),t(I,null,{default:a(()=>[t(y,{ref:"mainTable",autoLoad:!1,loadUrl:`/zxl_pm/request/module.svc?cmd=getList&zxlPrdId=${e.$route.query.productId}`,tableProps:{...e.tableProps,"row-class-name":e.tableRowClassName}},{default:a(()=>[t(i,{prop:"moduleNo",label:"模块编号"}),t(i,{prop:"moduleName",label:"模块名称"}),e.multiIdentify?(p(),m(i,{key:0,prop:"identifyName",label:"身份"})):K("",!0),t(i,{label:"操作"},{default:a(l=>[t(n,{link:"",onClick:r=>e.show(l.row,"Detail")},{default:a(()=>[...o[6]||(o[6]=[d("详情",-1)])]),_:1},8,["onClick"]),t(n,{link:"",onClick:r=>e.show(l.row,"Edit")},{default:a(()=>[...o[7]||(o[7]=[d("修改",-1)])]),_:1},8,["onClick"]),t(n,{onClick:r=>e.showHisotyEdition(l.row),link:""},{default:a(()=>[...o[8]||(o[8]=[d("版本",-1)])]),_:1},8,["onClick"]),t(n,{onClick:r=>e.deleteModule(l.row),link:"",style:{"margin-right":"15px"}},{default:a(()=>[...o[9]||(o[9]=[d("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["loadUrl","tableProps"])]),_:1}),t(s,{modelValue:e.showAddFlag,"onUpdate:modelValue":o[1]||(o[1]=l=>e.showAddFlag=l),coreName:e.coreName,reloadHandler:e.loadData},null,8,["modelValue","coreName","reloadHandler"]),t(s,{modelValue:e.showEditFlag,"onUpdate:modelValue":o[2]||(o[2]=l=>e.showEditFlag=l),primaryKey:{fieldName:"moduleObId",value:e.activeRow.moduleObId},coreName:e.coreName,reloadHandler:e.loadData},null,8,["modelValue","primaryKey","coreName","reloadHandler"]),t(_,{visible:e.StructurizedVersionDialogState.visible,"onUpdate:visible":o[3]||(o[3]=l=>e.StructurizedVersionDialogState.visible=l),mainObjectInfo:e.StructurizedVersionDialogState.mainObjectInfo},null,8,["visible","mainObjectInfo"]),t(w,{modelValue:e.showDetailFlag,"onUpdate:modelValue":o[4]||(o[4]=l=>e.showDetailFlag=l),primaryKey:{fieldName:"moduleObId",value:e.activeRow.moduleObId},coreName:e.coreName},null,8,["modelValue","primaryKey","coreName"])]),_:1})}const Ie=h(j,[["render",A]]);export{Ie as default};
