Drv.vue 14.6 KB
Newer Older
1
<template>
huangxin committed
2
  <div class="eibs">
huangxin committed
3 4 5 6

<!-- ============左边================= -->
<c-col :span="12" style="padding-right: 20px;">
      <c-col :span="24">
jianglong committed
7
        <el-form-item label="出口信用证编号" prop="ledgrp.rec.ownref">
8 9 10
          <c-input
            v-model="model.ledgrp.rec.ownref"
            maxlength="16"
jianglong committed
11
            placeholder="请输入编号"
12 13 14 15 16 17 18 19
            :disabled="true"
          ></c-input>
        </el-form-item>
      </c-col>

      <!-- L/C Amount -->
      <c-col :span="24">
        <c-col :span="12">
jianglong committed
20
          <el-form-item label="信用证金额" prop="ledgrp.cbs.nom1.cur">
21 22 23 24 25 26 27 28 29 30 31 32
            <c-select
              v-model="model.ledgrp.cbs.nom1.cur"
              style="width: 100%"
              placeholder="请选择币种"
              :code="codes.curtxt1"
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="7">
          <el-form-item label="" label-width="5px" prop="ledgrp.cbs.nom1.amt">
33
            <c-input
34 35 36
              v-model="model.ledgrp.cbs.nom1.amt"
              style="text-align: left; width: 100%"
              placeholder="请输入信用证金额"
37
              class="m-input-currency"
38
              @keyup.enter.native="$event.target.blur()"
39
              disabled
40
            ></c-input>
41
            <!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
42 43 44 45 46
          </el-form-item>
        </c-col>

        <c-col :span="5">
          <c-checkbox
47
            v-model="model.letp.letp0.aammod.addamtflg"
48 49
            style="margin-left: 10px"
            disabled
jianglong committed
50
            >附加金额</c-checkbox
51 52 53 54 55 56 57
          >
        </c-col>
      </c-col>

                <!-- Open Amount -->
      <c-col :span="24">
        <c-col :span="12">
jianglong committed
58
        <el-form-item label="信用证余额" prop="ledgrp.cbs.opn1.cur">
59
          <c-select
60
            v-model="model.ledgrp.cbs.opn1.cur"
61 62
            style="width: 100%"
            placeholder="请选择币种"
63
            disabled
64 65
            :code="codes.curtxt1"
          ></c-select>
66 67 68 69 70 71 72 73
        </el-form-item>
      </c-col>
      <c-col :span="7">
        <el-form-item label="" label-width="5px" prop="ledgrp.cbs.opn1.amt">
          <c-input
            v-model="model.ledgrp.cbs.opn1.amt"
            style="text-align: left; width: 100%"
            class="m-input-currency"
74
            placeholder="请输入金额"
75 76 77 78 79 80 81 82
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="5">
        <c-checkbox v-model="model.ledgrp.rec.revflg"
        style="margin-left: 10px"
        disabled
jianglong committed
83
          >循环信用证</c-checkbox
84
        >
85 86 87 88
      </c-col>
      </c-col>

        <c-col :span="19">
jianglong committed
89
          <el-form-item label="可用银行" prop="ledgrp.avbnam">
90 91 92
            <c-input
              v-model="model.ledgrp.avbnam"
              maxlength="40"
jianglong committed
93
              placeholder="请输入可用银行"
94 95 96 97 98 99 100
              disabled
            ></c-input>
          </el-form-item>
        </c-col>

      <c-col :span="24">
        <c-col :span="19">
jianglong committed
101
        <el-form-item label="兑付方式" prop="ledgrp.rec.avbby">
102 103 104
          <c-select
            v-model="model.ledgrp.rec.avbby"
            style="width: 100%"
jianglong committed
105
            placeholder="请选择兑付方式"
106
            :code="codes.avbby"
107 108 109 110 111 112
            disabled
          >
          </c-select>
        </el-form-item>
      </c-col>
        <c-col :span="5">
113
      <c-checkbox v-model="model.ledgrp.rec.redclsflg"
114 115
        style="margin-left: 10px"
        disabled
jianglong committed
116
        >红/绿条款</c-checkbox
117 118
      >
    </c-col>
119 120 121 122
      </c-col>
      
      <c-col :span="24">
        <c-col :span="12">
jianglong committed
123
      <el-form-item label="开立日期" prop="ledgrp.rec.opndat">
124 125 126 127
        <c-date-picker
          type="date"
          v-model="model.ledgrp.rec.opndat"
          style="width: 100%"
wangna committed
128
          placeholder="请选择开立日期"
129 130
          value-format="yyyy-MM-dd"
          disabled
131 132 133 134
        ></c-date-picker>
      </el-form-item>
    </c-col>
    <c-col :span="12">
jianglong committed
135
      <el-form-item label="装运日期" prop="ledgrp.rec.shpdat">
136 137 138 139
        <c-date-picker
          type="date"
          v-model="model.ledgrp.rec.shpdat"
          style="width: 100%"
jianglong committed
140
          placeholder="请选择日期"
141 142
          value-format="yyyy-MM-dd"
          disabled
143 144 145
        ></c-date-picker>
      </el-form-item>
    </c-col>
146
      </c-col>
147

148 149
    <c-col :span="24">
      <c-col :span="12">
jianglong committed
150
      <el-form-item label="生效日期" prop="ledgrp.rec.expdat">
151 152 153 154
        <c-date-picker
          type="date"
          v-model="model.ledgrp.rec.expdat"
          style="width: 100%"
wangna committed
155
          placeholder="请选择"
156 157
          value-format="yyyy-MM-dd"
          disabled
158 159 160
        ></c-date-picker>
      </el-form-item>
    </c-col>
161 162
        <c-col :span="12">
      <el-form-item label="" label-width="5px" prop="ledgrp.rec.expplc">
163 164 165
        <c-input
          v-model="model.ledgrp.rec.expplc"
          maxlength="29"
wangna committed
166
          placeholder="请输入"
167 168
          value-format="yyyy-MM-dd"
          disabled
169 170 171 172 173
        ></c-input>
      </el-form-item>
    </c-col>
    </c-col>

174
        <c-col :span="24">
jianglong committed
175
      <el-form-item label="信用证类型" prop="ledgrp.rec.lcrtyp">
176 177 178
        <c-select
          v-model="model.ledgrp.rec.lcrtyp"
          style="width: 100%"
jianglong committed
179
          placeholder="请选择类型"
180
          disabled
181
          :code="codes.lcrtyp"
182 183 184 185 186
        >
        </c-select>
      </el-form-item>
    </c-col>

huangxin committed
187
    <c-col :span="24">
jianglong committed
188
            <el-form-item label="单据编号" prop="bedgrp.rec.ownref">
189 190 191 192
              <c-fullbox>
                <c-input
                v-model="model.bedgrp.rec.ownref"
                maxlength="16"
jianglong committed
193
                placeholder="请输入单据编号"
194 195 196 197
                disabled
                ></c-input>
                <template slot="footer">
                  <c-button size="small" type="primary" @click="onBetmodButgetref"
198
                  :disabled="model.bedgrp.rec.ownref!=''||model.ledgrp.rec.ownref==''">
199 200 201 202 203 204 205
                    Get Ref
                  </c-button>
                </template>
              </c-fullbox>
            </el-form-item>
          </c-col>

huangxin committed
206
          <c-col :span="24">
jianglong committed
207
          <el-form-item label="单据类型" prop="bedgrp.rec.doctypcod">
208 209 210
            <c-select
              v-model="model.bedgrp.rec.doctypcod"
              style="width: 100%"
jianglong committed
211
              placeholder="请选择单据类型"
212
              :code="codes.doctypcod1"
213 214 215 216 217 218 219 220
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <c-col :span="12">
jianglong committed
221
            <el-form-item label="到期日" prop="bedgrp.rec.matdat">
222 223 224 225
              <c-date-picker
                type="date"
                v-model="model.bedgrp.rec.matdat"
                style="width: 100%"
jianglong committed
226
                placeholder="请选择到期日"
227 228 229 230 231 232
                value-format="yyyy-MM-dd"
              ></c-date-picker>
            </el-form-item>
          </c-col>
                <!-- Date of Shipment -->
          <c-col :span="12">
jianglong committed
233
            <el-form-item label="装运日期" prop="bedgrp.rec.shpdat">
234 235 236 237
              <c-date-picker
                type="date"
                v-model="model.bedgrp.rec.shpdat"
                style="width: 100%"
wangna committed
238
                placeholder="请选择装运日期"
239 240 241 242 243 244 245 246
                value-format="yyyy-MM-dd"
              ></c-date-picker>
            </el-form-item>
          </c-col>
        </c-col>

        <c-col :span="24">
          <c-col :span="12">
jianglong committed
247
            <el-form-item label="收到日期" prop="bedgrp.rec.rcvdat">
248 249 250 251 252
              <c-date-picker
                type="date"
                v-model="model.bedgrp.rec.rcvdat"
                style="width: 100%"
                value-format="yyyy-MM-dd"
jianglong committed
253
                placeholder="请选择收到日期"
254 255 256 257
              ></c-date-picker>
            </el-form-item>
          </c-col>
          <c-col :span="12">
jianglong committed
258
            <el-form-item label="订单日期" prop="bedgrp.rec.orddat">
259 260 261 262 263
              <c-date-picker
                type="date"
                v-model="model.bedgrp.rec.orddat"
                style="width: 100%"
                value-format="yyyy-MM-dd"
jianglong committed
264
                placeholder="请选择日期"
265 266 267 268 269 270
              ></c-date-picker>
            </el-form-item>
          </c-col>
        </c-col>

        <c-col :span="24">
271
          <el-form-item label=" " prop="bedgrp.rec.dscinsflg" label-width="120px" style=" float:right;">
272
          <c-checkbox v-model="model.bedgrp.rec.dscinsflg"
jianglong committed
273
            >输入单据、不符点、指示信息</c-checkbox
274
          >
275
        </el-form-item>
276 277 278
        </c-col>

        <c-col :span="24">
jianglong committed
279
          
280
          <el-form-item
jianglong committed
281
            label="该信用证前手信息"
282 283 284 285
            prop="ledgrp.rec.utlnbr"
          >
            <c-input
              v-model="model.ledgrp.rec.utlnbr"
jianglong committed
286
              placeholder="请输入前手信息"
287 288 289 290
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
huangxin committed
291 292 293 294 295 296 297 298 299 300 301 302 303 304 305
    </c-col>

        <!-- ============右边================= -->
        <c-col :span="12" style="padding-left: 20px;">
      <c-col :span="24">
        <el-form-item label="简略信息" prop="ledgrp.rec.nam">
          <c-input
            text-align="middle"
            v-model="model.ledgrp.rec.nam"
            maxlength="40"
            placeholder="请输入"
            disabled
          >
          </c-input>
        </el-form-item>
306
      </c-col>
huangxin committed
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 369

          <c-col :span="24">
      <el-form-item label="申请人参考号" prop="ledgrp.apl.pts.ref">
        <c-input
          v-model="model.ledgrp.apl.pts.ref"
          maxlength="16"
          placeholder="请输入申请人参考号"
          disabled
        ></c-input>
      </el-form-item>
    </c-col>
        <c-col :span="24">
      <el-form-item label="" prop="ledgrp.apl.pts.nam">
        <c-input
          v-model="model.ledgrp.apl.pts.nam"
          maxlength="40"
          placeholder="请输入"
          disabled
        ></c-input>
      </el-form-item>
    </c-col>

        <c-col :span="24">
      <el-form-item label="开证行参考号" prop="ledgrp.iss.pts.ref">
        <c-input
          v-model="model.ledgrp.iss.pts.ref"
          maxlength="16"
          placeholder="请输入开证行参考号"
          disabled
        ></c-input>
      </el-form-item>
    </c-col>
        <c-col :span="24">
      <el-form-item label="开证行名称" prop="ledgrp.iss.pts.nam">
        <c-input
          v-model="model.ledgrp.iss.pts.nam"
          maxlength="40"
          placeholder="请输入"
          disabled
        ></c-input>
      </el-form-item>
    </c-col>

        <c-col :span="24">
      <el-form-item label="受益人参考号" prop="ledgrp.ben.pts.ref">
        <c-input
          v-model="model.ledgrp.ben.pts.ref"
          maxlength="16"
          placeholder="请输入受益人参考号"
          disabled
        ></c-input>
      </el-form-item>
    </c-col>
        <c-col :span="24">
      <el-form-item label="受益人名称" prop="ledgrp.ben.pts.nam">
        <c-input
          v-model="model.ledgrp.ben.pts.nam"
          maxlength="40"
          placeholder="请输入"
          disabled
        ></c-input>
      </el-form-item>
    </c-col>
370
        <c-col :span="24">
huangxin committed
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
      <el-form-item label="确认文本" prop="letp.letp0.cnftxt">
        <c-input
          v-model="model.letp.letp0.cnftxt"
          maxlength="40"
          placeholder="请输入"
          disabled
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="24">
        <!-- Externally Displayed Name to Identify the Contract -->
            <el-form-item
              label="简略信息"
              text-align="middle"
              prop="bedgrp.rec.nam"
            >
              <c-input
                v-model="model.bedgrp.rec.nam"
                maxlength="40"
                placeholder="请输入单据简略信息"
              ></c-input>
            </el-form-item>
          </c-col>

          <c-col :span="24">
397
          <c-col :span="13">
jianglong committed
398
            <el-form-item label="单据金额" prop="bedgrp.cbs.max.cur">
399 400 401
              <c-input
                v-model="model.bedgrp.cbs.max.cur"
                maxlength="3"
wangna committed
402
                placeholder="请输入币种"
403 404 405 406 407 408 409 410
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="11">
            <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max.amt">
              <c-input
                v-model="model.bedgrp.cbs.max.amt"
                class="m-input-currency"
411
                placeholder="请输入金额"
412 413 414 415 416 417 418
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>

        <c-col :span="24">
          <c-col :span="13">
jianglong committed
419
            <el-form-item label="提取附加金额" prop="bedgrp.cbs.opn2.cur">
420 421 422
              <c-select
                v-model="model.bedgrp.cbs.opn2.cur"
                style="width: 100%"
jianglong committed
423
                placeholder="请选择币种"
424 425 426 427 428 429 430 431 432 433
                disabled
              >
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="11">
            <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max2.amt">
              <c-input
                v-model="model.bedgrp.cbs.max2.amt"
                class="m-input-currency"
jianglong committed
434
                placeholder="请输入金额"
435 436 437 438 439 440 441
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>

        <c-col :span="24">
jianglong committed
442
          <el-form-item label="交单行" prop="bedgrp.rec.docprbrol">
443 444 445
            <c-select
              v-model="model.bedgrp.rec.docprbrol"
              style="width: 100%"
jianglong committed
446
              placeholder="请选择交单行"
447
              :code="codes.rolall"
448 449 450 451 452 453 454 455 456 457 458 459 460 461 462
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
              title: '',
              grp: 'bedgrp',
              rol: 'prb',
            }"
            :disabled="true"
463 464
            :noRef="true"
            :disabledExtkey="true"
465 466 467 468 469 470
            @onSeainf="onSeainf"
            @onAplpDet="onPrbpDet"
          >
          </c-ptap>
        </c-col>
    </c-col>
471 472 473 474 475 476 477
  </div>
</template>
<script>
import Api from '~/service/Api'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Event from '~/model/Letdrw/Event'
478 479
import Utils from '~/utils'
import Ptap from '~/views/Public/Ptap'
480 481

export default {
482
  components: { 'c-ptap': Ptap },
483 484 485 486 487 488
  inject: ['root'],
  props: ['model', 'codes'],
  mixins: [commonProcess],
  data() {
    return {}
  },
489 490 491
  methods: {
    ...Event,
  },
492 493 494 495
  created: function () {},
}
</script>
<style></style>