往来核销明细查询条件-币种多个逗号分隔

This commit is contained in:
xyz 2025-03-06 14:19:44 +08:00
parent a947bde88b
commit ec5845c789
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export default function handleQueryClick(state,data,isrefreah){
for(let k in childData){ for(let k in childData){
if(k=='ass'||k=='resourceAss'||k=='account_currency'||k=='cashtype'||k=='pk_org'||k=='isShowUnit' if(k=='ass'||k=='resourceAss'||k=='account_currency'||k=='cashtype'||k=='pk_org'||k=='isShowUnit'
||k=='isControl'||k=='endflag'||k=='isCrossAccountVerify'||k=='isControlItems'){ ||k=='isControl'||k=='endflag'||k=='isCrossAccountVerify'||k=='isControlItems'){
}else if(k=='pk_units'||k=='pk_currency'){ }else if(k=='pk_units'){
if(childData[k].length>0){ if(childData[k].length>0){
if(childData[k][0].value==""){ if(childData[k][0].value==""){
childData[k]=null; childData[k]=null;
@ -49,6 +49,8 @@ export default function handleQueryClick(state,data,isrefreah){
}else{ }else{
childData[k]=null; childData[k]=null;
} }
}else if(k=='pk_currency'){ //币种
childData[k]=childData[k].length>0?childData[k].map(item=>item.value).join(','):null
}else{ }else{
childData[k]=childData[k].value?childData[k].value:null; childData[k]=childData[k].value?childData[k].value:null;
} }