| | |
| | | |
| | | <el-form-item label="状态" prop="status"> |
| | | <el-select v-model="queryParams.status" placeholder="请选择状态" clearable> |
| | | <el-option |
| | | v-for="dict in dict.type.sys_normal_disable" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item style="float: right"> |
| | |
| | | <el-table-column label="物料编号" align="center" prop="materialCode"> |
| | | </el-table-column> |
| | | <el-table-column label="物料名称" align="center" prop="materialName"> |
| | | </el-table-column> |
| | | <el-table-column label="视图" align="center" prop="materialView"> |
| | | </el-table-column> |
| | | <el-table-column label="种类" align="center" prop="typeZ"> |
| | | </el-table-column> |
| | |
| | | /> |
| | | |
| | | <!-- 添加或修改物料信息对话框 --> |
| | | <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body> |
| | | <span slot="title"> |
| | | <i class="el-icon-s-order"></i> |
| | | {{titleName}} |
| | | </span> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form ref="form" inline :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="物料编号" prop="materialCode"> |
| | | <el-input v-model="form.materialCode" placeholder="请输入物料编号" /> |
| | | </el-form-item> |
| | |
| | | <el-form-item label="ERP规格" prop="erpSpec"> |
| | | <el-input v-model="form.erpSpec" placeholder="请输入ERP规格" /> |
| | | </el-form-item> |
| | | <el-form-item label="厂商" prop="supplier"> |
| | | <el-input v-model="form.supplier" placeholder="请输入厂商" /> |
| | | </el-form-item> |
| | | <el-form-item label="状态" prop="status"> |
| | | <el-radio-group v-model="form.status"> |
| | | <el-radio |
| | |
| | | >{{dict.label}}</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="厂商" prop="supplier"> |
| | | <el-input v-model="form.supplier" placeholder="请输入厂商" /> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |
| | |
| | | ], |
| | | materialName: [ |
| | | { required: true, message: "物料名称不能为空", trigger: "blur" } |
| | | ], |
| | | typeZ: [ |
| | | { required: true, message: "种类不能为空", trigger: "blur" } |
| | | ], |
| | | typeL: [ |
| | | { required: true, message: "类型不能为空", trigger: "blur" } |