Setpan.vue 53.4 KB
Newer Older
潘际乾 committed
1 2 3
<template>
    <c-row class="eibs-tab">
        <!-- ====================顶部==================== -->
liuxin committed
4
        <c-col :span="6" style="margin-left:9px">
liushikai committed
5
            <el-form-item label="参考号" label-width="50px">
wangyanjiao committed
6 7
                <c-input v-model="model.setmod.ref" maxlength="16" :readonly="true" placeholder="请输入our reference">
                </c-input>
潘际乾 committed
8 9 10 11
            </el-form-item>
        </c-col>
        <c-col :span="4">
            <el-form-item label="结算金额" label-width="100px">
wangyanjiao committed
12
                <c-input v-model="model.setmod.doccur" style="width: 100%" placeholder="CNY" :readonly="true"></c-input>
潘际乾 committed
13 14 15
            </el-form-item>
        </c-col>

liushikai committed
16 17
        <c-col :span="6">
            <el-form-item label="" label-width="7px">
wangyanjiao committed
18
                <c-input v-model="model.setmod.docamt" :readonly="true" placeholder="请输入document amount"></c-input>
潘际乾 committed
19 20 21
            </el-form-item>
        </c-col>

liushikai committed
22
        <c-col :span="5">
潘际乾 committed
23
            <el-form-item label="类型" label-width="100px">
wangyanjiao committed
24 25 26
                <c-select v-model="model.setmod.dspflg" disabled style="width: 100%"
                    placeholder="请选择Type of settlement">
                    <el-option v-for="item in codes.dspflg" :key="item.value" :label="item.label" :value="item.value">
潘际乾 committed
27 28 29 30
                    </el-option>
                </c-select>
            </el-form-item>
        </c-col>
liushikai committed
31 32
        <c-col :span="2" style="text-align:right">
            <!-- <el-form-item label="" label-width="20px"> -->
wangyanjiao committed
33 34 35
            <c-button style="margin-right:10px" size="small" type="primary" @click="onSetmodDet">
                详情
            </c-button>
liushikai committed
36 37
            <!-- </el-form-item> -->
        </c-col>
潘际乾 committed
38 39 40 41 42 43 44 45 46 47 48

        <!--
        <c-col :span="12">
        <el-form-item label="自贸区账号">
            <c-input  v-model="model.setmod.zmqacc" maxlength="20"  placeholder="请输入自贸区账号"></c-input>
        </el-form-item>
       </c-col>    
       <c-col :span="6" style="text-align:center">
	    <c-checkbox v-model="model.setmod.xreflg">Recalculate Rates</c-checkbox>
       </c-col> 
       -->
liuxin committed
49
       <c-col :span="23" style="margin-left:9px;height:25px">
liushikai committed
50 51
           <el-divider></el-divider>
       </c-col>
liuxin committed
52
        <!-- ==============第一个表格===================== -->
潘际乾 committed
53

liuxin committed
54
        <c-col :span="23" style="height:24px;margin-left:9px">
wangyanjiao committed
55
            <el-form-item class="formItemLabel" label="Foreign Commission/Charges:" label-width="300px">
潘际乾 committed
56 57
            </el-form-item>
        </c-col>
wangyanjiao committed
58

liuxin committed
59
        <c-col :span="23" style="margin-left:9px">
wangyanjiao committed
60 61
            <c-table style="text-align: center" :list="model.setmod.setfog.setfol" :paginationShow="false"
                :border="true">
liushikai committed
62
                <el-table-column label="Payer" prop="ptydbt" width="101px">
潘际乾 committed
63
                    <template slot-scope="scope">
64 65
                        <c-select v-model="scope.row.ptydbt" @change="defaultFunction()">
                            <el-option v-for="item in codes.ptydbt_setpan" :key="item.value" :label="item.value"
wangyanjiao committed
66 67 68
                                :value="item.value">
                                <span style="float: left">{{ item.label }}</span>
                            </el-option>
69
                        </c-select>
潘际乾 committed
70 71
                    </template>
                </el-table-column>
liushikai committed
72
                <el-table-column label="Payee" width="101px">
潘际乾 committed
73
                    <template slot-scope="scope">
74 75
                        <c-select v-model="scope.row.ptypay" @change="defaultFunction()">
                            <el-option v-for="item in codes.ptydbt_setpan" :key="item.value" :label="item.value"
wangyanjiao committed
76 77
                                :value="item.value">
                                <span style="float: left">{{ item.label }}</span>
潘际乾 committed
78
                            </el-option>
79
                        </c-select>
潘际乾 committed
80 81
                    </template>
                </el-table-column>
liushikai committed
82
                <el-table-column label="Source" prop="src" width="70px">
潘际乾 committed
83
                </el-table-column>
liushikai committed
84
                <el-table-column label="Disp" prop="dsp" width="76px">
潘际乾 committed
85
                </el-table-column>
wangyanjiao committed
86
                <el-table-column label="Text for Payer" prop="txtdbt" width="auto">
潘际乾 committed
87
                </el-table-column>
wangyanjiao committed
88
                <el-table-column label="Text for Payee" prop="txtpay" width="auto">
潘际乾 committed
89
                </el-table-column>
liushikai committed
90
                <el-table-column label="Currency" prop="cur" width="93px">
潘际乾 committed
91
                    <template slot-scope="scope">
92
                        <c-select v-model="scope.row.cur">
wangyanjiao committed
93 94
                            <el-option v-for="item in codes.cur" :key="item.value" :label="item.label"
                                :value="item.value">
潘际乾 committed
95
                            </el-option>
96
                        </c-select>
潘际乾 committed
97 98
                    </template>
                </el-table-column>
liushikai committed
99
                <el-table-column label="Amount" prop="amt" width="150px">
潘际乾 committed
100
                </el-table-column>
liushikai committed
101
                <el-table-column label="" prop="det" width="80px" fixed="right">
潘际乾 committed
102
                    <template slot-scope="scope" slot="header">
103
                        <c-button
liushikai committed
104 105 106
                            circle
                            style="padding:4px"
                            class="el-icon-plus"
潘际乾 committed
107
                            size="mini"
liuxin committed
108
                            @click="addRowSetfol(scope)"
潘际乾 committed
109
                        >
110 111
                        </c-button>
                        <c-button
liushikai committed
112 113 114
                            style="padding:4px"
                            circle
                            class="el-icon-minus"
潘际乾 committed
115
                            size="mini"
liuxin committed
116
                            @click="removeRowSetfol(scope)"
潘际乾 committed
117
                        >
118
                        </c-button>
潘际乾 committed
119 120
                    </template>
                    <template slot-scope="scoped">
wangyanjiao committed
121 122
                        <c-button style="margin-left:0" size="small" type="primary"
                            @click="detail1(scoped.$index, scoped.row)">详情</c-button>
潘际乾 committed
123 124 125 126 127 128
                    </template>
                </el-table-column>
            </c-table>
        </c-col>
        <c-col>
            <el-dialog :visible.sync="dialogVisible" center>
潘际乾 committed
129 130
                <c-col>
                    <el-form :model="dialog" label-width="200px">
wangyanjiao committed
131
                        <c-col :span="16">
潘际乾 committed
132
                            <el-form-item label="收款人">
liuxin committed
133
                                <c-select v-model="dialog.ptypay" style="width: 100%">
wangyanjiao committed
134 135
                                    <el-option v-for="item in codes.payee" :key="item.value" :label="item.label"
                                        :value="item.value" />
136
                                </c-select>
潘际乾 committed
137 138 139 140
                            </el-form-item>
                        </c-col>
                        <c-col :span="16">
                            <el-form-item label="收款人摘要">
wangyanjiao committed
141
                                <c-input v-model="dialog.txtpay" style="width: 100%" />
潘际乾 committed
142 143 144 145
                            </el-form-item>
                        </c-col>
                        <c-col :span="16">
                            <el-form-item label="付款人">
146
                                <c-select v-model="dialog.ptydbt" style="width: 100%">
wangyanjiao committed
147 148
                                    <el-option v-for="item in codes.ptydbt1" :key="item.value" :label="item.label"
                                        :value="item.value">
liushikai committed
149
                                    </el-option>
150
                                </c-select>
潘际乾 committed
151 152 153 154
                            </el-form-item>
                        </c-col>
                        <c-col :span="16">
                            <el-form-item label="付款人摘要">
wangyanjiao committed
155
                                <c-input v-model="dialog.txtdbt" style="width: 100%" />
潘际乾 committed
156 157 158 159 160 161
                            </el-form-item>
                        </c-col>
                        <c-col :span="16">
                            <c-col :span="18">
                                <el-form-item label="费用">
                                    <c-select v-model="dialog.cur" style="width: 100%">
wangyanjiao committed
162 163
                                        <el-option v-for="item in codes.cur" :key="item.value" :labelF="item.label"
                                            :value="item.value" />
潘际乾 committed
164 165 166 167 168
                                    </c-select>
                                </el-form-item>
                            </c-col>
                            <c-col :span="6">
                                <el-form-item label="" label-width="20px">
wangyanjiao committed
169
                                    <c-input v-model="dialog.amt" style="width: 100%" />
潘际乾 committed
170 171 172 173 174
                                </el-form-item>
                            </c-col>
                        </c-col>
                        <c-col :span="16">
                            <el-form-item>
175
                                <c-checkbox v-model="dialog.forflg">买入行费用</c-checkbox>
潘际乾 committed
176 177 178 179
                            </el-form-item>
                        </c-col>
                    </el-form>
                </c-col>
潘际乾 committed
180
                <span slot="footer" class="dialog-footer">
181 182
                    <c-button type="primary" @click="saveDialog">确 定</c-button>
                    <c-button @click="dialogVisible = false">取 消</c-button>
潘际乾 committed
183 184 185 186
                </span>
            </el-dialog>
        </c-col>
        <!--=================== Own Commission/Charges:================== -->
liuxin committed
187
        <c-col :span="23" style="margin-left:9px;height:24px;margin-top:25px">
liushikai committed
188
            <el-form-item class="formItemLabel" label="Own Commission/Charges:" label-width="200px"> </el-form-item>
潘际乾 committed
189
        </c-col>
liuxin committed
190
        <c-col :span="23" style="margin-left:9px">
wangyanjiao committed
191 192
            <c-table style="text-align: center" :list="model.setmod.setfeg.setfel" :paginationShow="false"
                :border="true">
liushikai committed
193
                <el-table-column label="Role" width="101px">
潘际乾 committed
194
                    <template #default="scope">
195
                        <c-select v-model="scope.row.rol" @change="defaultFunction()">
wangyanjiao committed
196 197 198
                            <el-option v-for="item in codes.setfelRol" :key="item.value" :label="item.value"
                                :value="item.value">
                                <span style="float: left">{{ item.label }}</span>
潘际乾 committed
199
                            </el-option>
200
                        </c-select>
潘际乾 committed
201 202
                    </template>
                </el-table-column>
203 204 205 206 207 208 209 210 211
                <el-table-column label="Code" width="101px">
                    <template #default="scope">
                        <c-select v-model="scope.row.feecod" @change="selectOrCheckboxRule('setmod.setfeg.setfel.feecod')">
                            <el-option v-for="item in codes.fepfeecod" :key="item.value" :label="item.value"
                                :value="item.value">
                                <span style="float: left">{{ item.label }}</span>
                            </el-option>
                        </c-select>
                    </template>
潘际乾 committed
212
                </el-table-column>
liushikai committed
213
                <el-table-column label="Source" prop="src" width="70px">
潘际乾 committed
214
                </el-table-column>
liushikai committed
215
                <el-table-column label="Disp" prop="dsp" width="76px">
潘际乾 committed
216
                    <template #default="scope">
wangyanjiao committed
217 218 219 220
                        <c-select v-model="scope.row.dsp" @change="dispDefault(scope.$index + 1)">
                            <el-option v-for="item in codes.setfeldsp" :key="item.value" :label="item.value"
                                :value="item.value">
                                <span style="float: left">{{ item.label }}</span>
潘际乾 committed
221
                            </el-option>
222
                        </c-select>
潘际乾 committed
223 224
                    </template>
                </el-table-column>
liushikai committed
225
                <el-table-column label="Units" prop="unt" width="70px">
潘际乾 committed
226
                </el-table-column>
wangyanjiao committed
227
                <el-table-column label="Long Fee Text" prop="feetxtinf" width="auto">
潘际乾 committed
228
                </el-table-column>
liushikai committed
229
                <el-table-column label="Currency" prop="cur" width="100px">
潘际乾 committed
230
                </el-table-column>
liuxin committed
231 232
                <el-table-column label="Original Amount" prop="ogiamt" width="150px">
                </el-table-column>
liushikai committed
233
                <el-table-column label="Fee Amount" prop="amt" width="150px">
潘际乾 committed
234
                </el-table-column>
liushikai committed
235
                <el-table-column label="" prop="det" width="80px" fixed="right">
liushikai committed
236
                     <template slot-scope="scope" slot="header">
237
                        <c-button
liushikai committed
238 239 240 241
                            circle
                            style="padding:4px"
                            class="el-icon-plus"
                            size="mini"
liuxin committed
242
                            @click="addRowSetfel(scope)"
liushikai committed
243
                        >
244 245
                        </c-button>
                        <c-button
liushikai committed
246 247 248
                            style="padding:4px"
                            circle
                            class="el-icon-minus"
潘际乾 committed
249
                            size="mini"
liuxin committed
250
                            @click="removeRowSetfel(scope)"
liushikai committed
251
                        >
252
                        </c-button>
liushikai committed
253
                    </template>
潘际乾 committed
254
                    <template slot-scope="scoped">
wangyanjiao committed
255 256
                        <c-button style="margin-left:0" size="small" type="primary"
                            @click="detail2(scoped.$index, scoped.row)">详情</c-button>
潘际乾 committed
257 258 259 260
                    </template>
                </el-table-column>
            </c-table>
        </c-col>
wangyanjiao committed
261
        <setpan-dialog ref="setpanDialog" :model="model" :idx="index" :codes="codes" />
liuxin committed
262
        <c-col :span="23" style="margin-left:9px;height:24px;margin-top:25px">
263 264
            <el-form-item class="formItemLabel" label="Settlement:" label-width="100px">
                <span style="color:red">{{ this.model.setmod.dspflg == 'C'? "temporary":"" }}</span>
潘际乾 committed
265 266
            </el-form-item>
        </c-col>
liuxin committed
267
        <c-col :span="23" style="margin-left: 9px">
wangyanjiao committed
268 269
            <c-table style="text-align: center" :list="model.setmod.setglg.setgll" :paginationShow="false"
                :border="true">
liushikai committed
270
                <el-table-column label="Mod" prop="modflg" width="46px">
潘际乾 committed
271
                </el-table-column>
liushikai committed
272
                <el-table-column label="Role" prop="rol" width="55px">
潘际乾 committed
273
                </el-table-column>
liushikai committed
274
                <el-table-column label="in" prop="acccur" width="101px">
潘际乾 committed
275
                    <template slot-scope="scope">
276
                        <c-select v-model="scope.row.acccur">
wangyanjiao committed
277 278 279
                            <el-option v-for="item in codes.acccur" :key="item.value" :label="item.value"
                                :value="item.value">
                                <span style="float: left">{{ item.label }}</span>
潘际乾 committed
280
                            </el-option>
281
                        </c-select>
潘际乾 committed
282 283
                    </template>
                </el-table-column>
wangyanjiao committed
284
                <el-table-column label="Amount Paid" prop="fmtaccamt" width="120px">
潘际乾 committed
285
                </el-table-column>
liushikai committed
286
                <el-table-column label="Disp." width="101px">
潘际乾 committed
287
                    <template #default="scope">
288
                        <c-select v-model="scope.row.dsp">
wangyanjiao committed
289 290 291 292
                            <el-option v-for="item in codes.setglldsp" :key="item.value" :label="item.value"
                                :value="item.value">
                                <span style="float: left">{{ item.value }}</span>
                                <span style="float: left;margin-left:20px">{{ item.label }}</span>
潘际乾 committed
293
                            </el-option>
294
                        </c-select>
潘际乾 committed
295 296 297 298
                    </template>
                </el-table-column>
                <el-table-column label="Account" prop="act" width="auto">
                    <template slot-scope="scope">
299
                        <c-select v-model="scope.row.act">
wangyanjiao committed
300 301
                            <el-option v-for="item in scope.act" :key="item.value" :label="item.label"
                                :value="item.value">
潘际乾 committed
302
                            </el-option>
303
                        </c-select>
潘际乾 committed
304 305
                    </template>
                </el-table-column>
liushikai committed
306
                <el-table-column label="C" prop="debcdtflg" width="45px">
潘际乾 committed
307
                </el-table-column>
liushikai committed
308
                <el-table-column label="Curr." prop="cur" width="55px">
潘际乾 committed
309
                </el-table-column>
wangyanjiao committed
310
                <el-table-column label="Original Amount" prop="fmtamt" width="150px">
潘际乾 committed
311
                </el-table-column>
liushikai committed
312
                <el-table-column label="Rate" prop="rat" width="120px">
潘际乾 committed
313
                </el-table-column>
wangyanjiao committed
314
                <el-table-column label="操作" width="135px" fixed="right">
315
                    <template slot-scope="scoped">
wangyanjiao committed
316 317 318
                        <c-button style="margin-left:0" size="small" type="primary">Get</c-button>
                        <c-button style="margin-left:0" size="small" type="primary"
                            @click="handleDetail(scoped.$index, scoped.row)">详情</c-button>
liushikai committed
319
                    </template>
潘际乾 committed
320
                </el-table-column>
liushikai committed
321
                <!-- <el-table-column label="" width="80px">
liushikai committed
322
                    <template>
323
                        <c-button
liushikai committed
324 325 326
                            style="margin-left:0"
                            size="small"
                            type="primary"
327
                            >详情</c-button
liushikai committed
328
                        >
liushikai committed
329
                    </template> </el-table-column> -->
潘际乾 committed
330 331 332
            </c-table>
        </c-col>

liushikai committed
333
        <!-- <c-col :span="12" style="margin-bottom: 10px;">
潘际乾 committed
334 335
            <span v-text="model.setmod.retmsg" data-path=".setmod.retmsg">
            </span>
liushikai committed
336
        </c-col> -->
潘际乾 committed
337

liushikai committed
338
        <!-- <c-col :span="12" style="margin-bottom: 10px;">
潘际乾 committed
339 340
            <span v-text="model.setmod.zmqacclab" data-path=".setmod.zmqacclab">
            </span>
liushikai committed
341
        </c-col> -->
潘际乾 committed
342

liushikai committed
343
        <!-- <c-col :span="12" style="margin-bottom: 10px;">
潘际乾 committed
344 345 346 347 348
            <span
                v-text="model.setmod.setglg.labdspflg"
                data-path=".setmod.setglg.labdspflg"
            >
            </span>
liushikai committed
349
        </c-col> -->
350
        <template>
wangyanjiao committed
351 352 353
            <el-dialog ref="detpDialog" :visible.sync="detpDialogVisible" width="70%" center>
                <el-form label-width="100px" :model="dialog3">
                    <c-row>
354

wangyanjiao committed
355 356 357 358 359 360 361 362 363 364
                        <c-col :span="24" style="height:24px">
                            <el-form-item label="基础信息" class="messageLabel">
                            </el-form-item>
                        </c-col>
                        <c-col :span="24" style="height: 0px;margin-top:-5px">
                            <el-divider></el-divider>
                        </c-col>
                        <c-col :span="24">
                            &nbsp;
                        </c-col>
365
                        <!-- <c-col :span="12">
wangyanjiao committed
366 367 368
                            <el-form-item label="rollab">
                                <c-input v-model="dialog3.rollab" maxlength="3" placeholder="请输入rollab"></c-input>
                            </el-form-item>
369
                        </c-col> -->
wangyanjiao committed
370

371 372
                        <c-col :span="24">
                            <el-form-item label="ROLLAB">
Wuyuqiu committed
373 374 375 376
                                <c-select v-model="dialog3.rol" style="width:100%" placeholder="请输入role">
                                    <el-option v-for="item in codes.rolall" :key="item.value" :label="item.label" :value="item.value">
                                    </el-option>
                                </c-select>
wangyanjiao committed
377 378 379
                            </el-form-item>
                        </c-col>
                        <!-- <c-col :span="12">
380 381 382 383 384 385 386 387 388 389 390 391 392 393
                    <c-checkbox v-model="dialog3.act3flg">第三方还款</c-checkbox>
                </c-col>
                            
                <c-col :span="12">
                    <c-button size="small" type="primary"  @click="onMtdbutButapy">
                        确定
                    </c-button>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="Drag  Drop Sender" prop="setgll.actp.ptsget.sdamod.dadsnd">
                        <c-input  v-model="dialog3.actp.ptsget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
                    </el-form-item>
                </c-col> -->
wangyanjiao committed
394 395 396

                        <c-col :span="12">
                            <el-form-item label="Disposition" prop="setgll.dsp">
Wuyuqiu committed
397
                                <c-select v-model="dialog3.dsp" style="width:100%" placeholder="请选择Disposition" :code="codes.setglldsp">
wangyanjiao committed
398 399
                                </c-select>
                            </el-form-item>
400
                        </c-col>
wangyanjiao committed
401 402 403 404 405 406

                        <c-col :span="12">
                            <el-form-item label="External" prop="setgll.setgrp.act.pts.extkey">
                                <c-input v-model="dialog3.setgrp.act.pts.extkey" maxlength="16"
                                    placeholder="请输入External Key of Address"></c-input>
                            </el-form-item>
407
                        </c-col>
wangyanjiao committed
408 409 410 411 412 413 414 415 416 417 418 419 420 421 422

                        <c-col :span="12">
                            <el-form-item label="seainf">
                                <c-col :span="18">
                                    <c-input v-model="dialog3.actp.ptsget.sdamod.seainf" placeholder="请输入"></c-input>
                                </c-col>
                                <c-col :span="6" style="text-align: right">
                                    <c-button size="small" type="primary" @click="onActpDet">
                                        Details
                                    </c-button>
                                </c-col>
                            </el-form-item>
                        </c-col>

                        <!-- <c-col :span="12">
423 424 425 426 427 428 429 430 431 432
                    <el-form-item label="核心业务代号"  >
                        <c-input  v-model="dialog3.acccode" maxlength="4"  placeholder="请输入核心业务代号"></c-input>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <c-button size="small" type="primary"  @click="onSetgllDetget">
                        Get
                    </c-button>
                </c-col> -->
wangyanjiao committed
433 434 435 436 437 438 439 440 441

                        <c-col :span="12">
                            <el-form-item label="账号">
                                <c-select v-model="dialog3.act" style="width:100%" placeholder="请选择账号">
                                </c-select>
                            </el-form-item>
                        </c-col>

                        <!-- <c-col :span="12">
442 443 444 445
                    <el-form-item label="Name of Party"  >
                        <c-input  v-model="dialog3.setgrp.act.pts.nam" maxlength="40"  placeholder="请输入Name of Party"></c-input>
                    </el-form-item>
                </c-col> -->
wangyanjiao committed
446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463
                        <c-col :span="24">
                            <c-col :span="12">
                                <el-form-item label="科目代码">
                                    <c-select v-model="dialog3.cur" style="width:100%" placeholder="请选择科目代码">
                                    </c-select>
                                </el-form-item>
                            </c-col>

                            <c-col :span="12">
                                <el-form-item label="value date">
                                    <c-date-picker type="date" v-model="dialog3.valdat" style="width:100%"
                                        placeholder="请选择value date"></c-date-picker>
                                </el-form-item>
                            </c-col>
                        </c-col>


                        <!-- <c-col :span="12">
464 465 466 467 468
                    <el-form-item label="Search type"  >
                        <c-select v-model="dialog3.actpriflg" style="width:100%" placeholder="请选择Search type">
                        </c-select>
                    </el-form-item>
                </c-col> -->
wangyanjiao committed
469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485
                        <c-col :span="24">
                            <el-form-item label="原始金额">
                                <c-col :span="8">
                                    <c-select v-model="dialog3.acttrmtyp" style="width:100%" placeholder="请选择原始金额">
                                    </c-select>
                                </c-col>
                                <c-col :span="8">
                                    <el-form-item label="" label-width="5%">
                                        <c-input v-model="dialog3.fmtamt" placeholder="请输入原始金额"></c-input>
                                    </el-form-item>
                                </c-col>
                                <c-col :span="8">
                                    <el-form-item label="" label-width="5%">
                                        <c-select v-model="dialog3.modflg" style="width:100%" placeholder="请选择Modified">
                                        </c-select>
                                    </el-form-item>
                                </c-col>
486 487
                            </el-form-item>
                        </c-col>
wangyanjiao committed
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508

                        <c-col :span="24">
                            <el-form-item label="实际金额">
                                <c-col :span="8">
                                    <el-form-item label="" label-width="0">
                                        <c-select v-model="dialog3.acccur" style="width:100%"
                                            placeholder="请选择Amount handled">
                                        </c-select>
                                    </el-form-item>
                                </c-col>
                                <c-col :span="8">
                                    <el-form-item label="" label-width="5%">
                                        <c-input v-model="dialog3.fmtaccamt" placeholder="请输入实际金额"></c-input>
                                    </el-form-item>
                                </c-col>
                                <c-col :span="8">
                                    <el-form-item label="" label-width="5%">
                                        <c-input v-model="dialog3.debcdtflg" maxlength="1"
                                            placeholder="请输入Debit/Credit"></c-input>
                                    </el-form-item>
                                </c-col>
509 510
                            </el-form-item>
                        </c-col>
wangyanjiao committed
511 512 513 514

                        <!-- ---------------------- -->
                        <c-col :span="23" style="height:24px">
                            <el-form-item label="Cross信息" class="messageLabel">
515 516
                            </el-form-item>
                        </c-col>
wangyanjiao committed
517 518
                        <c-col :span="23" style="height: 0px;margin-top:-5px">
                            <el-divider></el-divider>
519
                        </c-col>
wangyanjiao committed
520 521
                        <c-col :span="24">
                            &nbsp;
522 523
                        </c-col>

wangyanjiao committed
524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615
                        <c-col :span="24">
                            <el-form-item label="Cross Rate">
                                <c-col :span="6">
                                    <c-col :span="24">
                                        <el-form-item label="" label-width="20%">
                                            <span>Rate Type</span>
                                        </el-form-item>
                                    </c-col>
                                    <c-col :span="24">
                                        <el-form-item label="" label-width="20%">
                                            <c-input v-model="rattyp"></c-input>
                                        </el-form-item>
                                    </c-col>
                                    <c-col :span="24">
                                        <el-form-item label="" label-width="20%">
                                            <c-input v-model="dcbrattyp"></c-input>
                                        </el-form-item>
                                    </c-col>
                                    <c-col :span="24">
                                        <el-form-item label="" label-width="20%">
                                            <c-input v-model="scbrattyp"></c-input>
                                        </el-form-item>
                                    </c-col>
                                </c-col>
                                <c-col :span="6">
                                    <c-col :span="24">
                                        <el-form-item label="" label-width="20%">
                                            <span>Calculate Rate</span>
                                        </el-form-item>
                                    </c-col>
                                    <c-col :span="24">
                                        <el-form-item label="" label-width="20%">
                                            <c-input v-model="dialog3.rat" placeholder="请输入rate used"></c-input>
                                        </el-form-item>
                                    </c-col>
                                    <c-col :span="24">
                                        <el-form-item label="" label-width="20%">
                                            <c-input v-model="dialog3.dcbextrat" placeholder="请输入Selling Rate">
                                            </c-input>
                                        </el-form-item>
                                    </c-col>
                                    <c-col :span="24">
                                        <el-form-item label="" label-width="20%">
                                            <c-input v-model="dialog3.scbextrat" placeholder="请输入Buying Rate"></c-input>
                                        </el-form-item>
                                    </c-col>
                                </c-col>
                                <c-col :span="6">
                                    <c-col :span="24">
                                        <el-form-item label="" label-width="20%">
                                            <span>From Date</span>
                                        </el-form-item>
                                    </c-col>
                                    <c-col :span="24">
                                        <el-form-item label="" label-width="20%">
                                            &nbsp;
                                        </el-form-item>
                                    </c-col>
                                    <c-col :span="24">
                                        <el-form-item label="" label-width="20%">
                                            <c-input v-model="dialog3.xrtdatcur" placeholder="请输入xrtdatcur"></c-input>
                                        </el-form-item>
                                    </c-col>
                                    <c-col :span="24">
                                        <el-form-item label="" label-width="20%">
                                            <c-input v-model="dialog3.xrtdatacc" placeholder="请输入xrtdatacc"></c-input>
                                        </el-form-item>
                                    </c-col>
                                </c-col>
                                <c-col :span="6">
                                    <c-col :span="24">
                                        <el-form-item label="牌价时间">
                                            <c-input v-model="dialog3.xrttim" placeholder="请输入牌价时间"></c-input>
                                        </el-form-item>
                                    </c-col>
                                    <c-col :span="24">
                                        <el-form-item label="卖价" prop="setgll.midrat">
                                            <c-input v-model="dialog3.selrat" placeholder="请输入卖价"></c-input>
                                        </el-form-item>
                                    </c-col>
                                    <c-col :span="24">
                                        <el-form-item label="中间价" prop="setgll.midrat">
                                            <c-input v-model="dialog3.midrat" placeholder="请输入中间价"></c-input>
                                        </el-form-item>
                                    </c-col>
                                    <c-col :span="24">
                                        <el-form-item label="买价" prop="setgll.midrat">
                                            <c-input v-model="dialog3.buyrat" placeholder="请输入买价"></c-input>
                                        </el-form-item>
                                    </c-col>
                                </c-col>
                            </el-form-item>
616 617
                        </c-col>

wangyanjiao committed
618
                        <!-- <div>
619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758
                <c-col :span="12">
                    <el-form-item label="pre rate type" prop="setgll.selrattyp">
                        <c-select v-model="dialog3.selrattyp" style="width:100%" placeholder="请选择pre rate type">
                        </c-select>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="Sel" prop="setgll.preselrat">
                        <c-input  v-model="dialog3.preselrat"  placeholder="请输入Sel"></c-input>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <span  v-text="dialog3.selpct"   data-path=".setgll.selpct" > </span>
                </c-col>
                                            
                <c-col :span="12">
                    <el-form-item label="Amount handled" prop="setgll.fmtacccpramt">
                        <c-input  v-model="dialog3.fmtacccpramt"  placeholder="请输入Amount handled"></c-input>
                    </el-form-item>
                </c-col>
                                            
                <c-col :span="12">
                    <el-form-item label="Pre rate type" prop="setgll.buyrattyp">
                        <c-select v-model="dialog3.buyrattyp" style="width:100%" placeholder="请选择Pre rate type">
                        </c-select>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="Buy" prop="setgll.prebuyrat">
                        <c-input  v-model="dialog3.prebuyrat"  placeholder="请输入Buy"></c-input>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <span  v-text="dialog3.buypct"   data-path=".setgll.buypct" > </span>
                </c-col>
                                                                                                
                <c-col :span="12">
                    <el-form-item label="From Date" prop="setgll.xrttim">
                        <c-input  v-model="dialog3.xrttim" maxlength="20"  placeholder="请输入From Date"></c-input>
                    </el-form-item>
                </c-col>
                                            
                <c-col :span="12">
                    <span  v-text="dialog3.ratcurlab"   data-path=".setgll.ratcurlab" > </span>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="Codetable of supported rate types  M-iddle, B-uying, S-elling, I-nput" prop="setgll.rattyp">
                        <c-select v-model="dialog3.rattyp" style="width:100%" placeholder="请选择Codetable of supported rate types  M-iddle, B-uying, S-elling, I-nput">
                        </c-select>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="rate used" prop="setgll.rat">
                        <c-input  v-model="dialog3.rat"  placeholder="请输入rate used"></c-input>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="Selling Rate" prop="setgll.selrat">
                        <c-input  v-model="dialog3.selrat"  placeholder="请输入Selling Rate"></c-input>
                    </el-form-item>
                </c-col>
                                            
                <c-col :span="12">
                    <span  v-text="dialog3.dcbratlab"   data-path=".setgll.dcbratlab" > </span>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="Document Cur to Base RATe TYPe" prop="setgll.dcbrattyp">
                        <c-select v-model="dialog3.dcbrattyp" style="width:100%" placeholder="请选择Document Cur to Base RATe TYPe">
                        </c-select>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="Document Cur to Base EXTernal RATe" prop="setgll.dcbextrat">
                        <c-input  v-model="dialog3.dcbextrat"  placeholder="请输入Document Cur to Base EXTernal RATe"></c-input>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="Begin-Date of XRT-Rate of CUR" prop="setgll.xrtdatcur">
                        <c-date-picker type="date"  v-model="dialog3.xrtdatcur" style="width:100%"  placeholder="请选择Begin-Date of XRT-Rate of CUR"></c-date-picker>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="" prop="setgll.xrtgetdcb.sdamod.seainf">
                        <c-input  v-model="dialog3.xrtgetdcb.sdamod.seainf"  placeholder="请输入"></c-input>
                    </el-form-item>
                </c-col>
                                            
                <c-col :span="12">
                    <el-form-item label="Middle Rate" prop="setgll.midrat">
                        <c-input  v-model="dialog3.midrat"  placeholder="请输入Middle Rate"></c-input>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <span  v-text="dialog3.scbratlab"   data-path=".setgll.scbratlab" > </span>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="Settle Cur to Base RATe TYPe" prop="setgll.scbrattyp">
                        <c-select v-model="dialog3.scbrattyp" style="width:100%" placeholder="请选择Settle Cur to Base RATe TYPe">
                        </c-select>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="Settle Cur to Base EXTernal RATe" prop="setgll.scbextrat">
                        <c-input  v-model="dialog3.scbextrat"  placeholder="请输入Settle Cur to Base EXTernal RATe"></c-input>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="Begin-Date of XRT-Rate of ACCCUR" prop="setgll.xrtdatacc">
                        <c-date-picker type="date"  v-model="dialog3.xrtdatacc" style="width:100%"  placeholder="请选择Begin-Date of XRT-Rate of ACCCUR"></c-date-picker>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="" prop="setgll.xrtgetscb.sdamod.seainf">
                        <c-input  v-model="dialog3.xrtgetscb.sdamod.seainf"  placeholder="请输入"></c-input>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="Buying Rate" prop="setgll.buyrat">
                        <c-input  v-model="dialog3.buyrat"  placeholder="请输入Buying Rate"></c-input>
                    </el-form-item>
                </c-col>
                </div> -->

wangyanjiao committed
759 760 761 762 763 764 765 766 767 768 769
                        <!-- ---------------------- -->
                        <c-col :span="23" style="height:24px">
                            <el-form-item label="交易信息" class="messageLabel">
                            </el-form-item>
                        </c-col>
                        <c-col :span="23" style="height: 0px;margin-top:-5px">
                            <el-divider></el-divider>
                        </c-col>
                        <c-col :span="24">
                            &nbsp;
                        </c-col>
770

wangyanjiao committed
771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809
                        <c-col :span="12">
                            <c-col :span="24">
                                <el-form-item label="交易主体" prop="setgll.trnman">
                                    <c-select v-model="dialog3.trnman" style="width:100%" placeholder="请选择交易主体">
                                    </c-select>
                                </el-form-item>
                            </c-col>
                            <c-col :span="24">
                                <el-form-item label="TRADE OUT" prop="setgll.trdout">
                                    <c-select v-model="dialog3.trdout" style="width:100%" placeholder="请选择TRADE OUT">
                                    </c-select>
                                </el-form-item>
                            </c-col>

                            <c-col :span="24">
                                <el-form-item label="TRADE IN" prop="setgll.trdint">
                                    <c-select v-model="dialog3.trdint" style="width:100%" placeholder="请选择TRADE IN">
                                    </c-select>
                                </el-form-item>
                            </c-col>
                        </c-col>

                        <c-col :span="12">
                            <c-col :span="24">
                                <el-form-item label="TXT" prop="setgll.txt">
                                    <c-input type="textarea" v-model="dialog3.txt" maxlength="100" show-word-limit
                                        placeholder="请输入TXT"></c-input>
                                </el-form-item>
                            </c-col>
                            <c-col :span="24">
                                <el-form-item label="TXT1" prop="setgll.txt1">
                                    <c-input type="textarea" v-model="dialog3.txt1" maxlength="100" show-word-limit
                                        placeholder="请输入TXT1"></c-input>
                                </el-form-item>
                            </c-col>
                        </c-col>


                        <!-- <c-col :span="12">
810 811 812
                    <c-checkbox v-model="dialog3.modifyflg">Modify flg</c-checkbox>
                </c-col> -->

wangyanjiao committed
813 814 815 816 817 818 819 820




                        <!-- ---------------------- -->
                        <c-col :span="23" style="height:24px">
                            <el-form-item label="交易详情" class="messageLabel">
                            </el-form-item>
821
                        </c-col>
wangyanjiao committed
822 823
                        <c-col :span="23" style="height: 0px;margin-top:-5px">
                            <el-divider></el-divider>
824
                        </c-col>
wangyanjiao committed
825 826
                        <c-col :span="24">
                            &nbsp;
827
                        </c-col>
wangyanjiao committed
828 829 830 831 832 833 834 835 836 837 838

                        <c-col :span="12">
                            <el-form-item label="交易性质">
                                <c-col :span="20">
                                    <c-input v-model="dialog3.trntyp" maxlength="6" placeholder="请输入交易性质"></c-input>
                                </c-col>
                                <c-col :span="4" style="text-align:right">
                                    <c-button size="small" type="primary" icon="el-icon-search" @click="onSetgllCodsel">
                                    </c-button>
                                </c-col>
                            </el-form-item>
839
                        </c-col>
wangyanjiao committed
840 841 842 843 844 845 846 847 848 849 850

                        <c-col :span="12">
                            <el-form-item label="国别代码" prop="setgll.ctycod">
                                <c-col :span="20">
                                    <c-input v-model="dialog3.ctycod" maxlength="3" placeholder="请输入国别代码"></c-input>
                                </c-col>
                                <c-col :span="4" style="text-align:right">
                                    <c-button size="small" type="primary" icon="el-icon-search" @click="onSetgllCtysel">
                                    </c-button>
                                </c-col>
                            </el-form-item>
851
                        </c-col>
wangyanjiao committed
852
                        <!-- <c-col :span="12">
853 854 855 856 857 858 859 860 861 862 863 864 865
                    <el-form-item label="Which MT to beneficiary institution" prop="setgll.sftmt">
                        <c-select v-model="dialog3.sftmt" style="width:100%" placeholder="请选择Which MT to beneficiary institution">
                        </c-select>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="Direct payment one message" prop="setgll.dirindflg">
                        <c-select v-model="dialog3.dirindflg" style="width:100%" placeholder="请选择Direct payment one message">
                        </c-select>
                    </el-form-item>
                </c-col> -->

wangyanjiao committed
866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891

                        <c-col :span="12">
                            <el-form-item label="对方名称" prop="setgll.oppnam">
                                <c-input v-model="dialog3.oppnam" maxlength="100" placeholder="请输入对方名称"></c-input>
                            </el-form-item>
                        </c-col>

                        <c-col :span="12">
                            <el-form-item label="国内地区代码" prop="setgll.discod">
                                <c-input v-model="dialog3.discod" maxlength="6" placeholder="请输入国内地区代码"></c-input>
                            </el-form-item>
                        </c-col>

                        <c-col :span="12">
                            <el-form-item label="对方账号" prop="setgll.oppacc">
                                <c-input v-model="dialog3.oppacc" maxlength="35" placeholder="请输入对方账号"></c-input>
                            </el-form-item>
                        </c-col>

                        <c-col :span="12">
                            <el-form-item label="虚拟号账号" prop="setgll.xzhacc">
                                <c-input v-model="dialog3.xzhacc" maxlength="40" placeholder="请输入虚拟号账号"></c-input>
                            </el-form-item>
                        </c-col>

                        <!-- <c-col :span="12">
892 893 894 895
                    <c-button size="small" type="primary"  @click="onMtdbutButcan">
                        取消
                    </c-button>
                </c-col> -->
wangyanjiao committed
896 897 898 899 900 901 902 903 904 905 906 907 908 909

                        <c-col :span="12">
                            <el-form-item label="对方银行代码" prop="setgll.oppbnk">
                                <c-input v-model="dialog3.oppbnk" maxlength="14" placeholder="请输入对方银行代码"></c-input>
                            </el-form-item>
                        </c-col>

                        <c-col :span="12">
                            <el-form-item label="虚拟号名称" prop="setgll.xzhnam">
                                <c-input v-model="dialog3.xzhnam" maxlength="50" placeholder="请输入虚拟号名称"></c-input>
                            </el-form-item>
                        </c-col>
                    </c-row>
                </el-form>
潘际乾 committed
910 911 912 913
                <span slot="footer" class="dialog-footer">
                    <c-button type="primary" @click="saveDialog3">确 定</c-button>
                    <c-button @click="detpDialogVisible = false">取 消</c-button>
                </span>
914 915 916
            </el-dialog>
        </template>

潘际乾 committed
917 918 919
    </c-row>
</template>
<script>
潘际乾 committed
920
// import Event from "~/model/Ditopn/Event";
wangren committed
921
import commonProcess from "~/mixin/commonProcess";
潘际乾 committed
922 923 924 925 926 927 928 929
import SetpanDialog from "./SetpanDialog.vue";
import Api from "~/service/Api"
import Utils from "~/utils/index"

export default {
    inject: ['root'],
    components: { SetpanDialog },
    props: ["model", "codes"],
wangren committed
930
    mixins: [commonProcess],
潘际乾 committed
931 932 933 934 935 936 937 938 939 940
    data() {
        return {
            dialogVisible: false,
            dialog: {
                payee: "",
                ptydbt: "",
                txtpay: "",
                txtdbt: "",
                CG00005: "",
            },
liuxin committed
941 942 943 944 945 946 947
            newdialog: {
                payee: "",
                ptydbt: "",
                txtpay: "",
                txtdbt: "",
                CG00005: "",
            },
潘际乾 committed
948
            dialog2: {
wangyanjiao committed
949 950
                feetxtinf: "",
                feetxt: "",
潘际乾 committed
951 952
            },
            index: 0,
wangyanjiao committed
953 954 955 956 957 958 959 960
            detpDialogVisible: false,
            rattyp: '',
            dcbrattyp: '',
            scbrattyp: '',
            dialog3: {
                setgrp: {
                    act: {
                        pts: {
961 962 963 964

                        }
                    }
                },
wangyanjiao committed
965 966 967
                actp: {
                    ptsget: {
                        sdamod: {
968 969 970 971 972

                        }
                    }
                },
            },
zhujiazhan committed
973
            ogiamt:{},
潘际乾 committed
974 975 976 977
        };
    },
    methods: {
        //第一个表格
liuxin committed
978
        addRowSetfol() {
liuxin committed
979
            let newRow = { ...this.newdialog };
liuxin committed
980
            this.model.setmod.setfog.setfol.splice(0, 0, newRow);
981
            this.defaultFunction();
潘际乾 committed
982
        },
liuxin committed
983 984
        removeRowSetfol() {
            this.model.setmod.setfog.setfol.shift();
985
            this.defaultFunction();
潘际乾 committed
986 987
        },
        saveDialog() {
liushikai committed
988
            this.dialogVisible = false;
潘际乾 committed
989
            this.model.setmod.setfog.setfol.splice(this.index, 1, this.dialog);
潘际乾 committed
990 991
        },
        // 第二个表格
liuxin committed
992 993 994
        addRowSetfel() {
            let newRow = { ...this.dialog2 };
            this.model.setmod.setfeg.setfel.splice(0, 0, newRow);
995
            this.defaultFunction();
liuxin committed
996 997 998
        },
        removeRowSetfel() {
            this.model.setmod.setfeg.setfel.shift();
999
            this.defaultFunction();
liuxin committed
1000
        },
潘际乾 committed
1001
        detail1(index, row) {
wangyanjiao committed
1002
            this.executeDefault("setfel.det").then(res => {
潘际乾 committed
1003 1004 1005 1006 1007
                this.dialogVisible = true;
                this.dialog = row;
                this.index = index;
            })
        },
wangyanjiao committed
1008 1009
        dispDefault(index) {
            this.executeDefault(`setmod.setfeg.setfel(${index}).mac`).then(res => {
潘际乾 committed
1010 1011 1012
                Utils.copyValueFromVO(this.model, res.data)
            })
        },
hulei committed
1013
        // 第二个表格
潘际乾 committed
1014
        detail2(index, row) {
1015
            const that = this;
wangyanjiao committed
1016 1017
            const rule = "setmod.setfeg.setfel(" + (index + 1) + ").det";
            that.executeRule(rule).then(res => {
1018 1019 1020 1021
                that.$refs.setpanDialog.visiable = true;
                that.$refs.setpanDialog.formData = Object.assign({}, that.model.setmod.setfeg.setfel[index]);
                that.index = index;
                that.dialog2 = row
潘际乾 committed
1022 1023
            })
        },
1024 1025

        // 第三个表格
潘际乾 committed
1026 1027 1028 1029
        saveDialog3() {
            this.detpDialogVisible = false;
            this.model.setmod.setglg.setgll.splice(this.index, 1, this.dialog3)
        },
1030 1031
        async handleDetail(index, row) {
            const that = this;
wangyanjiao committed
1032
            const rule = "setmod.setglg.setgll(" + (index + 1) + ").det";
1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043
            let rtnmsg = await this.executeRule(rule)
            if (rtnmsg.respCode == SUCCESS) {
                that.$refs.detpDialog.visiable = true;
                this.detpDialogVisible = true;
                that.dialog3 = Object.assign({}, that.model.setmod.setglg.setgll[index]);
                that.index = index;
                that.rattyp = that.strCalCode(that.dialog3.rattyp, that.codes.ratetype);
                that.dcbrattyp = that.strCalCode(that.dialog3.dcbrattyp, that.codes.ratetype);
                that.scbrattyp = that.strCalCode(that.dialog3.scbrattyp, that.codes.ratetype);
            }
        },
wangyanjiao committed
1044
        strCalCode(str, code) {
1045
            var result = '';
wangyanjiao committed
1046 1047
            for (let i = 0; i < code.length; i++) {
                if (code[i].value === str) {
1048 1049 1050 1051
                    result = code[i].label;
                    continue;
                }
            }
wangyanjiao committed
1052
            if (result === '') {
1053
                return str;
wangyanjiao committed
1054
            } else {
1055 1056 1057
                return result;
            }
        },
wangyanjiao committed
1058
        onMtdbutButapy() {
1059 1060

        },
wangyanjiao committed
1061
        onActpDet() {
1062 1063

        },
wangyanjiao committed
1064
        onSetgllCodsel() {
1065 1066

        },
wangyanjiao committed
1067
        onMtdbutButcan() {
1068 1069

        },
wangyanjiao committed
1070
        onSetgllCtysel() {
1071 1072

        },
wangyanjiao committed
1073
        onSetgllDetget() {
1074

潘际乾 committed
1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085
        },
        async onSetmodDet() {
            let rtnmsg = await this.executeRule("setmod.det")
            if (rtnmsg.respCode == SUCCESS) {
                //TODO 处理数据逻辑

            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        },
潘际乾 committed
1086
    },
wangyanjiao committed
1087
    created: function () { },
潘际乾 committed
1088 1089
};
</script>
liushikai committed
1090
<style scoped>
wangyanjiao committed
1091
.el-col>>>.el-divider--horizontal {
liushikai committed
1092 1093
    margin-top: 10px;
}
wangyanjiao committed
1094 1095

.formItemLabel>>>.el-form-item__label {
liushikai committed
1096
    text-align: left;
wangyanjiao committed
1097
    font-weight: bold;
liushikai committed
1098
}
wangyanjiao committed
1099 1100

.messageLabel>>>.el-form-item__label {
1101
    text-align: left;
wangyanjiao committed
1102
    font-weight: bold;
1103 1104
    font-size: 12px;
}
潘际乾 committed
1105
</style>