(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e27fb0b2"],{3163:function(t,e,a){"use strict";a.r(e);var r=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)},o=[],s=a("5a6c"),u={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.machineHandID,subStorageStatus:t.dataForm.subStorageStatus};console.log(a),Object(s["e"])(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")}})}))}}))}}},l=u,i=a("2877"),n=Object(i["a"])(l,r,o,!1,null,null,null);e["default"]=n.exports},"5a6c":function(t,e,a){"use strict";a.d(e,"c",(function(){return o})),a.d(e,"b",(function(){return s})),a.d(e,"d",(function(){return u})),a.d(e,"a",(function(){return l})),a.d(e,"e",(function(){return i}));var r=a("b775");function o(t){return Object(r["a"])({url:"/api/report/report-storage-box/list",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/api/report/report-storage-box/excel-download",method:"post",data:t,responseType:"blob",timeout:6e4})}function u(t){return Object(r["a"])({url:"/api/report/report-substrate/list",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/api/report/report-substrate/delete",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/api/report/report-substrate/update",method:"post",data:t})}}}]);