1、调整业务模块
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<basic-container class="receipt-claim-form-page">
|
||||
<receipt-flow-batch-form v-if="batchMode" />
|
||||
<basic-container v-else class="receipt-claim-form-page">
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="form"
|
||||
@@ -182,6 +183,7 @@
|
||||
import { Search } from '@element-plus/icons-vue';
|
||||
import * as api from '@/api/payment/receiptFlow';
|
||||
import VehicleAttachmentTable from '@/components/vehicle-attachment-table/main.vue';
|
||||
import ReceiptFlowBatchForm from './receipt-flow-batch-form.vue';
|
||||
|
||||
const emptyForm = () => ({
|
||||
id: null,
|
||||
@@ -206,7 +208,7 @@ const emptyForm = () => ({
|
||||
|
||||
export default {
|
||||
name: 'ReceiptFlowForm',
|
||||
components: { VehicleAttachmentTable },
|
||||
components: { VehicleAttachmentTable, ReceiptFlowBatchForm },
|
||||
data() {
|
||||
return {
|
||||
Search,
|
||||
@@ -222,6 +224,9 @@ export default {
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
batchMode() {
|
||||
return String(this.$route.query.batch || '') === '1';
|
||||
},
|
||||
flowId() {
|
||||
return this.$route.query.id || '';
|
||||
},
|
||||
@@ -239,7 +244,7 @@ export default {
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.initialize();
|
||||
if (!this.batchMode) this.initialize();
|
||||
},
|
||||
methods: {
|
||||
unwrapData(response) {
|
||||
|
||||
Reference in New Issue
Block a user