Detp.vue 10.9 KB
Newer Older
孟冬雪 committed
1
<template>
2
  <div class="eibs">
Wuyuqiu committed
3
       <!-- left -->
Wuyuqiu committed
4
      <c-col :span="12" style="padding-right: 20px;">
wangna committed
5
        <!-- 被授权的银行当事人 -->
Wuyuqiu committed
6
        <c-col :span="24">
wangna committed
7
          <el-form-item label="被授权的银行当事人" prop="ltdgrp.rec.avbwth">
Wuyuqiu committed
8 9 10
            <c-select
              v-model="model.ltdgrp.rec.avbwth"
              style="width: 100%"
wangna committed
11
              placeholder="请选择被授权的银行当事人"
Wuyuqiu committed
12 13 14 15 16
              :code="codes.avbwth"
              @change="avbwthEvent"
            >
            </c-select>
          </el-form-item>
17
        </c-col>
Wuyuqiu committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44

        <c-col :span="24">
          <c-ptap
            v-if="model.ltdgrp.rec.avbwth!='O'"
            :model="model"
            :argadr="{
              title: '',
              grp: 'ltdgrp',
              rol: 'avt',
            }"
            :noRef="true"
            :onlySearch="true"
            @onSeainf="onSeainf"
            @onAplpDet="onAvbpDet"
          >
          </c-ptap>
        </c-col>

        <c-col :span="24">
          <el-form-item label="名称地址" prop="ltdgrp.blk.avbwthtxt">
            <c-input
              type="textarea"
              :rows="3"
              v-model="model.ltdgrp.blk.avbwthtxt"
              maxlength="140"
              show-word-limit
              placeholder="请输入名称地址"
Wuyuqiu committed
45
              :disabled="model.ltdgrp.rec.avbwth == 'I'||model.ltdgrp.rec.avbwth == 'C'"
Wuyuqiu committed
46 47 48 49 50
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
wangna committed
51
          <el-form-item label="信用证兑付方式" prop="ltdgrp.rec.avbby">
Wuyuqiu committed
52 53 54
            <c-select
              v-model="model.ltdgrp.rec.avbby"
              style="width: 100%"
wangna committed
55
              placeholder="请选择信用证兑付方式"
Wuyuqiu committed
56 57 58 59 60 61 62 63 64
              :code="codes.avbby"
              @change="avbbykeyEvent"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item
wangna committed
65
            label="延期付款指示"
Wuyuqiu committed
66 67 68 69 70 71 72 73
            prop="ltdgrp.blk.defdet"
          >
            <c-input
              type="textarea"
              :rows="3"
              v-model="model.ltdgrp.blk.defdet"
              maxlength="35"
              show-word-limit
wangna committed
74
              placeholder="请输入延期付款指示"
Wuyuqiu committed
75 76 77 78 79 80 81
              :disabled="defdetFlag"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item
wangna committed
82
            label="汇票期限"
Wuyuqiu committed
83 84 85 86 87 88 89 90
            prop="ltdgrp.blk.dftat"
          >
            <c-input
              type="textarea"
              :rows="3"
              v-model="model.ltdgrp.blk.dftat"
              maxlength="35"
              show-word-limit
wangna committed
91
              placeholder="请输入汇票期限"
Wuyuqiu committed
92 93 94 95 96 97 98 99 100
              :disabled="blkDftatFlag"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
wangna committed
101
              title: '付款人',
Wuyuqiu committed
102 103 104 105 106 107 108 109
              grp: 'ltdgrp',
              rol: 'drw',
            }"
            :noRef="true"
            :onlySearch="false"
            @onSeainf="onSeainf"
            @onAplpDet="onDrwpDet"
            :disabled="blkDftatFlag"
Wuyuqiu committed
110
            :disabledExtkey="blkDftatFlag"
Wuyuqiu committed
111 112 113
          >
          </c-ptap>
        </c-col>
wangna committed
114
        <!-- 从...发送 -->
Wuyuqiu committed
115
        <c-col :span="24">
wangna committed
116
          <el-form-item label="从...发送" prop="ltdgrp.rec.shpfro">
Wuyuqiu committed
117 118 119 120 121
            <c-input
              type="textarea"
              show-word-limit
              v-model="model.ltdgrp.rec.shpfro"
              maxlength="65"
wangna committed
122
              placeholder="请输入从...发送"
Wuyuqiu committed
123 124 125 126 127
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
128
          <el-form-item label="始发(航空)站" prop="ltdgrp.rec.porloa">
Wuyuqiu committed
129 130 131 132 133
            <c-input
              type="textarea"
              v-model="model.ltdgrp.rec.porloa"
              maxlength="65"
              show-word-limit
wangna committed
134
              placeholder="请输入始发(航空)站"
Wuyuqiu committed
135 136 137 138 139 140
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item
141
            label="终点(航空)站"
Wuyuqiu committed
142 143 144 145 146 147 148
            prop="ltdgrp.rec.pordis"
          >
            <c-input
              type="textarea"
              v-model="model.ltdgrp.rec.pordis"
              maxlength="65"
              show-word-limit
wangna committed
149
              placeholder="请输入终点(航空)站"
Wuyuqiu committed
150 151 152
            ></c-input>
          </el-form-item>
        </c-col>
jianglong committed
153
        <!-- 最终目的地 -->
Wuyuqiu committed
154
        <c-col :span="24">
jianglong committed
155
          <el-form-item label="最终目的地" prop="ltdgrp.rec.shpto">
Wuyuqiu committed
156 157 158 159 160
            <c-input
              type="textarea"
              v-model="model.ltdgrp.rec.shpto"
              maxlength="65"
              show-word-limit
wangna committed
161
              placeholder="请输入最终目的地"
Wuyuqiu committed
162 163 164 165
            ></c-input>
          </el-form-item>
        </c-col>

wangna committed
166
        <!-- 装运期限 -->
Wuyuqiu committed
167
        <c-col :span="24">
wangna committed
168
          <el-form-item label="装运期限" prop="ltdgrp.blk.shpper">
Wuyuqiu committed
169 170 171 172 173
            <c-input
              type="textarea"
              v-model="model.ltdgrp.blk.shpper"
              maxlength="65"
              show-word-limit
wangna committed
174
              placeholder="请输入装运期限"
Wuyuqiu committed
175 176 177 178 179 180
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <!-- right -->
Wuyuqiu committed
181
      <c-col :span="12" style="padding-left: 20px;">
Wuyuqiu committed
182
        <c-col :span="24">
wangna committed
183
          <el-form-item label="混合付款详细信息" prop="ltdgrp.blk.mixdet">
Wuyuqiu committed
184 185 186 187 188 189
            <c-input
              type="textarea"
              :rows="4"
              v-model="model.ltdgrp.blk.mixdet"
              maxlength="140"
              show-word-limit
wangna committed
190
              placeholder="请输入混合付款详细信息"
Wuyuqiu committed
191 192 193 194 195
              :disabled="model.ltdgrp.rec.avbby != 'M'"
            ></c-input>
          </el-form-item>
        </c-col>

wangna committed
196
        <!-- Days of 交单期 -->
Wuyuqiu committed
197
        <c-col :span="24">
wangna committed
198
          <el-form-item label="交单期" prop="ltdgrp.rec.prepertxts18">
Wuyuqiu committed
199 200
            <c-fullbox>
              <c-input
Wuyuqiu committed
201
                v-model.number="model.ltdgrp.rec.prepertxts18"
wangna committed
202
                placeholder="请输入交单期"
Wuyuqiu committed
203 204 205 206 207 208
              ></c-input>
              <template slot="footer">
                <c-button
                  size="small"
                  type="primary"
                  disabled
209
                  icon="el-icon-more"
Wuyuqiu committed
210 211
                  @click="showGridPromptDialog('lttp.detp', null, null,{TXT:
'ltdgrp.rec.prepertxts18'}, {TXT: false},'doxpDialog')"
Wuyuqiu committed
212 213 214 215 216 217 218 219 220 221 222
                >
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="" prop="ltdgrp.rec.prepertxts18">
            <c-input
              v-model="model.ltdgrp.rec.prepertxts18"
wangna committed
223
              placeholder="请输入"
Wuyuqiu committed
224 225 226 227 228 229
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item
wangna committed
230
            label="费用明细"
Wuyuqiu committed
231 232 233 234 235 236 237 238 239
            prop="ltdgrp.blk.feetxt"
          >
            <c-fullbox>
              <c-input
                type="textarea"
                :rows="6"
                v-model="model.ltdgrp.blk.feetxt"
                maxlength="210"
                show-word-limit
wangna committed
240
                placeholder="请输入费用明细"
Wuyuqiu committed
241 242 243 244 245
              ></c-input>
              <template slot="footer">
                <c-button
                  size="small"
                  type="primary"
246
                  icon="el-icon-more"
Wuyuqiu committed
247 248
                  @click="showGridPromptDialog('lttp.charia.buttxmsel', null, null,{TXT:
'ltdgrp.blk.feetxt'}, {TXT: false},'doxpDialog')"
Wuyuqiu committed
249 250 251 252 253 254 255 256 257
                >
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>

        <!-- Own Charges Borne by -->
        <c-col :span="24">
wangna committed
258
          <el-form-item label="收费条款" prop="ltdgrp.rec.chato">
Wuyuqiu committed
259 260 261
            <c-select
              v-model="model.ltdgrp.rec.chato"
              style="width: 100%"
wangna committed
262
              placeholder="请选择收费条款"
Wuyuqiu committed
263 264 265 266 267 268 269
              :code="codes.chadet"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
wangna committed
270
          <el-form-item label="国家代码" prop="ltdgrp.rec.stacty">
Wuyuqiu committed
271 272 273
            <c-select
              v-model="model.ltdgrp.rec.stacty"
              style="width: 100%"
wangna committed
274
              placeholder="请选择国家代码"
Wuyuqiu committed
275 276 277 278 279 280 281
              :code="codes.ctytxt"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
wangna committed
282
            <el-form-item label="期限天数" prop="ltdgrp.rec.tenmaxday">
Wuyuqiu committed
283 284
              <c-input
                v-model.number="model.ltdgrp.rec.tenmaxday"
wangna committed
285
                placeholder="请输入期限天数"
Wuyuqiu committed
286 287 288 289 290 291 292 293 294 295 296
                :disabled="model.ltdgrp.rec.avbby == 'P'"
                @keyup.enter.native="
                  defaultFunction(
                    'ltdgrp.rec.tenmaxday',
                    model.ltdgrp.rec.tenmaxday
                  )
                "
              ></c-input>
            </el-form-item>
        </c-col>
      </c-col>
297
  </div>
孟冬雪 committed
298 299
</template>
<script>
300
import Api from "~/service/Api"
wangren committed
301
import commonProcess from "~/mixin/commonProcess";
302 303
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Lttopn/Event"
Wuyuqiu committed
304
import Ptap from "~/views/Public/Ptap";
孟冬雪 committed
305 306

export default {
Wuyuqiu committed
307
    components: { "c-ptap": Ptap },
308 309 310 311 312 313 314 315
    inject: ['root'],
    props:["model","codes"],
    mixins: [commonProcess],
    data(){
        return {

        }
    },
Wuyuqiu committed
316
    methods: {
Wuyuqiu committed
317
    ...Event, 
Wuyuqiu committed
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347
    avbwthEvent(){
      if (this.model.ltdgrp.rec.avbwth != 'A'||this.model.ltdgrp.rec.avbwth != 'O') {
        this.model.ltdgrp.avb.pts.extkey = ''
        this.model.ltdgrp.blk.avbwthtxt = ''
      }
    },
    avbbykeyEvent() {
      if (this.model.ltdgrp.rec.avbby == 'P') {
        this.model.ltdgrp.rec.tenmaxday = 0;
        this.model.ltdgrp.blk.defdet = '';
      }
      if (
        this.model.ltdgrp.rec.avbby == 'D'||
        this.model.ltdgrp.rec.avbby == 'M'
      ) {
        this.model.ltdgrp.blk.defdet = ''; //汇票期限置空
        this.model.ltdgrp.drw.pts.extkey = ''; //付款人置空
        this.model.ltdgrp.drw.pts.adrblk = ''; //名称地址置空.pts.adrblk
      }
      this.executeCheck("ltdgrp.rec.avbby").then((res) => {
        if (res.respCode == SUCCESS) {
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
  },
  computed: {
    defdetFlag: {
      get() {
        return (
Wuyuqiu committed
348 349 350
          this.model.ltdgrp.rec.avbby == 'A' ||
          this.model.ltdgrp.rec.avbby == 'P' ||
          this.model.ltdgrp.rec.avbby == 'M' 
Wuyuqiu committed
351 352 353 354 355 356
        )
      },
    },
    blkDftatFlag: {
      get() {
        return (
Wuyuqiu committed
357 358
          this.model.ltdgrp.rec.avbby == 'M' ||
          this.model.ltdgrp.rec.avbby == 'D' 
Wuyuqiu committed
359 360 361 362 363 364
        )
      },
    },
  },
  created: function () {},
  watch: {
Wuyuqiu committed
365
    "model.ltdgrp.avt.pts.adrblk": {
Wuyuqiu committed
366 367 368 369 370 371
      handler(val, oldVal) {
        this.model.ltdgrp.blk.avbwthtxt = val;
      },
      immediate: true,
    },
  },
372
}
孟冬雪 committed
373 374
</script>
<style>
375

孟冬雪 committed
376
</style>