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

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

35
        <!-- 名称地址 -->
zhengxiaokui committed
36
        <c-col :span="24">
37 38 39 40 41 42 43 44 45 46 47
          <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
48
              placeholder="请输入地址"
49 50 51 52 53 54 55
              :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'">
zhengxiaokui committed
56 57 58 59
            <c-input
              type="textarea"
              :rows="3"
              v-model="model.ledgrp.blk.avbwthtxt"
60
              maxlength="140"
zhengxiaokui committed
61 62 63 64 65 66 67 68 69 70 71 72
              show-word-limit
              placeholder="请输入名称地址"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="兑付方式" prop="ledgrp.rec.avbby">
            <c-select
              v-model="model.ledgrp.rec.avbby"
              style="width: 100%"
              placeholder="请选择兑付方式"
73
              :code="codes.avbby0"
zhengxiaokui committed
74 75 76 77 78
            >
            </c-select>
          </el-form-item>
        </c-col>

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

94
        <!-- drafts at 汇票期限 -->
zhengxiaokui committed
95 96
        <c-col :span="24">
          <el-form-item label="汇票期限" prop="ledgrp.blk.dftat">
97 98 99 100 101 102 103 104 105 106 107
            <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">
108
                <!-- @click="onLcrdftatButtxmsel" -->
109 110 111
                <c-button
                  size="small"
                  type="primary"
112
                  icon="el-icon-more"
113
                  @click="showGridPromptDialog('letp.lcrdftat.buttxmsel', null, null,{TXT: 'ledgrp.blk.dftat'}, {TXT: false},'doxpDialog')"
114 115 116 117 118
                  :disabled="blkDftatFlag"
                >
                </c-button>
              </template>
            </c-fullbox>
zhengxiaokui committed
119 120 121 122 123 124 125
          </el-form-item>
        </c-col>

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

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

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

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

jianglong committed
179
        <!-- 最终目的地 -->
zhengxiaokui committed
180
        <c-col :span="24">
181 182 183 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"
              maxlength="65"
              show-word-limit
              placeholder="请输入装运期"
201
              :disabled="model.ledgrp.rec.shpdat!=''"
202 203 204 205 206
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

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

224 225

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

    <c-col :span="12">
      <el-form-item
jianglong committed
239
        label="Days of 交单期限"
240 241 242 243
        prop="ledgrp.rec.prepers18"
      >
        <c-input
          v-model="model.ledgrp.rec.prepers18"
jianglong committed
244
          placeholder="请输入交单期限(天)"
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
        ></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
268
          placeholder="请输入"
269 270 271 272 273 274 275 276 277 278 279
        ></c-input>
      </el-form-item>
    </c-col>-->


        <!-- 交单期限 Days of presentation period-->
        <c-col :span="24">
          <el-form-item label="交单期限" prop="ledgrp.rec.prepers18">
            <c-fullbox>
              <c-input
                v-model="model.ledgrp.rec.prepers18"
jianglong committed
280
                placeholder="请输入交单期限(天)"
281 282
              ></c-input>
              <template slot="footer">
283
                <!-- @click="onPreperButtxmsel" -->
284 285 286
                <c-button
                  size="small"
                  type="primary"
287
                  icon="el-icon-more"
288 289
                  @click="showGridPromptDialog('letp.preper.buttxmsel', null, null,{TXT: 'ledgrp.rec.prepers18'}, {TXT: false},'doxpDialog')"
                  disabled
290 291 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">
          <el-form-item label="" prop="ledgrp.rec.prepertxts18">
            <c-input
301
              v-model="model.ledgrp.rec.prepertxts18"
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
              placeholder="请输入交单期天数"
            ></c-input>
          </el-form-item>
        </c-col>

        <!-- 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">
320
                <!-- @click="onChariaButtxmsel" -->
321 322 323
                <c-button
                  size="small"
                  type="primary"
324
                  icon="el-icon-more"
325
                  @click="showGridPromptDialog('letp.charia.buttxmsel', null, null,{TXT: 'ledgrp.blk.feetxt'}, {TXT: false},'doxpDialog')"
326 327 328 329 330 331 332
                >
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>

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

346 347 348
        <!-- country or region code -->
        <c-col :span="24">
          <el-form-item label="国家或地区代码" prop="ledgrp.rec.stacty">
zhengxiaokui committed
349 350 351
            <c-select
              v-model="model.ledgrp.rec.stacty"
              style="width: 100%"
352 353
              placeholder="请选择国家或地区代码"
              :code="codes.ctytxt"
zhengxiaokui committed
354 355 356 357 358
            >
            </c-select>
          </el-form-item>
        </c-col>

359 360 361
        <!-- 付款期限 Maxinum Tenor-->
        <c-col :span="24">
          <el-form-item label="付款期限(天)" prop="ledgrp.rec.tenmaxday">
zhengxiaokui committed
362
            <c-input
363 364 365 366
              v-model.number="model.ledgrp.rec.tenmaxday"
              placeholder="请输入"
              :disabled="model.ledgrp.rec.avbby == 'P'"
              maxlength="4"
367
              @keyup.enter.native="$event.target.blur()"
zhengxiaokui committed
368
            ></c-input>
369
            <!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
zhengxiaokui committed
370 371 372
          </el-form-item>
        </c-col>
      </c-col>
zhengxiaokui committed
373 374 375
  </div>
</template>
<script>
376 377 378 379 380
import Api from '~/service/Api'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Ptap from '~/views/Public/Ptap'
import Event from '~/model/Letopn/Event'
zhengxiaokui committed
381 382

export default {
383 384 385
  inject: ['root'],
  components: { 'c-ptap': Ptap },
  props: ['model', 'codes'],
wangren committed
386
  mixins: [commonProcess],
zhengxiaokui committed
387
  data() {
388 389 390 391
    return {}
  },
  methods: { 
    ...Event,
392 393 394 395 396 397 398 399 400 401 402 403
    // 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') {
404
        
405 406 407
    //     this.model.ledgrp.blk.defdet = '' //汇票期限置空
    //     this.model.ledgrp.drw.pts.extkey = ''//付款人置空
    //     this.model.ledgrp.drw.pts.adrblk = ''  //名称地址置空.pts.adrblk
408

409 410
    //   }
    // },
411
  
zhengxiaokui committed
412 413
  },
  created: function () {},
414 415 416 417 418
  computed: {
    avbFlag: {
      get() {
        return (
          this.model.ledgrp.rec.avbwth == 'A' ||
419 420
          this.model.ledgrp.rec.avbwth == 'S' ||
          this.model.ledgrp.rec.avbwth == ''
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445
        )
      },
    },
    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 == ''
        )
      },
    },
  },
zhengxiaokui committed
446
  watch: {
447
    'model.ledgrp.avb.pts.adrblk': {
zhengxiaokui committed
448
      handler(val, oldVal) {
449
        this.model.ledgrp.blk.avbwthtxt = val
zhengxiaokui committed
450 451 452 453
      },
      immediate: true,
    },
  },
454
}
zhengxiaokui committed
455
</script>
456
<style></style>