update material 原料最大尺寸字段

This commit is contained in:
lb 2023-05-26 11:29:16 +08:00
parent ef9f36c75d
commit d7f9d0996f

View File

@ -9,6 +9,7 @@ export default function () {
{ width: 90, prop: "code", label: "原料编码" },
{ width: 240, prop: "description", label: "原料描述" },
{ width: 90, prop: "name", label: "原料名称" },
{ width: 120, prop: "maxSize", label: "原料最大尺寸", filter: val => val ?? '-' },
{ width: 90, prop: "typeDictValue", label: "类型", filter: dictFilter("material_category") }, // subcomponent: {/** TODO: create a new component for this option */} },
{ prop: "baseMaterialCode", label: "基础原料编码" },
{ prop: "baseMaterialDescription", label: "基础原料描述" },
@ -147,6 +148,15 @@ export default function () {
elparams: { placeholder: "原料类别" },
// autoDisabled: true
},
{
input: true,
label: "原料最大尺寸",
prop: "maxSize",
rules: [
{ type: "number", message: "请输入正确的数字类型", trigger: "blur", transform: (val) => Number(val) },
],
elparams: { placeholder: "请输入原料最大尺寸" }
},
{
select: true,
label: "基础原料",
@ -156,7 +166,6 @@ export default function () {
fetchData: () => this.$http.get("/pms/baseMaterial/page", { params: { limit: 999, page: 1, key: "" } }),
elparams: { placeholder: "请选择基础原料" },
},
{ input: true, label: "堆积密度(g/cm³)", prop: "density", elparams: { placeholder: "堆积密度" } },
// {
// input: true,
// label: "设备类型",
@ -166,6 +175,7 @@ export default function () {
// },
],
[
{ input: true, label: "堆积密度(g/cm³)", prop: "density", elparams: { placeholder: "请输入堆积密度" } },
{
input: true,
label: "加料下限",
@ -185,7 +195,9 @@ export default function () {
{ type: "number", message: "请输入正确的数字类型", trigger: "blur", transform: (val) => Number(val) },
],
elparams: { placeholder: "请输入加料上限" },
},
}
],
[
{ input: true, label: "备注", prop: "remark", elparams: { placeholder: "请输入备注" } },
// {
// select: true,