diff --git a/mes-ui/mes-ui-admin-vue3/src/views/heli/partpurchase/index.vue b/mes-ui/mes-ui-admin-vue3/src/views/heli/partpurchase/index.vue index 7cbb2d7a..8c368db9 100644 --- a/mes-ui/mes-ui-admin-vue3/src/views/heli/partpurchase/index.vue +++ b/mes-ui/mes-ui-admin-vue3/src/views/heli/partpurchase/index.vue @@ -165,6 +165,7 @@ type="number" placeholder="两位小数" @change="changeUnitPrice(row)" + @input="changeUnitPrice(row)" /> @@ -179,7 +180,7 @@ type="number" @change="changeEstimatedPrices(row)" placeholder="两位小数" - /> + @input="changeEstimatedPrices(row)" /> @@ -331,7 +332,7 @@ const handleDelete = async (id: number) => { } catch {} } const skip = async () => { - const list = multipleTable.value|| []; // 安全获取数据 + const list = multipleSelection.value || []; // 安全获取数据 // 1. 检查空数据 if (!list || list.length==null) { router.push({ path: '/production/productiondispatch' }); @@ -562,6 +563,9 @@ const tableRowClassName = ({ row }) => { return row.isSelected ? 'selected-row' : ''; } const handleSelectionChange = (val) => { + // 更新 multipleSelection + multipleSelection.value = val; + // 重置所有行的 isSelected 和 chkboxEnable 状态 list.value.forEach(row => { row.isSelected = false; @@ -638,7 +642,7 @@ const singleSubmissions=()=>{ submitForm(); } const updateDuEmp= async ()=>{ - const list = multipleTable.value|| []; // 安全获取数据 + const list = multipleSelection.value || []; // 安全获取数据 // 1. 检查空数据 if (!list || list.length==null) { message.error("提交明细不能为空,请确认"); @@ -665,7 +669,7 @@ const updateDuEmp= async ()=>{ const submitForm = async () => { try { - const list = multipleTable.value|| []; // 安全获取数据 + const list = multipleSelection.value || []; // 安全获取数据 // 1. 检查空数据 if (!list || list.length==null) { message.error("提交明细不能为空,请确认");