mt-ck-wms-ui/dist/static/js/chunk-230696e6.ae043bee.js
2022-06-21 11:35:09 +08:00

1 line
11 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-230696e6","chunk-a751ef04"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return l}));var o=a("2b0b"),n=a.n(o);Math.easeInOutQuad=function(t,e,a,o){return t/=o/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){n()(t,1e3/60)}}();function s(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(t,e,a){var o=r(),n=t-o,l=20,c=0;e="undefined"===typeof e?500:e;var d=function t(){c+=l;var r=Math.easeInOutQuad(c,o,n,e);s(r),c<e?i(t):a&&"function"===typeof a&&a()};d()}},1:function(t,e){},2:function(t,e){},2147:function(t,e,a){"use strict";a.d(e,"c",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"f",(function(){return s})),a.d(e,"a",(function(){return r})),a.d(e,"d",(function(){return l})),a.d(e,"e",(function(){return c}));var o=a("b775");function n(t){return Object(o["a"])({url:"/api/wms/processlocation/page",method:"post",data:t})}function i(t){return Object(o["a"])({url:"/api/wms/processlocation/getById",method:"post",data:{id:t}})}function s(t){return Object(o["a"])({url:"/api/wms/processlocation/update",method:"post",data:t})}function r(t){return Object(o["a"])({url:"/api/wms/processlocation/add",method:"post",data:t})}function l(t){return Object(o["a"])({url:"/api/wms/processlocation/delete",method:"post",data:{id:t}})}function c(t){return Object(o["a"])({url:"/api/wms/processlocation/locationList",method:"post",data:t})}},"46b8":function(t,e,a){"use strict";a("5e8f")},"4b98":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t._f("i18nFilter")(t.dataForm.id?"btn.edit":"btn.add"),visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,"label-width":"130px"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:t.$t("module.basicData.processLocation.workSequenId"),prop:"workSequenId"}},[a("el-input",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.processLocation.workSequenId")]),clearable:""},model:{value:t.dataForm.workSequenId,callback:function(e){t.$set(t.dataForm,"workSequenId",e)},expression:"dataForm.workSequenId"}})],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("module.basicData.processLocation.locationName"),prop:"locationName"}},[a("el-select",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.processLocation.locationName")])},model:{value:t.dataForm.locationName,callback:function(e){t.$set(t.dataForm,"locationName",e)},expression:"dataForm.locationName"}},t._l(t.dataForm,(function(t){return a("el-option",{key:t.locationName,attrs:{label:t.locationName,value:t.locationName}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("module.basicData.processLocation.portAttrId"),prop:"portAttrId"}},[a("el-input",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.processLocation.portAttrId")]),clearable:""},model:{value:t.dataForm.portAttrId,callback:function(e){t.$set(t.dataForm,"portAttrId",e)},expression:"dataForm.portAttrId"}})],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("module.basicData.processLocation.isProcess"),prop:"isProcess"}},[a("el-select",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.processLocation.isProcess")])},model:{value:t.dataForm.isProcess,callback:function(e){t.$set(t.dataForm,"isProcess",e)},expression:"dataForm.isProcess"}},t._l(t.options,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("module.basicData.processLocation.equipmentMark"),prop:"equipmentMark"}},[a("el-input",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.processLocation.equipmentMark")]),clearable:""},model:{value:t.dataForm.equipmentMark,callback:function(e){t.$set(t.dataForm,"equipmentMark",e)},expression:"dataForm.equipmentMark"}})],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("module.basicData.processLocation.sequence"),prop:"sequence"}},[a("el-input",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.processLocation.sequence")]),clearable:""},model:{value:t.dataForm.sequence,callback:function(e){t.$set(t.dataForm,"sequence",e)},expression:"dataForm.sequence"}})],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("module.basicData.processLocation.goodsShelves"),prop:"goodsShelves"}},[a("el-select",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.processLocation.goodsShelves")])},model:{value:t.dataForm.goodsShelves,callback:function(e){t.$set(t.dataForm,"goodsShelves",e)},expression:"dataForm.goodsShelves"}},t._l(t.options2,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.visible=!1}}},[t._v(t._s(t._f("i18nFilter")("btn.cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.dataFormSubmit()}}},[t._v(t._s(t._f("i18nFilter")("btn.confirm")))])],1)],1)},n=[],i=a("2147"),s={data:function(){return{visible:!1,dataForm:{workSequenId:"",locationId:"",portAttrId:"",isProcess:"",equipmentMark:"",sequence:"",goodsShelves:"",locationName:""},options:[{value:0,label:this.$t("module.basicData.processLocation.CacheLocation")},{value:1,label:this.$t("module.basicData.processLocation.ProcessLocation")}],options2:[{value:0,label:this.$t("module.basicData.processLocation.aShelf")},{value:1,label:this.$t("module.basicData.processLocation.bShelf")}],listQuery:{id:""}}},methods:{init:function(t){var e=this;this.listQuery.id=t||"",this.visible=!0,this.$nextTick((function(){e.$refs["dataForm"].resetFields(),Object(i["e"])().then((function(t){for(var a=0;a<t.data.length;a++)e.dataForm.locationId=t.data[a].id,e.dataForm.locationName=t.data[a].locationName})),e.listQuery.id&&Object(i["b"])(e.listQuery.id).then((function(t){e.dataForm.equipmentMark=t.data.equipmentMark,e.dataForm.goodsShelves=t.data.goodsShelves,e.dataForm.id=t.data.id,e.dataForm.isProcess=t.data.isProcess,e.dataForm.portAttrId=t.data.portAttrId,e.dataForm.sequence=t.data.sequence,e.dataForm.workSequenId=t.data.workSequenId,console.log(e.dataForm)}))}))},dataFormSubmit:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var a=t.dataForm;a.id=t.dataForm.id,t.dataForm.id?Object(i["f"])(a).then((function(e){t.$message({message:t.$t("module.basicData.visual.success"),type:"success",duration:1500,onClose:function(){t.visible=!1,t.$emit("refreshDataList")}})})):Object(i["a"])(a).then((function(e){t.$message({message:t.$t("module.basicData.visual.success"),type:"success",duration:1500,onClose:function(){t.visible=!1,t.$emit("refreshDataList")}})}))}}))}}},r=s,l=a("2877"),c=Object(l["a"])(r,o,n,!1,null,null,null);e["default"]=c.exports},"5e8f":function(t,e,a){},"6a01":function(t,e,a){"use strict";a.r(e);var o=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("processInfo-add",{ref:"addOrUpdate",on:{refreshDataList:t.getList}}):t._e()],1)},n=[],i=a("a3e3"),s=a.n(i),r=a("3393"),l=a.n(r),c=a("9923"),d=a("bb1e"),u=a("c0ee"),m=a("4b98"),p=a("333d"),b=a("ebe9"),f=a("2147"),h=[{type:"edit",btnName:"btn.edit"},{type:"delete",btnName:"btn.delete"}],v=[{prop:"workSequenId",label:c["a"].t("module.basicData.processLocation.workSequenId"),align:"center"},{prop:"locationId",label:c["a"].t("module.basicData.processLocation.locationId"),align:"center"},{prop:"portAttrId",label:c["a"].t("module.basicData.processLocation.portAttrId"),align:"center"},{prop:"isProcess",label:c["a"].t("module.basicData.processLocation.isProcess"),align:"center"},{prop:"equipmentMark",label:c["a"].t("module.basicData.processLocation.equipmentMark"),align:"center"},{prop:"sequence",label:c["a"].t("module.basicData.processLocation.sequence"),align:"center"},{prop:"goodsShelves",label:c["a"].t("module.basicData.processLocation.goodsShelves"),align:"center"},{prop:"locationName",label:c["a"].t("module.basicData.processLocation.locationName"),align:"center"}],F={name:"Area",components:{Pagination:p["a"],BaseTable:u["a"],MethodBtn:b["a"],HeadForm:d["a"],processInfoAdd:m["default"]},filters:{statusFilter:function(t){var e={published:"success",draft:"info",deleted:"danger"};return e[t]}},data:function(){return{addOrUpdateVisible:!1,keyName:c["a"].t("module.basicData.visual.keyword"),placeholderName:c["a"].t("module.basicData.processLocation.locationName"),tableBtn:h,trueWidth:200,tableProps:v,list:[],areaList:[],total:0,listLoading:!0,listQuery:{current:1,size:10,locationId:"",workSequenId:"",locationName:""}}},created:function(){this.getList()},methods:{handleClick:function(t){var e,a=this;"delete"===t.type?this.$confirm(s()(e="".concat(this.$t("module.basicData.visual.TipsBefore"),"[")).call(e,t.data.id,"]?"),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(f["d"])(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.locationName=t,Object(f["c"])(this.listQuery).then((function(t){var a;t.data.records?e.list=t.data.records:l()(a=e.list).call(a,0,e.list.length);e.total=t.data.total,e.listLoading=!1}))},addNew:function(t){var e=this;this.addOrUpdateVisible=!0,this.$nextTick((function(){e.$refs.addOrUpdate.init(t,!0)}))}}},k=F,$=(a("46b8"),a("2877")),g=Object($["a"])(k,o,n,!1,null,"3ca30f77",null);e["default"]=g.exports}}]);