import{X as h,a7 as C,a6 as $,a8 as v,_ as V,a9 as k,$ as E}from"./index-share-B6-9kT2P.js";import{g as D}from"./project-vKXnb7fC.js";import{d as O,g as T,a as L}from"./index-zzSINHgx.js";import{b as z,E as F,a7 as P,W as S,X as q,d as B,a8 as H,B as U,C as M}from"./element-plus-BbvtkfL8.js";import{d as R,ao as m,X as u,O as p,Y as l,a4 as t,ab as n,U as j}from"./vue-CrDyBScg.js";import"./svg-icons-register-D2E0-Ytb.js";import"./vue-router-CDV152up.js";import"./pinia-vendor-C5ybfmFP.js";import"./x2js-CcPE71Wh.js";import"./spark-md5-D1K1GNLF.js";import"./bpmn-js-vendor-Bd_1XxTD.js";import"./element-plus/icons-vue-vfyt3uzf.js";import"./feelin-UGyKEr6I.js";import"./tiny-svg-DwrM6wVX.js";import"./axios-Bz4la0P9.js";import"./vueuse-NhOBqbZl.js";import"./echarts-Sg1_iEix.js";import"./dragula-Be-__dyI.js";import"./vuedraggable-D1AhDi8L.js";import"./tui-image-editor-vendor-DBxMdFCh.js";import"./fabric-CQUnJ-mJ.js";const A=R({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(){T({}).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(()=>{O({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,W,Y){const d=B,b=q,g=S,c=P,i=U,y=m("data-table"),I=H,s=k,w=E,N=m("detail-template"),_=M;return p(),u(_,{class:"app-container"},{default:l(()=>[t(c,null,{default:l(()=>[t(g,{gutter:0},{default:l(()=>[t(b,{span:2},{default:l(()=>[t(d,{type:"primary",onClick:o[0]||(o[0]=a=>e.showAddFlag=!0)},{default:l(()=>[...o[5]||(o[5]=[n(" 新增 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),t(I,null,{default:l(()=>[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:l(()=>[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:l(a=>[t(d,{link:"",onClick:r=>e.show(a.row,"Detail")},{default:l(()=>[...o[6]||(o[6]=[n("详情",-1)])]),_:1},8,["onClick"]),t(d,{link:"",onClick:r=>e.show(a.row,"Edit")},{default:l(()=>[...o[7]||(o[7]=[n("修改",-1)])]),_:1},8,["onClick"]),t(d,{onClick:r=>e.showHisotyEdition(a.row),link:""},{default:l(()=>[...o[8]||(o[8]=[n("版本",-1)])]),_:1},8,["onClick"]),t(d,{onClick:r=>e.deleteModule(a.row),link:"",style:{"margin-right":"15px"}},{default:l(()=>[...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]=a=>e.showAddFlag=a),coreName:e.coreName,reloadHandler:e.loadData},null,8,["modelValue","coreName","reloadHandler"]),t(s,{modelValue:e.showEditFlag,"onUpdate:modelValue":o[2]||(o[2]=a=>e.showEditFlag=a),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]=a=>e.StructurizedVersionDialogState.visible=a),mainObjectInfo:e.StructurizedVersionDialogState.mainObjectInfo},null,8,["visible","mainObjectInfo"]),t(N,{modelValue:e.showDetailFlag,"onUpdate:modelValue":o[4]||(o[4]=a=>e.showDetailFlag=a),primaryKey:{fieldName:"moduleObId",value:e.activeRow.moduleObId},coreName:e.coreName},null,8,["modelValue","primaryKey","coreName"])]),_:1})}const ce=V(A,[["render",K]]);export{ce as default};
