lanjianrong 4 년 전
부모
커밋
594e968a37
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/pages/Contract/Content/Income/components/Modal/index.tsx

+ 1 - 1
src/pages/Contract/Content/Income/components/Modal/index.tsx

@@ -317,7 +317,7 @@ const ContractModal: React.FC<iModalCommonProps> = ({ modalObj: { type, visible,
             <Form.Item name="price" label={`${contractType === ContractType.INCOME ? '回款' : '支付'}金额`} rules={[ { required: true, message: `请输入${contractType === ContractType.INCOME ? '回款' : '支付'}金额` }, () => ({
               validator(_, value) {
                 if (value && parseFloat(value) > maxPrice) {
-                  return Promise.reject(`当前金额不能大于${minPrice}`)
+                  return Promise.reject(`当前金额不能大于${maxPrice}`)
                 }
                 return Promise.resolve()
               }