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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<template>
<div>
<div class="title">费用明细</div>
<div class="e-table-wrapper">
<el-table
:data="model.setmod.setfeg.fegmod.feslst"
style="width: 100%"
>
<el-table-column
prop="rol"
label="角色"
width="100">
</el-table-column>
<el-table-column
prop="feecod"
label="费用代码"
width="150"
>
</el-table-column>
<el-table-column
prop="feetxt"
label="费用名称"
width="200">
<!-- <template slot-scope="scope">
<span>{{ findCodeLabel(codes.feecod,scope.row.feecod) }}</span>
</template> -->
</el-table-column>
<el-table-column
prop="cur"
label="收费币种"
width="150">
</el-table-column>
<el-table-column
prop="basamt"
label="应收金额"
width="150">
</el-table-column>
<el-table-column
prop="amt"
label="实收金额"
width="150">
</el-table-column>
<el-table-column
prop="dsp"
label="现收/缓收"
width="150">
</el-table-column>
<el-table-column
prop="payflg"
label="内扣/外收"
width="150">
</el-table-column>
<el-table-column
prop=""
label="操作"
width="150">
<template slot-scope="scope">
<el-button type="text" size="small">查看</el-button>
<el-button type="text" size="small">编辑</el-button>
</template>
</el-table-column>
</el-table>
</div>
<el-button plain class="add-btn" @click="handleClickFeslst">+</el-button>
<div class="title">财务明细</div>
<div class="e-table-wrapper">
<el-table
:data="model.setmod.setglg.glgmod.glslst"
style="width: 100%"
>
<el-table-column
prop="debcdtflg"
label="借/贷">
</el-table-column>
<el-table-column
prop="cur"
label="结算币种">
</el-table-column>
<el-table-column
prop="amt"
label="结算金额">
</el-table-column>
<el-table-column
prop="dsp"
label="结算方式">
</el-table-column>
<el-table-column
prop="act"
label="账户">
</el-table-column>
<el-table-column
prop="acccur"
label="原币种">
</el-table-column>
<el-table-column
prop="accamt"
label="原金额">
</el-table-column>
<el-table-column
prop="rat"
label="汇率">
</el-table-column>
</el-table>
</div>
<el-button plain class="add-btn" @click="handleClickGlslst">+</el-button>
<el-dialog
:visible.sync="feslstVisible"
width="30%">
<span slot="title"></span>
<m-feslst-detail
v-bind:model="feslst"
v-bind:codes="codes" />
<span slot="footer" class="dialog-footer">
<el-button @click="feslstVisible = false">取 消</el-button>
<el-button type="primary" @click="addFeslst">确 定</el-button>
</span>
</el-dialog>
<el-dialog
:visible.sync="glslstVisible"
width="30%">
<span slot="title"></span>
<m-glslst-detail
v-bind:model="glslst"
v-bind:codes="codes" />
<span slot="footer" class="dialog-footer">
<el-button @click="glslstVisible = false">取 消</el-button>
<el-button type="primary" @click="addGlslst">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import FeslstDetail from './FeslstDetail'
import GlslstDetail from './GlslstDetail'
export default {
components: {
'm-feslst-detail': FeslstDetail,
'm-glslst-detail': GlslstDetail
},
props:['model', 'codes'],
data: function () {
return {
feslstVisible: false,
glslstVisible: false,
feslst: {
rol: '',
feecod: '',
feetxt: '',
cur: '',
basamt: '',
amt: '',
dsp: '',
payflg: ''
},
glslst: {
debcdtflg: '',
cur: '',
amt: '',
dsp: '',
act: '',
acccur: '',
accamt: '',
rat: ''
}
}
},
methods: {
addFeslst () {
this.feslstVisible = false
this.model.setmod.setfeg.fegmod.feslst.push(this.feslst)
this.feslst = {
rol: '',
feecod: '',
feetxt: '',
cur: '',
basamt: '',
amt: '',
dsp: '',
payflg: ''
}
},
addGlslst () {
this.glslstVisible = false
this.model.setmod.setglg.glgmod.glslst.push(this.glslst)
this.glslst = {
debcdtflg: '',
cur: '',
amt: '',
dsp: '',
act: '',
acccur: '',
accamt: '',
rat: ''
}
},
handleClickFeslst () {
this.feslstVisible = true
},
handleClickGlslst () {
this.glslstVisible = true
}
}
}
</script>
<style scoped>
.title {
color: rgba(0, 0, 0, 0.65);
font-size: 14px;
padding-bottom: 10px;
}
.add-btn {
margin: 12px 0;
text-align: center;
width: 100%;
color: #ccc;
}
</style>