Detp.vue 12 KB
Newer Older
1
<template>
潘际乾 committed
2
  <div class="eibs">
“yanyuxin” committed
3
    <!-- ========================左边======================== -->
Wuyuqiu committed
4
    <c-col :span="12" style="padding-right: 20px;">
“yanyuxin” committed
5 6 7 8 9 10
      <c-col :span="24">
        <el-form-item label="授权兑付行" prop="lidgrp.rec.avbwth">
          <c-select
            v-model="model.lidgrp.rec.avbwth"
            style="width: 100%"
            placeholder="请选择"
wangna committed
11
            :code="getValues('lidgrp.rec.avbwth','avbwth')"
“yanyuxin” committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24" v-if="this.flag4">
        <el-form-item label="当事人地址编码" prop="lidgrp.avb.pts.extkey">
          <c-fullbox>
            <c-input
              :disabled="this.flag5"
              v-model="model.lidgrp.avb.pts.extkey"
              maxlength="16"
              placeholder="请输入地址编码"
              @keyup.enter.native="
                showGridPromptDialog('lidgrp.avb.pts.extkey')
              "
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
                icon="el-icon-search"
              >
Wuyuqiu committed
36
                
“yanyuxin” committed
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
              </c-button>
              <c-button
                style="margin: 0 0"
                size="small"
                type="primary"
                @click="onAvbpDet"
                icon="el-icon-info"
              >
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item
          label="名称地址"
          prop="lidgrp.avb.pts.adrblk"
          v-if="model.lidgrp.rec.avbwth != 'O'"
        >
          <c-input
            type="textarea"
            v-model="model.lidgrp.avb.pts.adrblk"
            maxlength="135"
            :rows="4"
            show-word-limit
            placeholder="请输入名称地址"
            :disabled="model.lidgrp.rec.avbwth !== ''"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24" v-if="model.lidgrp.rec.avbwth == 'O'">
        <el-form-item label="Available in" prop="lidgrp.blk.avbwthtxt">
          <c-input
            type="textarea"
            v-model="model.lidgrp.blk.avbwthtxt"
            maxlength="135"
            :rows="4"
            show-word-limit
            placeholder="请输入Available in"
          ></c-input>
        </el-form-item>
      </c-col>
79

“yanyuxin” committed
80 81 82 83 84 85
      <c-col :span="24">
        <el-form-item label="兑付方式" prop="lidgrp.rec.avbby">
          <c-select
            v-model="model.lidgrp.rec.avbby"
            style="width: 100%"
            placeholder="请选择兑付方式"
86
            :code="codes.avbby0"
“yanyuxin” committed
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="议付/延期付款指示" prop="lidgrp.blk.defdet">
          <c-input
            type="textarea"
            v-model="model.lidgrp.blk.defdet"
            maxlength="140"
            :rows="3"
            show-word-limit
            placeholder="请输入指示内容"
            :disabled="this.flag1"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="汇票期限" prop="lidgrp.blk.dftat">
          <c-input
            type="textarea"
            v-model="model.lidgrp.blk.dftat"
            maxlength="100"
            :rows="3"
            show-word-limit
            placeholder="请输入汇票期限"
            :disabled="this.flag2"
          ></c-input>
        </el-form-item>
      </c-col>
119

“yanyuxin” committed
120 121 122 123 124 125
      <c-col :span="24">
        <el-form-item label="汇票付款人" prop="lidgrp.drw.pts.extkey">
          <c-fullbox>
            <c-input
              v-model="model.lidgrp.drw.pts.extkey"
              maxlength="16"
wangna committed
126
              placeholder="请输入汇票付款人"
“yanyuxin” committed
127 128 129 130 131 132 133 134 135 136 137 138 139 140
              @keyup.enter.native="
                showGridPromptDialog('lidgrp.drw.pts.extkey')
              "
              :disabled="this.flag2"
            ></c-input>

            <template slot="footer">
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf('lidgrp.drw.pts.extkey')"
                icon="el-icon-search"
              >
Wuyuqiu committed
141
                
“yanyuxin” committed
142 143 144 145 146 147 148 149 150 151 152 153 154 155
              </c-button>
              <c-button
                style="margin: 0 0"
                size="small"
                type="primary"
                :disabled="this.flag2"
                @click="onDrwpDet"
                icon="el-icon-info"
              >
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
156

“yanyuxin” committed
157 158 159 160
      <c-col :span="24">
        <el-form-item label="名称地址" prop="lidgrp.drw.pts.adrblk">
          <c-input
            type="textarea"
wangna committed
161
            :disabled="this.flag2 || model.lidgrp.drw.pts.adrblk != ''"
“yanyuxin” committed
162 163 164 165
            v-model="model.lidgrp.drw.pts.adrblk"
            maxlength="135"
            :rows="4"
            show-word-limit
wangna committed
166
            placeholder="请输入名称地址"
“yanyuxin” committed
167 168 169 170 171 172 173 174 175
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="装船/发运地" prop="lidgrp.rec.shpfro">
          <c-input
            v-model="model.lidgrp.rec.shpfro"
            maxlength="65"
wangna committed
176
            placeholder="请输入装船/发运地"
“yanyuxin” committed
177 178 179 180 181 182 183 184 185
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="始发(航空)站" prop="lidgrp.rec.porloa">
          <c-input
            v-model="model.lidgrp.rec.porloa"
            maxlength="65"
wangna committed
186
            placeholder="请输入始发(航空)站"
“yanyuxin” committed
187 188 189 190 191 192 193 194 195
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="终点(航空)站" prop="lidgrp.rec.pordis">
          <c-input
            v-model="model.lidgrp.rec.pordis"
            maxlength="65"
wangna committed
196
            placeholder="请输入终点(航空)站"
“yanyuxin” committed
197 198 199 200 201 202 203 204 205
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="最终目的地" prop="lidgrp.rec.shpto">
          <c-input
            v-model="model.lidgrp.rec.shpto"
            maxlength="65"
wangna committed
206
            placeholder="请输入最终目的地"
“yanyuxin” committed
207 208 209 210 211 212 213 214
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="装运期" prop="lidgrp.blk.shpper">
          <c-input
            type="textarea"
215 216 217
            :disabled="
              model.lidgrp.rec.shpdat != null && model.lidgrp.rec.shpdat != ''
            "
“yanyuxin” committed
218
            v-model="model.lidgrp.blk.shpper"
219
            maxlength="390"
“yanyuxin” committed
220 221 222 223 224 225 226
            :rows="6"
            show-word-limit
            placeholder="请输入装运期"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
227

“yanyuxin” committed
228
    <!-- ========================右边======================== -->
Wuyuqiu committed
229
    <c-col :span="12" style="padding-left: 20px;">
“yanyuxin” committed
230 231 232
      <c-col :span="24">
        <el-form-item label="提交期限(天)" prop="lidgrp.rec.prepers18">
          <c-input
233
            v-model.number="model.lidgrp.rec.prepers18"
“yanyuxin” committed
234
            style="width: 100%"
wangna committed
235
            placeholder="请输入提交期限(天)"
“yanyuxin” committed
236 237 238
          ></c-input>
        </el-form-item>
      </c-col>
239

“yanyuxin” committed
240
      <c-col :span="24">
huangxin committed
241
        <el-form-item label="交单期限" prop="lidgrp.rec.prepertxts18">
“yanyuxin” committed
242 243 244
          <c-fullbox>
            <c-input
              type="textarea"
huangxin committed
245
              v-model="model.lidgrp.rec.prepertxts18"
“yanyuxin” committed
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260
              maxlength="35"
              show-word-limit
              placeholder="请输入交单期限"
            ></c-input>
            <template slot="footer">
              <c-button
                size="small"
                type="primary"
                icon="el-icon-search"
                @click="onPreperButtxmsel"
              ></c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
261

“yanyuxin” committed
262 263 264 265 266 267 268 269 270
      <c-col :span="24">
        <el-form-item label="银行负担费用" prop="lidgrp.blk.feetxt">
          <c-fullbox>
            <c-input
              type="textarea"
              v-model="model.lidgrp.blk.feetxt"
              maxlength="210"
              :rows="6"
              show-word-limit
wangna committed
271
              placeholder="请输入银行负担费用"
“yanyuxin” committed
272 273 274 275 276 277 278 279 280 281 282 283
            ></c-input>
            <template slot="footer">
              <c-button
                size="small"
                type="primary"
                icon="el-icon-search"
                @click="onChariaButtxmsel"
              ></c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
284

“yanyuxin” committed
285 286 287 288 289 290 291 292 293 294 295
      <c-col :span="24">
        <el-form-item label="收报行所属国家地区 " prop="lidgrp.rec.stacty">
          <c-select
            v-model="model.lidgrp.rec.stacty"
            style="width: 100%"
            :code="codes.stacty"
            placeholder="请选择地区代码"
          >
          </c-select>
        </el-form-item>
      </c-col>
296

“yanyuxin” committed
297 298 299 300 301 302 303 304 305 306 307 308 309
      <c-col :span="24">
        <el-form-item label="混合付款指示" prop="lidgrp.blk.mixdet">
          <c-input
            type="textarea"
            v-model="model.lidgrp.blk.mixdet"
            maxlength="130"
            :rows="4"
            show-word-limit
            placeholder="请输入混合付款指示"
            :disabled="this.flag3"
          ></c-input>
        </el-form-item>
      </c-col>
310

“yanyuxin” committed
311 312 313 314 315 316 317
      <c-col :span="24">
        <el-form-item
          label="远期汇票最大期限(天)"
          prop="lidgrp.rec.tenmaxday"
        >
          <c-input
            :disabled="!!(this.model.lidgrp.rec.avbby == 'P')"
318
            v-model.number="model.lidgrp.rec.tenmaxday"
“yanyuxin” committed
319 320 321 322 323
            placeholder="请输入天数"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
324 325 326
  </div>
</template>
<script>
“yanyuxin” committed
327
import Api from "~/service/Api";
wangren committed
328
import commonProcess from "~/mixin/commonProcess";
“yanyuxin” committed
329 330
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Litopn/Event";
331 332

export default {
“yanyuxin” committed
333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      flag1: true,
      flag2: true,
      flag3: true,
      flag4: true,
      flag5: false,
      flag6: false,
    };
  },
  methods: {
    ...Event,
    onAvbpDet() {
      console.log(this.model.lidgrp.rec.avbby);
350
    },
“yanyuxin” committed
351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383
  },
  created: function () {},
  watch: {
    "model.lidgrp.rec.avbwth": {
      immediate: true,
      handler(val, oldVal) {
        //Any Bank
        if (val == "O") {
          this.flag4 = false;
          this.changeFormItemRequired("lidgrp.avb.pts.adrblk", false);
          this.flag6 = false;
        } //Advising Bank
        else if (val == "A") {
          this.flag4 = true;
          this.flag5 = true;
          this.flag6 = true;
        } //Issuing Bank
        else if (val == "I") {
          this.flag4 = true;
          this.flag5 = false;
          this.flag6 = true;
        } //Confirming Bank
        else if (val == "C") {
          this.flag4 = true;
          this.flag5 = true;
          this.flag6 = true;
        } //Specified Bank
        else if (val == "S") {
          this.flag4 = true;
          this.flag5 = false;
          this.flag6 = false;
        }
      },
384
    },
wangren committed
385

“yanyuxin” committed
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414
    "model.lidgrp.rec.avbby": {
      immediate: true,
      handler(val, oldVal) {
        if (val == "D") {
          this.flag1 = false;
          this.flag2 = true;
          this.flag3 = true;
        }
        if (val == "N") {
          this.flag1 = false;
          this.flag2 = false;
          this.flag3 = true;
        }
        if (val == "P") {
          this.flag1 = true;
          this.flag2 = false;
          this.flag3 = true;
        }
        if (val == "M") {
          this.flag1 = true;
          this.flag2 = true;
          this.flag3 = false;
        }
        if (val == "A") {
          this.flag1 = true;
          this.flag2 = false;
          this.flag3 = true;
        }
      },
415
    },
“yanyuxin” committed
416 417
  },
};
418 419 420 421 422 423
</script>
<style>
.marginLable {
  padding-left: 160px;
}
</style>