|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
<span class="iconfont icon-new_document"></span>
|
|
|
|
|
添加
|
|
|
|
|
</a-button>
|
|
|
|
|
<!-- <a-popconfirm
|
|
|
|
|
<a-popconfirm
|
|
|
|
|
title="确定删除当前选中数据?"
|
|
|
|
|
ok-text="是"
|
|
|
|
|
cancel-text="否"
|
|
|
|
@ -21,7 +21,7 @@
|
|
|
|
|
<span class="iconfont icon-shanchu21"></span>
|
|
|
|
|
删除
|
|
|
|
|
</a-button>
|
|
|
|
|
</a-popconfirm> -->
|
|
|
|
|
</a-popconfirm>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<a-spin :spinning="loading">
|
|
|
|
@ -56,7 +56,7 @@
|
|
|
|
|
} from 'vue'
|
|
|
|
|
// 下拉框数据接口
|
|
|
|
|
import { GetFeeCodeSelectList, GetFeeCurrencySelectList } from '/@/api/common'
|
|
|
|
|
import { getColumns } from './api'
|
|
|
|
|
import { getColumns, DeleteDetails } from './api'
|
|
|
|
|
// import { GetFeeTemplateDetailList, BatchDelFeeTemplateDetail } from '../api'
|
|
|
|
|
// 引入计费标准字典
|
|
|
|
|
import { feeUnitDict } from '/@/hooks/dict/index'
|
|
|
|
@ -796,23 +796,28 @@
|
|
|
|
|
)
|
|
|
|
|
// 删除行
|
|
|
|
|
const deleteRow = async () => {
|
|
|
|
|
// const ids = []
|
|
|
|
|
// list.value.forEach((item: any, index) => {
|
|
|
|
|
// if (item.selected) {
|
|
|
|
|
// list.value.splice(index, 1)
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
const ids = []
|
|
|
|
|
list.value.forEach((item: any, index) => {
|
|
|
|
|
if (item.selected) {
|
|
|
|
|
list.value.splice(index, 1)
|
|
|
|
|
ids.push(item.id)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
// if (ids.length) {
|
|
|
|
|
// loading.value = true
|
|
|
|
|
// const data = await BatchDelFeeTemplateDetail({ ids })
|
|
|
|
|
// loading.value = false
|
|
|
|
|
// createMessage.success(data.message)
|
|
|
|
|
// }
|
|
|
|
|
// const res = list.value.filter((item) => {
|
|
|
|
|
// return !item.selected
|
|
|
|
|
// })
|
|
|
|
|
// list.value = res
|
|
|
|
|
// hotTb.value.hotInstance.loadData(res)
|
|
|
|
|
if (ids.length) {
|
|
|
|
|
loading.value = true
|
|
|
|
|
const data = await DeleteDetails({ ids })
|
|
|
|
|
loading.value = false
|
|
|
|
|
createMessage.success(data.message)
|
|
|
|
|
}
|
|
|
|
|
const res = list.value.filter((item) => {
|
|
|
|
|
return !item.selected
|
|
|
|
|
})
|
|
|
|
|
list.value = res
|
|
|
|
|
hotTb.value.hotInstance.loadData(res)
|
|
|
|
|
}
|
|
|
|
|
// 如果有id通过id查询表格
|
|
|
|
|
// watch(
|
|
|
|
|