| | |
| | | <el-form-item label="材料名称:" prop="materialName"> |
| | | <el-input v-model.trim="state.form.materialName" :readonly="state.title =='查看'" placeholder="材料名称"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="批次:" prop="materialBatch"> |
| | | <el-input v-model.trim="state.form.materialBatch" :readonly="state.title =='查看'" placeholder="批次"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="规格:" prop="specification"> |
| | | <el-input v-model.trim="state.form.specification" :readonly="state.title =='查看'" placeholder="规格"></el-input> |
| | | </el-form-item> |
| | |
| | | companyId: null, |
| | | materialName: '', |
| | | specification: '', |
| | | materialBatch:'', |
| | | materialUnit: '', |
| | | inventory: '' |
| | | }, |
| | | formRules:{ |
| | | companyId: [{ required: true, message: '请选择企业', trigger: 'blur' }], |
| | | materialName: [{ required: true, message: '请输入材料名称', trigger: 'blur' }], |
| | | materialBatch: [{ required: true, message: '请输入批次', trigger: 'blur' }], |
| | | specification: [{ required: true, message: '请输入规格', trigger: 'blur' }], |
| | | materialUnit: [{ required: true, message: '请输入单位', trigger: 'blur' }], |
| | | inventory: [{ required: true, message: '请输入库存量', trigger: 'blur' }] |
| | |
| | | data = { |
| | | companyId: state.form.companyId, |
| | | materialName: state.form.materialName, |
| | | materialBatch:state.form.materialBatch, |
| | | specification: state.form.specification, |
| | | materialUnit: state.form.materialUnit, |
| | | inventory: state.form.inventory |
| | |
| | | companyId: null, |
| | | materialName: '', |
| | | specification: '', |
| | | materialBatch:'', |
| | | materialUnit: '', |
| | | inventory: '' |
| | | } |
| | |
| | | <el-table v-loading="loading" :data="dataList" :border="true"> |
| | | <el-table-column label="序号" type="index" align="center" width="80"/> |
| | | <el-table-column label="材料名称" prop="materialName" align="center"/> |
| | | <el-table-column label="批次" prop="materialBatch" align="center"/> |
| | | <el-table-column label="规格" prop="specification" align="center"/> |
| | | <el-table-column label="单位" prop="materialUnit" align="center"/> |
| | | <el-table-column label="库存量" prop="inventory" align="center"/> |