WangHan
2025-04-03 a1b85ef72062ca80db35546e4216dd564f3e0f57
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-92e5b0d0"],{"271c":function(t,e,n){"use strict";n.r(e);var r=n("6f7e"),i=n("2f62"),o=n("ac29"),a=n("dee4");function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=g(t,"string");return"symbol"==c(e)?e:e+""}function g(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}e["default"]={data:function(){return{loading:!1,list:[],items:[],filterFrom:{},editSetting:{title:"",id:"",orgId:"",show:!1},uploadPageSetting:{title:"上传页面",id:"",orgId:"",show:!1},detailSetting:{title:"详情",id:"",show:!1},pageNum:1,pageSize:10,total:0}},computed:s(s({},Object(i["b"])(["userInfo"])),{},{clientHeight:function(){return document.documentElement.clientHeight}}),created:function(){},filters:{formatTime:function(t){return t?r["LongToDateTime"](t):"-"}},methods:{handleExport:function(t,e,n){var r=this,i=this.$loading({lock:!0,text:"导出中,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});o[t](n).then((function(t){console.log(t),Object(a["a"])(t),r.$message.success("导出成功!"),i.close()})).catch((function(){i.close()}))},handleAdd:function(){this.editSetting.id=null,this.editSetting.info=null,this.editSetting.title="新增",this.editSetting.show=!0},handleEdit:function(t){this.editSetting.id=t.id,this.editSetting.info=null,this.editSetting.title="编辑",this.editSetting.show=!0},handleDetail:function(t){this.detailSetting.id=t.id,this.detailSetting.title="详情",this.detailSetting.show=!0},handleUploadPage:function(t){this.uploadPageSetting.id=t.id,this.uploadPageSetting.title="导入",this.uploadPageSetting.show=!0},handleSizeChange:function(t){this.pageSize=t,this.search({pageNum:1})},handleCurrentChange:function(t){this.pageNum=t,this.search()},search:function(t){t&&(this.pageNum=t),this.fetchData()},refreshData:function(){this.pageNum=1,this.pageSize=10,this.search()},fifterForm:function(t){this.filterFrom=Object.assign(this.filterFrom,t),this.search(1)}}}},"6f7e":function(t,e,n){"use strict";function r(t){if(null==t||void 0==t||""==t||"null"==t||"undefined"==t)return!0;var e=t.toString().replace(/\s/g,"").replace(/-/g,"").replace(/:/g,"");return e}function i(t){return("00"+t).substr(t.length)}function o(t){if(null==t||void 0==t||""==t||"null"==t||"undefined"==t)return!0;var e=t.toString(),n=e.slice(0,4),r=e.slice(4,6),i=e.slice(6,8),o=e.slice(8,10),a=e.slice(10,12),c=e.slice(12,14),u=n+"-"+r+"-"+i+" "+o+":"+a+":"+c;return u}function a(t){if(null==t||void 0==t||""==t||"null"==t||"undefined"==t)return!0;var e=t.toString(),n=e.slice(0,4),r=e.slice(4,6),i=e.slice(6,8),o=n+"-"+r+"-"+i;return o}function c(t,e){try{t instanceof Date||(t=new Date(t)),void 0!=e&&""!=e||(e="yyyy-MM-dd hh:mm:ss"),/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var r in n)if(new RegExp("(".concat(r,")")).test(e)){var o=n[r]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?o:i(o))}return e}catch(a){return"-"}}function u(){var t=new Date,e=t.getFullYear(),n=(t.getMonth()+1).toString().padStart(2,"0"),r=t.getDate().toString().padStart(2,"0"),i=t.getHours().toString().padStart(2,"0"),o=t.getMinutes().toString().padStart(2,"0"),a=t.getSeconds().toString().padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(r," ").concat(i,":").concat(o,":").concat(a)}function s(){var t=new Date,e=t.getFullYear(),n=(t.getMonth()+1).toString().padStart(2,"0"),r=t.getDate().toString().padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(r)}function l(t){if(t){t instanceof Date||(t=new Date(t.replace(/-/g,"/")));var e=t.getTime(),n=6e4,r=60*n,i=24*r,o=7*i,a=30*i,c=(new Date).getTime(),u=c-e;if(!(u<0)){var s=u/n,l=u/r,f=u/i,g=u/o,d=u/a,p="";if(d>=1&&d<=3)p=" "+parseInt(d)+"月前";else if(g>=1&&g<=3)p=" "+parseInt(g)+"周前";else if(f>=1&&f<=6)p=" "+parseInt(f)+"天前";else if(l>=1&&l<=23)p=" "+parseInt(l)+"小时前";else if(s>=1&&s<=59)p=" "+parseInt(s)+"分钟前";else if(u>=0&&u<=n)p="刚刚";else{var h=new Date;h.setTime(e);var m=h.getFullYear(),S=h.getMonth()+1<10?"0"+(h.getMonth()+1):h.getMonth()+1,b=h.getDate()<10?"0"+h.getDate():h.getDate();h.getHours()<10?h.getHours():h.getHours(),h.getMinutes()<10?h.getMinutes():h.getMinutes(),h.getSeconds()<10?h.getSeconds():h.getSeconds();p=m+"-"+S+"-"+b}return p}}}n.r(e),n.d(e,"DateToLong",(function(){return r})),n.d(e,"LongToDateTime",(function(){return o})),n.d(e,"LongToDate",(function(){return a})),n.d(e,"formatDate",(function(){return c})),n.d(e,"formattedDate",(function(){return u})),n.d(e,"formattedDateDuan",(function(){return s})),n.d(e,"timeago",(function(){return l}))},ac29:function(t,e,n){"use strict";n.r(e),n.d(e,"outputExport",(function(){return i})),n.d(e,"procureExport",(function(){return o})),n.d(e,"transferExport",(function(){return a})),n.d(e,"inventoryExport",(function(){return c})),n.d(e,"scrappedExport",(function(){return u})),n.d(e,"deptScrappedExport",(function(){return s}));var r=n("b775");function i(t){return Object(r["a"])({url:"/pc/l/wh/form/output/list/export",method:"get",params:t})}function o(t){return Object(r["a"])({url:"/pc/whForm/procure/list/export",method:"get",params:t})}function a(t){return Object(r["a"])({url:"/pc/l/wh/form/transfer/list/export",method:"get",params:t})}function c(t){return Object(r["a"])({url:"/pc/l/wh/form/inventory/list/export",method:"get",params:t})}function u(t){return Object(r["a"])({url:"/pc/l/wh/form/scrapped/list/export",method:"get",params:t})}function s(t){return Object(r["a"])({url:"/pc/l/wh/form/scrapped/deptList/export",method:"get",params:t})}}}]);