mt-ck-wms-ui/dist/static/js/chunk-a751ef04.c38a3c10.js
2022-06-21 14:03:26 +08:00

1 line
6.4 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a751ef04"],{2147:function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"b",(function(){return s})),a.d(t,"f",(function(){return i})),a.d(t,"a",(function(){return l})),a.d(t,"d",(function(){return n})),a.d(t,"e",(function(){return c}));var o=a("b775");function r(e){return Object(o["a"])({url:"/api/wms/processlocation/page",method:"post",data:e})}function s(e){return Object(o["a"])({url:"/api/wms/processlocation/getById",method:"post",data:{id:e}})}function i(e){return Object(o["a"])({url:"/api/wms/processlocation/update",method:"post",data:e})}function l(e){return Object(o["a"])({url:"/api/wms/processlocation/add",method:"post",data:e})}function n(e){return Object(o["a"])({url:"/api/wms/processlocation/delete",method:"post",data:{id:e}})}function c(e){return Object(o["a"])({url:"/api/wms/processlocation/locationList",method:"post",data:e})}},"4b98":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e._f("i18nFilter")(e.dataForm.id?"btn.edit":"btn.add"),visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,"label-width":"130px"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:e.$t("module.basicData.processLocation.workSequenId"),prop:"workSequenId"}},[a("el-input",{attrs:{placeholder:e.$i18nForm(["placeholder.input",e.$t("module.basicData.processLocation.workSequenId")]),clearable:""},model:{value:e.dataForm.workSequenId,callback:function(t){e.$set(e.dataForm,"workSequenId",t)},expression:"dataForm.workSequenId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("module.basicData.processLocation.locationName"),prop:"locationName"}},[a("el-select",{attrs:{placeholder:e.$i18nForm(["placeholder.input",e.$t("module.basicData.processLocation.locationName")])},model:{value:e.dataForm.locationName,callback:function(t){e.$set(e.dataForm,"locationName",t)},expression:"dataForm.locationName"}},e._l(e.dataForm,(function(e){return a("el-option",{key:e.locationName,attrs:{label:e.locationName,value:e.locationName}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("module.basicData.processLocation.portAttrId"),prop:"portAttrId"}},[a("el-input",{attrs:{placeholder:e.$i18nForm(["placeholder.input",e.$t("module.basicData.processLocation.portAttrId")]),clearable:""},model:{value:e.dataForm.portAttrId,callback:function(t){e.$set(e.dataForm,"portAttrId",t)},expression:"dataForm.portAttrId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("module.basicData.processLocation.isProcess"),prop:"isProcess"}},[a("el-select",{attrs:{placeholder:e.$i18nForm(["placeholder.input",e.$t("module.basicData.processLocation.isProcess")])},model:{value:e.dataForm.isProcess,callback:function(t){e.$set(e.dataForm,"isProcess",t)},expression:"dataForm.isProcess"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("module.basicData.processLocation.equipmentMark"),prop:"equipmentMark"}},[a("el-input",{attrs:{placeholder:e.$i18nForm(["placeholder.input",e.$t("module.basicData.processLocation.equipmentMark")]),clearable:""},model:{value:e.dataForm.equipmentMark,callback:function(t){e.$set(e.dataForm,"equipmentMark",t)},expression:"dataForm.equipmentMark"}})],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("module.basicData.processLocation.sequence"),prop:"sequence"}},[a("el-input",{attrs:{placeholder:e.$i18nForm(["placeholder.input",e.$t("module.basicData.processLocation.sequence")]),clearable:""},model:{value:e.dataForm.sequence,callback:function(t){e.$set(e.dataForm,"sequence",t)},expression:"dataForm.sequence"}})],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("module.basicData.processLocation.goodsShelves"),prop:"goodsShelves"}},[a("el-select",{attrs:{placeholder:e.$i18nForm(["placeholder.input",e.$t("module.basicData.processLocation.goodsShelves")])},model:{value:e.dataForm.goodsShelves,callback:function(t){e.$set(e.dataForm,"goodsShelves",t)},expression:"dataForm.goodsShelves"}},e._l(e.options2,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v(e._s(e._f("i18nFilter")("btn.cancel")))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.dataFormSubmit()}}},[e._v(e._s(e._f("i18nFilter")("btn.confirm")))])],1)],1)},r=[],s=a("2147"),i={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(e){var t=this;this.listQuery.id=e||"",this.visible=!0,this.$nextTick((function(){t.$refs["dataForm"].resetFields(),Object(s["e"])().then((function(e){for(var a=0;a<e.data.length;a++)t.dataForm.locationId=e.data[a].id,t.dataForm.locationName=e.data[a].locationName})),t.listQuery.id&&Object(s["b"])(t.listQuery.id).then((function(e){t.dataForm.equipmentMark=e.data.equipmentMark,t.dataForm.goodsShelves=e.data.goodsShelves,t.dataForm.id=e.data.id,t.dataForm.isProcess=e.data.isProcess,t.dataForm.portAttrId=e.data.portAttrId,t.dataForm.sequence=e.data.sequence,t.dataForm.workSequenId=e.data.workSequenId,console.log(t.dataForm)}))}))},dataFormSubmit:function(){var e=this;this.$refs["dataForm"].validate((function(t){if(t){var a=e.dataForm;a.id=e.dataForm.id,e.dataForm.id?Object(s["f"])(a).then((function(t){e.$message({message:e.$t("module.basicData.visual.success"),type:"success",duration:1500,onClose:function(){e.visible=!1,e.$emit("refreshDataList")}})})):Object(s["a"])(a).then((function(t){e.$message({message:e.$t("module.basicData.visual.success"),type:"success",duration:1500,onClose:function(){e.visible=!1,e.$emit("refreshDataList")}})}))}}))}}},l=i,n=a("2877"),c=Object(n["a"])(l,o,r,!1,null,null,null);t["default"]=c.exports}}]);