12.31f6681d.js 10 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[12],{2208:function(e,t){},"428b":function(e,t,a){},"5ab3":function(e,t,a){"use strict";a("428b")},ded2:function(e,t,a){"use strict";var n=a("2208"),o=a.n(n);t["default"]=o.a},ffd0: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,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("div",{staticClass:"flex items-center"},[t("div",{staticClass:"q-mr-md"},[e._v(e._s(e.$t("download_center.createTime")))]),t("q-input",{attrs:{readonly:"",outlined:"",dense:"",placeholder:e.interval},scopedSlots:e._u([{key:"append",fn:function(){return[t("q-icon",{staticClass:"cursor-pointer",attrs:{name:"event"}},[t("q-popup-proxy",{ref:"qDateProxy",attrs:{"transition-show":"scale","transition-hide":"scale"}},[t("q-date",{attrs:{range:""},model:{value:e.createDate1,callback:function(t){e.createDate1=t},expression:"createDate1"}},[t("div",{staticClass:"row items-center justify-end q-gutter-sm"},[t("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{label:e.$t("index.cancel"),color:"primary",flat:""}}),t("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{label:e.$t("index.clear"),color:"primary"},on:{click:function(t){e.createDate2="",e.createDate1=""}}})],1)])],1)],1)]},proxy:!0}]),model:{value:e.createDate2,callback:function(t){e.createDate2=t},expression:"createDate2"}}),t("q-btn-group",{staticClass:"q-ml-md",attrs:{push:""}}),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"}})],1)]},proxy:!0},{key:"body",fn:function(a){return[t("q-tr",{attrs:{props:a}},[[t("q-td",{key:"document_date",attrs:{props:a}},[e._v(e._s(a.row.batch_detail.bound_list.bound_date))])],[t("q-td",{key:"document_number",attrs:{props:a}},[e._v(e._s(a.row.batch_detail.bound_list.bound_code))])],[t("q-td",{key:"document_type",attrs:{props:a}},[e._v(e._s(a.row.batch_detail.bound_list.bound_code_type))])],[t("q-td",{key:"business_type",attrs:{props:a}},[e._v(e._s(a.row.batch_detail.bound_list.bound_bs_type))])],[t("q-td",{key:"iout_type",attrs:{props:a}},[e._v(e._s(a.row.batch_detail.bound_list.bound_type))])],[t("q-td",{key:"department",attrs:{props:a}},[e._v(e._s(a.row.batch_detail.bound_list.bound_department))])],[t("q-td",{key:"warehouse_code",attrs:{props:a}},[e._v(e._s(a.row.batch_detail.bound_batch.warehouse_code))])],[t("q-td",{key:"warehouse_name",attrs:{props:a}},[e._v(e._s(a.row.batch_detail.bound_batch.warehouse_name))])],[t("q-td",{key:"goods_code",attrs:{props:a}},[e._v(e._s(a.row.batch_detail.bound_batch.goods_code))])],[t("q-td",{key:"goods_desc",attrs:{props:a}},[e._v(e._s(a.row.batch_detail.bound_batch.goods_desc))])],[t("q-td",{key:"goods_std",attrs:{props:a}},[e._v(e._s(a.row.batch_detail.bound_batch.goods_std))])],[t("q-td",{key:"goods_batch",attrs:{props:a}},[e._v(e._s(a.row.container_detail.batch.bound_number))])],[t("q-td",{key:"in_batch",attrs:{props:a}},[e._v(e._s(a.row.container_detail.batch.goods_code))])],[t("q-td",{key:"out_batch",attrs:{props:a}},[e._v(e._s(a.row.batch_detail.bound_batch.out_batch))])],[t("q-td",{key:"goods_unit",attrs:{props:a}},[e._v(e._s(a.row.batch_detail.bound_batch.goods_unit))])],[t("q-td",{key:"goods_in",attrs:{props:a}},[e._v(e._s(a.row.container_detail.goods_qty))])],[t("q-td",{key:"container_number",attrs:{props:a}},[e._v(e._s(a.row.container_detail.container.container_code))])],[t("q-td",{key:"goods_notes",attrs:{props:a}},[e._v(e._s(a.row.task_wcs.message))])],[t("q-td",{key:"creator",attrs:{props:a}},[e._v(e._s(a.row.container_detail.creater))])]],2)]}}])})],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){e.getSearchList(e.current),e.paginationIpt=e.current}},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=[],r=(a("ddb0"),a("9861"),a("a79d"),a("5319"),a("3004")),s=a("bd4c"),i=(a("a357"),a("18d6")),c={name:"PageTask",data(){return{createDate1:"",createDate2:"",date_range:"",proxyDate:"",date:"",goods_code:"",goods_desc:"",openid:"",login_name:"",authin:"0",searchUrl:"",pathname:"container/task/",pathname_previous:"",pathname_next:"",separator:"cell",loading:!1,height:"",viewForm:!1,table_list:[],columns:[{name:"document_date",required:!0,label:"入库时间",align:"center",field:"document_date"},{name:"document_number",label:"单据编号",field:"document_number",align:"center"},{name:"department",label:"部门",field:"department",align:"center"},{name:"goods_code",label:"存货编码",field:"goods_code",align:"center"},{name:"goods_desc",label:"存货",field:"goods_desc",align:"center"},{name:"goods_std",label:"规格型号",field:"goods_std",align:"center"},{name:"goods_batch",label:"入库批号",field:"goods_batch",align:"center"},{name:"goods_in",label:"入库数目",field:"goods_in",align:"center"},{name:"container_number",label:"托盘编码",field:"container_number",align:"center"},{name:"creator",label:"创建人",field:"creator",align:"center"}],filter:"",pagination:{page:1,rowsPerPage:11},current:1,max:0,total:0,paginationIpt:1,current:1}},computed:{interval(){return this.$t("download_center.start")+" - "+this.$t("download_center.end")}},methods:{getList(e={}){var t=this;t.loading=!0;const a={page:t.current,page_size:t.pagination.rowsPerPage},n=new URLSearchParams({...a,...e});console.log(n),Array.from(n.entries()).forEach((([e,t])=>{""!==t&&null!==t&&void 0!==t||n.delete(e)})),Object(r["e"])(`${t.pathname}?${n}`).then((e=>{t.table_list=e.results,t.total=e.count,t.max=Math.ceil(e.count/t.pagination.rowsPerPage)||0,t.pathname_previous=e.previous,t.pathname_next=e.next})).catch((e=>{t.$q.notify({message:e.detail,icon:"close",color:"negative"})})).finally((()=>{t.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(e=1){this.current=e,this.paginationIpt=e,this.getList({container_detail__goods_desc__icontains:this.filter,create_time__range:this.date_range})},getListPrevious(){var e=this;i["a"].has("auth")&&Object(r["e"])(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;i["a"].has("auth")&&Object(r["e"])(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.getSearchList()},updateProxy(){var e=this;e.proxyDate=e.date}},created(){var e=this;if(i["a"].has("openid")?e.openid=i["a"].getItem("openid"):(e.openid="",i["a"].set("openid","")),i["a"].has("login_name")?e.login_name=i["a"].getItem("login_name"):(e.login_name="",i["a"].set("login_name","")),i["a"].has("auth")){const t=Date.now(),a=s["b"].formatDate(t,"YYYY/MM/DD");e.date=a,console.log(e.date),e.authin="1",e.getList()}else 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(){},watch:{createDate1(e){e?(e.to?(this.createDate2=`${e.from} - ${e.to}`,this.date_range=`${e.from},${e.to} `):(this.createDate2=`${e}`,this.dateArray=e.split("/"),this.searchUrl=this.pathname+"?document_date__year="+this.dateArray[0]+"&document_date__month="+this.dateArray[1]+"&document_date__day="+this.dateArray[2]),this.date_range=this.date_range.replace(/\//g,"-"),this.getSearchList(),this.$refs.qDateProxy.hide()):(this.createDate2="",this.date_range="",this.getSearchList())}}},d=c,l=(a("5ab3"),a("42e1")),p=a("ded2"),u=a("eaac"),_=a("e7a9"),h=a("9c40"),g=a("05c0"),m=a("2c91"),b=a("27f9"),f=a("0016"),v=a("7cbe"),y=a("52ee"),w=a("bd08"),x=a("db86"),k=a("3b16"),q=a("7f67"),D=a("eebe"),$=a.n(D),P=Object(l["a"])(d,n,o,!1,null,"71c6e744",null);"function"===typeof p["default"]&&Object(p["default"])(P);t["default"]=P.exports;$()(P,"components",{QTable:u["a"],QBtnGroup:_["a"],QBtn:h["a"],QTooltip:g["a"],QSpace:m["a"],QInput:b["a"],QIcon:f["a"],QPopupProxy:v["a"],QDate:y["a"],QTr:w["a"],QTd:x["a"],QPagination:k["a"]}),$()(P,"directives",{ClosePopup:q["a"]})}}]);