Canp.vue 9.01 KB
Newer Older
panziyi committed
1
<template>
2 3
  <div class="eibs">
    <c-col :span="12" style="padding-right: 20px">
panziyi committed
4 5
      <c-col :span="24">
        <el-form-item
wangna committed
6
          label="保函编号"
panziyi committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
          prop="gidgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.gidgrp.rec.ownref"
              maxlength="8"
              placeholder="请输入"
              disabled
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 0 0 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf"
              >
nanrui committed
24
                <i class="el-icon-info"></i>
panziyi committed
25 26 27 28 29 30 31 32
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="11">
        <c-form-item
wangna committed
33
          label="保函币种和金额"
panziyi committed
34 35 36
          prop="gidgrp.cbs.max.cur"
          previewLabel="信用证币种"
        >
panziyi committed
37 38 39 40
          <c-input
            v-model="model.gidgrp.cbs.max.cur"
            maxlength="3"
            disabled
wangna committed
41
            placeholder="请输入"
panziyi committed
42
          ></c-input>
panziyi committed
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
        </c-form-item>
      </c-col>
      <c-col :span="8">
        <c-form-item
          previewLabel="信用证金额"
          style="text-align: left"
          label-width="5px"
          prop="gidgrp.cbs.max.amt"
        >
          <c-input-currency
            v-model="model.gidgrp.cbs.max.amt"
            placeholder="请输入信用证金额"
            disabled
          ></c-input-currency>
        </c-form-item>
      </c-col>
      <c-col :span="5">
panziyi committed
60 61 62 63 64 65 66 67 68
        <c-checkbox
          v-model="model.gitp0.gitp0s20"
          disabled
          style="
            margin-left: 18px;
            height: 32px;
            line-height: 32px;
            padding-bottom: 2px;
          "
wangna committed
69
          >附加金额</c-checkbox
panziyi committed
70 71 72 73 74
        >
      </c-col>

      <c-col :span="11">
        <c-form-item
wangna committed
75
          label="保函余额"
panziyi committed
76 77 78 79 80
          prop="gidgrp.cbs.opn1.cur"
          previewLabel="信用证币种"
        >
          <c-select
            v-model="model.gidgrp.cbs.opn1.cur"
wangna committed
81
            placeholder="请选择"
panziyi committed
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
            style="width: 100%"
            disabled
          >
            <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </c-form-item>
      </c-col>
      <c-col :span="8">
        <c-form-item
          previewLabel="信用证金额"
          style="text-align: left"
          label-width="5px"
          prop="gidgrp.cbs.opn1.amt"
        >
          <c-input-currency
            v-model="model.gidgrp.cbs.opn1.amt"
            placeholder="请输入信用证金额"
            disabled
          ></c-input-currency>
        </c-form-item>
      </c-col>

      <c-col :span="24">
wangna committed
111
        <el-form-item label="接收目的" prop="gidgrp.rec.purposin">
panziyi committed
112 113 114 115 116 117 118 119 120
          <c-input
            v-model="model.gidgrp.rec.purposin"
            maxlength="16"
            disabled
            placeholder="请输入"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
wangna committed
121
        <el-form-item label="报文目的" prop="gidgrp.rec.purpos">
panziyi committed
122
          <c-select
panziyi committed
123 124
            v-model="model.gidgrp.rec.purpos"
            disabled
panziyi committed
125 126 127 128
            style="width: 100%"
            placeholder=""
            :code="codes.purpos"
          ></c-select>
panziyi committed
129 130
        </el-form-item>
      </c-col>
wangna committed
131
      <c-col :span="24">
wangna committed
132
        <el-form-item label="保函种类" prop="gidgrp.rec.gartyp">
panziyi committed
133
          <c-select
panziyi committed
134
            disabled
panziyi committed
135
            v-model="model.gidgrp.rec.gartyp"
panziyi committed
136
            style="width: 100%"
wangna committed
137
            placeholder="请选择保函种类"
panziyi committed
138 139 140
            :code="codes.typgar2"
          >
          </c-select>
panziyi committed
141 142
        </el-form-item>
      </c-col>
wangna committed
143 144
      <c-col :span="24" v-if="model.gidgrp.rec.liadat == 'X'">
        <el-form-item label="我行责任敞口"> </el-form-item>
panziyi committed
145
      </c-col>
wangna committed
146 147

      <c-col :span="24" v-if="model.gidgrp.rec.liadat != ''">
wangna committed
148
        <el-form-item label="责任截至日" prop="gidgrp.rec.liadat">
wangna committed
149 150 151 152 153 154 155
          <c-date-picker
            type="date"
            v-model="model.gidgrp.rec.liadat"
            disabled
            style="width: 100%"
            placeholder="请选择责任截至日"
          ></c-date-picker>
panziyi committed
156
        </el-form-item>
wangna committed
157
      </c-col>
panziyi committed
158

panziyi committed
159
      <c-col :span="13">
wangna committed
160
        <el-form-item label="到期日" prop="gidgrp.rec.expdat">
panziyi committed
161 162 163 164 165 166 167 168 169 170
          <c-date-picker
            type="date"
            disabled
            v-model="model.gidgrp.rec.expdat"
            style="width: 100%"
            placeholder="请选择"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="11">
171
        <el-form-item label="" prop="gidgrp.rec.exptyp" label-width="5px">
panziyi committed
172 173 174 175 176 177 178 179 180
          <c-input
            v-model="model.gidgrp.rec.exptyp"
            disabled
            placeholder="请输入"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
wangna committed
181
        <el-form-item label="注销原因" prop="gidgrp.rec.purcan">
panziyi committed
182 183 184
          <c-select
            v-model="model.gidgrp.rec.purcan"
            style="width: 100%"
wangna committed
185
            placeholder="请选择注销原因"
panziyi committed
186
            :code="codes.purcan"
panziyi committed
187
            @change="change"
panziyi committed
188 189 190 191 192 193
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
wangna committed
194
        <el-form-item label="新保函编号" prop="newref">
panziyi committed
195 196 197 198
          <c-input
            v-model="model.newref"
            :disabled="model.gidgrp.rec.purcan != 'RN'"
            maxlength="16"
wangna committed
199
            placeholder="请输入新保函编号"
panziyi committed
200 201 202 203 204 205
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item
wangna committed
206
          label="自由文本和特殊条款"
panziyi committed
207 208 209 210 211 212 213 214 215 216 217 218 219 220
          prop="trnmod.swiadd.strinf"
        >
          <c-input
            type="textarea"
            v-model="model.trnmod.swiadd.strinf"
            rows="6"
            maxlength="35"
            show-word-limit
            placeholder="请输入"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

221
    <c-col :span="12" style="padding-left: 20px">
panziyi committed
222
      <c-col :span="24">
wangna committed
223
        <el-form-item label="简略信息" prop="gidgrp.rec.nam">
panziyi committed
224 225 226 227
          <c-input
            v-model="model.gidgrp.rec.nam"
            disabled
            maxlength="40"
wangna committed
228
            placeholder="请输入简略信息"
panziyi committed
229 230 231 232 233
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
wangna committed
234
        <el-form-item label="申请人" prop="gidgrp.apl.pts.nam">
panziyi committed
235 236 237 238
          <c-input
            v-model="model.gidgrp.apl.pts.nam"
            disabled
            maxlength="40"
wangna committed
239
            placeholder="请输入"
panziyi committed
240 241 242 243
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
wangna committed
244
        <el-form-item label="受益人" prop="gidgrp.ben.pts.nam">
panziyi committed
245 246 247 248
          <c-input
            v-model="model.gidgrp.ben.pts.nam"
            disabled
            maxlength="40"
wangna committed
249
            placeholder="请输入"
panziyi committed
250 251 252 253
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
wangna committed
254
        <el-form-item label="帐户行" prop="gidgrp.ctr.pts.nam">
panziyi committed
255 256 257 258
          <c-input
            v-model="model.gidgrp.ctr.pts.nam"
            disabled
            maxlength="40"
wangna committed
259
            placeholder="请输入"
panziyi committed
260 261 262 263
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
wangna committed
264
        <el-form-item label="开证行" prop="gidgrp.iss.pts.nam">
panziyi committed
265 266 267 268
          <c-input
            v-model="model.gidgrp.iss.pts.nam"
            disabled
            maxlength="40"
wangna committed
269
            placeholder="请输入"
panziyi committed
270 271 272 273 274
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
wangna committed
275
        <el-form-item label="身份验证" prop="autflg">
panziyi committed
276 277 278 279
          <c-select
            v-model="model.autflg"
            style="width: 100%"
            :disabled="model.gidgrp.rec.purcan != 'RR'"
wangna committed
280
            placeholder="请选择身份验证"
panziyi committed
281 282 283 284 285
            :code="codes.autflg"
          >
          </c-select>
        </el-form-item>
      </c-col>
panziyi committed
286
      <c-col :span="24" :offset="6">
panziyi committed
287
        <c-checkbox
panziyi committed
288 289 290 291 292 293
          style="
            margin-left: 15px;
            height: 32px;
            line-height: 32px;
            padding-bottom: 2px;
          "
panziyi committed
294
          v-model="model.mtabut.clsflgp"
panziyi committed
295
          checked
panziyi committed
296
          disabled
wangna committed
297
          >关闭标志</c-checkbox
panziyi committed
298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315
        >
      </c-col>
    </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getcan/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
panziyi committed
316 317 318 319

  watch: {
  "model.gidgrp.rec.purcan": function(){
     if (this.model.gidgrp.rec.purcan == "RR") {
wangna committed
320 321 322 323
        this.model.mtabut.clsflgp = "";
      } else {
        this.model.mtabut.clsflgp = "X";
      }
panziyi committed
324 325 326 327
  },
  },
  methods: {
    ...Event,
panziyi committed
328
  },
panziyi committed
329 330 331 332 333 334 335
  created: function () {
    trntyp: [];
  },
};
</script>
<style>
</style>