import{d as e,r as l,j as a,b as t,c as o,w as d,k as u,m as s,e as n,f as m,F as r,i,t as c}from"./index-z4UiUMlV.js";import{a as f}from"./uni-app.es.DihD-zYh.js";import{_ as p}from"./_plugin-vue_export-helper.BCo6x5W8.js";const b=p(e({__name:"pass",setup(e){f((e=>{b.value=JSON.parse(e.item)}));const p=()=>{history.back()},b=l({});return(e,l)=>{const f=a("van-nav-bar"),_=a("van-field"),v=a("van-button"),V=i,g=a("van-cell-group");return t(),o(V,{class:"flex"},{default:d((()=>[u(f,{title:"现货需求单","left-text":"返回","left-arrow":"",onClickLeft:p}),u(V,{class:"content"},{default:d((()=>[u(g,{inset:""},{default:d((()=>[u(_,{modelValue:b.value.id,"onUpdate:modelValue":l[0]||(l[0]=e=>b.value.id=e),name:"需求单号",label:"需求单号",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),u(_,{modelValue:b.value.makeTime,"onUpdate:modelValue":l[1]||(l[1]=e=>b.value.makeTime=e),name:"做单日期",label:"做单日期",colon:"",class:"bor","label-width":"5em",readonly:""},null,8,["modelValue"]),u(_,{modelValue:b.value.makeUser,"onUpdate:modelValue":l[2]||(l[2]=e=>b.value.makeUser=e),name:"做单人",label:"做单人",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"]),u(_,{modelValue:b.value.color,"onUpdate:modelValue":l[3]||(l[3]=e=>b.value.color=e),name:"颜色色号",label:"颜色色号",colon:"",readonly:"","label-width":"5em"},null,8,["modelValue"]),u(_,{modelValue:b.value.craft,"onUpdate:modelValue":l[4]||(l[4]=e=>b.value.craft=e),name:"工艺",label:"工艺",colon:"",readonly:"","label-width":"5em",class:"bor"},null,8,["modelValue"]),u(V,{class:"a-b"},{default:d((()=>[u(v,{type:"primary"},{default:d((()=>[s("面料添加")])),_:1})])),_:1}),u(V,{class:"grid-container"},{default:d((()=>[u(V,{class:"grid-item"},{default:d((()=>[s("面料名称")])),_:1}),u(V,{class:"grid-item"},{default:d((()=>[s("匹数")])),_:1}),u(V,{class:"grid-item"},{default:d((()=>[s("库存")])),_:1}),u(V,{class:"grid-item"},{default:d((()=>[s("谁定")])),_:1}),u(V,{class:"grid-item"},{default:d((()=>[s("操作")])),_:1})])),_:1}),(t(!0),n(r,null,m(b.value.fabric,((e,l)=>(t(),o(V,{class:"grid-container",key:l},{default:d((()=>[u(V,{class:"grid-item"},{default:d((()=>[s(c(e.name),1)])),_:2},1024),u(V,{class:"grid-item"},{default:d((()=>[u(_,{modelValue:e.quantity,"onUpdate:modelValue":l=>e.quantity=l,class:"bor",type:"number"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),u(V,{class:"grid-item"},{default:d((()=>[s(c(e.storageQuantity),1)])),_:2},1024),u(V,{class:"grid-item"},{default:d((()=>[s(c(e.belongTo),1)])),_:2},1024),u(V,{class:"grid-item",style:{color:"red"},onClick:e=>b.value.fabric.splice(l,1)},{default:d((()=>[s("删除")])),_:2},1032,["onClick"])])),_:2},1024)))),128)),u(_,{modelValue:b.value.comment,"onUpdate:modelValue":l[5]||(l[5]=e=>b.value.comment=e),name:"备注",label:"备注",colon:"","label-width":"5em",readonly:""},null,8,["modelValue"])])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-1ddb6145"]]);export{b as default};
