mt-ck-wms-ui/dist/static/js/chunk-42febee0.ff1aebd5.js

1 line
8.6 KiB
JavaScript
Raw Normal View History

2022-06-07 15:13:51 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-42febee0","chunk-e27fb0b2"],{"201c":function(t,e,a){},3163:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t._f("i18nFilter")("btn.edit"),visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"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.report.substrate.substrateCode"),prop:"substrateCode"}},[a("el-input",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.report.substrate.substrateCode")]),clearable:""},model:{value:t.dataForm.substrateCode,callback:function(e){t.$set(t.dataForm,"substrateCode",e)},expression:"dataForm.substrateCode"}})],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("module.report.substrate.location"),prop:"subPosition"}},[a("el-input",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.report.substrate.location")]),clearable:""},model:{value:t.dataForm.subPosition,callback:function(e){t.$set(t.dataForm,"subPosition",e)},expression:"dataForm.subPosition"}})],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("module.report.substrate.storeTime"),prop:"storeTime"}},[a("el-input",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.report.substrate.storeTime")]),clearable:""},model:{value:t.dataForm.storeTime,callback:function(e){t.$set(t.dataForm,"storeTime",e)},expression:"dataForm.storeTime"}})],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("module.report.substrate.substrateStatus"),prop:"status"}},[a("el-input",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.report.substrate.substrateStatus")]),clearable:""},model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}})],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("module.report.substrate.subStorageStatus"),prop:"subStorageStatus"}},[a("el-select",{attrs:{placeholder:this.$t("module.report.substrate.subStorageStatus"),default:""},model:{value:t.dataForm.subStorageStatus,callback:function(e){t.$set(t.dataForm,"subStorageStatus",e)},expression:"dataForm.subStorageStatus"}},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.report.substrate.machineHandID"),prop:"machineHandID"}},[a("el-input",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.report.substrate.machineHandID")]),clearable:""},model:{value:t.dataForm.machineHandID,callback:function(e){t.$set(t.dataForm,"machineHandID",e)},expression:"dataForm.machineHandID"}})],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)},r=[],o=a("5a6c"),i={props:{id:{type:String,default:function(){return""}}},data:function(){return{visible:!1,dataForm:{},options:[{value:1,label:this.$t("module.report.substrate.load")},{value:2,label:this.$t("module.report.substrate.unload")}],list:{id:"",locationName:"",storeTime:"",substrateCode:"",substrateStatus:""},dataRule:{substrateCode:[{required:!0,message:this.$i18nForm(["placeholder.input",this.$t("module.report.substrate.substrateCode")]),trigger:"blur"}]}}},created:function(){this.init()},methods:{init:function(t){this.dataForm=t,this.visible=!0},dataFormSubmit:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var a={status:t.dataForm.status,storeTime:t.dataForm.storeTime,id:t.dataForm.id,substrateCode:t.dataForm.substrateCode,subPosition:t.dataForm.subPosition,storageBoxFid:t.dataForm.storageBoxFid,machineHandID:t.dataForm.machineHan