'20240306

This commit is contained in:
xd 2024-03-06 15:21:39 +08:00
parent f5e76bb60e
commit 5d7a033c7e
11 changed files with 140 additions and 10 deletions

View File

@ -32,6 +32,10 @@ public class CYlMaterial extends BaseEntity
@Excel(name = "单价") @Excel(name = "单价")
private BigDecimal materialPrice; private BigDecimal materialPrice;
/** 停用状态 */
@Excel(name = "停用状态")
private String materialState;
public void setMaterialId(Long materialId) public void setMaterialId(Long materialId)
{ {
this.materialId = materialId; this.materialId = materialId;
@ -69,6 +73,10 @@ public class CYlMaterial extends BaseEntity
return materialPrice; return materialPrice;
} }
public String getMaterialState() {return materialState;}
public void setMaterialState(String materialState) {this.materialState = materialState;}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

View File

@ -43,6 +43,10 @@ public class CMaterial extends BaseEntity
@Excel(name = "物料类型") @Excel(name = "物料类型")
private String typeName; private String typeName;
/** 物料状态 */
@Excel(name = "物料状态")
private String materialState;
/** 物料成本信息 */ /** 物料成本信息 */
private List<CMaterialCost> cMaterialCostList; private List<CMaterialCost> cMaterialCostList;
@ -119,6 +123,10 @@ public class CMaterial extends BaseEntity
this.typeName = typeName; this.typeName = typeName;
} }
public String getMaterialState() {return materialState;}
public void setMaterialState(String materialState) {this.materialState = materialState;}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)

View File

@ -27,6 +27,10 @@ public class CMaterialType extends BaseEntity
@Excel(name = "名称") @Excel(name = "名称")
private String typeName; private String typeName;
/** 状态 */
@Excel(name = "状态")
private String typeState;
public void setTypeId(Long typeId) public void setTypeId(Long typeId)
{ {
this.typeId = typeId; this.typeId = typeId;
@ -55,6 +59,10 @@ public class CMaterialType extends BaseEntity
return typeName; return typeName;
} }
public String getTypeState() {return typeState;}
public void setTypeState(String typeState) {this.typeState = typeState;}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

View File

@ -9,10 +9,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="materialNo" column="material_no" /> <result property="materialNo" column="material_no" />
<result property="materialName" column="material_name" /> <result property="materialName" column="material_name" />
<result property="materialPrice" column="material_price" /> <result property="materialPrice" column="material_price" />
<result property="materialState" column="material_state" />
</resultMap> </resultMap>
<sql id="selectCYlMaterialVo"> <sql id="selectCYlMaterialVo">
select material_id, material_no, material_name, material_price from c_yl_material select material_id, material_no, material_name, material_price, material_state from c_yl_material
</sql> </sql>
<select id="selectCYlMaterialList" parameterType="CYlMaterial" resultMap="CYlMaterialResult"> <select id="selectCYlMaterialList" parameterType="CYlMaterial" resultMap="CYlMaterialResult">
@ -20,6 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where> <where>
<if test="materialNo != null and materialNo != ''"> and material_no = #{materialNo}</if> <if test="materialNo != null and materialNo != ''"> and material_no = #{materialNo}</if>
<if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if> <if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if>
<if test="materialState != null and materialState != ''"> and material_state = #{materialState}</if>
</where> </where>
</select> </select>
@ -34,11 +36,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="materialNo != null and materialNo != ''">material_no,</if> <if test="materialNo != null and materialNo != ''">material_no,</if>
<if test="materialName != null and materialName != ''">material_name,</if> <if test="materialName != null and materialName != ''">material_name,</if>
<if test="materialPrice != null">material_price,</if> <if test="materialPrice != null">material_price,</if>
<if test="materialState != null">material_state,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="materialNo != null and materialNo != ''">#{materialNo},</if> <if test="materialNo != null and materialNo != ''">#{materialNo},</if>
<if test="materialName != null and materialName != ''">#{materialName},</if> <if test="materialName != null and materialName != ''">#{materialName},</if>
<if test="materialPrice != null">#{materialPrice},</if> <if test="materialPrice != null">#{materialPrice},</if>
<if test="materialState != null">#{materialState},</if>
</trim> </trim>
</insert> </insert>
@ -48,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="materialNo != null and materialNo != ''">material_no = #{materialNo},</if> <if test="materialNo != null and materialNo != ''">material_no = #{materialNo},</if>
<if test="materialName != null and materialName != ''">material_name = #{materialName},</if> <if test="materialName != null and materialName != ''">material_name = #{materialName},</if>
<if test="materialPrice != null">material_price = #{materialPrice},</if> <if test="materialPrice != null">material_price = #{materialPrice},</if>
<if test="materialState != null">material_state = #{materialState},</if>
</trim> </trim>
where material_id = #{materialId} where material_id = #{materialId}
</update> </update>

View File

@ -46,10 +46,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<select id="selectCFactoryByFactoryId" parameterType="Long" resultMap="CFactoryCMaterialTypeResult"> <select id="selectCFactoryByFactoryId" parameterType="Long" resultMap="CFactoryCMaterialTypeResult">
select a.factory_id, a.factory_no, a.factory_name, a.factory_rg_ratio, a.factory_wj_ratio, a.factory_fl_ratio, a.factory_df_ratio, a.factory_trq_ratio, a.factory_ys_ratio, a.factory_pj_ratio, a.factory_total_ratio, select a.factory_id, a.factory_no, a.factory_name, a.factory_rg_ratio, a.factory_wj_ratio, a.factory_fl_ratio,
b.type_id as sub_type_id, b.type_no as sub_type_no, b.type_name as sub_type_name, b.factory_id as sub_factory_id a.factory_df_ratio, a.factory_trq_ratio, a.factory_ys_ratio, a.factory_pj_ratio, a.factory_total_ratio,
b.type_id as sub_type_id, case when c.type_state!='0' then '' else b.type_no end sub_type_no,
case when c.type_state!='0' then b.type_name+'(停用)' else b.type_name end sub_type_name, b.factory_id as sub_factory_id
from c_factory a from c_factory a
left join c_material_type_factory b on b.factory_id = a.factory_no left join c_material_type_factory b on b.factory_id = a.factory_no
left join c_material_type c on c.type_no = b.type_no
where a.factory_id = #{factoryId} where a.factory_id = #{factoryId}
</select> </select>

View File

@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="materialDiany" column="material_diany" /> <result property="materialDiany" column="material_diany" />
<result property="materialDw" column="material_dw" /> <result property="materialDw" column="material_dw" />
<result property="typeName" column="type_name" /> <result property="typeName" column="type_name" />
<result property="materialState" column="material_state" />
</resultMap> </resultMap>
<resultMap id="CMaterialCMaterialCostResult" type="CMaterial" extends="CMaterialResult"> <resultMap id="CMaterialCMaterialCostResult" type="CMaterial" extends="CMaterialResult">
@ -30,7 +31,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectCMaterialVo"> <sql id="selectCMaterialVo">
select a.material_id,a.material_type_id, a.material_xingh, a.material_guig, a.material_diany, a.material_dw,b.type_name select a.material_id,a.material_type_id, a.material_xingh, a.material_guig, a.material_diany, a.material_dw,
case when b.type_state != '0' then b.type_name+'(停用)' else b.type_name end type_name,
a.material_state
from c_material a from c_material a
left join c_material_type b on a.material_type_id = b.type_no left join c_material_type b on a.material_type_id = b.type_no
</sql> </sql>
@ -45,12 +48,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<select id="selectCMaterialByMaterialId" parameterType="Long" resultMap="CMaterialCMaterialCostResult"> <select id="selectCMaterialByMaterialId" parameterType="Long" resultMap="CMaterialCMaterialCostResult">
select a.material_id, a.material_type_id, a.material_xingh, a.material_guig, a.material_diany, a.material_dw, select a.material_id, case when d.type_state != '0' then '' else a.material_type_id end material_type_id,
b.cost_id as sub_cost_id, b.cost_material_id as sub_cost_material_id, b.cost_cl_id as sub_cost_cl_id, a.material_xingh, a.material_guig, a.material_diany, a.material_dw,a.material_state,
b.cost_cl_qty as sub_cost_cl_qty, b.cost_cl_qty_2 as sub_cost_cl_qty_2, b.cost_id as sub_cost_id, b.cost_material_id as sub_cost_material_id,
c.material_price as sub_material_price,c.material_name as sub_material_name case when c.material_state!='0' then '' else b.cost_cl_id end sub_cost_cl_id,
case when c.material_state!='0' then 0 else b.cost_cl_qty end sub_cost_cl_qty,
case when c.material_state!='0' then 0 else b.cost_cl_qty_2 end sub_cost_cl_qty_2,
case when c.material_state!='0' then 0 else c.material_price end sub_material_price,
c.material_name as sub_material_name
from c_material a from c_material a
left join c_material_cost b on b.cost_material_id = a.material_id left join c_material_cost b on b.cost_material_id = a.material_id
left join c_material_type d on d.type_no = a.material_type_id
left join c_yl_material c on c.material_no = b.cost_cl_id left join c_yl_material c on c.material_no = b.cost_cl_id
where a.material_id = #{materialId} where a.material_id = #{materialId}
ORDER BY c.material_no ASC ORDER BY c.material_no ASC
@ -64,6 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="materialGuig != null and materialGuig != ''">material_guig,</if> <if test="materialGuig != null and materialGuig != ''">material_guig,</if>
<if test="materialDiany != null">material_diany,</if> <if test="materialDiany != null">material_diany,</if>
<if test="materialDw != null">material_dw,</if> <if test="materialDw != null">material_dw,</if>
<if test="materialState != null">material_state,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="materialTypeId != null and materialTypeId != ''">#{materialTypeId},</if> <if test="materialTypeId != null and materialTypeId != ''">#{materialTypeId},</if>
@ -71,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="materialGuig != null and materialGuig != ''">#{materialGuig},</if> <if test="materialGuig != null and materialGuig != ''">#{materialGuig},</if>
<if test="materialDiany != null">#{materialDiany},</if> <if test="materialDiany != null">#{materialDiany},</if>
<if test="materialDw != null">#{materialDw},</if> <if test="materialDw != null">#{materialDw},</if>
<if test="materialState != null">#{materialState},</if>
</trim> </trim>
</insert> </insert>
@ -82,6 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="materialGuig != null and materialGuig != ''">material_guig = #{materialGuig},</if> <if test="materialGuig != null and materialGuig != ''">material_guig = #{materialGuig},</if>
<if test="materialDiany != null">material_diany = #{materialDiany},</if> <if test="materialDiany != null">material_diany = #{materialDiany},</if>
<if test="materialDw != null">material_dw = #{materialDw},</if> <if test="materialDw != null">material_dw = #{materialDw},</if>
<if test="materialState != null">material_state = #{materialState},</if>
</trim> </trim>
where material_id = #{materialId} where material_id = #{materialId}
</update> </update>

View File

@ -8,10 +8,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="typeId" column="type_id" /> <result property="typeId" column="type_id" />
<result property="typeNo" column="type_no" /> <result property="typeNo" column="type_no" />
<result property="typeName" column="type_name" /> <result property="typeName" column="type_name" />
<result property="typeState" column="type_state" />
</resultMap> </resultMap>
<sql id="selectCMaterialTypeVo"> <sql id="selectCMaterialTypeVo">
select type_id, type_no, type_name from c_material_type select type_id, type_no, type_name, type_state from c_material_type
</sql> </sql>
<select id="selectCMaterialTypeList" parameterType="CMaterialType" resultMap="CMaterialTypeResult"> <select id="selectCMaterialTypeList" parameterType="CMaterialType" resultMap="CMaterialTypeResult">
@ -19,6 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where> <where>
<if test="typeNo != null and typeNo != ''"> and type_no = #{typeNo}</if> <if test="typeNo != null and typeNo != ''"> and type_no = #{typeNo}</if>
<if test="typeName != null and typeName != ''"> and type_name like concat('%', #{typeName}, '%')</if> <if test="typeName != null and typeName != ''"> and type_name like concat('%', #{typeName}, '%')</if>
<if test="typeState != null and typeState != ''"> and type_state = #{typeState}</if>
</where> </where>
order by type_no asc order by type_no asc
</select> </select>
@ -33,10 +35,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="typeNo != null and typeNo != ''">type_no,</if> <if test="typeNo != null and typeNo != ''">type_no,</if>
<if test="typeName != null and typeName != ''">type_name,</if> <if test="typeName != null and typeName != ''">type_name,</if>
<if test="typeState != null and typeState != ''">type_state,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="typeNo != null and typeNo != ''">#{typeNo},</if> <if test="typeNo != null and typeNo != ''">#{typeNo},</if>
<if test="typeName != null and typeName != ''">#{typeName},</if> <if test="typeName != null and typeName != ''">#{typeName},</if>
<if test="typeState != null and typeState != ''">#{typeState},</if>
</trim> </trim>
</insert> </insert>
@ -45,6 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="typeNo != null and typeNo != ''">type_no = #{typeNo},</if> <if test="typeNo != null and typeNo != ''">type_no = #{typeNo},</if>
<if test="typeName != null and typeName != ''">type_name = #{typeName},</if> <if test="typeName != null and typeName != ''">type_name = #{typeName},</if>
<if test="typeState != null and typeState != ''">type_state = #{typeState},</if>
</trim> </trim>
where type_id = #{typeId} where type_id = #{typeId}
</update> </update>

View File

@ -17,6 +17,16 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="状态" prop="materialState">
<el-select v-model="queryParams.materialState" placeholder="材料状态" clearable>
<el-option
v-for="dict in dict.type.yl_material_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@ -76,6 +86,11 @@
<el-table-column label="编码" align="center" prop="materialNo" /> <el-table-column label="编码" align="center" prop="materialNo" />
<el-table-column label="名称" align="center" prop="materialName" /> <el-table-column label="名称" align="center" prop="materialName" />
<el-table-column label="单价" align="center" prop="materialPrice" /> <el-table-column label="单价" align="center" prop="materialPrice" />
<el-table-column prop="materialState" label="状态" width="80">
<template slot-scope="scope">
<dict-tag :options="dict.type.yl_material_state" :value="scope.row.materialState"/>
</template>
</el-table-column>
<el-table-column label="操作" width="250" align="center"> <el-table-column label="操作" width="250" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -116,6 +131,15 @@
<el-form-item label="单价" prop="materialPrice"> <el-form-item label="单价" prop="materialPrice">
<el-input v-model="form.materialPrice" placeholder="请输入单价" /> <el-input v-model="form.materialPrice" placeholder="请输入单价" />
</el-form-item> </el-form-item>
<el-form-item prop="materialState" label="停用状态" label-width="100px">
<el-radio-group v-model="form.materialState">
<el-radio
v-for="dict in dict.type.yl_material_state"
:key="dict.value"
:label="dict.value"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
@ -130,6 +154,7 @@ import { listClMaterial, getClMaterial, delClMaterial, addClMaterial, updateClMa
export default { export default {
name: "ClMaterial", name: "ClMaterial",
dicts: ['yl_material_state'],
data() { data() {
return { return {
// //
@ -158,6 +183,7 @@ export default {
pageSize: 10, pageSize: 10,
materialNo: null, materialNo: null,
materialName: null, materialName: null,
materialState: null,
}, },
// //
form: {}, form: {},
@ -204,7 +230,8 @@ export default {
materialId: null, materialId: null,
materialNo: null, materialNo: null,
materialName: null, materialName: null,
materialPrice: null materialPrice: null,
materialState: "0"
}; };
this.resetForm("form"); this.resetForm("form");
}, },

View File

@ -333,6 +333,7 @@ export default {
// //
getMaterialType(){ getMaterialType(){
this.queryParams.typeState='0';//
listMaterialType(this.queryParams).then(response => { listMaterialType(this.queryParams).then(response => {
this.cTypeList = response.cTypeList; this.cTypeList = response.cTypeList;

View File

@ -25,6 +25,16 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="状态" prop="materialState">
<el-select v-model="queryParams.materialState" placeholder="材料状态" clearable>
<el-option
v-for="dict in dict.type.material_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@ -86,6 +96,11 @@
<el-table-column label="规格" align="center" prop="materialGuig" /> <el-table-column label="规格" align="center" prop="materialGuig" />
<el-table-column label="电压" align="center" prop="materialDiany" /> <el-table-column label="电压" align="center" prop="materialDiany" />
<el-table-column label="单位" align="center" prop="materialDw" /> <el-table-column label="单位" align="center" prop="materialDw" />
<el-table-column prop="materialState" label="状态" width="80">
<template slot-scope="scope">
<dict-tag :options="dict.type.material_state" :value="scope.row.materialState"/>
</template>
</el-table-column>
<el-table-column label="操作" width="250" align="center"> <el-table-column label="操作" width="250" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -130,6 +145,17 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item prop="materialState" label="停用状态" label-width="100px">
<el-radio-group v-model="form.materialState">
<el-radio
v-for="dict in dict.type.material_state"
:key="dict.value"
:label="dict.value"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
@ -227,6 +253,7 @@ import { numAdd,numSub,numMulti,numDiv } from "@/utils/operation";
export default { export default {
name: "Material", name: "Material",
dicts: ['material_state'],
data() { data() {
return { return {
// //
@ -322,6 +349,7 @@ export default {
// //
getMaterialType(){ getMaterialType(){
this.queryParams.typeState='0';//
listMaterialType(this.queryParams).then(response => { listMaterialType(this.queryParams).then(response => {
this.cTypeList = response.cTypeList; this.cTypeList = response.cTypeList;
/* /*

View File

@ -17,6 +17,16 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="状态" prop="typeState">
<el-select v-model="queryParams.typeState" placeholder="类别状态" clearable>
<el-option
v-for="dict in dict.type.material_type_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@ -75,6 +85,11 @@
<el-table-column label="id" align="center" prop="typeId" v-if="false"/> <el-table-column label="id" align="center" prop="typeId" v-if="false"/>
<el-table-column label="编码" align="center" prop="typeNo" /> <el-table-column label="编码" align="center" prop="typeNo" />
<el-table-column label="名称" align="center" prop="typeName" /> <el-table-column label="名称" align="center" prop="typeName" />
<el-table-column prop="typeState" label="状态" width="80">
<template slot-scope="scope">
<dict-tag :options="dict.type.material_type_state" :value="scope.row.typeState"/>
</template>
</el-table-column>
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -112,6 +127,15 @@
<el-form-item label="名称" prop="typeName"> <el-form-item label="名称" prop="typeName">
<el-input v-model="form.typeName" placeholder="请输入名称" /> <el-input v-model="form.typeName" placeholder="请输入名称" />
</el-form-item> </el-form-item>
<el-form-item prop="typeState" label="停用状态" label-width="100px">
<el-radio-group v-model="form.typeState">
<el-radio
v-for="dict in dict.type.material_type_state"
:key="dict.value"
:label="dict.value"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
@ -126,6 +150,7 @@ import { listMaterialType, getMaterialType, delMaterialType, addMaterialType, up
export default { export default {
name: "MaterialType", name: "MaterialType",
dicts: ['material_type_state'],
data() { data() {
return { return {
// //
@ -154,6 +179,7 @@ export default {
pageSize: 10, pageSize: 10,
typeNo: null, typeNo: null,
typeName: null, typeName: null,
typeState:null
}, },
// //
form: {}, form: {},