(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7bd0fbd7"],{"130d":function(e,t,a){"use strict";a("d444")},"433d":function(e,t,a){"use strict";var n=a("c559"),l={ftpUrl:n["a"].ftpUrl,apiBaseURL:n["a"].apiBaseURL};t["a"]=l},"6f7e":function(e,t,a){"use strict";function n(e){if(null==e||void 0==e||""==e||"null"==e||"undefined"==e)return!0;var t=e.toString().replace(/\s/g,"").replace(/-/g,"").replace(/:/g,"");return t}function l(e){return("00"+e).substr(e.length)}function o(e){if(null==e||void 0==e||""==e||"null"==e||"undefined"==e)return!0;var t=e.toString(),a=t.slice(0,4),n=t.slice(4,6),l=t.slice(6,8),o=t.slice(8,10),r=t.slice(10,12),i=t.slice(12,14),s=a+"-"+n+"-"+l+" "+o+":"+r+":"+i;return s}function r(e){if(null==e||void 0==e||""==e||"null"==e||"undefined"==e)return!0;var t=e.toString(),a=t.slice(0,4),n=t.slice(4,6),l=t.slice(6,8),o=a+"-"+n+"-"+l;return o}function i(e,t){try{e instanceof Date||(e=new Date(e)),void 0!=t&&""!=t||(t="yyyy-MM-dd hh:mm:ss"),/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));var a={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(var n in a)if(new RegExp("(".concat(n,")")).test(t)){var o=a[n]+"";t=t.replace(RegExp.$1,1===RegExp.$1.length?o:l(o))}return t}catch(r){return"-"}}function s(){var e=new Date,t=e.getFullYear(),a=(e.getMonth()+1).toString().padStart(2,"0"),n=e.getDate().toString().padStart(2,"0"),l=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),r=e.getSeconds().toString().padStart(2,"0");return"".concat(t,"-").concat(a,"-").concat(n," ").concat(l,":").concat(o,":").concat(r)}function c(){var e=new Date,t=e.getFullYear(),a=(e.getMonth()+1).toString().padStart(2,"0"),n=e.getDate().toString().padStart(2,"0");return"".concat(t,"-").concat(a,"-").concat(n)}function d(e){if(e){e instanceof Date||(e=new Date(e.replace(/-/g,"/")));var t=e.getTime(),a=6e4,n=60*a,l=24*n,o=7*l,r=30*l,i=(new Date).getTime(),s=i-t;if(!(s<0)){var c=s/a,d=s/n,u=s/l,g=s/o,p=s/r,f="";if(p>=1&&p<=3)f=" "+parseInt(p)+"月前";else if(g>=1&&g<=3)f=" "+parseInt(g)+"周前";else if(u>=1&&u<=6)f=" "+parseInt(u)+"天前";else if(d>=1&&d<=23)f=" "+parseInt(d)+"小时前";else if(c>=1&&c<=59)f=" "+parseInt(c)+"分钟前";else if(s>=0&&s<=a)f="刚刚";else{var m=new Date;m.setTime(t);var b=m.getFullYear(),h=m.getMonth()+1<10?"0"+(m.getMonth()+1):m.getMonth()+1,v=m.getDate()<10?"0"+m.getDate():m.getDate();m.getHours()<10?m.getHours():m.getHours(),m.getMinutes()<10?m.getMinutes():m.getMinutes(),m.getSeconds()<10?m.getSeconds():m.getSeconds();f=b+"-"+h+"-"+v}return f}}}a.r(t),a.d(t,"DateToLong",(function(){return n})),a.d(t,"LongToDateTime",(function(){return o})),a.d(t,"LongToDate",(function(){return r})),a.d(t,"formatDate",(function(){return i})),a.d(t,"formattedDate",(function(){return s})),a.d(t,"formattedDateDuan",(function(){return c})),a.d(t,"timeago",(function(){return d}))},a19c:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{staticClass:"box-card",attrs:{shadow:"never"}},[a("div",{staticClass:"filter-container",staticStyle:{"margin-bottom":"10px"}},[a("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.filterForm}})],1),e._v(" "),a("div",{staticClass:"title"},[e._v("物品统计表")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""}},[a("el-table-column",{attrs:{align:"center",prop:"orgName",label:"机构","min-width":"150"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"warehouseName",label:"仓库/部门","min-width":"150"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"goodsCode",label:"物品编码",width:"150"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"goodsTemplateName",label:"物品名称","min-width":"150"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"baseGoodsModelsName",label:"规格型号","min-width":"150"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"zaiKuNum",label:"在库/在用数量",width:"150"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"baoFeiNum",label:"报废数",width:"150"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"totalNum",label:"总数量",width:"150"}})],1)],1)],1)},l=[],o=a("b775");function r(e){return Object(o["a"])({url:"/pc/warehouse/goodsStatistics",method:"get",params:e})}var i=a("6f7e"),s=a("433d"),c={data:function(){return{items:[{type:"cascader",dataIndex:"agencyId",label:"机构",placeholder:"请选择",defaultValue:"",options:[],cascader:[{key:"baseWarehouseId",queryKey:"agencyId"},{key:"goodsTemplateId",queryKey:"agencyId"}],optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null}},{type:"select",dataIndex:"baseWarehouseId",label:"仓库",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"warehouseName",value:"id",url:s["a"].apiBaseURL+"/pc/base/warehouse/select/tenant_warehouse"}},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],cascader:[{key:"categoryId",queryKey:"goodsTemplatesId"}],optionsConfig:{label:"goodsName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"select",dataIndex:"baseGoodsModelsId",label:"规格型号",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"modelName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/models/query/goodsModel"}},{type:"select",dataIndex:"costType",label:"类别",placeholder:"请选择",defaultValue:"",options:[{label:"A",value:"1"},{label:"B",value:"2"},{label:"C",value:"3"}]}],tableData:[],loading:!0,params:{examYear:Object(i["formatDate"])(new Date,"yyyyMMdd")}}},mounted:function(){this.getTableData({})},methods:{filterForm:function(e){this.params=e,this.getTableData(e)},getTableData:function(e){var t=this;this.loading=!0,r(e).then((function(e){t.tableData=e,t.loading=!1})).catch((function(){t.loading=!1}))}}},d=c,u=(a("130d"),a("2877")),g=Object(u["a"])(d,n,l,!1,null,"1d47760e",null);t["default"]=g.exports},d444:function(e,t,a){}}]);
|