This commit is contained in:
hayu 2026-01-07 11:26:58 +08:00
parent d62a17b0ac
commit 60857e3172
1 changed files with 14 additions and 1 deletions

View File

@ -480,6 +480,11 @@ export default {
//
async handleChangeType(row) {
console.log("xxxxxxxx",row.newTypeId)
//
const selectedOption = row.typeOptions.find(option => option.value === row.newTypeId);
if (selectedOption) {
this.$set(row, 'newTypeName', selectedOption.label);
}
const res = await getPendingOutNumByTypeId(row.newTypeId)
console.log('yyyyyyyyy',res.data)
if(res.code==200){
@ -518,7 +523,15 @@ export default {
return true;
}
// item itemsTemp
itemsTemp.push({'typeId': item.typeId,'parentId':item.parentId, 'num': item.num, 'newTypeId': item.newTypeId});
itemsTemp.push({
'typeId': item.typeId,
'parentId': item.parentId,
'num': item.num,
'newTypeId': item.newTypeId,
'maTypeName': item.maTypeName,
'unitName': item.unitName,
'typeName': item.newTypeName || item.typeName
});
}
});
// 0