Clip.vue 6.76 KB
Newer Older
1 2
<template>
  <div class="eibs-tab">
李少勇 committed
3 4 5 6 7
    <!-- ==================左边================ -->
    <c-col :span="12" style="padding-right: 20px">
      <!-- S0000005 : 业务编号 -->
      <c-col :span="24">
        <el-form-item :label="$t('crtp.业务编号')" prop="crdgrp.rec.ownref">
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
          <c-fullbox>
            <c-input
              v-model="model.crdgrp.rec.ownref"
              maxlength="16"
              disabled
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 0"
                size="small"
                type="primary"
                :disabled=" model.crdgrp.rec.ownref != '' || model.crdgrp.rec.clrtyp == '' "
                @click="getOwnref"
              >
                获取
              </c-button>
            </template>
          </c-fullbox>
李少勇 committed
26 27 28 29
        </el-form-item>
      </c-col>
      <!-- S0000009 : 经办柜员 -->
      <c-col :span="24">
30 31 32 33 34 35
        <el-form-item :label="$t('crtp.经办柜员')" prop="crdgrp.rec.ownusr">
          <c-input
            v-model="model.crdgrp.rec.ownusr"
            maxlength="8"
            disabled
          ></c-input>
李少勇 committed
36 37 38 39
        </el-form-item>
      </c-col>
      <!-- S0000026 : 清算币种及金额 -->
      <c-col :span="24" class="custom-box-wrap">
40 41 42 43 44 45 46 47 48 49
        <el-form-item
          :label="$t('crtp.清算币种及金额')"
          prop="crdgrp.cbs.max.cur"
        >
          <c-select-cur
            v-model="model.crdgrp.cbs.max.cur"
            style="width: 115px"
            placeholder="请选择币种"
            dbCode="curtxt"
          >
李少勇 committed
50 51 52 53
          </c-select-cur>
        </el-form-item>
        <div class="box-3">
          <el-form-item label-width="5px" prop="crdgrp.cbs.max.amt">
54 55 56 57 58
            <c-input-currency
              v-model="model.crdgrp.cbs.max.amt"
              :currency="model.crdgrp.cbs.max.cur"
              style="width: 100%"
            >
李少勇 committed
59 60 61 62 63 64
            </c-input-currency>
          </el-form-item>
        </div>
      </c-col>
      <c-col :span="24">
        <el-form-item :label="$t('crtp.本行业务编号')" prop="crdgrp.rec.msgref">
65 66 67 68 69
          <c-input
            v-model="model.crdgrp.rec.msgref"
            maxlength="16"
            :disabled="defaultCrdgrpRecMsgrefN1000"
          ></c-input>
李少勇 committed
70 71 72
        </el-form-item>
      </c-col>
      <c-col :span="24">
73 74 75 76
        <el-form-item
          :label="$t('crtp.汇款账号(Tag59)')"
          prop="crdgrp.rec.msgact"
        >
李少勇 committed
77 78 79 80
          <c-input v-model="model.crdgrp.rec.msgact" maxlength="21"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
81 82 83 84 85 86 87 88 89
        <c-ptap
          :model="model"
          :isAdrblk="false"
          :haveAdrLabel="true"
          :requiredExtkey="true"
          :isAdrVisible="false"
          :argadr="{ title: '账户行', grp: 'crdgrp', rol: 'acc' }"
          ptytyp="B"
        ></c-ptap>
李少勇 committed
90 91 92 93 94 95
      </c-col>
    </c-col>
    <!-- ============右边================= -->
    <c-col :span="12" style="padding-left: 20px">
      <c-col :span="24">
        <el-form-item :label="$t('crtp.业务种类')" prop="crdgrp.rec.rcvobjtyp">
96 97 98 99 100 101
          <c-select
            dbCode="CBOTXT"
            :filterKey="['CPD', 'BOD', 'CCD', 'CLD', 'BED', 'BTD', 'GID']"
            v-model="model.crdgrp.rec.rcvobjtyp"
            style="width: 100%"
          >
李少勇 committed
102 103 104 105 106
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item :label="$t('crtp.客户类型')" prop="crdgrp.rec.custyp">
107 108 109 110 111 112
          <c-select
            dbCode="GORS"
            v-model="model.crdgrp.rec.custyp"
            style="width: 100%"
            :disabled="model.crdgrp.rec.rcvobjtyp != 'CPD'"
          >
李少勇 committed
113 114 115 116 117
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item :label="$t('crtp.归属机构')" prop="crdgrp.rec.rcvbchinr">
118 119 120 121 122 123 124
          <c-select v-model="model.crdgrp.rec.rcvbchinr" style="width: 100%">
            <el-option
              v-for="(item, idx) in rcvbchinrCode"
              :key="idx"
              :label="item.label"
              :value="item.value"
            ></el-option>
李少勇 committed
125 126 127 128 129
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item :label="$t('crtp.出错信息')" prop="crdgrp.rec.errmsg">
130 131 132 133 134 135 136
          <c-input
            type="textarea"
            v-model="model.crdgrp.rec.errmsg"
            maxlength="40"
            disabled
            show-word-limit
          ></c-input>
李少勇 committed
137 138 139 140
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item :label="$t('crtp.起息日')" prop="crtp.valdat">
141 142 143 144 145 146
          <c-date-picker
            type="date"
            v-model="model.crtp.valdat"
            style="width: 100%"
            disabled
          ></c-date-picker>
李少勇 committed
147 148 149
        </el-form-item>
      </c-col>
      <c-col :span="24">
150 151 152 153 154 155 156 157 158
        <c-ptap
          :model="model"
          :isAdrblk="false"
          :haveAdrLabel="true"
          :requiredExtkey="true"
          :isAdrVisible="false"
          :argadr="{ title: '发报行', grp: 'crdgrp', rol: 'snd' }"
          ptytyp="B"
        ></c-ptap>
李少勇 committed
159
      </c-col>
160 161 162 163
    </c-col>
  </div>
</template>
<script>
164
import Event from "../event";
165 166

export default {
167
  inject: ["root"],
168 169 170 171
  props: ["model", "codes"],
  mixins: [Event],
  data() {
    return {
172 173
      rcvbchinrCode: [],
    };
174 175 176
  },
  methods: {},
  created: function () {
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
    this.getBranchCodeValue();
  },
  computed: {
    defaultCrdgrpRecMsgrefN1000: function () {
      if (this.model.crdgrp.rec.rcvobjtyp == "") {
        this.model.crdgrp.rec.msgref = "";
        return true;
      } else {
        return false;
      }
    },
    defaultCrdgrpRecNamN1000: function () {
      if (!this.isModifyCrd("nam")) {
        if (this.model.crdgrp.rec.clrtyp == "O") {
          let amount = this.moneyFormat(
            this.model.crdgrp.cbs.max.amt,
            this.model.crdgrp.cbs.max.cur
          );
          let nam =
            this.model.crdgrp.rec.msgtyp +
            " " +
            this.model.crdgrp.cbs.max.cur +
            " " +
            amount +
            " " +
            this.model.crdgrp.rec.rcvobjtyp +
            "/" +
            this.model.crdgrp.rcv.pts.nam;
          this.model.crdgrp.rec.nam = nam.substring(0, 40);
        } else {
          let amount = this.moneyFormat(
            this.model.crdgrp.cbs.max.amt,
            this.model.crdgrp.cbs.max.cur
          );
          let nam =
            this.model.crdgrp.rec.msgtyp +
            " " +
            this.model.crdgrp.cbs.max.cur +
            " " +
            amount +
            " " +
            this.model.crdgrp.rec.rcvobjtyp +
            "/" +
            this.model.crdgrp.snd.pta.nam;
          this.model.crdgrp.rec.nam = nam.substring(0, 40);
        }
      }
      return this.model.crdgrp.rec.nam;
    },
  },
};
228 229
</script>
<style></style>