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