Commit 67e599c1 authored by 武广's avatar 武广

feat: 添加取餐点校验

parent e3206489
...@@ -303,7 +303,11 @@ const CustomerInfo = props => { ...@@ -303,7 +303,11 @@ const CustomerInfo = props => {
<Input /> <Input />
</Form.Item> </Form.Item>
{!props.id && ( {!props.id && (
<Form.Item label="企业取餐点" name="pickselfIds"> <Form.Item
label="企业取餐点"
name="pickselfIds"
rules={[{ required: true, type: 'array', message: '请选择企业取餐点!' }]}
>
<Select <Select
options={pickSelfList} options={pickSelfList}
mode="multiple" mode="multiple"
......
...@@ -4,6 +4,7 @@ import { Button } from 'antd'; ...@@ -4,6 +4,7 @@ import { Button } from 'antd';
import { PlusOutlined } from '@ant-design/icons'; import { PlusOutlined } from '@ant-design/icons';
import { customerColumn } from './staticData/index'; import { customerColumn } from './staticData/index';
import CustomerInfo from './components/CustomerInfo'; import CustomerInfo from './components/CustomerInfo';
import utilStyle from '@/utils/utils.less';
import { apiEnterpriseList } from './service'; import { apiEnterpriseList } from './service';
const BusinessCustomer = () => { const BusinessCustomer = () => {
...@@ -28,7 +29,7 @@ const BusinessCustomer = () => { ...@@ -28,7 +29,7 @@ const BusinessCustomer = () => {
}; };
return ( return (
<div> <div className={utilStyle.formPageBox}>
<ProTable <ProTable
actionRef={refTable} actionRef={refTable}
search={{ search={{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment