Ptyp.vue 4.87 KB
Newer Older
hpj committed
1
<template>
LiRui committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
  <div class="eibs">
    <c-row>
      <!-- =================================左边================================= -->
      <!-- 第一通知行 -->
      <c-col :span="12" style="padding-right: 20px;">
        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
              title: '第一通知行',
              grp: 'ledgrp',
              rol: 'adv',
            }"
            @onSeainf="onSeainf"
            @onAplpDet="onAdvpDet"
            disabled
            disabledRef
            disabledExtkey
          >
          </c-ptap>
        </c-col>
hpj committed
23

LiRui committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37
        <!-- 第二通知行 -->
        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
              title: '第二通知行',
              grp: 'ledgrp',
              rol: 'a2b',
            }"
            @onSeainf="onSeainf"
            @onAplpDet="onA2bpDet"
          >
          </c-ptap>
        </c-col>
hpj committed
38

LiRui committed
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
        <!-- Confirm. Instruct. -->
        <c-col :span="24">
          <el-form-item label="第二通知行确认指令" prop="ledgrp.rec.cnfins">
            <c-select
              v-model="model.ledgrp.rec.cnfins"
              style="width: 100%"
              placeholder="第二通知行确认指令"
              :code="codes.cnfflg1"
              :disabled="model.ledgrp.a2b.pts.extkey==''"
            >
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>
      <!-- ========================右边======================= -->
      <c-col :span="12" style="padding-left: 20px;">
        <!-- Applicant's Bank -->
        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
              title: '申请银行',
              grp: 'ledgrp',
              rol: 'apb',
            }"
            @onSeainf="onSeainf"
            @onAplpDet="onApbpDet"
          >
          </c-ptap>
        </c-col>
wangna committed
69

LiRui committed
70 71 72
        <el-form-item label="" prop="ledgrp.rec.aplbnkdirsnd" class="checkbox-left">
          <c-checkbox v-model="model.ledgrp.rec.aplbnkdirsnd"
            >直接发送至申请银行</c-checkbox
hpj committed
73 74 75
          >
        </el-form-item>

LiRui committed
76 77 78 79 80 81 82 83 84 85 86 87 88 89
        <!-- Reimbursement Bank -->
        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
              title: '偿付银行',
              grp: 'ledgrp',
              rol: 'rmb',
            }"
            @onSeainf="onSeainf"
            @onAplpDet="onRmbpDet"
          >
          </c-ptap>
        </c-col>
hpj committed
90

LiRui committed
91 92 93 94 95 96 97 98 99 100 101 102
        <!-- Confirmation  Bank -->
        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
              title: '保兑行',
              grp: 'ledgrp',
              rol: 'con',
            }"
            :onlySearch="true"
            @onSeainf="onSeainf"
            @onAplpDet="onConpDet"
lianyang committed
103
            disabled
LiRui committed
104 105
            disabledRef
            disabledExtkey
hpj committed
106
          >
LiRui committed
107 108 109 110 111 112 113
          </c-ptap>
        </c-col>
        <c-col :span="24">
          <el-form-item label="" prop="ledgrp.con.pts.nam">
            <c-input
              v-model="model.ledgrp.con.pts.nam"
              maxlength="40"
wangna committed
114
              placeholder="请输入"
LiRui committed
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
      <!-- =============================底部表格========================= -->
      <c-edit-table :model="model" v-bind="ptsaddg">
        <el-table-column label="操作" text-align="center">
          <template slot-scope="scope">
            <el-button
              size="mini"
              @click="handleEdit(scope.$index, scope.row)"
              type="primary"
              >详情</el-button
            >
          </template>
        </el-table-column>
      </c-edit-table>
    </c-row>
  </div>
hpj committed
135 136
</template>
<script>
lianyang committed
137 138 139 140 141
import Api from '~/service/Api'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Ptap from '~/views/Public/Ptap'
import Event from '~/model/Letopn/Event'
hpj committed
142 143

export default {
lianyang committed
144 145 146
  inject: ['root'],
  components: { 'c-ptap': Ptap },
  props: ['model', 'codes'],
147
  mixins: [commonProcess],
hpj committed
148 149 150 151 152
  data() {
    return {
      ptsaddg: {
        columns: [
          {
lianyang committed
153 154 155 156
            title: '角色',
            width: '120px',
            dataIndex: 'rol',
            show: 'select',
hpj committed
157 158
          },
          {
lianyang committed
159 160 161 162
            title: '机构实体',
            width: '180px',
            dataIndex: 'ptyextkey',
            show: 'input',
hpj committed
163 164
          },
          {
lianyang committed
165 166 167
            title: '名称',
            width: '300px',
            dataIndex: 'nam',
hpj committed
168 169
          },
          {
lianyang committed
170 171 172
            title: '参考地址',
            width: '300px',
            dataIndex: 'ref',
hpj committed
173 174
          },
        ],
lianyang committed
175
        urls: 'letp.ptsaddp.ptsaddg',
hpj committed
176
      },
lianyang committed
177
    }
hpj committed
178 179 180 181
  },
  methods: {
    ...Event,
    handleEdit() {
lianyang committed
182
      console.log('1111测试')
hpj committed
183 184 185
    },
  },
  created: function () {},
lianyang committed
186
}
hpj committed
187
</script>
lianyang committed
188
<style></style>