Opnp1.vue 15.9 KB
Newer Older
chenzhaole committed
1
<template>
2
  <div class="eibs-tab">
3
    <!-- ==============左边=========== -->
4 5
    <c-col :span="11">
      <c-col :span="24">
nanrui committed
6
        <el-form-item label="汇款编号" prop="cpdgrp.rec.ownref" style="width: 100%">
7
          <c-fullbox>
8
            <c-input v-model="model.cpdgrp.rec.ownref" maxlength="16" placeholder="请输入业务编号" disabled></c-input>
9
            <template slot="footer">
10
              <c-button style="margin: 0 10px 0 10px; padding: 0 12px" size="small" type="primary">
11 12
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
13
              <c-button style="margin: 0 0" size="small" type="primary" :disabled="this.flag" @click="onAttpGetref">
14 15 16 17 18 19 20 21 22 23
                获取
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="汇款金额" prop="cpdgrp.cbs.nom1.cur">
24 25 26
            <c-select v-model="model.cpdgrp.cbs.nom1.cur" style="width: 100%" placeholder="请选择汇款金额"
              @change="commonExecuteRule('cpdgrp.cbs.nom1.cur')">
              <el-option v-for="item in codes.curtxt1" :key="item.value" :label="item.label" :value="item.value">
27 28 29 30 31 32
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="11">
33 34 35 36 37 38 39 40
          <el-form-item style="text-align: left" label-width="5px" prop="cpdgrp.cbs.nom1.amt">
            <c-input-currency v-model="model.cpdgrp.cbs.nom1.amt" style="text-align: left; width: 100%"
              placeholder="请输入汇款金额" @keyup.enter.native="
                defaultFunction(
                  'cpdgrp.cbs.nom1.amt',
                  model.cpdgrp.cbs.nom1.amt
                )
              "></c-input-currency>
41 42 43 44 45 46 47
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="汇款人账户性质" prop="attp.acctyp">
48 49
            <c-select v-model="model.attp.acctyp" style="width: 100%" placeholder="请选择汇款人账户性质">
              <el-option v-for="item in codes.acctyp1" :key="item.value" :label="item.label" :value="item.value">
50 51 52 53 54 55 56 57 58
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="所属行" prop="cpdgrp.rec.othbch">
59
            <c-input v-model="model.cpdgrp.rec.othbch" maxlength="8" placeholder="请输入所属行" disabled></c-input>
60 61 62 63 64
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="汇款语种" prop="attp.payuil">
65 66
            <c-select v-model="model.attp.payuil" style="width: 100%" placeholder="请选择汇款语种">
              <el-option v-for="item in codes.payuil" :key="item.value" :label="item.label" :value="item.value">
67 68 69 70 71 72 73 74 75
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="业务种类" prop="attp.bustyp">
76 77
            <c-select v-model="model.attp.bustyp" style="width: 100%" placeholder="请选择业务种类">
              <el-option v-for="item in bustyp1" :key="item.value" :label="item.label" :value="item.value">
78 79 80 81 82 83 84 85 86
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="10">
          <el-form-item label="清算编号" prop="attp.sysno">
87
            <c-input v-model="model.attp.sysno" maxlength="21" placeholder="请输入清算编号"></c-input>
88 89 90 91
          </el-form-item>
        </c-col>

        <c-col :span="12">
92 93 94
          <el-form-item label="付款人常驻国家/地区代码" prop="attp.paycountcode">
            <c-input v-model="model.attp.country" filterable style="width: 100%" placeholder="付款人常驻国家/地区代码"
              @keyup.enter.native="showGridPromptDialog('attp.country')">
95 96 97
            </c-input>
          </el-form-item>
        </c-col>
98

99
        <c-col :span="2">
100 101 102 103 104 105 106 107 108 109
          <c-button size="small" type="primary" icon="el-icon-search" @click="
            showGridPromptDialog(
              'attp.selbut1',
              null,
              null,
              { TXT: 'attp.country' },
              { TXT: false },
              'doxpDialog'
            )
          ">
taojinrui committed
110
          </c-button>
111 112 113 114 115 116
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="汇款人名称" prop="attp.orcnam">
117 118
            <c-input v-model="model.attp.orcnam" maxlength="65" show-word-limit placeholder="请输入汇款人名称"
              :disabled="model.attp.swftyp==''"></c-input>
119 120 121 122 123 124 125
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="汇款人地址" prop="attp.orcadr">
126 127
            <c-input v-model="model.attp.orcadr" maxlength="65" show-word-limit placeholder="请输入汇款人地址"
              :disabled="model.attp.swftyp==''"></c-input>
128 129 130 131 132 133 134
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="收款人名称" prop="attp.pyenam">
135 136
            <c-input v-model="model.attp.pyenam" maxlength="65" show-word-limit placeholder="请输入收款人名称"
              :disabled="model.attp.swftyp==''"></c-input>
137 138 139 140 141 142 143
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="收款人地址" prop="attp.pyeadr">
144 145
            <c-input v-model="model.attp.pyeadr" maxlength="65" show-word-limit placeholder="请输入收款人地址"
              :disabled="model.attp.swftyp==''"></c-input>
146 147 148 149 150 151 152
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="汇款人帐号" prop="cpdgrp.rec.orcact">
153 154
            <c-input v-model="model.cpdgrp.rec.orcact" maxlength="35" placeholder="请输入汇款人帐号"
              :disabled="model.attp.swftyp==''"></c-input>
155 156 157 158 159 160 161
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="20">
          <el-form-item label="汇款人" prop="cpdgrp.orc.pts.extkey">
162 163
            <c-input :disabled="model.attp.swftyp == ''" v-model="model.cpdgrp.orc.pts.extkey" maxlength="16"
              placeholder="请输入汇款人名称" style="width: 95%" @keyup.enter.native="
164
                showGridPromptDialog('cpdgrp.orc.pts.extkey')
165
              "></c-input>
166 167 168 169
          </el-form-item>
        </c-col>

        <c-col :span="1">
170 171
          <c-button style="margin: 0 10px 0 0; padding: 0 12px" size="small" type="primary">
            <span style="font-size: 15px; font-family: '宋体'; font-weight: bold">i</span>
172 173 174 175
          </c-button>
        </c-col>

        <c-col :span="2" :offset="1" style="text-align: right">
176
          <c-button style="margin: 0 0" size="small" type="primary">
taojinrui committed
177
            详情
178 179 180 181 182 183
          </c-button>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
184 185 186
          <el-form-item label="地址信息" prop="cpdgrp.orc.pts.adrblk">
            <c-input type="textarea" v-model="model.cpdgrp.orc.pts.adrblk" maxlength="35" show-word-limit
              placeholder="请输入地址信息" :disabled="model.attp.swftyp==''"></c-input>
187 188 189 190
          </el-form-item>
        </c-col>
      </c-col>
    </c-col>
191

192 193 194 195
    <!-- ===============================右边============================= -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
        <c-col :span="24">
196 197 198
          <el-form-item label="简略信息" prop="cpdgrp.rec.nam">
            <c-input v-model="model.cpdgrp.rec.nam" maxlength="40"
              placeholder="请输入Externally Displayed 简略信息 to Identify the Contract" disabled></c-input>
199 200 201 202 203 204 205
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="汇款性质" prop="cpdgrp.rec.trntyp">
206 207
            <c-select v-model="model.cpdgrp.rec.trntyp" style="width: 100%" placeholder="请选择汇款性质">
              <el-option v-for="item in codes.trntyp1" :key="item.value" :label="item.label" :value="item.value">
208 209 210 211 212 213 214
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="汇款方式" prop="cpdgrp.rec.paytype">
215 216
            <c-select v-model="model.cpdgrp.rec.paytype" style="width: 100%" placeholder="请选择汇款方式">
              <el-option v-for="item in codes.paytype" :key="item.value" :label="item.label" :value="item.value">
217 218 219 220 221 222 223 224 225
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="收款对象" prop="cpdgrp.rec.gors">
226 227
            <c-select v-model="model.cpdgrp.rec.gors" style="width: 100%" placeholder="请选择收款对象">
              <el-option v-for="item in codes.gors" :key="item.value" :label="item.label" :value="item.value">
228 229 230 231 232 233 234
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="费用类型" prop="attp.feetyp">
235 236
            <c-select v-model="model.attp.feetyp" style="width: 100%" placeholder="请选择费用类型" disabled>
              <el-option v-for="item in codes.feetyp" :key="item.value" :label="item.label" :value="item.value">
237 238 239 240 241 242 243 244
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
taojinrui committed
245
          <el-form-item label="解付日期" prop="attp.opndat">
246 247
            <c-date-picker type="date" v-model="model.attp.opndat" style="width: 100%" placeholder="请选择起息日期">
            </c-date-picker>
248 249 250 251 252
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="委托日期" prop="cpdgrp.rec.valdat">
253 254
            <c-date-picker type="date" v-model="model.cpdgrp.rec.valdat" style="width: 100%"
              placeholder="请选择委托日期"></c-date-picker>
255 256 257 258 259 260 261
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="客户类型" prop="cpdgrp.rec.clityp">
262 263
            <c-select v-model="model.cpdgrp.rec.clityp" style="width: 100%" placeholder="请选择客户类型">
              <el-option v-for="item in codes.clityp" :key="item.value" :label="item.label" :value="item.value">
264 265 266 267 268 269 270
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="报文类型" prop="attp.swftyp">
271 272
            <c-select v-model="model.attp.swftyp" style="width: 100%" placeholder="请选择报文类型">
              <el-option v-for="item in codes.swftyp2" :key="item.value" :label="item.label" :value="item.value">
273 274 275 276 277 278 279 280
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-row type="flex" justify="end">
taojinrui committed
281
          <c-col :span="12">
282 283
            <el-form-item label="相关参考号" prop="attp.xnggbh" v-show="flag1">
              <c-input v-model="model.attp.xnggbh"></c-input>
taojinrui committed
284 285
            </el-form-item>
          </c-col>
taojinrui committed
286
          <c-col :span="10" :offset="2" style="text-align: right">
287
            <c-checkbox v-model="model.cpdgrp.rec.tsnflg">同名划转标志</c-checkbox>
taojinrui committed
288
          </c-col>
289 290 291 292 293 294
        </c-row>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="接收行名称" prop="attp.resbchnam">
295
            <c-input v-model="model.attp.resbchnam" maxlength="42" placeholder="请输入接收行名称" disabled></c-input>
296 297 298 299 300 301 302
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="接收行BIC" prop="attp.resbch">
303
            <c-input v-model="model.attp.resbch" maxlength="11" placeholder="请输入接收行BIC" disabled></c-input>
304 305 306 307 308 309 310
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="发报行名称" prop="attp.sndbchnam">
311 312 313
            <c-input v-model="model.attp.sndbchnam" maxlength="42" placeholder="请输入发报行名称" @keyup.enter.native="
              showGridPromptDialog('attp.sndbchnam')
            "></c-input>
314 315 316 317 318
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
319
        <c-fullbox>
320 321 322 323 324 325 326 327 328 329 330 331
          <c-col :span="18">
            <el-form-item label="发报行BIC" prop="attp.sndbch">
              <c-input v-model="model.attp.sndbch" maxlength="11" placeholder="请输入发报行BIC" style="width:100%" disabled>
              </c-input>
            </el-form-item>
          </c-col>
          <template slot="footer">
            <c-col :span="6">
              <c-button type="primary">查询客户号</c-button>
            </c-col>
          </template>
        </c-fullbox>
332 333 334 335 336
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="收款人帐号" prop="cpdgrp.rec.pyeact">
337
            <c-input v-model="model.cpdgrp.rec.pyeact" maxlength="35" placeholder="请输入收款人帐号"></c-input>
338 339 340 341 342 343 344
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="20">
          <el-form-item label="收款人" prop="cpdgrp.pye.pts.extkey">
345 346
            <c-input v-model="model.cpdgrp.pye.pts.extkey" maxlength="16" style="width: 95%"
              placeholder="请输入收款人名称" @keyup.enter.native="
347
                showGridPromptDialog('cpdgrp.pye.pts.extkey')
348
              "></c-input>
349 350 351 352
          </el-form-item>
        </c-col>

        <c-col :span="1">
353 354
          <c-button style="margin: 0 10px 0 0; padding: 0 12px" size="small" type="primary">
            <span style="font-size: 15px; font-family: '宋体'; font-weight: bold">i</span>
355
          </c-button>
356
        </c-col>
357 358

        <c-col :span="2" :offset="1" style="text-align: right">
359
          <c-button size="small" type="primary" style="margin: 0 0" disabled>
360 361 362 363 364 365 366
            详情
          </c-button>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
367 368 369
          <el-form-item label="地址信息" prop="cpdgrp.pye.pts.adrblk">
            <c-input type="textarea" v-model="model.cpdgrp.pye.pts.adrblk" maxlength="35" show-word-limit
              placeholder="请输入地址信息" disabled></c-input>
370 371 372 373
          </el-form-item>
        </c-col>
      </c-col>
    </c-col>
chenzhaole committed
374 375 376
  </div>
</template>
<script>
taojinrui committed
377
import Api from "~/service/Api";
wangren committed
378
import commonProcess from "~/mixin/commonProcess";
taojinrui committed
379 380
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptati/Event";
381
import Utils from "~/utils/index";
chenzhaole committed
382 383

export default {
taojinrui committed
384 385 386 387
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
taojinrui committed
388 389 390 391 392 393 394 395 396 397
    return {
      bustyp1: [
        { label: "01-支付运保费", value: "01" },
        { label: "02-代理进出口", value: "02" },
        { label: "03-与特殊经济区企业资金往来", value: "03" },
        { label: "04-同一企业不同账户资金划转", value: "04" },
        { label: "05-归还国内贷款或转贷款", value: "05" },
        { label: "06-贸易深加工结转业务", value: "06" },
        { label: "07-贸易融资业务", value: "07" },
        { label: "08-其他", value: "08" },
398
      ],
taojinrui committed
399
    };
400 401
  },
  methods: { ...Event },
402 403 404 405 406 407
  watch: {

  },
  methods: {
    ...Event,

taojinrui committed
408
  },
409
  created: function () { },
taojinrui committed
410 411 412
  computed: {
    flag() {
      return this.model.cpdgrp.orc.pts.extkey == "";
chenzhaole committed
413
    },
taojinrui committed
414 415 416 417 418 419
    flag1() {
      if (this.model.attp.swftyp == "200") {
        return true;
      } else {
        return false;
      }
420
    },
taojinrui committed
421 422
  },
};
chenzhaole committed
423 424
</script>
<style>
425

chenzhaole committed
426
</style>