tft-fe/dist/js/8865.e94a909a.js

1 line
18 KiB
JavaScript
Raw Normal View History

2023-02-22 13:59:09 +08:00
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[8865],{8865:function(t,e,a){a.r(e),a.d(e,{default:function(){return x}});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-box"},[e("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick,"select-changed":t.selectChanged}}),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:t.getList}}),e("base-dialog",{attrs:{dialogTitle:t.addAndEdit,dialogVisible:t.centervisible,"before-close":t.handleCancel},on:{cancel:t.handleCancel,confirm:t.handleConfirm}},[e("in-and-out-management-add",{ref:"inAndOutManagementAdd",on:{successSubmit:t.successSubmit}})],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:"产线",disabled:t.showEdit||t.showOutput},on:{change:t.getSideLibaryList},model:{value:t.form.proLineId,callback:function(e){t.$set(t.form,"proLineId",e)},expression:"form.proLineId"}},t._l(t.proLineIdList,(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:"sideLibaryId"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"所属线边库",disabled:t.showEdit||t.showOutput},model:{value:t.form.sideLibaryId,callback:function(e){t.$set(t.form,"sideLibaryId",e)},expression:"form.sideLibaryId"}},t._l(t.sideLibaryIdList,(function(t,a){return e("el-option",{key:a,attrs:{label:t.name,value:t.sideLibaryId}})})),1)],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"耗材名称",prop:"name"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"耗材名称",disabled:t.showEdit||t.showOutput},on:{change:t.selectMeta},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}},t._l(t.consumablesNameList,(function(t,a){return e("el-option",{key:a,attrs:{label:t.name,value:t.name}})})),1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"规格",prop:"spec"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"规格",disabled:t.showEdit||t.showOutput},model:{value:t.form.spec,callback:function(e){t.$set(t.form,"spec",e)},expression:"form.spec"}},t._l(t.consumablesSpecList,(function(t,a){return e("el-option",{key:a,attrs:{label:t.spec,value:t.spec}})})),1)],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[t.showEdit?t._e():e("el-form-item",{attrs:{label:"批次编码",prop:"batchCode"}},[t.showOutput?t._e():e("el-input",{attrs:{disabled:t.showEdit,placeholder:"批次编码"},model:{value:t.form.batchCode,callback:function(e){t.$set(t.form,"batchCode",e)},expression:"form.batchCode"}}),t.showOutput?e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"批次编码"},on:{change:t.toggleSupplier},model:{value:t.form.batchCode,callback:function(e){t.$set(t.form,"batchCode",e)},expression:"form.batchCode"}},t._l(t.batchCodeList,(function(t){return e("el-option",{key:t.batchCode,attrs:{label:t.batchCode,value:t.batchCode}})})),1):t._e()],1)],1),e("el-col",{attrs:{span:12}},[t.showEdit?t._e():e("el-form-item",{attrs:{label:t.showOutput?"出库数量":"入库数量",prop:"num"}},[e("el-input-n