From c83a50317baeba1a4771e4d802eee029ed2b7e31 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 23 六月 2020 18:23:43 +0800 Subject: [PATCH] 2020-06-23 --- src/templates/zshare/verifycard/index.jsx | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/templates/zshare/verifycard/index.jsx b/src/templates/zshare/verifycard/index.jsx index a485553..8f9341d 100644 --- a/src/templates/zshare/verifycard/index.jsx +++ b/src/templates/zshare/verifycard/index.jsx @@ -518,7 +518,7 @@ } }) - if (columns && columns.length > 0 && this.props.btnTab.Ot !== 'notRequired') { + if (columns && columns.length > 0 && this.props.btnTab.Ot !== 'notRequired' && this.props.btnTab.Ot !== 'requiredOnce') { columns.forEach(_f => { if (!_f.field || fieldArr.includes(_f.field.toLowerCase())) return @@ -757,7 +757,7 @@ }) } - if (columns && columns.length > 0 && this.props.card.Ot !== 'notRequired') { + if (columns && columns.length > 0 && this.props.card.Ot !== 'notRequired' && this.props.card.Ot !== 'requiredOnce') { columns.forEach(_f => { if (!_f.field || fieldArr.includes(_f.field.toLowerCase())) return @@ -901,7 +901,7 @@ let _select = ['@UserName=\'\'', '@FullName=\'\'', '@ErrorCode=\'\'', '@retmsg=\'\'', '@BillCode=\'\'', '@BVoucher=\'\'', '@FIBVoucherDate=\'\'', '@FiYear=\'\'', '@ModularDetailCode=\'\''] let fieldArr = _usefulfields.map(_f => _f.toLowerCase()) - if (columns && columns.length > 0 && this.props.card.Ot !== 'notRequired') { + if (columns && columns.length > 0 && this.props.card.Ot !== 'notRequired' && this.props.card.Ot !== 'requiredOnce') { columns.forEach(_f => { if (!_f.field || fieldArr.includes(_f.field.toLowerCase())) return @@ -949,7 +949,7 @@ _defaultsql = `update ${this.props.card.sql} set deleted=1,modifydate=getdate(),modifyuserid=@userid@ where ${config.setting.primaryKey}=@ID@;` } else if (this.props.card.sqlType === 'delete') { let _msg = '' - if (columns && columns.length > 0 && this.props.card.Ot !== 'notRequired') { + if (columns && columns.length > 0 && this.props.card.Ot !== 'notRequired' && this.props.card.Ot !== 'requiredOnce') { let _index = 0 columns.forEach(col => { if (col.field && col.Hide !== 'true' && _index < 4) { -- Gitblit v1.8.0