|
@@ -9,7 +9,11 @@
|
|
|
</hc-body>
|
|
|
</div>
|
|
|
<div :id="`hc_table_card_${uuid}`" class="relative flex-1">
|
|
|
- <HcTable ref="qualTable" :column="tableColumn" :datas="tableData" is-new is-check is-reserve-selection :loading="tableLoading" @selection-change="tableSelection">
|
|
|
+ <HcTable
|
|
|
+ ref="qualTable" :column="tableColumn" :datas="tableData" is-new is-check is-reserve-selection :loading="tableLoading"
|
|
|
+ @select="tableSelect"
|
|
|
+ @selection-change="tableSelection"
|
|
|
+ >
|
|
|
<template #appStatusName="{ row }">
|
|
|
<el-tag
|
|
|
v-if="row.appStatusName"
|
|
@@ -31,7 +35,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { nextTick, ref, watch } from 'vue'
|
|
|
-import { arrUnion, getArrValue, getObjValue, getRandom } from 'js-fast-way'
|
|
|
+import { arrUnion, getArrValue, getObjValue, getRandom, isArrIndex } from 'js-fast-way'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
import unitApi from '~api/project/debit/contract/unit'
|
|
|
import { queryWbsTreeData } from '~api/other'
|
|
@@ -210,9 +214,16 @@ const tableSelection = (rows) => {
|
|
|
tableKeys.value = rows
|
|
|
|
|
|
}
|
|
|
+const cancelcheck = ref([])
|
|
|
+const tableSelect = (rows)=>{
|
|
|
+ const { selection, row } = rows
|
|
|
+ const isDel = isArrIndex( selection, 'selectId', row.selectId)
|
|
|
+ if (!isDel) {
|
|
|
+ cancelcheck.value.push( row.selectId)
|
|
|
+ }
|
|
|
+}
|
|
|
//之前选中的
|
|
|
const saveQualModal = ()=>{
|
|
|
-
|
|
|
qualityMoadal.value = false
|
|
|
emit('close')
|
|
|
let alarr = arrUnion(tableKeys.value, oriCheckRows.value)
|
|
@@ -229,7 +240,7 @@ const saveQualModal = ()=>{
|
|
|
}
|
|
|
}, [])
|
|
|
alarr = uniqueArray
|
|
|
- emit('finish', alarr)
|
|
|
+ emit('finish', alarr, cancelcheck.value)
|
|
|
setStoreValue('checkRows', alarr)
|
|
|
|
|
|
|