|
@@ -37,11 +37,11 @@
|
|
<el-button class="filter-item" style="margin-left:10px;float: left;" type="primary" @click="page()" round>搜索</el-button>
|
|
<el-button class="filter-item" style="margin-left:10px;float: left;" type="primary" @click="page()" round>搜索</el-button>
|
|
<el-button class="filter-item" style="float: left;" round type="success" @click="resetSearch()">重置</el-button>
|
|
<el-button class="filter-item" style="float: left;" round type="success" @click="resetSearch()">重置</el-button>
|
|
<el-button class="filter-item" style="float: left;" round type="warning" @click="fineRefundListExport()">导出</el-button>
|
|
<el-button class="filter-item" style="float: left;" round type="warning" @click="fineRefundListExport()">导出</el-button>
|
|
- <PermissionButton menu-code="_views_finance_fine_refund_returned_batch" class="filter-item" style="float: left;" round type="danger" @click="batchUpdateStatus('RETURNED')" />
|
|
|
|
- <PermissionButton menu-code="_views_finance_fine_refund_ignore_batch" class="filter-item" style="float: left;" round type="danger" @click="batchUpdateStatus('IGNORE')" />
|
|
|
|
|
|
+ <PermissionButton menu-code="_views_finance_fine_refund_returned_batch" class="filter-item" style="float: left;" round type="danger" @click="batchUpdateStatus('RETURNED')" />
|
|
|
|
+ <PermissionButton menu-code="_views_finance_fine_refund_ignore_batch" class="filter-item" style="float: left;" round type="danger" @click="batchUpdateStatus('IGNORE')" />
|
|
</template>
|
|
</template>
|
|
<parentTable ref="table" v-loading="listLoading" :data="pageData.records" :selectionChange="handleSelectionChange" slot="table" style="width: 100%;">
|
|
<parentTable ref="table" v-loading="listLoading" :data="pageData.records" :selectionChange="handleSelectionChange" slot="table" style="width: 100%;">
|
|
- <el-table-column type="selection" align="center" width="40"></el-table-column>
|
|
|
|
|
|
+ <el-table-column type="selection" :selectable="checkSelectable" align="center" width="40"></el-table-column>
|
|
<el-table-column label="项⽬编号" align="center" width="150">
|
|
<el-table-column label="项⽬编号" align="center" width="150">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<span>{{ row.orderId }}</span>
|
|
<span>{{ row.orderId }}</span>
|
|
@@ -99,7 +99,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="退款原因" align="center" width="150">
|
|
<el-table-column label="退款原因" align="center" width="150">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
- <span>{{ row.refundReason === 'RETURN_PRODUCTION' ? '退产品' : row.refundReason === 'RETURN_MONEY' ? '退款' : row.refundReason === 'RETURN_PRODUCTION_INVOICE' ? '退产品并退发票' : '-' }}</span>
|
|
|
|
|
|
+ <span>{{ row.refundReason === 'RETURN_PRODUCTION' ? '退产品' : row.refundReason === 'RETURN_MONEY' ? '产品回款' : row.refundReason === 'RETURN_PRODUCTION_INVOICE' ? '退产品并退发票' : '-' }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="退款状态" align="center" width="150">
|
|
<el-table-column label="退款状态" align="center" width="150">
|
|
@@ -119,8 +119,8 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="操作" align="center" width="100" fixed="right">
|
|
<el-table-column label="操作" align="center" width="100" fixed="right">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
- <PermissionButton menu-code="_views_finance_fine_refund_returned" @click="updateStatus(row.id, 'RETURNED')" class-name="filter-item" name type="text" />
|
|
|
|
- <PermissionButton menu-code="_views_finance_fine_refund_ignore" @click="updateStatus(row.id, 'IGNORE')" class-name="filter-item" name type="text" />
|
|
|
|
|
|
+ <PermissionButton menu-code="_views_finance_fine_refund_returned" @click="updateStatus(row.id, 'RETURNED')" :disabled="row.status !== 'NOT_RETURNED'" class-name="filter-item" name type="text" />
|
|
|
|
+ <PermissionButton menu-code="_views_finance_fine_refund_ignore" @click="updateStatus(row.id, 'IGNORE')" :disabled="row.status !== 'NOT_RETURNED'" class-name="filter-item" name type="text" />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</parentTable>
|
|
</parentTable>
|
|
@@ -163,7 +163,7 @@
|
|
<PermissionButton menu-code="_views_finance_fine_refund_ignore_batch" class="filter-item" style="float: left;" round type="danger" @click="batchUpdateStatus('IGNORE')" />
|
|
<PermissionButton menu-code="_views_finance_fine_refund_ignore_batch" class="filter-item" style="float: left;" round type="danger" @click="batchUpdateStatus('IGNORE')" />
|
|
</template>
|
|
</template>
|
|
<parentTable ref="table" v-loading="listLoading" :data="pageData.records" :selectionChange="handleSelectionChange" slot="table" style="width: 100%;">
|
|
<parentTable ref="table" v-loading="listLoading" :data="pageData.records" :selectionChange="handleSelectionChange" slot="table" style="width: 100%;">
|
|
- <el-table-column type="selection" align="center" width="40"></el-table-column>
|
|
|
|
|
|
+ <el-table-column type="selection" :selectable="checkSelectable" align="center" width="40"></el-table-column>
|
|
<el-table-column label="项⽬编号" align="center" width="120">
|
|
<el-table-column label="项⽬编号" align="center" width="120">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<span>{{ row.orderId }}</span>
|
|
<span>{{ row.orderId }}</span>
|
|
@@ -206,7 +206,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="退款原因" align="center" width="150" show-overflow-tooltip>
|
|
<el-table-column label="退款原因" align="center" width="150" show-overflow-tooltip>
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
- <span>{{ row.refundReason === 'RETURN_PRODUCTION' ? '退产品' : row.refundReason === 'RETURN_MONEY' ? '退款' : row.refundReason === 'RETURN_PRODUCTION_INVOICE' ? '退产品并退发票' : '-' }}</span>
|
|
|
|
|
|
+ <span>{{ row.refundReason === 'RETURN_PRODUCTION' ? '退产品' : row.refundReason === 'RETURN_MONEY' ? '产品回款' : row.refundReason === 'RETURN_PRODUCTION_INVOICE' ? '退产品并退发票' : '-' }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="退款状态" align="center">
|
|
<el-table-column label="退款状态" align="center">
|
|
@@ -241,8 +241,8 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="操作" align="center" width="160" fixed="right">
|
|
<el-table-column label="操作" align="center" width="160" fixed="right">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
- <PermissionButton menu-code="_views_finance_fine_refund_returned" @click="updateStatus(row.id, 'RETURNED')" class-name="filter-item" name type="text" />
|
|
|
|
- <PermissionButton menu-code="_views_finance_fine_refund_ignore" @click="updateStatus(row.id, 'IGNORE')" class-name="filter-item" name type="text" />
|
|
|
|
|
|
+ <PermissionButton menu-code="_views_finance_fine_refund_returned" :disabled="row.status !== 'NOT_RETURNED'" @click="updateStatus(row.id, 'RETURNED')" class-name="filter-item" name type="text" />
|
|
|
|
+ <PermissionButton menu-code="_views_finance_fine_refund_ignore" :disabled="row.status !== 'NOT_RETURNED'" @click="updateStatus(row.id, 'IGNORE')" class-name="filter-item" name type="text" />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</parentTable>
|
|
</parentTable>
|
|
@@ -285,7 +285,7 @@
|
|
<PermissionButton menu-code="_views_finance_fine_refund_ignore_batch" class="filter-item" style="float: left;" round type="danger" @click="batchUpdateStatus('IGNORE')" />
|
|
<PermissionButton menu-code="_views_finance_fine_refund_ignore_batch" class="filter-item" style="float: left;" round type="danger" @click="batchUpdateStatus('IGNORE')" />
|
|
</template>
|
|
</template>
|
|
<parentTable ref="table" v-loading="listLoading" :data="pageData.records" :selectionChange="handleSelectionChange" slot="table" style="width: 100%;">
|
|
<parentTable ref="table" v-loading="listLoading" :data="pageData.records" :selectionChange="handleSelectionChange" slot="table" style="width: 100%;">
|
|
- <el-table-column type="selection" align="center" width="40"></el-table-column>
|
|
|
|
|
|
+ <el-table-column type="selection" :selectable="checkSelectable" align="center" width="40"></el-table-column>
|
|
<el-table-column label="项⽬编号" align="center" width="120">
|
|
<el-table-column label="项⽬编号" align="center" width="120">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<span>{{ row.orderId }}</span>
|
|
<span>{{ row.orderId }}</span>
|
|
@@ -323,7 +323,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="退款原因" align="center" width="150" show-overflow-tooltip>
|
|
<el-table-column label="退款原因" align="center" width="150" show-overflow-tooltip>
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
- <span>{{ row.refundReason === 'RETURN_PRODUCTION' ? '退产品' : row.refundReason === 'RETURN_MONEY' ? '退款' : row.refundReason === 'RETURN_PRODUCTION_INVOICE' ? '退产品并退发票' : '-' }}</span>
|
|
|
|
|
|
+ <span>{{ row.refundReason === 'RETURN_PRODUCTION' ? '退产品' : row.refundReason === 'RETURN_MONEY' ? '产品回款' : row.refundReason === 'RETURN_PRODUCTION_INVOICE' ? '退产品并退发票' : '-' }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="退款状态" align="center">
|
|
<el-table-column label="退款状态" align="center">
|
|
@@ -358,8 +358,8 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="操作" align="center" width="160" fixed="right">
|
|
<el-table-column label="操作" align="center" width="160" fixed="right">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
- <PermissionButton menu-code="_views_finance_fine_refund_returned" @click="updateStatus(row.id, 'RETURNED')" class-name="filter-item" name type="text" />
|
|
|
|
- <PermissionButton menu-code="_views_finance_fine_refund_ignore" @click="updateStatus(row.id, 'IGNORE')" class-name="filter-item" name type="text" />
|
|
|
|
|
|
+ <PermissionButton menu-code="_views_finance_fine_refund_returned" :disabled="row.status !== 'NOT_RETURNED'" @click="updateStatus(row.id, 'RETURNED')" class-name="filter-item" name type="text" />
|
|
|
|
+ <PermissionButton menu-code="_views_finance_fine_refund_ignore" :disabled="row.status !== 'NOT_RETURNED'" @click="updateStatus(row.id, 'IGNORE')" class-name="filter-item" name type="text" />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</parentTable>
|
|
</parentTable>
|
|
@@ -502,20 +502,30 @@ export default {
|
|
},
|
|
},
|
|
// 更新退款状态
|
|
// 更新退款状态
|
|
updateStatus(id, status) {
|
|
updateStatus(id, status) {
|
|
- this.updateForm = {
|
|
|
|
- id: id,
|
|
|
|
- status: status,
|
|
|
|
- };
|
|
|
|
- this.$api.financeFineRefund.update(this.updateForm).then((res) => {
|
|
|
|
- this.$notify({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '请求成功!',
|
|
|
|
- type: 'success',
|
|
|
|
- duration: 3000,
|
|
|
|
|
|
+ this.$confirm('标记退款状态后无法更改, 是否继续?', '警告', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ }).then(() => {
|
|
|
|
+ this.updateForm = {
|
|
|
|
+ id: id,
|
|
|
|
+ status: status,
|
|
|
|
+ };
|
|
|
|
+ this.$api.financeFineRefund.update(this.updateForm).then((res) => {
|
|
|
|
+ this.$notify({
|
|
|
|
+ title: '成功',
|
|
|
|
+ message: '请求成功!',
|
|
|
|
+ type: 'success',
|
|
|
|
+ duration: 3000,
|
|
|
|
+ });
|
|
|
|
+ this.page();
|
|
});
|
|
});
|
|
- this.page();
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ checkSelectable(row) {
|
|
|
|
+ // 根据行数据的 status 字段判断是否可选择
|
|
|
|
+ return row.status === 'NOT_RETURNED';
|
|
|
|
+ },
|
|
// 多选触发
|
|
// 多选触发
|
|
handleSelectionChange(selection) {
|
|
handleSelectionChange(selection) {
|
|
this.batchUpdateIds = selection.map((item) => item.id);
|
|
this.batchUpdateIds = selection.map((item) => item.id);
|
|
@@ -523,7 +533,7 @@ export default {
|
|
// 批量更新退款状态
|
|
// 批量更新退款状态
|
|
batchUpdateStatus(status) {
|
|
batchUpdateStatus(status) {
|
|
if (this.batchUpdateIds && this.batchUpdateIds.length > 0) {
|
|
if (this.batchUpdateIds && this.batchUpdateIds.length > 0) {
|
|
- this.$confirm('请仔细确认要进行批量操作的数据, 是否继续?', '警告', {
|
|
|
|
|
|
+ this.$confirm('请仔细确认要进行批量操作的数据, 标记退款状态后无法更改, 是否继续?', '警告', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning',
|
|
type: 'warning',
|