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 n,f as o,F as d,n as u,i as m,t as f,q as p}from"./index-z4UiUMlV.js";import{o as _}from"./uni-app.es.DihD-zYh.js";import{g,s as h,d as k}from"./index.Wwo-uIrA.js";import{_ as x}from"./_plugin-vue_export-helper.BCo6x5W8.js";const v=x(s({__name:"m-process",setup(s){const x=a([]);_((()=>{v()}));const v=()=>{g("/process").then((s=>{200===s.code&&(x.value=s.data)}))},j=()=>{history.back()},C=()=>{u({url:"/pages/maintenance/p-details"})};return(s,a)=>{const u=e("van-nav-bar"),_=m;return t(),l(_,{class:"flex"},{default:i((()=>[r(u,{title:"工序项维护","left-text":"返回","left-arrow":"","right-text":"新增",onClickLeft:j,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),n(d,null,o(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=>{h({title:"提示",message:"是否确认删除？"}).then((()=>{let a="/process/"+s.id;k(a).then((s=>{200===s.code&&(v(),p("删除成功！"))}))})).catch((()=>{}))})(s)},{default:i((()=>[c("删除")])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:1})])),_:1})}}}),[["__scopeId","data-v-cc7e6479"]]);export{v as default};
