|
|
@@ -40,33 +40,12 @@
|
|
|
¥{{ scope.row.available_amount?.toFixed(2) || "0.00" }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!-- 操作栏暂时隐藏
|
|
|
- <el-table-column label="操作" width="160" align="center" fixed="right">
|
|
|
- <template #default="scope">
|
|
|
- <el-button type="primary" size="small" link @click="handleAdjust(scope.row)">
|
|
|
- 调整金额
|
|
|
- </el-button>
|
|
|
- <el-button type="info" size="small" link @click="handleChanges(scope.row)">
|
|
|
- 变更记录
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- -->
|
|
|
</el-table>
|
|
|
|
|
|
<template #footer>
|
|
|
<el-button @click="visible = false">关闭</el-button>
|
|
|
</template>
|
|
|
|
|
|
- <AdjustAmountDialog
|
|
|
- v-model:visible="adjustVisible"
|
|
|
- :quota-data="currentQuotaData"
|
|
|
- @success="loadRecords"
|
|
|
- />
|
|
|
- <ChangeHistoryDialog
|
|
|
- v-model:visible="changesVisible"
|
|
|
- :quota-id="currentQuotaId"
|
|
|
- />
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
|
|
|
@@ -75,8 +54,6 @@ import { ref, watch } from "vue";
|
|
|
import QuotaAPI, { STATUS_TAG_TYPE, STATUS_LABEL } from "@/api/module_payment/quota";
|
|
|
import EmployeeAPI from "@/api/module_payment/employee";
|
|
|
import { useEnterpriseStore } from "@/store/modules/enterprise.store";
|
|
|
-import AdjustAmountDialog from "./AdjustAmountDialog.vue";
|
|
|
-import ChangeHistoryDialog from "./ChangeHistoryDialog.vue";
|
|
|
|
|
|
interface Props {
|
|
|
visible: boolean;
|
|
|
@@ -92,11 +69,6 @@ const visible = ref(false);
|
|
|
const loading = ref(false);
|
|
|
const records = ref<any[]>([]);
|
|
|
const employeeInfo = ref<any>(null);
|
|
|
-const adjustVisible = ref(false);
|
|
|
-const changesVisible = ref(false);
|
|
|
-const currentQuotaData = ref<any>({});
|
|
|
-const currentQuotaId = ref("");
|
|
|
-
|
|
|
watch(() => props.visible, async (v) => {
|
|
|
visible.value = v;
|
|
|
if (v && props.employeeId) {
|
|
|
@@ -151,17 +123,4 @@ function formatTime(t?: string) {
|
|
|
return t.substring(0, 16);
|
|
|
}
|
|
|
|
|
|
-function handleAdjust(row: any) {
|
|
|
- currentQuotaData.value = {
|
|
|
- quota_id: row.quota_id,
|
|
|
- available_amount: row.available_amount,
|
|
|
- total_amount: row.total_amount,
|
|
|
- };
|
|
|
- adjustVisible.value = true;
|
|
|
-}
|
|
|
-
|
|
|
-function handleChanges(row: any) {
|
|
|
- currentQuotaId.value = row.quota_id;
|
|
|
- changesVisible.value = true;
|
|
|
-}
|
|
|
</script>
|