基础管理-物料信息 添加字典
This commit is contained in:
@@ -51,7 +51,7 @@ public class BasProduct extends BaseEntity
|
||||
private String spec;
|
||||
|
||||
/** 型号 */
|
||||
@Excel(name = "物料状态")
|
||||
@Excel(name = "物料状态",dictType = "product_type")
|
||||
private String spare1;
|
||||
|
||||
/** 单件净重 */
|
||||
|
||||
@@ -183,7 +183,11 @@
|
||||
<el-table-column label="规格型号" align="center" prop="spec" />
|
||||
<el-table-column label="图号" align="center" prop="cargoNo" />
|
||||
<el-table-column label="常用编码" align="center" prop="parentId" />
|
||||
<el-table-column label="物料状态" align="center" prop="spare1" />
|
||||
<el-table-column label="物料状态" align="center" prop="spare1" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.product_type" :value="scope.row.spare1"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单位" align="center" prop="unit" />
|
||||
<el-table-column label="启用标识" align="center" prop="spare7" >
|
||||
<template slot-scope="scope">
|
||||
@@ -257,7 +261,14 @@
|
||||
<el-input v-model="form.remark" placeholder="请输入备注" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料状态" prop="spare1">
|
||||
<el-input v-model="form.spare1" placeholder="请输入物料状态" />
|
||||
<el-select v-model="form.spare1" placeholder="请选择物料状态">
|
||||
<el-option
|
||||
v-for="dict in dict.type.product_type"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否系统项" prop="spare2">
|
||||
<el-select v-model="form.spare2" placeholder="请选择是否系统项">
|
||||
@@ -308,7 +319,7 @@ import { listBasProduct, getBasProduct, delBasProduct, addBasProduct, updateBasP
|
||||
|
||||
export default {
|
||||
name: "BasProduct",
|
||||
dicts:['sys_yes_no'],
|
||||
dicts:['sys_yes_no','product_type'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
|
||||
Reference in New Issue
Block a user