Browse Source

feat(配方排序): 配方自定义排序

配方自定义排序
tags/小炒逻辑变更前
txb 2 years ago
parent
commit
192ec80d81
2 changed files with 10 additions and 1 deletions
  1. +4
    -1
      src/pages/bom/manage/components/CreateForm.jsx
  2. +6
    -0
      src/pages/bom/manage/index.jsx

+ 4
- 1
src/pages/bom/manage/components/CreateForm.jsx View File

@@ -31,7 +31,7 @@ const CreateForm = (props) => {
<Input placeholder="配方名称" />
</Form.Item>
<Form.Item name="bomTypeList" label="配方类型" >
<Select
<Select
mode="multiple"
allowClear >
{props?.bomtype?.map((item, index) => {
@@ -46,6 +46,9 @@ const CreateForm = (props) => {
<Form.Item name="isMain" label="配方类型" >
<Switch checkedChildren="主料" unCheckedChildren="辅料" />
</Form.Item>
<Form.Item name="sort" label="排序" >
<InputNumber placeholder="排序" min={1} />
</Form.Item>
<Form.Item>
<Button type="primary" htmlType="submit">
保存


+ 6
- 0
src/pages/bom/manage/index.jsx View File

@@ -161,6 +161,12 @@ const GoodsBomsManage = (props) => {
hideInForm: true,
hideInSearch: true,
},
{
title: '排序',
dataIndex: 'sort',
hideInForm: true,
hideInSearch: true,
},
{
title: '配方分类',
dataIndex: 'bomTypeList',


Loading…
Cancel
Save