import{d as s,r as a,j as e,b as t,c as l,w as i,k as r,m as c,e as o,f as n,F as d,n as m,i as u,t as f,q as p}from"./index-BmnJ93Po.js";import{o as _}from"./uni-app.es.C4qf4Coy.js";import{g,d as h}from"./index.BXTZ2GXu.js";import{s as k}from"./function-call.BxuSyXbr.js";import{_ as x}from"./_plugin-vue_export-helper.BCo6x5W8.js";const j=x(s({__name:"m-process",setup(s){const x=a([]);_((()=>{j()}));const j=()=>{g("/process").then((s=>{200===s.code&&(x.value=s.data)}))},v=()=>{history.back()},C=()=>{m({url:"/pages/maintenance/p-details"})};return(s,a)=>{const m=e("van-nav-bar"),_=u;return t(),l(_,{class:"flex"},{default:i((()=>[r(m,{title:"工序项维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:v,onClickRight:C}),r(_,{class:"content"},{default:i((()=>[r(_,{class:"grid-container"},{default:i((()=>[r(_,{class:"grid-item"},{default:i((()=>[c("工序")])),_:1}),r(_,{class:"grid-item"},{default:i((()=>[c("序号")])),_:1}),r(_,{class:"grid-item"},{default:i((()=>[c("操作")])),_:1})])),_:1}),(t(!0),o(d,null,n(x.value,((s,a)=>(t(),l(_,{class:"grid-container",key:a},{default:i((()=>[r(_,{class:"grid-item"},{default:i((()=>[c(f(s.name),1)])),_:2},1024),r(_,{class:"grid-item"},{default:i((()=>[c(f(s.serialNum),1)])),_:2},1024),r(_,{class:"grid-item",style:{color:"red"},onClick:a=>(s=>{k({title:"提示",message:"是否确认删除？"}).then((()=>{let a="/process/"+s.id;h(a).then((s=>{200===s.code&&(j(),p("删除成功！"))}))})).catch((()=>{}))})(s)},{default:i((()=>[c("删除")])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:1})])),_:1})}}}),[["__scopeId","data-v-cc7e6479"]]);export{j as default};
