mt-ck-wms-ui/dist/static/js/chunk-264322de.2218d547.js
2022-06-07 10:43:58 +08:00

1 line
6.4 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-264322de"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("2b0b"),o=n.n(r);Math.easeInOutQuad=function(t,e,n,r){return t/=r/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){o()(t,1e3/60)}}();function i(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(t,e,n){var r=l(),o=t-r,s=20,u=0;e="undefined"===typeof e?500:e;var c=function t(){u+=s;var l=Math.easeInOutQuad(u,r,o,e);i(l),u<e?a(t):n&&"function"===typeof n&&n()};c()}},1:function(t,e){},2:function(t,e){},"5a6c":function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return l})),n.d(e,"e",(function(){return s}));var r=n("b775");function o(t){return Object(r["a"])({url:"/api/report/report-storage-box/list",method:"post",data:t})}function a(t){return Object(r["a"])({url:"/api/report/report-storage-box/excel-download",method:"post",data:t,responseType:"blob",timeout:6e4})}function i(t){return Object(r["a"])({url:"/api/report/report-substrate/list",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/api/report/report-substrate/delete",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/api/report/report-substrate/update",method:"post",data:t})}},7995:function(t,e,n){"use strict";n("bf94")},bf94:function(t,e,n){},dbc8:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("head-form",{attrs:{"placeholder-name":t.placeholderName,"key-name":t.keyName,"show-add":!1},on:{getDataList:t.getList,downl:t.downl}}),t._v(" "),n("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-config":t.tableProps,"table-data":t.list,"is-loading":t.listLoading}}),t._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.listQuery.current,limit:t.listQuery.size},on:{"update:page":function(e){return t.$set(t.listQuery,"current",e)},"update:limit":function(e){return t.$set(t.listQuery,"size",e)},pagination:function(e){return t.getList()}}})],1)},o=[],a=n("3393"),i=n.n(a),l=n("9923"),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form",{attrs:{inline:!0},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getDataList()}}},[n("el-form-item",{attrs:{label:t.keyName}},[n("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:t.placeholderName,clearable:""},model:{value:t.key,callback:function(e){t.key=e},expression:"key"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.getDataList()}}},[t._v(t._s(t._f("i18nFilter")("btn.search")))]),t._v(" "),t.showAdd?n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.add()}}},[t._v(t._s(t._f("i18nFilter")("btn.add")))]):t._e(),t._v(" "),n("el-button",{attrs:{type:"success"},on:{click:function(e){return t.downl()}}},[t._v(t._s(t._f("i18nFilter")("btn.export")))])],1)],1)},u=[],c=n("322d"),d={props:{keyName:{type:c["string"],default:function(){return"关键字"}},showAdd:{type:Boolean,default:function(){return!0}},placeholderName:{type:c["string"],default:function(){return"请输入关键字"}}},data:function(){return{key:""}},methods:{getDataList:function(){this.$emit("getDataList",this.key)},add:function(){this.$emit("add")},downl:function(){this.$emit("downl",this.key)}}},p=d,m=n("2877"),f=Object(m["a"])(p,s,u,!1,null,null,null),b=f.exports,y=n("c0ee"),h=n("333d"),v=n("5a6c"),g=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[n("el-button",{attrs:{type:"text",size:"small"},on:{click:t.emitClick}},[t._v(t._s(t.$t("module.report.inventory.viewSubstrates")))])],1)},w=[],k={props:{injectData:{type:Object,default:function(){return{}}}},methods:{emitClick:function(){this.$router.push({name:"viewSubstrate",query:{id:this.injectData.id,code:this.injectData.code,locationStorageSubID:this.injectData.locationStorageSubID}})}}},_=k,L=Object(m["a"])(_,g,w,!1,null,null,null),x=L.exports,N=[{type:"edit",btnName:"btn.edit"},{type:"delete",btnName:"btn.delete"}],O=[{prop:"code",label:l["a"].t("module.report.inventory.code"),align:"center"},{prop:"status",label:l["a"].t("module.report.inventory.status"),align:"center"},{prop:"inprocessCode",label:l["a"].t("module.report.inventory.inprocessCode"),align:"center"},{prop:"nextprocessCode",label:l["a"].t("module.report.inventory.nextprocessCode"),align:"center"},{prop:"currentLocation",label:l["a"].t("module.report.inventory.currentLocation"),align:"center"},{prop:"storeTime",label:l["a"].t("module.report.inventory.storeTime"),align:"center"},{prop:"orderName",label:l["a"].t("module.report.inventory.orderName"),align:"center"},{prop:"substrateDetails",label:l["a"].t("module.report.inventory.substrateDetails"),subcomponent:x,align:"center"}],j={name:"Inventory",components:{Pagination:h["a"],BaseTable:y["a"],HeadForm:b},filters:{statusFilter:function(t){var e={published:"success",draft:"info",deleted:"danger"};return e[t]}},data:function(){return{addOrUpdateVisible:!1,keyName:l["a"].t("module.report.reportList.storageBoxNumber"),placeholderName:this.$t("module.report.reportList.queryFiltering"),tableBtn:N,trueWidth:200,tableProps:O,list:[],total:0,listLoading:!0,listQuery:{current:1,size:10,enabled:1}}},created:function(){this.getList()},methods:{getList:function(t){var e=this;this.listLoading=!0,this.listQuery.code=t,Object(v["c"])(this.listQuery).then((function(t){var n;(console.log(t),t.data)?e.list=t.data:i()(n=e.list).call(n,0,e.list.length);e.listLoading=!1}))},downl:function(t){var e=this;this.listLoading=!0,this.listQuery.code=t,Object(v["b"])(this.listQuery).then((function(t){var n="",r=t.headers["content-disposition"];r&&(n=e.$t("module.report.reportList.storageBoxReport")+".xlsx");var o=new Blob([t.data]),a=new FileReader;a.readAsDataURL(o),a.onload=function(t){var e=document.createElement("a");e.download=n,e.href=t.target.result,document.body.appendChild(e),e.click(),document.body.removeChild(e)},e.getList()}))}}},D=j,Q=(n("7995"),Object(m["a"])(D,r,o,!1,null,"e4ce97b0",null));e["default"]=Q.exports}}]);