fix: 修复创建

This commit is contained in:
zhangds 2024-05-13 16:22:30 +08:00
parent 4f46ed9b5e
commit 214f64ed57
3 changed files with 7 additions and 4 deletions

View File

@ -856,7 +856,9 @@ export default class addKnockGold extends Component {
/* 渠道方法 */
onHandleChangeChannel(value) {
this.refs.voucherBatchRef.setSubjectToggle()
if (this.refs.voucherBatchRef) {
this.refs.voucherBatchRef.setSubjectToggle()
}
this.onHandleChange(value, "channel")
if (value == 1) {
this.onHandleChange(defaultInstructionZfb, "instruction")

View File

@ -198,7 +198,6 @@ const VoucherBatch = forwardRef((props, ref) => {
return new_data
}
//
const checkDuplicates = (arr, key) => {
let seenKeys = new Set()

View File

@ -683,6 +683,8 @@ export default class orderList extends React.Component {
}
voucherBatchForEl(data) {
console.log("data 1 =>", data)
return data.channel_activity_id
let el = data.map((item) => item.channel_activity_id)
return el.join(" , ")
}
@ -911,7 +913,7 @@ export default class orderList extends React.Component {
}
if (com == "voucher_batch") {
return <>{this.voucherBatchForEl(rowData.voucher_batch)}</>
return <>{this.voucherBatchForEl(rowData)}</>
}
if (com == "order_type") {
@ -1171,7 +1173,7 @@ export default class orderList extends React.Component {
}
if (com == "voucher_batch") {
return <>{this.voucherBatchForEl(rowData.voucher_batch)}</>
return <>{this.voucherBatchForEl(rowData)}</>
}
if (com == "operation") {