浏览代码

修改28号bug

dev
txb 1年前
父节点
当前提交
60e4ce2b9b
共有 2 个文件被更改,包括 13 次插入21 次删除
  1. +9
    -15
      src/pages/sys/companyApply/components/CreateForm.jsx
  2. +4
    -6
      src/pages/sys/companyApply/index.jsx

+ 9
- 15
src/pages/sys/companyApply/components/CreateForm.jsx 查看文件

@@ -26,33 +26,27 @@ const CreateForm = (props) => {
<Input />
</Form.Item>
<Form.Item name="companyName" label="企业名称" rules={[{ required: true, max: 30 }]}>
<Input placeholder="请输入企业名称" />
<Input placeholder="请输入企业名称" disabled={true} />
</Form.Item>
<Form.Item name="userName" label="联系人" rules={[{ required: true, max: 20 }]}>
<Input placeholder="请输入联系人" />
<Input placeholder="请输入联系人" disabled={true} />
</Form.Item>

<Form.Item name="phone" label="电话" rules={[{ max: 20,pattern: /0?(13|14|15|18|17)[0-9]{9}$/,
message: '手机号格式不正确' }]}>
<Input placeholder="请输入电话" />
<Form.Item name="phone" label="电话" rules={[{
max: 20, pattern: /0?(13|14|15|18|17)[0-9]{9}$/,
message: '手机号格式不正确'
}]}>
<Input placeholder="请输入电话" disabled={true} />
</Form.Item>
{/* <Form.Item name="StoreNum" label="结算周期" rules={[{ required: true}]}>
<InputNumber step={1} min={1} max={100} precision={0} />
</Form.Item> */}
<Form.Item name="TMCDeviceNum" label="味魔方设备数量" rules={[{ required: true}]}>
<InputNumber step={1} min={1} max={100} precision={10} />
<Form.Item name="TMCDeviceNum" label="设备数量" rules={[{ required: true }]}>
<InputNumber step={1} min={1} max={1000} precision={10} />
</Form.Item>
{/* <Form.Item name="UserNum" label="结算周期" rules={[{ required: true}]}>
<InputNumber step={1} min={1} max={100} precision={0} />
</Form.Item> */}
<Form.Item label={'审核状态'} name="status" rules={[{ required: true }]}>
<Select placeholder="请选择审核状态">
<OptGroup>
<Select.Option value={0}>拒绝</Select.Option>
<Select.Option value={1}>通过</Select.Option>
</OptGroup>
</Select>
</Form.Item>
<Form.Item>
<Button type="primary" htmlType="submit">
审核通过


+ 4
- 6
src/pages/sys/companyApply/index.jsx 查看文件

@@ -105,8 +105,8 @@ const companyManage = () => {
title: '操作',
dataIndex: 'option',
valueType: 'option',
render: (_, record) => {
var template = [
render: (_, record) => [
record.status === 0 && (
<a
onClick={() => {
handleModalVisible(true);
@@ -115,10 +115,8 @@ const companyManage = () => {
>
{' '}
审核
</a>,
];
return template;
},
</a>
)]
},
];
return (


正在加载...
取消
保存