var E=Object.defineProperty,G=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var R=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var v=(o,e,t)=>e in o?E(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,w=(o,e)=>{for(var t in e||(e={}))P.call(e,t)&&v(o,t,e[t]);if(R)for(var t of R(e))z.call(e,t)&&v(o,t,e[t]);return o},g=(o,e)=>G(o,M(e));var c=(o,e,t)=>new Promise((n,p)=>{var b=r=>{try{a(t.next(r))}catch(u){p(u)}},m=r=>{try{a(t.throw(r))}catch(u){p(u)}},a=r=>r.done?n(r.value):Promise.resolve(r.value).then(b,m);a((t=t.apply(o,e)).next())});import{d as H,f as d,r as L,e as I,o as Q,U as y,a2 as _,a3 as B,k as f,u as l,af as h,ad as X,V as k,G as Y}from"./vue-vendor-CxLCUzY4.js";import{h as Z,bq as $,_ as tt}from"./index-Cy4uayzW.js";import"./index-BN26Feep.js";import{useJvxeMethod as et}from"./useJvxeMethods-B9cBxf6D.js";import{w as ot,f as at,q as rt,h as mt}from"./WmsRo.api-DEMI2jJG.js";import{u as st,B as it}from"./useForm-DfoT2G6J.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./componentMap-0iK4HQBq.js";import"./useFormItem-IOFWTdED.js";import"./index-zKZnG1QC.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JAddInput-DP4caUmw.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-tDBMxW9-.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./depart.api-B8q8MC-j.js";import"./JImageUpload-C5OCTlCG.js";import"./JDictSelectTag-CalJXNVe.js";import"./JSelectDept-D-TUaHvK.js";import"./JPopup-CVHkQZFq.js";import"./JEllipsis-TuDc52fh.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./JAreaLinkage-CTMEfTuh.js";import"./JCodeEditor-U9QIstNN.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CZdChTcP.js";import"./vxeUtils-XAL4qcPi.js";const nt={key:0,style:{width:"100%","text-align":"center","margin-top":"10px"}},pt="/wms/wmsRo/queryById",ut=H({__name:"WmsRoForm",props:{formData:{type:Object,default:()=>{}},formBpm:{type:Boolean,default:!0}},setup(o){const e=d(!0),t=d(["wmsRoItem"]),n=d("wmsRoItem"),p=d(),b={wmsRoItem:p},m=L({loading:!1,dataSource:[],columns:ot,show:!1}),a=o,r=I(()=>!(a.formBpm===!0&&a.formData.disabled===!1)),u=I(()=>a.formBpm===!0&&a.formData.disabled===!1),[x,{setProps:C,resetFields:F,setFieldsValue:S,validate:lt}]=st({labelWidth:150,schemas:mt,showActionButtonGroup:!1,baseColProps:{span:12}});Q(()=>{D()});function D(){return c(this,null,function*(){if(a.formBpm===!0){yield U();let i={id:a.formData.dataId};const s=yield Z.get({url:pt,params:i});yield S(w({},s)),K(rt,{id:s.id},m,()=>{m.show=!0}),C({disabled:r.value})}})}const[V,q,K,T]=et(O,N,b,n,t);function U(){return c(this,null,function*(){yield F(),n.value="wmsRoItem",m.dataSource=[]})}function N(i){let s=Object.assign({},i.formValue);return g(w({},s),{wmsRoItemList:i.tablesValue[0].tableData})}function O(i){return c(this,null,function*(){yield at(i,!0)})}return(i,s)=>{const W=y("a-tab-pane"),J=y("a-tabs"),j=y("a-button");return _(),B("div",null,[f(l(it),{onRegister:l(x),ref_key:"formRef",ref:T},null,8,["onRegister"]),f(J,{activeKey:n.value,"onUpdate:activeKey":s[0]||(s[0]=A=>n.value=A),animated:"",onChange:l(V)},{default:h(()=>[f(W,{tab:"入库单子项",key:"wmsRoItem",forceRender:!0},{default:h(()=>[m.show?(_(),X(l($),{key:0,"keep-source":"",resizable:"",ref_key:"wmsRoItem",ref:p,loading:m.loading,columns:m.columns,dataSource:m.dataSource,height:340,disabled:r.value,rowNumber:!0,rowSelection:!0,toolbar:!0},null,8,["loading","columns","dataSource","disabled"])):k("",!0)]),_:1})]),_:1},8,["activeKey","onChange"]),u.value?(_(),B("div",nt,[f(j,{preIcon:"ant-design:check-outlined",style:{width:"126px"},type:"primary",onClick:l(q)},{default:h(()=>s[1]||(s[1]=[Y("提 交")])),_:1},8,["onClick"])])):k("",!0)])}}}),de=tt(ut,[["__scopeId","data-v-1ca3e02c"]]);export{de as default};
