1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[31],{"240f":function(e,t,a){"use strict";var n=a("be85"),o=a.n(n);t["default"]=o.a},7477: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-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("\n "+e._s(e.$t("refreshtip"))+"\n ")])],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:"dn_code",attrs:{props:a}},[e._v("\n "+e._s(a.row.dn_code)+"\n ")]),t("q-td",{key:"goods_code",attrs:{props:a}},[e._v("\n "+e._s(a.row.goods_code)+"\n ")]),t("q-td",{key:"goods_desc",attrs:{props:a}},[e._v("\n "+e._s(a.row.goods_desc)+"\n ")]),t("q-td",{key:"goods_qty",attrs:{props:a}},[e._v("\n "+e._s(a.row.goods_qty)+"\n ")]),t("q-td",{key:"picked_qty",attrs:{props:a}},[e._v("\n "+e._s(a.row.picked_qty)+"\n ")]),t("q-td",{key:"customer",attrs:{props:a}},[e._v("\n "+e._s(a.row.customer)+"\n ")]),t("q-td",{key:"creater",attrs:{props:a}},[e._v("\n "+e._s(a.row.creater)+"\n ")]),t("q-td",{key:"create_time",attrs:{props:a}},[e._v("\n "+e._s(a.row.create_time)+"\n ")]),t("q-td",{key:"update_time",attrs:{props:a}},[e._v("\n "+e._s(a.row.update_time)+"\n ")])],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={name:"Pagednpickedstock",data(){return{openid:"",login_name:"",authin:"0",pathname:"dn/detail/?dn_status=4&picked_qty__gt=0",pathname_previous:"",pathname_next:"",separator:"cell",loading:!1,height:"",table_list:[],bin_size_list:[],bin_property_list:[],warehouse_list:[],columns:[{name:"dn_code",required:!0,label:this.$t("outbound.view_dn.dn_code"),align:"left",field:"dn_code"},{name:"goods_code",label:this.$t("goods.view_goodslist.goods_code"),field:"goods_code",align:"center"},{name:"goods_desc",label:this.$t("goods.view_goodslist.goods_desc"),field:"goods_desc",align:"center"},{name:"goods_qty",label:this.$t("outbound.view_dn.goods_qty"),field:"goods_qty",align:"center"},{name:"picked_qty",label:this.$t("stock.view_stocklist.picked_stock"),field:"picked_qty",align:"center"},{name:"customer",label:this.$t("baseinfo.view_customer.customer_name"),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:"center"}],filter:"",pagination:{page:1,rowsPerPage:"30"},current:1,max:0,total:0,paginationIpt:1}},methods:{getList(){var e=this;e.$q.localStorage.has("auth")&&Object(i["f"])(e.pathname+"&page="+e.current,{}).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;e.$q.localStorage.has("auth")&&(e.current=1,e.paginationIpt=1,Object(i["f"])(e.pathname+"&dn_code__icontains="+e.filter+"&page="+e.current,{}).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;e.$q.localStorage.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;e.$q.localStorage.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()}},created(){var e=this;e.$q.localStorage.has("openid")?e.openid=e.$q.localStorage.getItem("openid"):(e.openid="",e.$q.localStorage.set("openid","")),e.$q.localStorage.has("login_name")?e.login_name=e.$q.localStorage.getItem("login_name"):(e.login_name="",e.$q.localStorage.set("login_name","")),e.$q.localStorage.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(){}},r=s,l=a("42e1"),c=a("240f"),d=a("eaac"),p=a("e7a9"),u=a("9c40"),g=a("05c0"),h=a("2c91"),_=a("27f9"),m=a("0016"),f=a("bd08"),v=a("db86"),b=a("3b16"),y=a("eebe"),q=a.n(y),k=Object(l["a"])(r,n,o,!1,null,null,null);"function"===typeof c["default"]&&Object(c["default"])(k);t["default"]=k.exports;q()(k,"components",{QTable:d["a"],QBtnGroup:p["a"],QBtn:u["a"],QTooltip:g["a"],QSpace:h["a"],QInput:_["a"],QIcon:m["a"],QTr:f["a"],QTd:v["a"],QPagination:b["a"]})},be85:function(e,t){}}]);
|