Setp.vue 16.4 KB
Newer Older
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
<template>
    <div class="eibs-tab">

        <!-- <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop="botp.recget.sdamod.dadsnd">
            <c-input  v-model="model.botp.recget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col> -->
        <c-col :span="24">
            <c-col :span="11">
                <el-form-item label="Reference" prop="bodgrp.rec.ownref">
                    <c-fullbox>
                        <c-input v-model="model.bodgrp.rec.ownref" maxlength="16" placeholder="请输入Reference"
                            style="width: 100%" disabled></c-input>
                        <template slot="footer">
                            <c-button style="margin-left:8px; padding: 0 12px" size="small" type="primary" @click="">
                                <span style="font-family: '宋体'; font-weight: bold">i</span>
                            </c-button>
                        </template>
                    </c-fullbox>
                </el-form-item>
            </c-col>
            <c-col :span="11" :offset="1">
                <el-form-item label="Name" prop="bodgrp.rec.nam" style="width: 100%">
                    <c-input v-model="model.bodgrp.rec.nam" maxlength="40" style="width: 100%" placeholder="请输入Name"
                        disabled></c-input>
                </el-form-item>
            </c-col>
        </c-col>

        <!-- <c-col :span="12">
            <el-form-item label="" prop="botp.recget.sdamod.seainf">
                <c-input v-model="model.botp.recget.sdamod.seainf" placeholder="请输入"></c-input>
            </el-form-item>
        </c-col> -->

nanrui committed
37 38
        <c-col :span="24">
            <c-col :span="11">
39
                <c-col :span="12">
nanrui committed
40 41 42 43 44 45
                    <el-form-item label="Document Amount" prop="bodgrp.cbs.max.cur">
                        <c-input v-model="model.bodgrp.cbs.max.cur" style="width:100%" placeholder="请选择Document Amount"
                            disabled>
                        </c-input>
                    </el-form-item>
                </c-col>
46 47
                <c-col :span="11" :offset="1">
                    <el-form-item label="" prop="bodgrp.cbs.max.amt" label-width="0">
nanrui committed
48 49 50 51 52 53 54 55 56 57
                        <c-input v-model="model.bodgrp.cbs.max.amt" placeholder="请输入Document Amount" disabled></c-input>
                    </el-form-item>
                </c-col>
            </c-col>
            <c-col :span="11" :offset="1">
                <el-form-item label="Drawer Ref." prop="bodgrp.drr.pts.ref">
                    <c-input v-model="model.bodgrp.drr.pts.ref" maxlength="16" placeholder="请输入Drawer" disabled>
                    </c-input>
                </el-form-item>
            </c-col>
58 59
        </c-col>

nanrui committed
60 61
        <c-col :span="24">
            <c-col :span="11">
62
                <c-col :span="12">
63
                    <el-form-item label="Open Amount" prop="bodgrp.cbs.opn1.cur">
nanrui committed
64 65 66 67 68
                        <c-input v-model="model.bodgrp.cbs.opn1.cur" style="width:100%"
                            placeholder="请选择Warehouse/Insurance" disabled>
                        </c-input>
                    </el-form-item>
                </c-col>
69 70
                <c-col :span="11" :offset="1">
                    <el-form-item label="" prop="bodgrp.cbs.opn1.amt" label-width="0">
nanrui committed
71 72 73 74 75 76 77 78 79 80 81 82
                        <c-input v-model="model.bodgrp.cbs.opn1.amt" style="width:100%" placeholder="请输入Open Amount"
                            disabled></c-input>
                    </el-form-item>
                </c-col>
            </c-col>
            <c-col :span="11" :offset="1">
                <c-col :span="24">
                    <el-form-item label="" prop="bodgrp.drr.pts.nam">
                        <c-input v-model="model.bodgrp.drr.pts.nam" placeholder="bodgrp.drr.pts.nam" disabled></c-input>
                    </el-form-item>
                </c-col>
            </c-col>
83 84 85
        </c-col>


nanrui committed
86 87
        <c-col :span="24">
            <c-col :span="11">
nanrui committed
88
                <el-form-item label="Collection Condition" prop="bodgrp.rec.doctypcod">
89 90 91 92 93 94 95 96 97
                    <c-select v-model="model.bodgrp.rec.doctypcod" style="width: 100%"
                        placeholder="请选择Payment Condition" disabled>
                        <el-option v-for="item in codes.doctypcod" :key="item.value" :label="item.label"
                            :value="item.value">
                        </el-option>
                    </c-select>
                </el-form-item>

                <!-- <el-form-item label="Collection Condition" prop="bodgrp.rec.doctypcod">
nanrui committed
98 99 100
                    <c-input v-model="model.bodgrp.rec.doctypcod" style="width:100%"
                        placeholder="请选择Collection Condition" disabled>
                    </c-input>
101
                </el-form-item> -->
nanrui committed
102
            </c-col>
103

nanrui committed
104 105 106 107 108 109
            <c-col :span="11" :offset="1">
                <el-form-item label="Collecting Bank Ref." prop="bodgrp.col.pts.ref">
                    <c-input v-model="model.bodgrp.col.pts.ref" maxlength="16" placeholder="请输入Collecting Bank"
                        disabled></c-input>
                </el-form-item>
            </c-col>
110 111
        </c-col>

nanrui committed
112 113 114
        <c-col :span="24">
            <c-col :span="11">
                <c-col :span="24">
nanrui committed
115
                    <el-form-item label="Document Set Status" prop="bodgrp.rec.docsta">
116 117 118 119 120 121 122 123 124 125
                        <c-select v-model="model.bodgrp.rec.docsta" style="width: 100%"
                            placeholder="请输入Document Set Status" disabled>
                            <el-option v-for="item in codes.docstabot" :key="item.value" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </c-select>
                    </el-form-item>


                    <!-- <el-form-item label="Document Set Status" prop="bodgrp.rec.docsta">
nanrui committed
126 127 128
                        <c-input v-model="model.bodgrp.rec.docsta" maxlength="40" placeholder="请输入Document Set Status"
                            disabled>
                        </c-input>
129
                    </el-form-item> -->
nanrui committed
130 131 132 133 134
                </c-col>
            </c-col>
            <c-col :span="11" :offset="1">
                <c-col :span="24">
                    <el-form-item label="" prop="bodgrp.col.pts.nam">
135 136
                        <c-input v-model="model.bodgrp.col.pts.nam" maxlength="40" placeholder="bodgrp.col.pts.nam"
                            disabled>
nanrui committed
137 138 139 140
                        </c-input>
                    </el-form-item>
                </c-col>
            </c-col>
141 142
        </c-col>

nanrui committed
143 144
        <c-col :span="24">
            <c-col :span="11">
145 146 147 148 149 150 151 152
                <c-col :span="12">
                    <el-form-item label="Tenor Specification" prop="bodgrp.rec.matdat">
                        <c-input v-model="model.bodgrp.rec.matdat" placeholder="" disabled>
                        </c-input>
                    </el-form-item>
                </c-col>
                <c-col :span="9">
                    <el-form-item label="" prop="bodgrp.rec.matpercnt">
nanrui committed
153 154 155 156
                        <c-input v-model="model.bodgrp.rec.matpercnt" placeholder="请输入Tenor Specification" disabled>
                        </c-input>
                    </el-form-item>
                </c-col>
157 158
                <c-col :span="2" :offset="1">
                    <span>Days</span>
nanrui committed
159 160
                </c-col>
                <c-col :span="24">
nanrui committed
161
                    <el-form-item label="" prop="bodgrp.rec.matperbeg">
162 163 164 165 166 167 168 169 170 171
                        <c-select v-model="model.bodgrp.rec.matperbeg" style="width: 100%"
                            placeholder="请选择Start of Maturity Period MATBEG" disabled>
                            <el-option v-for="item in codes.matperbeg" :key="item.value" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </c-select>
                    </el-form-item>


                    <!-- <el-form-item label="" prop="bodgrp.rec.matperbeg">
nanrui committed
172 173 174
                        <c-input v-model="model.bodgrp.rec.matperbeg" style="width:100%"
                            placeholder="请选择Start of Maturity Period MATBEG" disabled>
                        </c-input>
175
                    </el-form-item> -->
nanrui committed
176
                </c-col>
177 178 179
                <!-- <c-col :span="5">
                    <span v-text="model.bodgrp.rec.matpertyp" data-path=".bodgrp.rec.matpertyp"> </span>
                </c-col> -->
nanrui committed
180
            </c-col>
181

nanrui committed
182
            <c-col :span="11" :offset="1">
183 184 185 186 187 188
                <c-col :span="24">
                    <el-form-item label="Drawee Ref." prop="bodgrp.dre.pts.ref">
                        <c-input v-model="model.bodgrp.dre.pts.ref" maxlength="16" disabled>
                        </c-input>
                    </el-form-item>
                </c-col>
nanrui committed
189 190
                <c-col :span="24">
                    <el-form-item label="" prop="bodgrp.dre.pts.nam">
191 192
                        <c-input v-model="model.bodgrp.dre.pts.nam" maxlength="40" placeholder="bodgrp.dre.pts.nam"
                            disabled>
nanrui committed
193 194 195 196
                        </c-input>
                    </el-form-item>
                </c-col>
            </c-col>
197 198
        </c-col>

nanrui committed
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
        <c-col :span="24">
            <c-col :span="11">
                <c-col :span="12">
                    <el-form-item label="Order Date" prop="bodgrp.rec.rcvdat">
                        <c-date-picker type="date" v-model="model.bodgrp.rec.rcvdat" style="width:100%"
                            placeholder="请选择Order Date" disabled></c-date-picker>
                    </el-form-item>
                </c-col>
                <c-col :span="12">
                    <el-form-item label="Presentation Date" prop="bodgrp.rec.predat">
                        <c-date-picker type="date" v-model="model.bodgrp.rec.predat" style="width:100%"
                            placeholder="请选择Presentation Date" disabled></c-date-picker>
                    </el-form-item>
                </c-col>
            </c-col>
214
        </c-col>
215
        <c-col :span="24" style="margin-top:15px;border-top:2px solid #ddd;padding-top:15px">
nanrui committed
216 217 218
            <c-col :span="11">
                <c-col :span="12">
                    <el-form-item label="Amount Accepted" prop="setmod.doccur">
219 220
                        <c-input v-model="model.setmod.doccur" style="width:100%" placeholder="请选择document currency"
                            disabled>
nanrui committed
221 222 223 224 225
                        </c-input>
                    </el-form-item>
                </c-col>
                <c-col :span="11" :offset="1">
                    <el-form-item label-width="0" prop="setmod.docamt">
226
                        <c-input v-model="model.setmod.docamt" placeholder="请输入document amount" :disabled="model.bodgrp.rec.focflg? true:false">
nanrui committed
227
                        </c-input>
nanrui committed
228 229 230
                    </el-form-item>
                </c-col>
            </c-col>
231
        </c-col>
nanrui committed
232 233 234 235 236 237 238
        <!-- <c-col :span="12">
            <span v-text="model.botp.matp.mattxtlab" data-path=".botp.matp.mattxtlab"> </span>
        </c-col> -->
        <!-- <c-col :span="12">
            <el-form-item label="Maturity Date" prop="bodgrp.rec.matdat">
                <c-date-picker type="date" v-model="model.bodgrp.rec.matdat" style="width:100%"
                    placeholder="请选择Maturity Date"></c-date-picker>
239
            </el-form-item>
nanrui committed
240 241
        </c-col> -->
        <!-- <c-col :span="12">
242 243 244 245
            <el-form-item label="currency discount paid back" prop="bptbck.dscbckcur">
                <c-input v-model="model.bptbck.dscbckcur" maxlength="3" placeholder="请输入currency discount paid back">
                </c-input>
            </el-form-item>
nanrui committed
246
        </c-col> -->
nanrui committed
247
        <c-col :span="24" style="margin-top: 30px">
nanrui committed
248
            <span style="font-size:14px;">Bills to Pay back:</span>
249
        </c-col>
nanrui committed
250
        <c-col :span="24" style="margin-top: -10px">
251
            <c-col :span="12">
nanrui committed
252
                <c-edit-table :model="model" v-bind="docgrd" style="margin-left:-30px">
253 254 255 256 257 258
                </c-edit-table>
            </c-col>
        </c-col>
        <c-col :span="24">
            <c-col :span="11">
                <c-istream-table ref="table" :list="model.liaall.tenstm.rows || []" :columns="stmData.columns"
nanrui committed
259
                    :showSelection="true" v-on:multipleSelect="multipleSelect" prop="liaall.tenstm">
260 261
                </c-istream-table>
            </c-col>
262 263
        </c-col>
        <!-- <c-col :span="24">
264 265
            <div class="e-table-wrapper">
                <el-table :data="model.bptbck.bptbckg" style="width: 100%">
266
                    <el-table-column prop="ownref" label="owner" sortable width="100">
267
                    </el-table-column>
268
                    <el-table-column prop="opncur" label="opncur" sortable width="100">
269
                    </el-table-column>
270
                    <el-table-column prop="opnamt" label="opnamt" sortable width="100">
271
                    </el-table-column>
272
                    <el-table-column prop="bckamt" label="bckamt" sortable width="100">
273
                    </el-table-column>
274
                    <el-table-column prop="butcal" label="butcal" sortable width="100">
275
                    </el-table-column>
276 277
                </el-table> -->
        <!-- <el-pagination
278 279 280
                 layout="prev, pager, next"
                 :total="pager.bptbck_bptbckg.total">
              </el-pagination> -->
281 282
        <!-- </div>
        </c-col> -->
283

nanrui committed
284
        <!-- <c-col :span="12">
285 286 287
            <el-form-item label="Tenor Stream" prop="liaall.tenstm">
                <c-input v-model="model.liaall.tenstm" placeholder="请输入Tenor Stream"></c-input>
            </el-form-item>
nanrui committed
288
        </c-col> -->
289 290 291 292 293 294 295 296 297 298 299 300 301 302
    </div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Botacc/Event"

export default {
    inject: ['root'],
    props: ["model", "codes"],
    mixins: [commonProcess],
    data() {
        return {
303 304 305 306 307 308 309 310 311 312 313
            stmData: {
                columns: [
                    '1 1 "Type" 80',
                    '2 2 "Dbt" 80',
                    '3 3 "Cdt" 80',
                    '4 4 "Cur" 80',
                    '5 5 "Amt" 113 2 8 1 4',
                    // '6 6 "Mat.Dat." 80 4 7 1',
                    { index: 6, position: 6, width: 113, render: (item, scope) => { return scope.row[item.prop] === 'null' ? '' : scope.row[item.prop] }, label: 'Mat.Dat.' },
                ],
            },
314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
            docgrd: {
                columns: [{
                    title: "Reference",
                    width: "80px",
                    dataIndex: "ownref",
                    show: "input",
                },
                {
                    title: "Cur",
                    width: "80px",
                    dataIndex: "opncur",
                    show: "input",
                },
                {
                    title: "Open Amount",
329
                    width: "200px",
330 331 332 333 334
                    dataIndex: "opnamt",
                    show: "input",
                },
                {
                    title: "Amount Paid",
335
                    width: "200px",
336 337 338 339 340 341
                    dataIndex: "bckamt",
                    show: "input",
                },
                ],
                urls: "bptbck.bptbckg.docgrd",
            },
342 343
        }
    },
344 345
    methods: {
        ...Event,
nanrui committed
346 347 348 349 350 351 352 353
        async multipleSelect(selection) {
            if (selection.length > 1) {
                this.$notify({
                    title: "error",
                    message: "You cannot select more than one tenor",
                    type: "error",
                });
            } else {
nanrui committed
354
                let chkIds;
nanrui committed
355
                if (selection.length === 0) {
nanrui committed
356
                    chkIds = [];
nanrui committed
357 358 359
                    this.model.setmod.docamt = "0.000";
                    this.model.liaall.tensetstm.rows = [];
                } else {
nanrui committed
360
                    chkIds = [selection[0] + 1];
nanrui committed
361 362 363
                }
                //
                console.log(this.model.liaall.tensetstm);
nanrui committed
364
                let params = { chkDst: "liaall.tenstm", chkIds };
nanrui committed
365 366 367 368 369 370 371 372
                const rtnmsg = await this.executeRule("liaall.tenstm", params);
                if (rtnmsg.respCode == SUCCESS) {
                    this.updateModel(rtnmsg.data);
                } else {
                    this.$notify.error({ title: "错误", message: "服务请求失败!" });
                }
            }
        },
373
    },
374 375 376 377
}
</script>
<style>
</style>