Ovwp.vue 11.6 KB
Newer Older
xsh committed
1 2 3 4 5 6 7
<template>
    <div class="eibs-tab">

        <!-- =================顶部====================== -->
        <c-col :span="24">
            <c-col :span="8">
                <el-form-item label="Reference" prop="bcdgrp.rec.ownref">
xsh committed
8
                    <c-input  v-model="model.bcdgrp.rec.ownref" maxlength="16" placeholder="Reference" disabled ></c-input>
xsh committed
9 10 11 12 13 14 15 16 17
                </el-form-item>
            </c-col>
            <c-col :span="4">
                <el-form-item label="" label-width="15px">
                    <c-button size="small" type="primary;width:10%" @click="onSeainf">i</c-button>
                </el-form-item>
            </c-col>
            <c-col :span="11">
                <el-form-item label="Name" prop="bcdgrp.rec.nam">
xsh committed
18
                    <c-input  v-model="model.bcdgrp.rec.nam" maxlength="40" placeholder="Name" disabled></c-input>
xsh committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
                </el-form-item>
            </c-col>
        </c-col>
        <!-- ====================左边======================= -->
        <c-col :span="11">
            <c-col :span="24">
                <c-col :span="16">
                    <el-form-item label="Responsible User" prop="bctp.usr.extkey">
                        <c-input v-model="model.bctp.usr.extkey" style="width: 100%" maxlength="8"
                            placeholder="请输入Responsible User"></c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="4">
                    <el-form-item label="" label-width="15px">
                        <c-button size="small" style="text-align: left" type="primary;width:10%" @click="onSeainf">i
                        </c-button>
                    </el-form-item>
                </c-col>
            </c-col>
            <c-col :span="24">
                <c-col :span="12">
                    <el-form-item label="Document Amount" prop="bcdgrp.cbs.max.cur">
                        <c-select v-model="model.bcdgrp.cbs.max.cur" style="width:100%" placeholder="CUR">
xsh committed
43 44
                          <el-option v-for="item in codes.cur" :key="item.value" :label="item.label" :value="item.value">
                          </el-option>
xsh committed
45 46 47 48 49 50
                        </c-select>
                    </el-form-item>
                </c-col>

                <c-col :span="12">
                    <el-form-item label="" style="text-align: left" label-width="20px" prop="bcdgrp.cbs.max.amt">
xsh committed
51
                        <c-input-currency v-model="model.bcdgrp.cbs.max.amt" placeholder="请输入Document Amount"></c-input-currency>
xsh committed
52 53 54 55 56 57
                    </el-form-item>
                </c-col>
            </c-col>
            <c-col :span="24">
                <c-col :span="12">
                    <el-form-item label="Open Amount" prop="bcdgrp.cbs.opn1.cur">
xsh committed
58 59 60
                        <c-select disabled v-model="model.bcdgrp.cbs.opn1.cur" style="width:100%" placeholder="CUR">
                           <el-option v-for="item in codes.cur" :key="item.value" :label="item.label" :value="item.value">
                           </el-option>
xsh committed
61 62 63 64 65 66
                        </c-select>
                    </el-form-item>
                </c-col>

                <c-col :span="12">
                    <el-form-item label="" style="text-align: left" label-width="20px" prop="bcdgrp.cbs.opn1.amt">
xsh committed
67
                        <c-input-currency disabled v-model="model.bcdgrp.cbs.opn1.amt" placeholder="请输入Open Amount"></c-input-currency>
xsh committed
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
                    </el-form-item>
                </c-col>
            </c-col>
            <c-col :span="24">
                <el-form-item label="Docs received on" prop="bcdgrp.rec.rcvdat">
                    <c-date-picker type="date" v-model="model.bcdgrp.rec.rcvdat" style="width:50%"
                        placeholder="Docs received on"></c-date-picker>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="Date of Remittance Lt." prop="bcdgrp.rec.predat">
                    <c-date-picker type="date" v-model="model.bcdgrp.rec.predat" style="width:50%"
                        placeholder="Date of Remittance Lt."></c-date-picker>
                </el-form-item>
            </c-col>
            <c-col :span="24">
                <el-form-item label="Advised on" prop="bcdgrp.rec.advdat">
                    <c-date-picker type="date" v-model="model.bcdgrp.rec.advdat" style="width:50%"
                        placeholder="Advised on"></c-date-picker>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="Collection Condition" prop="bcdgrp.rec.doctypcod">
xsh committed
93
                    <c-select v-model="model.bcdgrp.rec.doctypcod" style="width:50%"
xsh committed
94
                        placeholder="请选择Collection Condition">
xsh committed
95 96
                        <el-option v-for="item in codes.doctyp" :key="item.value" :label="item.label" :value="item.value">
                        </el-option>
xsh committed
97 98 99 100 101 102 103 104 105 106 107
                    </c-select>
                </el-form-item>
            </c-col>
            <c-col :span="24">
                <el-form-item label="Maturity Date" prop="bcdgrp.rec.matdat">
                    <c-date-picker type="date" v-model="model.bcdgrp.rec.matdat" style="width:50%"
                        placeholder="Maturity Date"></c-date-picker>
                </el-form-item>
            </c-col>
            <c-col :span="24">
                <el-form-item label="发票类型" prop="bcdgrp.rec.invtyp">
xsh committed
108
                    <c-select v-model="model.bcdgrp.rec.invtyp" style="width:50%" placeholder="请选择发票类型">
xsh committed
109 110
                      <el-option v-for="item in codes.invtyp" :key="item.value" :label="item.label" :value="item.value">
                      </el-option>
xsh committed
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
                    </c-select>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <c-col :span="12">
                    <el-form-item label="Tenor Specification" prop="bcdgrp.rec.matpercnt">
                        <c-input v-model="model.bcdgrp.rec.matpercnt" placeholder="Tenor Specification"></c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="12">
                    <el-form-item label="" style="text-align: left" label-width="20px" prop="bcdgrp.rec.matpertyp">
                        <c-select v-model="model.bcdgrp.rec.matpertyp" style="width:50%"
                            placeholder="Days/Months or Years for Maturity Period">
xsh committed
126 127
                            <el-option v-for="item in codes.matper" :key="item.value" :label="item.label" :value="item.value">
                             </el-option>
xsh committed
128 129 130 131 132 133 134 135
                        </c-select>
                    </el-form-item>
                </c-col>
            </c-col>
            <c-col :span="24">
                <el-form-item label="Tenor Starting from" prop="bcdgrp.rec.matperbeg">
                    <c-select v-model="model.bcdgrp.rec.matperbeg" style="width:100%"
                        placeholder="请选择Tenor Starting from">
xsh committed
136 137
                        <el-option v-for="item in codes.matbeg" :key="item.value" :label="item.label" :value="item.value">
                        </el-option>
xsh committed
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
                    </c-select>
                </el-form-item>
            </c-col>
            <c-col :span="24">
                <el-form-item label="Maturity Text" prop="bcdgrp.blk.bcgdet">
                    <c-input type="textarea" v-model="model.bcdgrp.blk.bcgdet" maxlength="45" show-word-limit
                        placeholder="请输入Maturity Text"></c-input>
                </el-form-item>
            </c-col>
            <c-col :span="24">
                <c-col :span="11">
                    <c-checkbox v-model="model.bcdgrp.rec.resflg">Reserved Contract</c-checkbox>
                </c-col>
                <c-col :span="11">
                    <c-checkbox v-model="model.bcdgrp.rec.dftgarflg">Draft to be Guaranteed</c-checkbox>
                </c-col>
            </c-col>
            <c-col :span="24">
                <c-checkbox v-model="model.bcdgrp.rec.oridre">Send Original Documents to Drawee</c-checkbox>
            </c-col>
            <c-col :span="24">
                <c-checkbox v-model="model.bcdgrp.blk.bcgdetflg">BC Tenor Details modified</c-checkbox>
            </c-col>

            <c-edit-table :model="model"  v-bind="ptsaddg">
            </c-edit-table>

        </c-col>
        <!-- ====================右边======================= -->
        <c-col :span="11" :offset="1">
xsh committed
168 169 170
        
         <c-ptap :model="model" :argadr="{title: 'Drawee ',grp: 'bcdgrp',rol: 'dre',}":disabled="true" @onSeainf="onSeainf" @onAplpDet="ondrepDet" >
         </c-ptap>
xsh committed
171

xsh committed
172 173
         <c-ptap :model="model" :argadr="{title: 'Remitting Bank ',grp: 'bcdgrp',rol: 'rmi',}":disabled="true" @onSeainf="onSeainf" @onAplpDet="onrmipDet" >
         </c-ptap>
xsh committed
174

xsh committed
175 176
         <c-ptap :model="model" :argadr="{title: 'Drawer ',grp: 'bcdgrp',rol: 'drr',}":disabled="true" @onSeainf="onSeainf" @onAplpDet="ondrrpDet" >
         </c-ptap>
xsh committed
177 178 179 180 181

            <c-col :span="24">
                <el-form-item label="Country or region Code" prop="bcdgrp.rec.stacty">
                    <c-select v-model="model.bcdgrp.rec.stacty" style="width:100%"
                        placeholder="请选择Country or region Code">
xsh committed
182 183
                        <el-option v-for="item in codes.ctytxt" :key="item.value" :label="item.label" :value="item.value">
                        </el-option>
xsh committed
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
                    </c-select>
                </el-form-item>
            </c-col>

            <!--<c-col :span="24">
                <span v-text="model.bctp.sblx" data-path=".bctp.sblx"> </span>
            </c-col>-->

            <!--<c-col :span="24">
                <span v-text="model.bctp.acttyplab" data-path=".bctp.acttyplab"> </span>
            </c-col>-->

            <c-col :span="24">
                <el-form-item label="款项去向" prop="bctp.acttyp">
                    <c-select v-model="model.bctp.acttyp" style="width:100%" placeholder="款项去向">
xsh committed
199 200
                     <el-option v-for="item in acttyp" :key="item.value" :label="item.label" :value="item.value">
                     </el-option>
xsh committed
201 202 203 204 205 206 207 208 209 210
                    </c-select>
                </el-form-item>
            </c-col>

        </c-col>

    </div>
</template>
<script>
    import Api from "~/service/Api"
wangren committed
211
    import commonProcess from "~/mixin/commonProcess";
xsh committed
212 213
    import CodeTable from "~/config/CodeTable"
    import Event from "~/model/Bctame/Event"
xsh committed
214
    import Ptap from "~/views/Public/Ptap";
xsh committed
215 216

    export default {
xsh committed
217
        components: { "c-ptap": Ptap },
xsh committed
218 219
        inject: ['root'],
        props: ["model", "codes"],
wangren committed
220
        mixins: [commonProcess],
xsh committed
221 222
        data() {
            return {
xsh committed
223 224 225 226
            acttyp: [
        { value: "(JW)", label: "境外" },
        { value: "(JN)", label: "境内非居民" },
         ],
xsh committed
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261
                ptsaddg: {
                    columns: [{
                            title: "1st",
                            width: "40px",
                            dataIndex: "cmail1",
                            show: "input",
                        },
                        {
                            title: "2nd",
                            width: "40px",
                            dataIndex: "cmail2",
                            show: "input",
                        },
                        {
                            title: "Documnet",
                            width: "120px",
                            dataIndex: "document",
                            show: "select",
                        },
                    ],
                    urls: "bctp.docgrdm.docgrd",
                },
            }
        },
        methods: {
            ...Event
        },
        created: function () {

        }
    }
</script>
<style>

</style>