1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[42],{"393d":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e._self._c;return t("div",[t("transition",{attrs:{appear:"","enter-active-class":"animated fadeIn"}},[t("q-table",{staticClass:"my-sticky-header-column-table shadow-24",attrs:{data:e.table_list,"row-key":"id",separator:e.separator,loading:e.loading,filter:e.filter,columns:e.columns,"hide-bottom":"",pagination:e.pagination,"no-data-label":"No data","no-results-label":"No data you want","table-style":{height:e.height},flat:"",bordered:""},on:{"update:pagination":function(t){e.pagination=t}},scopedSlots:e._u([{key:"top",fn:function(){return[t("q-btn-group",{attrs:{push:""}},[t("q-btn",{attrs:{label:e.$t("refresh"),icon:"refresh"},on:{click:function(t){return e.reFresh()}}},[t("q-tooltip",{attrs:{"content-class":"bg-amber text-black shadow-4",offset:[10,10],"content-style":"font-size: 12px"}},[e._v(e._s(e.$t("refreshtip")))])],1)],1),t("q-space"),t("q-input",{attrs:{outlined:"",rounded:"",dense:"",debounce:"300",color:"primary",placeholder:e.$t("search")},on:{input:function(t){return e.getSearchList()},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getSearchList()}},scopedSlots:e._u([{key:"append",fn:function(){return[t("q-icon",{attrs:{name:"search"},on:{click:function(t){return e.getSearchList()}}})]},proxy:!0}]),model:{value:e.filter,callback:function(t){e.filter=t},expression:"filter"}})]},proxy:!0},{key:"body",fn:function(a){return[t("q-tr",{attrs:{props:a}},[t("q-td",{key:"shelf_name",attrs:{props:a}},[e._v(e._s(a.row.warehouse_name))]),t("q-td",{key:"goods_code",attrs:{props:a}},[e._v(e._s(a.row.goods_code))]),t("q-td",{key:"goods_name",attrs:{props:a}},[e._v(e._s(a.row.goods_name))]),t("q-td",{key:"goods_in",attrs:{props:a}},[e._v(e._s(a.row.goods_in))]),t("q-td",{key:"goods_out",attrs:{props:a}},[e._v(e._s(a.row.goods_out))]),t("q-td",{key:"goods_qty",attrs:{props:a}},[e._v(e._s(a.row.goods_qty))]),t("q-td",{key:"action",staticStyle:{width:"50px"},attrs:{props:a}})],1)]}}])})],1),[t("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.max,expression:"max !== 0"}],staticClass:"q-pa-lg flex flex-center"},[t("div",[e._v(e._s(e.total)+" ")]),t("q-pagination",{attrs:{color:"black",max:e.max,"max-pages":6,"boundary-links":""},on:{click:function(t){return e.getList()}},model:{value:e.current,callback:function(t){e.current=t},expression:"current"}}),t("div",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.paginationIpt,expression:"paginationIpt"}],staticStyle:{width:"60px","text-align":"center"},domProps:{value:e.paginationIpt},on:{blur:e.changePageEnter,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.changePageEnter.apply(null,arguments)},input:function(t){t.target.composing||(e.paginationIpt=t.target.value)}}})])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:0===e.max,expression:"max === 0"}],staticClass:"q-pa-lg flex flex-center"},[t("q-btn",{attrs:{flat:"",push:"",color:"dark",label:e.$t("no_data")}})],1)]],2)},o=[],i=a("3004"),s=a("a639"),r=a("18d6"),l={name:"Pagestockbinlist",data(){return{openid:"",login_name:"",authin:"0",pathname:"stock/bin/",pathname_previous:"",pathname_next:"",separator:"cell",loading:!1,height:"",table_list:[],bin_size_list:[],bin_property_list:[],warehouse_list:[],columns:[{name:"shelf_name",required:!0,label:this.$t("warehouse.view_binset.bin_name"),align:"center",field:"bin_name"},{name:"goods_code",label:this.$t("stock.view_stocklist.goods_code"),field:"goods_code",align:"center"},{name:"goods_name",label:"商品名称",field:"goods_name",align:"center"},{name:"goods_in",label:"入库数量",field:"goods_in",align:"center"},{name:"goods_out",label:"出库数量",field:"goods_in",align:"center"},{name:"goods_qty",label:"当前数量",field:"goods_qty",align:"center"},{name:"action",label:this.$t("action"),align:"ceter"}],filter:"",pagination:{page:1,rowsPerPage:"30"},options:[],moveForm:!1,movedata:{},error1:this.$t("inbound.view_sortstock.error1"),current:1,max:0,total:0,paginationIpt:1}},methods:{getList(){var e=this;r["a"].has("auth")&&Object(i["f"])(e.pathname+"?page="+e.current+"&shelf_type=storage",{}).then((t=>{e.table_list=t.results,e.total=t.count,0===t.count||1===Math.ceil(t.count/30)?e.max=0:e.max=Math.ceil(t.count/30),e.pathname_previous=t.previous,e.pathname_next=t.next})).catch((t=>{e.$q.notify({message:t.detail,icon:"close",color:"negative"})}))},changePageEnter(e){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.getList()},getSearchList(){var e=this;r["a"].has("auth")&&(e.current=1,e.paginationIpt=1,Object(i["f"])(e.pathname+"?goods_name__icontains="+e.filter+"&max_page=10000&shelf_type=storage",{}).then((t=>{e.table_list=t.results,e.total=t.count,0===t.count||1===Math.ceil(t.count/30)?e.max=0:e.max=Math.ceil(t.count/30),e.pathname_previous=t.previous,e.pathname_next=t.next})).catch((t=>{e.$q.notify({message:t.detail,icon:"close",color:"negative"})})))},getListPrevious(){var e=this;r["a"].has("auth")&&Object(i["f"])(e.pathname_previous,{}).then((t=>{e.table_list=t.results,e.pathname_previous=t.previous,e.pathname_next=t.next})).catch((t=>{e.$q.notify({message:t.detail,icon:"close",color:"negative"})}))},getListNext(){var e=this;r["a"].has("auth")&&Object(i["f"])(e.pathname_next,{}).then((t=>{e.table_list=t.results,e.pathname_previous=t.previous,e.pathname_next=t.next})).catch((t=>{e.$q.notify({message:t.detail,icon:"close",color:"negative"})}))},reFresh(){var e=this;e.getList()},filterFn(e,t,a){var n=this;e.length<1?a():t((()=>{const t=e.toLowerCase();Object(i["f"])("binset/?bin_name__icontains="+t).then((e=>{var t=[];e.results.forEach((e=>{t.push(e.bin_name)})),s["a"].set("bin_name",t),n.options=s["a"].getItem("bin_name")})).catch((e=>{n.$q.notify({message:e.detail,icon:"close",color:"negative"})}))}))}},created(){var e=this;r["a"].has("openid")?e.openid=r["a"].getItem("openid"):(e.openid="",r["a"].set("openid","")),r["a"].has("login_name")?e.login_name=r["a"].getItem("login_name"):(e.login_name="",r["a"].set("login_name","")),r["a"].has("auth")?(e.authin="1",e.getList()):e.authin="0"},mounted(){var e=this;e.$q.platform.is.electron?e.height=String(e.$q.screen.height-290)+"px":e.height=e.$q.screen.height-290+"px"},updated(){},destroyed(){}},c=l,p=a("42e1"),d=a("b8b7"),u=a("eaac"),h=a("e7a9"),g=a("9c40"),m=a("05c0"),_=a("2c91"),f=a("27f9"),b=a("0016"),v=a("bd08"),x=a("db86"),y=a("3b16"),k=a("24e8"),w=a("f09f"),q=a("d847"),I=a("a370"),Q=a("ddd8"),$=a("66e5"),S=a("4074"),L=a("7f67"),P=a("eebe"),C=a.n(P),N=Object(p["a"])(c,n,o,!1,null,null,null);"function"===typeof d["default"]&&Object(d["default"])(N);t["default"]=N.exports;C()(N,"components",{QTable:u["a"],QBtnGroup:h["a"],QBtn:g["a"],QTooltip:m["a"],QSpace:_["a"],QInput:f["a"],QIcon:b["a"],QTr:v["a"],QTd:x["a"],QPagination:y["a"],QDialog:k["a"],QCard:w["a"],QBar:q["a"],QCardSection:I["a"],QSelect:Q["a"],QItem:$["a"],QItemSection:S["a"]}),C()(N,"directives",{ClosePopup:L["a"]})},"5d1c":function(e,t){},b8b7:function(e,t,a){"use strict";var n=a("5d1c"),o=a.n(n);t["default"]=o.a}}]);
|