| | |
| | | selectedRows.value = rows; |
| | | dialogVisible.value = true; |
| | | |
| | | // 计算选中行的总数量 |
| | | const totalQuantity = rows.reduce((sum, row) => sum + (Number(row.quantity) || 0), 0); |
| | | |
| | | // 加载用户列表 |
| | | const userListsRes = await userListNoPage(); |
| | | userList.value = userListsRes.data; |
| | |
| | | form.value = { |
| | | checkResult: '', |
| | | testStandardId: '', |
| | | quantity: undefined, |
| | | qualifiedQuantity: undefined, |
| | | unqualifiedQuantity: undefined, |
| | | quantity: totalQuantity, |
| | | qualifiedQuantity: totalQuantity, |
| | | unqualifiedQuantity: 0, |
| | | checkCompany: '', |
| | | checkName: '', |
| | | checkTime: '', |