Setpan.vue 12.9 KB
Newer Older
liuxin committed
1
<template>
SunJie committed
2 3 4 5 6 7 8 9 10 11
    <el-row class="eibs-tab">
        <!-- ====================顶部==================== -->
        <el-col :span="6">
            <el-form-item label="参考号" label-width="100px">
                <c-input
                    v-model="model.setmod.ref"
                    maxlength="16"
                    :readonly="true"
                    placeholder="请输入our reference"
                ></c-input>
liuxin committed
12 13
            </el-form-item>
        </el-col>
SunJie committed
14 15 16 17 18 19 20 21
        <el-col :span="6">
            <el-form-item label="结算金额" label-width="100px">
                <c-input
                    v-model="model.setmod.doccur"
                    style="width: 100%"
                    placeholder="CNY"
                    :readonly="true"
                ></c-input>
liuxin committed
22 23 24
            </el-form-item>
        </el-col>

潘际乾 committed
25 26
        <el-col :span="6">
            <el-form-item label="" label-width="20px">
SunJie committed
27 28 29 30 31
                <c-input
                    v-model="model.setmod.docamt"
                    :readonly="true"
                    placeholder="请输入document amount"
                ></c-input>
liuxin committed
32 33 34
            </el-form-item>
        </el-col>

SunJie committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48
        <el-col :span="6">
            <el-form-item label="类型" label-width="100px">
                <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"
                    >
liuxin committed
49
                    </el-option>
liuxin committed
50 51 52 53 54
                </c-select>
            </el-form-item>
        </el-col>

        <!--
liuxin committed
55 56 57 58 59 60 61 62 63
        <el-col :span="12">
        <el-form-item label="自贸区账号">
            <c-input  v-model="model.setmod.zmqacc" maxlength="20"  placeholder="请输入自贸区账号"></c-input>
        </el-form-item>
       </el-col>    
       <el-col :span="6" style="text-align:center">
	    <c-checkbox v-model="model.setmod.xreflg">Recalculate Rates</c-checkbox>
       </el-col> 
       -->
SunJie committed
64
        <el-col :span="3" :offset="21">
潘际乾 committed
65 66
            <el-form-item label="" label-width="20px">
                <c-button size="small" type="primary" @click="onSetmodDet">
liuxin committed
67 68
                    细节
                </c-button>
潘际乾 committed
69
            </el-form-item>
liuxin committed
70
        </el-col>
SunJie committed
71 72
        <!-- ==============中部表格===================== -->

潘际乾 committed
73
        <el-col :span="24">
SunJie committed
74 75 76 77
            <el-form-item
                label="Foreign Commission/Charges:"
                label-width="210px"
            >
liuxin committed
78
            </el-form-item>
liuxin committed
79
        </el-col>
SunJie committed
80 81 82 83 84 85
        <el-col :span="24" style="margin-bottom: 18px">
            <c-table
                style="text-align: center"
                :list="model.setmod.setfog.setfol"
                :paginationShow="false"
            >
1377875331@qq.com committed
86
                <el-table-column label="Payer" prop="ptydbt" width="auto">
SunJie committed
87 88 89 90 91 92 93 94 95 96 97
                    <template slot-scope="scope">
                        <el-select v-model="scope.ptydbt">
                            <el-option
                                v-for="item in codes.ptydbt"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </template>
liuxin committed
98
                </el-table-column>
SunJie committed
99 100 101 102 103 104 105 106 107 108 109 110
                <el-table-column label="Payee" width="auto">
                    <template slot-scope="scope">
                        <el-select v-model="scope.Payee">
                            <el-option
                                v-for="item in codes.Payee"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </template>
liuxin committed
111
                </el-table-column>
1377875331@qq.com committed
112
                <el-table-column label="Source" prop="src" width="auto">
liuxin committed
113
                </el-table-column>
1377875331@qq.com committed
114
                <el-table-column label="Disp" prop="dsp" width="auto">
liuxin committed
115
                </el-table-column>
SunJie committed
116 117 118 119 120
                <el-table-column
                    label="Text for Payer"
                    prop="txtdbt"
                    width="auto"
                >
liuxin committed
121
                </el-table-column>
SunJie committed
122 123 124 125 126
                <el-table-column
                    label="Text for Payee"
                    prop="txtpay"
                    width="auto"
                >
liuxin committed
127
                </el-table-column>
1377875331@qq.com committed
128
                <el-table-column label="Currency" prop="cur" width="auto">
SunJie committed
129 130 131 132 133 134 135 136 137 138 139
                    <template slot-scope="scope">
                        <el-select v-model="scope.cur">
                            <el-option
                                v-for="item in codes.cur"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </template>
liuxin committed
140
                </el-table-column>
1377875331@qq.com committed
141
                <el-table-column label="Amount" prop="amt" width="auto">
liuxin committed
142
                </el-table-column>
1377875331@qq.com committed
143
                <el-table-column label="" prop="det" width="auto">
SunJie committed
144 145 146 147 148 149 150 151 152 153 154 155 156 157
                    <template slot-scope="scope" slot="header">
                        <el-button
                            class="el-icon-circle-plus-outline"
                            size="mini"
                            @click="addRow(scope)"
                        >
                        </el-button>
                        <el-button
                            class="el-icon-remove-outline"
                            size="mini"
                            @click="removeRow(scope)"
                        >
                        </el-button>
                    </template>
liuxin committed
158 159
                </el-table-column>
            </c-table>
liuxin committed
160
        </el-col>
SunJie committed
161 162 163
        <!--=================== Own Commission/Charges:================== -->
        <el-col :span="24" style="text-align: left">
            <el-form-item label="Own Commission/Charges:"> </el-form-item>
liuxin committed
164
        </el-col>
SunJie committed
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
        <el-col :span="24" style="margin-bottom: 18px">
            <c-table
                style="text-align: center"
                :list="model.setmod.setfeg.setfel"
                :paginationShow="false"
            >
                <el-table-column label="Role" width="auto">
                    <template #default="scope">
                        <el-select v-model="scope.row.rol">
                            <el-option
                                v-for="item in codes.setfelRol"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </template>
liuxin committed
183
                </el-table-column>
1377875331@qq.com committed
184
                <el-table-column label="Code" prop="feecod" width="auto">
liuxin committed
185
                </el-table-column>
1377875331@qq.com committed
186
                <el-table-column label="Source" prop="src" width="auto">
liuxin committed
187
                </el-table-column>
SunJie committed
188 189 190 191 192 193 194 195 196 197 198 199
                <el-table-column label="Disp" width="auto">
                    <template #default="scope">
                        <el-select v-model="scope.row.dsp">
                            <el-option
                                v-for="item in codes.setfeldsp"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </template>
liuxin committed
200
                </el-table-column>
1377875331@qq.com committed
201
                <el-table-column label="Units" prop="unt" width="auto">
liuxin committed
202
                </el-table-column>
SunJie committed
203 204 205 206 207
                <el-table-column
                    label="Long Fee Text"
                    prop="feetxtinf"
                    width="auto"
                >
liuxin committed
208
                </el-table-column>
1377875331@qq.com committed
209
                <el-table-column label="Currency" prop="cur" width="auto">
liuxin committed
210
                </el-table-column>
SunJie committed
211 212 213 214 215
                <el-table-column
                    label="Original Amount"
                    prop="ogiamt"
                    width="auto"
                >
liuxin committed
216
                </el-table-column>
1377875331@qq.com committed
217
                <el-table-column label="Fee Amount" prop="amt" width="auto">
liuxin committed
218
                </el-table-column>
1377875331@qq.com committed
219
                <el-table-column label="Details" prop="det" width="auto">
liuxin committed
220 221
                </el-table-column>
            </c-table>
liuxin committed
222
        </el-col>
SunJie committed
223 224
        <el-col :span="24" style="text-align: left">
            <el-form-item label="Settlement:" label-width="100px">
liuxin committed
225
            </el-form-item>
liuxin committed
226
        </el-col>
SunJie committed
227 228 229 230 231 232
        <el-col :span="24" style="margin-bottom: 18px">
            <c-table
                style="text-align: center"
                :list="model.setmod.setglg.setgll"
                :paginationShow="false"
            >
1377875331@qq.com committed
233
                <el-table-column label="Mod" prop="modflg" width="auto">
liuxin committed
234
                </el-table-column>
1377875331@qq.com committed
235
                <el-table-column label="Role" prop="rol" width="auto">
liuxin committed
236
                </el-table-column>
1377875331@qq.com committed
237
                <el-table-column label="in" prop="acccur" width="auto">
SunJie committed
238 239 240 241 242 243 244 245 246 247 248
                    <template slot-scope="scope">
                        <el-select v-model="scope.acccur">
                            <el-option
                                v-for="item in scope.acccur"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </template>
liuxin committed
249
                </el-table-column>
SunJie committed
250 251 252 253 254
                <el-table-column
                    label="Amount Paid"
                    prop="fmtaccamt"
                    width="auto"
                >
liuxin committed
255
                </el-table-column>
SunJie committed
256 257 258 259 260 261 262 263 264 265 266 267
                <el-table-column label="Disp."  width="auto">
                    <template #default="scope">
                        <el-select v-model="scope.row.dsp">
                            <el-option
                                v-for="item in codes.setglldsp"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </template>
liuxin committed
268
                </el-table-column>
1377875331@qq.com committed
269
                <el-table-column label="Account" prop="act" width="auto">
SunJie committed
270 271 272 273 274 275 276 277 278 279 280
                    <template slot-scope="scope">
                        <el-select v-model="scope.act">
                            <el-option
                                v-for="item in scope.act"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </template>
liuxin committed
281
                </el-table-column>
1377875331@qq.com committed
282
                <el-table-column label="C" prop="debcdtflg" width="auto">
liuxin committed
283
                </el-table-column>
1377875331@qq.com committed
284
                <el-table-column label="Curr." prop="cur" width="auto">
liuxin committed
285
                </el-table-column>
SunJie committed
286 287 288 289 290
                <el-table-column
                    label="Original Amount"
                    prop="fmtamt"
                    width="auto"
                >
liuxin committed
291
                </el-table-column>
1377875331@qq.com committed
292
                <el-table-column label="Rate" prop="rat" width="auto">
liuxin committed
293
                </el-table-column>
SunJie committed
294
                <el-table-column label="" width="auto"> </el-table-column>
liuxin committed
295
            </c-table>
liuxin committed
296 297 298
        </el-col>

        <el-col :span="12">
SunJie committed
299 300
            <span v-text="model.setmod.retmsg" data-path=".setmod.retmsg">
            </span>
liuxin committed
301 302 303
        </el-col>

        <el-col :span="12">
SunJie committed
304 305
            <span v-text="model.setmod.zmqacclab" data-path=".setmod.zmqacclab">
            </span>
liuxin committed
306 307 308
        </el-col>

        <el-col :span="12">
SunJie committed
309 310 311 312 313
            <span
                v-text="model.setmod.setglg.labdspflg"
                data-path=".setmod.setglg.labdspflg"
            >
            </span>
liuxin committed
314
        </el-col>
SunJie committed
315
    </el-row>
liuxin committed
316 317
</template>
<script>
SunJie committed
318
import Event from "~/model/Ditopn/Event";
liuxin committed
319 320

export default {
SunJie committed
321 322 323
    props: ["model", "codes"],
    data() {
        return{};
liuxin committed
324
    },
SunJie committed
325 326 327 328 329 330 331 332 333 334 335 336
    methods: {
        ...Event,
        addRow() {
            let newRow = {};
            this.model.setmod.setfog.setfol.push(newRow);
        },
        removeRow() {
            this.model.setmod.setfog.setfol.pop();
        },
    },
    created: function () {},
};
liuxin committed
337 338 339
</script>
<style>
</style>