feat: add run.ps1 script to start projects easily
add a powershell script that supports starting MES, WMS, WMSClient, Workstation and Dashboard projects with one command, includes build and run logic for backend services and npm dev for dashboard
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import{j as N,m as h,w as o,k,h as c,r as n,i as q,o as M,a as e,g as f,f as d,t as x,E as b}from"./index-DK0Mia3I.js";const S={__name:"MaterialRequest",setup(C){const t=k({planDate:"",orderNo:"",status:""}),i=q([]);async function s(){i.value=await c.get("/material-requests",{params:t})||[]}async function w(){if(!t.planDate)return b.warning("请先选择排产日期");const p=await c.post("/material-requests/generate",{planDate:t.planDate});b.success(`已生成 ${(p==null?void 0:p.count)||0} 条备料`),s()}return N(()=>{t.planDate=new Date().toISOString().slice(0,10),s()}),(p,l)=>{const y=n("el-date-picker"),u=n("el-form-item"),m=n("el-input"),_=n("el-button"),D=n("el-form"),a=n("el-table-column"),g=n("el-table"),V=n("el-card");return M(),h(V,null,{default:o(()=>[e(D,{inline:""},{default:o(()=>[e(u,{label:"日期"},{default:o(()=>[e(y,{modelValue:t.planDate,"onUpdate:modelValue":l[0]||(l[0]=r=>t.planDate=r),type:"date","value-format":"YYYY-MM-DD",onChange:s},null,8,["modelValue"])]),_:1}),e(u,{label:"工单号"},{default:o(()=>[e(m,{modelValue:t.orderNo,"onUpdate:modelValue":l[1]||(l[1]=r=>t.orderNo=r),clearable:"",style:{width:"160px"},onKeyup:f(s,["enter"])},null,8,["modelValue"])]),_:1}),e(u,{label:"状态"},{default:o(()=>[e(m,{modelValue:t.status,"onUpdate:modelValue":l[2]||(l[2]=r=>t.status=r),style:{width:"120px"},onKeyup:f(s,["enter"])},null,8,["modelValue"])]),_:1}),e(u,null,{default:o(()=>[e(_,{type:"primary",onClick:s},{default:o(()=>[...l[3]||(l[3]=[d("查询",-1)])]),_:1}),e(_,{type:"success",onClick:w},{default:o(()=>[...l[4]||(l[4]=[d("按日排产生成备料",-1)])]),_:1})]),_:1})]),_:1}),e(g,{data:i.value,border:"",size:"small"},{default:o(()=>[e(a,{prop:"requestNo",label:"备料单号","min-width":"180"}),e(a,{prop:"orderNo",label:"工单号","min-width":"130"}),e(a,{prop:"planDate",label:"排产日期",width:"110"}),e(a,{prop:"materialCode",label:"物料编码","min-width":"110"}),e(a,{prop:"materialName",label:"物料名称","min-width":"110"}),e(a,{prop:"unit",label:"单位",width:"70"}),e(a,{prop:"manageMode",label:"管理方式",width:"110"},{default:o(({row:r})=>[d(x(r.manageMode==="1"?"SN":"批次"),1)]),_:1}),e(a,{prop:"reqQty",label:"需求数量",width:"90"}),e(a,{prop:"status",label:"状态",width:"90"}),e(a,{prop:"operator",label:"操作人",width:"90"})]),_:1},8,["data"])]),_:1})}}};export{S as default};
|
||||
Reference in New Issue
Block a user