|
|
@@ -2322,12 +2322,19 @@ const InspectionRecord = async () => {
|
|
|
const dbclSelection = ref('')
|
|
|
//当班产量明细复选框
|
|
|
const dbclmxSelectionChange = (selection, type) => {
|
|
|
- console.log(selection)
|
|
|
- const ids = selection.map(item => {
|
|
|
- return item.UniqId
|
|
|
- })
|
|
|
- console.log(ids.join(','))
|
|
|
- dbclSelection.value = ids.join(',')
|
|
|
+ console.log(selection)
|
|
|
+ if (selection.length > 1) {
|
|
|
+ ElMessage({type: 'warning',message: '您只能选择一条进行删除!'})
|
|
|
+ // 重置选择项
|
|
|
+ dbclSelection.value = ''; // 清空之前的选择
|
|
|
+ selection.splice(0, selection.length); // 清空当前选择数组
|
|
|
+ return false;
|
|
|
+ }else{
|
|
|
+ const ids = selection.map(item => item.UniqId);
|
|
|
+ dbclSelection.value = ids.join(',');
|
|
|
+ console.log(dbclSelection.value)
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//当班产量明细
|