Betdcrs.vue 13.3 KB
Newer Older
liumin committed
1 2
<template>
  <div class="eibs-tab">
3
    <!-- left -->
4
    <c-col :span="11">
5 6 7 8
      <c-col :span="24">
        <c-col :span="20">
          <el-form-item
            label="参考号"
9
            prop="dedgrp.rec.ownref"
10 11 12
            style="width: 100%"
          >
            <c-input
13
              v-model="model.dedgrp.rec.ownref"
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
              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"
          >
nanrui committed
30
          <i class="el-icon-info" style="font-size:15px"></i>
31 32 33 34 35 36 37 38 39
          </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"
40
            :disabled="!this.flag && model.dedgrp.rec.ownref == ''? false:true"
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 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"
          >
nanrui committed
75
          <i class="el-icon-info" style="font-size:15px"></i>
76 77 78 79 80 81 82 83 84
          </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"
85
            :disabled="!this.flag && model.bfdgrp.rec.ownref == ''? false:true"
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
            @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
109
              placeholder="请输入"
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
              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
130
              placeholder="请输入"
131 132 133 134 135
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
wangna committed
136

137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
      <c-col :span="24">
        <el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
          <c-select
            v-model="model.bfdgrp.rec.doctypcod"
            style="width: 100%"
            placeholder="请输入单据类型"
            disabled
          >
            <el-option
              v-for="item in codes.doctypcod"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
154 155 156 157 158 159 160 161
      </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="请选择远期单据到期日"
162
            value-format="yyyy-MM-dd"
163 164
            disabled
          ></c-date-picker>
liumin committed
165
        </el-form-item>
166 167 168 169 170 171 172 173 174 175 176 177
      </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>
liumin committed
178
        </c-col>
179 180 181 182 183 184 185 186 187 188
        <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>
liumin committed
189
        </c-col>
190
      </c-col>
wangna committed
191
      
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
      <c-col :span="24">
        <el-form-item label="单据状态" prop="bfdgrp.rec.docsta">
          <c-select
            v-model="model.bfdgrp.rec.docsta"
            style="width: 100%"
            placeholder="请输入单据状态"
            disabled
          >
            <el-option
              v-for="item in codes.docsta"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
209 210
      </c-col>
    </c-col>
211 212

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

      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
Eivi committed
251
            title: '交单人',
252 253 254 255 256 257
            grp: 'bfdgrp',
            rol: 'prb',
          }"
          :disabled="true"
        ></c-ptsmsg>
      </c-col>
Eivi committed
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278

      <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>
279
      </c-col>
Eivi committed
280

281 282 283 284 285 286 287 288 289 290 291
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '申请人',
            grp: 'bfdgrp',
            rol: 'apl',
          }"
          :disabled="true"
        ></c-ptsmsg>
      </c-col>
292 293
    </c-col>
    <c-col :span="24">
294
      <el-form-item style="margin-left: -150px">
295 296 297 298 299
        <el-divider />
      </el-form-item>
    </c-col>
    <!-- next part -->
    <!-- left -->
300
    <c-col :span="11">
301 302 303 304 305 306 307
      <c-col :span="24">
        <c-checkbox v-model="advrefflg" style="margin-left: 150px"
          >拒付通知登记</c-checkbox
        >
      </c-col>

      <c-col :span="24">
Eivi committed
308
        <c-checkbox v-model="clsflg" style="margin-left: 150px"
309 310 311 312 313
          >退单通知登记</c-checkbox
        >
      </c-col>

      <c-col :span="24">
Eivi committed
314
        <c-checkbox v-model="clsflg" style="margin-left: 150px" disabled
315 316 317 318 319 320
          >闭卷</c-checkbox
        >
      </c-col>

      <c-col :span="24">
        <c-checkbox
Eivi committed
321 322
          v-model="advdisflg"
          style="margin-left: 150px; margin-top: 100px; margin-bottom: 10px"
wangna committed
323
          >差异通知(MT750)</c-checkbox
324 325 326 327 328 329 330 331 332 333 334
        >
      </c-col>

      <c-col :span="24">
        <el-form-item label="给受益人信息" prop="trnmod.trndoc.addstr750">
          <c-input
            type="textarea"
            v-model="model.trnmod.trndoc.addstr750"
            maxlength="35"
            show-word-limit
            placeholder="请输入给受益人信息"
Eivi committed
335
            :disabled="!advdisflg"
336 337 338 339 340
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
    <!-- right -->
341
    <c-col :span="11" :offset="1">
342 343 344 345 346 347
      <c-col :span="24">
        <el-form-item label="付款人" prop="bfdgrp.rec.payrol">
          <c-select
            v-model="model.bfdgrp.rec.payrol"
            style="width: 100%"
            placeholder="请选择付款人"
348
            disabled
349
          >
350 351 352 353 354 355 356
            <el-option
              v-for="item in codes.payrol"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
357
          </c-select>
liumin committed
358
        </el-form-item>
359 360 361 362 363 364 365
      </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
366
            placeholder="请输入"
367
            @keyup.enter.native="showGridPromptDialog('bfdgrp.oth.pts.extkey')"
368
            disabled
369
          ></c-input>
liumin committed
370
        </el-form-item>
371 372 373 374 375 376 377 378 379 380
      </c-col>

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

      <c-col :span="24">
386 387 388 389 390
        <el-form-item label="交单行" prop="bfdgrp.rec.docprbrol">
          <c-select
            v-model="model.bfdgrp.rec.docprbrol"
            style="width: 100%"
            placeholder="请选择交单行"
391
            disabled
Wuyuqiu committed
392 393 394
            @change="eventFunction(
                    'bfdgrp.rec.docprbrol'
                  )"
395 396 397 398 399 400 401 402 403 404 405
          >
            <el-option
              v-for="item in codes.docprbrol"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
406 407 408 409 410

      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
411
            title: '',
412 413 414 415 416 417
            grp: 'bfdgrp',
            rol: 'prb',
          }"
          :noRef="true"
          :disabled="true"
          :isAdrblk="false"
Wuyuqiu committed
418
          :disabledExtkey="model.bfdgrp.rec.docprbrol=='BEN'"
419 420 421 422 423 424
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
        </c-ptap>
      </c-col>
    </c-col>
liumin committed
425 426 427
  </div>
</template>
<script>
428
import Api from "~/service/Api";
wangren committed
429
import commonProcess from "~/mixin/commonProcess";
430 431 432 433 434
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bftdcr/Event";
import Ptsmsg from "~/views/Public/Ptsmsg";
import PtapDome from "~/views/Public/PtapDome";
import Ptap from "~/views/Public/Ptap";
liumin committed
435 436

export default {
437
  components: { "c-ptsmsg": Ptsmsg, "c-ptapdome": PtapDome, "c-ptap": Ptap },
438 439 440 441 442 443
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
Eivi committed
444 445 446 447
  computed: {
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
    },
448
    advrefflg: {
Eivi committed
449 450 451 452 453 454 455
      get() {
        return this.model.advrefflg != "";
      },
      set(val) {
        this.model.advrefflg = val ? "X" : "";
      },
    },
wangna committed
456
  
Eivi committed
457 458 459 460 461 462 463
    clsflg: {
      get() {
        return this.model.bfdgrp.rec.advdocflg != "";
      },
      set(val) {
        this.model.bfdgrp.rec.advdocflg = val ? "X" : "";
        this.model.mtabut.clsflg = val ? "C" : "O";
464
      },
Eivi committed
465 466 467 468
    },
    advdisflg: {
      get() {
        return this.model.advdisflg != "";
469
      },
Eivi committed
470 471
      set(val) {
        this.model.advdisflg = val ? "X" : "";
472
      },
Eivi committed
473
    },
474
  },
475 476 477
  methods: { ...Event },
  created: function () {},
};
liumin committed
478 479 480
</script>
<style>
</style>