PageSourceSearch

https://www.phone2fork.com/spa/js/3899.8541f746.js

js phone2fork.com collected 2026-10-02 01:43:04 UTC 6,394 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkPhone2Fork"]=self["webpackChunkPhone2Fork"]||[]).push([[3899],{23899:function(e,t,s){s.r(t),s.d(t,{default:function(){return _}});var a=function(){var e=this,t=e._self._c;return t("main",{staticClass:"l-main l-main--header l-main--footer"},[t("Header"),t("section",{staticClass:"c-account l-section--vertPadding h-centerText"},[t("PageIntro",{attrs:{title:"Receive Orders","font-size":"34",icon:"drinks"}}),t("section",{staticClass:"l-section h-marginTop--0 l-section--padding h-color--bg",attrs:{"data-color":"offcream"}},[t("label",{staticClass:"f-b4 mb-0 mt-0"},[e._v("Choose a pub:")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.site_id,expression:"site_id"}],on:{change:function(t){var s=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.site_id=t.target.multiple?s:s[0]}}},e._l(e.sites,(function(s,a){return t("option",{key:a,domProps:{value:s.id}},[e._v("   "+e._s(s.name)+"   ")])})),0),t("label",{staticClass:"f-b4 mb-0 mt-0"},[e._v("Show:")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.receivedFilter,expression:"receivedFilter"}],on:{change:function(t){var s=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.receivedFilter=t.target.multiple?s:s[0]}}},[t("option",{attrs:{value:"all"}},[e._v("   All Orders   ")]),t("option",{attrs:{value:"unreceived"}},[e._v("   Order to be received   ")]),t("option",{attrs:{value:"received"}},[e._v("   Order already received   ")])])]),e._l(e.filteredItems,(function(s,a){return t("div",{key:a,staticClass:"text-left p-4 py-6 border-t-[2px] p-[10px] border-primary",class:{"bg-offcream":a%2===0,"bg-cream":a%2!==0}},[t("div",{directives:[{name:"in-viewport",rawName:"v-in-viewport.once",modifiers:{once:!0}}],staticClass:"a-inview a-fadeIn a-slideRight"},[t("h2",{staticClass:"font-bold text-xs uppercase text-black"},[t("span",{staticClass:"text-primary inline-block w-[120px]"},[e._v("Order ID:")]),e._v(" WC"+e._s(s.id))]),t("h2",{staticClass:"font-bold text-xs uppercase text-black"},[t("span",{staticClass:"text-primary inline-block w-[120px]"},[e._v("Team Member:")]),e._v(" "+e._s(s.team.name))]),t("h2",{staticClass:"font-bold text-xs uppercase text-black"},[t("span",{staticClass:"text-primary inline-block w-[120px]"},[e._v("Deliver To:")]),e._v(" "+e._s(s.deliver_site.name))]),e._m(0,!0),e._l(s.items,(function(s,a){return t("div",{key:a},[t("h2",{staticClass:"font-bold text-xs uppercase text-black"},[t("span",{staticClass:"font-bold lowercase"},[e._v(e._s(s.qty)+"x")]),e._v(" "+e._s(s.team_product.name))])])})),t("hr",{staticClass:"o-hr o-hr--full mt-4"}),t("h3",{staticClass:"text-xs whitespace-nowrap flex items-center justify-between mb-[5px] mt-2"},[t("span",{staticClass:"inline-block font-bold text-xs uppercase text-primary"},[e._v("Prepared: "),t("span",{staticClass:"inline-block w-[20px]"},[t("div",{staticClass:"border border-black block w-[20px] h-[20px] aspect-square relative top-[4px]"},[s.is_prepared?t("div",{staticClass:"text-green text-xl leading-none absolute -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2 w-[20px] h-[20px] text-center"},[e._v("✓")]):t("div",{staticClass:"text-red text-xl leading-none absolute -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2 w-[20px] h-[20px] text-center"})])])])]),s.is_prepared?t("h3",{staticClass:"font-bold text-xs uppercase text-primary text-left mb-[
10px]"},[e._v("Prepared By "),t("span",{staticClass:"text-black font-bold"},[e._v(e._s(s.prepared_by.name))]),e._v(" at "),t("span",{staticClass:"text-black font-bold"},[e._v(e._s(e.formatDateTime(s.prepared_datetime)))])]):e._e(),t("hr",{staticClass:"o-hr o-hr--full mt-4"}),t("h3",{staticClass:"text-xs whitespace-nowrap flex items-center justify-between mb-[5px] mt-2"},[t("span",{staticClass:"inline-block font-bold text-xs uppercase text-primary"},[e._v("received: "),t("span",{staticClass:"inline-block w-[20px]"},[t("div",{staticClass:"border border-black block w-[20px] h-[20px] aspect-square relative top-[4px]",on:{click:function(t){return e.received(s.id)}}},[s.is_received?t("div",{staticClass:"text-green text-xl leading-none absolute -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2 w-[20px] h-[20px] text-center"},[e._v("✓")]):t("div",{staticClass:"text-red text-xl leading-none absolute -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2 w-[20px] h-[20px] text-center"})])])])]),s.is_received?t("h3",{staticClass:"font-bold text-xs uppercase text-primary text-left mb-[
10px]"},[e._v("received By "),t("span",{staticClass:"text-black font-bold"},[e._v(e._s(s.received_by.name))]),e._v(" at "),t("span",{staticClass:"text-black font-bold"},[e._v(e._s(e.formatDateTime(s.received_datetime)))])]):e._e()],2)])}))],2)],1)},r=[function(){var e=this,t=e._self._c;return t("h2",{staticClass:"font-bold text-xs mt-4 uppercase text-black"},[t("span",{staticClass:"text-primary font-bold inline-block w-[120px]"},[e._v("Items:")])])}],i=s(88467),n=s(95567),l=s(23505),o=s(9669),c=s.n(o),d=s(30381),p=s.n(d),v=s(36005),x={name:"ManagementTeamReceive",components:{Header:i.Z,PageIntro:l.Z},data(){return{requesting:!1,key:"teamProductOrdersPrepared",key2:"sites",site_id:this.$route.params.siteId,uuid:null,receivedFilter:"unreceived",order:{}}},mounted(){this.getOrders(),this.$store.dispatch("request",{verb:"get",url:this.endpoint2,key:this.key2})},computed:{endpoint(){return n.Z.endpoint(this.key)},orders(){return this.$store.state.data.data[this.endpoint]?this.$store.state.data.data[this.endpoint].orders:[]},endpoint2(){return n.Z.endpoint(this.key2,null)},sites(){return this.$store.state.data.data[this.endpoint2]?this.$store.state.data.data[this.endpoint2]:[]},filteredItems(){return this.orders?"all"===this.receivedFilter?this.orders:v.ZP.filter(this.orders,(e=>{let t="received"===this.receivedFilter;return e.is_received===t&&e.deliver_site_id===this.site_id})):[]}},methods:{getOrders(){this.$store.dispatch("request",{verb:"get",url:this.endpoint,key:this.key})},received(e){c().post("/management/team-products/order/"+e+"/received",{}).then((()=>{this.getOrders()}))},formatDateTime(e){return p()(e).format("DD/MM/YY HH:mm")}}},u=x,m=s(1001),b=(0,m.Z)(u,a,r,!1,null,null,null),_=b.exports}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.