fix: 修复创建
This commit is contained in:
parent
4f46ed9b5e
commit
214f64ed57
|
@ -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")
|
||||
|
|
|
@ -198,7 +198,6 @@ const VoucherBatch = forwardRef((props, ref) => {
|
|||
|
||||
return new_data
|
||||
}
|
||||
|
||||
// 判断是否有重复批次
|
||||
const checkDuplicates = (arr, key) => {
|
||||
let seenKeys = new Set()
|
||||
|
|
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue