|
@@ -88,7 +88,7 @@ import rowDataInfo from './components/pay/row-data.vue'
|
|
|
import payApi from '~api/project/debit/contract/pay.js'
|
|
|
import { arrToId, getArrValue, getObjValue } from 'js-fast-way'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
-import { delMessageV2 } from '~com/message/index.js'
|
|
|
+import { HcDelMsg } from 'hc-vue3-ui'
|
|
|
|
|
|
const useAppState = useAppStore()
|
|
|
const projectId = ref(useAppState.getProjectId)
|
|
@@ -220,15 +220,22 @@ const finishEditRow = () => {
|
|
|
getTableData()
|
|
|
}
|
|
|
const delRowClick = async (row) => {
|
|
|
- delMessageV2(async (action, instance, done) => {
|
|
|
- if (action === 'confirm') {
|
|
|
- instance.confirmButtonLoading = true
|
|
|
- removeProPay(row.id)
|
|
|
- instance.confirmButtonLoading = false
|
|
|
- done()
|
|
|
- } else {
|
|
|
- done()
|
|
|
- }
|
|
|
+ await HcDelMsg({
|
|
|
+ type: 'delete',
|
|
|
+ title: '确认删除提醒',
|
|
|
+ text: '请谨慎考虑后,确认是否需要删除?',
|
|
|
+ confirmText: '确认删除',
|
|
|
+ cancelText: '取消操作',
|
|
|
+ }, (instance, resolve) => {
|
|
|
+ instance.confirmButtonLoading = true
|
|
|
+ instance.confirmButtonText = 'Loading...'
|
|
|
+ removeProPay(row.id)
|
|
|
+ setTimeout(() => {
|
|
|
+ resolve() //关闭弹窗的回调
|
|
|
+ setTimeout(() => {
|
|
|
+ instance.confirmButtonLoading = false
|
|
|
+ }, 300)
|
|
|
+ }, 300)
|
|
|
})
|
|
|
}
|
|
|
const removeProPay = async (id) => {
|
|
@@ -268,16 +275,23 @@ const addColloect = () => {
|
|
|
selectArr.value = []
|
|
|
}
|
|
|
//删除汇总项
|
|
|
-const delCollectRow = (row) => {
|
|
|
- delMessageV2(async (action, instance, done) => {
|
|
|
- if (action === 'confirm') {
|
|
|
- instance.confirmButtonLoading = true
|
|
|
- removeCollectPay(row.id)
|
|
|
- instance.confirmButtonLoading = false
|
|
|
- done()
|
|
|
- } else {
|
|
|
- done()
|
|
|
- }
|
|
|
+const delCollectRow = async (row) => {
|
|
|
+ await HcDelMsg({
|
|
|
+ type: 'delete',
|
|
|
+ title: '确认删除提醒',
|
|
|
+ text: '请谨慎考虑后,确认是否需要删除?',
|
|
|
+ confirmText: '确认删除',
|
|
|
+ cancelText: '取消操作',
|
|
|
+ }, (instance, resolve) => {
|
|
|
+ instance.confirmButtonLoading = true
|
|
|
+ instance.confirmButtonText = 'Loading...'
|
|
|
+ removeCollectPay(row.id)
|
|
|
+ setTimeout(() => {
|
|
|
+ resolve() //关闭弹窗的回调
|
|
|
+ setTimeout(() => {
|
|
|
+ instance.confirmButtonLoading = false
|
|
|
+ }, 300)
|
|
|
+ }, 300)
|
|
|
})
|
|
|
}
|
|
|
const removeCollectPay = async (id) => {
|