var A=Object.defineProperty,E=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var v=(o,e,t)=>e in o?A(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,w=(o,e)=>{for(var t in e||(e={}))M.call(e,t)&&v(o,t,e[t]);if(S)for(var t of S(e))P.call(e,t)&&v(o,t,e[t]);return o},g=(o,e)=>E(o,G(e));var c=(o,e,t)=>new Promise((n,p)=>{var b=r=>{try{a(t.next(r))}catch(u){p(u)}},i=r=>{try{a(t.throw(r))}catch(u){p(u)}},a=r=>r.done?n(r.value):Promise.resolve(r.value).then(b,i);a((t=t.apply(o,e)).next())});import{d as z,f as d,r as H,e as B,o as Q,U as y,a2 as _,a3 as k,k as f,u as l,af as h,ad as X,V as x,G as Y}from"./vue-vendor-CxLCUzY4.js";import{h as Z,bq as $,_ as tt}from"./index-B_2CoVdl.js";import"./index-ARbUvvsq.js";import{useJvxeMethod as et}from"./useJvxeMethods-DJZKL0Jv.js";import{w as ot,f as at,q as rt,h as it}from"./WmsLoc.api-Ct-Mek7I.js";import{u as st,B as mt}from"./useForm-CcjrODHR.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./componentMap-CzCGDP7x.js";import"./useFormItem-CWa0w7fA.js";import"./index-D2AmS0aU.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JAddInput-YFlAniYT.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-CkL00Q0a.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./depart.api-0qTriT9h.js";import"./JDictSelectTag-CxpDdimB.js";import"./JSelectDept-wKz_Qtmc.js";import"./JPopup-BJBYqoWe.js";import"./JEllipsis-Cn7GCKHR.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.js";import"./JAreaLinkage-CSgDAlrn.js";import"./JCodeEditor-esTLnfS3.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-DclSHT47.js";import"./vxeUtils-Ck0LG0y-.js";import"./renderUtils-Cbe4E0PZ.js";const nt={key:0,style:{width:"100%","text-align":"center","margin-top":"10px"}},pt="/wms/wmsLoc/queryById",ut=z({__name:"WmsLocForm",props:{formData:{type:Object,default:()=>{}},formBpm:{type:Boolean,default:!0}},setup(o){const e=d(!0),t=d(["wmsStation"]),n=d("wmsStation"),p=d(),b={wmsStation:p},i=H({loading:!1,dataSource:[],columns:ot,show:!1}),a=o,r=B(()=>!(a.formBpm===!0&&a.formData.disabled===!1)),u=B(()=>a.formBpm===!0&&a.formData.disabled===!1),[C,{setProps:F,resetFields:D,setFieldsValue:V,validate:lt}]=st({labelWidth:150,schemas:it,showActionButtonGroup:!1,baseColProps:{span:8}});Q(()=>{q()});function q(){return c(this,null,function*(){if(a.formBpm===!0){yield U();let m={id:a.formData.dataId};const s=yield Z.get({url:pt,params:m});yield V(w({},s)),K(rt,{code:s.code},i,()=>{i.show=!0}),F({disabled:r.value})}})}const[I,R,K,T]=et(N,L,b,n,t);function U(){return c(this,null,function*(){yield D(),n.value="wmsStation",i.dataSource=[]})}function L(m){let s=Object.assign({},m.formValue);return g(w({},s),{wmsStationList:m.tablesValue[0].tableData})}function N(m){return c(this,null,function*(){yield at(m,!0)})}return(m,s)=>{const O=y("a-tab-pane"),W=y("a-tabs"),J=y("a-button");return _(),k("div",null,[f(l(mt),{onRegister:l(C),ref_key:"formRef",ref:T},null,8,["onRegister"]),f(W,{activeKey:n.value,"onUpdate:activeKey":s[0]||(s[0]=j=>n.value=j),animated:"",onChange:l(I)},{default:h(()=>[f(O,{tab:"工作站管理",key:"wmsStation",forceRender:!0},{default:h(()=>[i.show?(_(),X(l($),{key:0,"keep-source":"",resizable:"",ref_key:"wmsStation",ref:p,loading:i.loading,columns:i.columns,dataSource:i.dataSource,height:340,disabled:r.value,rowNumber:!0,rowSelection:!0,toolbar:!0},null,8,["loading","columns","dataSource","disabled"])):x("",!0)]),_:1})]),_:1},8,["activeKey","onChange"]),u.value?(_(),k("div",nt,[f(J,{preIcon:"ant-design:check-outlined",style:{width:"126px"},type:"primary",onClick:l(R)},{default:h(()=>s[1]||(s[1]=[Y("提 交")])),_:1},8,["onClick"])])):x("",!0)])}}}),de=tt(ut,[["__scopeId","data-v-e64e9072"]]);export{de as default};
