|
@@ -24,9 +24,15 @@
|
|
|
<template v-if="column.dataIndex === 'serial'">
|
|
|
{{ index + 1 }}
|
|
|
</template>
|
|
|
+ <template v-if="column.dataIndex === 'operateType'">
|
|
|
+ {{ $TOOL.dictTypeData('operate_type', record.operateType) }}
|
|
|
+ </template>
|
|
|
+ <template v-if="column.dataIndex === 'dataStatus'">
|
|
|
+ {{ $TOOL.dictTypeData('data_status', record.dataStatus) }}
|
|
|
+ </template>
|
|
|
<template v-if="column.dataIndex === 'action'">
|
|
|
<a-space>
|
|
|
- <a @click="cancelRef.onOpen(record, serviceCustomerId, scAccountId)" v-if="hasPerm('bizServiceCustomerFlowCancel')">取消</a>
|
|
|
+ <a @click="cancelRef.onOpen(record, serviceCustomerId, scAccountId)" v-if="hasPerm('bizServiceCustomerFlowCancel') && record.dataStatus == '0'">取消</a>
|
|
|
</a-space>
|
|
|
</template>
|
|
|
</template>
|
|
@@ -45,14 +51,10 @@
|
|
|
import ConsumeForm from './flowConsumeForm.vue'
|
|
|
import CancelForm from './flowCancelForm.vue'
|
|
|
import bizServiceCustomerFlowApi from '@/api/biz/bizServiceCustomerFlowApi'
|
|
|
- import {ExclamationCircleOutlined} from '@ant-design/icons-vue';
|
|
|
- import {Modal} from 'ant-design-vue';
|
|
|
- import {createVNode} from 'vue';
|
|
|
|
|
|
- const submitLoading = ref(false)
|
|
|
- const toolConfig = { refresh: true, height: false, columnSetting: false, striped: false }
|
|
|
// 默认是关闭状态
|
|
|
const visible = ref(false)
|
|
|
+ const emit = defineEmits({ successful: null })
|
|
|
const searchFormState = ref({})
|
|
|
const tableRef = ref()
|
|
|
const rechargeFormRef = ref()
|
|
@@ -78,19 +80,19 @@
|
|
|
},
|
|
|
{
|
|
|
title: '操作前余额',
|
|
|
- width: 150,
|
|
|
+ width: 130,
|
|
|
dataIndex: 'operateAmountBegin',
|
|
|
align:'center'
|
|
|
},
|
|
|
{
|
|
|
title: '操作金额',
|
|
|
- width: 150,
|
|
|
+ width: 130,
|
|
|
dataIndex: 'operateAmount',
|
|
|
align:'center'
|
|
|
},
|
|
|
{
|
|
|
title: '操作后余额',
|
|
|
- width: 150,
|
|
|
+ width: 130,
|
|
|
dataIndex: 'operateAmountAfter',
|
|
|
align:'center'
|
|
|
},
|
|
@@ -100,6 +102,12 @@
|
|
|
dataIndex: 'createTime',
|
|
|
align: 'center'
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '状态',
|
|
|
+ width: 80,
|
|
|
+ dataIndex: 'dataStatus',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
]
|
|
|
// 操作栏通过权限判断是否显示
|
|
|
if (hasPerm(['bizServiceCustomerFlowCancel'])) {
|
|
@@ -130,32 +138,7 @@
|
|
|
// 关闭抽屉
|
|
|
const onClose = () => {
|
|
|
visible.value = false
|
|
|
- }
|
|
|
- // 删除
|
|
|
- const deleteConfig = (record) => {
|
|
|
- Modal.confirm({
|
|
|
- title: '确定删除该数据吗?',
|
|
|
- icon: createVNode(ExclamationCircleOutlined),
|
|
|
- content: '',
|
|
|
- onOk() {
|
|
|
- submitLoading.value = true
|
|
|
- let params = [
|
|
|
- {
|
|
|
- id: record.id
|
|
|
- }
|
|
|
- ]
|
|
|
-
|
|
|
- bizServiceCustomerFlowApi
|
|
|
- .bizServiceCustomerFlowDelete(params)
|
|
|
- .then(() => {
|
|
|
- tableRef.value.refresh(true)
|
|
|
- })
|
|
|
- .finally(() => {
|
|
|
- submitLoading.value = false
|
|
|
- })
|
|
|
- },
|
|
|
- onCancel() {}
|
|
|
- })
|
|
|
+ emit('successful')
|
|
|
}
|
|
|
// 调用这个函数将子组件的一些数据和方法暴露出去
|
|
|
defineExpose({
|