Commit d8da3d03 authored by rainbowmorel@163.com's avatar rainbowmorel@163.com

文案

parent 5676bae6
......@@ -39,13 +39,13 @@ export function HarvestMaterialInput(props: {
}
// 存在小数点 且 字符串必须大于 . +1 才执行
if (targetVal.includes('.') && targetVal.length != targetVal.indexOf('.')) {
const reg = new RegExp("((^[1-9][0-9]{0,8})+(.?[0-9]{1,3})?$)")
const reg = new RegExp("((^[0-9][0-9]{0,8})+(.?[0-9]{1,3})?$)")
const test = reg.test(targetVal)
if (!test) {
return;
}
} else {
const reg = new RegExp("((^[1-9][0-9]{0,8})+(.?[0-9]{1,3})?$)")
const reg = new RegExp("((^[0-9][0-9]{0,8})+(.?[0-9]{1,3})?$)")
const test = reg.test(targetVal)
if (!test) {
return;
......
......@@ -261,16 +261,25 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
</Radio.Group>
</FormItem>
<FormItem hidden={isLogistics} label={LogisticsCarNoLabel} name="executorVO.carNumbers">
<Input maxLength={20} />
<FormItem
rules={[
{ max: 20, message: "最长20个字符" }
]}
hidden={isLogistics} label={LogisticsCarNoLabel} name="executorVO.carNumbers">
<Input />
</FormItem>
<FormItem hidden={isLogistics} label={LogisticsCompanyLabel} name="logisticsCompanyInt">
<LogisticsCompanyMerchantsSelect />
</FormItem>
<FormItem
rules={[
{ max: 20, message: "最长20个字符" }
]}
hidden={isLogistics}
label={LogisticsNoLabel} name="logisticsNo">
<Input maxLength={20} />
<Input />
</FormItem>
</ContentBox>
......
......@@ -77,7 +77,7 @@ const DeliveryNoteManageDetails: React.FC = () => {
{info?.buyerMemberName}
</ListInfoItem>
<ListInfoItem label='货单摘要'>
<ListInfoItem label='货单摘要'>
{info?.digest}
</ListInfoItem>
......
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