Sel.vue 12.5 KB
Newer Older
cl committed
1 2
<template>
    <div class="eibs-tab">
nanrui committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
        <c-list-search @form-reset="handleReset" @form-search="handleSearch">
            <!-- 持续展示区 -->
            <template v-slot="searchSlot">
                <el-form class="m-table-search-form" ref="paramsForm" :inline="true" label-position="right"
                    label-width="110px" size="small">
                    <c-row>
                        <c-col :span="24">
                            <c-col :span="11">
                                <c-col :span="20">
                                    <el-form-item label="Batch No." prop="cldgrp.rec.ownref" style="width:100%">
                                        <c-input v-model="model.cldgrp.rec.ownref" maxlength="16"
                                            placeholder="请输入Reference" style="width:100%" disabled>
                                        </c-input>
                                    </el-form-item>
                                </c-col>
                                <c-col :span="4" style="text-align:right">
                                    <c-button size="small" type="primary" @click="onCltpButgetref">
                                        获取
                                    </c-button>
                                </c-col>
                            </c-col>
                            <c-col :span="11" :offset="1">
                                <el-form-item label="Name" prop="cldgrp.rec.nam" style="width:100%">
                                    <c-input v-model="model.cldgrp.rec.nam" maxlength="40"
                                        placeholder="请输入Name of CC contract">
                                    </c-input>
                                </el-form-item>
                            </c-col>
                        </c-col>
                        <c-col :span="24">
                            <c-col :span="11">
                                <el-form-item label="Payment Disposition" prop="cldgrp.rec.colflg" style="width:100%">
                                    <c-select v-model="model.cldgrp.rec.colflg" style="width: 100%" maxlength="1"
                                        placeholder="请输入Payment Disposition">
                                        <el-option v-for="item in codes.colflg" :key="item.value" :label="item.label"
                                            :value="item.value">
                                        </el-option>
                                    </c-select>
                                </el-form-item>
                            </c-col>
                            <c-col :span="11" :offset="1">
                                <el-form-item label="Value Date" prop="cldgrp.rec.valdat" style="width:100%">
                                    <c-col :span="11">
                                        <c-date-picker type="date" v-model="model.cldgrp.rec.valdat" style="width:100%"
                                            placeholder="请选择Value Date"></c-date-picker>
                                    </c-col>
                                    <c-col :span="2" style="text-align: center">
                                        <label style="display: inline-block; width: 100%">Date</label>
                                    </c-col>
                                    <c-col :span="11">
                                        <c-date-picker type="date" v-model="model.cldgrp.rec.credat" style="width:100%"
                                            placeholder="请选择Date of creation"></c-date-picker>
                                    </c-col>
                                </el-form-item>
                            </c-col>
                        </c-col>
                        <c-col :span="24">
                            <c-col :span="11">
                                <el-form-item label="Total Row Count" prop="rowcntr" style="width:100%">
                                    <c-input v-model="model.rowcntr" placeholder="请输入Total Row Count" disabled>
                                    </c-input>
                                </el-form-item>
                            </c-col>
                            <c-col :span="11" :offset="1">
                                <el-form-item label="Currency" prop="cur" style="width:100%">
                                    <c-select v-model="model.cur" style="width: 100%" placeholder="请选择币种">
                                        <el-option v-for="item in codes.curtxt1" :key="item.value" :label="item.label"
                                            :value="item.value">
                                        </el-option>
                                    </c-select>
                                </el-form-item>
                            </c-col>
                        </c-col>
                        <c-col :span="24">
                            <c-col :span="11">
                                <el-form-item label="Amount" prop="amount" style="width: 100%">
                                    <c-input v-model="model.amount" placeholder="请输入AMOUNT" disabled></c-input>
                                </el-form-item>
                            </c-col>
                            <c-col :span="11" :offset="1">
                                <el-form-item label="Register Ref." prop="cldgrp.rec.regref" style="width: 100%">
                                    <c-input v-model="model.cldgrp.rec.regref" tyle="width: 100%" maxlength="16"
                                        placeholder="请输入Register Ref." disabled></c-input>
                                </el-form-item>
                            </c-col>
                        </c-col>
                        <c-col :span="24">
                            <c-col :span="11">
                                <el-form-item label="Item Count" prop="cldgrp.rec.count" style="width: 100%">
                                    <c-input v-model="model.cldgrp.rec.count" placeholder="请输入ITEM COUNT" disabled>
                                    </c-input>
                                </el-form-item>
                            </c-col>
                            <c-col :span="11" :offset="1">
                                <el-form-item label="Actual Items" prop="items" style="width:100%">
                                    <c-input v-model="model.items" placeholder="请输入Item Count"></c-input>
                                </el-form-item>
                            </c-col>
                        </c-col>
cl committed
102

nanrui committed
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
                        <c-col :span="24">
                            <c-col :span="11">
                                <c-col :span="20">
                                    <el-form-item label="Collection Bank" prop="colbnk" style="width:100%">
                                        <c-input v-model="model.colbnk" style="width:100%"
                                            placeholder="请选择Collection Bank" :disabled="model.cldgrp.rec.colflg == 'G'">
                                        </c-input>
                                    </el-form-item>
                                </c-col>
                                <c-col :span="4" style="text-align:right">
                                    <c-button size="small" type="primary" @click="onGet" :disabled="model.cldgrp.rec.colflg == 'G'">
                                        Get Swt
                                    </c-button>
                                </c-col>
                            </c-col>
                            <c-col :span="11" :offset="1">
                                <el-form-item label="Collection Method" prop="colmet" style="width:100%">
                                    <c-input v-model="model.colmet" style="width:100%"
                                        placeholder="请选择Collection Method" disabled></c-input>
                                </el-form-item>
                            </c-col>
                        </c-col>
cl committed
125

nanrui committed
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
                        <c-col :span="24">
                            <c-col :span="11">
                                <c-col :span="20">
                                    <el-form-item label="Extkey" prop="cldgrp.col.pts.extkey" style="width:100%">
                                        <c-input v-model="model.cldgrp.col.pts.extkey" maxlength="16"
                                            placeholder="请输入External Key of Address"
                                            @keyup.enter.native="showGridPromptDialog('cldgrp.col.pts.extkey')">
                                        </c-input>
                                    </el-form-item>
                                </c-col>
                                <c-col :span="4" style="text-align:right">
                                    <!-- <el-form-item label="" label-width="15px" style="text-align:right"> -->
                                    <!-- <c-button size="small" type="primary;width:10%" @click="onSeainf('cldgrp.col.pts.extkey')">i</c-button> -->
                                    <c-button size="small" type="primary">
                                        Details
                                    </c-button>
                                    <!-- </el-form-item> -->
                                </c-col>
                            </c-col>
                        </c-col>
cl committed
146

nanrui committed
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
                        <c-col :span="24">
                            <c-col :span="11">
                                <el-form-item label="Address Block" prop="cldgrp.col.pts.nam" style="width:100%">
                                    <c-input type="textarea" :rows="4" v-model="model.cldgrp.col.pts.nam" maxlength="35"
                                        disabled show-word-limit placeholder="请输入Address Block"></c-input>
                                </el-form-item>
                            </c-col>
                            <c-col :span="11" :offset="1">
                                <el-form-item label="Coll Bank Ref" prop="cldgrp.rec.colref" style="width:100%">
                                    <c-input v-model="model.cldgrp.rec.colref" maxlength="16"
                                        placeholder="请输入COLL BANK REF"></c-input>
                                </el-form-item>
                            </c-col>
                        </c-col>
                    </c-row>
                </el-form>
            </template>
        </c-list-search>
165
        <c-col :span="24">
nanrui committed
166 167
            <c-edit-table :model="model" v-bind="docgrd">
            </c-edit-table>
cl committed
168 169 170 171
        </c-col>
    </div>
</template>
<script>
172 173 174 175 176 177 178 179 180 181 182
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cltdav/Event"

export default {
    inject: ['root'],
    props: ["model", "codes"],
    mixins: [commonProcess],
    data() {
        return {
nanrui committed
183 184
            docgrd: {
                columns: [
185 186 187 188 189 190
                    {
                        title: "Check Number",
                        width: "120px",
                        dataIndex: "chcknum",
                        show: "text",
                    },
nanrui committed
191 192
                    {
                        title: "Our Reference",
193
                        width: "120px",
nanrui committed
194 195 196 197 198
                        dataIndex: "ownref",
                        show: "text",
                    },
                    {
                        title: "Description",
199
                        width: "220px",
nanrui committed
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
                        dataIndex: "nam",
                        show: "text",
                    },
                    {
                        title: "Presenter",
                        width: "200px",
                        dataIndex: "prenam",
                        show: "text",
                    },
                    {
                        title: "cur",
                        width: "100px",
                        dataIndex: "cur",
                        show: "text",
                    },
                    {
                        title: "Amount",
217
                        width: "150px",
nanrui committed
218 219 220 221 222 223 224 225 226 227 228
                        dataIndex: "amt",
                        show: "text",
                    },
                    {
                        title: "Select",
                        width: "50px",
                        dataIndex: "selflg",
                        show: "checkbox",
                    },

                ],
229
                urls: "bptbck.bptbckg",
nanrui committed
230
            },
cl committed
231 232

        }
233
    },
nanrui committed
234 235 236 237 238 239
    methods: {
        ...Event,
        multipleSelect() {
            console.log(123);
        }
    },
240 241
    created: function () {

cl committed
242
    }
243
}
cl committed
244 245
</script>
<style>
nanrui committed
246

cl committed
247
</style>