1 |
- import{_ as P,d as V,br as m,a9 as G,x as _,o as c,N as E,K as n,c as D,M as F,u as B,L as C,b as h,y as i,W as f,T as y,ao as L,a as X}from"./index.743f0c80.js";const w=[{id:"9",process_name:"\u91C7\u8D2D\u5DE5\u5DEE\u5355\u6D41\u7A0B",process_type:"CGGCD"},{id:"2",process_name:"\u91C7\u8D2D\u5355\u5165\u5E93\u6D41\u7A0B",process_type:"RKD",child:[{id:"76",process_id:"2",order_process:"0",status_name:"\u5F85\u53D1\u8D27"},{id:"77",process_id:"2",order_process:"1",status_name:"\u5F85\u5E93\u7BA1\u9A8C\u8D27"},{id:"78",process_id:"2",order_process:"2",status_name:"\u5F85\u4ED3\u5E93\u4E3B\u7BA1\u5BA1\u6838"},{id:"79",process_id:"2",order_process:"3",status_name:"\u5F85\u91C7\u8D2D\u4E3B\u7BA1\u5BA1\u6838"},{id:"81",process_id:"2",order_process:"5",status_name:"\u5F85\u586B\u5199\u7269\u6D41"}]},{id:"1",process_name:"\u91C7\u8D2D\u5355\u6D41\u7A0B",process_type:"CGD",child:[{id:"71",process_id:"1",order_process:"0",status_name:"\u5F85\u4E0E\u4F9B\u5E94\u5546\u786E\u8BA4"}]},{id:"20",process_name:"\u6709\u8D5E\u8BA2\u5355\u5BA1\u6838\u6D41\u7A0B",process_type:"YZQRD",child:[{id:"111",process_id:"20",order_process:"2",status_name:"\u5F85\u4EA7\u54C1\u5BA1\u6838"},{id:"113",process_id:"20",order_process:"4",status_name:"\u5F85\u8D22\u52A1\u5BA1\u6838"}]},{id:"19",process_name:"\u6709\u8D5E\u5546\u54C1\u4E0A\u67B6\u6D41\u7A0B",process_type:"YZSX",child:[{id:"108",process_id:"19",order_process:"0",status_name:"\u5F85\u4EA7\u54C1\u5BA1\u6838"}]},{id:"24",process_name:"\u7ADE\u4EF7\u5355\u6D41\u7A0B",process_type:"ZXD",child:[{id:"138",process_id:"24",order_process:"2",status_name:"\u62DB\u6807\u5DF2\u7ED3\u675F"},{id:"139",process_id:"24",order_process:"3",status_name:"\u5F85\u9009\u62E9\u5546\u54C1"},{id:"140",process_id:"24",order_process:"4",status_name:"\u5DF2\u9009\u5546\u54C1\u5F85\u4E0B\u5355"},{id:"143",process_id:"24",order_process:"7",status_name:"\u62DB\u6807\u5DF2\u6682\u505C"}]},{id:"14",process_name:"\u9879\u76EE\u5355\u6D41\u7A0B",process_type:"PRO",child:[{id:"18",process_id:"14",order_process:"1",status_name:"\u5F85\u5546\u54C1\u53CD\u9988"},{id:"20",process_id:"14",order_process:"3",status_name:"\u5F85\u65B9\u6848\u5236\u5B9A"},{id:"22",process_id:"14",order_process:"5",status_name:"\u9879\u76EE\u5F85\u4E0B\u5355"}]},{id:"13",process_name:"\u8BAE\u4EF7\u5355\u6D41\u7A0B",process_type:"YJD",child:[{id:"24",process_id:"13",order_process:"0",status_name:"\u5F85\u4E1A\u52A1\u5BA1\u6838"},{id:"26",process_id:"13",order_process:"2",status_name:"\u5F85\u8D22\u52A1\u4E13\u5458\u5BA1\u6838"},{id:"28",process_id:"13",order_process:"4",status_name:"\u5F85\u8D22\u52A1\u4E3B\u7BA1\u5BA1\u6838"},{id:"31",process_id:"13",order_process:"7",status_name:"\u5F85boss\u5BA1\u6838"}]},{id:"10",process_name:"\u9500\u552E\u5DE5\u5DEE\u5355\u6D41\u7A0B",process_type:"XSGCD",child:[{id:"40",process_id:"10",order_process:"1",status_name:"\u5F85\u4E1A\u52A1\u5BA1\u6838"}]},{id:"8",process_name:"\u9500\u552E\u9000\u8D27\u5355\u6D41\u7A0B",process_type:"XSTHD",child:[{id:"64",process_id:"8",order_process:"1",status_name:"\u5F85\u4E1A\u52A1\u5BA1\u6838"},{id:"65",process_id:"8",order_process:"2",status_name:"\u5F85\u4E13\u5458\u5BA1\u6838"},{id:"66",process_id:"8",order_process:"3",status_name:"\u5F85\u4E3B\u7BA1\u5BA1\u6838"}]},{id:"7",process_name:"\u552E\u540E\u9000\u8D27\u5355\u6D41\u7A0B",process_type:"CKTHD",child:[{id:"60",process_id:"7",order_process:"1",status_name:"\u9000\u8D27\u5546\u54C1\u9A8C\u6536"},{id:"61",process_id:"7",order_process:"2",status_name:"\u9000\u8D27\u9A8C\u6536\u5BA1\u6838"},{id:"62",process_id:"7",order_process:"3",status_name:"\u9000\u8D27\u4E1A\u52A1\u5BA1\u6838"}]},{id:"6",process_name:"\u552E\u540E\u7533\u8BF7\u5355\u6D41\u7A0B",process_type:"SHD",child:[{id:"51",process_id:"6",order_process:"1",status_name:"\u5F85\u4E1A\u52A1\u5BA1\u6838"},{id:"52",process_id:"6",order_process:"2",status_name:"\u5F85\u91C7\u8D2D\u5BA1\u6838"},{id:"53",process_id:"6",order_process:"3",status_name:"\u5F85\u8BBE\u7F6E\u4ED3\u5E93"},{id:"54",process_id:"6",order_process:"4",status_name:"\u5F85\u5BA2\u6237\u9000\u8D27"}]},{id:"5",process_name:"\u53D1\u8D27\u7533\u8BF7\u5355\u6D41\u7A0B",process_type:"CKD",child:[{id:"47",process_id:"5",order_process:"1",status_name:"\u5F85\u5E93\u7BA1\u53D1\u8D27"},{id:"48",process_id:"5",order_process:"2",status_name:"\u5DF2\u53D1\u8D27\u5F85\u6536\u8D27"}]},{id:"4",process_name:"\u9500\u552E\u8BA2\u5355\u6D41\u7A0B",process_type:"XSQRD"},{id:"3",process_name:"\u5907\u8D27\u7533\u8BF7\u5355\u6D41\u7A0B",process_type:"BHD",child:[{id:"36",process_id:"3",order_process:"1",status_name:"\u5F85\u91C7\u8D2D\u53CD\u9988"}]},{id:"22",process_name:"\u79BB\u804C\u4EA4\u63A5\u6D41\u7A0B",process_type:"LZJJ",child:[{id:"131",process_id:"22",order_process:"0",status_name:"\u53D1\u8D77\u5BA1\u6838\u6D41\u7A0B"},{id:"132",process_id:"22",order_process:"1",status_name:"\u5F85\u79BB\u804C\u4EA4\u63A5\u5BA1\u6838"}]},{id:"17",process_name:"\u6D3B\u52A8\u6D41\u7A0B",process_type:"HD",child:[{id:"94",process_id:"17",order_process:"0",status_name:"\u5F85\u4EA7\u54C1\u90E8\u5BA1\u6838"},{id:"95",process_id:"17",order_process:"1",status_name:"\u5F85\u91C7\u8D2D\u5B9A\u4EF7"},{id:"96",process_id:"17",order_process:"2",status_name:"\u5F85\u8D22\u52A1\u5B9A\u552E\u4EF7"},{id:"97",process_id:"17",order_process:"3",status_name:"\u5F85\u6D3B\u52A8\u4EF7\u5BA1\u6838"}]},{id:"16",process_name:"\u5546\u54C1\u4E0A\u7EBF\u6D41\u7A0B",process_type:"SPSX",child:[{id:"11",process_id:"16",order_process:"2",status_name:"\u5F85\u4EA7\u54C1\u5BA1\u6838"},{id:"12",process_id:"16",order_process:"3",status_name:"\u5F85\u8D22\u52A1\u5B9A\u4EF7"},{id:"13",process_id:"16",order_process:"4",status_name:"\u5F85\u8D22\u52A1\u5BA1\u6838\u5B9A\u4EF7"},{id:"14",process_id:"16",order_process:"5",status_name:"\u5F85\u4E0A\u7EBF"}]},{id:"15",process_name:"\u5546\u54C1\u6210\u672C\u6D41\u7A0B",process_type:"SPCB",child:[{id:"1",process_id:"15",order_process:"0",status_name:"\u65B0\u5EFA\u5F85\u5BA1\u6838"},{id:"3",process_id:"15",order_process:"2",status_name:"\u57FA\u7840\u4FEE\u6539\u5F85\u5BA1\u6838"},{id:"4",process_id:"15",order_process:"3",status_name:"\u6210\u672C\u4FEE\u6539\u5F85\u5BA1\u6838"},{id:"5",process_id:"15",order_process:"4",status_name:"\u57FA\u7840\u4FEE\u6539\u9A73\u56DE"},{id:"6",process_id:"15",order_process:"5",status_name:"\u6210\u672C\u4FEE\u6539\u9A73\u56DE"},{id:"7",process_id:"15",order_process:"6",status_name:"\u65B0\u5EFA\u5BA1\u6838\u9A73\u56DE"},{id:"8",process_id:"15",order_process:"7",status_name:"\u590D\u5236\u5546\u54C1\u5F85\u7F16\u8F91"},{id:"9",process_id:"15",order_process:"8",status_name:"\u7ADE\u4EF7\u5546\u54C1\u5F85\u7F16\u8F91"}]},{id:"12",process_name:"\u76D8\u70B9\u5355\u6D41\u7A0B",process_type:"PDD",child:[{id:"89",process_id:"12",order_process:"0",status_name:"\u5F85\u53D1\u8D77\u6D41\u7A0B"},{id:"90",process_id:"12",order_process:"1",status_name:"\u5F85\u4E0A\u4F20\u76D8\u70B9\u7ED3\u679C"},{id:"91",process_id:"12",order_process:"2",status_name:"\u5F85\u5BA1\u6838\u76D8\u70B9\u7ED3\u679C"}]},{id:"11",process_name:"\u8C03\u62E8\u5355\u6D41\u7A0B",process_type:"DBD",child:[{id:"83",process_id:"11",order_process:"0",status_name:"\u5F85\u53D1\u8D77\u6D41\u7A0B"},{id:"84",process_id:"11",order_process:"1",status_name:"\u5F85\u5165\u5E93\u65B9\u540C\u610F\u5165\u5E93"},{id:"85",process_id:"11",order_process:"2",status_name:"\u5F85\u51FA\u5E93\u65B9\u53D1\u8D27"},{id:"86",process_id:"11",order_process:"3",status_name:"\u5F85\u5165\u5E93\u65B9\u9A8C\u8D27"},{id:"87",process_id:"11",order_process:"4",status_name:"\u5F85\u9A8C\u8D27\u5BA1\u6838"}]}],H={key:0,flex:"","gap-10":""},K={fixed:"","right-5":"","bottom-5":""},N=f("\u4FDD\u5B58"),T=V({__name:"process-list",props:{currentRole:{type:Object,required:!0}},emits:["saveBtnClick"],setup(O,{emit:v}){const{data:s,run:Z}=m({initalData:[],isList:!0}),{data:a,run:J}=m({initalData:w});G(()=>{});function k(){v("saveBtnClick",B(s))}function b(d,e){const r=a.value[e].child;if(d)return r.forEach(u=>{!s.value.includes(u.id)&&s.value.push(u.id)});r.forEach(u=>{const o=s.value.findIndex(l=>l===u.id);o>=0&&s.value.splice(o,1)})}function S(d){const e=a.value[d].child,r=e.length,u=e.filter(o=>s.value.includes(o.id));return u.length>0&&u.length!==r}function g(d){const e=a.value[d].child,r=e.length;return e.filter(o=>s.value.includes(o.id)).length===r}return(d,e)=>{const r=_("ElDivider"),u=_("ElCheckbox"),o=_("ElCheckboxGroup"),l=_("ElButton"),x=_("ElScrollbar");return c(),E(x,null,{default:n(()=>[(c(!0),D(C,null,F(B(a),(p,A)=>(c(),D("div",{key:p.id,"w-full":""},[h("p",null,y(p.process_name),1),i(r,{"border-style":"dashed","m-0":""}),p.child?(c(),D("div",H,[i(u,{label:"\u5168\u9009","model-value":g(A),indeterminate:S(A),onChange:t=>b(t,A)},null,8,["model-value","indeterminate","onChange"]),i(o,{modelValue:B(s),"onUpdate:modelValue":e[0]||(e[0]=t=>L(s)?s.value=t:null)},{default:n(()=>[(c(!0),D(C,null,F(p.child,(t,R)=>(c(),E(u,{key:R,label:t.id},{default:n(()=>[f(y(t.status_name),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue"])])):X("v-if",!0),i(r)]))),128)),h("div",K,[i(l,{onClick:k,type:"primary",size:"small"},{default:n(()=>[N]),_:1})])]),_:1})}}});var I=P(T,[["__file","D:/work/accout-vue3-ui/src/views/interest/processPermission/components/process-list.vue"]]);export{I as default};
|