Davp.vue 12.1 KB
Newer Older
1 2
<template>
  <div class="eibs-tab">
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
    <!-- left -->
    <c-col :span="11">
      <c-col :span="24">
        <el-form-item
          label="L/C Reference"
          prop="ledgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.ledgrp.rec.ownref"
              maxlength="8"
              placeholder="Please input L/C Reference"
              :disabled="true"
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf"
              >
                <span
                  style="
                    font-size: 15px;
                    font-family: '宋体';
                    font-weight: bold;
                  "
                  >i</span
                >
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item
          label="Transfer Reference"
          prop="ltdgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.ltdgrp.rec.ownref"
              maxlength="8"
              placeholder="Please input Transfer Reference"
              :disabled="true"
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf"
              >
                <span
                  style="
                    font-size: 15px;
                    font-family: '宋体';
                    font-weight: bold;
                  "
                  >i</span
                >
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24">
72
        <el-form-item label="L/C Amount" prop="ltdgrp.cbs.nom1.cur">
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
          <c-fullbox>
            <c-input
              v-model="model.ltdgrp.cbs.nom1.cur"
              maxlength="3"
              style="width: 50%"
              placeholder="请输入L/C Amount"
              disabled
            ></c-input>
            <c-input
              v-model="model.ltdgrp.cbs.nom1.amt"
              style="width: 50%"
              placeholder="请输入Balance"
              disabled
            ></c-input>
            <template slot="footer">
              <c-checkbox
                v-model="model.bttp.aammod.addamtflg"
                style="margin-left: 10px"
                disabled
                >Add. Amount</c-checkbox
              >
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
100
        <el-form-item label="Open Amount" prop="ltdgrp.cbs.opn1.cur">
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
          <c-fullbox>
            <c-input
              v-model="model.ltdgrp.cbs.opn1.cur"
              maxlength="3"
              style="width: 50%"
              placeholder="请输入Open Amount"
              disabled
            ></c-input>
            <c-input
              v-model="model.ltdgrp.cbs.opn1.amt"
              style="width: 50%"
              placeholder="请输入Balance"
              disabled
            ></c-input>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-form-item label="Available with" prop="ltdgrp.avbnam">
          <c-input
            v-model="model.ltdgrp.avbnam"
            maxlength="40"
            placeholder="Please input Available with"
            disabled
          ></c-input>
        </c-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="by" prop="ltdgrp.rec.avbby">
            <c-fullbox>
              <c-select
                v-model="model.ltdgrp.rec.avbby"
                maxlength="3"
                style="width: 100%"
                placeholder="Please input Open Amount"
                disabled
                :code="codes.avbby"
              ></c-select>
            </c-fullbox>
          </el-form-item>
144
        </c-col>
145 146 147 148 149 150 151 152 153 154
        <c-col :span="12">
          <el-form-item label="Shipment Date" prop="ltdgrp.rec.shpdat">
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.shpdat"
              style="width: 100%"
              placeholder="Please select Shipment Date"
              disabled
            ></c-date-picker>
          </el-form-item>
155
        </c-col>
156 157 158 159 160 161 162 163 164 165 166 167 168
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Date Issued/Form" prop="ltdgrp.rec.opndat">
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.opndat"
              style="width: 100%"
              placeholder="Please select Date Issued/Form"
              disabled
            ></c-date-picker>
          </el-form-item>
169
        </c-col>
170 171 172 173 174 175 176 177
        <c-col :span="12">
          <c-input
            v-model="model.ltdgrp.rec.lcrtyp"
            maxlength="40"
            placeholder="Please input Available with"
            disabled
            :code="codes.lcrtyp1"
          ></c-input>
178
        </c-col>
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
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Date/Place of Expiry" prop="ltdgrp.rec.expdat">
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.expdat"
              style="width: 100%"
              placeholder="Please select Shipment Date"
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <c-input
            v-model="model.ltdgrp.rec.expplc"
            maxlength="40"
            placeholder="Please input Available with"
            disabled
          ></c-input>
        </c-col>
      </c-col>
    </c-col>

    <!-- right -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
        <el-form-item label="Name" prop="ledgrp.rec.nam">
          <c-input
            v-model="model.ledgrp.rec.nam"
            maxlength="40"
            placeholder="请输入Externally Displayed Name to Identify the Contract"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="Name" prop="ltdgrp.rec.nam">
          <c-input
            v-model="model.ltdgrp.rec.nam"
            maxlength="40"
            placeholder="请输入Externally Displayed Name to Identify the Contract"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '1st Beneficiary',
            grp: 'btdgrp',
            rol: 'be1',
          }"
          :enRef="true"
          :enNam="true"
          :disabled="false"
          :disabled1="true"
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '2nd Beneficiary',
            grp: 'btdgrp',
            rol: 'be2',
          }"
          :enRef="true"
          :enNam="true"
          :disabled="false"
          :disabled1="true"
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: 'Presenting Bank',
            grp: 'btdgrp',
            rol: 'prb',
          }"
          :enRef="true"
          :enNam="true"
          :disabled="false"
          :disabled1="true"
        ></c-ptsmsg>
      </c-col>
    </c-col>

    <c-col :span="24">
      <el-form-item style="margin-left: -150px">
        <el-divider />
      </el-form-item>
    </c-col>

    <!-- 底部 -->
    <!-- left -->
    <c-col :span="11">
      <c-col :span="24">
        <el-form-item
          label="Document Reference"
          prop="btdgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.btdgrp.rec.ownref"
              maxlength="8"
              placeholder="Please input Document Reference"
              :disabled="true"
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf"
              >
                <span
                  style="
                    font-size: 15px;
                    font-family: '宋体';
                    font-weight: bold;
                  "
                  >i</span
                >
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item
          label="Type of Advice"
          prop="btdgrp.rec.advtyp"
          style="width: 100%"
        >
          <c-select
            v-model="model.btdgrp.rec.advtyp"
            style="width: 100%"
            placeholder="Please select Type of Advice"
          >
            <el-option
              v-for="item in codes.advtyp2"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Payment advised on" prop="btdgrp.rec.advdat">
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.advdat"
              style="width: 100%"
              placeholder="Please select Payment advised on"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="Discrep. advised on" prop="btdgrp.rec.disdat">
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.disdat"
              style="width: 100%"
              placeholder="Please select Discrep. advised on"
351
              :disabled="model.btdgrp.rec.advtyp=='754'"
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407
            ></c-date-picker>
          </el-form-item>   
        </c-col>
      </c-col>
    </c-col>
    <!-- right -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
        <el-form-item label="Name" prop="btdgrp.rec.nam">
          <c-input
            v-model="model.btdgrp.rec.nam"
            maxlength="40"
            placeholder="please input name"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="Presented by" prop="btdgrp.rec.docprbrol">
          <c-select
            v-model="model.btdgrp.rec.docprbrol"
            style="width: 100%"
            placeholder="Please select Presented by"
            @change="selectOrCheckboxRule('btdgrp.rec.docprbrol')"
          >
            <el-option
              v-for="item in codes.docprbrol2"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: '',
            grp: 'btdgrp',
            rol: 'prb',
          }"
          :noRef="true"
          :disabled="!(model.btdgrp.rec.docprbrol == 'PRB')"
          :disabledExtkey="
            model.btdgrp.rec.docprbrol == 'ADT' ||
            model.btdgrp.rec.docprbrol == 'BE2'
          "
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
        </c-ptap>
      </c-col>
    </c-col>
408 409 410
  </div>
</template>
<script>
411
import Api from "~/service/Api";
wangren committed
412
import commonProcess from "~/mixin/commonProcess";
413 414 415 416
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Lttdav/Event";
import Ptsmsg from "~/views/Public/Ptsmsg";
import Ptap from "~/views/Public/Ptap";
417 418

export default {
419 420 421 422 423 424 425 426 427 428 429
  components: { "c-ptsmsg": Ptsmsg, "c-ptap": Ptap },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
  methods: { ...Event,
  },
  created: function () {},
};
430 431 432
</script>
<style>
</style>