File: /var/www/html/public/static/js/singleOut-d954e4fb.js
import{ab as C}from"./message-2472a54a.js";import{useEqu as X}from"./hookSingleOut-4cefd9d4.js";import Y from"./orderList-47472051.js";import{b as Z,P as ee}from"./index.es-a2ea3a0f.js";import{d as S,o as te,Q as _,e as le,f as ae,y as l,m as n,u as t,g as i,p as k,v as u,x as c,i as g,b5 as oe,b4 as ne}from"./runtime-core.esm-bundler-6128546f.js";import{_ as ie}from"./_plugin-vue_export-helper-c27b6911.js";import"./po-fb6b3580.js";import"./index-d7b646b9.js";import"./preload-helper-78dc9057.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./vue-router-a383d220.js";import"./utils-2ab4f76a.js";import"./epTheme-686566f8.js";import"./index-a7c31d60.js";import"./focus-trap-53f1c6ab.js";import"./error-78e43d3e.js";import"./merge-f215fb43.js";const y=b=>(oe("data-v-65ce5083"),b=b(),ne(),b),se={class:"main"},re=y(()=>i("div",null,"单独出库",-1)),de={class:"related_orders_box"},pe=["onUpdate:modelValue"],ue=["onBlur","onUpdate:modelValue"],me=y(()=>i("div",{style:{"margin-top":"20px"}},null,-1)),_e=y(()=>i("div",{class:"dialog_tilte"},"添加元件",-1)),ce={class:"dialog_procure_box",style:{"margin-top":"20px"}},ge=y(()=>i("div",{class:"waybill_desc"},"选择元件ID:",-1)),be={class:"visibility"},ve={class:"demo-pagination-block"},ye={class:"primary_box button_flex"},fe=S({name:"/crm/inventory/singleOut"}),he=S({...fe,setup(b){function z(d){let e="";return O.value.forEach((r,x)=>{r.name_k==d&&(e=r.name)}),e}const{loading:U,small:N,columns:T,pagination:Ce,handleSizeChange:I,handleCurrentChange:P,selectList:D,tableDialogMate:v,addPart:$,search_key:f,btnSearchPart:w,PartList:B,handleSizeChange1:M,handleCurrentChange1:E,PartListTotal:L,partTypeData:O,selectClick1:q,partData:A,btnConfirm:j,objectSpanMethod:R,dialogTableVisible:m,btnSelect:Q,bomNum:h,eventIsNum:F,btnSubmit:G,btntakeoutAmount:H}=X();return te(()=>{}),(d,e)=>{const r=_("el-button"),x=_("el-input"),s=_("el-table-column"),J=_("el-table"),K=_("el-pagination"),V=_("el-dialog");return le(),ae("div",se,[re,l(t(ee),{title:"设备列表",selectArr:t(D)},{default:n(({size:a,checkList:W})=>[l(t(Z),{border:"","max-height":"500","align-whole":"center","table-layout":"auto",loading:t(U),size:"small",data:t(A),columns:t(T),checkList:W,"span-method":t(R),paginationSmall:a==="small","header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},onSizeChange:t(I),onCurrentChange:t(P)},{relatedOrders:n(({row:o})=>[i("div",de,[k(i("input",{type:"text",class:"input","onUpdate:modelValue":p=>o.orderNum=p},null,8,pe),[[C,o.orderNum]]),l(r,{type:"primary",plain:"",size:"small",onClick:p=>t(Q)(o)},{default:n(()=>[u("选择")]),_:2},1032,["onClick"])])]),modality_quantity:n(({row:o})=>[i("div",null,c(o.modality_quantity)+" / "+c(o.modality_name),1)]),real_amount_in_stock:n(({row:o})=>[i("div",null,c(o.real_amount_in_stock)+" / "+c(o.ours_amount_in_stock),1)]),takeout_amount:n(({row:o})=>[k(i("input",{onBlur:p=>t(H)(o),type:"text",class:"input","onUpdate:modelValue":p=>o.takeout_amount=p},null,40,ue),[[C,o.takeout_amount]])]),textarea:n(({row:o})=>[l(x,{modelValue:o.comment,"onUpdate:modelValue":p=>o.comment=p,rows:2,type:"textarea",placeholder:"备注"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["loading","data","columns","checkList","span-method","paginationSmall","header-cell-style","onSizeChange","onCurrentChange"])]),_:1},8,["selectArr"]),me,l(r,{plain:"",type:"primary",onClick:e[0]||(e[0]=a=>t($)())},{default:n(()=>[u("添加元件")]),_:1}),l(r,{type:"primary",onClick:e[1]||(e[1]=a=>t(G)())},{default:n(()=>[u("提交")]),_:1}),l(V,{modelValue:t(v),"onUpdate:modelValue":e[8]||(e[8]=a=>g(v)?v.value=a:null),title:""},{default:n(()=>[_e,i("div",null,[i("div",ce,[ge,k(i("input",{class:"input1","onUpdate:modelValue":e[2]||(e[2]=a=>g(f)?f.value=a:null),type:"text"},null,512),[[C,t(f)]]),l(r,{type:"primary",plain:"",onClick:e[3]||(e[3]=a=>t(w)())},{default:n(()=>[u("查询")]),_:1})]),i("div",be,[l(J,{ref:"multipleTableRef",data:t(B),border:"","max-height":"450",onSelect:t(q),style:{width:"100%","margin-top":"20px"}},{default:n(()=>[l(s,{fixed:"",type:"selection",width:"55"}),l(s,{type:"index",fixed:"",width:"55",label:"序号"}),l(s,{prop:"part_id",width:"180",label:"物料ID"}),l(s,{prop:"sort_name",label:"物料类别"}),l(s,{prop:"name",label:"物料编码"}),l(s,{prop:"standard_model",label:"型号规格"}),l(s,{prop:"unit_name",label:"单位"}),l(s,{prop:"category",label:"元件类别"},{default:n(a=>[u(c(z(a.row.category)),1)]),_:1}),l(s,{prop:"comp_name",label:"品牌"}),l(s,{prop:"description",label:"详细参数"}),l(s,{prop:"ours_amount_in_stock",label:"可用数量"}),l(s,{prop:"real_amount_in_stock",label:"实际数量"})]),_:1},8,["data","onSelect"])]),i("div",ve,[l(K,{"current-page":d.currentMatePage,"onUpdate:current-page":e[4]||(e[4]=a=>d.currentMatePage=a),"page-size":d.currentSizeChange,"onUpdate:page-size":e[5]||(e[5]=a=>d.currentSizeChange=a),"page-sizes":[10,15,20,25],small:t(N),disabled:d.disabled,background:d.background,layout:"total, sizes, prev, pager, next, jumper",total:t(L),onSizeChange:t(M),onCurrentChange:t(E)},null,8,["current-page","page-size","small","disabled","background","total","onSizeChange","onCurrentChange"])]),i("div",ye,[l(r,{type:"primary",onClick:e[6]||(e[6]=a=>t(j)())},{default:n(()=>[u("确定")]),_:1}),l(r,{type:"info",onClick:e[7]||(e[7]=a=>v.value=!1)},{default:n(()=>[u("关闭")]),_:1})])])]),_:1},8,["modelValue"]),l(V,{modelValue:t(m),"onUpdate:modelValue":e[11]||(e[11]=a=>g(m)?m.value=a:null),title:""},{default:n(()=>[l(Y,{bomNum:t(h),"onUpdate:bomNum":e[9]||(e[9]=a=>g(h)?h.value=a:null),dialogTableVisible:t(m),"onUpdate:dialogTableVisible":e[10]||(e[10]=a=>g(m)?m.value=a:null),onEventIsNum:t(F)},null,8,["bomNum","dialogTableVisible","onEventIsNum"])]),_:1},8,["modelValue"])])}}});const Ae=ie(he,[["__scopeId","data-v-65ce5083"]]);export{Ae as default};