From bc07a195b50f2866de49f138982f9968bc4e282c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Thu, 25 Nov 2021 19:58:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/add/add.js | 5 ++++- src/pages/exchangecode/product/add.js | 1 + src/pages/plan/product/add.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/exchangecode/add/add.js b/src/pages/exchangecode/add/add.js index e5a299b1..c999dcff 100644 --- a/src/pages/exchangecode/add/add.js +++ b/src/pages/exchangecode/add/add.js @@ -31,7 +31,7 @@ export default class acclist extends React.Component{ model:{ //数据模型不可少 style:1, quantity:"", - + plan_id:"", allow_repetition:1, allow_loss:1, merge_stock:1, @@ -560,6 +560,9 @@ export default class acclist extends React.Component{
+ +
{this.state.model.plan_id}
+
{ this.onStyleChange(e)} } value={this.state.model.style} disabled={this.state.isEdit} > 串码 diff --git a/src/pages/exchangecode/product/add.js b/src/pages/exchangecode/product/add.js index 2ba9bf6a..303ae51d 100644 --- a/src/pages/exchangecode/product/add.js +++ b/src/pages/exchangecode/product/add.js @@ -192,6 +192,7 @@ export default class adduserinfo extends React.Component{ ], contract_price:[ { type: "required", message: "请输入合同价"}, + { type: "regExp", message: "请输入4位小数",reg:"^[0-9]+(.[0-9]{1,4})?$"}, ], product_name:[ { type: "required", message: "请输入商品名称"}, diff --git a/src/pages/plan/product/add.js b/src/pages/plan/product/add.js index e2a12d4a..d3da001f 100644 --- a/src/pages/plan/product/add.js +++ b/src/pages/plan/product/add.js @@ -187,7 +187,7 @@ export default class adduserinfo extends React.Component{ ], contract_price:[ { type: "required", message: "请输入合同价"}, - { type: "regExp", message: "请输入数字",reg:"^[0-9]+(.[0-9]{1,3})?$"}, + { type: "regExp", message: "请输入4位小数",reg:"^[0-9]+(.[0-9]{1,4})?$"}, ], product_name:[