Ptyp.vue 9.53 KB
Newer Older
1
<template>
huangxin committed
2
  <div class="eibs">
3
    <!-- =============================左边====================================== -->
4
        <c-col :span="12" style="padding-right: 20px;">
liyixun committed
5
          <c-col :span="24">
wangna committed
6
            <el-form-item label="申请人参考号" prop="gidgrp.apl.pts.ref">
liyixun committed
7 8 9
              <c-input
                v-model="model.gidgrp.apl.pts.ref"
                maxlength="16"
wangna committed
10
                placeholder="请输入申请人参考号"
liyixun committed
11 12 13 14
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="24">
wangna committed
15
            <el-form-item label="申请人" prop="gidgrp.apl.pts.extkey">
liyixun committed
16 17 18 19
              <c-fullbox>
                <c-input
                  v-model="model.gidgrp.apl.pts.extkey"
                  maxlength="16"
wangna committed
20
                  placeholder="请输入申请人"
liyixun committed
21 22 23 24 25 26 27 28 29 30
                  @keyup.enter.native="
                    showGridPromptDialog(`gidgrp.apl.pts.extkey`)
                  "
                ></c-input>
                <template slot="footer">
                  <c-button
                    style="margin: 0 10px 0 10px; padding: 0 12px"
                    size="small"
                    type="primary"
                  >
nanrui committed
31
                    <i class="el-icon-info"></i>
liyixun committed
32 33
                  </c-button>
                  <c-button size="small" type="primary" @click="onAplpDet">
wangna committed
34
                    详情
liyixun committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
                  </c-button>
                </template>
              </c-fullbox>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <el-form-item label="地址名称" prop="gidgrp.apl.pts.adrblk">
              <c-input
                type="textarea"
                :rows="4"
                v-model="model.gidgrp.apl.pts.adrblk"
                maxlength="140"
                show-word-limit
                placeholder="请输入地址名称"
              ></c-input>
            </el-form-item>
          </c-col>
liyixun committed
52

liyixun committed
53 54 55 56 57
          <c-col :span="24">
            <c-ptap
              v-if="model.gitp.swiftflg == 'Y'"
              :model="model"
              :argadr="{
wangna committed
58
                title: '开证申请人',
liyixun committed
59 60 61 62 63 64 65
                grp: 'gidgrp',
                rol: 'ctr',
              }"
              @onAplpDet="onConpDet"
            >
            </c-ptap>
          </c-col>
66

liyixun committed
67 68 69 70 71 72 73 74 75 76
          <c-col :span="24">
            <c-ptap
              v-if="model.gitp.swiftflg != 'Y'"
              :model="model"
              :argadr="{
                title: '保兑行',
                grp: 'gidgrp',
                rol: 'con',
              }"
              :disabled="true"
liyixun committed
77 78
              :disabledRef="true"
              :disabledExtkey="true"
liyixun committed
79 80 81 82 83
              @onAplpDet="onConpDet"
            >
            </c-ptap>
          </c-col>
        </c-col>
84
        <!-- =========================================右边========================================== -->
85
        <c-col :span="12" style="padding-left: 20px;">
liyixun committed
86
          <c-col :span="24">
wangna committed
87
            <el-form-item label="受益人参考号" prop="gidgrp.ben.pts.ref">
liyixun committed
88 89 90
              <c-input
                v-model="model.gidgrp.ben.pts.ref"
                maxlength="16"
wangna committed
91
                placeholder="请输入受益人参考号"
liyixun committed
92 93 94 95
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="24">
wangna committed
96
            <el-form-item label="受益人" prop="gidgrp.ben.pts.extkey">
liyixun committed
97 98 99 100
              <c-fullbox>
                <c-input
                  v-model="model.gidgrp.ben.pts.extkey"
                  maxlength="16"
wangna committed
101
                  placeholder="请输入"
liyixun committed
102 103 104 105 106 107 108 109 110 111
                  @keyup.enter.native="
                    showGridPromptDialog(`gidgrp.ben.pts.extkey`)
                  "
                ></c-input>
                <template slot="footer">
                  <c-button
                    style="margin: 0 10px 0 10px; padding: 0 12px"
                    size="small"
                    type="primary"
                  >
nanrui committed
112
                    <i class="el-icon-info"></i>
liyixun committed
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
                  </c-button>
                  <c-button size="small" type="primary" @click="onBenpDet">
                    详情
                  </c-button>
                </template>
              </c-fullbox>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <el-form-item label="地址名称" prop="gidgrp.ben.pts.adrblk">
              <c-input
                type="textarea"
                :rows="4"
                v-model="model.gidgrp.ben.pts.adrblk"
                maxlength="140"
                show-word-limit
                placeholder="请输入地址名称"
              ></c-input>
            </el-form-item>
liyixun committed
132
          </c-col>
133

134 135 136
          <c-col :span="24" v-if="model.gitp.swiftflg == 'N' && model.gidgrp.rec.hndtyp == 'OT'">
            <c-col :span="24">
              <el-form-item
wangna committed
137
              label="开证行参考号"
liyixun committed
138 139 140 141 142
              prop="gidgrp.iss.pts.ref"
            >
              <c-input
                v-model="model.gidgrp.iss.pts.ref"
                maxlength="16"
wangna committed
143
                placeholder="请输入开证行参考号"
liyixun committed
144 145
              ></c-input>
            </el-form-item>
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
            </c-col>
            <c-col :span="24">
              <el-form-item
                label="开证行"
                prop="gidgrp.iss.pts.extkey"
              >
                <c-fullbox>
                  <c-input
                    v-model="model.gidgrp.iss.pts.extkey"
                    maxlength="16"
                    placeholder="请输入"
                    @keyup.enter.native="
                      showGridPromptDialog(`gidgrp.iss.pts.extkey`)
                    "
                  ></c-input>
                  <template slot="footer">
                    <c-button
                      style="margin: 0 10px 0 10px; padding: 0 12px"
                      size="small"
                      type="primary"
                    >
                      <i class="el-icon-info"></i>
                    </c-button>
                    <c-button size="small" type="primary" @click="onIsspDet">
                      详情
                    </c-button>
                  </template>
                </c-fullbox>
              </el-form-item>
            </c-col>
            <c-col :span="24">
              <el-form-item
                label="地址名称"
                prop="gidgrp.iss.pts.adrblk"
              >
liyixun committed
181
                <c-input
182 183 184 185 186 187
                  type="textarea"
                  :rows="4"
                  v-model="model.gidgrp.iss.pts.adrblk"
                  maxlength="140"
                  show-word-limit
                  placeholder="请输入地址名称"
liyixun committed
188
                ></c-input>
189 190
              </el-form-item>
            </c-col>
liyixun committed
191
          </c-col>
192

liyixun committed
193 194 195 196 197
          <c-col :span="24">
            <c-ptap
              v-if="model.gitp.swiftflg == 'Y'"
              :model="model"
              :argadr="{
wangna committed
198
                title: '通知行',
liyixun committed
199 200 201 202 203 204 205
                grp: 'gidgrp',
                rol: 'atb',
              }"
              @onAplpDet="onConpDet"
            >
            </c-ptap>
          </c-col>
206
        </c-col>
207 208

    <c-col :span="24">
wangna committed
209
      <el-form-item label="其他当事人">
liyixun committed
210 211 212 213 214 215
        <c-edit-table
          :model="model"
          v-bind="ptsaddg"
          style="margin-left: -120px"
        >
          <el-table-column label="操作">
216 217 218 219 220 221 222 223 224 225
            <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>
liyixun committed
226 227 228
      </el-form-item>
    </c-col>
  </div>
229 230
</template>
<script>
liyixun committed
231
import Api from "~/service/Api";
232
import commonProcess from "~/mixin/commonProcess";
liyixun committed
233 234
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Gitpop/Event";
235
import Ptap from "~/views/Public/Ptap";
liyixun committed
236
import Utils from "~/utils";
237 238

export default {
liyixun committed
239 240 241 242 243 244 245 246 247
  components: { "c-ptap": Ptap },
  inject: ["root"],
  props: ["model"],
  mixins: [commonProcess],
  data() {
    return {
      ptsaddg: {
        columns: [
          {
wangna committed
248
            title: "角色",
liyixun committed
249 250 251 252 253
            width: "120px",
            dataIndex: "rol",
            show: "select",
          },
          {
wangna committed
254
            title: "当事人",
liyixun committed
255 256 257 258 259
            width: "180px",
            dataIndex: "ptyextkey",
            show: "input",
          },
          {
wangna committed
260
            title: "当事人名称",
liyixun committed
261 262 263 264
            width: "250px",
            dataIndex: "nam",
          },
          {
wangna committed
265
           title: "地址编号",
liyixun committed
266 267 268 269 270
            width: "250px",
            dataIndex: "ref",
          },
        ],
        urls: "gitp.ptsaddp.ptsaddg",
271
      },
liyixun committed
272 273 274 275 276 277 278 279 280
      codes: {
        ...CodeTable,
      },
    };
  },
  methods: {
    ...Event,
    addRow() {},
    removeRow() {},
281 282 283 284 285 286 287 288 289
    // async benBlur() {
    //   let rtnmsg = await this.executeDefault("gidgrp.rec.sndto");
    //   if (rtnmsg.respCode == SUCCESS) {
    //     Utils.copyValueFromVO(this.model, rtnmsg.data);
    //   }
    // },
    // 角色改变手动触发default 500 GIDGRP\REC\DELTO
    async roleChange(){
      let rtnmsg = await this.executeDefault("gidgrp.rec.delto");
liyixun committed
290 291 292 293
      if (rtnmsg.respCode == SUCCESS) {
        Utils.copyValueFromVO(this.model, rtnmsg.data);
      }
    },
liyixun committed
294 295
  },
  created: function () {},
296 297 298 299 300 301 302 303 304 305 306 307 308 309
  watch: {
    "model.gidgrp.apl.pts.adrblk": function() {
      this.roleChange()
    },
    "model.gidgrp.ctr.pts.adrblk": function() {
      this.roleChange()
    },
    "model.gidgrp.ben.pts.adrblk": function() {
      this.roleChange()
    },
    "model.gidgrp.atb.pts.adrblk": function() {
      this.roleChange()
    },
  },
liyixun committed
310
};
311 312 313
</script>
<style>
</style>