mt-ck-wms-ui/dist/static/js/chunk-11aace31.bb2b0a80.js
2022-06-07 10:43:58 +08:00

1 line
5.5 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-11aace31"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));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 u(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function r(t,e,a){var n=s(),i=t-n,r=20,c=0;e="undefined"===typeof e?500:e;var l=function t(){c+=r;var s=Math.easeInOutQuad(c,n,i,e);u(s),c<e?o(t):a&&"function"===typeof a&&a()};l()}},1:function(t,e){},2:function(t,e){},abd6:function(t,e,a){"use strict";a.d(e,"f",(function(){return i})),a.d(e,"h",(function(){return o})),a.d(e,"d",(function(){return u})),a.d(e,"g",(function(){return s})),a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return c})),a.d(e,"c",(function(){return l})),a.d(e,"e",(function(){return d}));var n=a("b775");function i(t){return Object(n["a"])({url:"/api/wms/equipment/page",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/api/process/work-sequence/equipmentlistList",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/api/wms/equipment/get",method:"post",data:{id:t}})}function s(t){return Object(n["a"])({url:"/api/wms/equipment/update",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/api/wms/equipment/add",method:"post",data:t})}function c(){return Object(n["a"])({url:"/api/wms/equipment/getCode",method:"post"})}function l(t){return Object(n["a"])({url:"/api/wms/equipment/delete",method:"post",data:{id:t}})}function d(t){return Object(n["a"])({url:"/api/wms/equipment-file/update-file",method:"post",data:t})}},cd84:function(t,e,a){"use strict";a("d3cd")},d3cd:function(t,e,a){},ee6b: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()}}})],1)},i=[],o=(a("7f7f"),a("a3e3")),u=a.n(o),s=a("3393"),r=a.n(s),c=a("9923"),l=a("abd6"),d=a("bb1e"),m=a("c0ee"),p=a("333d"),f=a("ebe9"),b=a("8975"),h=[{type:"edit",btnName:"btn.edit"},{type:"delete",btnName:"btn.delete"},{type:"detail",btnName:"btn.detail"}],g=[{prop:"createTime",label:c["a"].t("module.basicData.factory.createTime"),filter:b["timeFormatter"],align:"center"},{prop:"name",label:c["a"].t("module.basicData.equipment.EquipmentName"),align:"center"},{prop:"code",label:c["a"].t("module.basicData.equipment.EquipmentCode"),align:"center"},{prop:"typeName",label:c["a"].t("module.basicData.equipment.EquipmentType"),align:"center"},{prop:"enName",label:c["a"].t("module.basicData.visual.EnglishName"),align:"center"},{prop:"abbr",label:c["a"].t("module.basicData.equipment.shortName"),align:"center"}],y={name:"EquipmentInfo",components:{Pagination:p["a"],BaseTable:m["a"],MethodBtn:f["a"],HeadForm:d["a"]},filters:{statusFilter:function(t){var e={published:"success",draft:"info",deleted:"danger"};return e[t]}},data:function(){return{keyName:this.$t("module.basicData.equipment.EquipmentCode"),placeholderName:this.$t("module.basicData.equipment.EquipmentCode"),tableBtn:h,trueWidth:240,tableProps:g,list:[{typeName:""}],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(u()(e="".concat(this.$t("module.basicData.visual.TipsBefore"),"[")).call(e,t.data.name,"]?"),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(l["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.addNew(t.data.id):this.addNew(t.data.id,!0)},getList:function(t){var e=this;this.listLoading=!0,this.listQuery.name=t,this.listQuery.code=t,Object(l["f"])(this.listQuery).then((function(t){if(console.log(t),t.data.records){e.list=t.data.records;for(var a=0;a<e.list.length;a++)"1"===e.list[a].equipmentType?e.list[a].typeName=e.$t("module.basicData.cache.logisticsEquipment"):"2"===e.list[a].equipmentType&&(e.list[a].typeName=e.$t("module.basicData.cache.processEquipment"))}else{var n;r()(n=e.list).call(n,0,e.list.length)}e.total=t.data.total,e.listLoading=!1,console.log(e.list)}))},addNew:function(t,e){this.$router.push({name:"equipmentInfoAdd",query:{id:t,isdetail:e}})}}},q=y,w=(a("cd84"),a("2877")),v=Object(w["a"])(q,n,i,!1,null,"7a98e903",null);e["default"]=v.exports}}]);