Rgfp.vue 14.1 KB
Newer Older
1
<template>
2 3
  <div class="eibs-tab">
    <!-- 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
            style="width: 100%"
          >
zhoubaojian committed
12
            <c-input
13
              v-model="model.dedgrp.rec.ownref"
14 15 16
              maxlength="16"
              placeholder="请输入参考号"
              style="width: 95%"
zhoubaojian committed
17
              disabled
zhoubaojian committed
18
            ></c-input>
zhoubaojian committed
19 20
          </el-form-item>
        </c-col>
21 22 23 24 25 26 27 28 29
        <!-- <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
            @click="onDetpButgetref"
          >
            获取
          </c-button>
          <!-- </el-form-item> -->
zhoubaojian committed
46
        </c-col>
47
        <!-- </c-col> -->
zhoubaojian committed
48
      </c-col>
zhoubaojian committed
49 50

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

    <!-- right -->
211
    <c-col :span="11" :offset="1">
zhoubaojian committed
212
      <c-col :span="24">
213
        <c-col :span="12">
214
          <el-form-item label="信用证余额" prop="dedgrp.cbs.opn1.cur">
215
            <c-input
216
              v-model="model.dedgrp.cbs.opn1.cur"
217 218 219 220 221 222 223
              maxlength="3"
              placeholder="请输入信用证余额"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
224
          <el-form-item label="" label-width="5px" prop="dedgrp.cbs.opn1.amt">
225
            <c-input
226
              v-model="model.dedgrp.cbs.opn1.amt"
wangna committed
227
              placeholder="请输入"
228 229 230 231
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
zhoubaojian committed
232
      </c-col>
zhoubaojian committed
233

zhoubaojian committed
234
      <c-col :span="24">
235
        <el-form-item label="摘要" prop="bfdgrp.rec.nam">
zhoubaojian committed
236
          <c-input
237
            v-model="model.bfdgrp.rec.nam"
zhoubaojian committed
238
            maxlength="40"
239
            placeholder="请输入摘要"
zhoubaojian committed
240 241 242 243 244 245
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
246 247 248
        <c-ptsmsg
          :model="model"
          :argadr="{
249
            title: '交单人',
250 251 252 253 254
            grp: 'bfdgrp',
            rol: 'prb',
          }"
          :disabled="true"
        ></c-ptsmsg>
zhoubaojian committed
255
      </c-col>
wangna committed
256
      
257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276
      <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>
zhoubaojian committed
277
      </c-col>
zhoubaojian committed
278
      <c-col :span="24">
279 280 281 282 283 284 285 286 287 288 289 290
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '申请人',
            grp: 'bfdgrp',
            rol: 'apl',
          }"
          :disabled="true"
        ></c-ptsmsg>
      </c-col>
    </c-col>
    <c-col :span="24">
291
      <el-form-item style="margin-left: -150px">
292 293 294 295 296
        <el-divider />
      </el-form-item>
    </c-col>

    <!-- next part -->
297 298 299
    <c-docpre
      :model="model"
      :argadr="{
300
        path: 'bfdgrp.blk.prsdoc', 
301 302 303 304 305
        grp: 'bftp',
        code: 'prsdoc',
      }"
    >
    </c-docpre>
wangna committed
306
 
307
    <c-col :span="24">
Wuyuqiu committed
308
      <c-col :span="11">
309 310 311 312 313 314 315 316
        <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>
317
        </el-form-item>
zhoubaojian committed
318
      </c-col>
Wuyuqiu committed
319
      <c-col :span="11" :offset="1">
320 321 322 323 324 325 326 327
        <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>
328
      </c-col>
329 330
    </c-col>
    <c-col :span="24">
Wuyuqiu committed
331
      <c-col :span="11">
332 333 334 335 336 337 338 339
        <el-form-item label="寄单日期" prop="bfdgrp.rec.predat">
          <c-date-picker
            type="date"
            v-model="model.bfdgrp.rec.predat"
            style="width: 100%"
            placeholder="请选择代付日期"
          ></c-date-picker>
        </el-form-item>
340
      </c-col>
Wuyuqiu committed
341
      <c-col :span="11" :offset="1">
342 343 344 345 346 347
        <el-form-item label="到期日期" prop="bfdgrp.rec.matdat">
          <c-date-picker
            type="date"
            v-model="model.bfdgrp.rec.matdat"
            style="width: 100%"
            placeholder="请选择到期日期"
348 349 350 351
            :disabled="
              model.bfdgrp.blk.matper != '' ||
              model.bfdgrp.rec.doctypcod === 'P'
            "
352 353
          ></c-date-picker>
        </el-form-item>
zhoubaojian committed
354 355
      </c-col>
    </c-col>
zhoubaojian committed
356

357
    <!-- left -->
358
    <c-col :span="11">
359
      <c-col :span="24">
zhoubaojian committed
360 361 362 363 364
        <el-form-item label="付款人" prop="bfdgrp.rec.payrol">
          <c-select
            v-model="model.bfdgrp.rec.payrol"
            style="width: 100%"
            placeholder="请选择付款人"
365
            disabled
zhoubaojian committed
366
          >
367 368 369 370 371 372 373
            <el-option
              v-for="item in codes.payrol"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
zhoubaojian committed
374 375 376
          </c-select>
        </el-form-item>
      </c-col>
377

zhoubaojian committed
378
      <c-col :span="24">
zhoubaojian committed
379 380 381 382
        <el-form-item label="BIC" prop="bfdgrp.oth.pts.extkey">
          <c-input
            v-model="model.bfdgrp.oth.pts.extkey"
            maxlength="16"
wangna committed
383
            placeholder="请输入"
384 385
            @keyup.enter.native="showGridPromptDialog('bfdgrp.oth.pts.extkey')"
            disabled
zhoubaojian committed
386 387 388 389
          ></c-input>
        </el-form-item>
      </c-col>

390 391 392 393 394 395 396 397 398 399 400
      <c-ptapdome
        :disabledBankno="true"
        :disabledJigomc="true"
        :disabledDizhii="true"
        :model="model"
        :argadr="{
          title: '',
          rol: 'oth',
          grp: 'bfdgrp',
        }"
      ></c-ptapdome>
401
    </c-col>
zhoubaojian committed
402

403
    <!-- right -->
404
    <c-col :span="11" :offset="1">
zhoubaojian committed
405
      <c-col :span="24">
406 407 408 409 410 411 412 413 414 415 416 417 418 419 420
        <el-form-item label="交单人" prop="bfdgrp.rec.docprbrol">
          <c-select
            v-model="model.bfdgrp.rec.docprbrol"
            style="width: 100%"
            placeholder="请选择交单人"
            disabled
          >
            <el-option
              v-for="item in codes.docprbrol"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
zhoubaojian committed
421 422 423 424
        </el-form-item>
      </c-col>

      <c-col :span="24">
425 426 427
        <c-ptap
          :model="model"
          :argadr="{
428
            title: '',
429 430 431 432 433 434 435 436 437 438
            grp: 'bfdgrp',
            rol: 'prb',
          }"
          :noRef="true"
          :disabled="true"
          :isAdrblk="false"
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
        </c-ptap>
zhoubaojian committed
439
      </c-col>
440
    </c-col>
zhoubaojian committed
441

442 443 444 445 446 447 448 449
    <c-col :span="20">
      <el-form-item label="远期单据到期时间" prop="bfdgrp.blk.matper">
        <c-input
          type="textarea"
          v-model="model.bfdgrp.blk.matper"
          maxlength="65"
          show-word-limit
          placeholder="请输入远期单据到期时间"
450 451 452 453
          :disabled="
            (model.bfdgrp.rec.matdat && model.bfdgrp.rec.matdat != '') ||
            model.bfdgrp.rec.doctypcod === 'P'
          "
454 455 456
        ></c-input>
      </el-form-item>
    </c-col>
zhoubaojian committed
457

458
    <c-col :span="3" style="float: right">
459
      <c-checkbox v-model="model.ameadrflg" disabled
wangna committed
460
        >汇款受益人地址</c-checkbox
461 462
      >
    </c-col>
zhoubaojian committed
463
  </div>
464 465
</template>
<script>
zhoubaojian committed
466
import Api from "~/service/Api";
wangren committed
467
import commonProcess from "~/mixin/commonProcess";
zhoubaojian committed
468 469
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bftsnd/Event";
470 471
import Ptsmsg from "~/views/Public/Ptsmsg";
import PtapDome from "~/views/Public/PtapDome";
zhoubaojian committed
472
import Ptap from "~/views/Public/Ptap";
Eivi committed
473
import Utils from "~/utils";
474
import Docpre from "~/views/Public/Docpre";
475 476

export default {
477 478 479 480 481 482 483
  name:'Docpre',
  components: {
    "c-ptsmsg": Ptsmsg,
    "c-ptapdome": PtapDome,
    "c-ptap": Ptap,
    "c-docpre": Docpre,
  },
zhoubaojian committed
484 485
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
486
  mixins: [commonProcess],
zhoubaojian committed
487
  data() {
488
    return {};
zhoubaojian committed
489
  },
490 491 492 493 494
  computed: {
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
    },
  },
495 496 497
  methods: {
    ...Event,
  },
zhoubaojian committed
498 499
  created: function () {},
};
500
</script>
501
<style>
502
</style>