tft-fe/dist/js/6729.fd1b5476.js
2023-05-25 15:16:14 +08:00

1 line
30 KiB
JavaScript

"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[6729],{6729:function(t,e,r){r.r(e),r.d(e,{default:function(){return A}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"spare-parts-stock"},[e("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),e("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH,"row-class-name":t.tableRowClassName}},[t.tableBtn.length?e("method-btn",{attrs:{slot:"handleBtn",width:120,label:"操作",fixed:"right","method-list":t.tableBtn},on:{clickBtn:t.handleClick},slot:"handleBtn"}):t._e()],1),e("pagination",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,total:t.total},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()}}}),e("base-dialog",{attrs:{dialogTitle:"入库",dialogVisible:t.centervisibleIn,"before-close":t.handleCancelIn},on:{cancel:t.handleCancelIn,confirm:t.handleConfirmIn}},[e("spare-parts-add",{ref:"sparePartsAdd",on:{successSubmit:t.successSubmitIn}})],1),e("base-dialog",{attrs:{dialogTitle:"编辑",dialogVisible:t.centervisibleEdit,"before-close":t.handleCancelEdit},on:{cancel:t.handleCancelEdit,confirm:t.handleConfirmEdit}},[e("spare-parts-edit",{ref:"sparePartsEdit",on:{successSubmit:t.successSubmitEdit}})],1),e("base-dialog",{attrs:{dialogTitle:"出库",dialogVisible:t.centervisibleOut,"before-close":t.handleCancelOut},on:{cancel:t.handleCancelOut,confirm:t.handleConfirmOut}},[e("spare-parts-out",{ref:"sparePartsOut",on:{successSubmit:t.successSubmitOut}})],1)],1)},o=[],n=function(){var t=this,e=t._self._c;return e("el-form",{ref:"form",attrs:{rules:t.rules,"label-width":"110px",model:t.form}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"产线",prop:"proLineId"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"产线"},model:{value:t.form.proLineId,callback:function(e){t.$set(t.form,"proLineId",e)},expression:"form.proLineId"}},t._l(t.productionLineList,(function(t){return e("el-option",{key:t.dataCode,attrs:{label:t.dataName,value:t.dataCode}})})),1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"备件类别",prop:"type"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"备件类别"},on:{change:t.selectName},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},t._l(t.sparePartsTypeList,(function(t,r){return e("el-option",{key:r,attrs:{label:t.dataName,value:t.dataName}})})),1)],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"备件名称",prop:"sparePartName"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"备件名称"},on:{change:t.selectModel},model:{value:t.form.sparePartName,callback:function(e){t.$set(t.form,"sparePartName",e)},expression:"form.sparePartName"}},t._l(t.sparePartsList,(function(t,r){return e("el-option",{key:r,attrs:{label:t.name,value:t.name}})})),1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"备件型号",prop:"model"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"备件型号"},model:{value:t.form.model,callback:function(e){t.$set(t.form,"model",e)},expression:"form.model"}},t._l(t.sparePartsSpecList,(function(t,r){return e("el-option",{key:r,attrs:{label:t.model,value:t.model}})})),1)],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"批次编码",prop:"batchCode"}},[e("el-input",{attrs:{placeholder:"批次编码"},model:{value:t.form.batchCode,callback:function(e){t.$set(t.form,"batchCode",e)},expression:"form.batchCode"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"入库数量",prop:"inNum"}},[e("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:9999999999},model:{value:t.form.inNum,callback:function(e){t.$set(t.form,"inNum",e)},expression:"form.inNum"}})],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"供应商",prop:"supplier"}},[e("el-input",{attrs:{placeholder:"供应商"},model:{value:t.form.supplier,callback:function(e){t.$set(t.form,"supplier",e)},expression:"form.supplier"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"库位",prop:"stockPosition"}},[e("el-input",{attrs:{placeholder:"库位"},model:{value:t.form.stockPosition,callback:function(e){t.$set(t.form,"stockPosition",e)},expression:"form.stockPosition"}})],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"备注",prop:"remark"}},[e("el-input",{attrs:{placeholder:"备注"},model:{value:t.form.remark,callback:function(e){t.$set(t.form,"remark",e)},expression:"form.remark"}})],1)],1)],1)],1)},i=[],s=r(910),l=r(147),u={name:"SparePartsAdd",data(){return{form:{proLineId:"",type:"",sparePartName:"",model:"",batchCode:"",inNum:"",supplier:"",stockPosition:"",remark:""},rules:{proLineId:[{required:!0,message:"请选择产线",trigger:"change"}],type:[{required:!0,message:"请选择备件类型",trigger:"change"}],sparePartName:[{required:!0,message:"请选择备件名称",trigger:"change"}],model:[{required:!0,message:"请选择备件型号",trigger:"change"}],batchCode:[{required:!0,message:"请输入批次编码",trigger:"blur"}],inNum:[{required:!0,message:"请输入入库数量",trigger:"blur"}],stockPosition:[{required:!0,message:"请输入库位",trigger:"blur"}],planStartTime:[{required:!0,message:"请选择计划开始时间",trigger:"change"}],planEndTime:[{required:!0,message:"请选择计划结束时间",trigger:"change"}]},productionLineList:JSON.parse(localStorage.getItem("publicList")).proLineVoList,sparePartsTypeList:JSON.parse(localStorage.getItem("publicList")).sparePartsTypeList,sparePartsList:[],sparePartsSpecList:[]}},methods:{init(){},selectName(t){(0,s.dN)({type:t}).then((t=>{this.sparePartsList=t.data,this.sparePartsSpecList=[],this.form.sparePartName="",this.form.model=""}))},selectModel(t){(0,s.fZ)({name:t}).then((t=>{this.sparePartsSpecList=t.data,this.form.model=""}))},submitForm(){this.$refs["form"].validate((t=>{if(!t)return!1;(0,l.rd)({...this.form}).then((t=>{0===t.code&&(this.$message({message:"操作成功",type:"success",duration:1500}),this.$emit("successSubmit"))}))}))},formClear(){this.$refs.form.resetFields(),this.sparePartsList=[],this.sparePartsSpecList=[]}}},m=u,p=r(1001),c=(0,p.Z)(m,n,i,!1,null,null,null),d=c.exports,f=function(){var t=this,e=t._self._c;return e("el-form",{ref:"form",attrs:{rules:t.rules,"label-width":"110px",model:t.form}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"产线",prop:"proLineId"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"产线",disabled:""},model:{value:t.form.proLineId,callback:function(e){t.$set(t.form,"proLineId",e)},expression:"form.proLineId"}},t._l(t.productionLineList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"备件类别",prop:"sparePartType"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"备件类别",disabled:""},model:{value:t.form.sparePartType,callback:function(e){t.$set(t.form,"sparePartType",e)},expression:"form.sparePartType"}},t._l(t.sparePartsTypeList,(function(t,r){return e("el-option",{key:r,attrs:{label:t.dataName,value:t.dataName}})})),1)],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"备件名称",prop:"sparePartName"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"备件名称",disabled:""},on:{change:t.selectModel},model:{value:t.form.sparePartName,callback:function(e){t.$set(t.form,"sparePartName",e)},expression:"form.sparePartName"}},t._l(t.sparePartsList,(function(t,r){return e("el-option",{key:r,attrs:{label:t.name,value:t.name}})})),1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"备件型号",prop:"model"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"备件型号",disabled:""},model:{value:t.form.model,callback:function(e){t.$set(t.form,"model",e)},expression:"form.model"}},t._l(t.sparePartsSpecList,(function(t,r){return e("el-option",{key:r,attrs:{label:t.model,value:t.model}})})),1)],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"库位",prop:"stockPosition"}},[e("el-input",{attrs:{placeholder:"库位"},model:{value:t.form.stockPosition,callback:function(e){t.$set(t.form,"stockPosition",e)},expression:"form.stockPosition"}})],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"最低安全库存",prop:"minNum"}},[e("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:999999999},model:{value:t.form.minNum,callback:function(e){t.$set(t.form,"minNum",e)},expression:"form.minNum"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"最高安全库存",prop:"maxNum"}},[e("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:9999999999},model:{value:t.form.maxNum,callback:function(e){t.$set(t.form,"maxNum",e)},expression:"form.maxNum"}})],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"备注",prop:"remark"}},[e("el-input",{attrs:{placeholder:"备注"},model:{value:t.form.remark,callback:function(e){t.$set(t.form,"remark",e)},expression:"form.remark"}})],1)],1)],1)],1)},h=[],b={name:"SparePartsEdit",data(){return{form:{id:"",proLineId:"",sparePartType:"",sparePartName:"",model:"",supplier:"",stockPosition:"",remark:""},rules:{proLineId:[{required:!0,message:"请选择产线",trigger:"change"}],sparePartType:[{required:!0,message:"请选择备件类型",trigger:"change"}],sparePartName:[{required:!0,message:"请选择备件名称",trigger:"change"}],model:[{required:!0,message:"请选择备件型号",trigger:"change"}],stockPosition:[{required:!0,message:"请输入库位",trigger:"blur"}]},productionLineList:JSON.parse(localStorage.getItem("publicList")).proLineVoList,sparePartsTypeList:JSON.parse(localStorage.getItem("publicList")).sparePartsTypeList,sparePartsList:[],sparePartsSpecList:[{id:1,name:"1mm"}]}},methods:{init(t){t&&(this.form.id=t,(0,l.bO)({id:t}).then((t=>{console.log(t),this.form.proLineId=t.data.proLineId,this.form.sparePartType=t.data.sparePartType,this.form.sparePartName=t.data.sparePartName,this.form.model=t.data.model,this.form.maxNum=t.data.maxNum,this.form.minNum=t.data.minNum,this.form.stockPosition=t.data.stockPosition,this.form.remark=t.data.remark})))},selectModel(t){(0,s.fZ)({name:t}).then((t=>{this.sparePartsSpecList=t.data,this.form.model=""}))},submitForm(){this.$refs["form"].validate((t=>{if(!t)return!1;(0,l.$d)({id:this.form.id,maxNum:this.form.maxNum,minNum:this.form.minNum,remark:this.form.remark,stockPosition:this.form.stockPosition}).then((t=>{0===t.code&&(this.$message({message:"操作成功",type:"success",duration:1500}),this.$emit("successSubmit"))}))}))},formClear(){this.$refs.form.resetFields(),this.sparePartsList=[],this.sparePartsSpecList=[]}}},g=b,P=(0,p.Z)(g,f,h,!1,null,null,null),y=P.exports,L=function(){var t=this,e=t._self._c;return e("el-form",{ref:"form",attrs:{rules:t.rules,"label-width":"110px",model:t.form}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"产线",prop:"proLineId"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"产线",disabled:""},model:{value:t.form.proLineId,callback:function(e){t.$set(t.form,"proLineId",e)},expression:"form.proLineId"}},t._l(t.productionLineList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"备件类别",prop:"sparePartType"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"备件类别",disabled:""},model:{value:t.form.sparePartType,callback:function(e){t.$set(t.form,"sparePartType",e)},expression:"form.sparePartType"}},t._l(t.sparePartsTypeList,(function(t,r){return e("el-option",{key:r,attrs:{label:t.dataName,value:t.dataName}})})),1)],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"备件名称",prop:"sparePartName"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"备件名称",disabled:""},on:{change:t.selectModel},model:{value:t.form.sparePartName,callback:function(e){t.$set(t.form,"sparePartName",e)},expression:"form.sparePartName"}},t._l(t.sparePartsList,(function(t,r){return e("el-option",{key:r,attrs:{label:t.name,value:t.name}})})),1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"备件型号",prop:"model"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"备件型号",disabled:""},model:{value:t.form.model,callback:function(e){t.$set(t.form,"model",e)},expression:"form.model"}},t._l(t.sparePartsSpecList,(function(t,r){return e("el-option",{key:r,attrs:{label:t.model,value:t.model}})})),1)],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"批次编码",prop:"batchCode"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"批次编码"},on:{change:t.batchChange},model:{value:t.form.batchCode,callback:function(e){t.$set(t.form,"batchCode",e)},expression:"form.batchCode"}},t._l(t.batchCodeList,(function(t,r){return e("el-option",{key:r,attrs:{label:t.batchCode,value:t.batchCode}})})),1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"供应商",prop:"supplier"}},[e("el-input",{attrs:{placeholder:"供应商",disabled:""},model:{value:t.form.supplier,callback:function(e){t.$set(t.form,"supplier",e)},expression:"form.supplier"}})],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"出库数量",prop:"outNum"}},[e("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:999999999},model:{value:t.form.outNum,callback:function(e){t.$set(t.form,"outNum",e)},expression:"form.outNum"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"领用人",prop:"recipient"}},[e("el-input",{attrs:{placeholder:"领用人"},model:{value:t.form.recipient,callback:function(e){t.$set(t.form,"recipient",e)},expression:"form.recipient"}})],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"备注",prop:"remark"}},[e("el-input",{attrs:{placeholder:"备注"},model:{value:t.form.remark,callback:function(e){t.$set(t.form,"remark",e)},expression:"form.remark"}})],1)],1)],1)],1)},k=[],N={name:"SparePartsOut",data(){return{form:{id:"",proLineId:"",sparePartType:"",sparePartName:"",model:"",batchCode:"",supplier:"",outNum:"",recipient:"",remark:""},rules:{proLineId:[{required:!0,message:"请选择产线",trigger:"change"}],sparePartType:[{required:!0,message:"请选择备件类型",trigger:"change"}],sparePartName:[{required:!0,message:"请选择备件名称",trigger:"change"}],model:[{required:!0,message:"请选择备件型号",trigger:"change"}],batchCode:[{required:!0,message:"请选择批次编码",trigger:"change"}],outNum:[{required:!0,message:"请输入出库数量",trigger:"blur"}],recipient:[{required:!0,message:"请输入领用人",trigger:"blur"}]},productionLineList:JSON.parse(localStorage.getItem("publicList")).proLineVoList,sparePartsTypeList:JSON.parse(localStorage.getItem("publicList")).sparePartsTypeList,sparePartsList:[],sparePartsSpecList:[],batchCodeList:[]}},methods:{init(t){t&&(this.form.id=t,this.getBatchList(t),(0,l.bO)({id:t}).then((t=>{this.form.proLineId=t.data.proLineId,this.form.sparePartType=t.data.sparePartType,this.form.sparePartName=t.data.sparePartName,this.form.model=t.data.model,this.form.maxNum=t.data.maxNum,this.form.minNum=t.data.minNum,this.form.stockPosition=t.data.stockPosition,this.form.remark=t.data.remark}))),this.form.recipient=this.$store.getters.username?this.$store.getters.username:""},getBatchList(t){(0,l.Ku)({id:t}).then((t=>{this.batchCodeList=t.data}))},selectModel(t){(0,s.fZ)({name:t}).then((t=>{this.sparePartsSpecList=t.data,this.form.model=""}))},submitForm(){this.$refs["form"].validate((t=>{if(!t)return!1;(0,l.lJ)({id:this.form.id,batchCode:this.form.batchCode,outNum:this.form.outNum,recipient:this.form.recipient,remark:this.form.remark}).then((t=>{0===t.code&&(this.$message({message:"操作成功",type:"success",duration:1500}),this.$emit("successSubmit"))}))}))},formClear(){this.$refs.form.resetFields(),this.sparePartsList=[],this.sparePartsSpecList=[],this.batchCodeList=[]},batchChange(t){this.batchCodeList&&this.batchCodeList.map((e=>{e.batchCode===t&&(this.form.supplier=e.supplier)}))}}},S=N,C=(0,p.Z)(S,L,k,!1,null,null,null),Z=C.exports,v=function(){var t=this,e=t._self._c;return e("el-popover",{attrs:{placement:"right",width:"500",trigger:"click"}},[e("el-table",{attrs:{data:t.tableData}},[e("el-table-column",{attrs:{prop:"batchCode",label:"批次编码",width:"160"}}),e("el-table-column",{attrs:{prop:"supplier",label:"供应商",width:"220"}}),e("el-table-column",{attrs:{prop:"num",label:"当前库存"}})],1),e("el-button",{staticClass:"tableInnerButton",attrs:{slot:"reference",type:"text"},on:{click:function(e){return t.showInnerTable(t.injectData.id)}},slot:"reference"},[t._v("详情")])],1)},x=[],$={name:"InnerTable",props:{injectData:{type:Object,default:()=>({})},itemProp:{type:String}},data(){return{list:this.injectData,tableData:[]}},methods:{showInnerTable(t){console.log(t),(0,l.Dr)({id:t}).then((t=>{0===t.code&&(this.tableData=t.data)}))}}},w=$,q=(0,p.Z)(w,v,x,!1,null,null,null),I=q.exports,M=r(475);const T=[{prop:"proLineName",label:"产线",minWidth:120},{prop:"sparePartType",label:"备件类别",minWidth:150},{prop:"sparePartName",label:"备件名称",minWidth:150},{prop:"model",label:"备件型号",minWidth:150},{prop:"num",label:"库存数量/个",sortable:!0,minWidth:150},{prop:"inventoryDetails",label:"库存详情",minWidth:100,subcomponent:I},{prop:"minNum",label:"最低安全库存",width:150},{prop:"maxNum",label:"最高安全库存",width:150},{prop:"stockPosition",label:"库位",minWidth:140},{prop:"remark",label:"备注",minWidth:150}],O=[{type:"edit",btnName:"编辑"},{type:"output",btnName:"出库"}];var _={name:"SparePartsStock",components:{SparePartsAdd:d,SparePartsEdit:y,SparePartsOut:Z},data(){return{formConfig:[{type:"select",label:"产线",selectOptions:JSON.parse(localStorage.getItem("publicList")).proLineVoList,param:"proLineId",labelField:"dataName",valueField:"dataCode",defaultSelect:"",width:150},{type:"select",label:"备件类别",selectOptions:JSON.parse(localStorage.getItem("publicList")).sparePartsTypeList,param:"type",labelField:"dataName",valueField:"dataName",defaultSelect:"",width:150},{type:"input",label:"备件名称",placeholder:"备件名称",param:"sparePartName"},{type:"input",label:"备件型号",placeholder:"备件型号",param:"model"},{type:"button",btnName:"查询",name:"search",color:"primary"},{type:"button",btnName:"重置",name:"reset"},{type:"separate"},{type:"button",btnName:"入库",name:"add",color:"primary",plain:!0},{type:"button",btnName:"导出",name:"export",color:"primary",plain:!0}],tableProps:T,tableData:[],tableBtn:O,tableH:(0,M.NC)(320),total:0,listQuery:{current:1,size:20},centervisibleIn:!1,centervisibleEdit:!1,centervisibleOut:!1}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,M.NC)(320)})),this.getList()},methods:{getList(){(0,l.HJ)({...this.listQuery}).then((t=>{console.log(t),0===t.code&&(this.total=t.data.total,this.tableData=t.data.records)}))},handleClick(t){console.log(t),"edit"===t.type?(this.centervisibleEdit=!0,this.$nextTick((()=>{this.$refs.sparePartsEdit.init(t.data.id)}))):"output"===t.type&&(this.centervisibleOut=!0,this.$nextTick((()=>{this.$refs.sparePartsOut.init(t.data.id)})))},buttonClick(t){switch(console.log(t),t.btnName){case"search":this.listQuery.proLineId=t.proLineId,this.listQuery.type=t.type,this.listQuery.sparePartName=t.sparePartName,this.listQuery.model=t.model,this.listQuery.current=1,this.getList();break;case"reset":this.$refs.searchBarForm.resetForm(),this.listQuery.proLineId="",this.listQuery.type="",this.listQuery.sparePartName="",this.listQuery.model="",this.listQuery.current=1,this.getList();break;case"add":this.centervisibleIn=!0,this.$nextTick((()=>{this.$refs.sparePartsAdd.init()}));break;default:this.listQuery.proLineId=t.proLineId,this.listQuery.type=t.type,this.listQuery.sparePartName=t.sparePartName,this.listQuery.model=t.model,(0,l.$F)({...this.listQuery}).then((t=>{let e="";const r=t.headers["content-disposition"];r&&(e=decodeURIComponent(r.slice(r.indexOf("filename=")+9)));const a=new Blob([t.data]),o=new FileReader;o.readAsDataURL(a),o.onload=t=>{const r=document.createElement("a");r.download=e,r.href=t.target.result,document.body.appendChild(r),r.click(),document.body.removeChild(r)}}))}},tableRowClassName({row:t}){return t.flag&&t.flag>0?"danger-row":""},handleCancelIn(){this.$refs.sparePartsAdd.formClear(),this.centervisibleIn=!1},handleConfirmIn(){this.$refs.sparePartsAdd.submitForm()},successSubmitIn(){this.handleCancelIn(),this.getList()},handleCancelEdit(){this.$refs.sparePartsEdit.formClear(),this.centervisibleEdit=!1},handleConfirmEdit(){this.$refs.sparePartsEdit.submitForm()},successSubmitEdit(){this.handleCancelEdit(),this.getList()},handleCancelOut(){this.$refs.sparePartsOut.formClear(),this.centervisibleOut=!1},handleConfirmOut(){this.$refs.sparePartsOut.submitForm()},successSubmitOut(){this.handleCancelOut(),this.getList()}}},E=_,Q=(0,p.Z)(E,a,o,!1,null,"10587646",null),A=Q.exports},910:function(t,e,r){r.d(e,{$0:function(){return Z},A0:function(){return C},D0:function(){return i},ER:function(){return q},Hg:function(){return D},J_:function(){return I},Kl:function(){return S},ME:function(){return m},Or:function(){return g},P4:function(){return u},Py:function(){return p},QL:function(){return _},Qj:function(){return k},Sc:function(){return h},Sl:function(){return P},W0:function(){return F},WZ:function(){return f},Wj:function(){return l},Zs:function(){return o},_:function(){return w},_1:function(){return y},a:function(){return A},ag:function(){return v},b8:function(){return b},dN:function(){return c},fZ:function(){return d},jF:function(){return n},kB:function(){return M},m3:function(){return Q},oW:function(){return $},qT:function(){return L},sU:function(){return s},sy:function(){return T},tb:function(){return N},wy:function(){return O},xf:function(){return x},yk:function(){return E}});var a=r(8859);function o(t){return(0,a.Z)({url:"/basic/account/page",method:"post",data:t})}function n(t){return(0,a.Z)({url:"/basic/account/add",method:"post",data:t})}function i(t){return(0,a.Z)({url:"/basic/account/get",method:"post",data:t})}function s(t){return(0,a.Z)({url:"/basic/account/update",method:"post",data:t})}function l(t){return(0,a.Z)({url:"/basic/sparePartsConfiguration/page",method:"post",data:t})}function u(t){return(0,a.Z)({url:"/basic/sparePartsConfiguration/add",method:"post",data:t})}function m(t){return(0,a.Z)({url:"/basic/sparePartsConfiguration/get",method:"post",data:t})}function p(t){return(0,a.Z)({url:"/basic/sparePartsConfiguration/update",method:"post",data:t})}function c(t){return(0,a.Z)({url:"/basic/sparePartsConfiguration/getNameList",method:"post",data:t})}function d(t){return(0,a.Z)({url:"/basic/sparePartsConfiguration/getModelList",method:"post",data:t})}function f(t){return(0,a.Z)({url:"/basic/consumableConfiguration/page",method:"post",data:t})}function h(t){return(0,a.Z)({url:"/basic/consumableConfiguration/add",method:"post",data:t})}function b(t){return(0,a.Z)({url:"/basic/consumableConfiguration/get",method:"post",data:t})}function g(t){return(0,a.Z)({url:"/basic/consumableConfiguration/update",method:"post",data:t})}function P(t){return(0,a.Z)({url:"/basic/consumableConfiguration/getMaterialList",method:"post",data:t})}function y(t){return(0,a.Z)({url:"/basic/consumableConfiguration/materialList",method:"post",data:t})}function L(t){return(0,a.Z)({url:"/basic/sideLibraryConfiguration/page",method:"post",data:t})}function k(t){return(0,a.Z)({url:"/basic/sideLibraryConfiguration/add",method:"post",data:t})}function N(t){return(0,a.Z)({url:"/basic/sideLibraryConfiguration/get",method:"post",data:t})}function S(t){return(0,a.Z)({url:"/basic/sideLibraryConfiguration/update",method:"post",data:t})}function C(t){return(0,a.Z)({url:"/basic/sideLibraryConfiguration/list",method:"post",data:t})}function Z(t){return(0,a.Z)({url:"/basic/equipmentConfiguration/page",method:"post",data:t})}function v(t){return(0,a.Z)({url:"/basic/equipmentConfiguration/add",method:"post",data:t})}function x(t){return(0,a.Z)({url:"/basic/equipmentConfiguration/get",method:"post",data:t})}function $(t){return(0,a.Z)({url:"/basic/equipmentConfiguration/update",method:"post",data:t})}function w(t){return(0,a.Z)({url:"/basic/equipmentConfiguration/getUnitList",method:"post",formState:!0,data:t})}function q(t){return(0,a.Z)({url:"/basic/equipmentConfiguration/getEqCode",method:"post",data:t})}function I(t){return(0,a.Z)({url:"/report/report-sheet-category/list",method:"post",data:t})}function M(t){return(0,a.Z)({url:"/report/report-sheet/page",method:"post",data:t})}function T(t){return(0,a.Z)({url:"/report/report-sheet/update",method:"post",data:t})}function O(t){return(0,a.Z)({url:"/report/report-sheet/delete",method:"post",data:t})}function _(t){return(0,a.Z)({url:"/report/report-sheet/get",method:"post",data:t})}function E(t){return(0,a.Z)({url:"/report/report-sheet-category/page",method:"post",data:t})}function Q(t){return(0,a.Z)({url:"/report/report-sheet-category/add",method:"post",data:t})}function A(t){return(0,a.Z)({url:"/report/report-sheet-category/update",method:"post",data:t})}function D(t){return(0,a.Z)({url:"/report/report-sheet-category/get",method:"post",data:t})}function F(t){return(0,a.Z)({url:"/report/report-sheet-category/delete",method:"post",data:t})}},147:function(t,e,r){r.d(e,{$7:function(){return M},$F:function(){return b},$N:function(){return $},$d:function(){return c},A5:function(){return S},Ah:function(){return i},Dr:function(){return f},HJ:function(){return u},Im:function(){return k},KK:function(){return q},KQ:function(){return Z},Ko:function(){return T},Ku:function(){return h},OP:function(){return l},OT:function(){return g},UP:function(){return y},Uw:function(){return O},YG:function(){return x},bO:function(){return p},co:function(){return P},fK:function(){return N},h:function(){return w},jL:function(){return I},lJ:function(){return d},lZ:function(){return s},pl:function(){return v},rd:function(){return m},uN:function(){return n},yx:function(){return L},zG:function(){return C},zh:function(){return o}});var a=r(8859);function o(t){return(0,a.Z)({url:"/equipment/PerformanceAnalysis/get",method:"post",data:t})}function n(t){return(0,a.Z)({url:"/equipment/PerformanceAnalysis/getPlan",method:"post",data:t})}function i(t){return(0,a.Z)({url:"/equipment/PerformanceAnalysis/updatePlan",method:"post",data:t})}function s(t){return(0,a.Z)({url:"/equipment/PalletIndicatorAnalysis/page",method:"post",data:t})}function l(t){return(0,a.Z)({url:"/equipment/PalletIndicatorAnalysis/getType",method:"post",data:t})}function u(t){return(0,a.Z)({url:"/equipment/SparePartStock/page",method:"post",data:t})}function m(t){return(0,a.Z)({url:"/equipment/SparePartStock/inStock",method:"post",data:t})}function p(t){return(0,a.Z)({url:"/equipment/SparePartStock/get",method:"post",data:t})}function c(t){return(0,a.Z)({url:"/equipment/SparePartStock/update",method:"post",data:t})}function d(t){return(0,a.Z)({url:"/equipment/SparePartStock/outStock",method:"post",data:t})}function f(t){return(0,a.Z)({url:"/equipment/SparePartStock/stockDetail",method:"post",data:t})}function h(t){return(0,a.Z)({url:"/equipment/SparePartStock/getBatchList",method:"post",data:t})}function b(t){return(0,a.Z)({url:"/equipment/SparePartStock/export",method:"post",responseType:"blob",data:t,timeout:6e4})}function g(t){return(0,a.Z)({url:"/equipment/SparePartStock/PageHis",method:"post",data:t})}function P(t){return(0,a.Z)({url:"/equipment/SparePartStock/exportHis",method:"post",responseType:"blob",data:t,timeout:6e4})}function y(t){return(0,a.Z)({url:"/equipment/MaintainManage/pageSelect",method:"post",data:t})}function L(t){return(0,a.Z)({url:"/equipment/MaintainManage/unDistributeGet",method:"post",data:t})}function k(t){return(0,a.Z)({url:"/equipment/MaintainManage/create",method:"post",data:t})}function N(t){return(0,a.Z)({url:"/equipment/MaintainManage/unDistribute",method:"post",data:t})}function S(t){return(0,a.Z)({url:"/equipment/MaintainManage/completedDistribute",method:"post",data:t})}function C(t){return(0,a.Z)({url:"/equipment/MaintainManage/dispatch",method:"post",data:t})}function Z(t){return(0,a.Z)({url:"/equipment/MaintainManage/confirm",method:"post",data:t})}function v(t){return(0,a.Z)({url:"/equipment/MaintainManage/PlainMaintainDelete",method:"post",data:t})}function x(t){return(0,a.Z)({url:"/equipment/MaintainManage/PlanMaintainExport",method:"post",responseType:"blob",data:t,timeout:6e4})}function $(t){return(0,a.Z)({url:"/equipment/MaintainManage/AutoMaintainPageSelect",method:"post",data:t})}function w(t){return(0,a.Z)({url:"/equipment/MaintainManage/AutoMaintainAdd",method:"post",data:t})}function q(t){return(0,a.Z)({url:"/equipment/MaintainManage/AutoMaintainModify",method:"post",data:t})}function I(t){return(0,a.Z)({url:"/equipment/MaintainManage/AUtoMaintainDelete",method:"post",data:t})}function M(t){return(0,a.Z)({url:"/equipment/MaintainManage/AutoMaintainExport",method:"post",responseType:"blob",data:t,timeout:6e4})}function T(t){return(0,a.Z)({url:"/equipment/AlarmMessage/nowAlertSelect",method:"post",data:t})}function O(t){return(0,a.Z)({url:"/equipment/AlarmMessage/historyAlertSelect",method:"post",data:t})}}}]);