var g=Object.defineProperty;var u=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var f=(o,r,t)=>r in o?g(o,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[r]=t,y=(o,r)=>{for(var t in r||(r={}))B.call(r,t)&&f(o,t,r[t]);if(u)for(var t of u(r))v.call(r,t)&&f(o,t,r[t]);return o};var l=(o,r,t)=>new Promise((n,a)=>{var p=e=>{try{m(t.next(e))}catch(s){a(s)}},i=e=>{try{m(t.throw(e))}catch(s){a(s)}},m=e=>e.done?n(e.value):Promise.resolve(e.value).then(p,i);m((t=t.apply(o,r)).next())});import"./index-BN26Feep.js";import{d as w,e as O,U as F,a2 as h,a3 as _,k as b,af as k,G as C,V as I}from"./vue-vendor-CxLCUzY4.js";import{h as V,F as D,_ as x}from"./index-Cy4uayzW.js";import{f as $,i as N}from"./XhOutOrderDeliveryItem.api-VvgoPEvs.js";import{u as U,B as j}from"./useForm-DfoT2G6J.js";import"./componentMap-0iK4HQBq.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useFormItem-IOFWTdED.js";import"./index-zKZnG1QC.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.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";const q=w({name:"XhOutOrderDeliveryItemForm",components:{BasicForm:j},props:{formData:D.object.def({}),formBpm:D.bool.def(!0)},setup(o){const[r,{setFieldsValue:t,setProps:n,getFieldsValue:a}]=U({labelWidth:150,schemas:N(o.formData),showActionButtonGroup:!1,baseColProps:{span:24}}),p=O(()=>o.formData.disabled!==!1);let i={};const m="/wms/xhOutOrderDeliveryItem/queryById";function e(){return l(this,null,function*(){let d={id:o.formData.dataId};const c=yield V.get({url:m,params:d});i=y({},c),yield t(i),yield n({disabled:p.value})})}function s(){return l(this,null,function*(){let d=a(),c=Object.assign({},i,d);yield $(c,!0)})}return e(),{registerForm:r,formDisabled:p,submitForm:s}}}),A={style:{"min-height":"400px"}},E={key:0,style:{width:"100%","text-align":"center"}};function G(o,r,t,n,a,p){const i=F("BasicForm"),m=F("a-button");return h(),_("div",A,[b(i,{onRegister:o.registerForm},null,8,["onRegister"]),o.formDisabled?I("",!0):(h(),_("div",E,[b(m,{onClick:o.submitForm,"pre-icon":"ant-design:check",type:"primary"},{default:k(()=>r[0]||(r[0]=[C("提 交")])),_:1},8,["onClick"])]))])}const Gt=x(q,[["render",G]]);export{Gt as default};
