Ovwp.vue 11.7 KB
Newer Older
zhengxiaokui committed
1
<template>
zhengxiaokui committed
2 3 4
  <c-row>
    <c-col :span="24">
      <c-col :span="8">
zhengxiaokui committed
5
        <el-form-item label="Reference" prop="ledgrp.rec.ownref">
zhengxiaokui committed
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
          <c-input
            v-model="model.ledgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入Reference"
            style="width: 95%"
            :disabled="true"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="3">
        <c-button
          size="small"
          type="primary"
          @click="onSeainf"
          icon="el-icon-search"
        ></c-button>
        <c-button
          size="small"
          type="primary"
          :disabled="
            model.ledgrp.ben.pts.adrblk && !model.ledgrp.rec.ownref
              ? false
              : true
          "
          @click="onLetpButgetref"
        >
          Git
zhengxiaokui committed
33
        </c-button>
zhengxiaokui committed
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
      </c-col>

      <c-col :span="11" :offset="1">
        <el-form-item label="Name" prop="ledgrp.rec.nam">
          <c-input
            v-model="model.ledgrp.rec.nam"
            maxlength="40"
            placeholder="请输入Name"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="24">
      <c-col :span="11">
        <c-col :span="24">
          <el-form-item label="Form of L/C" prop="ledgrp.rec.lcrtyp">
            <c-select
              v-model="model.ledgrp.rec.lcrtyp"
              style="width: 100%"
              placeholder="请选择Form of L/C"
              :code="codes.lcrtyp"
            >
            </c-select>
          </el-form-item>
zhengxiaokui committed
59
        </c-col>
zhengxiaokui committed
60 61 62 63 64 65 66 67 68 69 70

        <c-col :span="19">
          <el-form-item label="Responsible User" prop="letp.usr.extkey">
            <c-input
              v-model="model.letp.usr.extkey"
              maxlength="8"
              placeholder="请输入Responsible User"
              style="width: 95%"
              :disabled="true"
            ></c-input>
          </el-form-item>
zhengxiaokui committed
71
        </c-col>
zhengxiaokui committed
72 73 74 75
        <c-col :span="5" class="centerLable">
          <c-checkbox :disabled="true" v-model="model.ledgrp.rec.collflg"
            >Collateralized L/C</c-checkbox
          >
zhengxiaokui committed
76
        </c-col>
zhengxiaokui committed
77 78 79 80 81 82 83 84 85 86
        <c-col :span="11">
          <el-form-item label="Nominal Amount" prop="ledgrp.cbs.nom1.cur">
            <c-select
              v-model="model.ledgrp.cbs.nom1.cur"
              style="width: 100%"
              placeholder="请选择cur"
              :code="codes.cur"
            >
            </c-select>
          </el-form-item>
zhengxiaokui committed
87
        </c-col>
zhengxiaokui committed
88 89 90 91 92 93 94 95 96

        <c-col :span="8">
          <el-form-item label="" label-width="10px" prop="ledgrp.cbs.nom1.amt">
            <c-input-currency
              v-model="model.ledgrp.cbs.nom1.amt"
              style="width: 90%"
              placeholder="请输入Nominal Amount"
            ></c-input-currency>
          </el-form-item>
zhengxiaokui committed
97
        </c-col>
zhengxiaokui committed
98 99 100 101 102 103 104 105 106 107 108 109 110 111

        <!-- <c-amtpanl
          :model="model"
          :span="20"
          :message="{
            title: '开证金额',
            cur: 'ledgrp.cbs.nom1.cur',
            amt: 'ledgrp.cbs.nom1.amt',
          }"
        ></c-amtpanl> -->
        <c-col :span="5" class="centerLable">
          <c-checkbox v-model="model.letp.aamp.aammod.addamtflg"
            >Add. Amount</c-checkbox
          >
zhengxiaokui committed
112
        </c-col>
zhengxiaokui committed
113 114 115 116 117 118 119 120

        <c-col :span="11">
          <el-form-item label="Amount Tolerance +/-" prop="ledgrp.rec.nomtop">
            <c-input
              v-model="model.ledgrp.rec.nomtop"
              placeholder="请输入Amount Tolerance +/-"
            ></c-input>
          </el-form-item>
zhengxiaokui committed
121
        </c-col>
zhengxiaokui committed
122 123 124 125 126 127 128 129
        <c-col :span="8">
          <el-form-item label="" label-width="10px" prop="ledgrp.rec.nomton">
            <c-input
              v-model="model.ledgrp.rec.nomton"
              style="width: 90%"
              placeholder="请输入Amount Tolerance - Negative"
            ></c-input>
          </el-form-item>
zhengxiaokui committed
130
        </c-col>
zhengxiaokui committed
131 132 133
        <!-- Incoming Transfer -->
        <c-col :span="5" class="centerLable">
          <c-checkbox v-model="model.ledgrp.rec.inctrf">Incoming Transfer</c-checkbox>
zhengxiaokui committed
134
        </c-col>
zhengxiaokui committed
135 136 137 138 139 140 141 142 143 144 145 146

        <c-col :span="19">
          <el-form-item label="Amount Specification" prop="ledgrp.rec.nomspc">
            <c-select
              v-model="model.ledgrp.rec.nomspc"
              style="width: 95%"
              placeholder="请选择Amount Specification"
              :code="codes.nomspc"
              :disabled="true"
            >
            </c-select>
          </el-form-item>
zhengxiaokui committed
147
        </c-col>
zhengxiaokui committed
148 149 150 151 152 153 154 155 156 157 158 159
        <c-col :span="5" class="centerLable"> </c-col>

        <c-col :span="12">
          <el-form-item label="Maximum Amount" prop="ledgrp.cbs.max.cur">
            <c-select
              v-model="model.ledgrp.cbs.max.cur"
              style="width: 100%"
              placeholder="请选择币种"
              :code="codes.cur"
            >
            </c-select>
          </el-form-item>
zhengxiaokui committed
160
        </c-col>
zhengxiaokui committed
161 162 163 164 165 166 167 168

        <c-col :span="12">
          <el-form-item label="" label-width="20px" prop="ledgrp.cbs.max.amt">
            <c-input-currency
              v-model="model.ledgrp.cbs.max.amt"
              placeholder="请输入Maximum Amount"
            ></c-input-currency>
          </el-form-item>
zhengxiaokui committed
169
        </c-col>
zhengxiaokui committed
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 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 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368

        <c-col :span="13">
          <el-form-item label="Issued on" prop="ledgrp.rec.opndat">
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.opndat"
              style="width: 90%"
              placeholder="请选择Issued on"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="11">
          <el-form-item
            label="Date Pre-advised"
            label-width="130px"
            prop="ledgrp.rec.preadvdt"
          >
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.preadvdt"
              style="width: 100%"
              placeholder="请选择Date Pre-advised"
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="13">
          <el-form-item label="Shipment Date" prop="ledgrp.rec.shpdat">
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.shpdat"
              style="width: 90%"
              placeholder="请选择Shipment Date"
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="11">
          <el-form-item
            label="Released on"
            label-width="130px"
            prop="ledgrp.rec.advdat"
          >
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.advdat"
              style="width: 100%"
              placeholder="请选择Released on"
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="13">
          <el-form-item label="Expiring on" prop="ledgrp.rec.expdat">
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.expdat"
              style="width: 90%"
              placeholder="请选择到期日"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="10"></c-col>

        <c-col :span="24">
          <el-form-item label="in (Place)/counters of" prop="ledgrp.rec.expplc">
            <c-input
              v-model="model.ledgrp.rec.expplc"
              maxlength="29"
              placeholder="有效地点"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Confirmation Instruct" prop="ledgrp.rec.cnfdet">
            <c-select
              v-model="model.ledgrp.rec.cnfdet"
              style="width: 100%"
              placeholder="请选择确认接收指示"
              :code="codes.cnfins"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Applicable Rules" prop="ledgrp.rec.apprul">
            <c-select
              v-model="model.ledgrp.rec.apprul"
              style="width: 100%"
              placeholder="请选择Applicable Rules"
              :code="codes.apprul"
              @change="apprulChange"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Other Applicable Rules" prop="ledgrp.rec.apprultxt">
            <c-input
              v-model="model.ledgrp.rec.apprultxt"
              maxlength="35"
              placeholder="请输入其他规则"
              :disabled="model.ledgrp.rec.apprul === 'OTHR' ? false : true"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Partial Shipment" prop="ledgrp.rec.shppar">
            <c-select
              v-model="model.ledgrp.rec.shppar"
              style="width: 100%"
              placeholder="请选择Partial Shipment"
              :code="codes.shppar"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Transshipment" prop="ledgrp.rec.shptrss18">
            <c-select
              v-model="model.ledgrp.rec.shptrss18"
              style="width: 100%"
              placeholder="请选择Transshipment"
              :code="codes.shptrss18"
            >
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="11" :offset="1">
        <c-ptap
          :model="model"
          :argadr="{
            title: '受益人',
            grp: 'ledgrp',
            rol: 'ben',
          }"
          :disabled="true"
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
        </c-ptap>

        <c-ptap
          :model="model"
          :argadr="{
            title: '开证行',
            grp: 'ledgrp',
            rol: 'iss',
          }"
          :disabled="true"
          @onSeainf="onSeainf"
          @onAplpDet="onIsspDet"
        >
        </c-ptap>

        <c-ptap
          :model="model"
          :argadr="{
            title: '申请人',
            grp: 'ledgrp',
            rol: 'apl',
          }"
          :disabled="true"
          @onSeainf="onSeainf"
          @onAplpDet="onAplpDet"
        >
        </c-ptap>

        <c-col :span="12" class="centerLable marginLable">
          <c-checkbox v-model="model.ledgrp.rec.revflg"
            >Revolving Flag</c-checkbox
          >
        </c-col>

        <!-- Authorization to Debit -->
        <c-col :span="12" class="centerLable marginLable">
          <c-checkbox v-model="model.ledgrp.rec.dbtflg">Authorization to Debit</c-checkbox>
        </c-col>

        <!-- Non-Bank Issuer -->
        <c-col :span="12" class="centerLable marginLable">
          <c-checkbox v-model="model.ledgrp.rec.nonban"
            >Non-Bank Issuer</c-checkbox
          >
        </c-col>

        <!-- Test Key Unconfirmity -->
        <c-col :span="12" class="centerLable marginLable">
          <c-checkbox v-model="model.ledgrp.rec.teskeyunc">Test Key Unconfirmity</c-checkbox>
        </c-col>
      </c-col>
    </c-col>
  </c-row>
zhengxiaokui committed
369 370
</template>
<script>
zhengxiaokui committed
371
import Api from "~/service/Api";
wangren committed
372
import commonProcess from "~/mixin/commonProcess";
zhengxiaokui committed
373 374 375 376
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letopn/Event";
import Ptap from "~/views/Public/Ptap";
// import Amtpanl from "~/views/Public/Amtpanl";
zhengxiaokui committed
377 378

export default {
zhengxiaokui committed
379 380 381
  components: { "c-ptap": Ptap },
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
382
  mixins: [commonProcess],
zhengxiaokui committed
383 384 385 386 387
  data() {
    return {};
  },
  methods: {
    ...Event,
zhengxiaokui committed
388

zhengxiaokui committed
389 390 391 392
    apprulChange(v) {
      if (v !== "OTHR") {
        this.model.ledgrp.rec.apprultxt = "";
      }
zhengxiaokui committed
393
    },
zhengxiaokui committed
394 395 396
  },
  created: function () {},
};
zhengxiaokui committed
397 398
</script>
<style>
zhengxiaokui committed
399 400 401 402 403 404 405 406 407
.centerLable {
  margin-left: -10px;
  height: 32px;
  line-height: 32px;
  padding-bottom: 2px;
}
.marginLable {
  padding-left: 150px;
}
zhengxiaokui committed
408
</style>