19.b76ca281.js 8.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[19],{"37e0":function(t,e,a){},"393d":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",[e("transition",{attrs:{appear:"","enter-active-class":"animated fadeIn"}},[e("q-table",{staticClass:"my-sticky-header-column-table shadow-24",attrs:{data:t.table_list,"row-key":"id",separator:t.separator,loading:t.loading,filter:t.filter,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[e("q-btn-group",{attrs:{push:""}},[e("q-btn",{attrs:{label:t.$t("refresh"),icon:"refresh"},on:{click:function(e){return t.reFresh()}}},[e("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("refreshtip")))])],1)],1),e("q-space"),e("div",{directives:[{name:"show",rawName:"v-show",value:0!==t.max,expression:"max !== 0"}],staticClass:"slider-container"},[e("div",{staticClass:"buttons-wrapper"},[t._l(t.bin_type,(function(a,n){return e("div",{key:a,staticClass:"slider-button",class:{active:t.current_bin_type===a},on:{click:function(e){return t.handleSwitch(a,n)}}},[t._v("\n "+t._s(t.bin_type_name[n])+"\n ")])})),e("div",{staticClass:"slider-track",style:t.sliderStyle})],2)]),e("q-space"),e("q-input",{attrs:{outlined:"",rounded:"",dense:"",debounce:"300",color:"primary",placeholder:t.$t("search")},on:{input:function(e){return t.getSearchList()},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{attrs:{name:"search"},on:{click:function(e){return t.getSearchList()}}})]},proxy:!0}]),model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}})]},proxy:!0},{key:"body",fn:function(a){return[e("q-tr",{attrs:{props:a}},[e("q-td",{key:"detail",attrs:{props:a}},[e("q-btn",{attrs:{round:"",flat:"",push:"",color:"black",icon:"description"},on:{click:function(e){return t.detailData(a.row)}}},[e("q-tooltip",{attrs:{"content-class":"bg-amber text-black shadow-4",offset:[10,10],"content-style":"font-size: 12px"}},[t._v(t._s("查看库位详情"))])],1)],1),e("q-td",{key:"location_items",attrs:{props:a}},[t._v(t._s())]),e("q-td",{key:"group_name",attrs:{props:a}},[t._v(t._s(a.row.group_name))]),e("q-td",{key:"group_code",attrs:{props:a}},[t._v(t._s(a.row.group_code))]),e("q-td",{key:"group_type",attrs:{props:a}},[t._v(t._s(a.row.group_type))]),e("q-td",{key:"max_capacity",attrs:{props:a}},[t._v(t._s(a.row.max_capacity))]),e("q-td",{key:"current_quantity",attrs:{props:a}},[t._v(t._s(a.row.current_quantity))]),e("q-td",{key:"current_goods_quantity",attrs:{props:a}},[t._v(t._s(a.row.current_goods_quantity))]),e("q-td",{key:"current_batch",attrs:{props:a}},[t._v(t._s(a.row.current_batch))]),e("q-td",{key:"current_goods_code",attrs:{props:a}},[t._v(t._s(a.row.current_goods_code))]),e("q-td",{key:"status",attrs:{props:a}},[t._v(t._s(a.row.status))])],1)]}}])})],1),[e("div",{directives:[{name:"show",rawName:"v-show",value:0!==t.max,expression:"max !== 0"}],staticClass:"q-pa-lg flex flex-center"},[e("div",[t._v(t._s(t.total)+" ")]),e("q-pagination",{attrs:{color:"black",max:t.max,"max-pages":6,"boundary-links":""},on:{click:function(e){t.getSearchList(t.current),t.paginationIpt=t.current}},model:{value:t.current,callback:function(e){t.current=e},expression:"current"}}),e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.paginationIpt,expression:"paginationIpt"}],staticStyle:{width:"60px","text-align":"center"},domProps:{value:t.paginationIpt},on:{blur:t.changePageEnter,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.changePageEnter.apply(null,arguments)},input:function(e){e.target.composing||(t.paginationIpt=e.target.value)}}})])],1),e("div",{directives:[{name:"show",rawName:"v-show",value:0===t.max,expression:"max === 0"}],staticClass:"q-pa-lg flex flex-center"},[e("q-btn",{attrs:{flat:"",push:"",color:"dark",label:t.$t("no_data")}})],1)]],2)},r=[],i=(a("ddb0"),a("9861"),a("a79d"),a("3004")),o=(a("bd4c"),a("a357"),a("18d6")),s={name:"Pageflowlist",data(){return{createDate1:"",createDate2:"",date_range:"",proxyDate:"",date:"",goods_code:"",goods_desc:"",openid:"",login_name:"",authin:"0",searchUrl:"",pathname:"bin/group/",pathfilename:"reportcenter/file/",current_bin_type:"",bin_type:["T1","T2","T4","T5","S4"],bin_type_name:["散盘","2托","4托","5托","4散"],pathname_previous:"",pathname_next:"",separator:"cell",loading:!1,height:"",viewForm:!1,printObj:{id:"printMe",popTitle:this.$t("inbound.asn")},table_list:[],columns:[{name:"detail",label:"库位详情",field:"detail",align:"center"},{name:"group_name",required:!0,label:"库位组名称",align:"center",field:"group_name"},{name:"group_code",label:"库位组编码",field:"group_code",align:"center"},{name:"group_type",label:"库位组类型",field:"group_type",align:"center"},{name:"max_capacity",label:"最大容量",field:"max_capacity",align:"center"},{name:"current_quantity",label:"当前托盘数",field:"current_quantity",align:"center"},{name:"current_goods_quantity",label:"当前货物数",field:"current_goods_quantity",align:"center"},{name:"current_batch",label:"当前批次",field:"current_batch",align:"center"},{name:"current_goods_code",label:"当前货物编码",field:"current_goods_code",align:"center"},{name:"status",label:"状态",field:"status",align:"ceter"},{name:"operation",label:"操作",field:"operation",align:"center"}],filter:"",pagination:{page:1,rowsPerPage:11},newForm:!1,newFormData:{document_date:"",document_number:"",document_type:"",business_type:"",iout_type:"",department:"",warehouse_code:"",warehouse_name:"",goods_code:"",goods_desc:"",goods_std:"",goods_batch:"",in_batch:"",out_batch:"",goods_unit:"",goods_in:"",goods_out:"",goods_notes:"",creator:""},editid:0,editFormData:{},editMode:!1,deleteForm:!1,deleteid:0,bar_code:"",error1:this.$t("goods.view_goodslist.error1"),current:1,max:0,total:0,paginationIpt:1}},computed:{interval(){return this.$t("download_center.start")+" - "+this.$t("download_center.end")},activeIndex(){return this.bin_type.indexOf(this.current_bin_type)},sliderStyle(){return{width:100/this.bin_type.length+"%",transform:`translateX(${100*this.activeIndex}%)`}}},methods:{getList(t={}){var e=this;e.loading=!0;const a={page:e.current,page_size:e.pagination.rowsPerPage},n=new URLSearchParams({...a,...t});console.log(n),Array.from(n.entries()).forEach((([t,e])=>{""!==e&&null!==e&&void 0!==e||n.delete(t)})),Object(i["e"])(`${e.pathname}?${n}`).then((t=>{e.table_list=t.results,e.total=t.count,e.max=Math.ceil(t.count/e.pagination.rowsPerPage)||0,e.pathname_previous=t.previous,e.pathname_next=t.next})).catch((t=>{e.$q.notify({message:t.detail,icon:"close",color:"negative"})})).finally((()=>{e.loading=!1}))},changePageEnter(){Number(this.paginationIpt)<1?(this.current=1,this.paginationIpt=1):Number(this.paginationIpt)>this.max?(this.current=this.max,this.paginationIpt=this.max):this.current=Number(this.paginationIpt),this.getSearchList(this.current)},getSearchList(t=1){this.current=t,this.paginationIpt=t,this.getList({group_name__icontains:this.filter})},getListPrevious(){var t=this;o["a"].has("auth")&&Object(i["e"])(t.pathname_previous,{}).then((e=>{t.table_list=e.results,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;o["a"].has("auth")&&Object(i["e"])(t.pathname_next,{}).then((e=>{t.table_list=e.results,t.pathname_previous=e.previous,t.pathname_next=e.next})).catch((e=>{t.$q.notify({message:e.detail,icon:"close",color:"negative"})}))},reFresh(){var t=this;t.getSearchList()},handleSwitch(t){this.current_bin_type=t}},created(){var t=this;o["a"].has("openid")?t.openid=o["a"].getItem("openid"):(t.openid="",o["a"].set("openid","")),o["a"].has("login_name")?t.login_name=o["a"].getItem("login_name"):(t.login_name="",o["a"].set("login_name","")),o["a"].has("auth")?(t.authin="1",t.getList()):t.authin="0"},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(){}},c=s,l=(a("6288"),a("42e1")),p=a("b8b7"),d=a("eaac"),u=a("e7a9"),_=a("9c40"),g=a("05c0"),h=a("2c91"),m=a("27f9"),b=a("0016"),f=a("bd08"),y=a("db86"),v=a("3b16"),x=a("52ee"),w=a("eebe"),k=a.n(w),q=Object(l["a"])(c,n,r,!1,null,"b182ea5e",null);"function"===typeof p["default"]&&Object(p["default"])(q);e["default"]=q.exports;k()(q,"components",{QTable:d["a"],QBtnGroup:u["a"],QBtn:_["a"],QTooltip:g["a"],QSpace:h["a"],QInput:m["a"],QIcon:b["a"],QTr:f["a"],QTd:y["a"],QPagination:v["a"],QDate:x["a"]})},"5d1c":function(t,e){},6288:function(t,e,a){"use strict";a("37e0")},b8b7:function(t,e,a){"use strict";var n=a("5d1c"),r=a.n(n);e["default"]=r.a}}]);