Detp.vue 11.3 KB
Newer Older
孟冬雪 committed
1
<template>
2
  <div class="eibs">
孟冬雪 committed
3
    <c-row>
4
      <!-- left -->
Wuyuqiu committed
5
      <c-col :span="12" style="padding-right: 20px;">
wangna committed
6
        <!-- 被授权的银行当事人 -->
孟冬雪 committed
7
        <c-col :span="24">
wangna committed
8
          <el-form-item label="被授权的银行当事人" prop="ltdgrp.rec.avbwth">
孟冬雪 committed
9 10 11
            <c-select
              v-model="model.ltdgrp.rec.avbwth"
              style="width: 100%"
wangna committed
12
              placeholder="请选择被授权的银行当事人"
孟冬雪 committed
13
              :code="codes.avbwth"
14
              @change="avbwthEvent"
孟冬雪 committed
15 16 17
            >
            </c-select>
          </el-form-item>
孟冬雪 committed
18
        </c-col>
孟冬雪 committed
19 20 21

        <c-col :span="24">
          <c-ptap
22
            v-if="model.ltdgrp.rec.avbwth!='O'"
孟冬雪 committed
23 24
            :model="model"
            :argadr="{
25
              title: '',
孟冬雪 committed
26
              grp: 'ltdgrp',
孟冬雪 committed
27
              rol: 'avt',
孟冬雪 committed
28 29 30 31
            }"
            :noRef="true"
            :onlySearch="true"
            @onSeainf="onSeainf"
32 33
            @onAplpDet="onAvbpDet"
            :disabled="model.ltdgrp.rec.avbwth=='A'||model.ltdgrp.rec.avbwth=='C'||model.ltdgrp.rec.avbwth=='I'"
孟冬雪 committed
34 35
          >
          </c-ptap>
孟冬雪 committed
36
        </c-col>
孟冬雪 committed
37 38 39 40 41 42 43

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

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

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

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

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

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

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

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

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

wangna committed
198
        <!-- Days of 交单期 -->
199
        <c-col :span="24">
wangna committed
200
          <el-form-item label="交单期" prop="ltdgrp.rec.prepers18">
201 202 203
            <c-fullbox>
              <c-input
                v-model.number="model.ltdgrp.rec.prepers18"
wangna committed
204
                placeholder="请输入交单期"
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
                disabeld
              ></c-input>
              <template slot="footer">
                <c-button
                  size="small"
                  type="primary"
                  @click="showGridPromptDialog('lttp.detp', null, null,{TXT:
'ltdgrp.rec.prepertxts18'}, {TXT: false},'doxpDialog')"
                  disabled
                >
                  ...
                </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
226
              placeholder="请输入"
227 228 229 230 231 232 233
              disabeld
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item
wangna committed
234
            label="收费附加详情"
235 236 237 238 239 240 241 242 243
            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
244
                placeholder="请输入收费附加详情"
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
              ></c-input>
              <template slot="footer">
                <c-button
                  size="small"
                  type="primary"
                  @click="showGridPromptDialog('lttp.charia.buttxmsel', null, null,{TXT:
'ltdgrp.blk.feetx'}, {TXT: false},'doxpDialog')"
                >
                  ...
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>

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

273
        <c-col :span="24">
wangna committed
274
          <el-form-item label="国家或地区代码" prop="ltdgrp.rec.stacty">
孟冬雪 committed
275 276 277
            <c-select
              v-model="model.ltdgrp.rec.stacty"
              style="width: 100%"
wangna committed
278
              placeholder="请选择国家或地区代码"
279
              :code="codes.ctytxt"
孟冬雪 committed
280 281 282 283 284
            >
            </c-select>
          </el-form-item>
        </c-col>

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

export default {
孟冬雪 committed
312 313 314
  inject: ["root"],
  components: { "c-ptap": Ptap },
  props: ["model", "codes"],
wangren committed
315
  mixins: [commonProcess],
孟冬雪 committed
316 317 318
  data() {
    return {};
  },
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 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373
  methods: {
    ...Event,
    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: {
    avbFlag: {
      get() {
        return (
          this.model.ltdgrp.rec.avbwth == 'A' ||
          this.model.ltdgrp.rec.avbwth == 'S' 
        )
      },
    },
    defdetFlag: {
      get() {
        return (
          this.model.ltdgrp.rec.avbby != 'D' &&
          this.model.ltdgrp.rec.avbby != 'N'
        )
      },
    },
    blkDftatFlag: {
      get() {
        return (
          this.model.ltdgrp.rec.avbby == 'D' ||
          this.model.ltdgrp.rec.avbby == 'M' ||
          this.model.ltdgrp.rec.avbby == ''
        )
      },
    },
  },
孟冬雪 committed
374
  created: function () {},
375 376 377 378 379 380 381 382 383
  watch: {
    "model.ltdgrp.avb.pts.adrblk": {
      handler(val, oldVal) {
        this.model.ltdgrp.blk.avbwthtxt = val;
      },
      immediate: true,
    },
  },
}
孟冬雪 committed
384 385
</script>
<style>
386

孟冬雪 committed
387
</style>