This commit is contained in:
wangsongsole 2022-08-12 18:34:45 +08:00
parent 1ade133568
commit c0d4cf3bfb
1 changed files with 4 additions and 5 deletions

View File

@ -125,7 +125,7 @@ export default class acclist extends React.Component {
newGoldLoading: false, newGoldLoading: false,
product_title: '新建商品', product_title: '新建商品',
addIsType: '', addIsType: '',
keyCodeId:'',//key批次ID keyCodeId: '' //key批次ID
} }
} }
@ -388,7 +388,7 @@ export default class acclist extends React.Component {
default: default:
return return
} }
this.setState({ drawerVisible: false }) this.setState({ drawerVisible: false, rowIndex: -1 })
this.state.codeInfo = { this.state.codeInfo = {
//数据模型不可少 //数据模型不可少
code_name: '', code_name: '',
@ -538,7 +538,7 @@ export default class acclist extends React.Component {
return newObj return newObj
}) })
} }
let newArray = deWeightThree(temp.concat(concatData), 'only') let newArray = deWeightThree(temp.concat(concatData))
//select数据 //select数据
let arr = [] let arr = []
@ -635,7 +635,6 @@ export default class acclist extends React.Component {
return obj return obj
}) })
temp.product = arr temp.product = arr
if (this.state.rowIndex > -1) { if (this.state.rowIndex > -1) {
this.state.distdata[this.state.rowIndex] = temp this.state.distdata[this.state.rowIndex] = temp
this.setState({ distdata: this.state.distdata }) this.setState({ distdata: this.state.distdata })
@ -745,7 +744,7 @@ export default class acclist extends React.Component {
this.setState({ audit_visible: false }) this.setState({ audit_visible: false })
let id = sessionStorage.getItem('key_plan_id') let id = sessionStorage.getItem('key_plan_id')
data.copy_key_batch_id=this.state.keyCodeId; data.copy_key_batch_id = this.state.keyCodeId
addKeysBatchInfo(id, data).then((res) => { addKeysBatchInfo(id, data).then((res) => {
handelResponse( handelResponse(
res, res,