form_1.vue
8.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<template>
<view>
<template v-if="config.formType == 1">
<applyBanquet ref="form" @eventReciver="eventReciver" v-if="config.enCode==='applyBanquet'" />
<applyDeliverGoods ref="form" @eventReciver="eventReciver" v-if="config.enCode==='applyDeliverGoods'" />
<applyMeeting ref="form" @eventReciver="eventReciver" v-if="config.enCode==='applyMeeting'" />
<archivalBorrow ref="form" @eventReciver="eventReciver" v-if="config.enCode==='archivalBorrow'" />
<articlesWarehous ref="form" @eventReciver="eventReciver" v-if="config.enCode==='articlesWarehous'" />
<batchPack ref="form" @eventReciver="eventReciver" v-if="config.enCode==='batchPack'" />
<batchTable ref="form" @eventReciver="eventReciver" v-if="config.enCode==='batchTable'" />
<conBilling ref="form" @eventReciver="eventReciver" v-if="config.enCode==='conBilling'" />
<contractApproval ref="form" @eventReciver="eventReciver" v-if="config.enCode==='contractApproval'" />
<contractApprovalSheet ref="form" @eventReciver="eventReciver"
v-if="config.enCode==='contractApprovalSheet'" />
<payDistribution ref="form" @eventReciver="eventReciver" v-if="config.enCode==='payDistribution'" />
<crmOrder ref="form" @eventReciver="eventReciver" v-if="config.enCode==='crmOrder'" />
<debitBill ref="form" @eventReciver="eventReciver" v-if="config.enCode==='debitBill'" />
<documentApproval ref="form" @eventReciver="eventReciver" v-if="config.enCode==='documentApproval'" />
<documentSigning ref="form" @eventReciver="eventReciver" v-if="config.enCode==='documentSigning'" />
<expenseExpenditure ref="form" @eventReciver="eventReciver" v-if="config.enCode==='expenseExpenditure'" />
<finishedProduct ref="form" @eventReciver="eventReciver" v-if="config.enCode==='finishedProduct'" />
<incomeRecognition ref="form" @eventReciver="eventReciver" v-if="config.enCode==='incomeRecognition'" />
<leaveApply ref="form" @eventReciver="eventReciver" v-if="config.enCode==='leaveApply'" />
<letterService ref="form" @eventReciver="eventReciver" v-if="config.enCode==='letterService'" />
<materialRequisition ref="form" @eventReciver="eventReciver" v-if="config.enCode==='materialRequisition'" />
<monthlyReport ref="form" @eventReciver="eventReciver" v-if="config.enCode==='monthlyReport'" />
<officeSupplies ref="form" @eventReciver="eventReciver" v-if="config.enCode==='officeSupplies'" />
<outboundOrder ref="form" @eventReciver="eventReciver" v-if="config.enCode==='outboundOrder'" />
<outgoingApply ref="form" @eventReciver="eventReciver" v-if="config.enCode==='outgoingApply'" />
<paymentApply ref="form" @eventReciver="eventReciver" v-if="config.enCode==='paymentApply'" />
<postBatchTab ref="form" @eventReciver="eventReciver" v-if="config.enCode==='postBatchTab'" />
<procurementMaterial ref="form" @eventReciver="eventReciver" v-if="config.enCode==='procurementMaterial'" />
<purchaseList ref="form" @eventReciver="eventReciver" v-if="config.enCode==='purchaseList'" />
<quotationApproval ref="form" @eventReciver="eventReciver" v-if="config.enCode==='quotationApproval'" />
<receiptProcessing ref="form" @eventReciver="eventReciver" v-if="config.enCode==='receiptProcessing'" />
<receiptSign ref="form" @eventReciver="eventReciver" v-if="config.enCode==='receiptSign'" />
<rewardPunishment ref="form" @eventReciver="eventReciver" v-if="config.enCode==='rewardPunishment'" />
<salesOrder ref="form" @eventReciver="eventReciver" v-if="config.enCode==='salesOrder'" />
<salesSupport ref="form" @eventReciver="eventReciver" v-if="config.enCode==='salesSupport'" />
<staffOvertime ref="form" @eventReciver="eventReciver" v-if="config.enCode==='staffOvertime'" />
<supplementCard ref="form" @eventReciver="eventReciver" v-if="config.enCode==='supplementCard'" />
<travelApply ref="form" @eventReciver="eventReciver" v-if="config.enCode==='travelApply'" />
<travelReimbursement ref="form" @eventReciver="eventReciver" v-if="config.enCode==='travelReimbursement'" />
<vehicleApply ref="form" @eventReciver="eventReciver" v-if="config.enCode==='vehicleApply'" />
<violationHandling ref="form" @eventReciver="eventReciver" v-if="config.enCode==='violationHandling'" />
<warehouseReceipt ref="form" @eventReciver="eventReciver" v-if="config.enCode==='warehouseReceipt'" />
<workContactSheet ref="form" @eventReciver="eventReciver" v-if="config.enCode==='workContactSheet'" />
</template>
<template v-else>
<dynamicForm ref="form" @eventReciver="eventReciver" @setBtnLoad="setBtnLoad" />
</template>
</view>
</template>
<script>
import dynamicForm from '@/pages/workFlow/workFlowForm/dynamicForm'
import applyBanquet from '@/pages/workFlow/workFlowForm/applyBanquet'
import applyDeliverGoods from '@/pages/workFlow/workFlowForm/applyDeliverGoods'
import applyMeeting from '@/pages/workFlow/workFlowForm/applyMeeting'
import archivalBorrow from '@/pages/workFlow/workFlowForm/archivalBorrow'
import articlesWarehous from '@/pages/workFlow/workFlowForm/articlesWarehous'
import batchPack from '@/pages/workFlow/workFlowForm/batchPack'
import batchTable from '@/pages/workFlow/workFlowForm/batchTable'
import conBilling from '@/pages/workFlow/workFlowForm/conBilling'
import contractApproval from '@/pages/workFlow/workFlowForm/contractApproval'
import contractApprovalSheet from '@/pages/workFlow/workFlowForm/contractApprovalSheet'
import payDistribution from '@/pages/workFlow/workFlowForm/payDistribution'
import crmOrder from '@/pages/workFlow/workFlowForm/crmOrder'
import debitBill from '@/pages/workFlow/workFlowForm/debitBill'
import documentApproval from '@/pages/workFlow/workFlowForm/documentApproval'
import documentSigning from '@/pages/workFlow/workFlowForm/documentSigning'
import expenseExpenditure from '@/pages/workFlow/workFlowForm/expenseExpenditure'
import finishedProduct from '@/pages/workFlow/workFlowForm/finishedProduct'
import incomeRecognition from '@/pages/workFlow/workFlowForm/incomeRecognition'
import leaveApply from '@/pages/workFlow/workFlowForm/leaveApply'
import letterService from '@/pages/workFlow/workFlowForm/letterService'
import materialRequisition from '@/pages/workFlow/workFlowForm/materialRequisition'
import monthlyReport from '@/pages/workFlow/workFlowForm/monthlyReport'
import officeSupplies from '@/pages/workFlow/workFlowForm/officeSupplies'
import outboundOrder from '@/pages/workFlow/workFlowForm/outboundOrder'
import outgoingApply from '@/pages/workFlow/workFlowForm/outgoingApply'
import paymentApply from '@/pages/workFlow/workFlowForm/paymentApply'
import postBatchTab from '@/pages/workFlow/workFlowForm/postBatchTab'
import procurementMaterial from '@/pages/workFlow/workFlowForm/procurementMaterial'
import purchaseList from '@/pages/workFlow/workFlowForm/purchaseList'
import quotationApproval from '@/pages/workFlow/workFlowForm/quotationApproval'
import receiptProcessing from '@/pages/workFlow/workFlowForm/receiptProcessing'
import receiptSign from '@/pages/workFlow/workFlowForm/receiptSign'
import rewardPunishment from '@/pages/workFlow/workFlowForm/rewardPunishment'
import salesOrder from '@/pages/workFlow/workFlowForm/salesOrder'
import salesSupport from '@/pages/workFlow/workFlowForm/salesSupport'
import staffOvertime from '@/pages/workFlow/workFlowForm/staffOvertime'
import supplementCard from '@/pages/workFlow/workFlowForm/supplementCard'
import travelApply from '@/pages/workFlow/workFlowForm/travelApply'
import travelReimbursement from '@/pages/workFlow/workFlowForm/travelReimbursement'
import vehicleApply from '@/pages/workFlow/workFlowForm/vehicleApply'
import violationHandling from '@/pages/workFlow/workFlowForm/violationHandling'
import warehouseReceipt from '@/pages/workFlow/workFlowForm/warehouseReceipt'
import workContactSheet from '@/pages/workFlow/workFlowForm/workContactSheet'
export default {
components: {
crmOrder,
dynamicForm,
applyBanquet,
applyDeliverGoods,
applyMeeting,
payDistribution,
archivalBorrow,
articlesWarehous,
batchPack,
batchTable,
conBilling,
contractApproval,
contractApprovalSheet,
debitBill,
documentApproval,
documentSigning,
expenseExpenditure,
finishedProduct,
incomeRecognition,
leaveApply,
letterService,
materialRequisition,
monthlyReport,
officeSupplies,
outboundOrder,
outgoingApply,
paymentApply,
postBatchTab,
procurementMaterial,
purchaseList,
quotationApproval,
receiptProcessing,
receiptSign,
rewardPunishment,
salesOrder,
salesSupport,
staffOvertime,
supplementCard,
travelApply,
travelReimbursement,
vehicleApply,
violationHandling,
warehouseReceipt,
workContactSheet
},
props: {
config: {
type: Object,
default: () => {}
},
},
methods: {
eventReciver(formData, eventType) {
this.$emit('eventReciver', formData, eventType)
},
setBtnLoad(val) {
this.$emit('setBtnLoad', val)
}
}
}
</script>