Detp.vue 14.1 KB
Newer Older
hpj committed
1
<template>
LiRui committed
2
  <div class="eibs">
hpj committed
3
    <c-row>
lianyang committed
4
      <!-- =========================================左边============================================= -->
LiRui committed
5
      <c-col :span="12" style="padding-right: 20px;">
hpj committed
6 7 8 9 10 11 12
        <!-- Available with -->
        <c-col :span="24">
          <el-form-item label="指定银行" prop="ledgrp.rec.avbwth">
            <c-select
              v-model="model.ledgrp.rec.avbwth"
              style="width: 100%"
              placeholder="请选择指定银行"
lianyang committed
13
              :code="codes.avbwth"
hpj committed
14 15 16 17 18 19 20
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <c-ptap
21
            v-if="model.ledgrp.rec.avbwth!='O'"
hpj committed
22 23
            :model="model"
            :argadr="{
lianyang committed
24
              title: '',
hpj committed
25 26 27 28 29 30 31
              grp: 'ledgrp',
              rol: 'avb',
            }"
            :noRef="true"
            :onlySearch="true"
            @onSeainf="onSeainf"
            @onAplpDet="onAvbpDet"
32
            :disabledExtkey="!avbFlag"
hpj committed
33 34 35 36
          >
          </c-ptap>
        </c-col>

lianyang committed
37
        <!-- 名称地址 -->
hpj committed
38
        <c-col :span="24">
39 40 41 42 43 44 45 46 47 48 49
          <el-form-item
            label=""
            prop="ledgrp.avb.pts.adrblk"
            v-if="model.ledgrp.rec.avbwth != 'O'"
          >
            <c-input
              type="textarea"
              :rows="3"
              v-model="model.ledgrp.avb.pts.adrblk"
              maxlength="140"
              show-word-limit
50
              placeholder="请输入地址"
51 52 53 54 55 56 57
              :disabled="model.ledgrp.rec.avbwth!=''"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="" prop="ledgrp.blk.avbwthtxt"
            v-if="model.ledgrp.rec.avbwth == 'O'">
hpj committed
58 59 60 61
            <c-input
              type="textarea"
              :rows="3"
              v-model="model.ledgrp.blk.avbwthtxt"
lianyang committed
62
              maxlength="140"
hpj committed
63 64 65 66 67 68
              show-word-limit
              placeholder="请输入名称地址"
            ></c-input>
          </el-form-item>
        </c-col>

lianyang committed
69
        <!-- 信用证兑付方式  Available by-->
hpj committed
70 71 72 73 74 75
        <c-col :span="24">
          <el-form-item label="兑付方式" prop="ledgrp.rec.avbby">
            <c-select
              v-model="model.ledgrp.rec.avbby"
              style="width: 100%"
              placeholder="请选择兑付方式"
lianyang committed
76
              :code="codes.avbby0"
hpj committed
77 78 79 80 81
            >
            </c-select>
          </el-form-item>
        </c-col>

jianglong committed
82
        <!-- 远期付款指示 延期付款指示-->
hpj committed
83
        <c-col :span="24">
lianyang committed
84
          <el-form-item label="远期付款指示" prop="ledgrp.blk.defdet">
hpj committed
85 86 87 88
            <c-input
              type="textarea"
              :rows="3"
              v-model="model.ledgrp.blk.defdet"
lianyang committed
89
              maxlength="140"
hpj committed
90
              show-word-limit
lianyang committed
91 92
              placeholder="请输入远期付款指示"
              :disabled="defdetFlag"
hpj committed
93 94 95 96
            ></c-input>
          </el-form-item>
        </c-col>

lianyang committed
97
        <!-- drafts at 汇票期限 -->
hpj committed
98 99
        <c-col :span="24">
          <el-form-item label="汇票期限" prop="ledgrp.blk.dftat">
lianyang committed
100 101 102 103 104 105 106 107 108 109 110
            <c-fullbox>
              <c-input
                type="textarea"
                :rows="3"
                v-model="model.ledgrp.blk.dftat"
                maxlength="105"
                show-word-limit
                placeholder="请输入汇票期限"
                :disabled="blkDftatFlag"
              ></c-input>
              <template slot="footer">
111
                <!-- @click="onLcrdftatButtxmsel" -->
lianyang committed
112 113 114
                <c-button
                  size="small"
                  type="primary"
LiRui committed
115
                  icon="el-icon-more"
116
                  @click="showGridPromptDialog('letp.lcrdftat.buttxmsel', null, null,{TXT: 'ledgrp.blk.dftat'}, {TXT: false},'doxpDialog')"
lianyang committed
117 118 119 120 121
                  :disabled="blkDftatFlag"
                >
                </c-button>
              </template>
            </c-fullbox>
hpj committed
122 123 124 125 126 127 128
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
lianyang committed
129
              title: '付款人',
hpj committed
130 131 132 133
              grp: 'ledgrp',
              rol: 'drw',
            }"
            :noRef="true"
lianyang committed
134
            :onlySearch="false"
hpj committed
135 136
            @onSeainf="onSeainf"
            @onAplpDet="onDrwpDet"
137
            :disabledExtkey="blkDftatFlag"
lianyang committed
138
            :disabled="blkDftatFlag"
hpj committed
139 140 141 142
          >
          </c-ptap>
        </c-col>

lianyang committed
143
        <!-- Dispatch from   货物转运地(港) -->
hpj committed
144
        <c-col :span="24">
lianyang committed
145
          <el-form-item label="货物转运地(港)" prop="ledgrp.rec.shpfro">
hpj committed
146 147 148
            <c-input
              type="textarea"
              show-word-limit
lianyang committed
149 150 151
              v-model="model.ledgrp.rec.shpfro"
              maxlength="65"
              placeholder="请输入"
hpj committed
152 153 154 155
            ></c-input>
          </el-form-item>
        </c-col>

lianyang committed
156
        <!-- Air-/Port of Departure -->
hpj committed
157
        <c-col :span="24">
lianyang committed
158
          <el-form-item label="始发航空站/港口" prop="ledgrp.rec.porloa">
hpj committed
159
            <c-input
lianyang committed
160 161 162 163 164
              type="textarea"
              v-model="model.ledgrp.rec.porloa"
              maxlength="65"
              show-word-limit
              placeholder="请输入"
hpj committed
165 166 167 168
            ></c-input>
          </el-form-item>
        </c-col>

lianyang committed
169
        <!-- Air-/Port of Destination -->
hpj committed
170
        <c-col :span="24">
lianyang committed
171
          <el-form-item label="目的航空站/港口" prop="ledgrp.rec.pordis">
hpj committed
172 173
            <c-input
              type="textarea"
lianyang committed
174 175
              v-model="model.ledgrp.rec.pordis"
              maxlength="65"
hpj committed
176
              show-word-limit
lianyang committed
177
              placeholder="请输入"
hpj committed
178 179 180 181
            ></c-input>
          </el-form-item>
        </c-col>

jianglong committed
182
        <!-- 最终目的地 -->
hpj committed
183
        <c-col :span="24">
lianyang committed
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
          <el-form-item label="最终目的地" prop="ledgrp.rec.shpto">
            <c-input
              type="textarea"
              v-model="model.ledgrp.rec.shpto"
              maxlength="65"
              show-word-limit
              placeholder="最终目的地"
            ></c-input>
          </el-form-item>
        </c-col>

        <!-- Shipment Period -->
        <c-col :span="24">
          <el-form-item label="装运期" prop="ledgrp.blk.shpper">
            <c-input
              type="textarea"
              v-model="model.ledgrp.blk.shpper"
201
              maxlength="65"
lianyang committed
202 203
              show-word-limit
              placeholder="请输入装运期"
204
              :disabled="model.ledgrp.rec.shpdat!=''"
lianyang committed
205 206 207 208 209 210 211
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <!-- =========================================右边============================================= -->
      <!-- Mixed Payment Details -->
LiRui committed
212
      <c-col :span="12" style="padding-left: 20px;">
lianyang committed
213 214
        <c-col :span="24">
          <el-form-item label="混合付款指示" prop="ledgrp.blk.mixdet">
hpj committed
215 216
            <c-input
              type="textarea"
lianyang committed
217 218 219
              :rows="4"
              v-model="model.ledgrp.blk.mixdet"
              maxlength="140"
hpj committed
220
              show-word-limit
lianyang committed
221 222 223 224 225 226
              placeholder="混合付款指示"
              :disabled="model.ledgrp.rec.avbby != 'M'"
            ></c-input>
          </el-form-item>
        </c-col>

227
        <!-- <c-col :span="12">
jianglong committed
228
      <el-form-item label="交单期限" prop="ledgrp.blk.preper">
229 230 231 232 233
        <c-input
          type="textarea"
          v-model="model.ledgrp.blk.preper"
          maxlength="35"
          show-word-limit
jianglong committed
234
          placeholder="请输入交单期限"
235 236 237 238 239 240
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item
jianglong committed
241
        label="Days of 交单期限"
242 243 244 245
        prop="ledgrp.rec.prepers18"
      >
        <c-input
          v-model="model.ledgrp.rec.prepers18"
jianglong committed
246
          placeholder="请输入交单期限(天)"
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <c-button
        size="small"
        type="primary"
        icon="el-icon-search"
        @click="onPreperButtxmsel"
      >
        ...
      </c-button>
    </c-col> 
    
        <c-col :span="12">
      <el-form-item
        label="Presentation period text"
        prop="ledgrp.rec.prepertxts18"
      >
        <c-input
          v-model="model.ledgrp.rec.prepertxts18"
          maxlength="35"
wangna committed
270
          placeholder="请输入"
271 272 273 274 275 276
        ></c-input>
      </el-form-item>
    </c-col>-->


        <!-- 交单期限 Days of presentation period-->
lianyang committed
277
        <c-col :span="24">
278
          <el-form-item label="交单期限" prop="ledgrp.rec.prepers18">
lianyang committed
279 280
            <c-fullbox>
              <c-input
281
                v-model="model.ledgrp.rec.prepers18"
jianglong committed
282
                placeholder="请输入交单期限(天)"
lianyang committed
283 284
              ></c-input>
              <template slot="footer">
285
                <!-- @click="onPreperButtxmsel" -->
lianyang committed
286 287 288
                <c-button
                  size="small"
                  type="primary"
LiRui committed
289
                  icon="el-icon-more"
290 291
                  @click="showGridPromptDialog('letp.preper.buttxmsel', null, null,{TXT: 'ledgrp.rec.prepers18'}, {TXT: false},'doxpDialog')"
                  disabled
lianyang committed
292 293 294 295 296 297 298 299 300
                >
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>

        <!-- Days of presentation period -->
        <c-col :span="24">
301
          <el-form-item label="" prop="ledgrp.rec.prepertxts18">
lianyang committed
302
            <c-input
303
              v-model.number="model.ledgrp.rec.prepertxts18"
lianyang committed
304
              placeholder="请输入交单期天数"
hpj committed
305 306 307 308
            ></c-input>
          </el-form-item>
        </c-col>

lianyang committed
309 310 311 312 313 314 315 316 317 318 319 320 321
        <!-- Additional Details to  Charges  -->
        <c-col :span="24">
          <el-form-item label="附加收费详情" prop="ledgrp.blk.feetxt">
            <c-fullbox>
              <c-input
                type="textarea"
                :rows="6"
                v-model="model.ledgrp.blk.feetxt"
                maxlength="210"
                show-word-limit
                placeholder="请输入附加收费详情"
              ></c-input>
              <template slot="footer">
322
                <!-- @click="onChariaButtxmsel" -->
lianyang committed
323 324 325
                <c-button
                  size="small"
                  type="primary"
LiRui committed
326
                  icon="el-icon-more"
327
                  @click="showGridPromptDialog('letp.charia.buttxmsel', null, null,{TXT: 'ledgrp.blk.feetxt'}, {TXT: false},'doxpDialog')"
lianyang committed
328 329 330 331 332 333 334
                >
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>

hpj committed
335
        <!-- Own Charges Borne by -->
lianyang committed
336
        <c-col :span="24">
lianyang committed
337
          <el-form-item label="费用状况" prop="ledgrp.rec.chato">
hpj committed
338 339 340 341
            <c-select
              v-model="model.ledgrp.rec.chato"
              style="width: 100%"
              placeholder="请选择"
lianyang committed
342
              :code="codes.chadet"
hpj committed
343 344 345 346 347
            >
            </c-select>
          </el-form-item>
        </c-col>

lianyang committed
348
        <!-- country or region code -->
lianyang committed
349
        <c-col :span="24">
lianyang committed
350
          <el-form-item label="国家或地区代码" prop="ledgrp.rec.stacty">
hpj committed
351 352 353
            <c-select
              v-model="model.ledgrp.rec.stacty"
              style="width: 100%"
lianyang committed
354
              placeholder="请选择国家或地区代码"
lianyang committed
355
              :code="codes.ctytxt"
hpj committed
356 357 358 359
            >
            </c-select>
          </el-form-item>
        </c-col>
lianyang committed
360
        <!-- 付款期限 Maxinum Tenor-->
lianyang committed
361
        <c-col :span="24">
lianyang committed
362
          <el-form-item label="付款期限(天)" prop="ledgrp.rec.tenmaxday">
hpj committed
363
            <c-input
lianyang committed
364
              v-model.number="model.ledgrp.rec.tenmaxday"
lianyang committed
365 366 367
              placeholder="请输入"
              :disabled="model.ledgrp.rec.avbby == 'P'"
              maxlength="4"
368
              @keyup.enter.native="$event.target.blur()"
hpj committed
369
            ></c-input>
370
            <!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
hpj committed
371 372 373 374 375 376 377
          </el-form-item>
        </c-col>
      </c-col>
    </c-row>
  </div>
</template>
<script>
lianyang committed
378 379 380 381 382
import Api from '~/service/Api'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Event from '~/model/Letnot/Event'
import Ptap from '~/views/Public/Ptap'
hpj committed
383 384

export default {
lianyang committed
385 386
  components: {
    // "c-ptap1": Ptap1,
lianyang committed
387
    'c-ptap': Ptap,
lianyang committed
388 389
    // "c-ptsmsg": Ptsmsg,
  },
lianyang committed
390 391
  inject: ['root'],
  props: ['model', 'codes'],
392
  mixins: [commonProcess],
hpj committed
393
  data() {
lianyang committed
394 395 396 397
    return {}
  },
  methods: {
    ...Event,
398 399 400 401 402 403 404 405 406 407 408 409
    // avbwthEvent(){
    //   if (this.model.ledgrp.rec.avbwth != 'A'||this.model.ledgrp.rec.avbwth != 'O') {
    //     this.model.ledgrp.avb.pts.extkey = ''
    //     this.model.ledgrp.blk.avbwthtxt = ''
    //   }
    // },
    // avbbykeyEvent() {
    //   if (this.model.ledgrp.rec.avbby == 'P') {
    //     this.model.ledgrp.rec.tenmaxday = 0
    //     this.model.ledgrp.blk.defdet = ''
    //   }
    //   if (this.model.ledgrp.rec.avbby == 'D'||this.model.ledgrp.rec.avbby =='M') {
410
        
411 412 413
    //     this.model.ledgrp.blk.defdet = '' //汇票期限置空
    //     this.model.ledgrp.drw.pts.extkey = ''//付款人置空
    //     this.model.ledgrp.drw.pts.adrblk = ''  //名称地址置空.pts.adrblk
414

415 416 417 418 419 420 421
    //   }
    //   this.executeCheck('ledgrp.rec.avbby').then((res) => {
    //     if (res.respCode == SUCCESS) {
    //       Utils.copyValueFromVO(this.model, res.data)
    //     }
    //   })
    // },
hpj committed
422 423
  },
  created: function () {},
lianyang committed
424
  computed: {
425 426 427 428
    avbFlag: {
      get() {
        return (
          this.model.ledgrp.rec.avbwth == 'A' ||
429 430
          this.model.ledgrp.rec.avbwth == 'S' ||
          this.model.ledgrp.rec.avbwth == ''
431 432 433
        )
      },
    },
lianyang committed
434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455
    defdetFlag: {
      get() {
        return (
          // this.model.ledgrp.rec.avbby == 'A' ||
          // this.model.ledgrp.rec.avbby == 'P' ||
          // this.model.ledgrp.rec.avbby == 'M' ||
          // this.model.ledgrp.rec.avbby == ''
          this.model.ledgrp.rec.avbby != 'D' &&
          this.model.ledgrp.rec.avbby != 'N'
        )
      },
    },
    blkDftatFlag: {
      get() {
        return (
          this.model.ledgrp.rec.avbby == 'D' ||
          this.model.ledgrp.rec.avbby == 'M' ||
          this.model.ledgrp.rec.avbby == ''
        )
      },
    },
  },
hpj committed
456
  watch: {
lianyang committed
457
    'model.ledgrp.avb.pts.adrblk': {
hpj committed
458
      handler(val, oldVal) {
lianyang committed
459
        this.model.ledgrp.blk.avbwthtxt = val
hpj committed
460 461 462 463
      },
      immediate: true,
    },
  },
lianyang committed
464
}
hpj committed
465
</script>
lianyang committed
466
<style></style>