Browse Source

修改菜品排序

undefined
gwbvipvip 1 year ago
parent
commit
490a6baa23
2 changed files with 5 additions and 1 deletions
  1. +4
    -1
      src/pages/goods/goods-type-manage/components/CreateForm.jsx
  2. +1
    -0
      src/pages/goods/goods-type-manage/index.jsx

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

@@ -1,5 +1,5 @@
import React from 'react';
import { Modal, Form, Input, Button, Select } from 'antd';
import { Modal, Form, Input, Button, Select,InputNumber } from 'antd';

const CreateForm = (props) => {
const { Option, OptGroup } = Select;
@@ -28,6 +28,9 @@ const CreateForm = (props) => {
<Form.Item name="goodsType_Name" label="商品类型名称" rules={[{ required: true,max:50 }]}>
<Input />
</Form.Item>
<Form.Item name="goodsType_Sort" label="排序" >
<InputNumber />
</Form.Item>
<Form.Item
name="status"
label="状态"


+ 1
- 0
src/pages/goods/goods-type-manage/index.jsx View File

@@ -39,6 +39,7 @@ const handleUpdate = async (fields) => {
await updateGoodsType({
id: fields.id,
goodsType_Name: fields.goodsType_Name,
goodsType_Sort:fields.goodsType_Sort,
remark: fields.remark,

notifyType: fields.notifyType,


Loading…
Cancel
Save