text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[16],{"0b2f":function(t,e){},"67bd":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("transition",{attrs:{appear:"","enter-active-class":"animated fadeIn"}},[a("q-table",{staticClass:" shadow-24",attrs:{data:t.table_list,"row-key":"id",separator:t.separator,loading:t.loading,columns:t.columns,"hide-bottom":"",pagination:t.pagination,"no-data-label":"No data","no-results-label":"No data you want","table-style":{height:t.height},flat:"",bordered:""},on:{"update:pagination":function(e){t.pagination=e}},scopedSlots:t._u([{key:"top",fn:function(){return[a("div",{staticClass:"flex items-center"},[a("div",{staticClass:"q-mr-md"},[t._v(t._s(t.$t("download_center.createTime")))]),a("q-input",{attrs:{readonly:"",outlined:"",dense:"",placeholder:t.interval},scopedSlots:t._u([{key:"append",fn:function(){return[a("q-icon",{staticClass:"cursor-pointer",attrs:{name:"event"}},[a("q-popup-proxy",{ref:"qDateProxy",attrs:{"transition-show":"scale","transition-hide":"scale"}},[a("q-date",{attrs:{range:""},model:{value:t.createDate1,callback:function(e){t.createDate1=e},expression:"createDate1"}})],1)],1)]},proxy:!0}]),model:{value:t.createDate2,callback:function(e){t.createDate2=e},expression:"createDate2"}}),a("q-btn-group",{staticClass:"q-ml-md",attrs:{push:""}},[a("q-btn",{attrs:{label:t.$t("download_center.reset"),icon:"img:statics/downloadcenter/reset.svg"},on:{click:function(e){return t.getList()}}},[a("q-tooltip",{attrs:{"content-class":"bg-amber text-black shadow-4",offset:[10,10],"content-style":"font-size: 12px"}},[t._v(t._s(t.$t("download_center.reset")))])],1),a("q-btn",{attrs:{label:t.$t("downloadasnlist"),icon:"cloud_download"},on:{click:function(e){return t.downloadlistData()}}},[a("q-tooltip",{attrs:{"content-class":"bg-amber text-black shadow-4",offset:[10,10],"content-style":"font-size: 12px"}},[t._v(t._s(t.$t("downloadasnlisttip")))])],1),a("q-btn",{attrs:{label:t.$t("downloadasndetail"),icon:"cloud_download"},on:{click:function(e){return t.downloaddetailData()}}},[a("q-tooltip",{attrs:{"content-class":"bg-amber text-black shadow-4",offset:[10,10],"content-style":"font-size: 12px"}},[t._v(t._s(t.$t("downloadasndetailtip")))])],1)],1)],1)]},proxy:!0},{key:"body",fn:function(e){return[a("q-tr",{attrs:{props:e}},[a("q-td",{key:"dn_code",attrs:{props:e}},[t._v(t._s(e.row.dn_code))]),a("q-td",{key:"dn_status",attrs:{props:e}},[t._v(t._s(e.row.dn_status))]),a("q-td",{key:"total_weight",attrs:{props:e}},[t._v(t._s(e.row.total_weight.toFixed(4)))]),a("q-td",{key:"total_volume",attrs:{props:e}},[t._v(t._s(e.row.total_volume.toFixed(4)))]),a("q-td",{key:"customer",attrs:{props:e}},[t._v(t._s(e.row.customer))]),a("q-td",{key:"creater",attrs:{props:e}},[t._v(t._s(e.row.creater))]),a("q-td",{key:"create_time",attrs:{props:e}},[t._v(t._s(e.row.create_time))]),a("q-td",{key:"update_time",attrs:{props:e}},[t._v(t._s(e.row.update_time))])],1)]}}])})],1),[a("div",{staticClass:"q-pa-lg flex flex-center"},[a("q-btn",{directives:[{name:"show",rawName:"v-show",value:t.pathname_previous,expression:"pathname_previous"}],attrs:{flat:"",push:"",color:"purple",label:t.$t("previous"),icon:"navigate_before"},on:{click:function(e){return t.getListPrevious()}}},[a("q-tooltip",{attrs:{"content-class":"bg-amber text-black shadow-4",offset:[10,10],"content-style":"font-size: 12px"}},[t._v(t._s(t.$t("previous")))])],1),a("q-btn",{directives:[{name:"show",rawName:"v-show",value:t.pathname_next,expression:"pathname_next"}],attrs:{flat:"",push:"",color:"purple",label:t.$t("next"),"icon-right":"navigate_next"},on:{click:function(e){return t.getListNext()}}},[a("q-tooltip",{attrs:{"content-class":"bg-amber text-black shadow-4",offset:[10,10],"content-style":"font-size: 12px"}},[t._v(t._s(t.$t("next")))])],1),a("q-btn",{directives:[{name:"show",rawName:"v-show",value:!t.pathname_previous&&!t.pathname_next,expression:"!pathname_previous && !pathname_next"}],attrs:{flat:"",push:"",color:"dark",label:t.$t("no_data")}})],1)]],2)},n=[],o=(a("5319"),a("3004")),r=a("bd4c"),i=a("a357"),d=(a("a639"),a("18d6")),l={name:"Pageasnlist",data(){return{pathname:"dn/",pathname_previous:"",pathname_next:"",separator:"cell",loading:!1,height:"",table_list:[],columns:[{name:"dn_code",required:!0,label:this.$t("outbound.view_dn.dn_code"),align:"left",field:"dn_code"},{name:"dn_status",label:this.$t("outbound.view_dn.dn_status"),field:"dn_status",align:"center"},{name:"total_weight",label:this.$t("outbound.view_dn.total_weight"),field:"total_weight",align:"center"},{name:"total_volume",label:this.$t("outbound.view_dn.total_volume"),field:"total_volume",align:"center"},{name:"customer",label:this.$t("outbound.view_dn.customer"),field:"customer",align:"center"},{name:"creater",label:this.$t("creater"),field:"creater",align:"center"},{name:"create_time",label:this.$t("createtime"),field:"create_time",align:"center"},{name:"update_time",label:this.$t("updatetime"),field:"update_time",align:"right"}],pagination:{page:1,rowsPerPage:"30"},createDate1:"",createDate2:"",date_range:"",url:""}},computed:{interval(){return this.$t("download_center.start")+" - "+this.$t("download_center.end")}},watch:{createDate1(t){t&&(t.to?(this.createDate2=`${t.from} - ${t.to}`,this.date_range=`${t.from},${t.to} 23:59:59`,this.url=this.pathname+"list/?create_time__range="+this.date_range):(this.createDate2=`${t}`,this.dateArray=t.split("/"),this.url=this.pathname+"list/?create_time__year="+this.dateArray[0]+"&create_time__month="+this.dateArray[1]+"&create_time__day="+this.dateArray[2]),this.date_range=this.date_range.replace(/\//g,"-"),this.getSearchList(),this.$refs.qDateProxy.hide())}},methods:{getList(){var t=this;Object(o["e"])(t.pathname+"list/").then((e=>{t.table_list=[],e.results.forEach((e=>{1===e.dn_status?e.dn_status=t.$t("outbound.freshorder"):2===e.dn_status?e.dn_status=t.$t("outbound.neworder"):3===e.dn_status?e.dn_status=t.$t("outbound.pickstock"):4===e.dn_status?e.dn_status=t.$t("outbound.pickedstock"):5===e.dn_status?e.dn_status=t.$t("outbound.shippedstock"):6===e.dn_status?e.dn_status=t.$t("outbound.received"):e.dn_status="N/A",t.table_list.push(e)})),e.results.forEach((e=>{1===e.asn_status&&(e.asn_status=t.$t())})),t.customer_list=e.customer_list,t.pathname_previous=e.previous,t.pathname_next=e.next})).catch((e=>{t.$q.notify({message:e.detail,icon:"close",color:"negative"})}))},getSearchList(){var t=this;Object(o["e"])(t.url).then((e=>{t.table_list=[],e.results.forEach((e=>{1===e.dn_status?e.dn_status=t.$t("outbound.freshorder"):2===e.dn_status?e.dn_status=t.$t("outbound.neworder"):3===e.dn_status?e.dn_status=t.$t("outbound.pickstock"):4===e.dn_status?e.dn_status=t.$t("outbound.pickedstock"):5===e.dn_status?e.dn_status=t.$t("outbound.shippedstock"):6===e.dn_status?e.dn_status=t.$t("outbound.received"):e.dn_status="N/A",t.table_list.push(e)})),t.pathname_previous=e.previous,t.pathname_next=e.next})).catch((e=>{t.$q.notify({message:e.detail,icon:"close",color:"negative"})}))},getListPrevious(){var t=this;Object(o["e"])(t.pathname_previous,{}).then((e=>{t.table_list=[],e.results.forEach((e=>{1===e.dn_status?e.dn_status=t.$t("outbound.freshorder"):2===e.dn_status?e.dn_status=t.$t("outbound.neworder"):3===e.dn_status?e.dn_status=t.$t("outbound.pickstock"):4===e.dn_status?e.dn_status=t.$t("outbound.pickedstock"):5===e.dn_status?e.dn_status=t.$t("outbound.shippedstock"):6===e.dn_status?e.dn_status=t.$t("outbound.received"):e.dn_status="N/A",t.table_list.push(e)})),t.pathname_previous=e.previous,t.pathname_next=e.next})).catch((e=>{t.$q.notify({message:e.detail,icon:"close",color:"negative"})}))},getListNext(){var t=this;Object(o["e"])(t.pathname_next,{}).then((e=>{t.table_list=[],e.results.forEach((e=>{1===e.dn_status?e.dn_status=t.$t("outbound.freshorder"):2===e.dn_status?e.dn_status=t.$t("outbound.neworder"):3===e.dn_status?e.dn_status=t.$t("outbound.pickstock"):4===e.dn_status?e.dn_status=t.$t("outbound.pickedstock"):5===e.dn_status?e.dn_status=t.$t("outbound.shippedstock"):6===e.dn_status?e.dn_status=t.$t("outbound.received"):e.dn_status="N/A",t.table_list.push(e)})),t.pathname_previous=e.previous,t.pathname_next=e.next})).catch((e=>{t.$q.notify({message:e.detail,icon:"close",color:"negative"})}))},downloadlistData(){var t=this;Object(o["f"])(t.pathname+"filelist/?lang="+d["a"].getItem("lang")).then((e=>{var a=Date.now(),s=r["b"].formatDate(a,"YYYYMMDDHHmmssSSS");const n=Object(i["a"])(t.pathname+"list"+s+".csv","\ufeff"+e.data,"text/csv");!0!==n&&t.$q.notify({message:"Browser denied file download...",color:"negative",icon:"warning"})}))},downloaddetailData(){var t=this;Object(o["f"])(t.pathname+"filedetail/?lang="+d["a"].getItem("lang")).then((e=>{var a=Date.now(),s=r["b"].formatDate(a,"YYYYMMDDHHmmssSSS");const n=Object(i["a"])(t.pathname+"detail"+s+".csv","\ufeff"+e.data,"text/csv");!0!==n&&t.$q.notify({message:"Browser denied file download...",color:"negative",icon:"warning"})}))}},created(){this.getList()},mounted(){var t=this;t.$q.platform.is.electron?t.height=String(t.$q.screen.height-290)+"px":t.height=t.$q.screen.height-290+"px"},updated(){},destroyed(){}},u=l,c=a("42e1"),_=a("f32d"),p=a("eaac"),h=a("27f9"),m=a("0016"),b=a("7cbe"),f=a("52ee"),v=a("e7a9"),g=a("9c40"),w=a("05c0"),$=a("bd08"),x=a("db86"),k=a("eebe"),q=a.n(k),y=Object(c["a"])(u,s,n,!1,null,null,null);"function"===typeof _["default"]&&Object(_["default"])(y);e["default"]=y.exports;q()(y,"components",{QTable:p["a"],QInput:h["a"],QIcon:m["a"],QPopupProxy:b["a"],QDate:f["a"],QBtnGroup:v["a"],QBtn:g["a"],QTooltip:w["a"],QTr:$["a"],QTd:x["a"]})},f32d:function(t,e,a){"use strict";var s=a("0b2f"),n=a.n(s);e["default"]=n.a}}]);