Ver código fonte

设备物料数量

tags/小炒逻辑变更前
gwbvipvip 2 anos atrás
pai
commit
38481a979c
2 arquivos alterados com 13 adições e 4 exclusões
  1. +6
    -3
      src/pages/device/deviceInfo/components/CreateForm.jsx
  2. +7
    -1
      src/pages/device/deviceInfo/index.jsx

+ 6
- 3
src/pages/device/deviceInfo/components/CreateForm.jsx Ver arquivo

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

const CreateForm = (props) => {
const { Option, OptGroup } = Select;
@@ -82,6 +82,9 @@ const CreateForm = (props) => {
) : null
}
</Form.Item>
<Form.Item label={'设备坐标'} name="deviceLoc">
<Input placeholder="104.070734,30.575041" />
</Form.Item>
<Form.Item label={'状态'} name="status" rules={[{ required: true }]}>
<Select placeholder="请选择状态">
<OptGroup>
@@ -90,8 +93,8 @@ const CreateForm = (props) => {
</OptGroup>
</Select>
</Form.Item>
<Form.Item label={'设备坐标'} name="deviceLoc">
<Input placeholder="104.070734,30.575041" />
<Form.Item label={'设备物料数量'} name="materialQuantity">
<InputNumber />
</Form.Item>
<Form.Item label={'设备详细地址'} name="deviceAddr">
<Input placeholder="成都市武侯区桂溪街道环球中心N5-9111C" />


+ 7
- 1
src/pages/device/deviceInfo/index.jsx Ver arquivo

@@ -229,7 +229,13 @@ const GoodsTypeManage = () => {
valueType: 'textarea',
search: false,
},

{
title: '设备物料数量',
dataIndex: 'materialQuantity',
valueType: 'textarea',
search: false,
},
{
title: '设备唯一key',
dataIndex: 'autoKey',


Carregando…
Cancelar
Salvar