import{b as h,l as C,k as $,n as v,d as k,o as V,_ as E}from"./index-mobile-Cdp4yXnt.js";import{g as D}from"./project-RPfEzoXG.js";import{d as T,g as O,a as L}from"./index-Bn_dLABw.js";import{E as z,b as F,a0 as P,W as S,X as q,d as B,a1 as H,B as M,C as R}from"./element-plus-iuNPLb4-.js";import{d as U,ao as m,Z as u,Q as p,_ as a,m as t,ab as n,X as j}from"./vue-C-_v7KcX.js";import"./pinia-vendor-DqLuw_80.js";import"./vueuse-J27V8FGo.js";import"./axios-Bz4la0P9.js";import"./vant-BNLLsthV.js";import"./vue-router-D_nWtb8f.js";import"./vue-i18n-4yY82-Ci.js";import"./vuedraggable-DV4qFI8a.js";import"./x2js-CcPE71Wh.js";import"./spark-md5-D1K1GNLF.js";import"./bpmn-js-vendor-CwLTIyp_.js";import"./element-plus/icons-vue-Cy7qy6Bt.js";import"./feelin-Bync8taw.js";import"./tiny-svg-DwrM6wVX.js";import"./echarts-Sg1_iEix.js";import"./dragula-jclGFaB5.js";import"./tui-image-editor-vendor-DBxMdFCh.js";import"./fabric-DOAjKBsy.js";import"./postmate-Cq34cWQu.js";import"./panzoom-BXNyZ4BI.js";const A=U({name:"module-list",activated(){this.loadData()},data(){return{...v,componentName:"module-list",orgIdentifyIdList:[],clientTypeList:[],tableProps:{},searchString:"",showAddFlag:!1,showEditFlag:!1,selectedItem:{},multiIdentify:!1}},components:{...$},computed:{...C,productId(){return this.$route.query.productId}},mounted(){},methods:{...h,loadData(){this.$refs.mainTable.loadTableData(),D({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 K(e,o,f,X,Q,W){const d=B,b=q,g=S,c=P,i=M,y=m("data-table"),I=H,s=V,w=E,_=m("detail-template"),N=R;return p(),u(N,{class:"app-container"},{default:a(()=>[t(c,null,{default:a(()=>[t(g,{gutter:0},{default:a(()=>[t(b,{span:2},{default:a(()=>[t(d,{type:"primary",onClick:o[0]||(o[0]=l=>e.showAddFlag=!0)},{default:a(()=>[...o[5]||(o[5]=[n(" 新增 ",-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(),u(i,{key:0,prop:"identifyName",label:"身份"})):j("",!0),t(i,{label:"操作"},{default:a(l=>[t(d,{link:"",onClick:r=>e.show(l.row,"Detail")},{default:a(()=>[...o[6]||(o[6]=[n("详情",-1)])]),_:1},8,["onClick"]),t(d,{link:"",onClick:r=>e.show(l.row,"Edit")},{default:a(()=>[...o[7]||(o[7]=[n("修改",-1)])]),_:1},8,["onClick"]),t(d,{onClick:r=>e.showHisotyEdition(l.row),link:""},{default:a(()=>[...o[8]||(o[8]=[n("版本",-1)])]),_:1},8,["onClick"]),t(d,{onClick:r=>e.deleteModule(l.row),link:"",style:{"margin-right":"15px"}},{default:a(()=>[...o[9]||(o[9]=[n("删除",-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(w,{visible:e.StructurizedVersionDialogState.visible,"onUpdate:visible":o[3]||(o[3]=l=>e.StructurizedVersionDialogState.visible=l),mainObjectInfo:e.StructurizedVersionDialogState.mainObjectInfo},null,8,["visible","mainObjectInfo"]),t(_,{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 we=k(A,[["render",K]]);export{we as default};
