(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.machineHandID,subStorageStatus:t.dataForm.subStorageStatus};console.log(a),Object(o["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=i,u=a("2877"),n=Object(u["a"])(l,s,r,!1,null,null,null);e["default"]=n.exports},"340da":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("div",{staticClass:"app-container"},[a("div",{staticStyle:{}},[t._v(t._s(t.storageCode)+":"+t._s(t.num)+"\n "),a("el-button",{staticStyle:{},attrs:{type:"success"},on:{click:function(e){return t.goback()}}},[t._v(t._s(t._f("i18nFilter")("btn.back")))])],1),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(" "),t.addOrUpdateVisible?a("edit-substrate",{ref:"addOrUpdate",on:{refreshDataList:t.getList}}):t._e()],1)},r=[],o=a("a3e3"),i=a.n(o),l=a("3393"),u=a.n(l),n=a("9923"),d=a("5a6c"),c=a("3163"),b=a("c0ee"),m=a("ebe9"),p=[{type:"edit",btnName:"btn.edit"},{type:"delete",btnName:"btn.delete"}],f=[{prop:"substrateCode",label:n["a"].t("module.report.substrate.substrateCode"),align:"center"},{prop:"subPosition",label:n["a"].t("module.report.substrate.location"),align:"center"},{prop:"storeTime",label:n["a"].t("module.report.substrate.storeTime"),align:"center"},{prop:"status",label:n["a"].t("module.report.substrate.substrateStatus"),align:"center"},{prop:"subStorageStatusName",label:n["a"].t("module.report.substrate.subStorageStatus"),align:"center"},{prop:"machineHandID",label:n["a"].t("module.report.substrate.machineHandID"),align:"center"}],h={name:"ViewSubstrate",components:{BaseTable:b["a"],MethodBtn:m["a"],editSubstrate:c["default"]},filters:{statusFilter:function(t){var e={published:"success",draft:"info",deleted:"danger"};return e[t]}},data:function(){return{addOrUpdateVisible:!1,num:"",storageCode:this.$t("module.basicData.visual.storageCode"),tableBtn:p,trueWidth:200,tableProps:f,list:[],listLoading:!0,listQuery:{current:1,size:10,locationStorageSubID:""},count:0}},created:function(){this.listQuery.storageBoxCode=this.$route.query.code,this.listQuery.locationStorageSubID=this.$route.query.locationStorageSubID,this.getList()},methods:{handleClick:function(t){var e,a=this;"delete"===t.type?this.$confirm(i()(e="".concat(this.$t("module.basicData.visual.TipsBefore"),"[")).call(e,t.data.substrateCode,"]?"),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(d["a"])(t.data).then((function(t){a.$message({message:a.$t("module.basicData.visual.success"),type:"success",duration:1500,onClose:function(){a.getList()}})}))}))["catch"]((function(){})):this.addNew(t.data)},getList:function(){var t=this;this.listLoading=!0,this.num=this.listQuery.storageBoxCode,this.listQuery.code=this.$route.query.code,Object(d["d"])(this.listQuery).then((function(e){if(e.data){t.list=e.data;for(var a=0;a