import{d as P,b7 as q,b as L,r as p,p as O,c as u,e as r,f as c,g as n,h as t,i as a,u as l,C as R,t as g,F as C,j as x,aO as S,k as T,q as M,A as W,m as F,y as D,_ as $}from"./index.0308b213.js";import{_ as G,l as H}from"./EditType.vue_vue_type_script_setup_true_lang.5b557264.js";import"./product.20e23ccf.js";const J={class:"filter-form"},K=F("\u7B5B\u9009"),Q={class:"data"},X={class:"operation-btn"},Y=F("\u6DFB\u52A0\u7C7B\u578B"),Z={class:"table"},ee={class:"ellipsis"},te={class:"name"},ae={class:"name"},le=F("\u7F16\u8F91"),oe={class:"bottom"},se={class:"pagination"},ne=P({setup(ie){q();const o=L({page:1,page_size:20,name:""}),k=p([]),B=p(0),m=()=>{H(o).then(_=>{k.value=_.lists,B.value=_.count})};m();let d=p(!1),f=p(!1),b=p(0);const w=()=>{f.value=!0,D(()=>{d.value=!0})},z=_=>{b.value=_,f.value=!0,D(()=>{d.value=!0})},E=()=>{b.value=0,d.value=!1,D(()=>{f.value=!1}),m()};return O(()=>[o.page,o.page_size],()=>{m()}),(_,s)=>{const A=u("el-input"),V=u("el-form-item"),y=u("el-button"),N=u("el-form"),i=u("el-table-column"),U=u("el-tooltip"),j=u("el-table"),I=u("el-pagination");return r(),c(C,null,[n("div",J,[t(N,{model:l(o),onSubmit:s[1]||(s[1]=R(()=>{},["prevent"]))},{default:a(()=>[t(V,{class:"tn-el-form-item",label:"\u540D\u79F0"},{default:a(()=>[t(A,{modelValue:l(o).name,"onUpdate:modelValue":s[0]||(s[0]=e=>l(o).name=e),placeholder:"\u540D\u79F0",style:{width:"auto"}},null,8,["modelValue"])]),_:1}),t(V,null,{default:a(()=>[t(y,{type:"primary",onClick:m},{default:a(()=>[K]),_:1})]),_:1})]),_:1},8,["model"])]),n("div",Q,[n("div",X,[t(y,{type:"primary",onClick:w},{default:a(()=>[Y]),_:1})]),n("div",Z,[t(j,{data:k.value},{default:a(()=>[t(i,{type:"selection",width:"55"}),t(i,{label:"ID",prop:"id"}),t(i,{label:"\u7236\u7C7B\u540D\u79F0",prop:"parent_name"}),t(i,{label:"\u540D\u79F0",prop:"type_name"}),t(i,{label:"\u8BF4\u660E"},{default:a(({row:e})=>[t(U,{class:"item",effect:"dark",content:e.desc,placement:"top"},{default:a(()=>[n("div",ee,g(e.desc),1)]),_:2},1032,["content"])]),_:1}),t(i,{label:"\u6240\u9700\u6750\u6599",prop:"material_list"},{default:a(({row:e})=>[(r(!0),c(C,null,x(e.material_list,(v,h)=>(r(),c("div",{key:h,class:"name-container"},[n("div",te,g(v),1)]))),128))]),_:1}),t(i,{label:"\u6D41\u7A0B",prop:"process_list"},{default:a(({row:e})=>[(r(!0),c(C,null,x(e.process_list,(v,h)=>(r(),c("div",{key:h,class:"name-container"},[n("div",ae,g(v),1)]))),128))]),_:1}),t(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time",sortable:"custom"},{default:a(({row:e})=>[n("div",null,g(l(S)(e.create_time)),1)]),_:1}),t(i,{label:"\u64CD\u4F5C",align:"center",width:"400"},{default:a(e=>[t(y,{type:"primary",onClick:v=>z(e.row.id)},{default:a(()=>[le]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])]),n("div",oe,[n("div",se,[t(I,{currentPage:l(o).page,"onUpdate:currentPage":s[2]||(s[2]=e=>l(o).page=e),"page-size":l(o).limit,"onUpdate:page-size":s[3]||(s[3]=e=>l(o).limit=e),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:B.value},null,8,["currentPage","page-size","total"])])]),l(f)?(r(),T(G,{key:0,modelValue:l(d),"onUpdate:modelValue":s[4]||(s[4]=e=>M(d)?d.value=e:d=e),id:l(b),onOnClose:E},null,8,["modelValue","id"])):W("",!0)],64)}}});const _e=$(ne,[["__scopeId","data-v-74198129"]]);export{_e as default};
