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=a=>{try{r(t.next(a))}catch(u){p(u)}},m=a=>{try{r(t.throw(a))}catch(u){p(u)}},r=a=>a.done?n(a.value):Promise.resolve(a.value).then(b,m);r((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-CLZzJyTP.js";import"./index-ByX9XNkE.js";import{useJvxeMethod as et}from"./useJvxeMethods-DmJn8BNm.js";import{w as ot,f as rt,q as at,h as mt}from"./WmsSo.api-S0xSb5jy.js";import{u as st,B as it}from"./useForm-Dx3lJ3DG.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./componentMap-DpsJvoqz.js";import"./useFormItem-IOFWTdED.js";import"./index-XZKTTfG1.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JAddInput-B36c3B5x.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-C7yPiS0L.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./depart.api-DHG2p2Yd.js";import"./JImageUpload-BFwNYdm5.js";import"./JDictSelectTag-CfF54ALX.js";import"./JSelectDept-CaEHrQp6.js";import"./JPopup-BvqhHpPl.js";import"./JEllipsis-C_gT_vEQ.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./JAreaLinkage-M9TGy8nY.js";import"./JCodeEditor-CR57XeIe.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CWOTSpxK.js";import"./vxeUtils-D_h6Rytj.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}),r=o,a=I(()=>!(r.formBpm===!0&&r.formData.disabled===!1)),u=I(()=>r.formBpm===!0&&r.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(r.formBpm===!0){yield U();let i={id:r.formData.dataId};const s=yield Z.get({url:pt,params:i});yield D(w({},s)),K(at,{id:s.id},m,()=>{m.show=!0}),C({disabled:a.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 rt(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:a.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)])}}}),ce=tt(ut,[["__scopeId","data-v-34d9e444"]]);export{ce as default};
