| | |
| | | <!-- 添加或修改物料信息对话框 --> |
| | | <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body> |
| | | <el-form :inline="true" ref="form" :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="物料名称" prop="materialName"> |
| | | <el-input v-model="form.materialName" placeholder="请输入物料名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="视图" prop="materialView"> |
| | | <el-input v-model="form.materialView" placeholder="请输入视图" /> |
| | | </el-form-item> |
| | | <el-form-item label="种类" prop="typeZ"> |
| | | <el-select v-model="form.typeZ" placeholder="请选择种类"> |
| | | <el-option |
| | | v-for="dict in dict.type.type_z" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="类型" prop="typeL"> |
| | | <el-select v-model="form.typeL" placeholder="请选择类型"> |
| | | <el-option |
| | | v-for="dict in dict.type.type_l" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="单位" prop="unit"> |
| | | <el-select v-model="form.unit" placeholder="请选择单位"> |
| | | <el-option |
| | | v-for="dict in dict.type.unit" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="版本" prop="version"> |
| | | <el-input v-model="form.version" placeholder="请输入版本" /> |
| | | </el-form-item> |
| | | <el-form-item label="状态" prop="status"> |
| | | <el-radio-group v-model="form.status"> |
| | | <el-radio |
| | | v-for="dict in dict.type.sys_normal_disable" |
| | | :key="dict.value" |
| | | :label="dict.value" |
| | | >{{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-item label="备注" prop="remark"> |
| | | <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" /> |
| | | </el-form-item> |
| | | <el-form-item label="数据来源" prop="dataSource"> |
| | | <el-input v-model="form.dataSource" placeholder="请输入数据来源" /> |
| | | </el-form-item> |
| | | <el-row :gutter="10"> |
| | | <el-col span="8"> |
| | | <el-form-item label="物料编号" prop="materialCode"> |
| | | <el-input v-model="form.materialCode" placeholder="请输入物料编号" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="8"> |
| | | <el-form-item label="物料名称" prop="materialName"> |
| | | <el-input v-model="form.materialName" placeholder="请输入物料名称" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="8"> |
| | | <el-form-item label="视图" prop="materialView"> |
| | | <el-input v-model="form.materialView" placeholder="请输入视图" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col span="8"> |
| | | <el-form-item label="种类" prop="typeZ"> |
| | | <el-select style="width: 93%" v-model="form.typeZ" placeholder="请选择种类"> |
| | | <el-option |
| | | v-for="dict in dict.type.type_z" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="8"> |
| | | <el-form-item label="类型" prop="typeL"> |
| | | <el-select style="width: 93%" v-model="form.typeL" placeholder="请选择类型"> |
| | | <el-option |
| | | v-for="dict in dict.type.type_l" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="8"> |
| | | <el-form-item label="单位" prop="unit"> |
| | | <el-select style="width: 93%" v-model="form.unit" placeholder="请选择单位"> |
| | | <el-option |
| | | v-for="dict in dict.type.unit" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col span="8"> |
| | | <el-form-item label="版本" prop="version"> |
| | | <el-input v-model="form.version" placeholder="请输入版本" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="8"> |
| | | <el-form-item label="数据来源" prop="dataSource"> |
| | | <el-input v-model="form.dataSource" placeholder="请输入数据来源" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="8"> |
| | | <el-form-item label="厂商" prop="supplier"> |
| | | <el-input v-model="form.supplier" placeholder="请输入厂商" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col span="8"> |
| | | <el-form-item label="备注" prop="remark"> |
| | | <el-input v-model="form.remark" placeholder="请输入内容" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="8"> |
| | | <el-form-item label="状态" prop="status"> |
| | | <el-radio-group v-model="form.status"> |
| | | <el-radio |
| | | v-for="dict in dict.type.sys_normal_disable" |
| | | :key="dict.value" |
| | | :label="dict.value" |
| | | >{{dict.label}}</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |