| 华为云测试区,租户:DWCK0420,作业入口:财务智管家-电汇收款 
 问题:点击抛收款单按钮后,将单身勾选的数据直接调用稳态api生成稳态系统单据,同时刷新表单显示
 
 一站式排查:https://troubleshoot-test.apps.d ... 0074646166%5E353708
 
 
 代码如下:
 
 // 获取表格组件实例
 const tableComponent = component.getComponentById('ef0d62fb-9158-41fe-8327-c85d14e68948'); // 表格组件ID
 
 // 获取表格已选中的行数据
 const selectedRows = tableComponent.getSelectedRows(); // 获取表格已选中的行数据
 
 // 如果没有选中行则不执行后续逻辑
 if (selectedRows.length === 0) {
 return; // 如果没有选中行则不执行后续逻辑
 }
 
 // 准备API调用参数
 const apiParams = {
 actionId: 'esp_t100.oapi.collection.doc1.data.create', // API Action ID
 parameter: selectedRows.map(row => row.value), // 将选中行的数据映射为API参数
 businessUnit: options.context.businessUnit, // 从上下文中获取业务单元
 executeContext: options.context // 执行上下文
 };
 
 // 调用API
 options.utils.espApi.getEspByActionId(apiParams).subscribe(
 (res) => {
 console.log('API调用成功:', res); // API调用成功后的处理逻辑
 },
 (err) => {
 console.error('API调用失败:', err); // API调用失败后的处理逻辑
 }
 );
 
 // 触发变更检测
 component.markForCheck(); // 触发变更检测以更新视图
 
 
 
 |