fix: 修复新建兑换码 禁用
This commit is contained in:
parent
2cfc473d23
commit
e7e880e2d5
|
@ -1352,6 +1352,7 @@ export default class acclist extends React.Component {
|
||||||
{this.props.keyType === 1 ? (
|
{this.props.keyType === 1 ? (
|
||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
|
disabled={this.props.isSettlement === 1 && this.state.distdata.length >= 1}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
// 第二步:如果是包码,只能创建一个
|
// 第二步:如果是包码,只能创建一个
|
||||||
if (this.props.isSettlement === 1) {
|
if (this.props.isSettlement === 1) {
|
||||||
|
@ -1368,9 +1369,10 @@ export default class acclist extends React.Component {
|
||||||
<Pop trigger="hover" content="一次性充值多张立减金">
|
<Pop trigger="hover" content="一次性充值多张立减金">
|
||||||
<Button
|
<Button
|
||||||
disabled={
|
disabled={
|
||||||
this.props.isSettlement === 1 &&
|
(this.props.isSettlement === 1 && this.state.distdata.length >= 1) ||
|
||||||
|
(this.props.isSettlement === 1 &&
|
||||||
this.props.settlementData &&
|
this.props.settlementData &&
|
||||||
this.props.settlementData.key === 7
|
this.props.settlementData.key === 7)
|
||||||
}
|
}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
// 第二步:如果是包码,只能创建一个
|
// 第二步:如果是包码,只能创建一个
|
||||||
|
|
|
@ -1218,6 +1218,7 @@ const UseKeyAddEdit = () => {
|
||||||
{state.keyType === 1 ? (
|
{state.keyType === 1 ? (
|
||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
|
disabled={state.isSettlement === 1 && state.distdata.length >= 1}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
if (state.settlement_type > 0) {
|
if (state.settlement_type > 0) {
|
||||||
if (state.distdata.length >= 1) {
|
if (state.distdata.length >= 1) {
|
||||||
|
@ -1233,9 +1234,10 @@ const UseKeyAddEdit = () => {
|
||||||
<Pop trigger="hover" content="一次性充值多张立减金">
|
<Pop trigger="hover" content="一次性充值多张立减金">
|
||||||
<Button
|
<Button
|
||||||
disabled={
|
disabled={
|
||||||
state.isSettlement === 1 &&
|
(state.isSettlement === 1 && state.distdata.length >= 1) ||
|
||||||
|
(state.isSettlement === 1 &&
|
||||||
state.settlementData &&
|
state.settlementData &&
|
||||||
state.settlementData.key === 7
|
state.settlementData.key === 7)
|
||||||
}
|
}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
if (state.settlement_type > 0) {
|
if (state.settlement_type > 0) {
|
||||||
|
|
Loading…
Reference in New Issue