This commit is contained in:
qsh
2024-06-19 17:16:34 +08:00
parent 8df1f7d25a
commit 37818cb1e6
10 changed files with 47 additions and 14 deletions

View File

@@ -121,7 +121,7 @@
:label="item.label"
min-width="120px"
/>
<el-table-column label="操作" width="200px" fixed="right">
<el-table-column label="操作" width="240px" fixed="right">
<template #default="scope">
<el-button
type="primary"
@@ -158,12 +158,22 @@
class="mr-10px"
link
style="padding: 0; margin-left: 0"
v-if="scope.row.isPayoff == '未结清'"
v-if="scope.row.isPayoff == false"
v-hasPermi="['clue:order:return']"
@click="feeBack(scope.row)"
>
回款
</el-button>
<el-button
type="primary"
class="mr-10px"
link
style="padding: 0; margin-left: 0"
v-hasPermi="['clue:pool:enroll']"
@click="cancelDeal(scope.row)"
>
取消登记
</el-button>
</template>
</el-table-column>
</SSTable>
@@ -191,6 +201,7 @@ import { removeNullField } from '@/utils'
import { useAppStore } from '@/store/modules/app'
const appStore = useAppStore()
const message = useMessage() // 消息弹窗
const allSchemas = ref({})
@@ -297,6 +308,21 @@ function feeBack(row) {
feedbackDialog.value.open(row.signId)
}
// 取消登记
async function cancelDeal(row) {
try {
// 二次确认
await message.confirm('是否确认取消登记该线索?')
// 发起删除
await SignApi.cancelDeal(row.signId)
message.success('取消登记成功!')
// 刷新列表
await getTableList()
} catch (err) {
console.log(err)
}
}
function changeSchool() {
searchForm.value.signPlace = undefined
searchForm.value.signClass = undefined