|
@@ -348,7 +348,7 @@ $(document).ready(() => {
|
|
|
checkRangeExpr(payNode, text, data) {
|
|
|
if (!payNode) return [false, '数据错误'];
|
|
|
|
|
|
- const num = text ? _.toNumber(text) : 0;
|
|
|
+ const num = text ? _.toNumber(text) || 0 : 0;
|
|
|
let expr = text ? (num ? '' : text) : '';
|
|
|
expr = expr ? $.trim(expr).replace('\t', '').replace('=', '').toLowerCase() : '';
|
|
|
const [valid, msg] = this.checkExprValid(expr, ['bqwc', 'ybbqwc', 'bqht', 'bqbg', 'bqyf']);
|
|
@@ -378,7 +378,7 @@ $(document).ready(() => {
|
|
|
checkStartExpr(payNode, text, data) {
|
|
|
if (!payNode) return [false, '数据错误'];
|
|
|
|
|
|
- const num = text ? _.toNumber(text) : 0;
|
|
|
+ const num = text ? _.toNumber(text) || 0 : 0;
|
|
|
let expr = text ? (num ? '' : text) : '';
|
|
|
expr = expr ? $.trim(expr).replace('\t', '').replace('=', '').toLowerCase() : '';
|
|
|
const [valid, msg] = this.checkExprValid(expr, ['bqwc', 'ybbqwc', 'bqht', 'bqbg', 'bqyf']);
|