Drv.vue 16.1 KB
Newer Older
1 2 3
<template>
  <div class="eibs-tab">
    <!-- left -->
4
    <c-col :span="11">
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
      <c-col :span="24">
        <c-col :span="20">
          <el-form-item
            label="参考号"
            prop="dedgrp.rec.ownref"
            style="width: 100%"
          >
            <c-input
              v-model="model.dedgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入参考号"
              style="width: 95%"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <!-- <c-col :span="1" style="text-align: right"> -->
        <c-col :span="1">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 10px 0 0; padding: 0 12px"
            size="small"
            type="primary"
            @click="onSeainf"
29
            disabled
30
          >
nanrui committed
31
            <i class="el-icon-info" style="font-size:15px"></i>
32 33 34 35 36 37 38 39 40
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <c-col :span="2" :offset="1" style="text-align: right">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
41
            :disabled="!this.flag && model.dedgrp.rec.ownref == ''? false:true"
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
            @click="onDetpButgetref"
          >
            获取
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <!-- </c-col> -->
      </c-col>

      <c-col :span="24">
        <c-col :span="20">
          <el-form-item
            label="单据参考号"
            prop="bfdgrp.rec.ownref"
            style="width: 100%"
          >
            <c-input
              v-model="model.bfdgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入单据参考号"
              style="width: 95%"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <!-- <c-col :span="1" style="text-align: right"> -->
        <c-col :span="1">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 10px 0 0; padding: 0 12px"
            size="small"
            type="primary"
            @click="onSeainf"
75
            disabled
76
          >
nanrui committed
77
            <i class="el-icon-info" style="font-size:15px"></i>
78 79 80 81 82 83 84 85 86
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <c-col :span="2" :offset="1" style="text-align: right">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
87
            :disabled="!this.flag && model.bfdgrp.rec.ownref == ''? false:true"
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
            @click="onDetpButgetref"
          >
            获取
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <!-- </c-col> -->
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="单据金额" prop="bfdgrp.cbs.max.cur">
            <c-input
              v-model="model.bfdgrp.cbs.max.cur"
              maxlength="3"
              placeholder="请输入单据金额"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="bfdgrp.cbs.max.amt">
            <c-input
              v-model="model.bfdgrp.cbs.max.amt"
wangna committed
111
              placeholder="请输入"
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="单据余额" prop="bfdgrp.cbs.opn1.cur">
            <c-input
              v-model="model.bfdgrp.cbs.opn1.cur"
              maxlength="3"
              placeholder="请输入单据余额"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="bfdgrp.cbs.opn1.amt">
            <c-input
              v-model="model.bfdgrp.cbs.opn1.amt"
wangna committed
132
              placeholder="请输入"
133 134 135 136 137 138 139
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
140
          <c-select
141
            v-model="model.bfdgrp.rec.doctypcod"
142
            style="width: 100%"
143 144
            placeholder="请输入单据类型"
            disabled
145 146 147 148 149 150 151 152 153
          >
            <el-option
              v-for="item in codes.doctypcod"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="远期单据到期日" prop="bfdgrp.rec.matdat">
          <c-date-picker
            type="date"
            v-model="model.bfdgrp.rec.matdat"
            style="width: 100%"
            placeholder="请选择远期单据到期日"
            disabled
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="到单日期" prop="bfdgrp.rec.rcvdat">
            <c-date-picker
              type="date"
              v-model="model.bfdgrp.rec.rcvdat"
              style="width: 100%"
              placeholder="请选择到单日期"
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="提示日期" prop="bfdgrp.rec.predat">
            <c-date-picker
              type="date"
              v-model="model.bfdgrp.rec.predat"
              style="width: 100%"
              placeholder="请选择提示日期"
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="单据状态" prop="bfdgrp.rec.docsta">
193
          <c-select
194
            v-model="model.bfdgrp.rec.docsta"
195
            style="width: 100%"
196 197
            placeholder="请输入单据状态"
            disabled
198 199 200 201 202 203 204 205 206
          >
            <el-option
              v-for="item in codes.docsta"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
207 208 209 210 211
        </el-form-item>
      </c-col>
    </c-col>

    <!-- right -->
212
    <c-col :span="11" :offset="1">
213 214
      <c-col :span="24">
        <c-col :span="12">
215
          <el-form-item label="信用证余额" prop="dedgrp.cbs.opn1.cur">
216
            <c-input
217
              v-model="model.dedgrp.cbs.opn1.cur"
218 219 220 221 222 223 224
              maxlength="3"
              placeholder="请输入信用证余额"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
225
          <el-form-item label="" label-width="5px" prop="dedgrp.cbs.opn1.amt">
226
            <c-input
227
              v-model="model.dedgrp.cbs.opn1.amt"
wangna committed
228
              placeholder="请输入"
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <el-form-item label="摘要" prop="bfdgrp.rec.nam">
          <c-input
            v-model="model.bfdgrp.rec.nam"
            maxlength="40"
            placeholder="请输入摘要"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
250
            title: '交单人',
251 252 253 254 255 256
            grp: 'bfdgrp',
            rol: 'prb',
          }"
          :disabled="true"
        ></c-ptsmsg>
      </c-col>
wangna committed
257
      
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277
      <c-col :span="24">
        <el-form-item label="开证行编号" prop="dedgrp.rec.kzref">
          <c-input
            v-model="model.dedgrp.rec.kzref"
            maxlength="16"
            placeholder="'请输入开证行编号'"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="开证行名称" prop="bfdgrp.iss.pts.nam">
          <c-input
            v-model="model.bfdgrp.iss.pts.nam"
            maxlength="40"
            placeholder="'请输入开证行名称'"
            disabled
          ></c-input>
        </el-form-item>
278
      </c-col>
Wuyuqiu committed
279

280 281 282 283 284 285 286 287 288 289 290 291 292
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '申请人',
            grp: 'bfdgrp',
            rol: 'apl',
          }"
          :disabled="true"
        ></c-ptsmsg>
      </c-col>
    </c-col>
    <c-col :span="24">
293
      <el-form-item style="margin-left: -150px">
294 295 296 297 298 299
        <el-divider />
      </el-form-item>
    </c-col>

    <!-- next part -->
    <!-- left -->
300
    <c-col :span="11">
301 302
      <c-col :span="24">
        <el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
303
          <c-select
304
            v-model="model.bfdgrp.rec.doctypcod"
305
            style="width: 100%"
306 307
            placeholder="请输入单据类型"
            disabled
308 309 310 311 312 313 314 315 316
          >
            <el-option
              v-for="item in codes.doctypcod"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
317 318
        </el-form-item>
      </c-col>
Wuyuqiu committed
319

320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="单据金额" prop="bfdgrp.cbs.max.cur">
            <c-input
              v-model="model.bfdgrp.cbs.max.cur"
              maxlength="3"
              placeholder="请输入单据金额"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="bfdgrp.cbs.max.amt">
            <c-input
              v-model="model.bfdgrp.cbs.max.amt"
wangna committed
335
              placeholder="请输入"
Wuyuqiu committed
336 337 338 339 340 341 342 343 344 345 346 347 348 349
              @keyup.enter.native="show=!show"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24" v-if="show==true">
        <c-col :span="12">
          <el-form-item label="">
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="oldbfdgrp.cbs.max.amt">
            <c-input
              v-model="model.oldbfdgrp.cbs.max.amt"
wangna committed
350
              placeholder="请输入"
Wuyuqiu committed
351
              disabled
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 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="寄单索汇修改备注" prop="bfdgrp.blk.sndrmk">
          <c-input
            type="textarea"
            v-model="model.bfdgrp.blk.sndrmk"
            maxlength="65"
            show-word-limit
            placeholder="请输入寄单索汇修改备注"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="收单日期" prop="bfdgrp.rec.rcvdat">
            <c-date-picker
              type="date"
              v-model="model.bfdgrp.rec.rcvdat"
              style="width: 100%"
              placeholder="请选择收单日期"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="寄单日期" prop="bfdgrp.rec.orddat">
            <c-date-picker
              type="date"
              v-model="model.bfdgrp.rec.orddat"
              style="width: 100%"
              placeholder="请选择代付日期"
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="到期日期" prop="bfdgrp.rec.matdat">
            <c-date-picker
              type="date"
              v-model="model.bfdgrp.rec.matdat"
              style="width: 100%"
              placeholder="请选择到期日期"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="装运日期" prop="bfdgrp.rec.shpdat">
            <c-date-picker
              type="date"
              v-model="model.bfdgrp.rec.shpdat"
              style="width: 100%"
              placeholder="请选择装运日期"
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="远期单据到单日期" prop="bfdgrp.blk.matper">
          <c-input
            type="textarea"
            v-model="model.bfdgrp.blk.matper"
            maxlength="65"
            show-word-limit
            placeholder="请输入远期单据到单日期"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-checkbox
          v-model="model.bfdgrp.rec.dscinsflg"
          style="margin-left: 150px"
          disabled
          >输入单据,不符点,说明</c-checkbox
        >
      </c-col>
      <c-col :span="24">
        <el-form-item label="已交单次数" prop="dedgrp.rec.utlnbr">
          <c-input
            v-model="model.dedgrp.rec.utlnbr"
            placeholder="请输入已交单次数"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- right -->
442
    <c-col :span="11" :offset="1">
443 444 445 446 447 448 449 450
      <c-col :span="24">
        <el-form-item label="付款人" prop="bfdgrp.rec.payrol">
          <c-select
            v-model="model.bfdgrp.rec.payrol"
            style="width: 100%"
            placeholder="请选择付款人"
            disabled
          >
451 452 453 454 455 456 457
            <el-option
              v-for="item in codes.payrol"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
458 459 460 461 462 463 464 465 466
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="BIC" prop="bfdgrp.oth.pts.extkey">
          <c-input
            v-model="model.bfdgrp.oth.pts.extkey"
            maxlength="16"
wangna committed
467
            placeholder="请输入"
468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491
            @keyup.enter.native="showGridPromptDialog('bfdgrp.oth.pts.extkey')"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-ptapdome
        :disabledBankno="true"
        :disabledJigomc="true"
        :disabledDizhii="true"
        :model="model"
        :argadr="{
          title: '',
          rol: 'oth',
          grp: 'bfdgrp',
        }"
      ></c-ptapdome>

      <c-col :span="24">
        <el-form-item label="交单人" prop="bfdgrp.rec.docprbrol">
          <c-select
            v-model="model.bfdgrp.rec.docprbrol"
            style="width: 100%"
            placeholder="请选择交单人"
Wuyuqiu committed
492
            @change="selectOrCheckboxRule('bfdgrp.rec.docprbrol')"
493 494
          >
            <el-option
Wuyuqiu committed
495
              v-for="item in codes.docprbrol0"
496 497 498 499 500 501 502 503 504 505 506 507 508
              :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="{
509
            title: '',
510 511 512 513 514 515
            grp: 'bfdgrp',
            rol: 'prb',
          }"
          :noRef="true"
          :disabled="true"
          :isAdrblk="false"
Wuyuqiu committed
516
          :disabledExtkey="model.bfdgrp.rec.docprbrol == 'BEN'"
517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
        </c-ptap>
      </c-col>
    </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bftdrv/Event";
import Ptsmsg from "~/views/Public/Ptsmsg";
import PtapDome from "~/views/Public/PtapDome";
import Ptap from "~/views/Public/Ptap";

export default {
  components: { "c-ptsmsg": Ptsmsg, "c-ptapdome": PtapDome, "c-ptap": Ptap },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
Wuyuqiu committed
540 541 542
    return {
      show:false,
    };
543
  },
544 545 546 547 548
  computed: {
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
    },
  },
549 550 551 552 553 554
  methods: { ...Event },
  created: function () {},
};
</script>
<style>
</style>