var E=Object.defineProperty,G=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var h=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(h)for(var t of h(e))z.call(e,t)&&v(o,t,e[t]);return o},g=(o,e)=>G(o,M(e));var d=(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 c,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 S,ad as X,V as k,G as Y}from"./vue-vendor-CxLCUzY4.js";import{h as Z,bq as $,_ as tt}from"./index-CYriLmQo.js";import"./index-BkgeZpOO.js";import{useJvxeMethod as et}from"./useJvxeMethods-BYzirYDT.js";import{w as ot,f as at,q as rt,h as mt}from"./WmsSo.api-BTPz43Gl.js";import{u as st,B as it}from"./useForm-8o5KRzWo.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./componentMap-7D1QIeNI.js";import"./useFormItem-CWa0w7fA.js";import"./index-CF_FJn6P.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JAddInput-CXT54-j9.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-BTSd5ebC.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./depart.api-C9T5xfw6.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./JSelectDept-DorRVguN.js";import"./JPopup-KP1kIsae.js";import"./JEllipsis-287cEHxd.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./JAreaLinkage-DFTeDmm8.js";import"./JCodeEditor-_KZ8XnNK.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-XK54XB3r.js";import"./vxeUtils-BuNm0uPG.js";const nt={key:0,style:{width:"100%","text-align":"center","margin-top":"10px"}},pt="/wms/wmsSo/queryById",ut=H({__name:"WmsSoForm",props:{formData:{type:Object,default:()=>{}},formBpm:{type:Boolean,default:!0}},setup(o){const e=c(!0),t=c(["wmsSoItem"]),n=c("wmsSoItem"),p=c(),b={wmsSoItem: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:D,validate:lt}]=st({labelWidth:150,schemas:mt,showActionButtonGroup:!1,baseColProps:{span:12}});Q(()=>{V()});function V(){return d(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 D(w({},s)),K(rt,{id:s.id},m,()=>{m.show=!0}),C({disabled:r.value})}})}const[q,R,K,T]=et(O,N,b,n,t);function U(){return d(this,null,function*(){yield F(),n.value="wmsSoItem",m.dataSource=[]})}function N(i){let s=Object.assign({},i.formValue);return g(w({},s),{wmsSoItemList:i.tablesValue[0].tableData})}function O(i){return d(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(q)},{default:S(()=>[f(W,{tab:"出库单子项",key:"wmsSoItem",forceRender:!0},{default:S(()=>[m.show?(_(),X(l($),{key:0,"keep-source":"",resizable:"",ref_key:"wmsSoItem",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(R)},{default:S(()=>s[1]||(s[1]=[Y("提 交")])),_:1},8,["onClick"])])):k("",!0)])}}}),de=tt(ut,[["__scopeId","data-v-34d9e444"]]);export{de as default};
