From e9c48bd7356462ba9257540b130a47a65ad1861d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 26 八月 2021 17:17:11 +0800 Subject: [PATCH] 2021-08-26 --- src/templates/zshare/verifycard/billcodeform/index.jsx | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/templates/zshare/verifycard/billcodeform/index.jsx b/src/templates/zshare/verifycard/billcodeform/index.jsx index bdf18fc..a885185 100644 --- a/src/templates/zshare/verifycard/billcodeform/index.jsx +++ b/src/templates/zshare/verifycard/billcodeform/index.jsx @@ -30,23 +30,24 @@ UNSAFE_componentWillMount() { let _modularDetail = [] let _billFields = [] + if (this.props.modular.length > 0) { _modularDetail = this.props.modularDetail.filter(item => item.BID === this.props.modular[0].ID) } let fieldMap = new Map() this.props.fields.forEach(_field => { - if (_field.type === 'text' && !fieldMap.has(_field.field)) { + if (_field.type === 'text' && !fieldMap.has(_field.field.toLowerCase())) { _billFields.push(_field) - fieldMap.set(_field.field, true) + fieldMap.set(_field.field.toLowerCase(), true) } }) if (this.props.btn.Ot !== 'notRequired') { this.props.columns.forEach(_field => { - if (_field.type === 'text' && !fieldMap.has(_field.field)) { + if (_field.type === 'text' && !fieldMap.has(_field.field.toLowerCase())) { _billFields.push(_field) - fieldMap.set(_field.field, true) + fieldMap.set(_field.field.toLowerCase(), true) } }) } -- Gitblit v1.8.0