|
@ -1,6 +1,6 @@ |
|
|
|
|
|
|
|
|
import React, { useState, useEffect } from "react"; |
|
|
import React, { useState, useEffect } from "react"; |
|
|
import { message, Pagination, Table, Select, Input, Button, Popover, Modal, Radio, DatePicker, Transfer } from "antd"; |
|
|
|
|
|
|
|
|
import { message, Pagination, Table, Select, Input, Button, Popover, Modal, Radio, DatePicker, Transfer, Tooltip } from "antd"; |
|
|
import { dictionary } from "@/config/common"; |
|
|
import { dictionary } from "@/config/common"; |
|
|
import { useSessionStorageState } from "ahooks"; |
|
|
import { useSessionStorageState } from "ahooks"; |
|
|
import moment from "moment"; |
|
|
import moment from "moment"; |
|
@ -111,7 +111,16 @@ function TollCollector() { |
|
|
dataIndex: "administer_parking", |
|
|
dataIndex: "administer_parking", |
|
|
key: "administer_parking", |
|
|
key: "administer_parking", |
|
|
align: "center", |
|
|
align: "center", |
|
|
|
|
|
ellipsis: true, |
|
|
render: (text, record, index) => text || "--", |
|
|
render: (text, record, index) => text || "--", |
|
|
|
|
|
// ellipsis: { |
|
|
|
|
|
// showTitle: false, |
|
|
|
|
|
// }, |
|
|
|
|
|
// render: (text, record, index) => ( |
|
|
|
|
|
// <Tooltip placement="bottom" title={text} getPopupContainer={(e) => e.parentNode} zIndex={1000}> |
|
|
|
|
|
// {text || "--"} |
|
|
|
|
|
// </Tooltip> |
|
|
|
|
|
// ) |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: "添加时间", |
|
|
title: "添加时间", |
|
@ -297,6 +306,7 @@ function TollCollector() { |
|
|
} else { |
|
|
} else { |
|
|
let reg = /[`~!@#$%^&*()_\-+=<>?:"{}|,./;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]/g.test(value?.person_number); |
|
|
let reg = /[`~!@#$%^&*()_\-+=<>?:"{}|,./;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]/g.test(value?.person_number); |
|
|
if(reg) return message.error("您输入的员工编号不合法!"); |
|
|
if(reg) return message.error("您输入的员工编号不合法!"); |
|
|
|
|
|
if(value?.person_number?.length > 17 || value?.person_number?.length < 3) return message.error("员工编号只允许输入3~16个字符"); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
// 账号 |
|
|
// 账号 |
|
@ -304,8 +314,8 @@ function TollCollector() { |
|
|
return message.error("请输入账号!"); |
|
|
return message.error("请输入账号!"); |
|
|
} else { |
|
|
} else { |
|
|
let reg = /^(?![0-9]+$)/g.test(value?.account_number); |
|
|
let reg = /^(?![0-9]+$)/g.test(value?.account_number); |
|
|
console.log(reg); |
|
|
|
|
|
if(!reg) return message.error("您输入的账号不合法,不能为纯数字!"); |
|
|
if(!reg) return message.error("您输入的账号不合法,不能为纯数字!"); |
|
|
|
|
|
if(value?.account_number?.length > 17 || value?.account_number?.length < 3) return message.error("账号只允许输入3~16个字符"); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
// 手机号 |
|
|
// 手机号 |
|
|