"use strict";(self["webpackChunkbyte_sailing_mobile"]=self["webpackChunkbyte_sailing_mobile"]||[]).push([[1608],{14071:function(e,t,l){l.d(t,{Z:function(){return m}});var n=l(13649),a=(l(64165),l(13813)),o=(l(55449),l(57658),l(73396)),i=l(44870),s=l(87139);const r={class:"common-list"},c={key:0,class:"left-box",style:{"margin-right":"20px"}},u=["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),m=()=>{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)},v=e=>{t.$emit("onClick",e)};return(t,f)=>{const h=a.XZ,g=n.JO;return(0,o.wg)(),(0,o.iD)("div",r,[(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",c,[(0,o.Wm)(h,{modelValue:t.checked,"onUpdate:modelValue":e=>t.checked=e,"icon-size":"15px",shape:"square",onChange:m,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=>v(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,u),e.showMore?((0,o.wg)(),(0,o.iD)("div",{key:1,class:"more-box",onClick:e=>v(t)},[(0,o.Wm)(g,{name:"arrow"})],8,d)):(0,o.kq)("",!0)])))),128))])])}}};const p=f;var m=p},21608:function(e,t,l){l.r(t),l.d(t,{default:function(){return T}});var n=l(31441),a=(l(84035),l(55943)),o=(l(90563),l(80147)),i=(l(39292),l(39420)),s=(l(12097),l(57658),l(73396)),r=l(87139),c=l(44870),u=(l(14071),l(22483));const d={class:"inbox"},f={class:"list"},p=["onClick"],m=(0,s._)("div",{class:"user-icon"},[(0,s._)("i",{class:"icon-iconm_mine iconfont"})],-1),v={class:"text"},h={class:"title"},g={class:"name"},b=(0,s._)("span",{class:"unread"},null,-1),k={class:"time"},x={class:"content"},y={class:"title"},w={class:"centent-text"};var W={__name:"inbox",setup(e){const t=(0,c.iH)(!1),l=(0,u.yj)(),W=(0,c.iH)({pageNum:1,type:"1",keyword:null}),C=(0,c.iH)(!1),T=(0,s.FN)().proxy,_=(0,c.iH)([]),H=((0,c.iH)([{label:"申购单号",prop:"subscribeCode"},{label:"物品名称",prop:"productName"},{label:"申购数量",prop:"count"},{label:"已采购",prop:"count"}]),()=>{W.value.pageNum=1,C.value=!1,B("refresh")}),S=()=>{B()};const D=()=>{T.$router.go(-1)},V=()=>{T.$router.push({path:"write",query:{}})};T.uploadDdRightBtn(V,T.t("common.add"));const I=e=>{T.$router.push({path:"mailDtl",query:{...e,type:l.query.type}})},B=e=>{t.value=!0,T.post("/mailService/getMessagePage",W.value).then((l=>{console.log(W.value),_.value="refresh"===e?l.data.rows:_.value.concat(l.data.rows),10*W.value.pageNum>=l.data.total&&(C.value=!0),W.value.pageNum++,t.value=!1,console.log(_)})).catch((e=>{t.value=!1,C.value=!0}))};return(0,s.bv)((()=>{console.log(l),W.value.folderId=l.query.id,W.value.type=l.query.type,B()})),(e,l)=>{const c=i.l2,u=o.ol,W=a.aV,T=n.I8;return(0,s.wg)(),(0,s.iD)("div",d,[(0,s.Wm)(c,{title:"收件箱","left-text":"","left-arrow":"",onClickLeft:D,"right-text":"写邮件",onClickRight:V}),(0,s.Wm)(u,{modelValue:e.value,"onUpdate:modelValue":l[1]||(l[1]=t=>e.value=t),"show-action":"",placeholder:e.$t("common.pleaseEnterKeywords")},{action:(0,s.w5)((()=>[(0,s._)("div",{onClick:l[0]||(l[0]=(...t)=>e.onClickButton&&e.onClickButton(...t))},"搜索")])),_:1},8,["modelValue","placeholder"]),(0,s.Wm)(T,{modelValue:t.value,"onUpdate:modelValue":l[3]||(l[3]=e=>t.value=e),onRefresh:H},{default:(0,s.w5)((()=>[(0,s._)("div",f,[(0,s.Wm)(W,{loading:t.value,"onUpdate:loading":l[2]||(l[2]=e=>t.value=e),finished:C.value,"finished-text":e.$t("common.noMore"),onLoad:S,style:{"margin-bottom":"60px"}},{default:(0,s.w5)((()=>[(0,s._)("ul",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(_.value,(e=>((0,s.wg)(),(0,s.iD)("li",{key:e.id,onClick:t=>I(e)},[m,(0,s._)("div",v,[(0,s._)("div",h,[(0,s._)("span",g,[b,(0,s.Uk)((0,r.zw)(e.fromEmail),1)]),(0,s._)("span",k,(0,r.zw)(e.sendDate),1)]),(0,s._)("div",x,[(0,s._)("div",y,(0,r.zw)(e.subject),1),(0,s._)("div",w,(0,r.zw)(e.subject),1)])])],8,p)))),128))])])),_:1},8,["loading","finished","finished-text"])])])),_:1},8,["modelValue"])])}}};const C=W;var T=C},34373:function(e,t,l){l.d(t,{J:function(){return c}});var n=l(73396),a=l(253),o=l(44870),i=l(47936),s=l(10648);const r=(e,t)=>{const l=(0,o.iH)(),r=()=>{l.value=(0,a.EL)(e).height};return(0,n.bv)((()=>{if((0,n.Y3)(r),t)for(let e=1;e<=3;e++)setTimeout(r,100*e)})),(0,s.h)((()=>(0,n.Y3)(r))),(0,n.YP)([i.bn,i.uK],r),l};function c(e,t){const l=r(e,!0);return e=>(0,n.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 a},d:function(){return o}});var n=l(73396);const a=Symbol(),o=()=>(0,n.f3)(a,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 n=l(11404),a=l(73396),o=l(44870),i=l(610),s=l(5323),r=l(47936),c=l(253),u=l(3444),d=l(92220),f=l(12229);const[p,m,v]=(0,i["do"])("list"),h={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,a.aZ)({name:p,props:h,emits:["load","update:error","update:loading"],setup(e,{emit:t,slots:l}){const n=(0,o.iH)(e.loading),i=(0,o.iH)(),s=(0,o.iH)(),p=(0,d.d)(),h=(0,c.eo)(i),g=()=>{(0,a.Y3)((()=>{if(n.value||e.finished||e.disabled||e.error||!1===(null==p?void 0:p.value))return;const{direction:l}=e,a=+e.offset,o=(0,c.EL)(h);if(!o.height||(0,r.xj)(i))return;let u=!1;const d=(0,c.EL)(s);u="up"===l?o.top-d.top<=a:d.bottom-o.bottom<=a,u&&(n.value=!0,t("update:loading",!0),t("load"))}))},b=()=>{if(e.finished){const t=l.finished?l.finished():e.finishedText;if(t)return(0,a.Wm)("div",{class:m("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,a.Wm)("div",{role:"button",class:m("error-text"),tabindex:0,onClick:k},[t])}},y=()=>{if(n.value&&!e.finished&&!e.disabled)return(0,a.Wm)("div",{class:m("loading")},[l.loading?l.loading():(0,a.Wm)(f.gb,{class:m("loading-icon")},{default:()=>[e.loadingText||v("loading")]})])};return(0,a.YP)((()=>[e.loading,e.finished,e.error]),g),p&&(0,a.YP)(p,(e=>{e&&g()})),(0,a.ic)((()=>{n.value=e.loading})),(0,a.bv)((()=>{e.immediateCheck&&g()})),(0,u.F)({check:g}),(0,c.OR)("scroll",g,{target:h,passive:!0}),()=>{var t;const o=null==(t=l.default)?void 0:t.call(l),r=(0,a.Wm)("div",{ref:s,class:m("placeholder")},null);return(0,a.Wm)("div",{ref:i,role:"feed",class:m(),"aria-busy":n.value},["down"===e.direction?o:r,y(),b(),x(),"up"===e.direction?o:r])}}});const b=(0,n.n)(g)},90563:function(e,t,l){l(31958),l(62939)},39420:function(e,t,l){l.d(t,{l2:function(){return h}});var n=l(11404),a=l(73396),o=l(44870),i=l(610),s=l(5323),r=l(96048),c=l(25322),u=l(34373),d=l(13649);const[f,p]=(0,i["do"])("nav-bar"),m={title:String,fixed:Boolean,zIndex:s.Or,border:s.J5,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:s.J5};var v=(0,a.aZ)({name:f,props:m,emits:["clickLeft","clickRight"],setup(e,{emit:t,slots:l}){const n=(0,o.iH)(),i=(0,u.J)(n,p),s=e=>t("clickLeft",e),f=e=>t("clickRight",e),m=()=>l.left?l.left():[e.leftArrow&&(0,a.Wm)(d.JO,{class:p("arrow"),name:"arrow-left"},null),e.leftText&&(0,a.Wm)("span",{class:p("text")},[e.leftText])],v=()=>l.right?l.right():(0,a.Wm)("span",{class:p("text")},[e.rightText]),h=()=>{const{title:t,fixed:o,border:i,zIndex:u}=e,d=(0,r.As)(u),h=e.leftArrow||e.leftText||l.left,g=e.rightText||l.right;return(0,a.Wm)("div",{ref:n,style:d,class:[p({fixed:o}),{[c.xe]:i,"van-safe-area-top":e.safeAreaInsetTop}]},[(0,a.Wm)("div",{class:p("content")},[h&&(0,a.Wm)("div",{class:[p("left"),e.clickable?c.e9:""],onClick:s},[m()]),(0,a.Wm)("div",{class:[p("title"),"van-ellipsis"]},[l.title?l.title():t]),g&&(0,a.Wm)("div",{class:[p("right"),e.clickable?c.e9:""],onClick:f},[v()])])])};return()=>e.fixed&&e.placeholder?i(h):h()}});const h=(0,n.n)(v)},12097:function(e,t,l){l(31958),l(20368),l(56742)},31441:function(e,t,l){l.d(t,{I8:function(){return k}});var n=l(11404),a=(l(57658),l(73396)),o=l(44870),i=l(610),s=l(5323),r=l(47936),c=l(253),u=l(65261),d=l(12229);const[f,p,m]=(0,i["do"])("pull-refresh"),v=50,h=["pulling","loosing","success"],g={disabled:Boolean,modelValue:Boolean,headHeight:(0,s.SI)(v),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:s.Or,successDuration:(0,s.SI)(500),animationDuration:(0,s.SI)(300)};var b=(0,a.aZ)({name:f,props:g,emits:["change","refresh","update:modelValue"],setup(e,{emit:t,slots:l}){let n;const i=(0,o.iH)(),s=(0,o.iH)(),f=(0,c.eo)(i),g=(0,o.qj)({status:"normal",distance:0,duration:0}),b=(0,u.o)(),k=()=>{if(e.headHeight!==v)return{height:`${e.headHeight}px`}},x=()=>"loading"!==g.status&&"success"!==g.status&&!e.disabled,y=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)},w=(l,n)=>{const a=+(e.pullDistance||e.headHeight);g.distance=l,g.status=n?"loading":0===l?"normal":l{const{status:t}=g;return"normal"===t?"":e[`${t}Text`]||m(t)},C=()=>{const{status:e,distance:t}=g;if(l[e])return l[e]({distance:t});const n=[];return h.includes(e)&&n.push((0,a.Wm)("div",{class:p("text")},[W()])),"loading"===e&&n.push((0,a.Wm)(d.gb,{class:p("loading")},{default:W})),n},T=()=>{g.status="success",setTimeout((()=>{w(0)}),+e.successDuration)},_=e=>{n=0===(0,r.cx)(f.value),n&&(g.duration=0,b.start(e))},H=e=>{x()&&_(e)},S=e=>{if(x()){n||_(e);const{deltaY:t}=b;b.move(e),n&&t.value>=0&&b.isVertical()&&((0,r.PF)(e),w(y(t.value)))}},D=()=>{n&&b.deltaY.value&&x()&&(g.duration=+e.animationDuration,"loosing"===g.status?(w(+e.headHeight,!0),t("update:modelValue",!0),(0,a.Y3)((()=>t("refresh")))):w(0))};return(0,a.YP)((()=>e.modelValue),(t=>{g.duration=+e.animationDuration,t?w(+e.headHeight,!0):l.success||e.successText?T():w(0,!1)})),(0,c.OR)("touchmove",S,{target:s}),()=>{var e;const t={transitionDuration:`${g.duration}ms`,transform:g.distance?`translate3d(0,${g.distance}px, 0)`:""};return(0,a.Wm)("div",{ref:i,class:p()},[(0,a.Wm)("div",{ref:s,class:p("track"),style:t,onTouchstartPassive:H,onTouchend:D,onTouchcancel:D},[(0,a.Wm)("div",{class:p("head"),style:k()},[C()]),null==(e=l.default)?void 0:e.call(l)])])}}});const k=(0,n.n)(b)},84035:function(e,t,l){l(31958),l(62939)},80147:function(e,t,l){l.d(t,{ol:function(){return k}});var n=l(11404),a=l(73396),o=l(44870),i=l(610),s=l(12220),r=l(5323),c=l(47936),u=l(36817),d=l(96401),f=l(3444),p=l(43739);const[m,v,h]=(0,i["do"])("search"),g=(0,s.l7)({},u.Mv,{label:String,shape:(0,r.SQ)("square"),leftIcon:(0,r.SQ)("search"),clearable:r.J5,actionText:String,background:String,showAction:Boolean});var b=(0,a.aZ)({name:m,props:g,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:l,attrs:n}){const i=(0,d.M)(),r=(0,o.iH)(),m=()=>{l.action||(t("update:modelValue",""),t("cancel"))},g=l=>{const n=13;l.keyCode===n&&((0,c.PF)(l),t("search",e.modelValue))},b=()=>e.id||`${i}-input`,k=()=>{if(l.label||e.label)return(0,a.Wm)("label",{class:v("label"),for:b()},[l.label?l.label():e.label])},x=()=>{if(e.showAction){const t=e.actionText||h("cancel");return(0,a.Wm)("div",{class:v("action"),role:"button",tabindex:0,onClick:m},[l.action?l.action():t])}},y=()=>{var e;return null==(e=r.value)?void 0:e.blur()},w=()=>{var e;return null==(e=r.value)?void 0:e.focus()},W=e=>t("blur",e),C=e=>t("focus",e),T=e=>t("clear",e),_=e=>t("clickInput",e),H=e=>t("clickLeftIcon",e),S=e=>t("clickRightIcon",e),D=Object.keys(u.Mv),V=()=>{const o=(0,s.l7)({},n,(0,s.ei)(e,D),{id:b()}),i=e=>t("update:modelValue",e);return(0,a.Wm)(p.gN,(0,a.dG)({ref:r,type:"search",class:v("field"),border:!1,onBlur:W,onFocus:C,onClear:T,onKeypress:g,onClickInput:_,onClickLeftIcon:H,onClickRightIcon:S,"onUpdate:modelValue":i},o),(0,s.ei)(l,["left-icon","right-icon"]))};return(0,f.F)({focus:w,blur:y}),()=>{var t;return(0,a.Wm)("div",{class:v({"show-action":e.showAction}),style:{background:e.background}},[null==(t=l.left)?void 0:t.call(l),(0,a.Wm)("div",{class:v("content",e.shape)},[k(),V()]),x()])}}});const k=(0,n.n)(b)},39292:function(e,t,l){l(31958),l(20368),l(56742),l(3094),l(67984)}}]); //# sourceMappingURL=1608.88bad023.js.map