12 |
- "use strict";(self["webpackChunkbyte_sailing_mobile"]=self["webpackChunkbyte_sailing_mobile"]||[]).push([[5542],{15630:function(e,t,l){l.r(t),l.d(t,{default:function(){return x}});var a=l(36944),u=(l(83277),l(19545)),o=(l(42332),l(63005)),n=(l(35708),l(79264)),i=(l(52196),l(45331)),s=(l(29041),l(43739)),r=(l(62471),l(39420)),d=(l(12097),l(57658),l(73396)),m=l(87139),c=l(44870),b=l(29733),p=l(22483);const v={class:"form"},f={style:{padding:"5px 0 5px 15px",color:"#999999"}},w={style:{margin:"16px"}};var h={__name:"add",setup(e){const t=(0,d.FN)().proxy,l=(0,p.yj)(),h=(0,c.iH)(!1),y=(0,c.iH)({}),g=()=>{t.post("/warehouse/page",{pageNum:1,pageSize:9999}).then((e=>{x.value=e.data.rows.map((e=>({text:e.name,value:e.id})))}))},x=(0,c.iH)([]),W=({selectedOptions:e})=>{y.value.warehouseId=e[0].value,y.value.warehouseName=e[0].text,h.value=!1},k=()=>history.back(),V=()=>{const e={id:y.value.id,warehouseId:y.value.warehouseId,quantity:y.value.quantity};t.post("/stockWait/add",e).then((e=>{setTimeout((()=>{(0,b.XA)(t.t("waitOutbound.outboundSuccess")),t.$router.push("/main/waitOutbound")}),500)}),(e=>(0,b.LJ)(e.message)))};return(0,d.bv)((()=>{l.query&&(y.value={...l.query},y.value.inQuantity=y.value.quantity),g()})),(e,t)=>{const l=r.l2,c=s.gN,b=i.TS,p=n.cW,g=o.GI,N=u.zx,I=a.l0;return(0,d.wg)(),(0,d.iD)("div",v,[(0,d.Wm)(l,{title:e.$t("waitOutbound.name"),"left-text":e.$t("common.back"),"left-arrow":"",onClickLeft:k},null,8,["title","left-text"]),(0,d.Wm)(I,{onSubmit:V,"label-align":"top",style:{"margin-top":"20px"}},{default:(0,d.w5)((()=>[(0,d.Wm)(b,{inset:""},{default:(0,d.w5)((()=>[(0,d.Wm)(c,{modelValue:y.value.businessTypeName,"onUpdate:modelValue":t[0]||(t[0]=e=>y.value.businessTypeName=e),readonly:"",label:e.$t("waitOutbound.dataSource")},null,8,["modelValue","label"]),(0,d.Wm)(c,{modelValue:y.value.businessCode,"onUpdate:modelValue":t[1]||(t[1]=e=>y.value.businessCode=e),readonly:"",label:e.$t("waitInbound.orderNumber")},null,8,["modelValue","label"]),(0,d.Wm)(c,{modelValue:y.value.productName,"onUpdate:modelValue":t[2]||(t[2]=e=>y.value.productName=e),readonly:"",label:e.$t("waitOutbound.goodsName")},null,8,["modelValue","label"]),(0,d.Wm)(c,{modelValue:y.value.inQuantity,"onUpdate:modelValue":t[3]||(t[3]=e=>y.value.inQuantity=e),readonly:"",label:e.$t("waitOutbound.waitOutboundQuantity")},null,8,["modelValue","label"])])),_:1}),(0,d._)("div",f,(0,m.zw)(e.$t("waitOutbound.thisTimeOutbound")),1),(0,d.Wm)(b,{inset:""},{default:(0,d.w5)((()=>[(0,d.Wm)(c,{modelValue:y.value.warehouseName,"onUpdate:modelValue":t[4]||(t[4]=e=>y.value.warehouseName=e),"is-link":"",readonly:"",label:e.$t("waitInbound.warehouseName"),placeholder:e.$t("waitInbound.selectWarehouseName"),onClick:t[5]||(t[5]=e=>h.value=!0),rules:[{required:!0,message:e.$t("waitInbound.warehouseNameCanNotBeEmpty")}],required:""},null,8,["modelValue","label","placeholder","rules"]),(0,d.Wm)(g,{show:h.value,"onUpdate:show":t[7]||(t[7]=e=>h.value=e),round:"",position:"bottom"},{default:(0,d.w5)((()=>[(0,d.Wm)(p,{columns:x.value,onCancel:t[6]||(t[6]=e=>h.value=!1),onConfirm:W},null,8,["columns"])])),_:1},8,["show"]),(0,d.Wm)(c,{modelValue:y.value.quantity,"onUpdate:modelValue":t[8]||(t[8]=e=>y.value.quantity=e),label:e.$t("waitInbound.outboundQuantity"),placeholder:e.$t("waitInbound.pleaseEnterOutboundQuantity"),rules:[{required:!0,message:e.$t("waitInbound.outboundQuantityCanNotBeEmpty")}],required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,d._)("div",w,[(0,d.Wm)(N,{round:"",block:"",type:"primary","native-type":"submit"},{default:(0,d.w5)((()=>[(0,d.Uk)((0,m.zw)(e.$t("common.submit")),1)])),_:1})])])),_:1})])}}},y=l(40089);const g=(0,y.Z)(h,[["__scopeId","data-v-b209ef14"]]);var x=g},34373:function(e,t,l){l.d(t,{J:function(){return r}});var a=l(73396),u=l(253),o=l(44870),n=l(47936),i=l(10648);const s=(e,t)=>{const l=(0,o.iH)(),s=()=>{l.value=(0,u.EL)(e).height};return(0,a.bv)((()=>{if((0,a.Y3)(s),t)for(let e=1;e<=3;e++)setTimeout(s,100*e)})),(0,i.h)((()=>(0,a.Y3)(s))),(0,a.YP)([n.bn,n.uK],s),l};function r(e,t){const l=s(e,!0);return e=>(0,a.Wm)("div",{class:t("placeholder"),style:{height:l.value?`${l.value}px`:void 0}},[e()])}},39420:function(e,t,l){l.d(t,{l2:function(){return f}});var a=l(11404),u=l(73396),o=l(44870),n=l(610),i=l(5323),s=l(96048),r=l(25322),d=l(34373),m=l(13649);const[c,b]=(0,n["do"])("nav-bar"),p={title:String,fixed:Boolean,zIndex:i.Or,border:i.J5,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:i.J5};var v=(0,u.aZ)({name:c,props:p,emits:["clickLeft","clickRight"],setup(e,{emit:t,slots:l}){const a=(0,o.iH)(),n=(0,d.J)(a,b),i=e=>t("clickLeft",e),c=e=>t("clickRight",e),p=()=>l.left?l.left():[e.leftArrow&&(0,u.Wm)(m.JO,{class:b("arrow"),name:"arrow-left"},null),e.leftText&&(0,u.Wm)("span",{class:b("text")},[e.leftText])],v=()=>l.right?l.right():(0,u.Wm)("span",{class:b("text")},[e.rightText]),f=()=>{const{title:t,fixed:o,border:n,zIndex:d}=e,m=(0,s.As)(d),f=e.leftArrow||e.leftText||l.left,w=e.rightText||l.right;return(0,u.Wm)("div",{ref:a,style:m,class:[b({fixed:o}),{[r.xe]:n,"van-safe-area-top":e.safeAreaInsetTop}]},[(0,u.Wm)("div",{class:b("content")},[f&&(0,u.Wm)("div",{class:[b("left"),e.clickable?r.e9:""],onClick:i},[p()]),(0,u.Wm)("div",{class:[b("title"),"van-ellipsis"]},[l.title?l.title():t]),w&&(0,u.Wm)("div",{class:[b("right"),e.clickable?r.e9:""],onClick:c},[v()])])])};return()=>e.fixed&&e.placeholder?n(f):f()}});const f=(0,a.n)(v)},12097:function(e,t,l){l(31958),l(20368),l(56742)}}]);
- //# sourceMappingURL=5542.1b34ea84.js.map
|