12 |
- "use strict";(self["webpackChunkbyte_sailing_mobile"]=self["webpackChunkbyte_sailing_mobile"]||[]).push([[677],{14071:function(e,t,l){l.d(t,{Z:function(){return v}});var a=l(13649),n=(l(64165),l(13813)),o=(l(55449),l(57658),l(73396)),i=l(44870),s=l(87139);const u={class:"common-list"},r={key:0,class:"left-box",style:{"margin-right":"20px"}},c=["onClick"],d=["onClick"];var f={__name:"common-list",props:{data:{type:Array,default:[]},config:{type:Object,default:[]},showMore:{type:Boolean,default:!0},isCheckbox:{type:Boolean,default:!1},optionalKey:{type:String,default:null}},setup(e){const t=(0,o.FN)().proxy;let l=(0,i.iH)([]),f=[];(0,o.YP)((()=>t.data),(e=>{l.value=e.map((e=>(f.length>0&&f.map((t=>{e.id==t.id&&(e.checked=!0)})),e)))}));const p=(0,i.iH)(null),v=()=>{f=[],l.value.map((e=>{e.checked&&(f.push(e),p.value||(p.value=e[t.optionalKey]))})),0==f.length&&(p.value=null),t.$emit("onCheck",f)},h=e=>{t.$emit("onClick",e)};return(t,f)=>{const m=n.XZ,g=a.JO;return(0,o.wg)(),(0,o.iD)("div",u,[(0,o._)("ul",null,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)((0,i.SU)(l),(t=>((0,o.wg)(),(0,o.iD)("li",{key:t.id},[e.isCheckbox?((0,o.wg)(),(0,o.iD)("div",r,[(0,o.Wm)(m,{modelValue:t.checked,"onUpdate:modelValue":e=>t.checked=e,"icon-size":"15px",shape:"square",onChange:v,disabled:!!p.value&&p.value!=t[e.optionalKey]},null,8,["modelValue","onUpdate:modelValue","disabled"])])):(0,o.kq)("",!0),(0,o._)("div",{class:"center-content",style:{"line-height":"24px"},onClick:e=>h(t)},[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.config,(e=>((0,o.wg)(),(0,o.iD)("div",{key:e.prop},[(0,o._)("span",null,(0,s.zw)(e.label)+":",1),(0,o.Uk)((0,s.zw)(t[e.prop]),1)])))),128))],8,c),e.showMore?((0,o.wg)(),(0,o.iD)("div",{key:1,class:"more-box",onClick:e=>h(t)},[(0,o.Wm)(g,{name:"arrow"})],8,d)):(0,o.kq)("",!0)])))),128))])])}}};const p=f;var v=p},50677:function(e,t,l){l.r(t),l.d(t,{default:function(){return g}});var a=l(31441),n=(l(84035),l(55943)),o=(l(90563),l(80147)),i=(l(39292),l(39420)),s=(l(12097),l(57658),l(73396)),u=l(44870),r=l(14071),c=l(22483);const d=e=>((0,s.dD)("data-v-3b5c4f26"),e=e(),(0,s.Cn)(),e),f={class:"list"},p=d((()=>(0,s._)("div",null,null,-1)));var v={__name:"index",setup(e){const t=(0,u.iH)(!1),l=((0,c.yj)(),(0,u.iH)({pageNum:1,type:"2",keyword:null})),d=(0,u.iH)(!1),v=(0,s.FN)().proxy,h=(0,u.iH)([]),m=(0,u.iH)([{label:v.t("waitOutbound.dataSource"),prop:"businessTypeName"},{label:v.t("waitOutbound.goodsName"),prop:"productName"},{label:v.t("waitOutbound.toBeDoneQuantity"),prop:"quantity"}]),g=()=>{l.value.pageNum=1,d.value=!1,y("refresh")},b=()=>{y()},k=()=>v.$router.push("/main/working"),x=e=>{v.$router.push({path:"waitOutboundAdd",query:{...e}})},w=(0,u.iH)([{label:v.t("waitOutbound.lineSideReturnWarehouse"),value:1},{label:v.t("waitOutbound.completedWarehouse"),value:2},{label:v.t("waitOutbound.purchaseArrival"),value:3},{label:v.t("waitOutbound.returnOutbound"),value:4},{label:v.t("waitOutbound.jdOrder"),value:5},{label:v.t("waitOutbound.salesOrderOutbound"),value:6},{label:v.t("waitOutbound.productionTaskOutbound"),value:7}]),y=e=>{t.value=!0,v.post("/stockWaitDetails/page",l.value).then((a=>{console.log(l.value),h.value="refresh"===e?a.data.rows:h.value.concat(a.data.rows),h.value.forEach((e=>{const t=w.value.find((t=>t.value==e.businessType));t&&(e.businessTypeName=t.label)})),10*l.value.pageNum>=a.data.total&&(d.value=!0),l.value.pageNum++,t.value=!1})).catch((e=>{t.value=!1}))};return y(),(e,u)=>{const c=i.l2,v=o.ol,w=n.aV,y=a.I8;return(0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s.Wm)(c,{title:e.$T("waitOutbound.name"),"left-text":"","left-arrow":"",onClickLeft:k},null,8,["title"]),(0,s.Wm)(v,{modelValue:l.value.keyword,"onUpdate:modelValue":u[0]||(u[0]=e=>l.value.keyword=e),placeholder:e.$t("common.pleaseEnterKeywords"),onSearch:g},null,8,["modelValue","placeholder"]),(0,s.Wm)(y,{modelValue:t.value,"onUpdate:modelValue":u[2]||(u[2]=e=>t.value=e),onRefresh:g},{default:(0,s.w5)((()=>[(0,s._)("div",f,[(0,s.Wm)(w,{loading:t.value,"onUpdate:loading":u[1]||(u[1]=e=>t.value=e),finished:d.value,"finished-text":e.$t("common.noMore"),onLoad:b,style:{"margin-bottom":"60px"}},{default:(0,s.w5)((()=>[(0,s.Wm)(r.Z,{data:h.value,onOnClick:x,config:m.value},null,8,["data","config"]),p])),_:1},8,["loading","finished","finished-text"])])])),_:1},8,["modelValue"])],64)}}},h=l(40089);const m=(0,h.Z)(v,[["__scopeId","data-v-3b5c4f26"]]);var g=m},34373:function(e,t,l){l.d(t,{J:function(){return r}});var a=l(73396),n=l(253),o=l(44870),i=l(47936),s=l(10648);const u=(e,t)=>{const l=(0,o.iH)(),u=()=>{l.value=(0,n.EL)(e).height};return(0,a.bv)((()=>{if((0,a.Y3)(u),t)for(let e=1;e<=3;e++)setTimeout(u,100*e)})),(0,s.h)((()=>(0,a.Y3)(u))),(0,a.YP)([i.bn,i.uK],u),l};function r(e,t){const l=u(e,!0);return e=>(0,a.Wm)("div",{class:t("placeholder"),style:{height:l.value?`${l.value}px`:void 0}},[e()])}},92220:function(e,t,l){l.d(t,{a:function(){return n},d:function(){return o}});var a=l(73396);const n=Symbol(),o=()=>(0,a.f3)(n,null)},64165:function(e,t,l){l(31958),l(20368),l(56742)},55943:function(e,t,l){l.d(t,{aV:function(){return b}});var a=l(11404),n=l(73396),o=l(44870),i=l(610),s=l(5323),u=l(47936),r=l(253),c=l(3444),d=l(92220),f=l(12229);const[p,v,h]=(0,i["do"])("list"),m={error:Boolean,offset:(0,s.SI)(300),loading:Boolean,disabled:Boolean,finished:Boolean,errorText:String,direction:(0,s.SQ)("down"),loadingText:String,finishedText:String,immediateCheck:s.J5};var g=(0,n.aZ)({name:p,props:m,emits:["load","update:error","update:loading"],setup(e,{emit:t,slots:l}){const a=(0,o.iH)(e.loading),i=(0,o.iH)(),s=(0,o.iH)(),p=(0,d.d)(),m=(0,r.eo)(i),g=()=>{(0,n.Y3)((()=>{if(a.value||e.finished||e.disabled||e.error||!1===(null==p?void 0:p.value))return;const{direction:l}=e,n=+e.offset,o=(0,r.EL)(m);if(!o.height||(0,u.xj)(i))return;let c=!1;const d=(0,r.EL)(s);c="up"===l?o.top-d.top<=n:d.bottom-o.bottom<=n,c&&(a.value=!0,t("update:loading",!0),t("load"))}))},b=()=>{if(e.finished){const t=l.finished?l.finished():e.finishedText;if(t)return(0,n.Wm)("div",{class:v("finished-text")},[t])}},k=()=>{t("update:error",!1),g()},x=()=>{if(e.error){const t=l.error?l.error():e.errorText;if(t)return(0,n.Wm)("div",{role:"button",class:v("error-text"),tabindex:0,onClick:k},[t])}},w=()=>{if(a.value&&!e.finished&&!e.disabled)return(0,n.Wm)("div",{class:v("loading")},[l.loading?l.loading():(0,n.Wm)(f.gb,{class:v("loading-icon")},{default:()=>[e.loadingText||h("loading")]})])};return(0,n.YP)((()=>[e.loading,e.finished,e.error]),g),p&&(0,n.YP)(p,(e=>{e&&g()})),(0,n.ic)((()=>{a.value=e.loading})),(0,n.bv)((()=>{e.immediateCheck&&g()})),(0,c.F)({check:g}),(0,r.OR)("scroll",g,{target:m,passive:!0}),()=>{var t;const o=null==(t=l.default)?void 0:t.call(l),u=(0,n.Wm)("div",{ref:s,class:v("placeholder")},null);return(0,n.Wm)("div",{ref:i,role:"feed",class:v(),"aria-busy":a.value},["down"===e.direction?o:u,w(),b(),x(),"up"===e.direction?o:u])}}});const b=(0,a.n)(g)},90563:function(e,t,l){l(31958),l(62939)},39420:function(e,t,l){l.d(t,{l2:function(){return m}});var a=l(11404),n=l(73396),o=l(44870),i=l(610),s=l(5323),u=l(96048),r=l(25322),c=l(34373),d=l(13649);const[f,p]=(0,i["do"])("nav-bar"),v={title:String,fixed:Boolean,zIndex:s.Or,border:s.J5,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:s.J5};var h=(0,n.aZ)({name:f,props:v,emits:["clickLeft","clickRight"],setup(e,{emit:t,slots:l}){const a=(0,o.iH)(),i=(0,c.J)(a,p),s=e=>t("clickLeft",e),f=e=>t("clickRight",e),v=()=>l.left?l.left():[e.leftArrow&&(0,n.Wm)(d.JO,{class:p("arrow"),name:"arrow-left"},null),e.leftText&&(0,n.Wm)("span",{class:p("text")},[e.leftText])],h=()=>l.right?l.right():(0,n.Wm)("span",{class:p("text")},[e.rightText]),m=()=>{const{title:t,fixed:o,border:i,zIndex:c}=e,d=(0,u.As)(c),m=e.leftArrow||e.leftText||l.left,g=e.rightText||l.right;return(0,n.Wm)("div",{ref:a,style:d,class:[p({fixed:o}),{[r.xe]:i,"van-safe-area-top":e.safeAreaInsetTop}]},[(0,n.Wm)("div",{class:p("content")},[m&&(0,n.Wm)("div",{class:[p("left"),e.clickable?r.e9:""],onClick:s},[v()]),(0,n.Wm)("div",{class:[p("title"),"van-ellipsis"]},[l.title?l.title():t]),g&&(0,n.Wm)("div",{class:[p("right"),e.clickable?r.e9:""],onClick:f},[h()])])])};return()=>e.fixed&&e.placeholder?i(m):m()}});const m=(0,a.n)(h)},12097:function(e,t,l){l(31958),l(20368),l(56742)},31441:function(e,t,l){l.d(t,{I8:function(){return k}});var a=l(11404),n=(l(57658),l(73396)),o=l(44870),i=l(610),s=l(5323),u=l(47936),r=l(253),c=l(65261),d=l(12229);const[f,p,v]=(0,i["do"])("pull-refresh"),h=50,m=["pulling","loosing","success"],g={disabled:Boolean,modelValue:Boolean,headHeight:(0,s.SI)(h),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:s.Or,successDuration:(0,s.SI)(500),animationDuration:(0,s.SI)(300)};var b=(0,n.aZ)({name:f,props:g,emits:["change","refresh","update:modelValue"],setup(e,{emit:t,slots:l}){let a;const i=(0,o.iH)(),s=(0,o.iH)(),f=(0,r.eo)(i),g=(0,o.qj)({status:"normal",distance:0,duration:0}),b=(0,c.o)(),k=()=>{if(e.headHeight!==h)return{height:`${e.headHeight}px`}},x=()=>"loading"!==g.status&&"success"!==g.status&&!e.disabled,w=t=>{const l=+(e.pullDistance||e.headHeight);return t>l&&(t=t<2*l?l+(t-l)/2:1.5*l+(t-2*l)/4),Math.round(t)},y=(l,a)=>{const n=+(e.pullDistance||e.headHeight);g.distance=l,g.status=a?"loading":0===l?"normal":l<n?"pulling":"loosing",t("change",{status:g.status,distance:l})},W=()=>{const{status:t}=g;return"normal"===t?"":e[`${t}Text`]||v(t)},T=()=>{const{status:e,distance:t}=g;if(l[e])return l[e]({distance:t});const a=[];return m.includes(e)&&a.push((0,n.Wm)("div",{class:p("text")},[W()])),"loading"===e&&a.push((0,n.Wm)(d.gb,{class:p("loading")},{default:W})),a},H=()=>{g.status="success",setTimeout((()=>{y(0)}),+e.successDuration)},O=e=>{a=0===(0,u.cx)(f.value),a&&(g.duration=0,b.start(e))},S=e=>{x()&&O(e)},C=e=>{if(x()){a||O(e);const{deltaY:t}=b;b.move(e),a&&t.value>=0&&b.isVertical()&&((0,u.PF)(e),y(w(t.value)))}},V=()=>{a&&b.deltaY.value&&x()&&(g.duration=+e.animationDuration,"loosing"===g.status?(y(+e.headHeight,!0),t("update:modelValue",!0),(0,n.Y3)((()=>t("refresh")))):y(0))};return(0,n.YP)((()=>e.modelValue),(t=>{g.duration=+e.animationDuration,t?y(+e.headHeight,!0):l.success||e.successText?H():y(0,!1)})),(0,r.OR)("touchmove",C,{target:s}),()=>{var e;const t={transitionDuration:`${g.duration}ms`,transform:g.distance?`translate3d(0,${g.distance}px, 0)`:""};return(0,n.Wm)("div",{ref:i,class:p()},[(0,n.Wm)("div",{ref:s,class:p("track"),style:t,onTouchstartPassive:S,onTouchend:V,onTouchcancel:V},[(0,n.Wm)("div",{class:p("head"),style:k()},[T()]),null==(e=l.default)?void 0:e.call(l)])])}}});const k=(0,a.n)(b)},84035:function(e,t,l){l(31958),l(62939)},80147:function(e,t,l){l.d(t,{ol:function(){return k}});var a=l(11404),n=l(73396),o=l(44870),i=l(610),s=l(12220),u=l(5323),r=l(47936),c=l(36817),d=l(96401),f=l(3444),p=l(43739);const[v,h,m]=(0,i["do"])("search"),g=(0,s.l7)({},c.Mv,{label:String,shape:(0,u.SQ)("square"),leftIcon:(0,u.SQ)("search"),clearable:u.J5,actionText:String,background:String,showAction:Boolean});var b=(0,n.aZ)({name:v,props:g,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:l,attrs:a}){const i=(0,d.M)(),u=(0,o.iH)(),v=()=>{l.action||(t("update:modelValue",""),t("cancel"))},g=l=>{const a=13;l.keyCode===a&&((0,r.PF)(l),t("search",e.modelValue))},b=()=>e.id||`${i}-input`,k=()=>{if(l.label||e.label)return(0,n.Wm)("label",{class:h("label"),for:b()},[l.label?l.label():e.label])},x=()=>{if(e.showAction){const t=e.actionText||m("cancel");return(0,n.Wm)("div",{class:h("action"),role:"button",tabindex:0,onClick:v},[l.action?l.action():t])}},w=()=>{var e;return null==(e=u.value)?void 0:e.blur()},y=()=>{var e;return null==(e=u.value)?void 0:e.focus()},W=e=>t("blur",e),T=e=>t("focus",e),H=e=>t("clear",e),O=e=>t("clickInput",e),S=e=>t("clickLeftIcon",e),C=e=>t("clickRightIcon",e),V=Object.keys(c.Mv),I=()=>{const o=(0,s.l7)({},a,(0,s.ei)(e,V),{id:b()}),i=e=>t("update:modelValue",e);return(0,n.Wm)(p.gN,(0,n.dG)({ref:u,type:"search",class:h("field"),border:!1,onBlur:W,onFocus:T,onClear:H,onKeypress:g,onClickInput:O,onClickLeftIcon:S,onClickRightIcon:C,"onUpdate:modelValue":i},o),(0,s.ei)(l,["left-icon","right-icon"]))};return(0,f.F)({focus:y,blur:w}),()=>{var t;return(0,n.Wm)("div",{class:h({"show-action":e.showAction}),style:{background:e.background}},[null==(t=l.left)?void 0:t.call(l),(0,n.Wm)("div",{class:h("content",e.shape)},[k(),I()]),x()])}}});const k=(0,a.n)(b)},39292:function(e,t,l){l(31958),l(20368),l(56742),l(3094),l(67984)}}]);
- //# sourceMappingURL=677.61facc8b.js.map
|