PageSourceSearch

https://warehouse.packhai.com/js/4264.5e3fbfff.js

js packhai.com collected 2026-10-09 03:30:06 UTC 15,781 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkpackhai_wms_management"]=self["webpackChunkpackhai_wms_management"]||[]).push([[4264],{85420(t,e,i){i.r(e),i.d(e,{default:()=>k});var a=i(33740),l=i(3698),n=i(52938),s=i(54414),o=i(69310),r=i(59483),d=i(36930),c=i(2756),u=i(41034),h=function(){var t=this,e=t._self._c;return t.page_loading?e("div",[e("loading",{attrs:{page_loading:t.page_loading}})],1):e("div",[e("loading",{attrs:{loading:t.loading}}),e(l.A,{staticClass:"mb-7",attrs:{elevation:"1"}},[e(n.ri,{staticStyle:{height:"auto"}},[e("h4",[t._v("การเงิน (สาขา)")]),t._v(" "),e(d.A,[t._v("mdi-chevron-right")]),1==t.datalist.typeInvoice?e("span",{staticClass:"font-weight-regular body-1"},[t._v(" ใบแจ้งหนี้ขนส่ง ")]):t._e(),2==t.datalist.typeInvoice?e("span",{staticClass:"font-weight-regular body-1"},[t._v(" ใบแจ้งหนี้ค่าบริการ COD ")]):t._e(),e(d.A,[t._v("mdi-chevron-right")]),e("span",{staticClass:"font-weight-regular body-1"},[t._v(" รายละเอียดใบแจ้งหนี้ของ สาขา "+t._s(t.datalist.branchName)+" ")]),e(u.A),e("vue-excel-xlsx",{attrs:{data:t.datalist.tracklist,columns:t.excel_detail_invoice_list_header,"file-name":t.filename,"sheet-name":"รายงานข้อมูลใบแจ้งหนี้"}},[e(a.A,{staticClass:"fn-14",attrs:{color:"success",dark:"",outlined:""},on:{click:function(e){return t.exportexceltracklist(t.datalist.typeInvoice)}}},[t._v(" Export Excel ")])],1)],1)],1),e(l.A,{staticClass:"elevation-0 mt-2"},[e(n.ri,[null!=t.datalist?e("font",{staticClass:"hidden-xs-only pt-3"},[t._v("ข้อมูลใบแจ้งหนี้ : "+t._s(t.datalist.invoiceNo)+" (เวลาออกใบเสร็จ "+t._s(t.datalist.invoiceDate)+")")]):t._e()],1),e(n.OQ,[1==t.datalist.typeInvoice?e(o.A,{staticClass:"elevation-0 packhai-border-table",attrs:{headers:t.headers_express,items:t.datalist.tracklist,"hide-default-footer":"","items-per-page":1e5,"mobile-breakpoint":0},scopedSlots:t._u([{key:"item.num",fn:function({item:e}){return[t._v(" "+t._s(t.gen_num_data_table(t.datalist.tracklist.indexOf(e)))+" ")]}},{key:"item.trackingNo",fn:function({item:e}){return[t._v(" "+t._s(e.tracking)+" ")]}},{key:"item.size",fn:function({item:i}){return[null!=i.cubic1&&null!=i.cubic2&&null!=i.cubic3?e("span",[t._v(" "+t._s(i.cubic1+" x "+i.cubic2+" x "+i.cubic3)+" ")]):t._e()]}},{key:"item.expressAmount",fn:function({item:e}){return[t._v(" "+t._s(t.format_price(e.expressAmount))+" ")]}}],null,!1,2812410910)}):2==t.datalist.typeInvoice?e(o.A,{staticClass:"elevation-0 packhai-border-table",attrs:{headers:t.headers_cod,items:t.datalist.tracklist,"hide-default-footer":"","items-per-page":1e5,"mobile-breakpoint":0},scopedSlots:t._u([{key:"item.num",fn:function({item:e}){return[t._v(" "+t._s(t.gen_num_data_table(t.datalist.tracklist.indexOf(e)))+" ")]}},{key:"item.trackingNo",fn:function({item:e}){return[t._v(" "+t._s(e.tracking)+" ")]}},{key:"item.size",fn:function({item:i}){return[null!=i.cubic1&&null!=i.cubic2&&null!=i.cubic3?e("span",[t._v(" "+t._s(i.cubic1+" x "+i.cubic2+" x "+i.cubic3)+" ")]):t._e()]}},{key:"item.codAmount",fn:function({item:e}){return[t._v(" "+t._s(e.codAmount)+" ")]}}])}):t._e(),e(c.A,{staticClass:"mx-0 my-2"}),e(r.A),null!=t.datalist?e(c.A,{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],attrs:{justify:"end"}},[e(s.A,{attrs:{lg:"4"}},[e(c.A,{staticClass:"py-3 px-4"},[e(s.A,[t._v(" ราคา ")]),e(s.A,{attrs:{cols:"4",lg:"2",align:"right"}},[null!=t.datalist.calculatedPrice?e("span",[t._v(t._s(t.format_price(t.datalist.calculatedPrice)))]):e("span",[t._v("0.00")])])],1),e(r.A),e(c.A,{staticClass:"py-3 px-4"},[e(s.A,[1==t.datalist.vatType?e("span",[t._v("ภาษีมูลค่าเพิ่ม (No Vat)")]):2==t.datalist.vatType?e("span",[t._v("ภาษีมูลค่าเพิ่ม (VAT Included)")]):t._e()]),e(s.A,{attrs:{cols:"4",lg:"2",align:"right"}},[2==t.datalist.vatType?e("span",[t._v(t._s(t.format_price(t.datalist.vatAmount)))]):1==t.datalist.vatType?e("span",[t._v("0.00")]
1):t._e()])],1),e(r.A),e(c.A,{staticClass:"py-3 px-4 font-weight-bold"},[e(s.A,[t._v(" รวมยอดทั้งหมด ")]),e(s.A,{attrs:{cols:"4",lg:"2",align:"right"}},[e("span",[t._v(t._s(t.format_price(t.datalist.totalPrice)))])])],1),e(r.A)],1)],1):t._e()],1)],1)],1)},g=[],_=(i(44114),i(97819)),f=i(77784),p=i(4213),v=i(50226),m=i(26703),w=i(43985);const b={components:{Loading:p.A},data:()=>({page_loading:!0,loading:!1,headers_express:[{text:"",align:"center",value:"num",sortable:!1,width:"5%"},{text:"TrackingNo",align:"left",value:"trackingNo",sortable:!1},{text:"ขนาด",align:"center",value:"size",sortable:!1},{text:"ค่าขนส่ง",align:"right",value:"expressAmount",sortable:!1}],headers_cod:[{text:"",align:"center",value:"num",sortable:!1,width:"5%"},{text:"TrackingNo",align:"left",value:"trackingNo",sortable:!1},{text:"ขนาด",align:"center",value:"size",sortable:!1},{text:"ค่าบริการ cod",align:"right",value:"codAmount",sortable:!1}],datalist:[],datalist_for_excel:[],data_group_detail:null,excel_detail_invoice_list_header:[{label:"TrackingNo",field:"tracking",width:15},{label:"กว้าง",field:"cubic1",width:25},{label:"ยาว",field:"cubic2",width:25},{label:"สูง",field:"cubic3",width:15},{label:"ค่าบริการ cod",field:"codAmount",width:15}],filename:null,loadingExcel:0,isPage:0,page:1,page_tmp:null,limits:50,offsets:0,pageLength:null,total_order:0,branch_name:""}),async created(){this.inv_no=null,this.invGroup=null,"undefined"===this.$route.query.inv||"null"==this.$route.query.inv||null==this.$route.query.inv||""==this.$route.query.inv?this.inv_no=null:this.inv_no=this.$route.query.inv,this.branch_id=this.$route.query.branch_id,await this.get_invoice(),this.page_loading=!1},methods:{async get_count_all_order(){let t=await _.A.post(v.Dz+"HQInvoice/get-count-order-detail1",{id:this.invGroup_id},{headers:f.S});this.total_order=t.data,this.getpagelength(t.data)},async get_invoice(){try{let t=await _.A.post(v.Dz+"HQInvoice/get-invoice-detail-express",{InvoiceNo:this.inv_no,limits:this.limits,offsets:this.offsets},{headers:f.S});this.datalist=t.data}catch(t){this.AlertError()}},async get_invoice_summary(){try{let t=await _.A.post(v.Dz+"HQInvoice/group-detail-summary",{id:this.invGroup_id,limits:this.total_order,offsets:0},{headers:f.S});this.data_group_detail=t.data}catch(t){this.AlertError()}},getpagelength(t){var e=0;e=0!=t?t:1,e=parseInt(e),this.pageLength=Math.ceil(e/this.limits),this.isPage=0,this.page_tmp=this.page},async changePage(){this.loading=!0,this.page>=1&&this.page<=this.pageLength&&this.page_tmp!=this.page&&(this.offsets=this.page*this.limits-this.limits,await this.get_invoice(this.limits,this.offsets),this.page_tmp=this.page),this.loading=!1},gen_num_data_table(t){if(null!=t){var e=null;return e=1+this.offsets,e+t}return""},async loading_excel_percent(){this.loadingExcel=1;try{this.datalist_for_excel=[];var t=1,e=2e3,i=this.total_order,a=0,l=parseInt(i/e);e*l<i&&(l+=1);for(var n=1;n<=l;n++){t=parseInt(n/l*100);var s=await this.get_data_for_excel(e,a);for(var o in s)this.datalist_for_excel.push(s[o]);this.loadingExcel=t,a+=e}this.datalist_for_excel.length>0&&(this.datalist_for_excel.push({vrichFee:"ค่าธรรมเนียม",totalPrice:this.datalist_for_excel[this.datalist_for_excel.length-1].transactionFee}),this.datalist_for_excel.push({vrichFee:"ค่าเชื่อมต่อ Vrich",totalPrice:this.datalist_for_excel[this.datalist_for_excel.length-1].transactionFee}),this.datalist_for_excel.push({vrichFee:"%VAT ค่าบริการ",totalPrice:this.data_group_detail.serviceVatPercent}),this.datalist_for_excel.push({vrichFee:"VAT ค่าบริการ",totalPrice:this.data_group_detail.serviceVatAmount}),this.datalist_for_excel.push({vrichFee:"รวมยอดทั้งหมด",totalPrice:this.data_group_detail.totalPrice})),await document.getElementById("GetExcel").click(),this.datalist_for_excel=[],this.loadingExcel=0}catch(r){this.AlertError(),this.loadingExcel=0,this.datalist_for_excel=[]}},async get_data_for_excel(t,e){let i=await _.A.post(v.Dz+"HQInvoice/group-detail1",{id:this.invGroup_id,limits:t,offsets:e},{headers:f.S});return i.data},exportexceltracklist(t){return 2==t?(this.excel_detail_invoice_list_header=[{label:"TrackingNo",field:"tracking",width:15},{label:"กว้าง",field:"cubic1",width:25},{label:"ยาว",field:"cubic2",width:25},{label:"สูง",field:"cubic3",width:15},{label:"ค่าบริการ cod",field:"codAmount",width:15}],this.filename="รายงานใบแจ้งหนี้ค่าบริการ cod"):1==t&&(this.excel_detail_invoice_list_header=[{label:"TrackingNo",field:"tracking",width:15},{label:"กว้าง",field:"cubic1",width:25},{label:"ยาว",field:"cubic2",width:25},{label:"สูง",field:"cubic3",width:15},{label:"ค่าบริการ cod",field:"expressAmount",width:15}],this.filename="รายงานใบแจ้งหนี้ขนส่ง"),this.excel_detail_invoice_list_header,this.filename},FormatInvoiceBranch:w.Ri,FormatOrder:w.k2,format_price:w.e6,AlertError:m.PL}},x=b;var y=i(81656),A=(0,y.A)(x,h,g,!1,null,"141ad2ff",null);const k=A.exports},4213(t,e,i){i.d(e,{A:()=>u});var a=i(99991),l=i(51554),n=function(){var t=this,e=t._self._c;return e("div",[t.page_loading_full?e("div",[e(a.A,{attrs:{"hide-overlay":"",persistent:""},model:{value:t.page_loading_full,callback:function(e){t.page_loading_full=e},expression:"page_loading_full"}},[e("div",{staticClass:"text-center"},[e(l.A,{attrs:{size:200,width:5,color:"error",indeterminate:""}},[t._v(" กำลังโหลด ")])],1)])],1):t._e(),t.loading_full?e("div",[e(a.A,{attrs:{persistent:""},model:{value:t.loading_full,callback:function(e){t.loading_full=e},expression:"loading_full"}},[e("div",{staticClass:"text-center"},[e(l.A,{attrs:{size:80,width:5,color:"error",indeterminate:""}})],1)])],1):t._e(),t.page_loading?e("div",[e(a.A,{attrs:{"hide-overlay":"",persistent:""},model:{value:t.page_loading,callback:function(e){t.page_loading=e},expression:"page_loading"}},[e("div",{staticClass:"text-center",style:{"padding-left":t.paddingleft+"px"}},[e(l.A,{attrs:{size:200,width:5,color:"error",indeterminate:""}},[t._v(" กำลังโหลด ")])],1)])],1):t._e(),t.loading?e("div",[e(a.A,{attrs:{persistent:""},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[e("div",{staticClass:"text-center"},[e(l.A,{attrs:{size:80,width:5,color:"error",indeterminate:""}})],1)])],1):t._e()])},s=[];const o={props:["page_loading_full","loading_full","page_loading","loading"],data:()=>({paddingleft:0,size:"lg",window:{width:0,height:0}}),destroyed(){window.removeEventListener("resize",this.handleResize)},created(){window.addEventListener("resize",this.handleResize),this.handleResize(),this.paddingleft="lg"==this.size||"xl"==this.size?256:0},methods:{handleResize(){this.window.width=window.innerWidth,this.window.height=window.innerHeight,this.window.width<600?this.size="xs":this.window.width>=600&&this.window.width<960?this.size="sm":this.window.width>=960&&this.window.width<1264?this.size="md":this.window.width>=1264&&this.window.width<1904?this.size="lg":this.window.width>=1904&&(this.size="xl")}}},r=o;var d=i(81656),c=(0,d.A)(r,n,s,!1,null,"1cafb650",null);const u=c.exports},54414(t,e,i){i(74423),i(44114),i(18111),i(7588),i(13579),i(45367),i(92731),i(40125);var a=i(85471),l=i(18041),n=i(4152);const s=["sm","md","lg","xl"],o=(()=>s.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),r=(()=>s.reduce((t,e)=>(t["offset"+(0,n.Zb)(e)]={type:[String,Number],default:null},t),{}))(),d=(()=>s.reduce((t,e)=>(t["order"+(0,n.Zb)(e)]={type:[String,Number],default:null},t),{}))(),c={col:Object.keys(o),offset:Object.keys(r),order:Object.keys(d)};function u(t,e,i){let a=t;if(null!=i&&!1!==i){if(e){const i=e.replace(t,"");a+=`-${i}`}return"col"!==t||""!==i&&!0!==i?(a+=`-${i}`,a.toLowerCase()):a.toLowerCase()}}const h=new Map,g=a.Ay.extend({name:"v-col",functional:!0,props:{cols:{type:[Boolean,String,Number],default:!1},...o,offset:{type:[String,Number],default:null},...r,order:{type:[String,Number],default:null},...d,alignSelf:{type:String,default:null,validator:t=>["auto","start","end","center","baseline","stretch"].includes(t)},tag:{type:String,default:"div"}},render(t,{props:e,data:i,children:a,parent:n}){let s="";for(const l in e)s+=String(e[l]);let o=h.get(s);if(!o){let t;for(t in o=[],c)c[t].forEach(i=>
1{const a=e[i],l=u(t,i,a);l&&o.push(l)});const i=o.some(t=>t.startsWith("col-"));o.push({col:!i||!e.cols,[`col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),h.set(s,o)}return t(e.tag,(0,l.Ay)(i,{class:o}),a)}});i.d(e,["A",0,g])},2756(t,e,i){i(74423),i(44114),i(18111),i(7588),i(45367),i(92731),i(40125);var a=i(85471),l=i(18041),n=i(4152);const s=["sm","md","lg","xl"],o=["start","end","center"];function r(t,e){return s.reduce((i,a)=>(i[t+(0,n.Zb)(a)]=e(),i),{})}const d=t=>[...o,"baseline","stretch"].includes(t),c=r("align",()=>({type:String,default:null,validator:d})),u=t=>[...o,"space-between","space-around"].includes(t),h=r("justify",()=>({type:String,default:null,validator:u})),g=t=>[...o,"space-between","space-around","stretch"].includes(t),_=r("alignContent",()=>({type:String,default:null,validator:g})),f={align:Object.keys(c),justify:Object.keys(h),alignContent:Object.keys(_)},p={align:"align",justify:"justify",alignContent:"align-content"};function v(t,e,i){let a=p[t];if(null!=i){if(e){const i=e.replace(t,"");a+=`-${i}`}return a+=`-${i}`,a.toLowerCase()}}const m=new Map,w=a.Ay.extend({name:"v-row",functional:!0,props:{tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:d},...c,justify:{type:String,default:null,validator:u},...h,alignContent:{type:String,default:null,validator:g},..._},render(t,{props:e,data:i,children:a}){let n="";for(const l in e)n+=String(e[l]);let s=m.get(n);if(!s){let t;for(t in s=[],f)f[t].forEach(i=>{const a=e[i],l=v(t,i,a);l&&s.push(l)});s.push({"no-gutters":e.noGutters,"row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),m.set(n,s)}return t(e.tag,(0,l.Ay)(i,{staticClass:"row",class:s}),a)}});i.d(e,["A",0,w])},41034(t,e,i){i(158);var a=i(4152);const l=(0,a.Gn)("spacer","div","v-spacer");i.d(e,["A",0,l])},26703(t,e,i){i.d(e,{PL:()=>d,k$:()=>r,pl:()=>c,v8:()=>u});var a=i(97819),l=i(78465),n=i.n(l),s=i(77784),o=i(50226);function r(t){n().fire({toast:!0,timer:1500,position:"top",icon:"success",title:void 0==t&&null==t?"สำเร็จ":t,showConfirmButton:!1,confirmButtonText:"Yes!"})}function d(t){n().fire({toast:!0,timer:1500,position:"top",icon:"error",title:void 0==t&&null==t?"ไม่สามารถทำรายการได้":t,showConfirmButton:!0,confirmButtonText:"Yes!"})}function c(t){n().fire({toast:!0,position:"top",icon:"warning",title:void 0==t&&null==t?"ไม่สามารถทำรายการได้":t,showConfirmButton:!0,confirmButtonText:"Yes!"})}async function u(t,e,i,l,n,r,d,c){var u={id:0,platform:void 0==t?null:t,fromPath:void 0==e?null:e,fromApi:void 0==i?null:i,branchId:void 0==l?null:l,shopId:void 0==n?null:n,orderId:void 0==r?null:r,logInfo:void 0==d?null:d,logInfo2:void 0==c?null:c};await a.A.post(o.BS+"Log/insert-log",{applicationLog:u},{headers:s.S})}},40125(){},158(){}}]);
2//# sourceMappingURL=4264.5e3fbfff.js.map

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.