tft-fe/dist/js/2377.55e45038.js

1 line
29 KiB
JavaScript
Raw Normal View History

2023-02-22 13:59:09 +08:00
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[2377],{2377:function(t,e,r){r.r(e),r.d(e,{default:function(){return Q}});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)},i=[],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:"备件类别"},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:functio