|
@@ -43,11 +43,11 @@
|
|
|
<el-radio-button label="用户放弃" value="5" />
|
|
<el-radio-button label="用户放弃" value="5" />
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
- <el-button
|
|
|
|
|
- type="primary"
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
@click="handleBatchAudit"
|
|
@click="handleBatchAudit"
|
|
|
v-permission="'finance:subsidyReview:audit'"
|
|
v-permission="'finance:subsidyReview:audit'"
|
|
|
- style="margin-left: 20px;"
|
|
|
|
|
|
|
+ style="margin-left: 20px"
|
|
|
>
|
|
>
|
|
|
批量审核
|
|
批量审核
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -93,22 +93,32 @@
|
|
|
>
|
|
>
|
|
|
[操作日志]
|
|
[操作日志]
|
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
+ <!-- 替客户申请 showSubmit -->
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ link
|
|
|
|
|
+ v-if="row.showSubmit == 1"
|
|
|
|
|
+ v-permission="'finance:subsidyReview:showSubmit'"
|
|
|
|
|
+ @click="handleShowSubmit(row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ [替客户申请]
|
|
|
|
|
+ </el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</common-table>
|
|
</common-table>
|
|
|
|
|
|
|
|
<orderDetail ref="orderDetailRef" />
|
|
<orderDetail ref="orderDetailRef" />
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<!-- 操作日志弹窗 -->
|
|
<!-- 操作日志弹窗 -->
|
|
|
<log-dialog ref="logDialogRef" />
|
|
<log-dialog ref="logDialogRef" />
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<!-- 批量审核弹窗 -->
|
|
<!-- 批量审核弹窗 -->
|
|
|
<batch-audit ref="batchAuditRef" @success="handleBatchAuditSuccess" />
|
|
<batch-audit ref="batchAuditRef" @success="handleBatchAuditSuccess" />
|
|
|
</ele-page>
|
|
</ele-page>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
- import { ref, reactive, onMounted } from 'vue';
|
|
|
|
|
|
|
+ import { ref, reactive, onMounted, getCurrentInstance } from 'vue';
|
|
|
import CommonTable from '@/components/CommonPage/CommonTable.vue';
|
|
import CommonTable from '@/components/CommonPage/CommonTable.vue';
|
|
|
import pageSearch from './page-search.vue';
|
|
import pageSearch from './page-search.vue';
|
|
|
import request from '@/utils/request';
|
|
import request from '@/utils/request';
|
|
@@ -118,6 +128,7 @@
|
|
|
import { ElMessage } from 'element-plus';
|
|
import { ElMessage } from 'element-plus';
|
|
|
defineOptions({ name: 'subsidyReview' });
|
|
defineOptions({ name: 'subsidyReview' });
|
|
|
|
|
|
|
|
|
|
+ const { proxy } = getCurrentInstance();
|
|
|
// 添加统计数据的响应式对象
|
|
// 添加统计数据的响应式对象
|
|
|
const statistics = reactive({
|
|
const statistics = reactive({
|
|
|
sumMoney: 0,
|
|
sumMoney: 0,
|
|
@@ -216,7 +227,7 @@
|
|
|
|
|
|
|
|
// 日志弹窗引用
|
|
// 日志弹窗引用
|
|
|
const logDialogRef = ref(null);
|
|
const logDialogRef = ref(null);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 操作日志
|
|
// 操作日志
|
|
|
const handleLog = (row) => {
|
|
const handleLog = (row) => {
|
|
|
logDialogRef.value?.open(row);
|
|
logDialogRef.value?.open(row);
|
|
@@ -230,19 +241,21 @@
|
|
|
ElMessage.warning('请先选择要审核的记录');
|
|
ElMessage.warning('请先选择要审核的记录');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 只能审核待审核状态的记录
|
|
// 只能审核待审核状态的记录
|
|
|
- const pendingRows = selectedRows.filter(row => row.status == 1);
|
|
|
|
|
|
|
+ const pendingRows = selectedRows.filter((row) => row.status == 1);
|
|
|
if (pendingRows.length === 0) {
|
|
if (pendingRows.length === 0) {
|
|
|
ElMessage.warning('请选择待审核状态的记录');
|
|
ElMessage.warning('请选择待审核状态的记录');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (pendingRows.length !== selectedRows.length) {
|
|
if (pendingRows.length !== selectedRows.length) {
|
|
|
- ElMessage.warning('只能审核待审核状态的记录,已自动过滤其他状态的记录');
|
|
|
|
|
|
|
+ ElMessage.warning(
|
|
|
|
|
+ '只能审核待审核状态的记录,已自动过滤其他状态的记录'
|
|
|
|
|
+ );
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- const ids = pendingRows.map(row => row.id);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ const ids = pendingRows.map((row) => row.id);
|
|
|
batchAuditRef.value?.open(ids);
|
|
batchAuditRef.value?.open(ids);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -253,4 +266,14 @@
|
|
|
// 清空选中状态
|
|
// 清空选中状态
|
|
|
pageRef.value?.tableRef?.clearSelection();
|
|
pageRef.value?.tableRef?.clearSelection();
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
|
|
+ const handleShowSubmit = (row) => {
|
|
|
|
|
+ pageRef.value.messageBoxConfirm({
|
|
|
|
|
+ message: '确定替客户申请吗?',
|
|
|
|
|
+ fetch: () =>
|
|
|
|
|
+ proxy.$http.post(
|
|
|
|
|
+ `/order/orderCompensationLog/adminSubmitAudit/${row.id}`
|
|
|
|
|
+ )
|
|
|
|
|
+ });
|
|
|
|
|
+ };
|
|
|
</script>
|
|
</script>
|