上传
This commit is contained in:
@@ -189,7 +189,7 @@ async function getList() {
|
||||
|
||||
const batchIds = ref([])
|
||||
function handleSelectionChange(val) {
|
||||
batchIds.value = val
|
||||
batchIds.value = val.map((it) => it.id)
|
||||
}
|
||||
|
||||
const batchAuditDialog = ref()
|
||||
|
||||
@@ -90,7 +90,7 @@ const auditSchema = [
|
||||
span: 1
|
||||
},
|
||||
{
|
||||
field: 'checkUserName',
|
||||
field: 'checkUser',
|
||||
label: '审核人',
|
||||
span: 1
|
||||
},
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="是否结清" prop="isPayoff">
|
||||
<el-radio-group v-model="form.isPayoff">
|
||||
<el-radio label="结清"> 结清 </el-radio>
|
||||
<el-radio label="未结清"> 未结清 </el-radio>
|
||||
<el-radio :label="true"> 结清 </el-radio>
|
||||
<el-radio :label="false"> 未结清 </el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注">
|
||||
@@ -69,7 +69,7 @@ function handleAdd() {
|
||||
form.value = {
|
||||
signId: orderId.value,
|
||||
money: undefined,
|
||||
isPayoff: '结清',
|
||||
isPayoff: true,
|
||||
remark: undefined
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ const auditSchema = [
|
||||
span: 1
|
||||
},
|
||||
{
|
||||
field: 'checkUserName',
|
||||
field: 'checkUser',
|
||||
label: '审核人',
|
||||
span: 1
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -188,7 +188,7 @@ async function getList() {
|
||||
|
||||
const batchIds = ref([])
|
||||
function handleSelectionChange(val) {
|
||||
batchIds.value = val
|
||||
batchIds.value = val.map((it) => it.id)
|
||||
}
|
||||
|
||||
const batchAuditDialog = ref()
|
||||
|
||||
Reference in New Issue
Block a user