mt-ck-wms-ui/dist/static/js/chunk-75f75070.9b366c68.js

1 line
10 KiB
JavaScript
Raw Normal View History

2022-06-07 15:13:51 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-75f75070"],{"04ff":function(t,e,a){var n=a("437b"),i=a("1519"),o=Array.prototype;t.exports=function(t){var e=t.find;return t===o||n(o,t)&&e===o.find?i:e}},"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return c}));var n=a("2b0b"),i=a.n(n);Math.easeInOutQuad=function(t,e,a,n){return t/=n/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){i()(t,1e3/60)}}();function r(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 c(t,e,a){var n=l(),i=t-n,c=20,s=0;e="undefined"===typeof e?500:e;var u=function t(){s+=c;var l=Math.easeInOutQuad(s,n,i,e);r(l),s<e?o(t):a&&"function"===typeof a&&a()};u()}},1:function(t,e){},1519:function(t,e,a){a("bdf4");var n=a("a169");t.exports=n("Array").find},2:function(t,e){},"2a13":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("head-form",{attrs:{"placeholder-name":t.placeholderName,"key-name":t.keyName},on:{getDataList:t.getList,add:t.addNew}}),t._v(" "),a("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-config":t.tableProps,"table-data":t.list,"is-loading":t.listLoading}},[a("method-btn",{attrs:{slot:"handleBtn",width:t.trueWidth,"method-list":t.tableBtn},on:{clickBtn:t.handleClick},slot:"handleBtn"})],1),t._v(" "),a("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()}}}),t._v(" "),t.addOrUpdateVisible?a("shelfAttr-add",{ref:"addOrUpdate",attrs:{"cache-id":t.listQuery.cacheId},on:{refreshDataList:t.getList}}):t._e()],1)},i=[],o=(a("7f7f"),a("a3e3")),r=a.n(o),l=a("4573"),c=a.n(l),s=a("fc56"),u=a.n(s),d=a("3393"),m=a.n(d),f=a("9923"),h=a("bb1e"),p=a("c0ee"),b=a("333d"),v=a("ebe9"),g=a("322f"),$=a("b7d9"),F=a("6b45"),N=[{type:"edit",btnName:"btn.edit"},{type:"delete",btnName:"btn.delete"}],y=[{prop:"shelfName",label:f["a"].t("module.basicData.cache.AreaName"),align:"center"},{prop:"code",label:f["a"].t("module.basicData.cache.AreaCode"),align:"center"},{prop:"total",label:f["a"].t("module.basicData.cache.StorageQuantity"),align:"center"},{prop:"rowNum",label:f["a"].t("module.basicData.cache.rowNum"),align:"center"},{prop:"columnNum",label:f["a"].t("module.basicData.cache.columnNum"),align:"center"},{prop:"shelf",label:f["a"].t("module.basicData.visual.location"),subcomponent:F["a"],align:"center"}],D={name:"Area",components:{Pagination:b["a"],BaseTable:p["a"],MethodBtn:v["a"],HeadForm:h["a"],shelfAttrAdd:$["a"]},filters:{statusFilter:function(t){var e={published:"success",draft:"info",deleted:"danger"};return e[t]}},data:function(){return{addOrUpdateVisible:!1,keyName:this.$t("module.basicData.cache.ShelfName"),placeholderName:this.$t("module.basicData.cache.ShelfName"),tableBtn:N,trueWidth:200,tableProps:y,list:[],areaList:[],total:0,listLoading:!0,listQuery:{current:1,size:10}}},created:function(){this.getList()},methods:{handleClick:function(t){var e,a=this;"delete"===t.type?this.$confirm(r()(e="".concat(this.$t("module.basicData.visual.TipsBefore"),"[")).call(e,t.data.shelfName,"]?"),this.$t("module.basicData.visual.Tips"),{confirmButtonText:this.$t("module.basicData.visual.confirmButtonText"),cancelButtonText:this.$t("module.basicData.visual.cancelButtonText"),type:"warning"}).then((function(){Object(g["c"])(t.data.id).then((function(t){a.$message({message:a.$t("module.basicData.visual.success"),type:"success",duration:1500,onClose:function(){a.getList()}})}))}))["catch"]((function(){})):"edit"===t.type?this.addNe